Backport r203445 from v17
[official-gcc.git] / gcc-4_8 / gcc / configure
blobf9984ffdab130d8a2b898829171d37e196589b66
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
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 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 RUNTIME_ROOT_PREFIX_DEFINE
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_runtime_root_prefix
893 with_sysroot
894 with_specs
895 with_pkgversion
896 with_bugurl
897 enable_languages
898 with_multilib_list
899 enable_rpath
900 with_libiconv_prefix
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_initfini_array
914 enable_comdat
915 enable_gnu_unique_object
916 enable_linker_build_id
917 with_long_double_128
918 with_gc
919 with_system_zlib
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
923 enable_plugin
924 enable_libquadmath_support
925 with_warn_frame_larger_than_extra_text
926 with_linker_hash_style
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
937 CXXFLAGS
940 CXXCPP
941 GMPLIBS
942 GMPINC
943 ISLLIBS
944 ISLINC
945 CLOOGLIBS
946 CLOOGINC'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files in source dir intended
1567 for creating source tarballs for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST]
1572 enable expensive run-time checks. With LIST, enable
1573 only specific categories of checks. Categories are:
1574 yes,no,all,none,release. Flags are:
1575 assert,df,fold,gc,gcac,gimple,misc,
1576 rtlflag,rtl,runtime,tree,valgrind,types
1577 --enable-coverage[=LEVEL]
1578 enable compiler's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-multilib enable library support for multiple ABIs
1585 --enable-multiarch enable support for multiarch paths
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid'
1589 or 'dpd' choses which decimal floating point format
1590 to use
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1593 package
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --disable-shared don't provide a shared libgcc
1599 --enable-languages=LIST specify which front-ends to build
1600 --disable-rpath do not hardcode runtime library paths
1601 --enable-sjlj-exceptions
1602 arrange to use setjmp/longjmp exception handling
1603 --enable-secureplt enable -msecure-plt by default for PowerPC
1604 --enable-leading-mingw64-underscores
1605 enable leading underscores on 64 bit mingw targets
1606 --enable-cld enable -mcld by default for 32bit x86
1607 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1609 --disable-win32-registry
1610 disable lookup of installation paths in the Registry
1611 on Windows hosts
1612 --enable-win32-registry enable registry lookup (default)
1613 --enable-win32-registry=KEY
1614 use KEY instead of GCC version as the last portion
1615 of the registry key
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-gnu-indirect-function
1622 enable the use of the @gnu_indirect_function to
1623 glibc systems
1624 --enable-initfini-array use .init_array/.fini_array sections
1625 --enable-comdat enable COMDAT group support
1626 --enable-gnu-unique-object
1627 enable the use of the @gnu_unique_object ELF
1628 extension on glibc systems
1629 --enable-linker-build-id
1630 compiler will always pass --build-id to linker
1631 --enable-maintainer-mode
1632 enable make rules and dependencies not useful (and
1633 sometimes confusing) to the casual installer
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-canonical-prefixes
1638 enable or disable prefix canonicalization
1639 --enable-plugin enable plugin support
1640 --disable-libquadmath-support
1641 disable libquadmath support for Fortran
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-build-libsubdir=DIR Directory where to find libraries for build system
1647 --with-local-prefix=DIR specifies directory to put local include
1648 --with-gxx-include-dir=DIR
1649 specifies directory to put g++ header files
1650 --with-cpp-install-dir=DIR
1651 install the user visible C preprocessor in DIR
1652 (relative to PREFIX) as well as PREFIX/bin
1653 --with-gnu-ld arrange to work with GNU ld
1654 --with-ld arrange to use the specified ld (full pathname)
1655 --with-demangler-in-ld try to use demangler in GNU ld
1656 --with-gnu-as arrange to work with GNU as
1657 --with-as arrange to use the specified as (full pathname)
1658 --with-stabs arrange to use stabs instead of host debug format
1659 --with-dwarf2 force the default debug format to be DWARF 2
1660 --with-native-system-header-dir=dir
1661 use dir as the directory to look for standard
1662 system header files in. Defaults to /usr/include.
1663 --with-build-sysroot=sysroot
1664 use sysroot as the system root during the build
1665 --with-runtime-root-prefix=prefix
1666 prepend prefix to paths used by the compiler to
1667 name the dynamic linker and other files used at
1668 runtime. Defaults to empty (no prefix).
1669 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1670 --with-specs=SPECS add SPECS to driver command-line processing
1671 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1672 --with-bugurl=URL Direct users to URL to report a bug
1673 --with-multilib-list select multilibs (SH and x86-64 only)
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1678 both]
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-plugin-ld=[ARG] specify the plugin linker
1681 --with-long-double-128 use 128-bit long double by default
1682 --with-gc={page,zone} this option is not supported anymore. It used to
1683 choose the garbage collection mechanism to use with
1684 the compiler
1685 --with-system-zlib use installed libz
1686 --with-warn-frame-larger-than-extra-text=TEXT
1687 specifies extra text for frame size warnings
1688 --with-linker-hash-style={sysv,gnu,both}
1689 specify the linker hash style
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1699 CXX C++ compiler command
1700 CXXFLAGS C++ compiler flags
1701 CPP C preprocessor
1702 CXXCPP C++ preprocessor
1703 GMPLIBS How to link GMP
1704 GMPINC How to find GMP include files
1705 ISLLIBS How to link ISL
1706 ISLINC How to find ISL include files
1707 CLOOGLIBS How to link CLOOG
1708 CLOOGINC How to find CLOOG include files
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1713 Report bugs to the package provider.
1714 _ACEOF
1715 ac_status=$?
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723 continue
1724 ac_builddir=.
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1742 case $srcdir in
1743 .) # We are building in place.
1744 ac_srcdir=.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1751 *) # Relative name.
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1766 else
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 fi || ac_status=$?
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1770 done
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775 cat <<\_ACEOF
1776 configure
1777 generated by GNU Autoconf 2.64
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783 exit
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1826 } # ac_fn_c_try_compile
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 return $ac_retval
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_cpp ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev/null && {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=1
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 return $ac_retval
1901 } # ac_fn_c_try_cpp
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_header_mongrel ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 else
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1931 else
1932 ac_header_compiler=no
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1947 else
1948 ac_header_preproc=no
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 yes:no: )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 no:yes:* )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 esac
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 eval "$3=\$ac_header_compiler"
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1994 ac_fn_c_try_run ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if { { ac_try="$ac_link"
1998 case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2005 ac_status=$?
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011 esac
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2015 ac_status=$?
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2018 ac_retval=0
2019 else
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 ac_retval=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2030 } # ac_fn_c_try_run
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2067 # computed
2068 ac_fn_c_compute_int ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_lo=0 ac_mid=0
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid; break
2104 else
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2119 main ()
2121 static int test_array [1 - 2 * !(($2) < 0)];
2122 test_array [0] = 0
2125 return 0;
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_hi=-1 ac_mid=-1
2130 while :; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 main ()
2137 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2138 test_array [0] = 0
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_lo=$ac_mid; break
2146 else
2147 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2148 if test $ac_mid -le $ac_hi; then
2149 ac_lo= ac_hi=
2150 break
2152 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 done
2156 else
2157 ac_lo= ac_hi=
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 # Binary search between lo and hi bounds.
2163 while test "x$ac_lo" != "x$ac_hi"; do
2164 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid
2180 else
2181 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 done
2185 case $ac_lo in #((
2186 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2187 '') ac_retval=1 ;;
2188 esac
2189 else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2193 static long int longval () { return $2; }
2194 static unsigned long int ulongval () { return $2; }
2195 #include <stdio.h>
2196 #include <stdlib.h>
2198 main ()
2201 FILE *f = fopen ("conftest.val", "w");
2202 if (! f)
2203 return 1;
2204 if (($2) < 0)
2206 long int i = longval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%ld", i);
2211 else
2213 unsigned long int i = ulongval ();
2214 if (i != ($2))
2215 return 1;
2216 fprintf (f, "%lu", i);
2218 /* Do not output a trailing newline, as this causes \r\n confusion
2219 on some platforms. */
2220 return ferror (f) || fclose (f) != 0;
2223 return 0;
2225 _ACEOF
2226 if ac_fn_c_try_run "$LINENO"; then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228 else
2229 ac_retval=1
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2233 rm -f conftest.val
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237 return $ac_retval
2239 } # ac_fn_c_compute_int
2241 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2242 # -------------------------------------------
2243 # Tests whether TYPE exists after having included INCLUDES, setting cache
2244 # variable VAR accordingly.
2245 ac_fn_c_check_type ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 eval "$3=no"
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2258 main ()
2260 if (sizeof ($2))
2261 return 0;
2263 return 0;
2265 _ACEOF
2266 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 if (sizeof (($2)))
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2281 else
2282 eval "$3=yes"
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293 } # ac_fn_c_check_type
2295 # ac_fn_c_find_intX_t LINENO BITS VAR
2296 # -----------------------------------
2297 # Finds a signed integer type with width BITS, setting cache variable VAR
2298 # accordingly.
2299 ac_fn_c_find_intX_t ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2303 $as_echo_n "checking for int$2_t... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2306 else
2307 eval "$3=no"
2308 for ac_type in int$2_t 'int' 'long int' \
2309 'long long int' 'short int' 'signed char'; do
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2314 main ()
2316 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2317 test_array [0] = 0
2320 return 0;
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 $ac_includes_default
2328 main ()
2330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2331 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2332 test_array [0] = 0
2335 return 0;
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2340 else
2341 case $ac_type in #(
2342 int$2_t) :
2343 eval "$3=yes" ;; #(
2344 *) :
2345 eval "$3=\$ac_type" ;;
2346 esac
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 eval as_val=\$$3
2352 if test "x$as_val" = x""no; then :
2354 else
2355 break
2357 done
2359 eval ac_res=\$$3
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_find_intX_t
2366 # ac_fn_c_try_link LINENO
2367 # -----------------------
2368 # Try to link conftest.$ac_ext, and return whether this succeeded.
2369 ac_fn_c_try_link ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext conftest$ac_exeext
2373 if { { ac_try="$ac_link"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_link") 2>conftest.err
2381 ac_status=$?
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest$ac_exeext && {
2392 test "$cross_compiling" = yes ||
2393 $as_test_x conftest$ac_exeext
2394 }; then :
2395 ac_retval=0
2396 else
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 ac_retval=1
2402 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2403 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2404 # interfere with the next link command; also delete a directory that is
2405 # left behind by Apple's compiler. We do this before executing the actions.
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 return $ac_retval
2410 } # ac_fn_c_try_link
2412 # ac_fn_c_find_uintX_t LINENO BITS VAR
2413 # ------------------------------------
2414 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2415 # accordingly.
2416 ac_fn_c_find_uintX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2420 $as_echo_n "checking for uint$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 eval "$3=no"
2425 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2431 main ()
2433 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2434 test_array [0] = 0
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 case $ac_type in #(
2442 uint$2_t) :
2443 eval "$3=yes" ;; #(
2444 *) :
2445 eval "$3=\$ac_type" ;;
2446 esac
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 eval as_val=\$$3
2450 if test "x$as_val" = x""no; then :
2452 else
2453 break
2455 done
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_find_uintX_t
2464 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2465 # ----------------------------------------------
2466 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2467 ac_fn_c_check_header_preproc ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2477 #include <$2>
2478 _ACEOF
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2480 eval "$3=yes"
2481 else
2482 eval "$3=no"
2484 rm -f conftest.err conftest.$ac_ext
2486 eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_preproc
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev/null && {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2517 }; then :
2518 ac_retval=0
2519 else
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 ac_retval=1
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 return $ac_retval
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2531 # ------------------------------------------------
2532 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2533 ac_fn_cxx_check_header_preproc ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2537 $as_echo_n "checking for $2... " >&6; }
2538 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 #include <$2>
2544 _ACEOF
2545 if ac_fn_cxx_try_cpp "$LINENO"; then :
2546 eval "$3=yes"
2547 else
2548 eval "$3=no"
2550 rm -f conftest.err conftest.$ac_ext
2552 eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557 } # ac_fn_cxx_check_header_preproc
2559 # ac_fn_c_check_func LINENO FUNC VAR
2560 # ----------------------------------
2561 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2562 ac_fn_c_check_func ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2574 #define $2 innocuous_$2
2576 /* System header to define __stub macros and hopefully few prototypes,
2577 which can conflict with char $2 (); below.
2578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2579 <limits.h> exists even on freestanding compilers. */
2581 #ifdef __STDC__
2582 # include <limits.h>
2583 #else
2584 # include <assert.h>
2585 #endif
2587 #undef $2
2589 /* Override any GCC internal prototype to avoid an error.
2590 Use char because int might match the return type of a GCC
2591 builtin and then its argument prototype would still apply. */
2592 #ifdef __cplusplus
2593 extern "C"
2594 #endif
2595 char $2 ();
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined __stub_$2 || defined __stub___$2
2600 choke me
2601 #endif
2604 main ()
2606 return $2 ();
2608 return 0;
2610 _ACEOF
2611 if ac_fn_c_try_link "$LINENO"; then :
2612 eval "$3=yes"
2613 else
2614 eval "$3=no"
2616 rm -f core conftest.err conftest.$ac_objext \
2617 conftest$ac_exeext conftest.$ac_ext
2619 eval ac_res=\$$3
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2624 } # ac_fn_c_check_func
2626 # ac_fn_cxx_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_cxx_try_link ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { { ac_try="$ac_link"
2634 case "(($ac_try" in
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2641 ac_status=$?
2642 if test -s conftest.err; then
2643 grep -v '^ *+' conftest.err >conftest.er1
2644 cat conftest.er1 >&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_cxx_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest$ac_exeext
2654 }; then :
2655 ac_retval=0
2656 else
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 ac_retval=1
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2668 return $ac_retval
2670 } # ac_fn_cxx_try_link
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by $as_me, which was
2676 generated by GNU Autoconf 2.64. Invocation command line was
2678 $ $0 $@
2680 _ACEOF
2681 exec 5>>config.log
2683 cat <<_ASUNAME
2684 ## --------- ##
2685 ## Platform. ##
2686 ## --------- ##
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2705 _ASUNAME
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2713 done
2714 IFS=$as_save_IFS
2716 } >&5
2718 cat >&5 <<_ACEOF
2721 ## ----------- ##
2722 ## Core tests. ##
2723 ## ----------- ##
2725 _ACEOF
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2733 ac_configure_args=
2734 ac_configure_args0=
2735 ac_configure_args1=
2736 ac_must_keep_next=false
2737 for ac_pass in 1 2
2739 for ac_arg
2741 case $ac_arg in
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2745 continue ;;
2746 *\'*)
2747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 esac
2749 case $ac_pass in
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2755 else
2756 case $ac_arg in
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2763 esac
2765 -* ) ac_must_keep_next=true ;;
2766 esac
2768 as_fn_append ac_configure_args " '$ac_arg'"
2770 esac
2771 done
2772 done
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2784 echo
2786 cat <<\_ASBOX
2787 ## ---------------- ##
2788 ## Cache variables. ##
2789 ## ---------------- ##
2790 _ASBOX
2791 echo
2792 # The following way of writing the cache mishandles newlines in values,
2794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2795 eval ac_val=\$$ac_var
2796 case $ac_val in #(
2797 *${as_nl}*)
2798 case $ac_var in #(
2799 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2800 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2801 esac
2802 case $ac_var in #(
2803 _ | IFS | as_nl) ;; #(
2804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2805 *) { eval $ac_var=; unset $ac_var;} ;;
2806 esac ;;
2807 esac
2808 done
2809 (set) 2>&1 |
2810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2811 *${as_nl}ac_space=\ *)
2812 sed -n \
2813 "s/'\''/'\''\\\\'\'''\''/g;
2814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2815 ;; #(
2817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2819 esac |
2820 sort
2822 echo
2824 cat <<\_ASBOX
2825 ## ----------------- ##
2826 ## Output variables. ##
2827 ## ----------------- ##
2828 _ASBOX
2829 echo
2830 for ac_var in $ac_subst_vars
2832 eval ac_val=\$$ac_var
2833 case $ac_val in
2834 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835 esac
2836 $as_echo "$ac_var='\''$ac_val'\''"
2837 done | sort
2838 echo
2840 if test -n "$ac_subst_files"; then
2841 cat <<\_ASBOX
2842 ## ------------------- ##
2843 ## File substitutions. ##
2844 ## ------------------- ##
2845 _ASBOX
2846 echo
2847 for ac_var in $ac_subst_files
2849 eval ac_val=\$$ac_var
2850 case $ac_val in
2851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2852 esac
2853 $as_echo "$ac_var='\''$ac_val'\''"
2854 done | sort
2855 echo
2858 if test -s confdefs.h; then
2859 cat <<\_ASBOX
2860 ## ----------- ##
2861 ## confdefs.h. ##
2862 ## ----------- ##
2863 _ASBOX
2864 echo
2865 cat confdefs.h
2866 echo
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2871 } >&5
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2874 exit $exit_status
2876 for ac_signal in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 done
2879 ac_signal=0
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2910 _ACEOF
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2915 ac_site_file1=NONE
2916 ac_site_file2=NONE
2917 if test -n "$CONFIG_SITE"; then
2918 ac_site_file1=$CONFIG_SITE
2919 elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2922 else
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2926 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2928 test "x$ac_site_file" = xNONE && continue
2929 if test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2933 . "$ac_site_file"
2935 done
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special
2939 # files actually), so we avoid doing that.
2940 if test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2943 case $cache_file in
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2946 esac
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 >$cache_file
2954 # Check that the precious variables saved in the cache have kept the same
2955 # value.
2956 ac_cache_corrupted=false
2957 for ac_var in $ac_precious_vars; do
2958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2959 eval ac_new_set=\$ac_env_${ac_var}_set
2960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2961 eval ac_new_val=\$ac_env_${ac_var}_value
2962 case $ac_old_set,$ac_new_set in
2963 set,)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2965 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2967 ,set)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2969 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2970 ac_cache_corrupted=: ;;
2971 ,);;
2973 if test "x$ac_old_val" != "x$ac_new_val"; then
2974 # differences in whitespace do not lead to failure.
2975 ac_old_val_w=`echo x $ac_old_val`
2976 ac_new_val_w=`echo x $ac_new_val`
2977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2979 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2980 ac_cache_corrupted=:
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2983 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2984 eval $ac_var=\$ac_old_val
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2987 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2989 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2990 fi;;
2991 esac
2992 # Pass precious variables to config.status.
2993 if test "$ac_new_set" = set; then
2994 case $ac_new_val in
2995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2996 *) ac_arg=$ac_var=$ac_new_val ;;
2997 esac
2998 case " $ac_configure_args " in
2999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3000 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3001 esac
3003 done
3004 if $ac_cache_corrupted; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3008 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3009 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3011 ## -------------------- ##
3012 ## Main body of script. ##
3013 ## -------------------- ##
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3029 gcc_version=`cat $srcdir/BASE-VER`
3031 # Determine the host, build, and target systems
3032 ac_aux_dir=
3033 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3034 for ac_t in install-sh install.sh shtool; do
3035 if test -f "$ac_dir/$ac_t"; then
3036 ac_aux_dir=$ac_dir
3037 ac_install_sh="$ac_aux_dir/$ac_t -c"
3038 break 2
3040 done
3041 done
3042 if test -z "$ac_aux_dir"; then
3043 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3046 # These three variables are undocumented and unsupported,
3047 # and are intended to be withdrawn in a future Autoconf release.
3048 # They can cause serious problems if a builder's source tree is in a directory
3049 # whose full name contains unusual characters.
3050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3055 # Make sure we can run config.sub.
3056 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3057 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3060 $as_echo_n "checking build system type... " >&6; }
3061 if test "${ac_cv_build+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 ac_build_alias=$build_alias
3065 test "x$ac_build_alias" = x &&
3066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3067 test "x$ac_build_alias" = x &&
3068 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3070 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3074 $as_echo "$ac_cv_build" >&6; }
3075 case $ac_cv_build in
3076 *-*-*) ;;
3077 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3078 esac
3079 build=$ac_cv_build
3080 ac_save_IFS=$IFS; IFS='-'
3081 set x $ac_cv_build
3082 shift
3083 build_cpu=$1
3084 build_vendor=$2
3085 shift; shift
3086 # Remember, the first character of IFS is used to create $*,
3087 # except with old shells:
3088 build_os=$*
3089 IFS=$ac_save_IFS
3090 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3094 $as_echo_n "checking host system type... " >&6; }
3095 if test "${ac_cv_host+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test "x$host_alias" = x; then
3099 ac_cv_host=$ac_cv_build
3100 else
3101 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3102 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3107 $as_echo "$ac_cv_host" >&6; }
3108 case $ac_cv_host in
3109 *-*-*) ;;
3110 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3111 esac
3112 host=$ac_cv_host
3113 ac_save_IFS=$IFS; IFS='-'
3114 set x $ac_cv_host
3115 shift
3116 host_cpu=$1
3117 host_vendor=$2
3118 shift; shift
3119 # Remember, the first character of IFS is used to create $*,
3120 # except with old shells:
3121 host_os=$*
3122 IFS=$ac_save_IFS
3123 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3127 $as_echo_n "checking target system type... " >&6; }
3128 if test "${ac_cv_target+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test "x$target_alias" = x; then
3132 ac_cv_target=$ac_cv_host
3133 else
3134 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3135 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3140 $as_echo "$ac_cv_target" >&6; }
3141 case $ac_cv_target in
3142 *-*-*) ;;
3143 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3144 esac
3145 target=$ac_cv_target
3146 ac_save_IFS=$IFS; IFS='-'
3147 set x $ac_cv_target
3148 shift
3149 target_cpu=$1
3150 target_vendor=$2
3151 shift; shift
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3154 target_os=$*
3155 IFS=$ac_save_IFS
3156 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3159 # The aliases save the names the user supplied, while $host etc.
3160 # will get canonicalized.
3161 test -n "$target_alias" &&
3162 test "$program_prefix$program_suffix$program_transform_name" = \
3163 NONENONEs,x,x, &&
3164 program_prefix=${target_alias}-
3166 # Determine the noncanonical target name, for directory use.
3167 case ${build_alias} in
3168 "") build_noncanonical=${build} ;;
3169 *) build_noncanonical=${build_alias} ;;
3170 esac
3172 case ${host_alias} in
3173 "") host_noncanonical=${build_noncanonical} ;;
3174 *) host_noncanonical=${host_alias} ;;
3175 esac
3177 case ${target_alias} in
3178 "") target_noncanonical=${host_noncanonical} ;;
3179 *) target_noncanonical=${target_alias} ;;
3180 esac
3185 # Determine the target- and build-specific subdirectories
3187 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3188 # have matching libraries, they should use host libraries: Makefile.tpl
3189 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3190 # However, they still use the build modules, because the corresponding
3191 # host modules (e.g. bison) are only built for the host when bootstrap
3192 # finishes. So:
3193 # - build_subdir is where we find build modules, and never changes.
3194 # - build_libsubdir is where we find build libraries, and can be overridden.
3196 # Prefix 'build-' so this never conflicts with target_subdir.
3197 build_subdir="build-${build_noncanonical}"
3199 # Check whether --with-build-libsubdir was given.
3200 if test "${with_build_libsubdir+set}" = set; then :
3201 withval=$with_build_libsubdir; build_libsubdir="$withval"
3202 else
3203 build_libsubdir="$build_subdir"
3206 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3207 if ( test $srcdir = . && test -d gcc ) \
3208 || test -d $srcdir/../host-${host_noncanonical}; then
3209 host_subdir="host-${host_noncanonical}"
3210 else
3211 host_subdir=.
3213 # No prefix.
3214 target_subdir=${target_noncanonical}
3217 # Set program_transform_name
3218 test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220 # Use a double $ so make ignores it.
3221 test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223 # Double any \ or $.
3224 # By default was `s,x,x', remove it if useless.
3225 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3229 # Check for bogus environment variables.
3230 # Test if LIBRARY_PATH contains the notation for the current directory
3231 # since this would lead to problems installing/building glibc.
3232 # LIBRARY_PATH contains the current directory if one of the following
3233 # is true:
3234 # - one of the terminals (":" and ";") is the first or last sign
3235 # - two terminals occur directly after each other
3236 # - the path contains an element with a dot in it
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3238 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3239 case ${LIBRARY_PATH} in
3240 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3241 library_path_setting="contains current directory"
3244 library_path_setting="ok"
3246 esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3248 $as_echo "$library_path_setting" >&6; }
3249 if test "$library_path_setting" != "ok"; then
3250 as_fn_error "
3251 *** LIBRARY_PATH shouldn't contain the current directory when
3252 *** building gcc. Please change the environment variable
3253 *** and run configure again." "$LINENO" 5
3256 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3257 # since this would lead to problems installing/building glibc.
3258 # GCC_EXEC_PREFIX contains the current directory if one of the following
3259 # is true:
3260 # - one of the terminals (":" and ";") is the first or last sign
3261 # - two terminals occur directly after each other
3262 # - the path contains an element with a dot in it
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3264 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3265 case ${GCC_EXEC_PREFIX} in
3266 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3267 gcc_exec_prefix_setting="contains current directory"
3270 gcc_exec_prefix_setting="ok"
3272 esac
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3274 $as_echo "$gcc_exec_prefix_setting" >&6; }
3275 if test "$gcc_exec_prefix_setting" != "ok"; then
3276 as_fn_error "
3277 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3278 *** building gcc. Please change the environment variable
3279 *** and run configure again." "$LINENO" 5
3282 # -----------
3283 # Directories
3284 # -----------
3286 # Specify the local prefix
3287 local_prefix=
3289 # Check whether --with-local-prefix was given.
3290 if test "${with_local_prefix+set}" = set; then :
3291 withval=$with_local_prefix; case "${withval}" in
3292 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3293 no) ;;
3294 *) local_prefix=$with_local_prefix ;;
3295 esac
3299 # Default local prefix if it is empty
3300 if test x$local_prefix = x; then
3301 local_prefix=/usr/local
3304 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3305 # passed in by the toplevel make and thus we'd get different behavior
3306 # depending on where we built the sources.
3307 gcc_gxx_include_dir=
3308 # Specify the g++ header file directory
3310 # Check whether --with-gxx-include-dir was given.
3311 if test "${with_gxx_include_dir+set}" = set; then :
3312 withval=$with_gxx_include_dir; case "${withval}" in
3313 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3314 no) ;;
3315 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3316 esac
3320 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3321 if test x${gcc_gxx_include_dir} = x; then
3322 if test x${enable_version_specific_runtime_libs} = xyes; then
3323 gcc_gxx_include_dir='${libsubdir}/include/c++'
3324 else
3325 libstdcxx_incdir='include/c++/$(version)'
3326 if test x$host != x$target; then
3327 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3329 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3333 gcc_gxx_include_dir_add_sysroot=0
3334 if test "${with_sysroot+set}" = set; then
3335 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3336 if test "${gcc_gxx_without_sysroot}"; then
3337 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3338 gcc_gxx_include_dir_add_sysroot=1
3343 # Check whether --with-cpp_install_dir was given.
3344 if test "${with_cpp_install_dir+set}" = set; then :
3345 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3346 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3347 elif test x$withval != xno; then
3348 cpp_install_dir=$withval
3353 # We would like to our source tree to be readonly. However when releases or
3354 # pre-releases are generated, the flex/bison generated files as well as the
3355 # various formats of manuals need to be included along with the rest of the
3356 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3357 # just that.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3360 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3361 # Check whether --enable-generated-files-in-srcdir was given.
3362 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3363 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3364 else
3365 generated_files_in_srcdir=no
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3370 $as_echo "$generated_files_in_srcdir" >&6; }
3372 if test "$generated_files_in_srcdir" = "yes"; then
3373 GENINSRC=''
3374 else
3375 GENINSRC='#'
3379 # -------------------
3380 # Find default linker
3381 # -------------------
3383 # With GNU ld
3385 # Check whether --with-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then :
3387 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3388 else
3389 gnu_ld_flag=no
3393 # With pre-defined ld
3395 # Check whether --with-ld was given.
3396 if test "${with_ld+set}" = set; then :
3397 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3400 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3401 if test ! -x "$DEFAULT_LINKER"; then
3402 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3403 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3404 gnu_ld_flag=yes
3407 cat >>confdefs.h <<_ACEOF
3408 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3409 _ACEOF
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3414 $as_echo_n "checking whether a default linker was specified... " >&6; }
3415 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3416 if test x"$gnu_ld_flag" = x"no"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3421 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3428 # With demangler in GNU ld
3430 # Check whether --with-demangler-in-ld was given.
3431 if test "${with_demangler_in_ld+set}" = set; then :
3432 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3433 else
3434 demangler_in_ld=yes
3438 # ----------------------
3439 # Find default assembler
3440 # ----------------------
3442 # With GNU as
3444 # Check whether --with-gnu-as was given.
3445 if test "${with_gnu_as+set}" = set; then :
3446 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3447 else
3448 gas_flag=no
3453 # Check whether --with-as was given.
3454 if test "${with_as+set}" = set; then :
3455 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3458 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3459 if test ! -x "$DEFAULT_ASSEMBLER"; then
3460 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3461 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3462 gas_flag=yes
3465 cat >>confdefs.h <<_ACEOF
3466 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3467 _ACEOF
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3472 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3473 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3474 if test x"$gas_flag" = x"no"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3479 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3486 # ---------------
3487 # Find C compiler
3488 # ---------------
3490 # If a non-executable a.out is present (e.g. created by GNU as above even if
3491 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3492 # file, even when creating an executable, so an execution test fails.
3493 # Remove possible default executable files to avoid this.
3495 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3496 # Autoconf includes it.
3497 rm -f a.out a.exe b.out
3499 # Find the native compiler
3500 ac_ext=c
3501 ac_cpp='$CPP $CPPFLAGS'
3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_CC"; then
3545 ac_ct_CC=$CC
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547 set dummy gcc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555 else
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3563 ac_cv_prog_ac_ct_CC="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3567 done
3568 done
3569 IFS=$as_save_IFS
3573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574 if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576 $as_echo "$ac_ct_CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586 yes:)
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3590 esac
3591 CC=$ac_ct_CC
3593 else
3594 CC="$ac_cv_prog_CC"
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600 set dummy ${ac_tool_prefix}cc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 CC=$ac_cv_prog_CC
3627 if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 $as_echo "$CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648 else
3649 ac_prog_rejected=no
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected=yes
3659 continue
3661 ac_cv_prog_CC="cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3669 if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy $ac_cv_prog_CC
3672 shift
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3677 shift
3678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3683 CC=$ac_cv_prog_CC
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in cl.exe
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if test "${ac_cv_prog_CC+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 CC=$ac_cv_prog_CC
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CC" && break
3736 done
3738 if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CC="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CC" && break
3780 done
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CC=$ac_ct_CC
3798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error "no acceptable C compiler found in \$PATH
3801 See \`config.log' for more details." "$LINENO" 5; }
3803 # Provide some information about the compiler.
3804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805 set X $ac_compile
3806 ac_compiler=$2
3807 for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816 ac_status=$?
3817 if test -s conftest.err; then
3818 sed '10a\
3819 ... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826 done
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 ac_clean_files_save=$ac_clean_files
3840 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3841 # Try to create an executable without -o first, disregard a.out.
3842 # It will help us diagnose broken compilers, and finding out an intuition
3843 # of exeext.
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3848 # The possible output files:
3849 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3851 ac_rmfiles=
3852 for ac_file in $ac_files
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3857 esac
3858 done
3859 rm -f $ac_rmfiles
3861 if { { ac_try="$ac_link_default"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link_default") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3873 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3874 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3875 # so that the user can short-circuit this test for compilers unknown to
3876 # Autoconf.
3877 for ac_file in $ac_files ''
3879 test -f "$ac_file" || continue
3880 case $ac_file in
3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3883 [ab].out )
3884 # We found the default executable, but exeext='' is most
3885 # certainly right.
3886 break;;
3887 *.* )
3888 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3889 then :; else
3890 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 # We set ac_cv_exeext here because the later test for it is not
3893 # safe: cross compilers may not add the suffix if given an `-o'
3894 # argument, so we may need to know it at that point already.
3895 # Even if this section looks crufty: it has the advantage of
3896 # actually working.
3897 break;;
3899 break;;
3900 esac
3901 done
3902 test "$ac_cv_exeext" = no && ac_cv_exeext=
3904 else
3905 ac_file=''
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3908 $as_echo "$ac_file" >&6; }
3909 if test -z "$ac_file"; then :
3910 $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 { as_fn_set_status 77
3916 as_fn_error "C compiler cannot create executables
3917 See \`config.log' for more details." "$LINENO" 5; }; }
3919 ac_exeext=$ac_cv_exeext
3921 # Check that the compiler produces executables we can run. If not, either
3922 # the compiler is broken, or we cross compile.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3924 $as_echo_n "checking whether the C compiler works... " >&6; }
3925 # If not cross compiling, check that we can run a simple program.
3926 if test "$cross_compiling" != yes; then
3927 if { ac_try='./$ac_file'
3928 { { case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934 (eval "$ac_try") 2>&5
3935 ac_status=$?
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }; }; then
3938 cross_compiling=no
3939 else
3940 if test "$cross_compiling" = maybe; then
3941 cross_compiling=yes
3942 else
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot run C compiled programs.
3946 If you meant to cross compile, use \`--host'.
3947 See \`config.log' for more details." "$LINENO" 5; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 $as_echo "yes" >&6; }
3954 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3955 ac_clean_files=$ac_clean_files_save
3956 # Check that the compiler produces executables we can run. If not, either
3957 # the compiler is broken, or we cross compile.
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3959 $as_echo_n "checking whether we are cross compiling... " >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3961 $as_echo "$cross_compiling" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3979 # `rm'.
3980 for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 break;;
3986 * ) break;;
3987 esac
3988 done
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details." "$LINENO" 5; }
3995 rm -f conftest$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.$ac_ext
4000 EXEEXT=$ac_cv_exeext
4001 ac_exeext=$EXEEXT
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4003 $as_echo_n "checking for suffix of object files... " >&6; }
4004 if test "${ac_cv_objext+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 rm -f conftest.o conftest.obj
4019 if { { ac_try="$ac_compile"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compile") 2>&5
4027 ac_status=$?
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }; then :
4030 for ac_file in conftest.o conftest.obj conftest.*; do
4031 test -f "$ac_file" || continue;
4032 case $ac_file in
4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035 break;;
4036 esac
4037 done
4038 else
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error "cannot compute suffix of object files: cannot compile
4045 See \`config.log' for more details." "$LINENO" 5; }
4047 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050 $as_echo "$ac_cv_objext" >&6; }
4051 OBJEXT=$ac_cv_objext
4052 ac_objext=$OBJEXT
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4054 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4055 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4064 #ifndef __GNUC__
4065 choke me
4066 #endif
4069 return 0;
4071 _ACEOF
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_compiler_gnu=yes
4074 else
4075 ac_compiler_gnu=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4082 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4083 if test $ac_compiler_gnu = yes; then
4084 GCC=yes
4085 else
4086 GCC=
4088 ac_test_CFLAGS=${CFLAGS+set}
4089 ac_save_CFLAGS=$CFLAGS
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4092 if test "${ac_cv_prog_cc_g+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 ac_save_c_werror_flag=$ac_c_werror_flag
4096 ac_c_werror_flag=yes
4097 ac_cv_prog_cc_g=no
4098 CFLAGS="-g"
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 main ()
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_prog_cc_g=yes
4112 else
4113 CFLAGS=""
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4127 else
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4152 $as_echo "$ac_cv_prog_cc_g" >&6; }
4153 if test "$ac_test_CFLAGS" = set; then
4154 CFLAGS=$ac_save_CFLAGS
4155 elif test $ac_cv_prog_cc_g = yes; then
4156 if test "$GCC" = yes; then
4157 CFLAGS="-g -O2"
4158 else
4159 CFLAGS="-g"
4161 else
4162 if test "$GCC" = yes; then
4163 CFLAGS="-O2"
4164 else
4165 CFLAGS=
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4169 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4170 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 ac_cv_prog_cc_c89=no
4174 ac_save_CC=$CC
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4177 #include <stdarg.h>
4178 #include <stdio.h>
4179 #include <sys/types.h>
4180 #include <sys/stat.h>
4181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4182 struct buf { int x; };
4183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4184 static char *e (p, i)
4185 char **p;
4186 int i;
4188 return p[i];
4190 static char *f (char * (*g) (char **, int), char **p, ...)
4192 char *s;
4193 va_list v;
4194 va_start (v,p);
4195 s = g (p, va_arg (v,int));
4196 va_end (v);
4197 return s;
4200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4201 function prototypes and stuff, but not '\xHH' hex character constants.
4202 These don't provoke an error unfortunately, instead are silently treated
4203 as 'x'. The following induces an error, until -std is added to get
4204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4205 array size at least. It's necessary to write '\x00'==0 to get something
4206 that's true only with -std. */
4207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4210 inside strings and character constants. */
4211 #define FOO(x) 'x'
4212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4214 int test (int i, double x);
4215 struct s1 {int (*f) (int a);};
4216 struct s2 {int (*f) (double a);};
4217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4218 int argc;
4219 char **argv;
4221 main ()
4223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4225 return 0;
4227 _ACEOF
4228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4231 CC="$ac_save_CC $ac_arg"
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_prog_cc_c89=$ac_arg
4235 rm -f core conftest.err conftest.$ac_objext
4236 test "x$ac_cv_prog_cc_c89" != "xno" && break
4237 done
4238 rm -f conftest.$ac_ext
4239 CC=$ac_save_CC
4242 # AC_CACHE_VAL
4243 case "x$ac_cv_prog_cc_c89" in
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4246 $as_echo "none needed" >&6; } ;;
4247 xno)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4249 $as_echo "unsupported" >&6; } ;;
4251 CC="$CC $ac_cv_prog_cc_c89"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4254 esac
4255 if test "x$ac_cv_prog_cc_c89" != xno; then :
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4265 if test "x$CC" != xcc; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4267 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4268 else
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4270 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 set dummy $CC; ac_cc=`$as_echo "$2" |
4273 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4274 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 # Make sure it works both with $CC and with simple cc.
4289 # We do the test twice because some compilers refuse to overwrite an
4290 # existing .o file with -o, though they will create one.
4291 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4292 rm -f conftest2.*
4293 if { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; } &&
4303 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_try") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; };
4313 then
4314 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4315 if test "x$CC" != xcc; then
4316 # Test first that cc exists at all.
4317 if { ac_try='cc -c conftest.$ac_ext >&5'
4318 { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; }; then
4328 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4329 rm -f conftest2.*
4330 if { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; } &&
4340 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343 esac
4344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4345 $as_echo "$ac_try_echo"; } >&5
4346 (eval "$ac_try") 2>&5
4347 ac_status=$?
4348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4349 test $ac_status = 0; };
4350 then
4351 # cc works too.
4353 else
4354 # cc exists but doesn't like -o.
4355 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 else
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 rm -f core conftest*
4365 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4372 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4376 # expand $ac_aux_dir to an absolute path
4377 am_aux_dir=`cd $ac_aux_dir && pwd`
4379 # FIXME: we rely on the cache variable name because
4380 # there is no other way.
4381 set dummy $CC
4382 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4384 if test "$am_t" != yes; then
4385 # Losing compiler, so override with the script.
4386 # FIXME: It is wrong to rewrite CC.
4387 # But if we don't then we get into trouble of one sort or another.
4388 # A longer-term fix would be to have automake use am__CC in this case,
4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4390 CC="$am_aux_dir/compile $CC"
4394 ac_ext=cpp
4395 ac_cpp='$CXXCPP $CPPFLAGS'
4396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4399 if test -z "$CXX"; then
4400 if test -n "$CCC"; then
4401 CXX=$CCC
4402 else
4403 if test -n "$ac_tool_prefix"; then
4404 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if test "${ac_cv_prog_CXX+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$CXX"; then
4414 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 CXX=$ac_cv_prog_CXX
4434 if test -n "$CXX"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4436 $as_echo "$CXX" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$CXX" && break
4444 done
4446 if test -z "$CXX"; then
4447 ac_ct_CXX=$CXX
4448 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -n "$ac_ct_CXX"; then
4458 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_prog_ac_ct_CXX="$ac_prog"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4471 done
4472 done
4473 IFS=$as_save_IFS
4477 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4478 if test -n "$ac_ct_CXX"; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4480 $as_echo "$ac_ct_CXX" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4487 test -n "$ac_ct_CXX" && break
4488 done
4490 if test "x$ac_ct_CXX" = x; then
4491 CXX="g++"
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 CXX=$ac_ct_CXX
4505 # Provide some information about the compiler.
4506 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4507 set X $ac_compile
4508 ac_compiler=$2
4509 for ac_option in --version -v -V -qversion; do
4510 { { ac_try="$ac_compiler $ac_option >&5"
4511 case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516 $as_echo "$ac_try_echo"; } >&5
4517 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4518 ac_status=$?
4519 if test -s conftest.err; then
4520 sed '10a\
4521 ... rest of stderr output deleted ...
4522 10q' conftest.err >conftest.er1
4523 cat conftest.er1 >&5
4524 rm -f conftest.er1 conftest.err
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 done
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4531 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4532 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4541 #ifndef __GNUC__
4542 choke me
4543 #endif
4546 return 0;
4548 _ACEOF
4549 if ac_fn_cxx_try_compile "$LINENO"; then :
4550 ac_compiler_gnu=yes
4551 else
4552 ac_compiler_gnu=no
4554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4559 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4560 if test $ac_compiler_gnu = yes; then
4561 GXX=yes
4562 else
4563 GXX=
4565 ac_test_CXXFLAGS=${CXXFLAGS+set}
4566 ac_save_CXXFLAGS=$CXXFLAGS
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4568 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4569 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4573 ac_cxx_werror_flag=yes
4574 ac_cv_prog_cxx_g=no
4575 CXXFLAGS="-g"
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4580 main ()
4584 return 0;
4586 _ACEOF
4587 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cv_prog_cxx_g=yes
4589 else
4590 CXXFLAGS=""
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4595 main ()
4599 return 0;
4601 _ACEOF
4602 if ac_fn_cxx_try_compile "$LINENO"; then :
4604 else
4605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4606 CXXFLAGS="-g"
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4611 main ()
4615 return 0;
4617 _ACEOF
4618 if ac_fn_cxx_try_compile "$LINENO"; then :
4619 ac_cv_prog_cxx_g=yes
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4629 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4630 if test "$ac_test_CXXFLAGS" = set; then
4631 CXXFLAGS=$ac_save_CXXFLAGS
4632 elif test $ac_cv_prog_cxx_g = yes; then
4633 if test "$GXX" = yes; then
4634 CXXFLAGS="-g -O2"
4635 else
4636 CXXFLAGS="-g"
4638 else
4639 if test "$GXX" = yes; then
4640 CXXFLAGS="-O2"
4641 else
4642 CXXFLAGS=
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$GNATBIND"; then
4663 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 GNATBIND=$ac_cv_prog_GNATBIND
4683 if test -n "$GNATBIND"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4685 $as_echo "$GNATBIND" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 if test -z "$ac_cv_prog_GNATBIND"; then
4694 ac_ct_GNATBIND=$GNATBIND
4695 # Extract the first word of "gnatbind", so it can be a program name with args.
4696 set dummy gnatbind; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$ac_ct_GNATBIND"; then
4703 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4723 if test -n "$ac_ct_GNATBIND"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4725 $as_echo "$ac_ct_GNATBIND" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4731 if test "x$ac_ct_GNATBIND" = x; then
4732 GNATBIND="no"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 GNATBIND=$ac_ct_GNATBIND
4742 else
4743 GNATBIND="$ac_cv_prog_GNATBIND"
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4748 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -n "$GNATMAKE"; then
4755 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 GNATMAKE=$ac_cv_prog_GNATMAKE
4775 if test -n "$GNATMAKE"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4777 $as_echo "$GNATMAKE" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$ac_cv_prog_GNATMAKE"; then
4786 ac_ct_GNATMAKE=$GNATMAKE
4787 # Extract the first word of "gnatmake", so it can be a program name with args.
4788 set dummy gnatmake; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$ac_ct_GNATMAKE"; then
4795 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4817 $as_echo "$ac_ct_GNATMAKE" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4823 if test "x$ac_ct_GNATMAKE" = x; then
4824 GNATMAKE="no"
4825 else
4826 case $cross_compiling:$ac_tool_warned in
4827 yes:)
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830 ac_tool_warned=yes ;;
4831 esac
4832 GNATMAKE=$ac_ct_GNATMAKE
4834 else
4835 GNATMAKE="$ac_cv_prog_GNATMAKE"
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4839 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4840 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat >conftest.adb <<EOF
4844 procedure conftest is begin null; end conftest;
4846 acx_cv_cc_gcc_supports_ada=no
4847 # There is a bug in old released versions of GCC which causes the
4848 # driver to exit successfully when the appropriate language module
4849 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4850 # Therefore we must check for the error message as well as an
4851 # unsuccessful exit.
4852 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4853 # given a .adb file, but produce no object file. So we must check
4854 # if an object file was really produced to guard against this.
4855 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4856 if test x"$errors" = x && test -f conftest.$ac_objext; then
4857 acx_cv_cc_gcc_supports_ada=yes
4859 rm -f conftest.*
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4862 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4864 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4865 have_gnat=yes
4866 else
4867 have_gnat=no
4871 # autoconf is lame and doesn't give us any substitution variable for this.
4872 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4873 NO_MINUS_C_MINUS_O=yes
4874 else
4875 OUTPUT_OPTION='-o $@'
4880 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4881 # optimizations to be activated explicitly by the toplevel.
4882 case "$CC" in
4883 */prev-gcc/xgcc*) ;;
4884 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4885 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4886 esac
4890 # Determine PICFLAG for target gnatlib.
4895 case "${target}" in
4896 # PIC is the default on some targets or must not be used.
4897 *-*-darwin*)
4898 # PIC is the default on this platform
4899 # Common symbols not allowed in MH_DYLIB files
4900 PICFLAG_FOR_TARGET=-fno-common
4902 alpha*-dec-osf5*)
4903 # PIC is the default.
4905 hppa*64*-*-hpux*)
4906 # PIC is the default for 64-bit PA HP-UX.
4908 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4910 i[34567]86-*-interix[3-9]*)
4911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4912 # Instead, we relocate shared libraries at runtime.
4914 i[34567]86-*-nto-qnx*)
4915 # QNX uses GNU C++, but need to define -shared option too, otherwise
4916 # it will coredump.
4917 PICFLAG_FOR_TARGET='-fPIC -shared'
4919 i[34567]86-pc-msdosdjgpp*)
4920 # DJGPP does not support shared libraries at all.
4922 ia64*-*-hpux*)
4923 # On IA64 HP-UX, PIC is the default but the pic flag
4924 # sets the default TLS model and affects inlining.
4925 PICFLAG_FOR_TARGET=-fPIC
4927 mips-sgi-irix6*)
4928 # PIC is the default.
4930 rs6000-ibm-aix* | powerpc-ibm-aix*)
4931 # All AIX code is PIC.
4934 # Some targets support both -fPIC and -fpic, but prefer the latter.
4935 # FIXME: Why?
4936 i[34567]86-*-* | x86_64-*-*)
4937 PICFLAG_FOR_TARGET=-fpic
4939 m68k-*-*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # FIXME: Override -fPIC default in libgcc only?
4943 sh-*-linux* | sh[2346lbe]*-*-linux*)
4944 PICFLAG_FOR_TARGET=-fpic
4946 # FIXME: Simplify to sh*-*-netbsd*?
4947 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4948 sh64-*-netbsd* | sh64l*-*-netbsd*)
4949 PICFLAG_FOR_TARGET=-fpic
4951 # Default to -fPIC unless specified otherwise.
4953 PICFLAG_FOR_TARGET=-fPIC
4955 esac
4957 # If the user explicitly uses -fpic/-fPIC, keep that.
4958 case "${CFLAGS_FOR_TARGET}" in
4959 *-fpic*)
4960 PICFLAG_FOR_TARGET=-fpic
4962 *-fPIC*)
4963 PICFLAG_FOR_TARGET=-fPIC
4965 esac
4969 # -------------------------
4970 # Check C compiler features
4971 # -------------------------
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4981 # On Suns, sometimes $CPP names a directory.
4982 if test -n "$CPP" && test -d "$CPP"; then
4983 CPP=
4985 if test -z "$CPP"; then
4986 if test "${ac_cv_prog_CPP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 # Double quotes because CPP needs to be expanded
4990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992 ac_preproc_ok=false
4993 for ac_c_preproc_warn_flag in '' yes
4995 # Use a header file that comes with gcc, so configuring glibc
4996 # with a fresh cross-compiler works.
4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998 # <limits.h> exists even on freestanding compilers.
4999 # On the NeXT, cc -E runs the code through the compiler's parser,
5000 # not just through cpp. "Syntax error" is here to catch this case.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 #ifdef __STDC__
5004 # include <limits.h>
5005 #else
5006 # include <assert.h>
5007 #endif
5008 Syntax error
5009 _ACEOF
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5012 else
5013 # Broken: fails on valid input.
5014 continue
5016 rm -f conftest.err conftest.$ac_ext
5018 # OK, works on sane cases. Now check whether nonexistent headers
5019 # can be detected and how.
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <ac_nonexistent.h>
5023 _ACEOF
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5025 # Broken: success on invalid input.
5026 continue
5027 else
5028 # Passes both tests.
5029 ac_preproc_ok=:
5030 break
5032 rm -f conftest.err conftest.$ac_ext
5034 done
5035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5036 rm -f conftest.err conftest.$ac_ext
5037 if $ac_preproc_ok; then :
5038 break
5041 done
5042 ac_cv_prog_CPP=$CPP
5045 CPP=$ac_cv_prog_CPP
5046 else
5047 ac_cv_prog_CPP=$CPP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5050 $as_echo "$CPP" >&6; }
5051 ac_preproc_ok=false
5052 for ac_c_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #ifdef __STDC__
5063 # include <limits.h>
5064 #else
5065 # include <assert.h>
5066 #endif
5067 Syntax error
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5071 else
5072 # Broken: fails on valid input.
5073 continue
5075 rm -f conftest.err conftest.$ac_ext
5077 # OK, works on sane cases. Now check whether nonexistent headers
5078 # can be detected and how.
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <ac_nonexistent.h>
5082 _ACEOF
5083 if ac_fn_c_try_cpp "$LINENO"; then :
5084 # Broken: success on invalid input.
5085 continue
5086 else
5087 # Passes both tests.
5088 ac_preproc_ok=:
5089 break
5091 rm -f conftest.err conftest.$ac_ext
5093 done
5094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5095 rm -f conftest.err conftest.$ac_ext
5096 if $ac_preproc_ok; then :
5098 else
5099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5101 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5102 See \`config.log' for more details." "$LINENO" 5; }
5105 ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5114 if test "${ac_cv_path_GREP+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -z "$GREP"; then
5118 ac_path_GREP_found=false
5119 # Loop through the user's path and test for each of PROGNAME-LIST
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_prog in grep ggrep; do
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5129 # Check for GNU ac_path_GREP and select it if it is found.
5130 # Check for GNU $ac_path_GREP
5131 case `"$ac_path_GREP" --version 2>&1` in
5132 *GNU*)
5133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5135 ac_count=0
5136 $as_echo_n 0123456789 >"conftest.in"
5137 while :
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 $as_echo 'GREP' >> "conftest.nl"
5143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145 as_fn_arith $ac_count + 1 && ac_count=$as_val
5146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_GREP="$ac_path_GREP"
5149 ac_path_GREP_max=$ac_count
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5153 done
5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 esac
5157 $ac_path_GREP_found && break 3
5158 done
5159 done
5160 done
5161 IFS=$as_save_IFS
5162 if test -z "$ac_cv_path_GREP"; then
5163 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165 else
5166 ac_cv_path_GREP=$GREP
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5171 $as_echo "$ac_cv_path_GREP" >&6; }
5172 GREP="$ac_cv_path_GREP"
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5176 $as_echo_n "checking for egrep... " >&6; }
5177 if test "${ac_cv_path_EGREP+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5181 then ac_cv_path_EGREP="$GREP -E"
5182 else
5183 if test -z "$EGREP"; then
5184 ac_path_EGREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in egrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5195 # Check for GNU ac_path_EGREP and select it if it is found.
5196 # Check for GNU $ac_path_EGREP
5197 case `"$ac_path_EGREP" --version 2>&1` in
5198 *GNU*)
5199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5201 ac_count=0
5202 $as_echo_n 0123456789 >"conftest.in"
5203 while :
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'EGREP' >> "conftest.nl"
5209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_EGREP="$ac_path_EGREP"
5215 ac_path_EGREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5219 done
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5221 esac
5223 $ac_path_EGREP_found && break 3
5224 done
5225 done
5226 done
5227 IFS=$as_save_IFS
5228 if test -z "$ac_cv_path_EGREP"; then
5229 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5231 else
5232 ac_cv_path_EGREP=$EGREP
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5238 $as_echo "$ac_cv_path_EGREP" >&6; }
5239 EGREP="$ac_cv_path_EGREP"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5243 $as_echo_n "checking for ANSI C header files... " >&6; }
5244 if test "${ac_cv_header_stdc+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <stdlib.h>
5250 #include <stdarg.h>
5251 #include <string.h>
5252 #include <float.h>
5255 main ()
5259 return 0;
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_cv_header_stdc=yes
5264 else
5265 ac_cv_header_stdc=no
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5273 #include <string.h>
5275 _ACEOF
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "memchr" >/dev/null 2>&1; then :
5279 else
5280 ac_cv_header_stdc=no
5282 rm -f conftest*
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <stdlib.h>
5292 _ACEOF
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "free" >/dev/null 2>&1; then :
5296 else
5297 ac_cv_header_stdc=no
5299 rm -f conftest*
5303 if test $ac_cv_header_stdc = yes; then
5304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5305 if test "$cross_compiling" = yes; then :
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5310 #include <ctype.h>
5311 #include <stdlib.h>
5312 #if ((' ' & 0x0FF) == 0x020)
5313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 #else
5316 # define ISLOWER(c) \
5317 (('a' <= (c) && (c) <= 'i') \
5318 || ('j' <= (c) && (c) <= 'r') \
5319 || ('s' <= (c) && (c) <= 'z'))
5320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5321 #endif
5323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5325 main ()
5327 int i;
5328 for (i = 0; i < 256; i++)
5329 if (XOR (islower (i), ISLOWER (i))
5330 || toupper (i) != TOUPPER (i))
5331 return 2;
5332 return 0;
5334 _ACEOF
5335 if ac_fn_c_try_run "$LINENO"; then :
5337 else
5338 ac_cv_header_stdc=no
5340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5341 conftest.$ac_objext conftest.beam conftest.$ac_ext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5347 $as_echo "$ac_cv_header_stdc" >&6; }
5348 if test $ac_cv_header_stdc = yes; then
5350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5356 inttypes.h stdint.h unistd.h
5357 do :
5358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5361 eval as_val=\$$as_ac_Header
5362 if test "x$as_val" = x""yes; then :
5363 cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5369 done
5373 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5374 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5375 MINIX=yes
5376 else
5377 MINIX=
5381 if test "$MINIX" = yes; then
5383 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5386 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5389 $as_echo "#define _MINIX 1" >>confdefs.h
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5395 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5396 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 # define __EXTENSIONS__ 1
5403 $ac_includes_default
5405 main ()
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_safe_to_define___extensions__=yes
5414 else
5415 ac_cv_safe_to_define___extensions__=no
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5420 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5421 test $ac_cv_safe_to_define___extensions__ = yes &&
5422 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5424 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5428 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5430 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5440 # On Suns, sometimes $CPP names a directory.
5441 if test -n "$CPP" && test -d "$CPP"; then
5442 CPP=
5444 if test -z "$CPP"; then
5445 if test "${ac_cv_prog_CPP+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 # Double quotes because CPP needs to be expanded
5449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5451 ac_preproc_ok=false
5452 for ac_c_preproc_warn_flag in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 #ifdef __STDC__
5463 # include <limits.h>
5464 #else
5465 # include <assert.h>
5466 #endif
5467 Syntax error
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5471 else
5472 # Broken: fails on valid input.
5473 continue
5475 rm -f conftest.err conftest.$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"; then :
5484 # Broken: success on invalid input.
5485 continue
5486 else
5487 # Passes both tests.
5488 ac_preproc_ok=:
5489 break
5491 rm -f conftest.err conftest.$ac_ext
5493 done
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.$ac_ext
5496 if $ac_preproc_ok; then :
5497 break
5500 done
5501 ac_cv_prog_CPP=$CPP
5504 CPP=$ac_cv_prog_CPP
5505 else
5506 ac_cv_prog_CPP=$CPP
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5509 $as_echo "$CPP" >&6; }
5510 ac_preproc_ok=false
5511 for ac_c_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526 Syntax error
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5530 else
5531 # Broken: fails on valid input.
5532 continue
5534 rm -f conftest.err conftest.$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5543 # Broken: success on invalid input.
5544 continue
5545 else
5546 # Passes both tests.
5547 ac_preproc_ok=:
5548 break
5550 rm -f conftest.err conftest.$ac_ext
5552 done
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5557 else
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_error "C preprocessor \"$CPP\" fails sanity check
5561 See \`config.log' for more details." "$LINENO" 5; }
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5571 $as_echo_n "checking for inline... " >&6; }
5572 if test "${ac_cv_c_inline+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 ac_cv_c_inline=no
5576 for ac_kw in inline __inline__ __inline; do
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #ifndef __cplusplus
5580 typedef int foo_t;
5581 static $ac_kw foo_t static_foo () {return 0; }
5582 $ac_kw foo_t foo () {return 0; }
5583 #endif
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_c_inline=$ac_kw
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 test "$ac_cv_c_inline" != no && break
5591 done
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5595 $as_echo "$ac_cv_c_inline" >&6; }
5597 case $ac_cv_c_inline in
5598 inline | yes) ;;
5600 case $ac_cv_c_inline in
5601 no) ac_val=;;
5602 *) ac_val=$ac_cv_c_inline;;
5603 esac
5604 cat >>confdefs.h <<_ACEOF
5605 #ifndef __cplusplus
5606 #define inline $ac_val
5607 #endif
5608 _ACEOF
5610 esac
5613 # Check whether --enable-largefile was given.
5614 if test "${enable_largefile+set}" = set; then :
5615 enableval=$enable_largefile;
5618 if test "$enable_largefile" != no; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5621 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5622 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 ac_cv_sys_largefile_CC=no
5626 if test "$GCC" != yes; then
5627 ac_save_CC=$CC
5628 while :; do
5629 # IRIX 6.2 and later do not support large files by default,
5630 # so use the C compiler's -n32 option if that helps.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5641 ? 1 : -1];
5643 main ()
5647 return 0;
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 break
5653 rm -f core conftest.err conftest.$ac_objext
5654 CC="$CC -n32"
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_largefile_CC=' -n32'; break
5658 rm -f core conftest.err conftest.$ac_objext
5659 break
5660 done
5661 CC=$ac_save_CC
5662 rm -f conftest.$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5667 if test "$ac_cv_sys_largefile_CC" != no; then
5668 CC=$CC$ac_cv_sys_largefile_CC
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 while :; do
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 /* Check that off_t can represent 2**63 - 1 correctly.
5681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5682 since some C++ compilers masquerading as C compilers
5683 incorrectly reject 9223372036854775807. */
5684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5686 && LARGE_OFF_T % 2147483647 == 1)
5687 ? 1 : -1];
5689 main ()
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_sys_file_offset_bits=no; break
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #define _FILE_OFFSET_BITS 64
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5711 ? 1 : -1];
5713 main ()
5717 return 0;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_cv_sys_file_offset_bits=64; break
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 ac_cv_sys_file_offset_bits=unknown
5725 break
5726 done
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5730 case $ac_cv_sys_file_offset_bits in #(
5731 no | unknown) ;;
5733 cat >>confdefs.h <<_ACEOF
5734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5735 _ACEOF
5737 esac
5738 rm -rf conftest*
5739 if test $ac_cv_sys_file_offset_bits = unknown; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5742 if test "${ac_cv_sys_large_files+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 while :; do
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_sys_large_files=no; break
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #define _LARGE_FILES 1
5772 #include <sys/types.h>
5773 /* Check that off_t can represent 2**63 - 1 correctly.
5774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 since some C++ compilers masquerading as C compilers
5776 incorrectly reject 9223372036854775807. */
5777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5779 && LARGE_OFF_T % 2147483647 == 1)
5780 ? 1 : -1];
5782 main ()
5786 return 0;
5788 _ACEOF
5789 if ac_fn_c_try_compile "$LINENO"; then :
5790 ac_cv_sys_large_files=1; break
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 ac_cv_sys_large_files=unknown
5794 break
5795 done
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5798 $as_echo "$ac_cv_sys_large_files" >&6; }
5799 case $ac_cv_sys_large_files in #(
5800 no | unknown) ;;
5802 cat >>confdefs.h <<_ACEOF
5803 #define _LARGE_FILES $ac_cv_sys_large_files
5804 _ACEOF
5806 esac
5807 rm -rf conftest*
5812 # sizeof(char) is 1 by definition.
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5818 $as_echo_n "checking size of void *... " >&6; }
5819 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5824 else
5825 if test "$ac_cv_type_void_p" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status 77
5829 as_fn_error "cannot compute sizeof (void *)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5831 else
5832 ac_cv_sizeof_void_p=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5838 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5842 cat >>confdefs.h <<_ACEOF
5843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5844 _ACEOF
5847 # The cast to long int works around a bug in the HP C Compiler
5848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5850 # This bug is HP SR number 8606223364.
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5852 $as_echo_n "checking size of short... " >&6; }
5853 if test "${ac_cv_sizeof_short+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5858 else
5859 if test "$ac_cv_type_short" = yes; then
5860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5862 { as_fn_set_status 77
5863 as_fn_error "cannot compute sizeof (short)
5864 See \`config.log' for more details." "$LINENO" 5; }; }
5865 else
5866 ac_cv_sizeof_short=0
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5872 $as_echo "$ac_cv_sizeof_short" >&6; }
5876 cat >>confdefs.h <<_ACEOF
5877 #define SIZEOF_SHORT $ac_cv_sizeof_short
5878 _ACEOF
5881 # The cast to long int works around a bug in the HP C Compiler
5882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5884 # This bug is HP SR number 8606223364.
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5886 $as_echo_n "checking size of int... " >&6; }
5887 if test "${ac_cv_sizeof_int+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5892 else
5893 if test "$ac_cv_type_int" = yes; then
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status 77
5897 as_fn_error "cannot compute sizeof (int)
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5899 else
5900 ac_cv_sizeof_int=0
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5906 $as_echo "$ac_cv_sizeof_int" >&6; }
5910 cat >>confdefs.h <<_ACEOF
5911 #define SIZEOF_INT $ac_cv_sizeof_int
5912 _ACEOF
5915 # The cast to long int works around a bug in the HP C Compiler
5916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5918 # This bug is HP SR number 8606223364.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5920 $as_echo_n "checking size of long... " >&6; }
5921 if test "${ac_cv_sizeof_long+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5926 else
5927 if test "$ac_cv_type_long" = yes; then
5928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5930 { as_fn_set_status 77
5931 as_fn_error "cannot compute sizeof (long)
5932 See \`config.log' for more details." "$LINENO" 5; }; }
5933 else
5934 ac_cv_sizeof_long=0
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5940 $as_echo "$ac_cv_sizeof_long" >&6; }
5944 cat >>confdefs.h <<_ACEOF
5945 #define SIZEOF_LONG $ac_cv_sizeof_long
5946 _ACEOF
5949 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5950 if test "x$ac_cv_type_long_long" = x""yes; then :
5952 cat >>confdefs.h <<_ACEOF
5953 #define HAVE_LONG_LONG 1
5954 _ACEOF
5956 # The cast to long int works around a bug in the HP C Compiler
5957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5959 # This bug is HP SR number 8606223364.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5961 $as_echo_n "checking size of long long... " >&6; }
5962 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5967 else
5968 if test "$ac_cv_type_long_long" = yes; then
5969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { as_fn_set_status 77
5972 as_fn_error "cannot compute sizeof (long long)
5973 See \`config.log' for more details." "$LINENO" 5; }; }
5974 else
5975 ac_cv_sizeof_long_long=0
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5981 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5987 _ACEOF
5992 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5993 if test "x$ac_cv_type___int64" = x""yes; then :
5995 cat >>confdefs.h <<_ACEOF
5996 #define HAVE___INT64 1
5997 _ACEOF
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6004 $as_echo_n "checking size of __int64... " >&6; }
6005 if test "${ac_cv_sizeof___int64+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6010 else
6011 if test "$ac_cv_type___int64" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status 77
6015 as_fn_error "cannot compute sizeof (__int64)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6017 else
6018 ac_cv_sizeof___int64=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6024 $as_echo "$ac_cv_sizeof___int64" >&6; }
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6030 _ACEOF
6035 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6036 case $ac_cv_c_int8_t in #(
6037 no|yes) ;; #(
6040 cat >>confdefs.h <<_ACEOF
6041 #define int8_t $ac_cv_c_int8_t
6042 _ACEOF
6044 esac
6046 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6047 case $ac_cv_c_int16_t in #(
6048 no|yes) ;; #(
6051 cat >>confdefs.h <<_ACEOF
6052 #define int16_t $ac_cv_c_int16_t
6053 _ACEOF
6055 esac
6057 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6058 case $ac_cv_c_int32_t in #(
6059 no|yes) ;; #(
6062 cat >>confdefs.h <<_ACEOF
6063 #define int32_t $ac_cv_c_int32_t
6064 _ACEOF
6066 esac
6068 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6069 case $ac_cv_c_int64_t in #(
6070 no|yes) ;; #(
6073 cat >>confdefs.h <<_ACEOF
6074 #define int64_t $ac_cv_c_int64_t
6075 _ACEOF
6077 esac
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6081 $as_echo_n "checking for long long int... " >&6; }
6082 if test "${ac_cv_type_long_long_int+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6088 /* For now, do not test the preprocessor; as of 2007 there are too many
6089 implementations with broken preprocessors. Perhaps this can
6090 be revisited in 2012. In the meantime, code should not expect
6091 #if to work with literals wider than 32 bits. */
6092 /* Test literals. */
6093 long long int ll = 9223372036854775807ll;
6094 long long int nll = -9223372036854775807LL;
6095 unsigned long long int ull = 18446744073709551615ULL;
6096 /* Test constant expressions. */
6097 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6098 ? 1 : -1)];
6099 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6100 ? 1 : -1)];
6101 int i = 63;
6103 main ()
6105 /* Test availability of runtime routines for shift and division. */
6106 long long int llmax = 9223372036854775807ll;
6107 unsigned long long int ullmax = 18446744073709551615ull;
6108 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6109 | (llmax / ll) | (llmax % ll)
6110 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6111 | (ullmax / ull) | (ullmax % ull));
6113 return 0;
6116 _ACEOF
6117 if ac_fn_c_try_link "$LINENO"; then :
6118 if test "$cross_compiling" = yes; then :
6119 ac_cv_type_long_long_int=yes
6120 else
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6123 #include <limits.h>
6124 #ifndef LLONG_MAX
6125 # define HALF \
6126 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6127 # define LLONG_MAX (HALF - 1 + HALF)
6128 #endif
6130 main ()
6132 long long int n = 1;
6133 int i;
6134 for (i = 0; ; i++)
6136 long long int m = n << i;
6137 if (m >> i != n)
6138 return 1;
6139 if (LLONG_MAX / 2 < m)
6140 break;
6142 return 0;
6144 return 0;
6146 _ACEOF
6147 if ac_fn_c_try_run "$LINENO"; then :
6148 ac_cv_type_long_long_int=yes
6149 else
6150 ac_cv_type_long_long_int=no
6152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6153 conftest.$ac_objext conftest.beam conftest.$ac_ext
6156 else
6157 ac_cv_type_long_long_int=no
6159 rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6163 $as_echo "$ac_cv_type_long_long_int" >&6; }
6164 if test $ac_cv_type_long_long_int = yes; then
6166 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6172 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6173 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6175 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6177 else
6178 test $ac_cv_type_long_long_int = yes \
6179 && ac_type='long long int' \
6180 || ac_type='long int'
6182 cat >>confdefs.h <<_ACEOF
6183 #define intmax_t $ac_type
6184 _ACEOF
6190 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6191 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6193 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6195 else
6196 for ac_type in 'int' 'long int' 'long long int'; do
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 $ac_includes_default
6201 main ()
6203 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6204 test_array [0] = 0
6207 return 0;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define intptr_t $ac_type
6214 _ACEOF
6216 ac_type=
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 test -z "$ac_type" && break
6220 done
6224 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6225 case $ac_cv_c_uint8_t in #(
6226 no|yes) ;; #(
6229 $as_echo "#define _UINT8_T 1" >>confdefs.h
6232 cat >>confdefs.h <<_ACEOF
6233 #define uint8_t $ac_cv_c_uint8_t
6234 _ACEOF
6236 esac
6238 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6239 case $ac_cv_c_uint16_t in #(
6240 no|yes) ;; #(
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint16_t $ac_cv_c_uint16_t
6246 _ACEOF
6248 esac
6250 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6251 case $ac_cv_c_uint32_t in #(
6252 no|yes) ;; #(
6255 $as_echo "#define _UINT32_T 1" >>confdefs.h
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint32_t $ac_cv_c_uint32_t
6260 _ACEOF
6262 esac
6264 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6265 case $ac_cv_c_uint64_t in #(
6266 no|yes) ;; #(
6269 $as_echo "#define _UINT64_T 1" >>confdefs.h
6272 cat >>confdefs.h <<_ACEOF
6273 #define uint64_t $ac_cv_c_uint64_t
6274 _ACEOF
6276 esac
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6280 $as_echo_n "checking for unsigned long long int... " >&6; }
6281 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6287 /* For now, do not test the preprocessor; as of 2007 there are too many
6288 implementations with broken preprocessors. Perhaps this can
6289 be revisited in 2012. In the meantime, code should not expect
6290 #if to work with literals wider than 32 bits. */
6291 /* Test literals. */
6292 long long int ll = 9223372036854775807ll;
6293 long long int nll = -9223372036854775807LL;
6294 unsigned long long int ull = 18446744073709551615ULL;
6295 /* Test constant expressions. */
6296 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6297 ? 1 : -1)];
6298 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6299 ? 1 : -1)];
6300 int i = 63;
6302 main ()
6304 /* Test availability of runtime routines for shift and division. */
6305 long long int llmax = 9223372036854775807ll;
6306 unsigned long long int ullmax = 18446744073709551615ull;
6307 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6308 | (llmax / ll) | (llmax % ll)
6309 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6310 | (ullmax / ull) | (ullmax % ull));
6312 return 0;
6315 _ACEOF
6316 if ac_fn_c_try_link "$LINENO"; then :
6317 ac_cv_type_unsigned_long_long_int=yes
6318 else
6319 ac_cv_type_unsigned_long_long_int=no
6321 rm -f core conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6325 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6326 if test $ac_cv_type_unsigned_long_long_int = yes; then
6328 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6334 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6335 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6337 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6339 else
6340 test $ac_cv_type_unsigned_long_long_int = yes \
6341 && ac_type='unsigned long long int' \
6342 || ac_type='unsigned long int'
6344 cat >>confdefs.h <<_ACEOF
6345 #define uintmax_t $ac_type
6346 _ACEOF
6352 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6355 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6357 else
6358 for ac_type in 'unsigned int' 'unsigned long int' \
6359 'unsigned long long int'; do
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 $ac_includes_default
6364 main ()
6366 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6367 test_array [0] = 0
6370 return 0;
6372 _ACEOF
6373 if ac_fn_c_try_compile "$LINENO"; then :
6375 cat >>confdefs.h <<_ACEOF
6376 #define uintptr_t $ac_type
6377 _ACEOF
6379 ac_type=
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 test -z "$ac_type" && break
6383 done
6400 # ---------------------
6401 # Warnings and checking
6402 # ---------------------
6404 # Check $CC warning features (if it's GCC).
6405 # We want to use -pedantic, but we don't want warnings about
6406 # * 'long long'
6407 # * variadic macros
6408 # * overlong strings
6409 # * C++11 narrowing conversions in { }
6410 # So, we only use -pedantic if we can disable those warnings.
6412 loose_warn=
6413 save_CFLAGS="$CFLAGS"
6414 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6415 # Do the check with the no- prefix removed since gcc silently
6416 # accepts any -Wno-* option on purpose
6417 case $real_option in
6418 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6419 *) option=$real_option ;;
6420 esac
6421 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6424 $as_echo_n "checking whether $CC supports $option... " >&6; }
6425 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 CFLAGS="$option"
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6433 main ()
6437 return 0;
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 eval "$as_acx_Woption=yes"
6442 else
6443 eval "$as_acx_Woption=no"
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 eval ac_res=\$$as_acx_Woption
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6450 $as_echo "$ac_res" >&6; }
6451 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6452 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6454 done
6455 CFLAGS="$save_CFLAGS"
6457 c_loose_warn=
6458 save_CFLAGS="$CFLAGS"
6459 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6460 # Do the check with the no- prefix removed since gcc silently
6461 # accepts any -Wno-* option on purpose
6462 case $real_option in
6463 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6464 *) option=$real_option ;;
6465 esac
6466 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6469 $as_echo_n "checking whether $CC supports $option... " >&6; }
6470 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 CFLAGS="$option"
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6478 main ()
6482 return 0;
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"; then :
6486 eval "$as_acx_Woption=yes"
6487 else
6488 eval "$as_acx_Woption=no"
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 eval ac_res=\$$as_acx_Woption
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6495 $as_echo "$ac_res" >&6; }
6496 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6497 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6499 done
6500 CFLAGS="$save_CFLAGS"
6502 strict_warn=
6503 save_CFLAGS="$CFLAGS"
6504 for real_option in -Wmissing-format-attribute; do
6505 # Do the check with the no- prefix removed since gcc silently
6506 # accepts any -Wno-* option on purpose
6507 case $real_option in
6508 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6509 *) option=$real_option ;;
6510 esac
6511 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6514 $as_echo_n "checking whether $CC supports $option... " >&6; }
6515 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 CFLAGS="$option"
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 eval "$as_acx_Woption=yes"
6532 else
6533 eval "$as_acx_Woption=no"
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 eval ac_res=\$$as_acx_Woption
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6540 $as_echo "$ac_res" >&6; }
6541 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6542 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6544 done
6545 CFLAGS="$save_CFLAGS"
6547 c_strict_warn=
6548 save_CFLAGS="$CFLAGS"
6549 for real_option in -Wold-style-definition -Wc++-compat; do
6550 # Do the check with the no- prefix removed since gcc silently
6551 # accepts any -Wno-* option on purpose
6552 case $real_option in
6553 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6554 *) option=$real_option ;;
6555 esac
6556 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6559 $as_echo_n "checking whether $CC supports $option... " >&6; }
6560 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 CFLAGS="$option"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 main ()
6572 return 0;
6574 _ACEOF
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 eval "$as_acx_Woption=yes"
6577 else
6578 eval "$as_acx_Woption=no"
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583 eval ac_res=\$$as_acx_Woption
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6585 $as_echo "$ac_res" >&6; }
6586 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6587 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6589 done
6590 CFLAGS="$save_CFLAGS"
6592 # Do the check with the no- prefix removed from the warning options
6593 # since gcc silently accepts any -Wno-* option on purpose
6594 if test "$GCC" = yes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6596 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6597 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 save_CFLAGS="$CFLAGS"
6601 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6606 main ()
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_compile "$LINENO"; then :
6614 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6615 else
6616 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 CFLAGS="$save_CFLAGS"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6622 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6623 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6624 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6629 # Check whether --enable-werror-always was given.
6630 if test "${enable_werror_always+set}" = set; then :
6631 enableval=$enable_werror_always;
6632 else
6633 enable_werror_always=no
6636 if test $enable_werror_always = yes; then :
6637 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6642 # The above macros do nothing if the compiler is not GCC. However, the
6643 # Makefile has more goo to add other flags, so these variables are used
6644 # to enable warnings only for GCC.
6645 warn_cflags=
6646 warn_cxxflags=
6647 if test "x$GCC" = "xyes"; then
6648 warn_cflags='$(GCC_WARN_CFLAGS)'
6649 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6654 # Disable exceptions and RTTI if building with g++
6655 noexception_flags=
6656 save_CFLAGS="$CFLAGS"
6657 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6658 # Do the check with the no- prefix removed since gcc silently
6659 # accepts any -Wno-* option on purpose
6660 case $real_option in
6661 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6662 *) option=$real_option ;;
6663 esac
6664 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6667 $as_echo_n "checking whether $CC supports $option... " >&6; }
6668 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 CFLAGS="$option"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6676 main ()
6680 return 0;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 eval "$as_acx_Woption=yes"
6685 else
6686 eval "$as_acx_Woption=no"
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 eval ac_res=\$$as_acx_Woption
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6693 $as_echo "$ac_res" >&6; }
6694 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6695 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6697 done
6698 CFLAGS="$save_CFLAGS"
6701 # Enable expensive internal checks
6702 is_release=
6703 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6704 is_release=yes
6707 # Check whether --enable-checking was given.
6708 if test "${enable_checking+set}" = set; then :
6709 enableval=$enable_checking; ac_checking_flags="${enableval}"
6710 else
6712 # Determine the default checks.
6713 if test x$is_release = x ; then
6714 ac_checking_flags=yes
6715 else
6716 ac_checking_flags=release
6720 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6721 for check in release $ac_checking_flags
6723 case $check in
6724 # these set all the flags to specific states
6725 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking=1 ;
6727 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking= ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6738 ac_fold_checking=1 ; ac_gc_checking=1 ;
6739 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6740 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6741 ac_tree_checking=1 ; ac_valgrind_checking= ;
6742 ac_types_checking=1 ;;
6743 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6744 ac_fold_checking= ; ac_gc_checking= ;
6745 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6746 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6747 ac_tree_checking= ; ac_valgrind_checking= ;
6748 ac_types_checking= ;;
6749 # these enable particular checks
6750 assert) ac_assert_checking=1 ;;
6751 df) ac_df_checking=1 ;;
6752 fold) ac_fold_checking=1 ;;
6753 gc) ac_gc_checking=1 ;;
6754 gcac) ac_gc_always_collect=1 ;;
6755 gimple) ac_gimple_checking=1 ;;
6756 misc) ac_checking=1 ;;
6757 rtl) ac_rtl_checking=1 ;;
6758 rtlflag) ac_rtlflag_checking=1 ;;
6759 runtime) ac_runtime_checking=1 ;;
6760 tree) ac_tree_checking=1 ;;
6761 types) ac_types_checking=1 ;;
6762 valgrind) ac_valgrind_checking=1 ;;
6763 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6764 esac
6765 done
6766 IFS="$ac_save_IFS"
6768 nocommon_flag=""
6769 if test x$ac_checking != x ; then
6771 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6773 nocommon_flag=-fno-common
6776 if test x$ac_df_checking != x ; then
6778 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6781 if test x$ac_assert_checking != x ; then
6783 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6786 if test x$ac_gimple_checking != x ; then
6788 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6792 if test x$ac_runtime_checking != x ; then
6794 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6797 if test x$ac_tree_checking != x ; then
6799 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6801 TREEBROWSER=tree-browser.o
6802 TREECHECKING=yes
6804 if test x$ac_types_checking != x ; then
6806 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6811 if test x$ac_rtl_checking != x ; then
6813 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6816 if test x$ac_rtlflag_checking != x ; then
6818 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6821 if test x$ac_gc_checking != x ; then
6823 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6826 if test x$ac_gc_always_collect != x ; then
6828 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6831 if test x$ac_fold_checking != x ; then
6833 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6836 valgrind_path_defines=
6837 valgrind_command=
6839 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6840 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6841 have_valgrind_h=yes
6842 else
6843 have_valgrind_h=no
6848 if test x$ac_valgrind_checking != x ; then
6849 # It is certainly possible that there's valgrind but no valgrind.h.
6850 # GCC relies on making annotations so we must have both.
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6852 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <valgrind/memcheck.h>
6856 #ifndef VALGRIND_DISCARD
6857 #error VALGRIND_DISCARD not defined
6858 #endif
6859 _ACEOF
6860 if ac_fn_c_try_cpp "$LINENO"; then :
6861 gcc_cv_header_valgrind_memcheck_h=yes
6862 else
6863 gcc_cv_header_valgrind_memcheck_h=no
6865 rm -f conftest.err conftest.$ac_ext
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6867 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6869 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <memcheck.h>
6873 #ifndef VALGRIND_DISCARD
6874 #error VALGRIND_DISCARD not defined
6875 #endif
6876 _ACEOF
6877 if ac_fn_c_try_cpp "$LINENO"; then :
6878 gcc_cv_header_memcheck_h=yes
6879 else
6880 gcc_cv_header_memcheck_h=no
6882 rm -f conftest.err conftest.$ac_ext
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6884 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6891 chmod +x conf$$.sh
6892 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6893 PATH_SEPARATOR=';'
6894 else
6895 PATH_SEPARATOR=:
6897 rm -f conf$$.sh
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.file <<_ASEOF
6903 #! /bin/sh
6904 exit 0
6905 _ASEOF
6906 chmod +x conf$$.file
6907 if test -x conf$$.file >/dev/null 2>&1; then
6908 ac_executable_p="test -x"
6909 else
6910 ac_executable_p="test -f"
6912 rm -f conf$$.file
6914 # Extract the first word of "valgrind", so it can be a program name with args.
6915 set dummy valgrind; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 case "$valgrind_path" in
6922 [\\/]* | ?:[\\/]*)
6923 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6926 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6927 for ac_dir in $PATH; do
6928 IFS="$ac_save_IFS"
6929 test -z "$ac_dir" && ac_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6933 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6934 break 2
6937 done
6938 done
6939 IFS="$ac_save_IFS"
6941 esac
6943 valgrind_path="$ac_cv_path_valgrind_path"
6944 if test -n "$valgrind_path"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6946 $as_echo "$valgrind_path" >&6; }
6947 else
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$valgrind_path" = "x" \
6953 || (test $have_valgrind_h = no \
6954 && test $gcc_cv_header_memcheck_h = no \
6955 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6956 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6958 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6959 valgrind_command="$valgrind_path -q"
6961 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6963 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6965 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6968 if test $gcc_cv_header_memcheck_h = yes; then
6970 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6977 # Enable code coverage collection
6978 # Check whether --enable-coverage was given.
6979 if test "${enable_coverage+set}" = set; then :
6980 enableval=$enable_coverage; case "${enableval}" in
6981 yes|noopt)
6982 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6984 opt)
6985 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6988 # a.k.a. --disable-coverage
6989 coverage_flags=""
6992 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6994 esac
6995 else
6996 coverage_flags=""
7001 # Check whether --enable-gather-detailed-mem-stats was given.
7002 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7003 enableval=$enable_gather_detailed_mem_stats;
7004 else
7005 enable_gather_detailed_mem_stats=no
7008 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7010 cat >>confdefs.h <<_ACEOF
7011 #define GATHER_STATISTICS $gather_stats
7012 _ACEOF
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7019 # With stabs
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval=$with_stabs; stabs="$with_stabs"
7024 else
7025 stabs=no
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval=$enable_multilib;
7033 else
7034 enable_multilib=yes
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto) enable_multiarch=$enableval;;
7044 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7045 esac
7046 else
7047 enable_multiarch=auto
7050 if test x${enable_multiarch} = xauto; then
7051 if test x${with_native_system_header_dir} != x; then
7052 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7053 enable_multiarch=no
7055 if test x$host != x$target && test "x$with_sysroot" = x; then
7056 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7057 enable_multiarch=no
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7084 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7086 esac
7088 else
7090 case $target in
7091 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7092 i?86*-*-gnu* | \
7093 i?86*-*-mingw* | x86_64*-*-mingw* | \
7094 i?86*-*-cygwin*)
7095 enable_decimal_float=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float=no
7102 esac
7107 # x86's use BID format instead of DPD
7108 case x$enable_decimal_float in
7109 xyes)
7110 case $target in
7111 i?86*-*-* | x86_64*-*-*)
7112 enable_decimal_float=bid
7115 enable_decimal_float=dpd
7117 esac
7118 default_decimal_float=$enable_decimal_float
7120 xno)
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float=dpd
7125 esac
7130 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h <<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7134 _ACEOF
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float=$default_decimal_float
7140 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h <<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7144 _ACEOF
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval=$enable_fixed_point;
7151 else
7153 case $target in
7154 arm*)
7155 enable_fixed_point=yes
7158 mips*-*-*)
7159 enable_fixed_point=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point=no
7166 esac
7172 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h <<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7176 _ACEOF
7179 # Enable threads
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval=$enable_threads;
7185 else
7186 enable_threads=''
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval=$enable_tls;
7193 case $enable_tls in
7194 yes | no) ;;
7195 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7197 esac
7199 else
7200 enable_tls=''
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7207 objc_boehm_gc=''
7208 else
7209 objc_boehm_gc=1
7211 else
7212 objc_boehm_gc=''
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7220 else
7221 dwarf2=no
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval=$enable_shared;
7228 case $enable_shared in
7229 yes | no) ;;
7231 enable_shared=no
7232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7233 for pkg in $enableval; do
7234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7235 enable_shared=yes
7237 done
7238 IFS="$ac_save_ifs"
7240 esac
7242 else
7243 enable_shared=yes
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* | [A-Za-z]:[\\/]*) ;;
7255 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7256 esac
7257 configured_native_system_header_dir="${withval}"
7259 else
7260 configured_native_system_header_dir=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval=$with_build_sysroot; if test x"$withval" != x ; then
7268 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7270 else
7271 SYSROOT_CFLAGS_FOR_TARGET=
7277 # Check whether --with-runtime-root-prefix was given.
7278 if test "${with_runtime_root_prefix+set}" = set; then :
7279 withval=$with_runtime_root_prefix;
7280 case ${with_runtime_root_prefix} in
7281 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7282 /*) ;;
7283 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7284 esac
7285 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7287 else
7288 RUNTIME_ROOT_PREFIX_DEFINE=""
7293 if test "x$prefix" = xNONE; then
7294 test_prefix=/usr/local
7295 else
7296 test_prefix=$prefix
7298 if test "x$exec_prefix" = xNONE; then
7299 test_exec_prefix=$test_prefix
7300 else
7301 test_exec_prefix=$exec_prefix
7305 # Check whether --with-sysroot was given.
7306 if test "${with_sysroot+set}" = set; then :
7307 withval=$with_sysroot;
7308 case ${with_sysroot} in
7309 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7310 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7311 esac
7313 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7314 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7316 case ${TARGET_SYSTEM_ROOT} in
7317 "${test_prefix}"|"${test_prefix}/"*|\
7318 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7319 '${prefix}'|'${prefix}/'*|\
7320 '${exec_prefix}'|'${exec_prefix}/'*)
7321 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7322 TARGET_SYSTEM_ROOT_DEFINE="$t"
7324 esac
7326 else
7328 TARGET_SYSTEM_ROOT=
7329 TARGET_SYSTEM_ROOT_DEFINE=
7330 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7339 # Check whether --with-specs was given.
7340 if test "${with_specs+set}" = set; then :
7341 withval=$with_specs; CONFIGURE_SPECS=$withval
7342 else
7343 CONFIGURE_SPECS=
7351 # Check whether --with-pkgversion was given.
7352 if test "${with_pkgversion+set}" = set; then :
7353 withval=$with_pkgversion; case "$withval" in
7354 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7355 no) PKGVERSION= ;;
7356 *) PKGVERSION="($withval) " ;;
7357 esac
7358 else
7359 PKGVERSION="(GCC) "
7367 # Check whether --with-bugurl was given.
7368 if test "${with_bugurl+set}" = set; then :
7369 withval=$with_bugurl; case "$withval" in
7370 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7371 no) BUGURL=
7373 *) BUGURL="$withval"
7375 esac
7376 else
7377 BUGURL="http://gcc.gnu.org/bugs.html"
7381 case ${BUGURL} in
7383 REPORT_BUGS_TO=
7384 REPORT_BUGS_TEXI=
7387 REPORT_BUGS_TO="<$BUGURL>"
7388 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7390 esac;
7395 # Sanity check enable_languages in case someone does not run the toplevel
7396 # configure # script.
7397 # Check whether --enable-languages was given.
7398 if test "${enable_languages+set}" = set; then :
7399 enableval=$enable_languages; case ,${enable_languages}, in
7400 ,,|,yes,)
7401 # go safe -- we cannot be much sure without the toplevel
7402 # configure's
7403 # analysis of which target libs are present and usable
7404 enable_languages=c
7406 *,all,*)
7407 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7409 *,c,*)
7412 enable_languages=c,${enable_languages}
7414 esac
7415 else
7416 enable_languages=c
7421 # Check whether --with-multilib-list was given.
7422 if test "${with_multilib_list+set}" = set; then :
7423 withval=$with_multilib_list; :
7424 else
7425 with_multilib_list=default
7429 # -------------------------
7430 # Checks for other programs
7431 # -------------------------
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7435 set x ${MAKE-make}
7436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7437 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat >conftest.make <<\_ACEOF
7441 SHELL = /bin/sh
7442 all:
7443 @echo '@@@%%%=$(MAKE)=@@@%%%'
7444 _ACEOF
7445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7447 *@@@%%%=?*=@@@%%%*)
7448 eval ac_cv_prog_make_${ac_make}_set=yes;;
7450 eval ac_cv_prog_make_${ac_make}_set=no;;
7451 esac
7452 rm -f conftest.make
7454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7457 SET_MAKE=
7458 else
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7460 $as_echo "no" >&6; }
7461 SET_MAKE="MAKE=${MAKE-make}"
7465 # Find some useful tools
7466 for ac_prog in gawk mawk nawk awk
7468 # Extract the first word of "$ac_prog", so it can be a program name with args.
7469 set dummy $ac_prog; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if test "${ac_cv_prog_AWK+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474 else
7475 if test -n "$AWK"; then
7476 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7477 else
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_prog_AWK="$ac_prog"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7489 done
7490 done
7491 IFS=$as_save_IFS
7495 AWK=$ac_cv_prog_AWK
7496 if test -n "$AWK"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7498 $as_echo "$AWK" >&6; }
7499 else
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7505 test -n "$AWK" && break
7506 done
7508 # We need awk to create options.c and options.h.
7509 # Bail out if it's missing.
7510 case ${AWK} in
7511 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7512 esac
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7515 $as_echo_n "checking whether ln -s works... " >&6; }
7516 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 rm -f conftestdata_t
7520 echo >conftestdata_f
7521 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7522 then
7523 gcc_cv_prog_LN_S="ln -s"
7524 else
7525 if ln conftestdata_f conftestdata_t 2>/dev/null
7526 then
7527 gcc_cv_prog_LN_S=ln
7528 else
7529 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7530 then
7531 gcc_cv_prog_LN_S="cp -p"
7532 else
7533 gcc_cv_prog_LN_S=cp
7537 rm -f conftestdata_f conftestdata_t
7540 LN_S="$gcc_cv_prog_LN_S"
7541 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7543 $as_echo "yes" >&6; }
7544 else
7545 if test "$gcc_cv_prog_LN_S" = "ln"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7547 $as_echo "no, using ln" >&6; }
7548 else
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7550 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7555 $as_echo_n "checking whether ln works... " >&6; }
7556 if test "${acx_cv_prog_LN+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 rm -f conftestdata_t
7560 echo >conftestdata_f
7561 if ln conftestdata_f conftestdata_t 2>/dev/null
7562 then
7563 acx_cv_prog_LN=ln
7564 else
7565 acx_cv_prog_LN=no
7567 rm -f conftestdata_f conftestdata_t
7570 if test $acx_cv_prog_LN = no; then
7571 LN="$LN_S"
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7573 $as_echo "no, using $LN" >&6; }
7574 else
7575 LN="$acx_cv_prog_LN"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$RANLIB"; then
7589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7602 done
7603 done
7604 IFS=$as_save_IFS
7608 RANLIB=$ac_cv_prog_RANLIB
7609 if test -n "$RANLIB"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7611 $as_echo "$RANLIB" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_RANLIB"; then
7620 ac_ct_RANLIB=$RANLIB
7621 # Extract the first word of "ranlib", so it can be a program name with args.
7622 set dummy ranlib; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$ac_ct_RANLIB"; then
7629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_ac_ct_RANLIB="ranlib"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7649 if test -n "$ac_ct_RANLIB"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7651 $as_echo "$ac_ct_RANLIB" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_RANLIB" = x; then
7658 RANLIB=":"
7659 else
7660 case $cross_compiling:$ac_tool_warned in
7661 yes:)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned=yes ;;
7665 esac
7666 RANLIB=$ac_ct_RANLIB
7668 else
7669 RANLIB="$ac_cv_prog_RANLIB"
7672 ranlib_flags=""
7675 # Find a good install program. We prefer a C program (faster),
7676 # so one script is as good as another. But avoid the broken or
7677 # incompatible versions:
7678 # SysV /etc/install, /usr/sbin/install
7679 # SunOS /usr/etc/install
7680 # IRIX /sbin/install
7681 # AIX /bin/install
7682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7684 # ./install, which can be erroneously created by make from ./install.sh.
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7686 $as_echo_n "checking for a BSD compatible install... " >&6; }
7687 if test -z "$INSTALL"; then
7688 if test "${ac_cv_path_install+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7692 for ac_dir in $PATH; do
7693 # Account for people who put trailing slashes in PATH elements.
7694 case "$ac_dir/" in
7695 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7697 # OSF1 and SCO ODT 3.0 have their own names for install.
7698 for ac_prog in ginstall scoinst install; do
7699 if test -f $ac_dir/$ac_prog; then
7700 if test $ac_prog = install &&
7701 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7702 # AIX install. It has an incompatible calling convention.
7703 # OSF/1 installbsd also uses dspmsg, but is usable.
7705 else
7706 ac_cv_path_install="$ac_dir/$ac_prog -c"
7707 break 2
7710 done
7712 esac
7713 done
7714 IFS="$ac_save_IFS"
7717 if test "${ac_cv_path_install+set}" = set; then
7718 INSTALL="$ac_cv_path_install"
7719 else
7720 # As a last resort, use the slow shell script. We don't cache a
7721 # path for INSTALL within a source directory, because that will
7722 # break other packages using the cache if that directory is
7723 # removed, or if the path is relative.
7724 INSTALL="$ac_install_sh"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7728 $as_echo "$INSTALL" >&6; }
7730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7731 # It thinks the first close brace ends the variable substitution.
7732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7737 # See if cmp has --ignore-initial.
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7739 $as_echo_n "checking for cmp's capabilities... " >&6; }
7740 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 echo abfoo >t1
7744 echo cdfoo >t2
7745 gcc_cv_prog_cmp_skip=slowcompare
7746 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7747 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7749 else
7750 gcc_cv_prog_cmp_skip=gnucompare
7753 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7754 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7755 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7757 else
7758 gcc_cv_prog_cmp_skip=fastcompare
7762 rm t1 t2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7766 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7767 make_compare_target=$gcc_cv_prog_cmp_skip
7771 # See if we have the mktemp command.
7772 # Extract the first word of "mktemp", so it can be a program name with args.
7773 set dummy mktemp; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$have_mktemp_command"; then
7780 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_prog_have_mktemp_command="yes"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7793 done
7794 done
7795 IFS=$as_save_IFS
7797 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7800 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7801 if test -n "$have_mktemp_command"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7803 $as_echo "$have_mktemp_command" >&6; }
7804 else
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7811 # See if makeinfo has been installed and is modern enough
7812 # that we can use it.
7814 # Extract the first word of "makeinfo", so it can be a program name with args.
7815 set dummy makeinfo; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 if test -n "$MAKEINFO"; then
7822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7823 else
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 for as_dir in $PATH
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_MAKEINFO="makeinfo"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7835 done
7836 done
7837 IFS=$as_save_IFS
7841 MAKEINFO=$ac_cv_prog_MAKEINFO
7842 if test -n "$MAKEINFO"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7844 $as_echo "$MAKEINFO" >&6; }
7845 else
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 if test -n "$MAKEINFO"; then
7852 # Found it, now check the version.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7854 $as_echo_n "checking for modern makeinfo... " >&6; }
7855 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7861 case $ac_prog_version in
7862 '') gcc_cv_prog_makeinfo_modern=no;;
7863 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7864 *) gcc_cv_prog_makeinfo_modern=no;;
7865 esac
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7870 else
7871 gcc_cv_prog_makeinfo_modern=no
7873 if test $gcc_cv_prog_makeinfo_modern = no; then
7874 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7877 if test $gcc_cv_prog_makeinfo_modern = no; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7879 *** Makeinfo is missing or too old.
7880 *** Info documentation will not be built." >&5
7881 $as_echo "$as_me: WARNING:
7882 *** Makeinfo is missing or too old.
7883 *** Info documentation will not be built." >&2;}
7884 BUILD_INFO=
7885 else
7886 BUILD_INFO=info
7890 # Is pod2man recent enough to regenerate manpages?
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7892 $as_echo_n "checking for recent Pod::Man... " >&6; }
7893 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7895 $as_echo "yes" >&6; }
7896 GENERATED_MANPAGES=generated-manpages
7897 else
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7900 GENERATED_MANPAGES=
7904 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7906 # How about lex?
7907 for ac_prog in flex
7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
7910 set dummy $ac_prog; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_FLEX="$ac_prog"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 FLEX=$ac_cv_prog_FLEX
7937 if test -n "$FLEX"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939 $as_echo "$FLEX" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7946 test -n "$FLEX" && break
7947 done
7948 test -n "$FLEX" || FLEX="$MISSING flex"
7951 # Bison?
7952 for ac_prog in bison
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_BISON+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$BISON"; then
7962 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_BISON="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 BISON=$ac_cv_prog_BISON
7982 if test -n "$BISON"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7984 $as_echo "$BISON" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$BISON" && break
7992 done
7993 test -n "$BISON" || BISON="$MISSING bison"
7996 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7997 # check for build == host before using them.
7999 # NM
8000 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8001 && test -d ../binutils ; then
8002 NM='${objdir}/../binutils/nm-new'
8003 else
8004 # Extract the first word of "nm", so it can be a program name with args.
8005 set dummy nm; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_NM+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$NM"; then
8012 ac_cv_prog_NM="$NM" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_NM="nm"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8027 IFS=$as_save_IFS
8029 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8032 NM=$ac_cv_prog_NM
8033 if test -n "$NM"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8035 $as_echo "$NM" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8044 # AR
8045 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8046 && test -d ../binutils ; then
8047 AR='${objdir}/../binutils/ar'
8048 else
8049 # Extract the first word of "ar", so it can be a program name with args.
8050 set dummy ar; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_AR+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR="$AR" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_AR="ar"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8074 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8077 AR=$ac_cv_prog_AR
8078 if test -n "$AR"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080 $as_echo "$AR" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8090 # --------------------
8091 # Checks for C headers
8092 # --------------------
8094 # Need to reject headers which give warnings, so that the -Werror bootstrap
8095 # works later. *sigh* This needs to come before all header checks.
8097 ac_c_preproc_warn_flag=yes
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8100 $as_echo_n "checking for ANSI C header files... " >&6; }
8101 if test "${ac_cv_header_stdc+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <stdlib.h>
8107 #include <stdarg.h>
8108 #include <string.h>
8109 #include <float.h>
8112 main ()
8116 return 0;
8118 _ACEOF
8119 if ac_fn_c_try_compile "$LINENO"; then :
8120 ac_cv_header_stdc=yes
8121 else
8122 ac_cv_header_stdc=no
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130 #include <string.h>
8132 _ACEOF
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "memchr" >/dev/null 2>&1; then :
8136 else
8137 ac_cv_header_stdc=no
8139 rm -f conftest*
8143 if test $ac_cv_header_stdc = yes; then
8144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <stdlib.h>
8149 _ACEOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 $EGREP "free" >/dev/null 2>&1; then :
8153 else
8154 ac_cv_header_stdc=no
8156 rm -f conftest*
8160 if test $ac_cv_header_stdc = yes; then
8161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162 if test "$cross_compiling" = yes; then :
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <ctype.h>
8168 #include <stdlib.h>
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 #else
8173 # define ISLOWER(c) \
8174 (('a' <= (c) && (c) <= 'i') \
8175 || ('j' <= (c) && (c) <= 'r') \
8176 || ('s' <= (c) && (c) <= 'z'))
8177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8178 #endif
8180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8182 main ()
8184 int i;
8185 for (i = 0; i < 256; i++)
8186 if (XOR (islower (i), ISLOWER (i))
8187 || toupper (i) != TOUPPER (i))
8188 return 2;
8189 return 0;
8191 _ACEOF
8192 if ac_fn_c_try_run "$LINENO"; then :
8194 else
8195 ac_cv_header_stdc=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8198 conftest.$ac_objext conftest.beam conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8204 $as_echo "$ac_cv_header_stdc" >&6; }
8205 if test $ac_cv_header_stdc = yes; then
8207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8212 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8213 if test "${ac_cv_header_time+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <sys/types.h>
8219 #include <sys/time.h>
8220 #include <time.h>
8223 main ()
8225 if ((struct tm *) 0)
8226 return 0;
8228 return 0;
8230 _ACEOF
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 ac_cv_header_time=yes
8233 else
8234 ac_cv_header_time=no
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8239 $as_echo "$ac_cv_header_time" >&6; }
8240 if test $ac_cv_header_time = yes; then
8242 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8247 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8248 if test "${gcc_cv_header_string+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <string.h>
8254 #include <strings.h>
8256 main ()
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"; then :
8264 gcc_cv_header_string=yes
8265 else
8266 gcc_cv_header_string=no
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8271 $as_echo "$gcc_cv_header_string" >&6; }
8272 if test $gcc_cv_header_string = yes; then
8274 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8279 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8280 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <sys/types.h>
8286 #include <sys/wait.h>
8287 #ifndef WEXITSTATUS
8288 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8289 #endif
8290 #ifndef WIFEXITED
8291 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8292 #endif
8295 main ()
8297 int s;
8298 wait (&s);
8299 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 ac_cv_header_sys_wait_h=yes
8306 else
8307 ac_cv_header_sys_wait_h=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8312 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8313 if test $ac_cv_header_sys_wait_h = yes; then
8315 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8319 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8320 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8321 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8322 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8323 do :
8324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8326 eval as_val=\$$as_ac_Header
8327 if test "x$as_val" = x""yes; then :
8328 cat >>confdefs.h <<_ACEOF
8329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8330 _ACEOF
8333 done
8336 # Check for thread headers.
8337 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8338 if test "x$ac_cv_header_thread_h" = x""yes; then :
8339 have_thread_h=yes
8340 else
8341 have_thread_h=
8344 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8345 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8346 have_pthread_h=yes
8347 else
8348 have_pthread_h=
8352 # These tests can't be done till we know if we have limits.h.
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8354 $as_echo_n "checking for CHAR_BIT... " >&6; }
8355 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8360 #ifdef HAVE_LIMITS_H
8361 #include <limits.h>
8362 #endif
8363 #ifdef CHAR_BIT
8364 found
8365 #endif
8366 _ACEOF
8367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8368 $EGREP "found" >/dev/null 2>&1; then :
8369 gcc_cv_decl_char_bit=yes
8370 else
8371 gcc_cv_decl_char_bit=no
8373 rm -f conftest*
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8378 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8379 if test $gcc_cv_decl_char_bit = no; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8381 $as_echo_n "checking number of bits in a byte... " >&6; }
8382 if test "${gcc_cv_c_nbby+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8386 gcc_cv_c_nbby=
8387 while test $i -lt 65; do
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8392 main ()
8394 switch(0) {
8395 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8396 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_compile "$LINENO"; then :
8403 gcc_cv_c_nbby=$i; break
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 i=`expr $i + 1`
8407 done
8408 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8412 $as_echo "$gcc_cv_c_nbby" >&6; }
8413 if test $gcc_cv_c_nbby = failed; then
8414 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8415 else
8417 cat >>confdefs.h <<_ACEOF
8418 #define CHAR_BIT $gcc_cv_c_nbby
8419 _ACEOF
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8424 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8425 if test "${ac_cv_c_bigendian+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 ac_cv_c_bigendian=unknown
8429 # See if we're dealing with a universal compiler.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #ifndef __APPLE_CC__
8433 not a universal capable compiler
8434 #endif
8435 typedef int dummy;
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8440 # Check for potential -arch flags. It is not universal unless
8441 # there are at least two -arch flags with different values.
8442 ac_arch=
8443 ac_prev=
8444 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8445 if test -n "$ac_prev"; then
8446 case $ac_word in
8447 i?86 | x86_64 | ppc | ppc64)
8448 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8449 ac_arch=$ac_word
8450 else
8451 ac_cv_c_bigendian=universal
8452 break
8455 esac
8456 ac_prev=
8457 elif test "x$ac_word" = "x-arch"; then
8458 ac_prev=arch
8460 done
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 if test $ac_cv_c_bigendian = unknown; then
8464 # See if sys/param.h defines the BYTE_ORDER macro.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/param.h>
8471 main ()
8473 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8474 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8475 && LITTLE_ENDIAN)
8476 bogus endian macros
8477 #endif
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 # It does; now see whether it defined to BIG_ENDIAN or not.
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8491 main ()
8493 #if BYTE_ORDER != BIG_ENDIAN
8494 not big endian
8495 #endif
8498 return 0;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_c_bigendian=yes
8503 else
8504 ac_cv_c_bigendian=no
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 if test $ac_cv_c_bigendian = unknown; then
8511 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 #include <limits.h>
8517 main ()
8519 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8520 bogus endian macros
8521 #endif
8524 return 0;
8526 _ACEOF
8527 if ac_fn_c_try_compile "$LINENO"; then :
8528 # It does; now see whether it defined to _BIG_ENDIAN or not.
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 #include <limits.h>
8534 main ()
8536 #ifndef _BIG_ENDIAN
8537 not big endian
8538 #endif
8541 return 0;
8543 _ACEOF
8544 if ac_fn_c_try_compile "$LINENO"; then :
8545 ac_cv_c_bigendian=yes
8546 else
8547 ac_cv_c_bigendian=no
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 if test $ac_cv_c_bigendian = unknown; then
8554 # Compile a test program.
8555 if test "$cross_compiling" = yes; then :
8556 # Try to guess by grepping values from an object file.
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 short int ascii_mm[] =
8560 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8561 short int ascii_ii[] =
8562 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8563 int use_ascii (int i) {
8564 return ascii_mm[i] + ascii_ii[i];
8566 short int ebcdic_ii[] =
8567 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8568 short int ebcdic_mm[] =
8569 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8570 int use_ebcdic (int i) {
8571 return ebcdic_mm[i] + ebcdic_ii[i];
8573 extern int foo;
8576 main ()
8578 return use_ascii (foo) == use_ebcdic (foo);
8580 return 0;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8585 ac_cv_c_bigendian=yes
8587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8588 if test "$ac_cv_c_bigendian" = unknown; then
8589 ac_cv_c_bigendian=no
8590 else
8591 # finding both strings is unlikely to happen, but who knows?
8592 ac_cv_c_bigendian=unknown
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 $ac_includes_default
8602 main ()
8605 /* Are we little or big endian? From Harbison&Steele. */
8606 union
8608 long int l;
8609 char c[sizeof (long int)];
8610 } u;
8611 u.l = 1;
8612 return u.c[sizeof (long int) - 1] == 1;
8615 return 0;
8617 _ACEOF
8618 if ac_fn_c_try_run "$LINENO"; then :
8619 ac_cv_c_bigendian=no
8620 else
8621 ac_cv_c_bigendian=yes
8623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8624 conftest.$ac_objext conftest.beam conftest.$ac_ext
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8630 $as_echo "$ac_cv_c_bigendian" >&6; }
8631 case $ac_cv_c_bigendian in #(
8632 yes)
8633 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8634 ;; #(
8636 ;; #(
8637 universal)
8639 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8641 ;; #(
8643 as_fn_error "unknown endianness
8644 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8645 esac
8648 # ----------------------
8649 # Checks for C++ headers
8650 # ----------------------
8652 ac_ext=cpp
8653 ac_cpp='$CXXCPP $CPPFLAGS'
8654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8658 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8659 if test -z "$CXXCPP"; then
8660 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 # Double quotes because CXXCPP needs to be expanded
8664 for CXXCPP in "$CXX -E" "/lib/cpp"
8666 ac_preproc_ok=false
8667 for ac_cxx_preproc_warn_flag in '' yes
8669 # Use a header file that comes with gcc, so configuring glibc
8670 # with a fresh cross-compiler works.
8671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672 # <limits.h> exists even on freestanding compilers.
8673 # On the NeXT, cc -E runs the code through the compiler's parser,
8674 # not just through cpp. "Syntax error" is here to catch this case.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682 Syntax error
8683 _ACEOF
8684 if ac_fn_cxx_try_cpp "$LINENO"; then :
8686 else
8687 # Broken: fails on valid input.
8688 continue
8690 rm -f conftest.err conftest.$ac_ext
8692 # OK, works on sane cases. Now check whether nonexistent headers
8693 # can be detected and how.
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #include <ac_nonexistent.h>
8697 _ACEOF
8698 if ac_fn_cxx_try_cpp "$LINENO"; then :
8699 # Broken: success on invalid input.
8700 continue
8701 else
8702 # Passes both tests.
8703 ac_preproc_ok=:
8704 break
8706 rm -f conftest.err conftest.$ac_ext
8708 done
8709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8710 rm -f conftest.err conftest.$ac_ext
8711 if $ac_preproc_ok; then :
8712 break
8715 done
8716 ac_cv_prog_CXXCPP=$CXXCPP
8719 CXXCPP=$ac_cv_prog_CXXCPP
8720 else
8721 ac_cv_prog_CXXCPP=$CXXCPP
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8724 $as_echo "$CXXCPP" >&6; }
8725 ac_preproc_ok=false
8726 for ac_cxx_preproc_warn_flag in '' yes
8728 # Use a header file that comes with gcc, so configuring glibc
8729 # with a fresh cross-compiler works.
8730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 # <limits.h> exists even on freestanding compilers.
8732 # On the NeXT, cc -E runs the code through the compiler's parser,
8733 # not just through cpp. "Syntax error" is here to catch this case.
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 #ifdef __STDC__
8737 # include <limits.h>
8738 #else
8739 # include <assert.h>
8740 #endif
8741 Syntax error
8742 _ACEOF
8743 if ac_fn_cxx_try_cpp "$LINENO"; then :
8745 else
8746 # Broken: fails on valid input.
8747 continue
8749 rm -f conftest.err conftest.$ac_ext
8751 # OK, works on sane cases. Now check whether nonexistent headers
8752 # can be detected and how.
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <ac_nonexistent.h>
8756 _ACEOF
8757 if ac_fn_cxx_try_cpp "$LINENO"; then :
8758 # Broken: success on invalid input.
8759 continue
8760 else
8761 # Passes both tests.
8762 ac_preproc_ok=:
8763 break
8765 rm -f conftest.err conftest.$ac_ext
8767 done
8768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8769 rm -f conftest.err conftest.$ac_ext
8770 if $ac_preproc_ok; then :
8772 else
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8776 See \`config.log' for more details." >&5
8777 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8778 See \`config.log' for more details." >&2;}; }
8781 ac_ext=c
8782 ac_cpp='$CPP $CPPFLAGS'
8783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8788 ac_ext=cpp
8789 ac_cpp='$CXXCPP $CPPFLAGS'
8790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8797 for ac_header in unordered_map
8798 do :
8799 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8800 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8801 cat >>confdefs.h <<_ACEOF
8802 #define HAVE_UNORDERED_MAP 1
8803 _ACEOF
8806 done
8808 for ac_header in tr1/unordered_map
8809 do :
8810 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8811 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_TR1_UNORDERED_MAP 1
8814 _ACEOF
8817 done
8819 for ac_header in ext/hash_map
8820 do :
8821 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8822 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_EXT_HASH_MAP 1
8825 _ACEOF
8828 done
8831 ac_ext=c
8832 ac_cpp='$CPP $CPPFLAGS'
8833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8838 # --------
8839 # UNSORTED
8840 # --------
8843 # These libraries may be used by collect2.
8844 # We may need a special search path to get them linked.
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8846 $as_echo_n "checking for collect2 libraries... " >&6; }
8847 if test "${gcc_cv_collect2_libs+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 save_LIBS="$LIBS"
8851 for libs in '' -lld -lmld \
8852 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8853 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8855 LIBS="$libs"
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8859 /* Override any GCC internal prototype to avoid an error.
8860 Use char because int might match the return type of a GCC
8861 builtin and then its argument prototype would still apply. */
8862 #ifdef __cplusplus
8863 extern "C"
8864 #endif
8865 char ldopen ();
8867 main ()
8869 return ldopen ();
8871 return 0;
8873 _ACEOF
8874 if ac_fn_c_try_link "$LINENO"; then :
8875 gcc_cv_collect2_libs="$libs"; break
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 done
8880 LIBS="$save_LIBS"
8881 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8884 $as_echo "$gcc_cv_collect2_libs" >&6; }
8885 case $gcc_cv_collect2_libs in
8886 "none required") ;;
8887 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8888 esac
8891 # When building Ada code on Alpha, we need exc_resume which is usually in
8892 # -lexc. So test for it.
8893 save_LIBS="$LIBS"
8894 LIBS=
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8896 $as_echo_n "checking for library containing exc_resume... " >&6; }
8897 if test "${ac_cv_search_exc_resume+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 ac_func_search_save_LIBS=$LIBS
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 char exc_resume ();
8912 main ()
8914 return exc_resume ();
8916 return 0;
8918 _ACEOF
8919 for ac_lib in '' exc; do
8920 if test -z "$ac_lib"; then
8921 ac_res="none required"
8922 else
8923 ac_res=-l$ac_lib
8924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 ac_cv_search_exc_resume=$ac_res
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext
8931 if test "${ac_cv_search_exc_resume+set}" = set; then :
8932 break
8934 done
8935 if test "${ac_cv_search_exc_resume+set}" = set; then :
8937 else
8938 ac_cv_search_exc_resume=no
8940 rm conftest.$ac_ext
8941 LIBS=$ac_func_search_save_LIBS
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8944 $as_echo "$ac_cv_search_exc_resume" >&6; }
8945 ac_res=$ac_cv_search_exc_resume
8946 if test "$ac_res" != no; then :
8947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8951 GNAT_LIBEXC="$LIBS"
8952 LIBS="$save_LIBS"
8955 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8956 save_LIBS="$LIBS"
8957 LIBS=
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8959 $as_echo_n "checking for library containing kstat_open... " >&6; }
8960 if test "${ac_cv_search_kstat_open+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 ac_func_search_save_LIBS=$LIBS
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 char kstat_open ();
8975 main ()
8977 return kstat_open ();
8979 return 0;
8981 _ACEOF
8982 for ac_lib in '' kstat; do
8983 if test -z "$ac_lib"; then
8984 ac_res="none required"
8985 else
8986 ac_res=-l$ac_lib
8987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 ac_cv_search_kstat_open=$ac_res
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext
8994 if test "${ac_cv_search_kstat_open+set}" = set; then :
8995 break
8997 done
8998 if test "${ac_cv_search_kstat_open+set}" = set; then :
9000 else
9001 ac_cv_search_kstat_open=no
9003 rm conftest.$ac_ext
9004 LIBS=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9007 $as_echo "$ac_cv_search_kstat_open" >&6; }
9008 ac_res=$ac_cv_search_kstat_open
9009 if test "$ac_res" != no; then :
9010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9014 EXTRA_GCC_LIBS="$LIBS"
9015 LIBS="$save_LIBS"
9018 # Some systems put ldexp and frexp in libm instead of libc; assume
9019 # they're both in the same place. jcf-dump needs them.
9020 save_LIBS="$LIBS"
9021 LIBS=
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9023 $as_echo_n "checking for library containing ldexp... " >&6; }
9024 if test "${ac_cv_search_ldexp+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 ac_func_search_save_LIBS=$LIBS
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char ldexp ();
9039 main ()
9041 return ldexp ();
9043 return 0;
9045 _ACEOF
9046 for ac_lib in '' m; do
9047 if test -z "$ac_lib"; then
9048 ac_res="none required"
9049 else
9050 ac_res=-l$ac_lib
9051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9053 if ac_fn_c_try_link "$LINENO"; then :
9054 ac_cv_search_ldexp=$ac_res
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext
9058 if test "${ac_cv_search_ldexp+set}" = set; then :
9059 break
9061 done
9062 if test "${ac_cv_search_ldexp+set}" = set; then :
9064 else
9065 ac_cv_search_ldexp=no
9067 rm conftest.$ac_ext
9068 LIBS=$ac_func_search_save_LIBS
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9071 $as_echo "$ac_cv_search_ldexp" >&6; }
9072 ac_res=$ac_cv_search_ldexp
9073 if test "$ac_res" != no; then :
9074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9078 LDEXP_LIB="$LIBS"
9079 LIBS="$save_LIBS"
9082 # Use <inttypes.h> only if it exists,
9083 # doesn't clash with <sys/types.h>, and declares intmax_t.
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9085 $as_echo_n "checking for inttypes.h... " >&6; }
9086 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <sys/types.h>
9092 #include <inttypes.h>
9094 main ()
9096 intmax_t i = -1;
9098 return 0;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"; then :
9102 gcc_cv_header_inttypes_h=yes
9103 else
9104 gcc_cv_header_inttypes_h=no
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9110 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9111 if test $gcc_cv_header_inttypes_h = yes; then
9113 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9119 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9120 sysconf strsignal getrusage nl_langinfo \
9121 gettimeofday mbstowcs wcswidth mmap setlocale \
9122 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9123 do :
9124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9125 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9126 eval as_val=\$$as_ac_var
9127 if test "x$as_val" = x""yes; then :
9128 cat >>confdefs.h <<_ACEOF
9129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9130 _ACEOF
9133 done
9136 if test x$ac_cv_func_mbstowcs = xyes; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9138 $as_echo_n "checking whether mbstowcs works... " >&6; }
9139 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 if test "$cross_compiling" = yes; then :
9143 gcc_cv_func_mbstowcs_works=yes
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 #include <stdlib.h>
9148 int main()
9150 mbstowcs(0, "", 0);
9151 return 0;
9153 _ACEOF
9154 if ac_fn_c_try_run "$LINENO"; then :
9155 gcc_cv_func_mbstowcs_works=yes
9156 else
9157 gcc_cv_func_mbstowcs_works=no
9159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9160 conftest.$ac_objext conftest.beam conftest.$ac_ext
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9165 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9166 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9168 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9173 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9174 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9176 else
9178 cat >>confdefs.h <<_ACEOF
9179 #define ssize_t int
9180 _ACEOF
9184 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9185 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9187 else
9189 cat >>confdefs.h <<_ACEOF
9190 #define caddr_t char *
9191 _ACEOF
9197 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9198 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9199 gcc_header_sys_mman_h=yes
9200 else
9201 gcc_header_sys_mman_h=no
9204 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9205 if test "x$ac_cv_func_mmap" = x""yes; then :
9206 gcc_func_mmap=yes
9207 else
9208 gcc_func_mmap=no
9211 if test "$gcc_header_sys_mman_h" != yes \
9212 || test "$gcc_func_mmap" != yes; then
9213 gcc_cv_func_mmap_file=no
9214 gcc_cv_func_mmap_dev_zero=no
9215 gcc_cv_func_mmap_anon=no
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9218 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9219 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 # Add a system to this blacklist if
9223 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9224 # memory area containing the same data that you'd get if you applied
9225 # read() to the same fd. The only system known to have a problem here
9226 # is VMS, where text files have record structure.
9227 case "$host_os" in
9228 *vms* | ultrix*)
9229 gcc_cv_func_mmap_file=no ;;
9231 gcc_cv_func_mmap_file=yes;;
9232 esac
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9235 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9237 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9238 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 # Add a system to this blacklist if it has mmap() but /dev/zero
9242 # does not exist, or if mmapping /dev/zero does not give anonymous
9243 # zeroed pages with both the following properties:
9244 # 1. If you map N consecutive pages in with one call, and then
9245 # unmap any subset of those pages, the pages that were not
9246 # explicitly unmapped remain accessible.
9247 # 2. If you map two adjacent blocks of memory and then unmap them
9248 # both at once, they must both go away.
9249 # Systems known to be in this category are Windows (all variants),
9250 # VMS, and Darwin.
9251 case "$host_os" in
9252 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9253 gcc_cv_func_mmap_dev_zero=no ;;
9255 gcc_cv_func_mmap_dev_zero=yes;;
9256 esac
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9259 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9261 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9263 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9264 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 #include <sys/mman.h>
9271 #include <unistd.h>
9273 #ifndef MAP_ANONYMOUS
9274 #define MAP_ANONYMOUS MAP_ANON
9275 #endif
9278 main ()
9280 int n = MAP_ANONYMOUS;
9282 return 0;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"; then :
9286 gcc_cv_decl_map_anon=yes
9287 else
9288 gcc_cv_decl_map_anon=no
9290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9293 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9295 if test $gcc_cv_decl_map_anon = no; then
9296 gcc_cv_func_mmap_anon=no
9297 else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9299 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9300 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9304 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9305 # doesn't give anonymous zeroed pages with the same properties listed
9306 # above for use of /dev/zero.
9307 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9308 case "$host_os" in
9309 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9310 gcc_cv_func_mmap_anon=no ;;
9312 gcc_cv_func_mmap_anon=yes;;
9313 esac
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9316 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9320 if test $gcc_cv_func_mmap_file = yes; then
9322 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9325 if test $gcc_cv_func_mmap_dev_zero = yes; then
9327 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9330 if test $gcc_cv_func_mmap_anon = yes; then
9332 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9337 case "${host}" in
9338 *-*-*vms*)
9339 # Under VMS, vfork works very differently than on Unix. The standard test
9340 # won't work, and it isn't easily adaptable. It makes more sense to
9341 # just force it.
9342 ac_cv_func_vfork_works=yes
9344 esac
9345 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9346 if test "x$ac_cv_type_pid_t" = x""yes; then :
9348 else
9350 cat >>confdefs.h <<_ACEOF
9351 #define pid_t int
9352 _ACEOF
9356 for ac_header in vfork.h
9357 do :
9358 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9359 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_VFORK_H 1
9362 _ACEOF
9365 done
9367 for ac_func in fork vfork
9368 do :
9369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9371 eval as_val=\$$as_ac_var
9372 if test "x$as_val" = x""yes; then :
9373 cat >>confdefs.h <<_ACEOF
9374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9375 _ACEOF
9378 done
9380 if test "x$ac_cv_func_fork" = xyes; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9382 $as_echo_n "checking for working fork... " >&6; }
9383 if test "${ac_cv_func_fork_works+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 if test "$cross_compiling" = yes; then :
9387 ac_cv_func_fork_works=cross
9388 else
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 $ac_includes_default
9393 main ()
9396 /* By Ruediger Kuhlmann. */
9397 return fork () < 0;
9400 return 0;
9402 _ACEOF
9403 if ac_fn_c_try_run "$LINENO"; then :
9404 ac_cv_func_fork_works=yes
9405 else
9406 ac_cv_func_fork_works=no
9408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9409 conftest.$ac_objext conftest.beam conftest.$ac_ext
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9414 $as_echo "$ac_cv_func_fork_works" >&6; }
9416 else
9417 ac_cv_func_fork_works=$ac_cv_func_fork
9419 if test "x$ac_cv_func_fork_works" = xcross; then
9420 case $host in
9421 *-*-amigaos* | *-*-msdosdjgpp*)
9422 # Override, as these systems have only a dummy fork() stub
9423 ac_cv_func_fork_works=no
9426 ac_cv_func_fork_works=yes
9428 esac
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9430 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9432 ac_cv_func_vfork_works=$ac_cv_func_vfork
9433 if test "x$ac_cv_func_vfork" = xyes; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9435 $as_echo_n "checking for working vfork... " >&6; }
9436 if test "${ac_cv_func_vfork_works+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 if test "$cross_compiling" = yes; then :
9440 ac_cv_func_vfork_works=cross
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 /* Thanks to Paul Eggert for this test. */
9445 $ac_includes_default
9446 #include <sys/wait.h>
9447 #ifdef HAVE_VFORK_H
9448 # include <vfork.h>
9449 #endif
9450 /* On some sparc systems, changes by the child to local and incoming
9451 argument registers are propagated back to the parent. The compiler
9452 is told about this with #include <vfork.h>, but some compilers
9453 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9454 static variable whose address is put into a register that is
9455 clobbered by the vfork. */
9456 static void
9457 #ifdef __cplusplus
9458 sparc_address_test (int arg)
9459 # else
9460 sparc_address_test (arg) int arg;
9461 #endif
9463 static pid_t child;
9464 if (!child) {
9465 child = vfork ();
9466 if (child < 0) {
9467 perror ("vfork");
9468 _exit(2);
9470 if (!child) {
9471 arg = getpid();
9472 write(-1, "", 0);
9473 _exit (arg);
9479 main ()
9481 pid_t parent = getpid ();
9482 pid_t child;
9484 sparc_address_test (0);
9486 child = vfork ();
9488 if (child == 0) {
9489 /* Here is another test for sparc vfork register problems. This
9490 test uses lots of local variables, at least as many local
9491 variables as main has allocated so far including compiler
9492 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9493 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9494 reuse the register of parent for one of the local variables,
9495 since it will think that parent can't possibly be used any more
9496 in this routine. Assigning to the local variable will thus
9497 munge parent in the parent process. */
9498 pid_t
9499 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9500 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9501 /* Convince the compiler that p..p7 are live; otherwise, it might
9502 use the same hardware register for all 8 local variables. */
9503 if (p != p1 || p != p2 || p != p3 || p != p4
9504 || p != p5 || p != p6 || p != p7)
9505 _exit(1);
9507 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9508 from child file descriptors. If the child closes a descriptor
9509 before it execs or exits, this munges the parent's descriptor
9510 as well. Test for this by closing stdout in the child. */
9511 _exit(close(fileno(stdout)) != 0);
9512 } else {
9513 int status;
9514 struct stat st;
9516 while (wait(&status) != child)
9518 return (
9519 /* Was there some problem with vforking? */
9520 child < 0
9522 /* Did the child fail? (This shouldn't happen.) */
9523 || status
9525 /* Did the vfork/compiler bug occur? */
9526 || parent != getpid()
9528 /* Did the file descriptor bug occur? */
9529 || fstat(fileno(stdout), &st) != 0
9533 _ACEOF
9534 if ac_fn_c_try_run "$LINENO"; then :
9535 ac_cv_func_vfork_works=yes
9536 else
9537 ac_cv_func_vfork_works=no
9539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9540 conftest.$ac_objext conftest.beam conftest.$ac_ext
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9545 $as_echo "$ac_cv_func_vfork_works" >&6; }
9548 if test "x$ac_cv_func_fork_works" = xcross; then
9549 ac_cv_func_vfork_works=$ac_cv_func_vfork
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9551 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9554 if test "x$ac_cv_func_vfork_works" = xyes; then
9556 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9558 else
9560 $as_echo "#define vfork fork" >>confdefs.h
9563 if test "x$ac_cv_func_fork_works" = xyes; then
9565 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9570 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9571 # iconv() prototype.
9572 ac_ext=cpp
9573 ac_cpp='$CXXCPP $CPPFLAGS'
9574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9579 if test "X$prefix" = "XNONE"; then
9580 acl_final_prefix="$ac_default_prefix"
9581 else
9582 acl_final_prefix="$prefix"
9584 if test "X$exec_prefix" = "XNONE"; then
9585 acl_final_exec_prefix='${prefix}'
9586 else
9587 acl_final_exec_prefix="$exec_prefix"
9589 acl_save_prefix="$prefix"
9590 prefix="$acl_final_prefix"
9591 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9592 prefix="$acl_save_prefix"
9595 # Check whether --with-gnu-ld was given.
9596 if test "${with_gnu_ld+set}" = set; then :
9597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9598 else
9599 with_gnu_ld=no
9602 # Prepare PATH_SEPARATOR.
9603 # The user is always right.
9604 if test "${PATH_SEPARATOR+set}" != set; then
9605 echo "#! /bin/sh" >conf$$.sh
9606 echo "exit 0" >>conf$$.sh
9607 chmod +x conf$$.sh
9608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9609 PATH_SEPARATOR=';'
9610 else
9611 PATH_SEPARATOR=:
9613 rm -f conf$$.sh
9615 ac_prog=ld
9616 if test "$GCC" = yes; then
9617 # Check if gcc -print-prog-name=ld gives a path.
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9619 $as_echo_n "checking for ld used by GCC... " >&6; }
9620 case $host in
9621 *-*-mingw*)
9622 # gcc leaves a trailing carriage return which upsets mingw
9623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9626 esac
9627 case $ac_prog in
9628 # Accept absolute paths.
9629 [\\/]* | [A-Za-z]:[\\/]*)
9630 re_direlt='/[^/][^/]*/\.\./'
9631 # Canonicalize the path of ld
9632 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9633 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9635 done
9636 test -z "$LD" && LD="$ac_prog"
9639 # If it fails, then pretend we aren't using GCC.
9640 ac_prog=ld
9643 # If it is relative, then search for the first ld in PATH.
9644 with_gnu_ld=unknown
9646 esac
9647 elif test "$with_gnu_ld" = yes; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9649 $as_echo_n "checking for GNU ld... " >&6; }
9650 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9652 $as_echo_n "checking for non-GNU ld... " >&6; }
9654 if test "${acl_cv_path_LD+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -z "$LD"; then
9658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9659 for ac_dir in $PATH; do
9660 test -z "$ac_dir" && ac_dir=.
9661 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9662 acl_cv_path_LD="$ac_dir/$ac_prog"
9663 # Check to see if the program is GNU ld. I'd rather use --version,
9664 # but apparently some GNU ld's only accept -v.
9665 # Break only if it was the GNU/non-GNU ld that we prefer.
9666 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9667 test "$with_gnu_ld" != no && break
9668 else
9669 test "$with_gnu_ld" != yes && break
9672 done
9673 IFS="$ac_save_ifs"
9674 else
9675 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9679 LD="$acl_cv_path_LD"
9680 if test -n "$LD"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9682 $as_echo "$LD" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9687 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9690 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9694 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9695 acl_cv_prog_gnu_ld=yes
9696 else
9697 acl_cv_prog_gnu_ld=no
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9701 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9702 with_gnu_ld=$acl_cv_prog_gnu_ld
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9707 $as_echo_n "checking for shared library run path origin... " >&6; }
9708 if test "${acl_cv_rpath+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9712 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9713 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9714 . ./conftest.sh
9715 rm -f ./conftest.sh
9716 acl_cv_rpath=done
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9720 $as_echo "$acl_cv_rpath" >&6; }
9721 wl="$acl_cv_wl"
9722 libext="$acl_cv_libext"
9723 shlibext="$acl_cv_shlibext"
9724 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9725 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9726 hardcode_direct="$acl_cv_hardcode_direct"
9727 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9728 # Check whether --enable-rpath was given.
9729 if test "${enable_rpath+set}" = set; then :
9730 enableval=$enable_rpath; :
9731 else
9732 enable_rpath=yes
9742 use_additional=yes
9744 acl_save_prefix="$prefix"
9745 prefix="$acl_final_prefix"
9746 acl_save_exec_prefix="$exec_prefix"
9747 exec_prefix="$acl_final_exec_prefix"
9749 eval additional_includedir=\"$includedir\"
9750 eval additional_libdir=\"$libdir\"
9752 exec_prefix="$acl_save_exec_prefix"
9753 prefix="$acl_save_prefix"
9756 # Check whether --with-libiconv-prefix was given.
9757 if test "${with_libiconv_prefix+set}" = set; then :
9758 withval=$with_libiconv_prefix;
9759 if test "X$withval" = "Xno"; then
9760 use_additional=no
9761 else
9762 if test "X$withval" = "X"; then
9764 acl_save_prefix="$prefix"
9765 prefix="$acl_final_prefix"
9766 acl_save_exec_prefix="$exec_prefix"
9767 exec_prefix="$acl_final_exec_prefix"
9769 eval additional_includedir=\"$includedir\"
9770 eval additional_libdir=\"$libdir\"
9772 exec_prefix="$acl_save_exec_prefix"
9773 prefix="$acl_save_prefix"
9775 else
9776 additional_includedir="$withval/include"
9777 additional_libdir="$withval/lib"
9783 LIBICONV=
9784 LTLIBICONV=
9785 INCICONV=
9786 rpathdirs=
9787 ltrpathdirs=
9788 names_already_handled=
9789 names_next_round='iconv '
9790 while test -n "$names_next_round"; do
9791 names_this_round="$names_next_round"
9792 names_next_round=
9793 for name in $names_this_round; do
9794 already_handled=
9795 for n in $names_already_handled; do
9796 if test "$n" = "$name"; then
9797 already_handled=yes
9798 break
9800 done
9801 if test -z "$already_handled"; then
9802 names_already_handled="$names_already_handled $name"
9803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9804 eval value=\"\$HAVE_LIB$uppername\"
9805 if test -n "$value"; then
9806 if test "$value" = yes; then
9807 eval value=\"\$LIB$uppername\"
9808 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9809 eval value=\"\$LTLIB$uppername\"
9810 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9811 else
9814 else
9815 found_dir=
9816 found_la=
9817 found_so=
9818 found_a=
9819 if test $use_additional = yes; then
9820 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9821 found_dir="$additional_libdir"
9822 found_so="$additional_libdir/lib$name.$shlibext"
9823 if test -f "$additional_libdir/lib$name.la"; then
9824 found_la="$additional_libdir/lib$name.la"
9826 else
9827 if test -f "$additional_libdir/lib$name.$libext"; then
9828 found_dir="$additional_libdir"
9829 found_a="$additional_libdir/lib$name.$libext"
9830 if test -f "$additional_libdir/lib$name.la"; then
9831 found_la="$additional_libdir/lib$name.la"
9836 if test "X$found_dir" = "X"; then
9837 for x in $LDFLAGS $LTLIBICONV; do
9839 acl_save_prefix="$prefix"
9840 prefix="$acl_final_prefix"
9841 acl_save_exec_prefix="$exec_prefix"
9842 exec_prefix="$acl_final_exec_prefix"
9843 eval x=\"$x\"
9844 exec_prefix="$acl_save_exec_prefix"
9845 prefix="$acl_save_prefix"
9847 case "$x" in
9848 -L*)
9849 dir=`echo "X$x" | sed -e 's/^X-L//'`
9850 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9851 found_dir="$dir"
9852 found_so="$dir/lib$name.$shlibext"
9853 if test -f "$dir/lib$name.la"; then
9854 found_la="$dir/lib$name.la"
9856 else
9857 if test -f "$dir/lib$name.$libext"; then
9858 found_dir="$dir"
9859 found_a="$dir/lib$name.$libext"
9860 if test -f "$dir/lib$name.la"; then
9861 found_la="$dir/lib$name.la"
9866 esac
9867 if test "X$found_dir" != "X"; then
9868 break
9870 done
9872 if test "X$found_dir" != "X"; then
9873 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9874 if test "X$found_so" != "X"; then
9875 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9877 else
9878 haveit=
9879 for x in $ltrpathdirs; do
9880 if test "X$x" = "X$found_dir"; then
9881 haveit=yes
9882 break
9884 done
9885 if test -z "$haveit"; then
9886 ltrpathdirs="$ltrpathdirs $found_dir"
9888 if test "$hardcode_direct" = yes; then
9889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9890 else
9891 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9892 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9893 haveit=
9894 for x in $rpathdirs; do
9895 if test "X$x" = "X$found_dir"; then
9896 haveit=yes
9897 break
9899 done
9900 if test -z "$haveit"; then
9901 rpathdirs="$rpathdirs $found_dir"
9903 else
9904 haveit=
9905 for x in $LDFLAGS $LIBICONV; do
9907 acl_save_prefix="$prefix"
9908 prefix="$acl_final_prefix"
9909 acl_save_exec_prefix="$exec_prefix"
9910 exec_prefix="$acl_final_exec_prefix"
9911 eval x=\"$x\"
9912 exec_prefix="$acl_save_exec_prefix"
9913 prefix="$acl_save_prefix"
9915 if test "X$x" = "X-L$found_dir"; then
9916 haveit=yes
9917 break
9919 done
9920 if test -z "$haveit"; then
9921 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9923 if test "$hardcode_minus_L" != no; then
9924 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9925 else
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9931 else
9932 if test "X$found_a" != "X"; then
9933 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9934 else
9935 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9938 additional_includedir=
9939 case "$found_dir" in
9940 */lib | */lib/)
9941 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9942 additional_includedir="$basedir/include"
9944 esac
9945 if test "X$additional_includedir" != "X"; then
9946 if test "X$additional_includedir" != "X/usr/include"; then
9947 haveit=
9948 if test "X$additional_includedir" = "X/usr/local/include"; then
9949 if test -n "$GCC"; then
9950 case $host_os in
9951 linux*) haveit=yes;;
9952 esac
9955 if test -z "$haveit"; then
9956 for x in $CPPFLAGS $INCICONV; do
9958 acl_save_prefix="$prefix"
9959 prefix="$acl_final_prefix"
9960 acl_save_exec_prefix="$exec_prefix"
9961 exec_prefix="$acl_final_exec_prefix"
9962 eval x=\"$x\"
9963 exec_prefix="$acl_save_exec_prefix"
9964 prefix="$acl_save_prefix"
9966 if test "X$x" = "X-I$additional_includedir"; then
9967 haveit=yes
9968 break
9970 done
9971 if test -z "$haveit"; then
9972 if test -d "$additional_includedir"; then
9973 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9979 if test -n "$found_la"; then
9980 save_libdir="$libdir"
9981 case "$found_la" in
9982 */* | *\\*) . "$found_la" ;;
9983 *) . "./$found_la" ;;
9984 esac
9985 libdir="$save_libdir"
9986 for dep in $dependency_libs; do
9987 case "$dep" in
9988 -L*)
9989 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9990 if test "X$additional_libdir" != "X/usr/lib"; then
9991 haveit=
9992 if test "X$additional_libdir" = "X/usr/local/lib"; then
9993 if test -n "$GCC"; then
9994 case $host_os in
9995 linux*) haveit=yes;;
9996 esac
9999 if test -z "$haveit"; then
10000 haveit=
10001 for x in $LDFLAGS $LIBICONV; do
10003 acl_save_prefix="$prefix"
10004 prefix="$acl_final_prefix"
10005 acl_save_exec_prefix="$exec_prefix"
10006 exec_prefix="$acl_final_exec_prefix"
10007 eval x=\"$x\"
10008 exec_prefix="$acl_save_exec_prefix"
10009 prefix="$acl_save_prefix"
10011 if test "X$x" = "X-L$additional_libdir"; then
10012 haveit=yes
10013 break
10015 done
10016 if test -z "$haveit"; then
10017 if test -d "$additional_libdir"; then
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10021 haveit=
10022 for x in $LDFLAGS $LTLIBICONV; do
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10028 eval x=\"$x\"
10029 exec_prefix="$acl_save_exec_prefix"
10030 prefix="$acl_save_prefix"
10032 if test "X$x" = "X-L$additional_libdir"; then
10033 haveit=yes
10034 break
10036 done
10037 if test -z "$haveit"; then
10038 if test -d "$additional_libdir"; then
10039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10045 -R*)
10046 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10047 if test "$enable_rpath" != no; then
10048 haveit=
10049 for x in $rpathdirs; do
10050 if test "X$x" = "X$dir"; then
10051 haveit=yes
10052 break
10054 done
10055 if test -z "$haveit"; then
10056 rpathdirs="$rpathdirs $dir"
10058 haveit=
10059 for x in $ltrpathdirs; do
10060 if test "X$x" = "X$dir"; then
10061 haveit=yes
10062 break
10064 done
10065 if test -z "$haveit"; then
10066 ltrpathdirs="$ltrpathdirs $dir"
10070 -l*)
10071 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10073 *.la)
10074 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10077 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10078 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10080 esac
10081 done
10083 else
10084 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10089 done
10090 done
10091 if test "X$rpathdirs" != "X"; then
10092 if test -n "$hardcode_libdir_separator"; then
10093 alldirs=
10094 for found_dir in $rpathdirs; do
10095 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10096 done
10097 acl_save_libdir="$libdir"
10098 libdir="$alldirs"
10099 eval flag=\"$hardcode_libdir_flag_spec\"
10100 libdir="$acl_save_libdir"
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10102 else
10103 for found_dir in $rpathdirs; do
10104 acl_save_libdir="$libdir"
10105 libdir="$found_dir"
10106 eval flag=\"$hardcode_libdir_flag_spec\"
10107 libdir="$acl_save_libdir"
10108 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10109 done
10112 if test "X$ltrpathdirs" != "X"; then
10113 for found_dir in $ltrpathdirs; do
10114 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10115 done
10124 am_save_CPPFLAGS="$CPPFLAGS"
10126 for element in $INCICONV; do
10127 haveit=
10128 for x in $CPPFLAGS; do
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 acl_save_exec_prefix="$exec_prefix"
10133 exec_prefix="$acl_final_exec_prefix"
10134 eval x=\"$x\"
10135 exec_prefix="$acl_save_exec_prefix"
10136 prefix="$acl_save_prefix"
10138 if test "X$x" = "X$element"; then
10139 haveit=yes
10140 break
10142 done
10143 if test -z "$haveit"; then
10144 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10146 done
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10150 $as_echo_n "checking for iconv... " >&6; }
10151 if test "${am_cv_func_iconv+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10155 am_cv_func_iconv="no, consider installing GNU libiconv"
10156 am_cv_lib_iconv=no
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <stdlib.h>
10160 #include <iconv.h>
10162 main ()
10164 iconv_t cd = iconv_open("","");
10165 iconv(cd,NULL,NULL,NULL,NULL);
10166 iconv_close(cd);
10168 return 0;
10170 _ACEOF
10171 if ac_fn_cxx_try_link "$LINENO"; then :
10172 am_cv_func_iconv=yes
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 if test "$am_cv_func_iconv" != yes; then
10177 am_save_LIBS="$LIBS"
10178 LIBS="$LIBS $LIBICONV"
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10182 #include <iconv.h>
10184 main ()
10186 iconv_t cd = iconv_open("","");
10187 iconv(cd,NULL,NULL,NULL,NULL);
10188 iconv_close(cd);
10190 return 0;
10192 _ACEOF
10193 if ac_fn_cxx_try_link "$LINENO"; then :
10194 am_cv_lib_iconv=yes
10195 am_cv_func_iconv=yes
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS="$am_save_LIBS"
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10204 $as_echo "$am_cv_func_iconv" >&6; }
10205 if test "$am_cv_func_iconv" = yes; then
10207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10210 if test "$am_cv_lib_iconv" = yes; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10212 $as_echo_n "checking how to link with libiconv... " >&6; }
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10214 $as_echo "$LIBICONV" >&6; }
10215 else
10216 CPPFLAGS="$am_save_CPPFLAGS"
10217 LIBICONV=
10218 LTLIBICONV=
10223 if test "$am_cv_func_iconv" = yes; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10225 $as_echo_n "checking for iconv declaration... " >&6; }
10226 if test "${am_cv_proto_iconv+set}" = set; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 #include <stdlib.h>
10234 #include <iconv.h>
10235 extern
10236 #ifdef __cplusplus
10238 #endif
10239 #if defined(__STDC__) || defined(__cplusplus)
10240 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10241 #else
10242 size_t iconv();
10243 #endif
10246 main ()
10250 return 0;
10252 _ACEOF
10253 if ac_fn_cxx_try_compile "$LINENO"; then :
10254 am_cv_proto_iconv_arg1=""
10255 else
10256 am_cv_proto_iconv_arg1="const"
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 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);"
10262 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10264 }$am_cv_proto_iconv" >&5
10265 $as_echo "${ac_t:-
10266 }$am_cv_proto_iconv" >&6; }
10268 cat >>confdefs.h <<_ACEOF
10269 #define ICONV_CONST $am_cv_proto_iconv_arg1
10270 _ACEOF
10274 ac_ext=c
10275 ac_cpp='$CPP $CPPFLAGS'
10276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10281 # Until we have in-tree GNU iconv:
10282 LIBICONV_DEP=
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10287 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10288 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 #include <locale.h>
10295 main ()
10297 return LC_MESSAGES
10299 return 0;
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"; then :
10303 am_cv_val_LC_MESSAGES=yes
10304 else
10305 am_cv_val_LC_MESSAGES=no
10307 rm -f core conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10311 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10312 if test $am_cv_val_LC_MESSAGES = yes; then
10314 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10321 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10322 if test "${am_cv_langinfo_codeset+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <langinfo.h>
10329 main ()
10331 char* cs = nl_langinfo(CODESET);
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 am_cv_langinfo_codeset=yes
10338 else
10339 am_cv_langinfo_codeset=no
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10346 $as_echo "$am_cv_langinfo_codeset" >&6; }
10347 if test $am_cv_langinfo_codeset = yes; then
10349 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10354 # We will need to find libiberty.h and ansidecl.h
10355 saved_CFLAGS="$CFLAGS"
10356 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10357 saved_CXXFLAGS="$CXXFLAGS"
10358 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10359 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10360 strsignal strstr stpcpy strverscmp \
10361 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10362 free basename getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10364 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10366 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10367 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10368 $as_echo_n "(cached) " >&6
10369 else
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #undef $ac_tr_decl
10373 #define $ac_tr_decl 1
10375 #include "ansidecl.h"
10376 #include "system.h"
10379 main ()
10381 #ifndef $ac_func
10382 char *(*pfn) = (char *(*)) $ac_func ;
10383 #endif
10385 return 0;
10387 _ACEOF
10388 if ac_fn_c_try_compile "$LINENO"; then :
10389 eval "gcc_cv_have_decl_$ac_func=yes"
10390 else
10391 eval "gcc_cv_have_decl_$ac_func=no"
10393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10399 #define $ac_tr_decl 1
10400 _ACEOF
10402 else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10405 #define $ac_tr_decl 0
10406 _ACEOF
10410 done
10413 for ac_func in getrlimit setrlimit getrusage
10415 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10418 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 #undef $ac_tr_decl
10424 #define $ac_tr_decl 1
10426 #include "ansidecl.h"
10427 #include "system.h"
10428 #ifdef HAVE_SYS_RESOURCE_H
10429 #include <sys/resource.h>
10430 #endif
10434 main ()
10436 #ifndef $ac_func
10437 char *(*pfn) = (char *(*)) $ac_func ;
10438 #endif
10440 return 0;
10442 _ACEOF
10443 if ac_fn_c_try_compile "$LINENO"; then :
10444 eval "gcc_cv_have_decl_$ac_func=yes"
10445 else
10446 eval "gcc_cv_have_decl_$ac_func=no"
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10453 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10454 #define $ac_tr_decl 1
10455 _ACEOF
10457 else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10460 #define $ac_tr_decl 0
10461 _ACEOF
10465 done
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10471 #include "ansidecl.h"
10472 #include "system.h"
10473 #ifdef HAVE_SYS_RESOURCE_H
10474 #include <sys/resource.h>
10475 #endif
10478 main ()
10480 rlim_t l = 0;
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_compile "$LINENO"; then :
10487 else
10489 $as_echo "#define rlim_t long" >>confdefs.h
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10495 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10496 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10497 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10498 for ac_func in ldgetname
10500 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10502 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10503 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 #undef $ac_tr_decl
10509 #define $ac_tr_decl 1
10511 #include "ansidecl.h"
10512 #include "system.h"
10513 #ifdef HAVE_LDFCN_H
10514 #undef FREAD
10515 #undef FWRITE
10516 #include <ldfcn.h>
10517 #endif
10521 main ()
10523 #ifndef $ac_func
10524 char *(*pfn) = (char *(*)) $ac_func ;
10525 #endif
10527 return 0;
10529 _ACEOF
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 eval "gcc_cv_have_decl_$ac_func=yes"
10532 else
10533 eval "gcc_cv_have_decl_$ac_func=no"
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10541 #define $ac_tr_decl 1
10542 _ACEOF
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10547 #define $ac_tr_decl 0
10548 _ACEOF
10552 done
10555 for ac_func in times
10557 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10559 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10560 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #undef $ac_tr_decl
10566 #define $ac_tr_decl 1
10568 #include "ansidecl.h"
10569 #include "system.h"
10570 #ifdef HAVE_SYS_TIMES_H
10571 #include <sys/times.h>
10572 #endif
10576 main ()
10578 #ifndef $ac_func
10579 char *(*pfn) = (char *(*)) $ac_func ;
10580 #endif
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_compile "$LINENO"; then :
10586 eval "gcc_cv_have_decl_$ac_func=yes"
10587 else
10588 eval "gcc_cv_have_decl_$ac_func=no"
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10596 #define $ac_tr_decl 1
10597 _ACEOF
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10602 #define $ac_tr_decl 0
10603 _ACEOF
10607 done
10610 for ac_func in sigaltstack
10612 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10614 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10615 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 #undef $ac_tr_decl
10621 #define $ac_tr_decl 1
10623 #include "ansidecl.h"
10624 #include "system.h"
10625 #include <signal.h>
10629 main ()
10631 #ifndef $ac_func
10632 char *(*pfn) = (char *(*)) $ac_func ;
10633 #endif
10635 return 0;
10637 _ACEOF
10638 if ac_fn_c_try_compile "$LINENO"; then :
10639 eval "gcc_cv_have_decl_$ac_func=yes"
10640 else
10641 eval "gcc_cv_have_decl_$ac_func=no"
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10649 #define $ac_tr_decl 1
10650 _ACEOF
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 0
10656 _ACEOF
10660 done
10663 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10664 # prototype.
10665 ac_ext=cpp
10666 ac_cpp='$CXXCPP $CPPFLAGS'
10667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10671 for ac_func in madvise
10673 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10675 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10676 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 #undef $ac_tr_decl
10682 #define $ac_tr_decl 1
10684 #include "ansidecl.h"
10685 #include "system.h"
10689 main ()
10691 #ifndef $ac_func
10692 char *(*pfn) = (char *(*)) $ac_func ;
10693 #endif
10695 return 0;
10697 _ACEOF
10698 if ac_fn_cxx_try_compile "$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10700 else
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 1
10710 _ACEOF
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10715 #define $ac_tr_decl 0
10716 _ACEOF
10720 done
10722 ac_ext=c
10723 ac_cpp='$CPP $CPPFLAGS'
10724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10729 # More time-related stuff.
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10731 $as_echo_n "checking for struct tms... " >&6; }
10732 if test "${ac_cv_struct_tms+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 #include "ansidecl.h"
10740 #include "system.h"
10741 #ifdef HAVE_SYS_TIMES_H
10742 #include <sys/times.h>
10743 #endif
10746 main ()
10748 struct tms tms;
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 ac_cv_struct_tms=yes
10755 else
10756 ac_cv_struct_tms=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10761 $as_echo "$ac_cv_struct_tms" >&6; }
10762 if test $ac_cv_struct_tms = yes; then
10764 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10768 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10769 # revisit after autoconf 2.50.
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10771 $as_echo_n "checking for clock_t... " >&6; }
10772 if test "${gcc_cv_type_clock_t+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 #include "ansidecl.h"
10780 #include "system.h"
10783 main ()
10785 clock_t x;
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 gcc_cv_type_clock_t=yes
10792 else
10793 gcc_cv_type_clock_t=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10798 $as_echo "$gcc_cv_type_clock_t" >&6; }
10799 if test $gcc_cv_type_clock_t = yes; then
10801 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10805 # Check if F_SETLKW is supported by fcntl.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10807 $as_echo_n "checking for F_SETLKW... " >&6; }
10808 if test "${ac_cv_f_setlkw+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 #include <fcntl.h>
10817 main ()
10820 struct flock fl;
10821 fl.l_whence = 0;
10822 fl.l_start = 0;
10823 fl.l_len = 0;
10824 fl.l_pid = 0;
10825 return fcntl (1, F_SETLKW, &fl);
10827 return 0;
10829 _ACEOF
10830 if ac_fn_c_try_compile "$LINENO"; then :
10831 ac_cv_f_setlkw=yes
10832 else
10833 ac_cv_f_setlkw=no
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10838 $as_echo "$ac_cv_f_setlkw" >&6; }
10839 if test $ac_cv_f_setlkw = yes; then
10841 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10845 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10846 CFLAGS="$saved_CFLAGS"
10847 CXXFLAGS="$saved_CXXFLAGS"
10849 # mkdir takes a single argument on some systems.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10851 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10852 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #include <sys/types.h>
10859 #ifdef HAVE_SYS_STAT_H
10860 # include <sys/stat.h>
10861 #endif
10862 #ifdef HAVE_UNISTD_H
10863 # include <unistd.h>
10864 #endif
10865 #ifdef HAVE_DIRECT_H
10866 # include <direct.h>
10867 #endif
10869 main ()
10871 mkdir ("foo", 0);
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_compile "$LINENO"; then :
10877 gcc_cv_mkdir_takes_one_arg=no
10878 else
10879 gcc_cv_mkdir_takes_one_arg=yes
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10884 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10885 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10887 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10892 # File extensions
10893 manext='.1'
10894 objext='.o'
10898 # With Setjmp/Longjmp based exception handling.
10899 # Check whether --enable-sjlj-exceptions was given.
10900 if test "${enable_sjlj_exceptions+set}" = set; then :
10901 enableval=$enable_sjlj_exceptions; case $target in
10902 *-*-hpux10*)
10903 if test $enableval != yes; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10905 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10906 enableval=yes
10909 esac
10910 force_sjlj_exceptions=yes
10911 else
10912 case $target in
10913 *-*-hpux10*)
10914 force_sjlj_exceptions=yes
10915 enableval=yes
10918 force_sjlj_exceptions=no
10920 esac
10923 if test $force_sjlj_exceptions = yes; then
10924 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10926 cat >>confdefs.h <<_ACEOF
10927 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10928 _ACEOF
10932 # --------------------------------------------------------
10933 # Build, host, and target specific configuration fragments
10934 # --------------------------------------------------------
10936 # Collect build-machine-specific information.
10937 . ${srcdir}/config.build
10939 # Collect host-machine-specific information.
10940 . ${srcdir}/config.host
10942 target_gtfiles=
10944 # Collect target-machine-specific information.
10945 . ${srcdir}/config.gcc
10947 extra_objs="${host_extra_objs} ${extra_objs}"
10948 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10950 # Default the target-machine variables that were not explicitly set.
10951 if test x"$tm_file" = x
10952 then tm_file=$cpu_type/$cpu_type.h; fi
10954 if test x"$extra_headers" = x
10955 then extra_headers=; fi
10957 if test x$md_file = x
10958 then md_file=$cpu_type/$cpu_type.md; fi
10960 if test x$out_file = x
10961 then out_file=$cpu_type/$cpu_type.c; fi
10963 if test x"$tmake_file" = x
10964 then tmake_file=$cpu_type/t-$cpu_type
10967 # Support --enable-initfini-array.
10968 if test x$enable_initfini_array != xno; then
10969 tm_file="${tm_file} initfini-array.h"
10972 if test x"$dwarf2" = xyes
10973 then tm_file="$tm_file tm-dwarf2.h"
10976 # Say what files are being used for the output code and MD file.
10977 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10978 echo "Using \`$srcdir/config/$md_file' as machine description file."
10980 # If any of the xm_file variables contain nonexistent files, warn
10981 # about them and drop them.
10984 for x in $build_xm_file; do
10985 if test -f $srcdir/config/$x
10986 then bx="$bx $x"
10987 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10988 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10990 done
10991 build_xm_file="$bx"
10994 for x in $host_xm_file; do
10995 if test -f $srcdir/config/$x
10996 then hx="$hx $x"
10997 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10998 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11000 done
11001 host_xm_file="$hx"
11004 for x in $xm_file; do
11005 if test -f $srcdir/config/$x
11006 then tx="$tx $x"
11007 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11008 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11010 done
11011 xm_file="$tx"
11013 count=a
11014 for f in $tm_file; do
11015 count=${count}x
11016 done
11017 if test $count = ax; then
11018 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11019 else
11020 echo "Using the following target machine macro files:"
11021 for f in $tm_file; do
11022 echo " $srcdir/config/$f"
11023 done
11026 if test x$need_64bit_hwint = xyes; then
11028 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11032 if test x$use_long_long_for_widest_fast_int = xyes; then
11034 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11038 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11040 cat >>confdefs.h <<_ACEOF
11041 #define HAVE_GNU_LD $gnu_ld_bool
11042 _ACEOF
11045 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_GNU_AS $gnu_as_bool
11049 _ACEOF
11052 count=a
11053 for f in $host_xm_file; do
11054 count=${count}x
11055 done
11056 if test $count = a; then
11058 elif test $count = ax; then
11059 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11060 else
11061 echo "Using the following host machine macro files:"
11062 for f in $host_xm_file; do
11063 echo " $srcdir/config/$f"
11064 done
11066 echo "Using ${out_host_hook_obj} for host machine hooks."
11068 if test "$host_xm_file" != "$build_xm_file"; then
11069 count=a
11070 for f in $build_xm_file; do
11071 count=${count}x
11072 done
11073 if test $count = a; then
11075 elif test $count = ax; then
11076 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11077 else
11078 echo "Using the following build machine macro files:"
11079 for f in $build_xm_file; do
11080 echo " $srcdir/config/$f"
11081 done
11085 if test -n "$configured_native_system_header_dir"; then
11086 native_system_header_dir=$configured_native_system_header_dir
11088 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11091 case ${host} in
11092 powerpc*-*-darwin*)
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11094 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11095 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11101 #include <sys/cdefs.h>
11102 #include <sys/signal.h>
11103 #include <ucontext.h>
11104 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"; then :
11108 gcc_cv_mcontext_underscores=no
11109 else
11110 gcc_cv_mcontext_underscores=yes
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11115 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11116 if test $gcc_cv_mcontext_underscores = yes; then
11118 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11122 esac
11124 # ---------
11125 # Threading
11126 # ---------
11128 # Check if a valid thread package
11129 case ${enable_threads} in
11130 "" | no)
11131 # No threads
11132 target_thread_file='single'
11134 yes)
11135 # default
11136 target_thread_file='single'
11138 aix | dce | lynx | mipssde | posix | rtems | \
11139 single | tpf | vxworks | win32)
11140 target_thread_file=${enable_threads}
11143 echo "${enable_threads} is an unknown thread package" 1>&2
11144 exit 1
11146 esac
11148 if test x${thread_file} = x; then
11149 # No thread file set by target-specific clauses in config.gcc,
11150 # so use file chosen by default logic above
11151 thread_file=${target_thread_file}
11154 # --------
11155 # UNSORTED
11156 # --------
11158 use_cxa_atexit=no
11159 if test x$enable___cxa_atexit = xyes || \
11160 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11161 if test x$host = x$target; then
11162 case $host in
11163 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11164 # keyed to flag_use_cxa_atexit
11165 *-*-mingw32*)
11166 use_cxa_atexit=yes
11168 powerpc-ibm-aix*)
11169 use_cxa_atexit=yes
11172 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11173 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11174 use_cxa_atexit=yes
11175 else
11176 echo "__cxa_atexit can't be enabled on this target"
11180 esac
11181 else
11182 # We can't check for __cxa_atexit when building a cross, so assume
11183 # it is available
11184 use_cxa_atexit=yes
11186 if test x$use_cxa_atexit = xyes; then
11188 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11193 # Look for a file containing extra machine modes.
11194 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11195 extra_modes_file='$(srcdir)'/config/${extra_modes}
11198 cat >>confdefs.h <<_ACEOF
11199 #define EXTRA_MODES_FILE "config/$extra_modes"
11200 _ACEOF
11204 # Convert extra_options into a form suitable for Makefile use.
11205 extra_opt_files=
11206 all_opt_files=
11207 for f in $extra_options; do
11208 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11209 all_opt_files="$all_opt_files $srcdir/config/$f"
11210 done
11213 # auto-host.h is the file containing items generated by autoconf and is
11214 # the first file included by config.h.
11215 # If host=build, it is correct to have bconfig include auto-host.h
11216 # as well. If host!=build, we are in error and need to do more
11217 # work to find out the build config parameters.
11218 if test x$host = x$build
11219 then
11220 build_auto=auto-host.h
11221 else
11222 # We create a subdir, then run autoconf in the subdir.
11223 # To prevent recursion we set host and build for the new
11224 # invocation of configure to the build for this invocation
11225 # of configure.
11226 tempdir=build.$$
11227 rm -rf $tempdir
11228 mkdir $tempdir
11229 cd $tempdir
11230 case ${srcdir} in
11231 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11232 *) realsrcdir=../${srcdir};;
11233 esac
11234 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11235 LDFLAGS="${LDFLAGS_FOR_BUILD}" GMPINC="" \
11236 ${realsrcdir}/configure \
11237 --enable-languages=${enable_languages-all} \
11238 --target=$target_alias --host=$build_alias --build=$build_alias
11240 # We just finished tests for the build machine, so rename
11241 # the file auto-build.h in the gcc directory.
11242 mv auto-host.h ../auto-build.h
11243 cd ..
11244 rm -rf $tempdir
11245 build_auto=auto-build.h
11249 tm_file="${tm_file} defaults.h"
11250 tm_p_file="${tm_p_file} tm-preds.h"
11251 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11252 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11253 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11254 # put this back in temporarily.
11255 xm_file="auto-host.h ansidecl.h ${xm_file}"
11257 # --------
11258 # UNSORTED
11259 # --------
11261 # Compile in configure arguments.
11262 if test -f configargs.h ; then
11263 # Being re-configured.
11264 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11265 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11266 else
11267 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11270 # Double all backslashes and backslash all quotes to turn
11271 # gcc_config_arguments into a C string.
11272 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11273 $gcc_config_arguments
11275 gcc_config_arguments_str=`cat conftest.out`
11276 rm -f conftest.out
11278 cat > configargs.h <<EOF
11279 /* Generated automatically. */
11280 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11281 static const char thread_model[] = "$thread_file";
11283 static const struct {
11284 const char *name, *value;
11285 } configure_default_options[] = $configure_default_options;
11288 gcc_BASEVER=`cat $srcdir/BASE-VER`
11289 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11290 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11291 if test -f $srcdir/REVISION ; then
11292 gcc_REVISION=`cat $srcdir/REVISION`
11293 else
11294 gcc_REVISION=""
11296 cat > plugin-version.h <<EOF
11297 #include "configargs.h"
11299 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11300 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11301 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11302 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11304 static char basever[] = "$gcc_BASEVER";
11305 static char datestamp[] = "$gcc_DATESTAMP";
11306 static char devphase[] = "$gcc_DEVPHASE";
11307 static char revision[] = "$gcc_REVISION";
11309 /* FIXME plugins: We should make the version information more precise.
11310 One way to do is to add a checksum. */
11312 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11313 devphase, revision,
11314 configuration_arguments};
11317 # Internationalization
11318 # If we haven't got the data from the intl directory,
11319 # assume NLS is disabled.
11320 USE_NLS=no
11321 LIBINTL=
11322 LIBINTL_DEP=
11323 INCINTL=
11324 XGETTEXT=
11325 GMSGFMT=
11326 POSUB=
11328 if test -f ../intl/config.intl; then
11329 . ../intl/config.intl
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11332 $as_echo_n "checking whether NLS is requested... " >&6; }
11333 if test x"$USE_NLS" != xyes; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 $as_echo "yes" >&6; }
11340 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11344 $as_echo_n "checking for catalogs to be installed... " >&6; }
11345 # Look for .po and .gmo files in the source directory.
11346 CATALOGS=
11347 XLINGUAS=
11348 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11349 # If there aren't any .gmo files the shell will give us the
11350 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11351 # weeded out.
11352 case "$cat" in *\**)
11353 continue;;
11354 esac
11355 # The quadruple backslash is collapsed to a double backslash
11356 # by the backticks, then collapsed again by the double quotes,
11357 # leaving us with one backslash in the sed expression (right
11358 # before the dot that mustn't act as a wildcard).
11359 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11360 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11361 # The user is allowed to set LINGUAS to a list of languages to
11362 # install catalogs for. If it's empty that means "all of them."
11363 if test "x$LINGUAS" = x; then
11364 CATALOGS="$CATALOGS $cat"
11365 XLINGUAS="$XLINGUAS $lang"
11366 else
11367 case "$LINGUAS" in *$lang*)
11368 CATALOGS="$CATALOGS $cat"
11369 XLINGUAS="$XLINGUAS $lang"
11371 esac
11373 done
11374 LINGUAS="$XLINGUAS"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11376 $as_echo "$LINGUAS" >&6; }
11379 DATADIRNAME=share
11381 INSTOBJEXT=.mo
11383 GENCAT=gencat
11385 CATOBJEXT=.gmo
11389 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11390 # -liconv on the link line twice.
11391 case "$LIBINTL" in *$LIBICONV*)
11392 LIBICONV= ;;
11393 esac
11395 # Check whether --enable-secureplt was given.
11396 if test "${enable_secureplt+set}" = set; then :
11397 enableval=$enable_secureplt;
11401 # Check whether --enable-leading-mingw64-underscores was given.
11402 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11403 enableval=$enable_leading_mingw64_underscores;
11406 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11408 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11412 # Check whether --enable-cld was given.
11413 if test "${enable_cld+set}" = set; then :
11414 enableval=$enable_cld;
11415 else
11416 enable_cld=no
11420 # Check whether --enable-frame-pointer was given.
11421 if test "${enable_frame_pointer+set}" = set; then :
11422 enableval=$enable_frame_pointer;
11423 else
11425 case $target_os in
11426 linux* | darwin[8912]*)
11427 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11428 # DWARF2.
11429 enable_frame_pointer=no
11432 enable_frame_pointer=yes
11434 esac
11439 # Windows32 Registry support for specifying GCC installation paths.
11440 # Check whether --enable-win32-registry was given.
11441 if test "${enable_win32_registry+set}" = set; then :
11442 enableval=$enable_win32_registry;
11446 case $host_os in
11447 win32 | pe | cygwin* | mingw32* | uwin*)
11448 if test "x$enable_win32_registry" != xno; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11450 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11451 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 ac_func_search_save_LIBS=$LIBS
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11458 /* Override any GCC internal prototype to avoid an error.
11459 Use char because int might match the return type of a GCC
11460 builtin and then its argument prototype would still apply. */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 char RegOpenKeyExA ();
11466 main ()
11468 return RegOpenKeyExA ();
11470 return 0;
11472 _ACEOF
11473 for ac_lib in '' advapi32; do
11474 if test -z "$ac_lib"; then
11475 ac_res="none required"
11476 else
11477 ac_res=-l$ac_lib
11478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_search_RegOpenKeyExA=$ac_res
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext
11485 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11486 break
11488 done
11489 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 else
11492 ac_cv_search_RegOpenKeyExA=no
11494 rm conftest.$ac_ext
11495 LIBS=$ac_func_search_save_LIBS
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11498 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11499 ac_res=$ac_cv_search_RegOpenKeyExA
11500 if test "$ac_res" != no; then :
11501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11503 else
11504 enable_win32_registry=no
11509 if test "x$enable_win32_registry" != xno; then
11511 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11514 if test "x$enable_win32_registry" != xyes \
11515 && test "x$enable_win32_registry" != x; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11519 _ACEOF
11524 esac
11526 # Get an absolute path to the GCC top-level source directory
11527 holddir=`${PWDCMD-pwd}`
11528 cd $srcdir
11529 topdir=`${PWDCMD-pwd}`
11530 cd $holddir
11532 # Conditionalize the makefile for this host machine.
11533 xmake_file=
11534 for f in ${host_xmake_file}
11536 if test -f ${srcdir}/config/$f
11537 then
11538 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11540 done
11542 # Conditionalize the makefile for this target machine.
11543 tmake_file_=
11544 for f in ${tmake_file}
11546 if test -f ${srcdir}/config/$f
11547 then
11548 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11550 done
11551 tmake_file="${tmake_file_}"
11553 out_object_file=`basename $out_file .c`.o
11554 common_out_object_file=`basename $common_out_file .c`.o
11556 tm_file_list="options.h"
11557 tm_include_list="options.h insn-constants.h"
11558 for f in $tm_file; do
11559 case $f in
11560 ./* )
11561 f=`echo $f | sed 's/^..//'`
11562 tm_file_list="${tm_file_list} $f"
11563 tm_include_list="${tm_include_list} $f"
11565 defaults.h )
11566 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11567 tm_include_list="${tm_include_list} $f"
11570 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11571 tm_include_list="${tm_include_list} config/$f"
11573 esac
11574 done
11576 tm_p_file_list=
11577 tm_p_include_list=
11578 for f in $tm_p_file; do
11579 case $f in
11580 tm-preds.h )
11581 tm_p_file_list="${tm_p_file_list} $f"
11582 tm_p_include_list="${tm_p_include_list} $f"
11585 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11586 tm_p_include_list="${tm_p_include_list} config/$f"
11587 esac
11588 done
11590 xm_file_list=
11591 xm_include_list=
11592 for f in $xm_file; do
11593 case $f in
11594 ansidecl.h )
11595 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11596 xm_include_list="${xm_include_list} $f"
11598 auto-host.h )
11599 xm_file_list="${xm_file_list} $f"
11600 xm_include_list="${xm_include_list} $f"
11603 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11604 xm_include_list="${xm_include_list} config/$f"
11606 esac
11607 done
11609 host_xm_file_list=
11610 host_xm_include_list=
11611 for f in $host_xm_file; do
11612 case $f in
11613 ansidecl.h )
11614 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11615 host_xm_include_list="${host_xm_include_list} $f"
11617 auto-host.h )
11618 host_xm_file_list="${host_xm_file_list} $f"
11619 host_xm_include_list="${host_xm_include_list} $f"
11622 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11623 host_xm_include_list="${host_xm_include_list} config/$f"
11625 esac
11626 done
11628 build_xm_file_list=
11629 for f in $build_xm_file; do
11630 case $f in
11631 ansidecl.h )
11632 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11633 build_xm_include_list="${build_xm_include_list} $f"
11635 auto-build.h | auto-host.h )
11636 build_xm_file_list="${build_xm_file_list} $f"
11637 build_xm_include_list="${build_xm_include_list} $f"
11640 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11641 build_xm_include_list="${build_xm_include_list} config/$f"
11643 esac
11644 done
11646 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11647 # cross-compiler which does not use the native headers and libraries.
11648 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11649 CROSS=
11650 ALL=all.internal
11651 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11653 if test "x$with_build_sysroot" != x; then
11654 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11655 else
11656 # This value is used, even on a native system, because
11657 # CROSS_SYSTEM_HEADER_DIR is just
11658 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11659 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11662 if test x$host != x$target
11663 then
11664 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11665 ALL=all.cross
11666 SYSTEM_HEADER_DIR=$build_system_header_dir
11667 case "$host","$target" in
11668 # Darwin crosses can use the host system's libraries and headers,
11669 # because of the fat library support. Of course, it must be the
11670 # same version of Darwin on both sides. Allow the user to
11671 # just say --target=foo-darwin without a version number to mean
11672 # "the version on this system".
11673 *-*-darwin*,*-*-darwin*)
11674 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11675 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11676 if test $hostos = $targetos -o $targetos = darwin ; then
11677 CROSS=
11678 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11679 with_headers=yes
11683 i?86-*-*,x86_64-*-* \
11684 | powerpc*-*-*,powerpc64*-*-*)
11685 CROSS="$CROSS -DNATIVE_CROSS" ;;
11686 esac
11688 case $target in
11689 *-*-mingw*)
11690 if test "x$with_headers" = x; then
11691 with_headers=yes
11696 esac
11697 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11698 SYSTEM_HEADER_DIR=$build_system_header_dir
11701 # If this is a cross-compiler that does not
11702 # have its own set of headers then define
11703 # inhibit_libc
11705 # If this is using newlib, without having the headers available now,
11706 # then define inhibit_libc in LIBGCC2_CFLAGS.
11707 # This prevents libgcc2 from containing any code which requires libc
11708 # support.
11709 : ${inhibit_libc=false}
11710 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11711 test x$with_newlib = xyes ; } &&
11712 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11713 inhibit_libc=true
11717 # When building gcc with a cross-compiler, we need to adjust things so
11718 # that the generator programs are still built with the native compiler.
11719 # Also, we cannot run fixincludes.
11721 # These are the normal (build=host) settings:
11722 CC_FOR_BUILD='$(CC)'
11723 CXX_FOR_BUILD='$(CXX)'
11724 BUILD_CFLAGS='$(ALL_CFLAGS)'
11725 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11726 BUILD_LDFLAGS='$(LDFLAGS)'
11727 STMP_FIXINC=stmp-fixinc
11729 # And these apply if build != host, or we are generating coverage data
11730 if test x$build != x$host || test "x$coverage_flags" != x
11731 then
11732 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11733 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11734 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11737 # Expand extra_headers to include complete path.
11738 # This substitutes for lots of t-* files.
11739 extra_headers_list=
11740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11741 for file in ${extra_headers} ; do
11742 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11743 done
11745 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11746 if test x"$use_gcc_tgmath" = xyes
11747 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11750 # Define collect2 in Makefile.
11751 case $host_can_use_collect2 in
11752 no) collect2= ;;
11753 *) collect2='collect2$(exeext)' ;;
11754 esac
11757 # Add a definition of USE_COLLECT2 if system wants one.
11758 case $use_collect2 in
11759 no) use_collect2= ;;
11760 "") ;;
11762 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11763 xm_defines="${xm_defines} USE_COLLECT2"
11764 case $host_can_use_collect2 in
11766 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11768 esac
11770 esac
11773 cat >>confdefs.h <<_ACEOF
11774 #define FRPLUGINSONAME "${host_function_reordering_plugin_soname}"
11775 _ACEOF
11779 cat >>confdefs.h <<_ACEOF
11780 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11781 _ACEOF
11784 # ---------------------------
11785 # Assembler & linker features
11786 # ---------------------------
11788 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11789 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11790 # However when ld-new is first executed from the build tree, libtool will
11791 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11792 # to the build tree. While doing this we need to use the previous-stage
11793 # linker, or we have an infinite loop. The presence of a shell script as
11794 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11795 # the gcc/collect-ld script. So we need to know how libtool works, or
11796 # exec-tool will fail.
11799 case `pwd` in
11800 *\ * | *\ *)
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11802 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11803 esac
11807 macro_version='2.2.7a'
11808 macro_revision='1.3134'
11822 ltmain="$ac_aux_dir/ltmain.sh"
11824 # Backslashify metacharacters that are still active within
11825 # double-quoted strings.
11826 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11828 # Same as above, but do not quote variable references.
11829 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11831 # Sed substitution to delay expansion of an escaped shell variable in a
11832 # double_quote_subst'ed string.
11833 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11835 # Sed substitution to delay expansion of an escaped single quote.
11836 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11838 # Sed substitution to avoid accidental globbing in evaled expressions
11839 no_glob_subst='s/\*/\\\*/g'
11841 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11842 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11843 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11846 $as_echo_n "checking how to print strings... " >&6; }
11847 # Test print first, because it will be a builtin if present.
11848 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11849 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11850 ECHO='print -r --'
11851 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11852 ECHO='printf %s\n'
11853 else
11854 # Use this function as a fallback that always works.
11855 func_fallback_echo ()
11857 eval 'cat <<_LTECHO_EOF
11859 _LTECHO_EOF'
11861 ECHO='func_fallback_echo'
11864 # func_echo_all arg...
11865 # Invoke $ECHO with all args, space-separated.
11866 func_echo_all ()
11868 $ECHO ""
11871 case "$ECHO" in
11872 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11873 $as_echo "printf" >&6; } ;;
11874 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11875 $as_echo "print -r" >&6; } ;;
11876 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11877 $as_echo "cat" >&6; } ;;
11878 esac
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11894 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11895 if test "${ac_cv_path_SED+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11899 for ac_i in 1 2 3 4 5 6 7; do
11900 ac_script="$ac_script$as_nl$ac_script"
11901 done
11902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11903 { ac_script=; unset ac_script;}
11904 if test -z "$SED"; then
11905 ac_path_SED_found=false
11906 # Loop through the user's path and test for each of PROGNAME-LIST
11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11910 IFS=$as_save_IFS
11911 test -z "$as_dir" && as_dir=.
11912 for ac_prog in sed gsed; do
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11915 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11916 # Check for GNU ac_path_SED and select it if it is found.
11917 # Check for GNU $ac_path_SED
11918 case `"$ac_path_SED" --version 2>&1` in
11919 *GNU*)
11920 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11922 ac_count=0
11923 $as_echo_n 0123456789 >"conftest.in"
11924 while :
11926 cat "conftest.in" "conftest.in" >"conftest.tmp"
11927 mv "conftest.tmp" "conftest.in"
11928 cp "conftest.in" "conftest.nl"
11929 $as_echo '' >> "conftest.nl"
11930 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11932 as_fn_arith $ac_count + 1 && ac_count=$as_val
11933 if test $ac_count -gt ${ac_path_SED_max-0}; then
11934 # Best one so far, save it but keep looking for a better one
11935 ac_cv_path_SED="$ac_path_SED"
11936 ac_path_SED_max=$ac_count
11938 # 10*(2^10) chars as input seems more than enough
11939 test $ac_count -gt 10 && break
11940 done
11941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11942 esac
11944 $ac_path_SED_found && break 3
11945 done
11946 done
11947 done
11948 IFS=$as_save_IFS
11949 if test -z "$ac_cv_path_SED"; then
11950 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11952 else
11953 ac_cv_path_SED=$SED
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11958 $as_echo "$ac_cv_path_SED" >&6; }
11959 SED="$ac_cv_path_SED"
11960 rm -f conftest.sed
11962 test -z "$SED" && SED=sed
11963 Xsed="$SED -e 1s/^X//"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11976 $as_echo_n "checking for fgrep... " >&6; }
11977 if test "${ac_cv_path_FGREP+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11981 then ac_cv_path_FGREP="$GREP -F"
11982 else
11983 if test -z "$FGREP"; then
11984 ac_path_FGREP_found=false
11985 # Loop through the user's path and test for each of PROGNAME-LIST
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
11991 for ac_prog in fgrep; do
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11994 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11995 # Check for GNU ac_path_FGREP and select it if it is found.
11996 # Check for GNU $ac_path_FGREP
11997 case `"$ac_path_FGREP" --version 2>&1` in
11998 *GNU*)
11999 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12001 ac_count=0
12002 $as_echo_n 0123456789 >"conftest.in"
12003 while :
12005 cat "conftest.in" "conftest.in" >"conftest.tmp"
12006 mv "conftest.tmp" "conftest.in"
12007 cp "conftest.in" "conftest.nl"
12008 $as_echo 'FGREP' >> "conftest.nl"
12009 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12011 as_fn_arith $ac_count + 1 && ac_count=$as_val
12012 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12013 # Best one so far, save it but keep looking for a better one
12014 ac_cv_path_FGREP="$ac_path_FGREP"
12015 ac_path_FGREP_max=$ac_count
12017 # 10*(2^10) chars as input seems more than enough
12018 test $ac_count -gt 10 && break
12019 done
12020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12021 esac
12023 $ac_path_FGREP_found && break 3
12024 done
12025 done
12026 done
12027 IFS=$as_save_IFS
12028 if test -z "$ac_cv_path_FGREP"; then
12029 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12031 else
12032 ac_cv_path_FGREP=$FGREP
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12038 $as_echo "$ac_cv_path_FGREP" >&6; }
12039 FGREP="$ac_cv_path_FGREP"
12042 test -z "$GREP" && GREP=grep
12062 # Check whether --with-gnu-ld was given.
12063 if test "${with_gnu_ld+set}" = set; then :
12064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12065 else
12066 with_gnu_ld=no
12069 ac_prog=ld
12070 if test "$GCC" = yes; then
12071 # Check if gcc -print-prog-name=ld gives a path.
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12073 $as_echo_n "checking for ld used by $CC... " >&6; }
12074 case $host in
12075 *-*-mingw*)
12076 # gcc leaves a trailing carriage return which upsets mingw
12077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12080 esac
12081 case $ac_prog in
12082 # Accept absolute paths.
12083 [\\/]* | ?:[\\/]*)
12084 re_direlt='/[^/][^/]*/\.\./'
12085 # Canonicalize the pathname of ld
12086 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12087 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12088 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12089 done
12090 test -z "$LD" && LD="$ac_prog"
12093 # If it fails, then pretend we aren't using GCC.
12094 ac_prog=ld
12097 # If it is relative, then search for the first ld in PATH.
12098 with_gnu_ld=unknown
12100 esac
12101 elif test "$with_gnu_ld" = yes; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12103 $as_echo_n "checking for GNU ld... " >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12106 $as_echo_n "checking for non-GNU ld... " >&6; }
12108 if test "${lt_cv_path_LD+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111 if test -z "$LD"; then
12112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12113 for ac_dir in $PATH; do
12114 IFS="$lt_save_ifs"
12115 test -z "$ac_dir" && ac_dir=.
12116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12117 lt_cv_path_LD="$ac_dir/$ac_prog"
12118 # Check to see if the program is GNU ld. I'd rather use --version,
12119 # but apparently some variants of GNU ld only accept -v.
12120 # Break only if it was the GNU/non-GNU ld that we prefer.
12121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12122 *GNU* | *'with BFD'*)
12123 test "$with_gnu_ld" != no && break
12126 test "$with_gnu_ld" != yes && break
12128 esac
12130 done
12131 IFS="$lt_save_ifs"
12132 else
12133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12137 LD="$lt_cv_path_LD"
12138 if test -n "$LD"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12140 $as_echo "$LD" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12145 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12148 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12152 case `$LD -v 2>&1 </dev/null` in
12153 *GNU* | *'with BFD'*)
12154 lt_cv_prog_gnu_ld=yes
12157 lt_cv_prog_gnu_ld=no
12159 esac
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12162 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12163 with_gnu_ld=$lt_cv_prog_gnu_ld
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12174 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12175 if test "${lt_cv_path_NM+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -n "$NM"; then
12179 # Let the user override the test.
12180 lt_cv_path_NM="$NM"
12181 else
12182 lt_nm_to_check="${ac_tool_prefix}nm"
12183 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12184 lt_nm_to_check="$lt_nm_to_check nm"
12186 for lt_tmp_nm in $lt_nm_to_check; do
12187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12188 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12189 IFS="$lt_save_ifs"
12190 test -z "$ac_dir" && ac_dir=.
12191 tmp_nm="$ac_dir/$lt_tmp_nm"
12192 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12193 # Check to see if the nm accepts a BSD-compat flag.
12194 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12195 # nm: unknown option "B" ignored
12196 # Tru64's nm complains that /dev/null is an invalid object file
12197 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12198 */dev/null* | *'Invalid file or object type'*)
12199 lt_cv_path_NM="$tmp_nm -B"
12200 break
12203 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12204 */dev/null*)
12205 lt_cv_path_NM="$tmp_nm -p"
12206 break
12209 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12210 continue # so that we can try to find one that supports BSD flags
12212 esac
12214 esac
12216 done
12217 IFS="$lt_save_ifs"
12218 done
12219 : ${lt_cv_path_NM=no}
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12223 $as_echo "$lt_cv_path_NM" >&6; }
12224 if test "$lt_cv_path_NM" != "no"; then
12225 NM="$lt_cv_path_NM"
12226 else
12227 # Didn't find any BSD compatible name lister, look for dumpbin.
12228 if test -n "$DUMPBIN"; then :
12229 # Let the user override the test.
12230 else
12231 if test -n "$ac_tool_prefix"; then
12232 for ac_prog in dumpbin "link -dump"
12234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -n "$DUMPBIN"; then
12242 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12255 done
12256 done
12257 IFS=$as_save_IFS
12261 DUMPBIN=$ac_cv_prog_DUMPBIN
12262 if test -n "$DUMPBIN"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12264 $as_echo "$DUMPBIN" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12271 test -n "$DUMPBIN" && break
12272 done
12274 if test -z "$DUMPBIN"; then
12275 ac_ct_DUMPBIN=$DUMPBIN
12276 for ac_prog in dumpbin "link -dump"
12278 # Extract the first word of "$ac_prog", so it can be a program name with args.
12279 set dummy $ac_prog; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$ac_ct_DUMPBIN"; then
12286 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12299 done
12300 done
12301 IFS=$as_save_IFS
12305 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12306 if test -n "$ac_ct_DUMPBIN"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12308 $as_echo "$ac_ct_DUMPBIN" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12315 test -n "$ac_ct_DUMPBIN" && break
12316 done
12318 if test "x$ac_ct_DUMPBIN" = x; then
12319 DUMPBIN=":"
12320 else
12321 case $cross_compiling:$ac_tool_warned in
12322 yes:)
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12325 ac_tool_warned=yes ;;
12326 esac
12327 DUMPBIN=$ac_ct_DUMPBIN
12331 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12332 *COFF*)
12333 DUMPBIN="$DUMPBIN -symbols"
12336 DUMPBIN=:
12338 esac
12341 if test "$DUMPBIN" != ":"; then
12342 NM="$DUMPBIN"
12345 test -z "$NM" && NM=nm
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12353 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12354 if test "${lt_cv_nm_interface+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 lt_cv_nm_interface="BSD nm"
12358 echo "int some_variable = 0;" > conftest.$ac_ext
12359 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12360 (eval "$ac_compile" 2>conftest.err)
12361 cat conftest.err >&5
12362 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12363 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12364 cat conftest.err >&5
12365 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12366 cat conftest.out >&5
12367 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12368 lt_cv_nm_interface="MS dumpbin"
12370 rm -f conftest*
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12373 $as_echo "$lt_cv_nm_interface" >&6; }
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12376 $as_echo_n "checking whether ln -s works... " >&6; }
12377 LN_S=$as_ln_s
12378 if test "$LN_S" = "ln -s"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12383 $as_echo "no, using $LN_S" >&6; }
12386 # find the maximum length of command line arguments
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12388 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12389 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12393 teststring="ABCD"
12395 case $build_os in
12396 msdosdjgpp*)
12397 # On DJGPP, this test can blow up pretty badly due to problems in libc
12398 # (any single argument exceeding 2000 bytes causes a buffer overrun
12399 # during glob expansion). Even if it were fixed, the result of this
12400 # check would be larger than it should be.
12401 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12404 gnu*)
12405 # Under GNU Hurd, this test is not required because there is
12406 # no limit to the length of command line arguments.
12407 # Libtool will interpret -1 as no limit whatsoever
12408 lt_cv_sys_max_cmd_len=-1;
12411 cygwin* | mingw* | cegcc*)
12412 # On Win9x/ME, this test blows up -- it succeeds, but takes
12413 # about 5 minutes as the teststring grows exponentially.
12414 # Worse, since 9x/ME are not pre-emptively multitasking,
12415 # you end up with a "frozen" computer, even though with patience
12416 # the test eventually succeeds (with a max line length of 256k).
12417 # Instead, let's just punt: use the minimum linelength reported by
12418 # all of the supported platforms: 8192 (on NT/2K/XP).
12419 lt_cv_sys_max_cmd_len=8192;
12422 mint*)
12423 # On MiNT this can take a long time and run out of memory.
12424 lt_cv_sys_max_cmd_len=8192;
12427 amigaos*)
12428 # On AmigaOS with pdksh, this test takes hours, literally.
12429 # So we just punt and use a minimum line length of 8192.
12430 lt_cv_sys_max_cmd_len=8192;
12433 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12434 # This has been around since 386BSD, at least. Likely further.
12435 if test -x /sbin/sysctl; then
12436 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12437 elif test -x /usr/sbin/sysctl; then
12438 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12439 else
12440 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12442 # And add a safety zone
12443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12447 interix*)
12448 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12449 lt_cv_sys_max_cmd_len=196608
12452 osf*)
12453 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12454 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12455 # nice to cause kernel panics so lets avoid the loop below.
12456 # First set a reasonable default.
12457 lt_cv_sys_max_cmd_len=16384
12459 if test -x /sbin/sysconfig; then
12460 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12461 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12462 esac
12465 sco3.2v5*)
12466 lt_cv_sys_max_cmd_len=102400
12468 sysv5* | sco5v6* | sysv4.2uw2*)
12469 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12470 if test -n "$kargmax"; then
12471 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12472 else
12473 lt_cv_sys_max_cmd_len=32768
12477 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12478 if test -n "$lt_cv_sys_max_cmd_len"; then
12479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12481 else
12482 # Make teststring a little bigger before we do anything with it.
12483 # a 1K string should be a reasonable start.
12484 for i in 1 2 3 4 5 6 7 8 ; do
12485 teststring=$teststring$teststring
12486 done
12487 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12488 # If test is not a shell built-in, we'll probably end up computing a
12489 # maximum length that is only half of the actual maximum length, but
12490 # we can't tell.
12491 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12492 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12493 test $i != 17 # 1/2 MB should be enough
12495 i=`expr $i + 1`
12496 teststring=$teststring$teststring
12497 done
12498 # Only check the string length outside the loop.
12499 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12500 teststring=
12501 # Add a significant safety factor because C++ compilers can tack on
12502 # massive amounts of additional arguments before passing them to the
12503 # linker. It appears as though 1/2 is a usable value.
12504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12507 esac
12511 if test -n $lt_cv_sys_max_cmd_len ; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12513 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12514 else
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12516 $as_echo "none" >&6; }
12518 max_cmd_len=$lt_cv_sys_max_cmd_len
12525 : ${CP="cp -f"}
12526 : ${MV="mv -f"}
12527 : ${RM="rm -f"}
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12530 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12531 # Try some XSI features
12532 xsi_shell=no
12533 ( _lt_dummy="a/b/c"
12534 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12535 = c,a/b,, \
12536 && eval 'test $(( 1 + 1 )) -eq 2 \
12537 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12538 && xsi_shell=yes
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12540 $as_echo "$xsi_shell" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12544 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12545 lt_shell_append=no
12546 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12547 >/dev/null 2>&1 \
12548 && lt_shell_append=yes
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12550 $as_echo "$lt_shell_append" >&6; }
12553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12554 lt_unset=unset
12555 else
12556 lt_unset=false
12563 # test EBCDIC or ASCII
12564 case `echo X|tr X '\101'` in
12565 A) # ASCII based system
12566 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12567 lt_SP2NL='tr \040 \012'
12568 lt_NL2SP='tr \015\012 \040\040'
12570 *) # EBCDIC based system
12571 lt_SP2NL='tr \100 \n'
12572 lt_NL2SP='tr \r\n \100\100'
12574 esac
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12585 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12586 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588 else
12589 lt_cv_ld_reload_flag='-r'
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12592 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12593 reload_flag=$lt_cv_ld_reload_flag
12594 case $reload_flag in
12595 "" | " "*) ;;
12596 *) reload_flag=" $reload_flag" ;;
12597 esac
12598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12599 case $host_os in
12600 darwin*)
12601 if test "$GCC" = yes; then
12602 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12603 else
12604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12607 esac
12617 if test -n "$ac_tool_prefix"; then
12618 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12619 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 if test -n "$OBJDUMP"; then
12626 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12635 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12639 done
12640 done
12641 IFS=$as_save_IFS
12645 OBJDUMP=$ac_cv_prog_OBJDUMP
12646 if test -n "$OBJDUMP"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12648 $as_echo "$OBJDUMP" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12656 if test -z "$ac_cv_prog_OBJDUMP"; then
12657 ac_ct_OBJDUMP=$OBJDUMP
12658 # Extract the first word of "objdump", so it can be a program name with args.
12659 set dummy objdump; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$ac_ct_OBJDUMP"; then
12666 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12685 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12686 if test -n "$ac_ct_OBJDUMP"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12688 $as_echo "$ac_ct_OBJDUMP" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12694 if test "x$ac_ct_OBJDUMP" = x; then
12695 OBJDUMP="false"
12696 else
12697 case $cross_compiling:$ac_tool_warned in
12698 yes:)
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12701 ac_tool_warned=yes ;;
12702 esac
12703 OBJDUMP=$ac_ct_OBJDUMP
12705 else
12706 OBJDUMP="$ac_cv_prog_OBJDUMP"
12709 test -z "$OBJDUMP" && OBJDUMP=objdump
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12720 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12721 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 lt_cv_file_magic_cmd='$MAGIC_CMD'
12725 lt_cv_file_magic_test_file=
12726 lt_cv_deplibs_check_method='unknown'
12727 # Need to set the preceding variable on all platforms that support
12728 # interlibrary dependencies.
12729 # 'none' -- dependencies not supported.
12730 # `unknown' -- same as none, but documents that we really don't know.
12731 # 'pass_all' -- all dependencies passed with no checks.
12732 # 'test_compile' -- check by making test program.
12733 # 'file_magic [[regex]]' -- check by looking for files in library path
12734 # which responds to the $file_magic_cmd with a given extended regex.
12735 # If you have `file' or equivalent on your system and you're not sure
12736 # whether `pass_all' will *always* work, you probably want this one.
12738 case $host_os in
12739 aix[4-9]*)
12740 lt_cv_deplibs_check_method=pass_all
12743 beos*)
12744 lt_cv_deplibs_check_method=pass_all
12747 bsdi[45]*)
12748 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12749 lt_cv_file_magic_cmd='/usr/bin/file -L'
12750 lt_cv_file_magic_test_file=/shlib/libc.so
12753 cygwin*)
12754 # func_win32_libid is a shell function defined in ltmain.sh
12755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12756 lt_cv_file_magic_cmd='func_win32_libid'
12759 mingw* | pw32*)
12760 # Base MSYS/MinGW do not provide the 'file' command needed by
12761 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12762 # unless we find 'file', for example because we are cross-compiling.
12763 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12764 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12766 lt_cv_file_magic_cmd='func_win32_libid'
12767 else
12768 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12769 lt_cv_file_magic_cmd='$OBJDUMP -f'
12773 cegcc*)
12774 # use the weaker test based on 'objdump'. See mingw*.
12775 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12776 lt_cv_file_magic_cmd='$OBJDUMP -f'
12779 darwin* | rhapsody*)
12780 lt_cv_deplibs_check_method=pass_all
12783 freebsd* | dragonfly*)
12784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12785 case $host_cpu in
12786 i*86 )
12787 # Not sure whether the presence of OpenBSD here was a mistake.
12788 # Let's accept both of them until this is cleared up.
12789 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12790 lt_cv_file_magic_cmd=/usr/bin/file
12791 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12793 esac
12794 else
12795 lt_cv_deplibs_check_method=pass_all
12799 gnu*)
12800 lt_cv_deplibs_check_method=pass_all
12803 haiku*)
12804 lt_cv_deplibs_check_method=pass_all
12807 hpux10.20* | hpux11*)
12808 lt_cv_file_magic_cmd=/usr/bin/file
12809 case $host_cpu in
12810 ia64*)
12811 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12812 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12814 hppa*64*)
12815 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]'
12816 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12819 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12820 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12822 esac
12825 interix[3-9]*)
12826 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12830 irix5* | irix6* | nonstopux*)
12831 case $LD in
12832 *-32|*"-32 ") libmagic=32-bit;;
12833 *-n32|*"-n32 ") libmagic=N32;;
12834 *-64|*"-64 ") libmagic=64-bit;;
12835 *) libmagic=never-match;;
12836 esac
12837 lt_cv_deplibs_check_method=pass_all
12840 # This must be Linux ELF.
12841 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12842 lt_cv_deplibs_check_method=pass_all
12845 netbsd*)
12846 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12848 else
12849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12853 newos6*)
12854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12855 lt_cv_file_magic_cmd=/usr/bin/file
12856 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12859 *nto* | *qnx*)
12860 lt_cv_deplibs_check_method=pass_all
12863 openbsd*)
12864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12866 else
12867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12871 osf3* | osf4* | osf5*)
12872 lt_cv_deplibs_check_method=pass_all
12875 rdos*)
12876 lt_cv_deplibs_check_method=pass_all
12879 solaris*)
12880 lt_cv_deplibs_check_method=pass_all
12883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12884 lt_cv_deplibs_check_method=pass_all
12887 sysv4 | sysv4.3*)
12888 case $host_vendor in
12889 motorola)
12890 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]'
12891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12893 ncr)
12894 lt_cv_deplibs_check_method=pass_all
12896 sequent)
12897 lt_cv_file_magic_cmd='/bin/file'
12898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12900 sni)
12901 lt_cv_file_magic_cmd='/bin/file'
12902 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12903 lt_cv_file_magic_test_file=/lib/libc.so
12905 siemens)
12906 lt_cv_deplibs_check_method=pass_all
12909 lt_cv_deplibs_check_method=pass_all
12911 esac
12914 tpf*)
12915 lt_cv_deplibs_check_method=pass_all
12917 esac
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12921 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12922 file_magic_cmd=$lt_cv_file_magic_cmd
12923 deplibs_check_method=$lt_cv_deplibs_check_method
12924 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12937 if test -n "$ac_tool_prefix"; then
12938 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12939 set dummy ${ac_tool_prefix}ar; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_AR+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$AR"; then
12946 ac_cv_prog_AR="$AR" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_AR="${ac_tool_prefix}ar"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 AR=$ac_cv_prog_AR
12966 if test -n "$AR"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12968 $as_echo "$AR" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12976 if test -z "$ac_cv_prog_AR"; then
12977 ac_ct_AR=$AR
12978 # Extract the first word of "ar", so it can be a program name with args.
12979 set dummy ar; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 if test -n "$ac_ct_AR"; then
12986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12987 else
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12991 IFS=$as_save_IFS
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12995 ac_cv_prog_ac_ct_AR="ar"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 break 2
12999 done
13000 done
13001 IFS=$as_save_IFS
13005 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13006 if test -n "$ac_ct_AR"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13008 $as_echo "$ac_ct_AR" >&6; }
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13014 if test "x$ac_ct_AR" = x; then
13015 AR="false"
13016 else
13017 case $cross_compiling:$ac_tool_warned in
13018 yes:)
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13021 ac_tool_warned=yes ;;
13022 esac
13023 AR=$ac_ct_AR
13025 else
13026 AR="$ac_cv_prog_AR"
13029 test -z "$AR" && AR=ar
13030 test -z "$AR_FLAGS" && AR_FLAGS=cru
13042 if test -n "$ac_tool_prefix"; then
13043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13044 set dummy ${ac_tool_prefix}strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_prog_STRIP+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 if test -n "$STRIP"; then
13051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13052 else
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13064 done
13065 done
13066 IFS=$as_save_IFS
13070 STRIP=$ac_cv_prog_STRIP
13071 if test -n "$STRIP"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13073 $as_echo "$STRIP" >&6; }
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13081 if test -z "$ac_cv_prog_STRIP"; then
13082 ac_ct_STRIP=$STRIP
13083 # Extract the first word of "strip", so it can be a program name with args.
13084 set dummy strip; ac_word=$2
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13086 $as_echo_n "checking for $ac_word... " >&6; }
13087 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 if test -n "$ac_ct_STRIP"; then
13091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13092 else
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_prog_ac_ct_STRIP="strip"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 break 2
13104 done
13105 done
13106 IFS=$as_save_IFS
13110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13111 if test -n "$ac_ct_STRIP"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13113 $as_echo "$ac_ct_STRIP" >&6; }
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13119 if test "x$ac_ct_STRIP" = x; then
13120 STRIP=":"
13121 else
13122 case $cross_compiling:$ac_tool_warned in
13123 yes:)
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13126 ac_tool_warned=yes ;;
13127 esac
13128 STRIP=$ac_ct_STRIP
13130 else
13131 STRIP="$ac_cv_prog_STRIP"
13134 test -z "$STRIP" && STRIP=:
13141 if test -n "$ac_tool_prefix"; then
13142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$RANLIB"; then
13150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13163 done
13164 done
13165 IFS=$as_save_IFS
13169 RANLIB=$ac_cv_prog_RANLIB
13170 if test -n "$RANLIB"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13172 $as_echo "$RANLIB" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13180 if test -z "$ac_cv_prog_RANLIB"; then
13181 ac_ct_RANLIB=$RANLIB
13182 # Extract the first word of "ranlib", so it can be a program name with args.
13183 set dummy ranlib; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$ac_ct_RANLIB"; then
13190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_ac_ct_RANLIB="ranlib"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13210 if test -n "$ac_ct_RANLIB"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13212 $as_echo "$ac_ct_RANLIB" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13218 if test "x$ac_ct_RANLIB" = x; then
13219 RANLIB=":"
13220 else
13221 case $cross_compiling:$ac_tool_warned in
13222 yes:)
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13225 ac_tool_warned=yes ;;
13226 esac
13227 RANLIB=$ac_ct_RANLIB
13229 else
13230 RANLIB="$ac_cv_prog_RANLIB"
13233 test -z "$RANLIB" && RANLIB=:
13240 # Determine commands to create old-style static archives.
13241 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13242 old_postinstall_cmds='chmod 644 $oldlib'
13243 old_postuninstall_cmds=
13245 if test -n "$RANLIB"; then
13246 case $host_os in
13247 openbsd*)
13248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13253 esac
13254 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13257 case $host_os in
13258 darwin*)
13259 lock_old_archive_extraction=yes ;;
13261 lock_old_archive_extraction=no ;;
13262 esac
13302 # If no C compiler was specified, use CC.
13303 LTCC=${LTCC-"$CC"}
13305 # If no C compiler flags were specified, use CFLAGS.
13306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13308 # Allow CC to be a program name with arguments.
13309 compiler=$CC
13312 # Check for command to grab the raw symbol name followed by C symbol from nm.
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13314 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13315 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13319 # These are sane defaults that work on at least a few old systems.
13320 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13322 # Character class describing NM global symbol codes.
13323 symcode='[BCDEGRST]'
13325 # Regexp to match symbols that can be accessed directly from C.
13326 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13328 # Define system-specific variables.
13329 case $host_os in
13330 aix*)
13331 symcode='[BCDT]'
13333 cygwin* | mingw* | pw32* | cegcc*)
13334 symcode='[ABCDGISTW]'
13336 hpux*)
13337 if test "$host_cpu" = ia64; then
13338 symcode='[ABCDEGRST]'
13341 irix* | nonstopux*)
13342 symcode='[BCDEGRST]'
13344 osf*)
13345 symcode='[BCDEGQRST]'
13347 solaris*)
13348 symcode='[BDRT]'
13350 sco3.2v5*)
13351 symcode='[DT]'
13353 sysv4.2uw2*)
13354 symcode='[DT]'
13356 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13357 symcode='[ABDT]'
13359 sysv4)
13360 symcode='[DFNSTU]'
13362 esac
13364 # If we're using GNU nm, then use its standard symbol codes.
13365 case `$NM -V 2>&1` in
13366 *GNU* | *'with BFD'*)
13367 symcode='[ABCDGIRSTW]' ;;
13368 esac
13370 # Transform an extracted symbol line into a proper C declaration.
13371 # Some systems (esp. on ia64) link data and code symbols differently,
13372 # so use this general approach.
13373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13375 # Transform an extracted symbol line into symbol name and symbol address
13376 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13377 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'"
13379 # Handle CRLF in mingw tool chain
13380 opt_cr=
13381 case $build_os in
13382 mingw*)
13383 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13385 esac
13387 # Try without a prefix underscore, then with it.
13388 for ac_symprfx in "" "_"; do
13390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13391 symxfrm="\\1 $ac_symprfx\\2 \\2"
13393 # Write the raw and C identifiers.
13394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13395 # Fake it for dumpbin and say T for any non-static function
13396 # and D for any global variable.
13397 # Also find C++ and __fastcall symbols from MSVC++,
13398 # which start with @ or ?.
13399 lt_cv_sys_global_symbol_pipe="$AWK '"\
13400 " {last_section=section; section=\$ 3};"\
13401 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13402 " \$ 0!~/External *\|/{next};"\
13403 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13404 " {if(hide[section]) next};"\
13405 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13406 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13407 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13408 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13409 " ' prfx=^$ac_symprfx"
13410 else
13411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13414 # Check to see that the pipe works correctly.
13415 pipe_works=no
13417 rm -f conftest*
13418 cat > conftest.$ac_ext <<_LT_EOF
13419 #ifdef __cplusplus
13420 extern "C" {
13421 #endif
13422 char nm_test_var;
13423 void nm_test_func(void);
13424 void nm_test_func(void){}
13425 #ifdef __cplusplus
13427 #endif
13428 int main(){nm_test_var='a';nm_test_func();return(0);}
13429 _LT_EOF
13431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13432 (eval $ac_compile) 2>&5
13433 ac_status=$?
13434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; then
13436 # Now try to grab the symbols.
13437 nlist=conftest.nm
13438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13439 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13440 ac_status=$?
13441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442 test $ac_status = 0; } && test -s "$nlist"; then
13443 # Try sorting and uniquifying the output.
13444 if sort "$nlist" | uniq > "$nlist"T; then
13445 mv -f "$nlist"T "$nlist"
13446 else
13447 rm -f "$nlist"T
13450 # Make sure that we snagged all the symbols we need.
13451 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13452 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13453 cat <<_LT_EOF > conftest.$ac_ext
13454 #ifdef __cplusplus
13455 extern "C" {
13456 #endif
13458 _LT_EOF
13459 # Now generate the symbol file.
13460 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13462 cat <<_LT_EOF >> conftest.$ac_ext
13464 /* The mapping between symbol names and symbols. */
13465 const struct {
13466 const char *name;
13467 void *address;
13469 lt__PROGRAM__LTX_preloaded_symbols[] =
13471 { "@PROGRAM@", (void *) 0 },
13472 _LT_EOF
13473 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13474 cat <<\_LT_EOF >> conftest.$ac_ext
13475 {0, (void *) 0}
13478 /* This works around a problem in FreeBSD linker */
13479 #ifdef FREEBSD_WORKAROUND
13480 static const void *lt_preloaded_setup() {
13481 return lt__PROGRAM__LTX_preloaded_symbols;
13483 #endif
13485 #ifdef __cplusplus
13487 #endif
13488 _LT_EOF
13489 # Now try linking the two files.
13490 mv conftest.$ac_objext conftstm.$ac_objext
13491 lt_save_LIBS="$LIBS"
13492 lt_save_CFLAGS="$CFLAGS"
13493 LIBS="conftstm.$ac_objext"
13494 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13496 (eval $ac_link) 2>&5
13497 ac_status=$?
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13500 pipe_works=yes
13502 LIBS="$lt_save_LIBS"
13503 CFLAGS="$lt_save_CFLAGS"
13504 else
13505 echo "cannot find nm_test_func in $nlist" >&5
13507 else
13508 echo "cannot find nm_test_var in $nlist" >&5
13510 else
13511 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13513 else
13514 echo "$progname: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 rm -rf conftest* conftst*
13519 # Do not use the global_symbol_pipe unless it works.
13520 if test "$pipe_works" = yes; then
13521 break
13522 else
13523 lt_cv_sys_global_symbol_pipe=
13525 done
13529 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13530 lt_cv_sys_global_symbol_to_cdecl=
13532 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13534 $as_echo "failed" >&6; }
13535 else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13537 $as_echo "ok" >&6; }
13561 # Check whether --enable-libtool-lock was given.
13562 if test "${enable_libtool_lock+set}" = set; then :
13563 enableval=$enable_libtool_lock;
13566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13568 # Some flags need to be propagated to the compiler or linker for good
13569 # libtool support.
13570 case $host in
13571 ia64-*-hpux*)
13572 # Find out which ABI we are using.
13573 echo 'int i;' > conftest.$ac_ext
13574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13575 (eval $ac_compile) 2>&5
13576 ac_status=$?
13577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13578 test $ac_status = 0; }; then
13579 case `/usr/bin/file conftest.$ac_objext` in
13580 *ELF-32*)
13581 HPUX_IA64_MODE="32"
13583 *ELF-64*)
13584 HPUX_IA64_MODE="64"
13586 esac
13588 rm -rf conftest*
13590 *-*-irix6*)
13591 # Find out which ABI we are using.
13592 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13594 (eval $ac_compile) 2>&5
13595 ac_status=$?
13596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13597 test $ac_status = 0; }; then
13598 if test "$lt_cv_prog_gnu_ld" = yes; then
13599 case `/usr/bin/file conftest.$ac_objext` in
13600 *32-bit*)
13601 LD="${LD-ld} -melf32bsmip"
13603 *N32*)
13604 LD="${LD-ld} -melf32bmipn32"
13606 *64-bit*)
13607 LD="${LD-ld} -melf64bmip"
13609 esac
13610 else
13611 case `/usr/bin/file conftest.$ac_objext` in
13612 *32-bit*)
13613 LD="${LD-ld} -32"
13615 *N32*)
13616 LD="${LD-ld} -n32"
13618 *64-bit*)
13619 LD="${LD-ld} -64"
13621 esac
13624 rm -rf conftest*
13627 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13628 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13629 # Find out which ABI we are using.
13630 echo 'int i;' > conftest.$ac_ext
13631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13632 (eval $ac_compile) 2>&5
13633 ac_status=$?
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 case `/usr/bin/file conftest.o` in
13637 *32-bit*)
13638 case $host in
13639 x86_64-*kfreebsd*-gnu)
13640 LD="${LD-ld} -m elf_i386_fbsd"
13642 x86_64-*linux*)
13643 case `/usr/bin/file conftest.o` in
13644 *x86-64*)
13645 LD="${LD-ld} -m elf32_x86_64"
13648 LD="${LD-ld} -m elf_i386"
13650 esac
13652 powerpc64le-*)
13653 LD="${LD-ld} -m elf32lppclinux"
13655 powerpc64-*)
13656 LD="${LD-ld} -m elf32ppclinux"
13658 s390x-*linux*)
13659 LD="${LD-ld} -m elf_s390"
13661 sparc64-*linux*)
13662 LD="${LD-ld} -m elf32_sparc"
13664 esac
13666 *64-bit*)
13667 case $host in
13668 x86_64-*kfreebsd*-gnu)
13669 LD="${LD-ld} -m elf_x86_64_fbsd"
13671 x86_64-*linux*)
13672 LD="${LD-ld} -m elf_x86_64"
13674 powerpcle-*)
13675 LD="${LD-ld} -m elf64lppc"
13677 powerpc-*)
13678 LD="${LD-ld} -m elf64ppc"
13680 s390*-*linux*|s390*-*tpf*)
13681 LD="${LD-ld} -m elf64_s390"
13683 sparc*-*linux*)
13684 LD="${LD-ld} -m elf64_sparc"
13686 esac
13688 esac
13690 rm -rf conftest*
13693 *-*-sco3.2v5*)
13694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13695 SAVE_CFLAGS="$CFLAGS"
13696 CFLAGS="$CFLAGS -belf"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13698 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13699 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 ac_ext=c
13703 ac_cpp='$CPP $CPPFLAGS'
13704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13712 main ()
13716 return 0;
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 lt_cv_cc_needs_belf=yes
13721 else
13722 lt_cv_cc_needs_belf=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 ac_ext=c
13727 ac_cpp='$CPP $CPPFLAGS'
13728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13734 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13735 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13736 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13737 CFLAGS="$SAVE_CFLAGS"
13740 sparc*-*solaris*)
13741 # Find out which ABI we are using.
13742 echo 'int i;' > conftest.$ac_ext
13743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13744 (eval $ac_compile) 2>&5
13745 ac_status=$?
13746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13747 test $ac_status = 0; }; then
13748 case `/usr/bin/file conftest.o` in
13749 *64-bit*)
13750 case $lt_cv_prog_gnu_ld in
13751 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13753 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13754 LD="${LD-ld} -64"
13757 esac
13759 esac
13761 rm -rf conftest*
13763 esac
13765 need_locks="$enable_libtool_lock"
13768 case $host_os in
13769 rhapsody* | darwin*)
13770 if test -n "$ac_tool_prefix"; then
13771 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13772 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 if test -n "$DSYMUTIL"; then
13779 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13784 IFS=$as_save_IFS
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13790 break 2
13792 done
13793 done
13794 IFS=$as_save_IFS
13798 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13799 if test -n "$DSYMUTIL"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13801 $as_echo "$DSYMUTIL" >&6; }
13802 else
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13809 if test -z "$ac_cv_prog_DSYMUTIL"; then
13810 ac_ct_DSYMUTIL=$DSYMUTIL
13811 # Extract the first word of "dsymutil", so it can be a program name with args.
13812 set dummy dsymutil; ac_word=$2
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814 $as_echo_n "checking for $ac_word... " >&6; }
13815 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 if test -n "$ac_ct_DSYMUTIL"; then
13819 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13820 else
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13828 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13832 done
13833 done
13834 IFS=$as_save_IFS
13838 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13839 if test -n "$ac_ct_DSYMUTIL"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13841 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13842 else
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844 $as_echo "no" >&6; }
13847 if test "x$ac_ct_DSYMUTIL" = x; then
13848 DSYMUTIL=":"
13849 else
13850 case $cross_compiling:$ac_tool_warned in
13851 yes:)
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13854 ac_tool_warned=yes ;;
13855 esac
13856 DSYMUTIL=$ac_ct_DSYMUTIL
13858 else
13859 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13862 if test -n "$ac_tool_prefix"; then
13863 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13864 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 if test -n "$NMEDIT"; then
13871 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13872 else
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13876 IFS=$as_save_IFS
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 break 2
13884 done
13885 done
13886 IFS=$as_save_IFS
13890 NMEDIT=$ac_cv_prog_NMEDIT
13891 if test -n "$NMEDIT"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13893 $as_echo "$NMEDIT" >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13901 if test -z "$ac_cv_prog_NMEDIT"; then
13902 ac_ct_NMEDIT=$NMEDIT
13903 # Extract the first word of "nmedit", so it can be a program name with args.
13904 set dummy nmedit; ac_word=$2
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13906 $as_echo_n "checking for $ac_word... " >&6; }
13907 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13909 else
13910 if test -n "$ac_ct_NMEDIT"; then
13911 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13912 else
13913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13916 IFS=$as_save_IFS
13917 test -z "$as_dir" && as_dir=.
13918 for ac_exec_ext in '' $ac_executable_extensions; do
13919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13920 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922 break 2
13924 done
13925 done
13926 IFS=$as_save_IFS
13930 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13931 if test -n "$ac_ct_NMEDIT"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13933 $as_echo "$ac_ct_NMEDIT" >&6; }
13934 else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13939 if test "x$ac_ct_NMEDIT" = x; then
13940 NMEDIT=":"
13941 else
13942 case $cross_compiling:$ac_tool_warned in
13943 yes:)
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13946 ac_tool_warned=yes ;;
13947 esac
13948 NMEDIT=$ac_ct_NMEDIT
13950 else
13951 NMEDIT="$ac_cv_prog_NMEDIT"
13954 if test -n "$ac_tool_prefix"; then
13955 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13956 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13958 $as_echo_n "checking for $ac_word... " >&6; }
13959 if test "${ac_cv_prog_LIPO+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 if test -n "$LIPO"; then
13963 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13964 else
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13968 IFS=$as_save_IFS
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13974 break 2
13976 done
13977 done
13978 IFS=$as_save_IFS
13982 LIPO=$ac_cv_prog_LIPO
13983 if test -n "$LIPO"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13985 $as_echo "$LIPO" >&6; }
13986 else
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 $as_echo "no" >&6; }
13993 if test -z "$ac_cv_prog_LIPO"; then
13994 ac_ct_LIPO=$LIPO
13995 # Extract the first word of "lipo", so it can be a program name with args.
13996 set dummy lipo; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13998 $as_echo_n "checking for $ac_word... " >&6; }
13999 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 if test -n "$ac_ct_LIPO"; then
14003 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14004 else
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14008 IFS=$as_save_IFS
14009 test -z "$as_dir" && as_dir=.
14010 for ac_exec_ext in '' $ac_executable_extensions; do
14011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14012 ac_cv_prog_ac_ct_LIPO="lipo"
14013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14014 break 2
14016 done
14017 done
14018 IFS=$as_save_IFS
14022 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14023 if test -n "$ac_ct_LIPO"; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14025 $as_echo "$ac_ct_LIPO" >&6; }
14026 else
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14028 $as_echo "no" >&6; }
14031 if test "x$ac_ct_LIPO" = x; then
14032 LIPO=":"
14033 else
14034 case $cross_compiling:$ac_tool_warned in
14035 yes:)
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14038 ac_tool_warned=yes ;;
14039 esac
14040 LIPO=$ac_ct_LIPO
14042 else
14043 LIPO="$ac_cv_prog_LIPO"
14046 if test -n "$ac_tool_prefix"; then
14047 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14048 set dummy ${ac_tool_prefix}otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050 $as_echo_n "checking for $ac_word... " >&6; }
14051 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
14053 else
14054 if test -n "$OTOOL"; then
14055 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14056 else
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14068 done
14069 done
14070 IFS=$as_save_IFS
14074 OTOOL=$ac_cv_prog_OTOOL
14075 if test -n "$OTOOL"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14077 $as_echo "$OTOOL" >&6; }
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14085 if test -z "$ac_cv_prog_OTOOL"; then
14086 ac_ct_OTOOL=$OTOOL
14087 # Extract the first word of "otool", so it can be a program name with args.
14088 set dummy otool; ac_word=$2
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14090 $as_echo_n "checking for $ac_word... " >&6; }
14091 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 if test -n "$ac_ct_OTOOL"; then
14095 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14096 else
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14100 IFS=$as_save_IFS
14101 test -z "$as_dir" && as_dir=.
14102 for ac_exec_ext in '' $ac_executable_extensions; do
14103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14104 ac_cv_prog_ac_ct_OTOOL="otool"
14105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14106 break 2
14108 done
14109 done
14110 IFS=$as_save_IFS
14114 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14115 if test -n "$ac_ct_OTOOL"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14117 $as_echo "$ac_ct_OTOOL" >&6; }
14118 else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14123 if test "x$ac_ct_OTOOL" = x; then
14124 OTOOL=":"
14125 else
14126 case $cross_compiling:$ac_tool_warned in
14127 yes:)
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14130 ac_tool_warned=yes ;;
14131 esac
14132 OTOOL=$ac_ct_OTOOL
14134 else
14135 OTOOL="$ac_cv_prog_OTOOL"
14138 if test -n "$ac_tool_prefix"; then
14139 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14140 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 if test -n "$OTOOL64"; then
14147 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14148 else
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14160 done
14161 done
14162 IFS=$as_save_IFS
14166 OTOOL64=$ac_cv_prog_OTOOL64
14167 if test -n "$OTOOL64"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14169 $as_echo "$OTOOL64" >&6; }
14170 else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14177 if test -z "$ac_cv_prog_OTOOL64"; then
14178 ac_ct_OTOOL64=$OTOOL64
14179 # Extract the first word of "otool64", so it can be a program name with args.
14180 set dummy otool64; ac_word=$2
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14182 $as_echo_n "checking for $ac_word... " >&6; }
14183 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 if test -n "$ac_ct_OTOOL64"; then
14187 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14188 else
14189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14190 for as_dir in $PATH
14192 IFS=$as_save_IFS
14193 test -z "$as_dir" && as_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14196 ac_cv_prog_ac_ct_OTOOL64="otool64"
14197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14198 break 2
14200 done
14201 done
14202 IFS=$as_save_IFS
14206 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14207 if test -n "$ac_ct_OTOOL64"; then
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14209 $as_echo "$ac_ct_OTOOL64" >&6; }
14210 else
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 $as_echo "no" >&6; }
14215 if test "x$ac_ct_OTOOL64" = x; then
14216 OTOOL64=":"
14217 else
14218 case $cross_compiling:$ac_tool_warned in
14219 yes:)
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14222 ac_tool_warned=yes ;;
14223 esac
14224 OTOOL64=$ac_ct_OTOOL64
14226 else
14227 OTOOL64="$ac_cv_prog_OTOOL64"
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14257 $as_echo_n "checking for -single_module linker flag... " >&6; }
14258 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 lt_cv_apple_cc_single_mod=no
14262 if test -z "${LT_MULTI_MODULE}"; then
14263 # By default we will add the -single_module flag. You can override
14264 # by either setting the environment variable LT_MULTI_MODULE
14265 # non-empty at configure time, or by adding -multi_module to the
14266 # link flags.
14267 rm -rf libconftest.dylib*
14268 echo "int foo(void){return 1;}" > conftest.c
14269 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14270 -dynamiclib -Wl,-single_module conftest.c" >&5
14271 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14272 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14273 _lt_result=$?
14274 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14275 lt_cv_apple_cc_single_mod=yes
14276 else
14277 cat conftest.err >&5
14279 rm -rf libconftest.dylib*
14280 rm -f conftest.*
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14284 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14286 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14287 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 lt_cv_ld_exported_symbols_list=no
14291 save_LDFLAGS=$LDFLAGS
14292 echo "_main" > conftest.sym
14293 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14298 main ()
14302 return 0;
14304 _ACEOF
14305 if ac_fn_c_try_link "$LINENO"; then :
14306 lt_cv_ld_exported_symbols_list=yes
14307 else
14308 lt_cv_ld_exported_symbols_list=no
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LDFLAGS="$save_LDFLAGS"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14316 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14318 $as_echo_n "checking for -force_load linker flag... " >&6; }
14319 if test "${lt_cv_ld_force_load+set}" = set; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 lt_cv_ld_force_load=no
14323 cat > conftest.c << _LT_EOF
14324 int forced_loaded() { return 2;}
14325 _LT_EOF
14326 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14327 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14328 echo "$AR cru libconftest.a conftest.o" >&5
14329 $AR cru libconftest.a conftest.o 2>&5
14330 cat > conftest.c << _LT_EOF
14331 int main() { return 0;}
14332 _LT_EOF
14333 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14334 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14335 _lt_result=$?
14336 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14337 lt_cv_ld_force_load=yes
14338 else
14339 cat conftest.err >&5
14341 rm -f conftest.err libconftest.a conftest conftest.c
14342 rm -rf conftest.dSYM
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14346 $as_echo "$lt_cv_ld_force_load" >&6; }
14347 case $host_os in
14348 rhapsody* | darwin1.[012])
14349 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14350 darwin1.*)
14351 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14352 darwin*) # darwin 5.x on
14353 # if running on 10.5 or later, the deployment target defaults
14354 # to the OS version, if on x86, and 10.4, the deployment
14355 # target defaults to 10.4. Don't you love it?
14356 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14357 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14358 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14359 10.[012]*)
14360 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14361 10.*)
14362 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14363 esac
14365 esac
14366 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14367 _lt_dar_single_mod='$single_module'
14369 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14370 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14371 else
14372 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14374 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14375 _lt_dsymutil='~$DSYMUTIL $lib || :'
14376 else
14377 _lt_dsymutil=
14380 esac
14382 for ac_header in dlfcn.h
14383 do :
14384 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14385 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_DLFCN_H 1
14388 _ACEOF
14391 done
14397 # Set options
14401 enable_dlopen=no
14404 enable_win32_dll=no
14407 # Check whether --enable-shared was given.
14408 if test "${enable_shared+set}" = set; then :
14409 enableval=$enable_shared; p=${PACKAGE-default}
14410 case $enableval in
14411 yes) enable_shared=yes ;;
14412 no) enable_shared=no ;;
14414 enable_shared=no
14415 # Look at the argument we got. We use all the common list separators.
14416 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14417 for pkg in $enableval; do
14418 IFS="$lt_save_ifs"
14419 if test "X$pkg" = "X$p"; then
14420 enable_shared=yes
14422 done
14423 IFS="$lt_save_ifs"
14425 esac
14426 else
14427 enable_shared=yes
14438 # Check whether --enable-static was given.
14439 if test "${enable_static+set}" = set; then :
14440 enableval=$enable_static; p=${PACKAGE-default}
14441 case $enableval in
14442 yes) enable_static=yes ;;
14443 no) enable_static=no ;;
14445 enable_static=no
14446 # Look at the argument we got. We use all the common list separators.
14447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14448 for pkg in $enableval; do
14449 IFS="$lt_save_ifs"
14450 if test "X$pkg" = "X$p"; then
14451 enable_static=yes
14453 done
14454 IFS="$lt_save_ifs"
14456 esac
14457 else
14458 enable_static=yes
14470 # Check whether --with-pic was given.
14471 if test "${with_pic+set}" = set; then :
14472 withval=$with_pic; p=${PACKAGE-default}
14473 case "$withval" in
14474 yes|no) pic_mode="$withval" ;;
14476 pic_mode=default
14477 # Look at the argument we got. We use all the common list separators.
14478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14479 for pkg in $withval; do
14480 IFS="$lt_save_ifs"
14481 if test "X$pkg" = "X$p"; then
14482 pic_mode=yes
14484 done
14485 IFS="$lt_save_ifs"
14487 esac
14488 else
14489 pic_mode=default
14493 test -z "$pic_mode" && pic_mode=default
14501 # Check whether --enable-fast-install was given.
14502 if test "${enable_fast_install+set}" = set; then :
14503 enableval=$enable_fast_install; p=${PACKAGE-default}
14504 case $enableval in
14505 yes) enable_fast_install=yes ;;
14506 no) enable_fast_install=no ;;
14508 enable_fast_install=no
14509 # Look at the argument we got. We use all the common list separators.
14510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14511 for pkg in $enableval; do
14512 IFS="$lt_save_ifs"
14513 if test "X$pkg" = "X$p"; then
14514 enable_fast_install=yes
14516 done
14517 IFS="$lt_save_ifs"
14519 esac
14520 else
14521 enable_fast_install=yes
14534 # This can be used to rebuild libtool when needed
14535 LIBTOOL_DEPS="$ltmain"
14537 # Always use our own libtool.
14538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14565 test -z "$LN_S" && LN_S="ln -s"
14580 if test -n "${ZSH_VERSION+set}" ; then
14581 setopt NO_GLOB_SUBST
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14585 $as_echo_n "checking for objdir... " >&6; }
14586 if test "${lt_cv_objdir+set}" = set; then :
14587 $as_echo_n "(cached) " >&6
14588 else
14589 rm -f .libs 2>/dev/null
14590 mkdir .libs 2>/dev/null
14591 if test -d .libs; then
14592 lt_cv_objdir=.libs
14593 else
14594 # MS-DOS does not allow filenames that begin with a dot.
14595 lt_cv_objdir=_libs
14597 rmdir .libs 2>/dev/null
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14600 $as_echo "$lt_cv_objdir" >&6; }
14601 objdir=$lt_cv_objdir
14607 cat >>confdefs.h <<_ACEOF
14608 #define LT_OBJDIR "$lt_cv_objdir/"
14609 _ACEOF
14614 case $host_os in
14615 aix3*)
14616 # AIX sometimes has problems with the GCC collect2 program. For some
14617 # reason, if we set the COLLECT_NAMES environment variable, the problems
14618 # vanish in a puff of smoke.
14619 if test "X${COLLECT_NAMES+set}" != Xset; then
14620 COLLECT_NAMES=
14621 export COLLECT_NAMES
14624 esac
14626 # Global variables:
14627 ofile=libtool
14628 can_build_shared=yes
14630 # All known linkers require a `.a' archive for static linking (except MSVC,
14631 # which needs '.lib').
14632 libext=a
14634 with_gnu_ld="$lt_cv_prog_gnu_ld"
14636 old_CC="$CC"
14637 old_CFLAGS="$CFLAGS"
14639 # Set sane defaults for various variables
14640 test -z "$CC" && CC=cc
14641 test -z "$LTCC" && LTCC=$CC
14642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14643 test -z "$LD" && LD=ld
14644 test -z "$ac_objext" && ac_objext=o
14646 for cc_temp in $compiler""; do
14647 case $cc_temp in
14648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14650 \-*) ;;
14651 *) break;;
14652 esac
14653 done
14654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14657 # Only perform the check for file, if the check method requires it
14658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14659 case $deplibs_check_method in
14660 file_magic*)
14661 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14664 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 case $MAGIC_CMD in
14668 [\\/*] | ?:[\\/]*)
14669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14672 lt_save_MAGIC_CMD="$MAGIC_CMD"
14673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14675 for ac_dir in $ac_dummy; do
14676 IFS="$lt_save_ifs"
14677 test -z "$ac_dir" && ac_dir=.
14678 if test -f $ac_dir/${ac_tool_prefix}file; then
14679 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14680 if test -n "$file_magic_test_file"; then
14681 case $deplibs_check_method in
14682 "file_magic "*)
14683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14686 $EGREP "$file_magic_regex" > /dev/null; then
14688 else
14689 cat <<_LT_EOF 1>&2
14691 *** Warning: the command libtool uses to detect shared libraries,
14692 *** $file_magic_cmd, produces output that libtool cannot recognize.
14693 *** The result is that libtool may fail to recognize shared libraries
14694 *** as such. This will affect the creation of libtool libraries that
14695 *** depend on shared libraries, but programs linked with such libtool
14696 *** libraries will work regardless of this problem. Nevertheless, you
14697 *** may want to report the problem to your system manager and/or to
14698 *** bug-libtool@gnu.org
14700 _LT_EOF
14701 fi ;;
14702 esac
14704 break
14706 done
14707 IFS="$lt_save_ifs"
14708 MAGIC_CMD="$lt_save_MAGIC_CMD"
14710 esac
14713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14714 if test -n "$MAGIC_CMD"; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14716 $as_echo "$MAGIC_CMD" >&6; }
14717 else
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14719 $as_echo "no" >&6; }
14726 if test -z "$lt_cv_path_MAGIC_CMD"; then
14727 if test -n "$ac_tool_prefix"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14729 $as_echo_n "checking for file... " >&6; }
14730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 case $MAGIC_CMD in
14734 [\\/*] | ?:[\\/]*)
14735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14738 lt_save_MAGIC_CMD="$MAGIC_CMD"
14739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14741 for ac_dir in $ac_dummy; do
14742 IFS="$lt_save_ifs"
14743 test -z "$ac_dir" && ac_dir=.
14744 if test -f $ac_dir/file; then
14745 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14746 if test -n "$file_magic_test_file"; then
14747 case $deplibs_check_method in
14748 "file_magic "*)
14749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14752 $EGREP "$file_magic_regex" > /dev/null; then
14754 else
14755 cat <<_LT_EOF 1>&2
14757 *** Warning: the command libtool uses to detect shared libraries,
14758 *** $file_magic_cmd, produces output that libtool cannot recognize.
14759 *** The result is that libtool may fail to recognize shared libraries
14760 *** as such. This will affect the creation of libtool libraries that
14761 *** depend on shared libraries, but programs linked with such libtool
14762 *** libraries will work regardless of this problem. Nevertheless, you
14763 *** may want to report the problem to your system manager and/or to
14764 *** bug-libtool@gnu.org
14766 _LT_EOF
14767 fi ;;
14768 esac
14770 break
14772 done
14773 IFS="$lt_save_ifs"
14774 MAGIC_CMD="$lt_save_MAGIC_CMD"
14776 esac
14779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14780 if test -n "$MAGIC_CMD"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14782 $as_echo "$MAGIC_CMD" >&6; }
14783 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14789 else
14790 MAGIC_CMD=:
14796 esac
14798 # Use C for the default configuration in the libtool script
14800 lt_save_CC="$CC"
14801 ac_ext=c
14802 ac_cpp='$CPP $CPPFLAGS'
14803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808 # Source file extension for C test sources.
14809 ac_ext=c
14811 # Object file extension for compiled C test sources.
14812 objext=o
14813 objext=$objext
14815 # Code to be used in simple compile tests
14816 lt_simple_compile_test_code="int some_variable = 0;"
14818 # Code to be used in simple link tests
14819 lt_simple_link_test_code='int main(){return(0);}'
14827 # If no C compiler was specified, use CC.
14828 LTCC=${LTCC-"$CC"}
14830 # If no C compiler flags were specified, use CFLAGS.
14831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14833 # Allow CC to be a program name with arguments.
14834 compiler=$CC
14836 # Save the default compiler, since it gets overwritten when the other
14837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14838 compiler_DEFAULT=$CC
14840 # save warnings/boilerplate of simple test code
14841 ac_outfile=conftest.$ac_objext
14842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14844 _lt_compiler_boilerplate=`cat conftest.err`
14845 $RM conftest*
14847 ac_outfile=conftest.$ac_objext
14848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14850 _lt_linker_boilerplate=`cat conftest.err`
14851 $RM -r conftest*
14854 ## CAVEAT EMPTOR:
14855 ## There is no encapsulation within the following macros, do not change
14856 ## the running order or otherwise move them around unless you know exactly
14857 ## what you are doing...
14858 if test -n "$compiler"; then
14860 lt_prog_compiler_no_builtin_flag=
14862 if test "$GCC" = yes; then
14863 case $cc_basename in
14864 nvcc*)
14865 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14867 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14868 esac
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14872 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14875 lt_cv_prog_compiler_rtti_exceptions=no
14876 ac_outfile=conftest.$ac_objext
14877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878 lt_compiler_flag="-fno-rtti -fno-exceptions"
14879 # Insert the option either (1) after the last *FLAGS variable, or
14880 # (2) before a word containing "conftest.", or (3) at the end.
14881 # Note that $ac_compile itself does not contain backslashes and begins
14882 # with a dollar sign (not a hyphen), so the echo should work correctly.
14883 # The option is referenced via a variable to avoid confusing sed.
14884 lt_compile=`echo "$ac_compile" | $SED \
14885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14887 -e 's:$: $lt_compiler_flag:'`
14888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14889 (eval "$lt_compile" 2>conftest.err)
14890 ac_status=$?
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 if (exit $ac_status) && test -s "$ac_outfile"; then
14894 # The compiler can only warn and ignore the option if not recognized
14895 # So say no if there are warnings other than the usual output.
14896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14899 lt_cv_prog_compiler_rtti_exceptions=yes
14902 $RM conftest*
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14910 else
14921 lt_prog_compiler_wl=
14922 lt_prog_compiler_pic=
14923 lt_prog_compiler_static=
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14928 if test "$GCC" = yes; then
14929 lt_prog_compiler_wl='-Wl,'
14930 lt_prog_compiler_static='-static'
14932 case $host_os in
14933 aix*)
14934 # All AIX code is PIC.
14935 if test "$host_cpu" = ia64; then
14936 # AIX 5 now supports IA64 processor
14937 lt_prog_compiler_static='-Bstatic'
14939 lt_prog_compiler_pic='-fPIC'
14942 amigaos*)
14943 case $host_cpu in
14944 powerpc)
14945 # see comment about AmigaOS4 .so support
14946 lt_prog_compiler_pic='-fPIC'
14948 m68k)
14949 # FIXME: we need at least 68020 code to build shared libraries, but
14950 # adding the `-m68020' flag to GCC prevents building anything better,
14951 # like `-m68040'.
14952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14954 esac
14957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14958 # PIC is the default for these OSes.
14961 mingw* | cygwin* | pw32* | os2* | cegcc*)
14962 # This hack is so that the source file can tell whether it is being
14963 # built for inclusion in a dll (and should export symbols for example).
14964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14965 # (--disable-auto-import) libraries
14966 lt_prog_compiler_pic='-DDLL_EXPORT'
14969 darwin* | rhapsody*)
14970 # PIC is the default on this platform
14971 # Common symbols not allowed in MH_DYLIB files
14972 lt_prog_compiler_pic='-fno-common'
14975 haiku*)
14976 # PIC is the default for Haiku.
14977 # The "-static" flag exists, but is broken.
14978 lt_prog_compiler_static=
14981 hpux*)
14982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14984 # sets the default TLS model and affects inlining.
14985 case $host_cpu in
14986 hppa*64*)
14987 # +Z the default
14990 lt_prog_compiler_pic='-fPIC'
14992 esac
14995 interix[3-9]*)
14996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14997 # Instead, we relocate shared libraries at runtime.
15000 msdosdjgpp*)
15001 # Just because we use GCC doesn't mean we suddenly get shared libraries
15002 # on systems that don't support them.
15003 lt_prog_compiler_can_build_shared=no
15004 enable_shared=no
15007 *nto* | *qnx*)
15008 # QNX uses GNU C++, but need to define -shared option too, otherwise
15009 # it will coredump.
15010 lt_prog_compiler_pic='-fPIC -shared'
15013 sysv4*MP*)
15014 if test -d /usr/nec; then
15015 lt_prog_compiler_pic=-Kconform_pic
15020 lt_prog_compiler_pic='-fPIC'
15022 esac
15024 case $cc_basename in
15025 nvcc*) # Cuda Compiler Driver 2.2
15026 lt_prog_compiler_wl='-Xlinker '
15027 lt_prog_compiler_pic='-Xcompiler -fPIC'
15029 esac
15030 else
15031 # PORTME Check for flag to pass linker flags through the system compiler.
15032 case $host_os in
15033 aix*)
15034 lt_prog_compiler_wl='-Wl,'
15035 if test "$host_cpu" = ia64; then
15036 # AIX 5 now supports IA64 processor
15037 lt_prog_compiler_static='-Bstatic'
15038 else
15039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15043 mingw* | cygwin* | pw32* | os2* | cegcc*)
15044 # This hack is so that the source file can tell whether it is being
15045 # built for inclusion in a dll (and should export symbols for example).
15046 lt_prog_compiler_pic='-DDLL_EXPORT'
15049 hpux9* | hpux10* | hpux11*)
15050 lt_prog_compiler_wl='-Wl,'
15051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15052 # not for PA HP-UX.
15053 case $host_cpu in
15054 hppa*64*|ia64*)
15055 # +Z the default
15058 lt_prog_compiler_pic='+Z'
15060 esac
15061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15062 lt_prog_compiler_static='${wl}-a ${wl}archive'
15065 irix5* | irix6* | nonstopux*)
15066 lt_prog_compiler_wl='-Wl,'
15067 # PIC (with -KPIC) is the default.
15068 lt_prog_compiler_static='-non_shared'
15071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15072 case $cc_basename in
15073 # old Intel for x86_64 which still supported -KPIC.
15074 ecc*)
15075 lt_prog_compiler_wl='-Wl,'
15076 lt_prog_compiler_pic='-KPIC'
15077 lt_prog_compiler_static='-static'
15079 # icc used to be incompatible with GCC.
15080 # ICC 10 doesn't accept -KPIC any more.
15081 icc* | ifort*)
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-fPIC'
15084 lt_prog_compiler_static='-static'
15086 # Lahey Fortran 8.1.
15087 lf95*)
15088 lt_prog_compiler_wl='-Wl,'
15089 lt_prog_compiler_pic='--shared'
15090 lt_prog_compiler_static='--static'
15092 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15093 # Portland Group compilers (*not* the Pentium gcc compiler,
15094 # which looks to be a dead project)
15095 lt_prog_compiler_wl='-Wl,'
15096 lt_prog_compiler_pic='-fpic'
15097 lt_prog_compiler_static='-Bstatic'
15099 ccc*)
15100 lt_prog_compiler_wl='-Wl,'
15101 # All Alpha code is PIC.
15102 lt_prog_compiler_static='-non_shared'
15104 xl* | bgxl* | bgf* | mpixl*)
15105 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_pic='-qpic'
15108 lt_prog_compiler_static='-qstaticlink'
15111 case `$CC -V 2>&1 | sed 5q` in
15112 *Sun\ F* | *Sun*Fortran*)
15113 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-Bstatic'
15116 lt_prog_compiler_wl=''
15118 *Sun\ C*)
15119 # Sun C 5.9
15120 lt_prog_compiler_pic='-KPIC'
15121 lt_prog_compiler_static='-Bstatic'
15122 lt_prog_compiler_wl='-Wl,'
15124 esac
15126 esac
15129 newsos6)
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-Bstatic'
15134 *nto* | *qnx*)
15135 # QNX uses GNU C++, but need to define -shared option too, otherwise
15136 # it will coredump.
15137 lt_prog_compiler_pic='-fPIC -shared'
15140 osf3* | osf4* | osf5*)
15141 lt_prog_compiler_wl='-Wl,'
15142 # All OSF/1 code is PIC.
15143 lt_prog_compiler_static='-non_shared'
15146 rdos*)
15147 lt_prog_compiler_static='-non_shared'
15150 solaris*)
15151 lt_prog_compiler_pic='-KPIC'
15152 lt_prog_compiler_static='-Bstatic'
15153 case $cc_basename in
15154 f77* | f90* | f95*)
15155 lt_prog_compiler_wl='-Qoption ld ';;
15157 lt_prog_compiler_wl='-Wl,';;
15158 esac
15161 sunos4*)
15162 lt_prog_compiler_wl='-Qoption ld '
15163 lt_prog_compiler_pic='-PIC'
15164 lt_prog_compiler_static='-Bstatic'
15167 sysv4 | sysv4.2uw2* | sysv4.3*)
15168 lt_prog_compiler_wl='-Wl,'
15169 lt_prog_compiler_pic='-KPIC'
15170 lt_prog_compiler_static='-Bstatic'
15173 sysv4*MP*)
15174 if test -d /usr/nec ;then
15175 lt_prog_compiler_pic='-Kconform_pic'
15176 lt_prog_compiler_static='-Bstatic'
15180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15181 lt_prog_compiler_wl='-Wl,'
15182 lt_prog_compiler_pic='-KPIC'
15183 lt_prog_compiler_static='-Bstatic'
15186 unicos*)
15187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_can_build_shared=no
15191 uts4*)
15192 lt_prog_compiler_pic='-pic'
15193 lt_prog_compiler_static='-Bstatic'
15197 lt_prog_compiler_can_build_shared=no
15199 esac
15202 case $host_os in
15203 # For platforms which do not support PIC, -DPIC is meaningless:
15204 *djgpp*)
15205 lt_prog_compiler_pic=
15208 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15210 esac
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15212 $as_echo "$lt_prog_compiler_pic" >&6; }
15220 # Check to make sure the PIC flag actually works.
15222 if test -n "$lt_prog_compiler_pic"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15224 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15225 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 lt_cv_prog_compiler_pic_works=no
15229 ac_outfile=conftest.$ac_objext
15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15231 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15232 # Insert the option either (1) after the last *FLAGS variable, or
15233 # (2) before a word containing "conftest.", or (3) at the end.
15234 # Note that $ac_compile itself does not contain backslashes and begins
15235 # with a dollar sign (not a hyphen), so the echo should work correctly.
15236 # The option is referenced via a variable to avoid confusing sed.
15237 lt_compile=`echo "$ac_compile" | $SED \
15238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15240 -e 's:$: $lt_compiler_flag:'`
15241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15242 (eval "$lt_compile" 2>conftest.err)
15243 ac_status=$?
15244 cat conftest.err >&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 if (exit $ac_status) && test -s "$ac_outfile"; then
15247 # The compiler can only warn and ignore the option if not recognized
15248 # So say no if there are warnings other than the usual output.
15249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15250 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15252 lt_cv_prog_compiler_pic_works=yes
15255 $RM conftest*
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15259 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15261 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15262 case $lt_prog_compiler_pic in
15263 "" | " "*) ;;
15264 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15265 esac
15266 else
15267 lt_prog_compiler_pic=
15268 lt_prog_compiler_can_build_shared=no
15279 # Check to make sure the static flag actually works.
15281 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15283 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15284 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15285 $as_echo_n "(cached) " >&6
15286 else
15287 lt_cv_prog_compiler_static_works=no
15288 save_LDFLAGS="$LDFLAGS"
15289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15292 # The linker can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 if test -s conftest.err; then
15295 # Append any errors to the config.log.
15296 cat conftest.err 1>&5
15297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15299 if diff conftest.exp conftest.er2 >/dev/null; then
15300 lt_cv_prog_compiler_static_works=yes
15302 else
15303 lt_cv_prog_compiler_static_works=yes
15306 $RM -r conftest*
15307 LDFLAGS="$save_LDFLAGS"
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15311 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15313 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15315 else
15316 lt_prog_compiler_static=
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15326 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15327 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 lt_cv_prog_compiler_c_o=no
15331 $RM -r conftest 2>/dev/null
15332 mkdir conftest
15333 cd conftest
15334 mkdir out
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 lt_compiler_flag="-o out/conftest2.$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>out/conftest.err)
15348 ac_status=$?
15349 cat out/conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15352 then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358 lt_cv_prog_compiler_c_o=yes
15361 chmod u+w . 2>&5
15362 $RM conftest*
15363 # SGI C++ compiler will create directory out/ii_files/ for
15364 # template instantiation
15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366 $RM out/* && rmdir out
15367 cd ..
15368 $RM -r conftest
15369 $RM conftest*
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15373 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15382 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 lt_cv_prog_compiler_c_o=no
15386 $RM -r conftest 2>/dev/null
15387 mkdir conftest
15388 cd conftest
15389 mkdir out
15390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15392 lt_compiler_flag="-o out/conftest2.$ac_objext"
15393 # Insert the option either (1) after the last *FLAGS variable, or
15394 # (2) before a word containing "conftest.", or (3) at the end.
15395 # Note that $ac_compile itself does not contain backslashes and begins
15396 # with a dollar sign (not a hyphen), so the echo should work correctly.
15397 lt_compile=`echo "$ac_compile" | $SED \
15398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15400 -e 's:$: $lt_compiler_flag:'`
15401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15402 (eval "$lt_compile" 2>out/conftest.err)
15403 ac_status=$?
15404 cat out/conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15407 then
15408 # The compiler can only warn and ignore the option if not recognized
15409 # So say no if there are warnings
15410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15413 lt_cv_prog_compiler_c_o=yes
15416 chmod u+w . 2>&5
15417 $RM conftest*
15418 # SGI C++ compiler will create directory out/ii_files/ for
15419 # template instantiation
15420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15421 $RM out/* && rmdir out
15422 cd ..
15423 $RM -r conftest
15424 $RM conftest*
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15428 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15433 hard_links="nottested"
15434 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15435 # do not overwrite the value of need_locks provided by the user
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15437 $as_echo_n "checking if we can lock with hard links... " >&6; }
15438 hard_links=yes
15439 $RM conftest*
15440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15441 touch conftest.a
15442 ln conftest.a conftest.b 2>&5 || hard_links=no
15443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15445 $as_echo "$hard_links" >&6; }
15446 if test "$hard_links" = no; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15448 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15449 need_locks=warn
15451 else
15452 need_locks=no
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15463 runpath_var=
15464 allow_undefined_flag=
15465 always_export_symbols=no
15466 archive_cmds=
15467 archive_expsym_cmds=
15468 compiler_needs_object=no
15469 enable_shared_with_static_runtimes=no
15470 export_dynamic_flag_spec=
15471 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15472 hardcode_automatic=no
15473 hardcode_direct=no
15474 hardcode_direct_absolute=no
15475 hardcode_libdir_flag_spec=
15476 hardcode_libdir_flag_spec_ld=
15477 hardcode_libdir_separator=
15478 hardcode_minus_L=no
15479 hardcode_shlibpath_var=unsupported
15480 inherit_rpath=no
15481 link_all_deplibs=unknown
15482 module_cmds=
15483 module_expsym_cmds=
15484 old_archive_from_new_cmds=
15485 old_archive_from_expsyms_cmds=
15486 thread_safe_flag_spec=
15487 whole_archive_flag_spec=
15488 # include_expsyms should be a list of space-separated symbols to be *always*
15489 # included in the symbol list
15490 include_expsyms=
15491 # exclude_expsyms can be an extended regexp of symbols to exclude
15492 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15493 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15494 # as well as any symbol that contains `d'.
15495 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15496 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15497 # platforms (ab)use it in PIC code, but their linkers get confused if
15498 # the symbol is explicitly referenced. Since portable code cannot
15499 # rely on this symbol name, it's probably fine to never include it in
15500 # preloaded symbol tables.
15501 # Exclude shared library initialization/finalization symbols.
15502 extract_expsyms_cmds=
15504 case $host_os in
15505 cygwin* | mingw* | pw32* | cegcc*)
15506 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15507 # When not using gcc, we currently assume that we are using
15508 # Microsoft Visual C++.
15509 if test "$GCC" != yes; then
15510 with_gnu_ld=no
15513 interix*)
15514 # we just hope/assume this is gcc and not c89 (= MSVC++)
15515 with_gnu_ld=yes
15517 openbsd*)
15518 with_gnu_ld=no
15520 esac
15522 ld_shlibs=yes
15524 # On some targets, GNU ld is compatible enough with the native linker
15525 # that we're better off using the native interface for both.
15526 lt_use_gnu_ld_interface=no
15527 if test "$with_gnu_ld" = yes; then
15528 case $host_os in
15529 aix*)
15530 # The AIX port of GNU ld has always aspired to compatibility
15531 # with the native linker. However, as the warning in the GNU ld
15532 # block says, versions before 2.19.5* couldn't really create working
15533 # shared libraries, regardless of the interface used.
15534 case `$LD -v 2>&1` in
15535 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15536 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15537 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15539 lt_use_gnu_ld_interface=yes
15541 esac
15544 lt_use_gnu_ld_interface=yes
15546 esac
15549 if test "$lt_use_gnu_ld_interface" = yes; then
15550 # If archive_cmds runs LD, not CC, wlarc should be empty
15551 wlarc='${wl}'
15553 # Set some defaults for GNU ld with shared library support. These
15554 # are reset later if shared libraries are not supported. Putting them
15555 # here allows them to be overridden if necessary.
15556 runpath_var=LD_RUN_PATH
15557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15558 export_dynamic_flag_spec='${wl}--export-dynamic'
15559 # ancient GNU ld didn't support --whole-archive et. al.
15560 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15561 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15562 else
15563 whole_archive_flag_spec=
15565 supports_anon_versioning=no
15566 case `$LD -v 2>&1` in
15567 *GNU\ gold*) supports_anon_versioning=yes ;;
15568 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15569 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15570 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15571 *\ 2.11.*) ;; # other 2.11 versions
15572 *) supports_anon_versioning=yes ;;
15573 esac
15575 # See if GNU ld supports shared libraries.
15576 case $host_os in
15577 aix[3-9]*)
15578 # On AIX/PPC, the GNU linker is very broken
15579 if test "$host_cpu" != ia64; then
15580 ld_shlibs=no
15581 cat <<_LT_EOF 1>&2
15583 *** Warning: the GNU linker, at least up to release 2.19, is reported
15584 *** to be unable to reliably create shared libraries on AIX.
15585 *** Therefore, libtool is disabling shared libraries support. If you
15586 *** really care for shared libraries, you may want to install binutils
15587 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15588 *** You will then need to restart the configuration process.
15590 _LT_EOF
15594 amigaos*)
15595 case $host_cpu in
15596 powerpc)
15597 # see comment about AmigaOS4 .so support
15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599 archive_expsym_cmds=''
15601 m68k)
15602 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)'
15603 hardcode_libdir_flag_spec='-L$libdir'
15604 hardcode_minus_L=yes
15606 esac
15609 beos*)
15610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15611 allow_undefined_flag=unsupported
15612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15613 # support --undefined. This deserves some investigation. FIXME
15614 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615 else
15616 ld_shlibs=no
15620 cygwin* | mingw* | pw32* | cegcc*)
15621 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15622 # as there is no search path for DLLs.
15623 hardcode_libdir_flag_spec='-L$libdir'
15624 export_dynamic_flag_spec='${wl}--export-all-symbols'
15625 allow_undefined_flag=unsupported
15626 always_export_symbols=no
15627 enable_shared_with_static_runtimes=yes
15628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15632 # If the export-symbols file already is a .def file (1st line
15633 # is EXPORTS), use it as is; otherwise, prepend...
15634 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15635 cp $export_symbols $output_objdir/$soname.def;
15636 else
15637 echo EXPORTS > $output_objdir/$soname.def;
15638 cat $export_symbols >> $output_objdir/$soname.def;
15640 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15641 else
15642 ld_shlibs=no
15646 haiku*)
15647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 link_all_deplibs=yes
15651 interix[3-9]*)
15652 hardcode_direct=no
15653 hardcode_shlibpath_var=no
15654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655 export_dynamic_flag_spec='${wl}-E'
15656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15657 # Instead, shared libraries are loaded at an image base (0x10000000 by
15658 # default) and relocated if they conflict, which is a slow very memory
15659 # consuming and fragmenting process. To avoid this, we pick a random,
15660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15662 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15663 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'
15666 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15667 tmp_diet=no
15668 if test "$host_os" = linux-dietlibc; then
15669 case $cc_basename in
15670 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15671 esac
15673 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15674 && test "$tmp_diet" = no
15675 then
15676 tmp_addflag=
15677 tmp_sharedflag='-shared'
15678 case $cc_basename,$host_cpu in
15679 pgcc*) # Portland Group C compiler
15680 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'
15681 tmp_addflag=' $pic_flag'
15683 pgf77* | pgf90* | pgf95* | pgfortran*)
15684 # Portland Group f77 and f90 compilers
15685 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'
15686 tmp_addflag=' $pic_flag -Mnomain' ;;
15687 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15688 tmp_addflag=' -i_dynamic' ;;
15689 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15690 tmp_addflag=' -i_dynamic -nofor_main' ;;
15691 ifc* | ifort*) # Intel Fortran compiler
15692 tmp_addflag=' -nofor_main' ;;
15693 lf95*) # Lahey Fortran 8.1
15694 whole_archive_flag_spec=
15695 tmp_sharedflag='--shared' ;;
15696 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15697 tmp_sharedflag='-qmkshrobj'
15698 tmp_addflag= ;;
15699 nvcc*) # Cuda Compiler Driver 2.2
15700 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'
15701 compiler_needs_object=yes
15703 esac
15704 case `$CC -V 2>&1 | sed 5q` in
15705 *Sun\ C*) # Sun C 5.9
15706 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'
15707 compiler_needs_object=yes
15708 tmp_sharedflag='-G' ;;
15709 *Sun\ F*) # Sun Fortran 8.3
15710 tmp_sharedflag='-G' ;;
15711 esac
15712 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15714 if test "x$supports_anon_versioning" = xyes; then
15715 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15716 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15717 echo "local: *; };" >> $output_objdir/$libname.ver~
15718 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15721 case $cc_basename in
15722 xlf* | bgf* | bgxlf* | mpixlf*)
15723 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15724 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15725 hardcode_libdir_flag_spec=
15726 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15727 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15728 if test "x$supports_anon_versioning" = xyes; then
15729 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15731 echo "local: *; };" >> $output_objdir/$libname.ver~
15732 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15735 esac
15736 else
15737 ld_shlibs=no
15741 netbsd*)
15742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15743 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15744 wlarc=
15745 else
15746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15747 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15751 solaris*)
15752 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15753 ld_shlibs=no
15754 cat <<_LT_EOF 1>&2
15756 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15757 *** create shared libraries on Solaris systems. Therefore, libtool
15758 *** is disabling shared libraries support. We urge you to upgrade GNU
15759 *** binutils to release 2.9.1 or newer. Another option is to modify
15760 *** your PATH or compiler configuration so that the native linker is
15761 *** used, and then restart.
15763 _LT_EOF
15764 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15767 else
15768 ld_shlibs=no
15772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15773 case `$LD -v 2>&1` in
15774 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15775 ld_shlibs=no
15776 cat <<_LT_EOF 1>&2
15778 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15779 *** reliably create shared libraries on SCO systems. Therefore, libtool
15780 *** is disabling shared libraries support. We urge you to upgrade GNU
15781 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15782 *** your PATH or compiler configuration so that the native linker is
15783 *** used, and then restart.
15785 _LT_EOF
15788 # For security reasons, it is highly recommended that you always
15789 # use absolute paths for naming shared libraries, and exclude the
15790 # DT_RUNPATH tag from executables and libraries. But doing so
15791 # requires that you compile everything twice, which is a pain.
15792 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15796 else
15797 ld_shlibs=no
15800 esac
15803 sunos4*)
15804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15805 wlarc=
15806 hardcode_direct=yes
15807 hardcode_shlibpath_var=no
15811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814 else
15815 ld_shlibs=no
15818 esac
15820 if test "$ld_shlibs" = no; then
15821 runpath_var=
15822 hardcode_libdir_flag_spec=
15823 export_dynamic_flag_spec=
15824 whole_archive_flag_spec=
15826 else
15827 # PORTME fill in a description of your system's linker (not GNU ld)
15828 case $host_os in
15829 aix3*)
15830 allow_undefined_flag=unsupported
15831 always_export_symbols=yes
15832 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'
15833 # Note: this linker hardcodes the directories in LIBPATH if there
15834 # are no directories specified by -L.
15835 hardcode_minus_L=yes
15836 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15837 # Neither direct hardcoding nor static linking is supported with a
15838 # broken collect2.
15839 hardcode_direct=unsupported
15843 aix[4-9]*)
15844 if test "$host_cpu" = ia64; then
15845 # On IA64, the linker does run time linking by default, so we don't
15846 # have to do anything special.
15847 aix_use_runtimelinking=no
15848 exp_sym_flag='-Bexport'
15849 no_entry_flag=""
15850 else
15851 # If we're using GNU nm, then we don't want the "-C" option.
15852 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15853 # Also, AIX nm treats weak defined symbols like other global
15854 # defined symbols, whereas GNU nm marks them as "W".
15855 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15856 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'
15857 else
15858 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'
15860 aix_use_runtimelinking=no
15862 # Test if we are trying to use run time linking or normal
15863 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15864 # need to do runtime linking.
15865 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15866 for ld_flag in $LDFLAGS; do
15867 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15868 aix_use_runtimelinking=yes
15869 break
15871 done
15873 esac
15875 exp_sym_flag='-bexport'
15876 no_entry_flag='-bnoentry'
15879 # When large executables or shared objects are built, AIX ld can
15880 # have problems creating the table of contents. If linking a library
15881 # or program results in "error TOC overflow" add -mminimal-toc to
15882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15885 archive_cmds=''
15886 hardcode_direct=yes
15887 hardcode_direct_absolute=yes
15888 hardcode_libdir_separator=':'
15889 link_all_deplibs=yes
15890 file_list_spec='${wl}-f,'
15892 if test "$GCC" = yes; then
15893 case $host_os in aix4.[012]|aix4.[012].*)
15894 # We only want to do this on AIX 4.2 and lower, the check
15895 # below for broken collect2 doesn't work under 4.3+
15896 collect2name=`${CC} -print-prog-name=collect2`
15897 if test -f "$collect2name" &&
15898 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15899 then
15900 # We have reworked collect2
15902 else
15903 # We have old collect2
15904 hardcode_direct=unsupported
15905 # It fails to find uninstalled libraries when the uninstalled
15906 # path is not listed in the libpath. Setting hardcode_minus_L
15907 # to unsupported forces relinking
15908 hardcode_minus_L=yes
15909 hardcode_libdir_flag_spec='-L$libdir'
15910 hardcode_libdir_separator=
15913 esac
15914 shared_flag='-shared'
15915 if test "$aix_use_runtimelinking" = yes; then
15916 shared_flag="$shared_flag "'${wl}-G'
15918 else
15919 # not using gcc
15920 if test "$host_cpu" = ia64; then
15921 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15922 # chokes on -Wl,-G. The following line is correct:
15923 shared_flag='-G'
15924 else
15925 if test "$aix_use_runtimelinking" = yes; then
15926 shared_flag='${wl}-G'
15927 else
15928 shared_flag='${wl}-bM:SRE'
15933 export_dynamic_flag_spec='${wl}-bexpall'
15934 # It seems that -bexpall does not export symbols beginning with
15935 # underscore (_), so it is better to generate a list of symbols to export.
15936 always_export_symbols=yes
15937 if test "$aix_use_runtimelinking" = yes; then
15938 # Warning - without using the other runtime loading flags (-brtl),
15939 # -berok will link without error, but may produce a broken library.
15940 allow_undefined_flag='-berok'
15941 # Determine the default libpath from the value encoded in an
15942 # empty executable.
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15947 main ()
15951 return 0;
15953 _ACEOF
15954 if ac_fn_c_try_link "$LINENO"; then :
15956 lt_aix_libpath_sed='
15957 /Import File Strings/,/^$/ {
15958 /^0/ {
15959 s/^0 *\(.*\)$/\1/
15963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15964 # Check for a 64-bit object if we didn't find anything.
15965 if test -z "$aix_libpath"; then
15966 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15969 rm -f core conftest.err conftest.$ac_objext \
15970 conftest$ac_exeext conftest.$ac_ext
15971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15974 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"
15975 else
15976 if test "$host_cpu" = ia64; then
15977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15978 allow_undefined_flag="-z nodefs"
15979 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"
15980 else
15981 # Determine the default libpath from the value encoded in an
15982 # empty executable.
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15987 main ()
15991 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_link "$LINENO"; then :
15996 lt_aix_libpath_sed='
15997 /Import File Strings/,/^$/ {
15998 /^0/ {
15999 s/^0 *\(.*\)$/\1/
16003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16004 # Check for a 64-bit object if we didn't find anything.
16005 if test -z "$aix_libpath"; then
16006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16009 rm -f core conftest.err conftest.$ac_objext \
16010 conftest$ac_exeext conftest.$ac_ext
16011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16014 # Warning - without using the other run time loading flags,
16015 # -berok will link without error, but may produce a broken library.
16016 no_undefined_flag=' ${wl}-bernotok'
16017 allow_undefined_flag=' ${wl}-berok'
16018 if test "$with_gnu_ld" = yes; then
16019 # We only use this code for GNU lds that support --whole-archive.
16020 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16021 else
16022 # Exported symbols can be pulled into shared objects from archives
16023 whole_archive_flag_spec='$convenience'
16025 archive_cmds_need_lc=yes
16026 # This is similar to how AIX traditionally builds its shared libraries.
16027 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'
16032 amigaos*)
16033 case $host_cpu in
16034 powerpc)
16035 # see comment about AmigaOS4 .so support
16036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037 archive_expsym_cmds=''
16039 m68k)
16040 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)'
16041 hardcode_libdir_flag_spec='-L$libdir'
16042 hardcode_minus_L=yes
16044 esac
16047 bsdi[45]*)
16048 export_dynamic_flag_spec=-rdynamic
16051 cygwin* | mingw* | pw32* | cegcc*)
16052 # When not using gcc, we currently assume that we are using
16053 # Microsoft Visual C++.
16054 # hardcode_libdir_flag_spec is actually meaningless, as there is
16055 # no search path for DLLs.
16056 hardcode_libdir_flag_spec=' '
16057 allow_undefined_flag=unsupported
16058 # Tell ltmain to make .lib files, not .a files.
16059 libext=lib
16060 # Tell ltmain to make .dll files, not .so files.
16061 shrext_cmds=".dll"
16062 # FIXME: Setting linknames here is a bad hack.
16063 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16064 # The linker will automatically build a .lib file if we build a DLL.
16065 old_archive_from_new_cmds='true'
16066 # FIXME: Should let the user specify the lib program.
16067 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16068 fix_srcfile_path='`cygpath -w "$srcfile"`'
16069 enable_shared_with_static_runtimes=yes
16072 darwin* | rhapsody*)
16075 archive_cmds_need_lc=no
16076 hardcode_direct=no
16077 hardcode_automatic=yes
16078 hardcode_shlibpath_var=unsupported
16079 if test "$lt_cv_ld_force_load" = "yes"; then
16080 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\"`'
16081 else
16082 whole_archive_flag_spec=''
16084 link_all_deplibs=yes
16085 allow_undefined_flag="$_lt_dar_allow_undefined"
16086 case $cc_basename in
16087 ifort*) _lt_dar_can_shared=yes ;;
16088 *) _lt_dar_can_shared=$GCC ;;
16089 esac
16090 if test "$_lt_dar_can_shared" = "yes"; then
16091 output_verbose_link_cmd=func_echo_all
16092 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16093 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16094 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}"
16095 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}"
16097 else
16098 ld_shlibs=no
16103 dgux*)
16104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16105 hardcode_libdir_flag_spec='-L$libdir'
16106 hardcode_shlibpath_var=no
16109 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16110 # support. Future versions do this automatically, but an explicit c++rt0.o
16111 # does not break anything, and helps significantly (at the cost of a little
16112 # extra space).
16113 freebsd2.2*)
16114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16115 hardcode_libdir_flag_spec='-R$libdir'
16116 hardcode_direct=yes
16117 hardcode_shlibpath_var=no
16120 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16121 freebsd2.*)
16122 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16123 hardcode_direct=yes
16124 hardcode_minus_L=yes
16125 hardcode_shlibpath_var=no
16128 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16129 freebsd* | dragonfly*)
16130 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16131 hardcode_libdir_flag_spec='-R$libdir'
16132 hardcode_direct=yes
16133 hardcode_shlibpath_var=no
16136 hpux9*)
16137 if test "$GCC" = yes; then
16138 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'
16139 else
16140 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'
16142 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16143 hardcode_libdir_separator=:
16144 hardcode_direct=yes
16146 # hardcode_minus_L: Not really in the search PATH,
16147 # but as the default location of the library.
16148 hardcode_minus_L=yes
16149 export_dynamic_flag_spec='${wl}-E'
16152 hpux10*)
16153 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16154 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16155 else
16156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16158 if test "$with_gnu_ld" = no; then
16159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16160 hardcode_libdir_flag_spec_ld='+b $libdir'
16161 hardcode_libdir_separator=:
16162 hardcode_direct=yes
16163 hardcode_direct_absolute=yes
16164 export_dynamic_flag_spec='${wl}-E'
16165 # hardcode_minus_L: Not really in the search PATH,
16166 # but as the default location of the library.
16167 hardcode_minus_L=yes
16171 hpux11*)
16172 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16173 case $host_cpu in
16174 hppa*64*)
16175 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 ia64*)
16178 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16183 esac
16184 else
16185 case $host_cpu in
16186 hppa*64*)
16187 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189 ia64*)
16190 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16194 # Older versions of the 11.00 compiler do not understand -b yet
16195 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16197 $as_echo_n "checking if $CC understands -b... " >&6; }
16198 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 lt_cv_prog_compiler__b=no
16202 save_LDFLAGS="$LDFLAGS"
16203 LDFLAGS="$LDFLAGS -b"
16204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16206 # The linker can only warn and ignore the option if not recognized
16207 # So say no if there are warnings
16208 if test -s conftest.err; then
16209 # Append any errors to the config.log.
16210 cat conftest.err 1>&5
16211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16213 if diff conftest.exp conftest.er2 >/dev/null; then
16214 lt_cv_prog_compiler__b=yes
16216 else
16217 lt_cv_prog_compiler__b=yes
16220 $RM -r conftest*
16221 LDFLAGS="$save_LDFLAGS"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16225 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16227 if test x"$lt_cv_prog_compiler__b" = xyes; then
16228 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16229 else
16230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16234 esac
16236 if test "$with_gnu_ld" = no; then
16237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16238 hardcode_libdir_separator=:
16240 case $host_cpu in
16241 hppa*64*|ia64*)
16242 hardcode_direct=no
16243 hardcode_shlibpath_var=no
16246 hardcode_direct=yes
16247 hardcode_direct_absolute=yes
16248 export_dynamic_flag_spec='${wl}-E'
16250 # hardcode_minus_L: Not really in the search PATH,
16251 # but as the default location of the library.
16252 hardcode_minus_L=yes
16254 esac
16258 irix5* | irix6* | nonstopux*)
16259 if test "$GCC" = yes; then
16260 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'
16261 # Try to use the -exported_symbol ld option, if it does not
16262 # work, assume that -exports_file does not work either and
16263 # implicitly export all symbols.
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 int foo(void) {}
16269 _ACEOF
16270 if ac_fn_c_try_link "$LINENO"; then :
16271 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'
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16276 LDFLAGS="$save_LDFLAGS"
16277 else
16278 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'
16279 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'
16281 archive_cmds_need_lc='no'
16282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16283 hardcode_libdir_separator=:
16284 inherit_rpath=yes
16285 link_all_deplibs=yes
16288 netbsd*)
16289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16291 else
16292 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16294 hardcode_libdir_flag_spec='-R$libdir'
16295 hardcode_direct=yes
16296 hardcode_shlibpath_var=no
16299 newsos6)
16300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_direct=yes
16302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16303 hardcode_libdir_separator=:
16304 hardcode_shlibpath_var=no
16307 *nto* | *qnx*)
16310 openbsd*)
16311 if test -f /usr/libexec/ld.so; then
16312 hardcode_direct=yes
16313 hardcode_shlibpath_var=no
16314 hardcode_direct_absolute=yes
16315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16319 export_dynamic_flag_spec='${wl}-E'
16320 else
16321 case $host_os in
16322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_libdir_flag_spec='-R$libdir'
16327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16330 esac
16332 else
16333 ld_shlibs=no
16337 os2*)
16338 hardcode_libdir_flag_spec='-L$libdir'
16339 hardcode_minus_L=yes
16340 allow_undefined_flag=unsupported
16341 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'
16342 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16345 osf3*)
16346 if test "$GCC" = yes; then
16347 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16348 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'
16349 else
16350 allow_undefined_flag=' -expect_unresolved \*'
16351 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'
16353 archive_cmds_need_lc='no'
16354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16355 hardcode_libdir_separator=:
16358 osf4* | osf5*) # as osf3* with the addition of -msym flag
16359 if test "$GCC" = yes; then
16360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16361 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'
16362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16363 else
16364 allow_undefined_flag=' -expect_unresolved \*'
16365 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'
16366 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~
16367 $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'
16369 # Both c and cxx compiler support -rpath directly
16370 hardcode_libdir_flag_spec='-rpath $libdir'
16372 archive_cmds_need_lc='no'
16373 hardcode_libdir_separator=:
16376 solaris*)
16377 no_undefined_flag=' -z defs'
16378 if test "$GCC" = yes; then
16379 wlarc='${wl}'
16380 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16382 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16383 else
16384 case `$CC -V 2>&1` in
16385 *"Compilers 5.0"*)
16386 wlarc=''
16387 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16392 wlarc='${wl}'
16393 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16395 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16397 esac
16399 hardcode_libdir_flag_spec='-R$libdir'
16400 hardcode_shlibpath_var=no
16401 case $host_os in
16402 solaris2.[0-5] | solaris2.[0-5].*) ;;
16404 # The compiler driver will combine and reorder linker options,
16405 # but understands `-z linker_flag'. GCC discards it without `$wl',
16406 # but is careful enough not to reorder.
16407 # Supported since Solaris 2.6 (maybe 2.5.1?)
16408 if test "$GCC" = yes; then
16409 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16410 else
16411 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16414 esac
16415 link_all_deplibs=yes
16418 sunos4*)
16419 if test "x$host_vendor" = xsequent; then
16420 # Use $CC to link under sequent, because it throws in some extra .o
16421 # files that make .init and .fini sections work.
16422 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16423 else
16424 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16426 hardcode_libdir_flag_spec='-L$libdir'
16427 hardcode_direct=yes
16428 hardcode_minus_L=yes
16429 hardcode_shlibpath_var=no
16432 sysv4)
16433 case $host_vendor in
16434 sni)
16435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_direct=yes # is this really true???
16438 siemens)
16439 ## LD is ld it makes a PLAMLIB
16440 ## CC just makes a GrossModule.
16441 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16442 reload_cmds='$CC -r -o $output$reload_objs'
16443 hardcode_direct=no
16445 motorola)
16446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16447 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16449 esac
16450 runpath_var='LD_RUN_PATH'
16451 hardcode_shlibpath_var=no
16454 sysv4.3*)
16455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_shlibpath_var=no
16457 export_dynamic_flag_spec='-Bexport'
16460 sysv4*MP*)
16461 if test -d /usr/nec; then
16462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 hardcode_shlibpath_var=no
16464 runpath_var=LD_RUN_PATH
16465 hardcode_runpath_var=yes
16466 ld_shlibs=yes
16470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16471 no_undefined_flag='${wl}-z,text'
16472 archive_cmds_need_lc=no
16473 hardcode_shlibpath_var=no
16474 runpath_var='LD_RUN_PATH'
16476 if test "$GCC" = yes; then
16477 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16478 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16479 else
16480 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16481 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16485 sysv5* | sco3.2v5* | sco5v6*)
16486 # Note: We can NOT use -z defs as we might desire, because we do not
16487 # link with -lc, and that would cause any symbols used from libc to
16488 # always be unresolved, which means just about no library would
16489 # ever link correctly. If we're not using GNU ld we use -z text
16490 # though, which does catch some bad symbols but isn't as heavy-handed
16491 # as -z defs.
16492 no_undefined_flag='${wl}-z,text'
16493 allow_undefined_flag='${wl}-z,nodefs'
16494 archive_cmds_need_lc=no
16495 hardcode_shlibpath_var=no
16496 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16497 hardcode_libdir_separator=':'
16498 link_all_deplibs=yes
16499 export_dynamic_flag_spec='${wl}-Bexport'
16500 runpath_var='LD_RUN_PATH'
16502 if test "$GCC" = yes; then
16503 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16504 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16505 else
16506 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16507 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16511 uts4*)
16512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_libdir_flag_spec='-L$libdir'
16514 hardcode_shlibpath_var=no
16518 ld_shlibs=no
16520 esac
16522 if test x$host_vendor = xsni; then
16523 case $host in
16524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16525 export_dynamic_flag_spec='${wl}-Blargedynsym'
16527 esac
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16532 $as_echo "$ld_shlibs" >&6; }
16533 test "$ld_shlibs" = no && can_build_shared=no
16535 with_gnu_ld=$with_gnu_ld
16552 # Do we need to explicitly link libc?
16554 case "x$archive_cmds_need_lc" in
16555 x|xyes)
16556 # Assume -lc should be added
16557 archive_cmds_need_lc=yes
16559 if test "$enable_shared" = yes && test "$GCC" = yes; then
16560 case $archive_cmds in
16561 *'~'*)
16562 # FIXME: we may have to deal with multi-command sequences.
16564 '$CC '*)
16565 # Test whether the compiler implicitly links with -lc since on some
16566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16567 # to ld, don't add -lc before -lgcc.
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16569 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16570 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 $RM conftest*
16574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16577 (eval $ac_compile) 2>&5
16578 ac_status=$?
16579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580 test $ac_status = 0; } 2>conftest.err; then
16581 soname=conftest
16582 lib=conftest
16583 libobjs=conftest.$ac_objext
16584 deplibs=
16585 wl=$lt_prog_compiler_wl
16586 pic_flag=$lt_prog_compiler_pic
16587 compiler_flags=-v
16588 linker_flags=-v
16589 verstring=
16590 output_objdir=.
16591 libname=conftest
16592 lt_save_allow_undefined_flag=$allow_undefined_flag
16593 allow_undefined_flag=
16594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16595 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16596 ac_status=$?
16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 test $ac_status = 0; }
16599 then
16600 lt_cv_archive_cmds_need_lc=no
16601 else
16602 lt_cv_archive_cmds_need_lc=yes
16604 allow_undefined_flag=$lt_save_allow_undefined_flag
16605 else
16606 cat conftest.err 1>&5
16608 $RM conftest*
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16612 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16613 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16615 esac
16618 esac
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16777 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16779 if test "$GCC" = yes; then
16780 case $host_os in
16781 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16782 *) lt_awk_arg="/^libraries:/" ;;
16783 esac
16784 case $host_os in
16785 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16786 *) lt_sed_strip_eq="s,=/,/,g" ;;
16787 esac
16788 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16789 case $lt_search_path_spec in
16790 *\;*)
16791 # if the path contains ";" then we assume it to be the separator
16792 # otherwise default to the standard path separator (i.e. ":") - it is
16793 # assumed that no part of a normal pathname contains ";" but that should
16794 # okay in the real world where ";" in dirpaths is itself problematic.
16795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16798 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16800 esac
16801 # Ok, now we have the path, separated by spaces, we can step through it
16802 # and add multilib dir if necessary.
16803 lt_tmp_lt_search_path_spec=
16804 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16805 for lt_sys_path in $lt_search_path_spec; do
16806 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16808 else
16809 test -d "$lt_sys_path" && \
16810 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16812 done
16813 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16814 BEGIN {RS=" "; FS="/|\n";} {
16815 lt_foo="";
16816 lt_count=0;
16817 for (lt_i = NF; lt_i > 0; lt_i--) {
16818 if ($lt_i != "" && $lt_i != ".") {
16819 if ($lt_i == "..") {
16820 lt_count++;
16821 } else {
16822 if (lt_count == 0) {
16823 lt_foo="/" $lt_i lt_foo;
16824 } else {
16825 lt_count--;
16830 if (lt_foo != "") { lt_freq[lt_foo]++; }
16831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16833 # AWK program above erroneously prepends '/' to C:/dos/paths
16834 # for these hosts.
16835 case $host_os in
16836 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16837 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16838 esac
16839 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16840 else
16841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16843 library_names_spec=
16844 libname_spec='lib$name'
16845 soname_spec=
16846 shrext_cmds=".so"
16847 postinstall_cmds=
16848 postuninstall_cmds=
16849 finish_cmds=
16850 finish_eval=
16851 shlibpath_var=
16852 shlibpath_overrides_runpath=unknown
16853 version_type=none
16854 dynamic_linker="$host_os ld.so"
16855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16856 need_lib_prefix=unknown
16857 hardcode_into_libs=no
16859 # when you set need_version to no, make sure it does not cause -set_version
16860 # flags to be left without arguments
16861 need_version=unknown
16863 case $host_os in
16864 aix3*)
16865 version_type=linux
16866 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16867 shlibpath_var=LIBPATH
16869 # AIX 3 has no versioning support, so we append a major version to the name.
16870 soname_spec='${libname}${release}${shared_ext}$major'
16873 aix[4-9]*)
16874 version_type=linux
16875 need_lib_prefix=no
16876 need_version=no
16877 hardcode_into_libs=yes
16878 if test "$host_cpu" = ia64; then
16879 # AIX 5 supports IA64
16880 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16881 shlibpath_var=LD_LIBRARY_PATH
16882 else
16883 # With GCC up to 2.95.x, collect2 would create an import file
16884 # for dependence libraries. The import file would start with
16885 # the line `#! .'. This would cause the generated library to
16886 # depend on `.', always an invalid library. This was fixed in
16887 # development snapshots of GCC prior to 3.0.
16888 case $host_os in
16889 aix4 | aix4.[01] | aix4.[01].*)
16890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16891 echo ' yes '
16892 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16894 else
16895 can_build_shared=no
16898 esac
16899 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16900 # soname into executable. Probably we can add versioning support to
16901 # collect2, so additional links can be useful in future.
16902 if test "$aix_use_runtimelinking" = yes; then
16903 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16904 # instead of lib<name>.a to let people know that these are not
16905 # typical AIX shared libraries.
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16907 else
16908 # We preserve .a as extension for shared libraries through AIX4.2
16909 # and later when we are not doing run time linking.
16910 library_names_spec='${libname}${release}.a $libname.a'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16913 shlibpath_var=LIBPATH
16917 amigaos*)
16918 case $host_cpu in
16919 powerpc)
16920 # Since July 2007 AmigaOS4 officially supports .so libraries.
16921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924 m68k)
16925 library_names_spec='$libname.ixlibrary $libname.a'
16926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16927 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'
16929 esac
16932 beos*)
16933 library_names_spec='${libname}${shared_ext}'
16934 dynamic_linker="$host_os ld.so"
16935 shlibpath_var=LIBRARY_PATH
16938 bsdi[45]*)
16939 version_type=linux
16940 need_version=no
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16944 shlibpath_var=LD_LIBRARY_PATH
16945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16947 # the default ld.so.conf also contains /usr/contrib/lib and
16948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16949 # libtool to hard-code these into programs
16952 cygwin* | mingw* | pw32* | cegcc*)
16953 version_type=windows
16954 shrext_cmds=".dll"
16955 need_version=no
16956 need_lib_prefix=no
16958 case $GCC,$host_os in
16959 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16960 library_names_spec='$libname.dll.a'
16961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16962 postinstall_cmds='base_file=`basename \${file}`~
16963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16964 dldir=$destdir/`dirname \$dlpath`~
16965 test -d \$dldir || mkdir -p \$dldir~
16966 $install_prog $dir/$dlname \$dldir/$dlname~
16967 chmod a+x \$dldir/$dlname~
16968 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16969 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16972 dlpath=$dir/\$dldll~
16973 $RM \$dlpath'
16974 shlibpath_overrides_runpath=yes
16976 case $host_os in
16977 cygwin*)
16978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16981 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16983 mingw* | cegcc*)
16984 # MinGW DLLs use traditional 'lib' prefix
16985 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16987 pw32*)
16988 # pw32 DLLs use 'pw' prefix rather than 'lib'
16989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16991 esac
16995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16997 esac
16998 dynamic_linker='Win32 ld.exe'
16999 # FIXME: first we should search . and the directory the executable is in
17000 shlibpath_var=PATH
17003 darwin* | rhapsody*)
17004 dynamic_linker="$host_os dyld"
17005 version_type=darwin
17006 need_lib_prefix=no
17007 need_version=no
17008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17009 soname_spec='${libname}${release}${major}$shared_ext'
17010 shlibpath_overrides_runpath=yes
17011 shlibpath_var=DYLD_LIBRARY_PATH
17012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17018 dgux*)
17019 version_type=linux
17020 need_lib_prefix=no
17021 need_version=no
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 shlibpath_var=LD_LIBRARY_PATH
17027 freebsd* | dragonfly*)
17028 # DragonFly does not have aout. When/if they implement a new
17029 # versioning mechanism, adjust this.
17030 if test -x /usr/bin/objformat; then
17031 objformat=`/usr/bin/objformat`
17032 else
17033 case $host_os in
17034 freebsd[23].*) objformat=aout ;;
17035 *) objformat=elf ;;
17036 esac
17038 version_type=freebsd-$objformat
17039 case $version_type in
17040 freebsd-elf*)
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17042 need_version=no
17043 need_lib_prefix=no
17045 freebsd-*)
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17047 need_version=yes
17049 esac
17050 shlibpath_var=LD_LIBRARY_PATH
17051 case $host_os in
17052 freebsd2.*)
17053 shlibpath_overrides_runpath=yes
17055 freebsd3.[01]* | freebsdelf3.[01]*)
17056 shlibpath_overrides_runpath=yes
17057 hardcode_into_libs=yes
17059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17061 shlibpath_overrides_runpath=no
17062 hardcode_into_libs=yes
17064 *) # from 4.6 on, and DragonFly
17065 shlibpath_overrides_runpath=yes
17066 hardcode_into_libs=yes
17068 esac
17071 gnu*)
17072 version_type=linux
17073 need_lib_prefix=no
17074 need_version=no
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 hardcode_into_libs=yes
17081 haiku*)
17082 version_type=linux
17083 need_lib_prefix=no
17084 need_version=no
17085 dynamic_linker="$host_os runtime_loader"
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LIBRARY_PATH
17089 shlibpath_overrides_runpath=yes
17090 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17091 hardcode_into_libs=yes
17094 hpux9* | hpux10* | hpux11*)
17095 # Give a soname corresponding to the major version so that dld.sl refuses to
17096 # link against other versions.
17097 version_type=sunos
17098 need_lib_prefix=no
17099 need_version=no
17100 case $host_cpu in
17101 ia64*)
17102 shrext_cmds='.so'
17103 hardcode_into_libs=yes
17104 dynamic_linker="$host_os dld.so"
17105 shlibpath_var=LD_LIBRARY_PATH
17106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 if test "X$HPUX_IA64_MODE" = X32; then
17110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17111 else
17112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17116 hppa*64*)
17117 shrext_cmds='.sl'
17118 hardcode_into_libs=yes
17119 dynamic_linker="$host_os dld.sl"
17120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17128 shrext_cmds='.sl'
17129 dynamic_linker="$host_os dld.sl"
17130 shlibpath_var=SHLIB_PATH
17131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17135 esac
17136 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17137 postinstall_cmds='chmod 555 $lib'
17138 # or fails outright, so override atomically:
17139 install_override_mode=555
17142 interix[3-9]*)
17143 version_type=linux
17144 need_lib_prefix=no
17145 need_version=no
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17147 soname_spec='${libname}${release}${shared_ext}$major'
17148 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath=no
17151 hardcode_into_libs=yes
17154 irix5* | irix6* | nonstopux*)
17155 case $host_os in
17156 nonstopux*) version_type=nonstopux ;;
17158 if test "$lt_cv_prog_gnu_ld" = yes; then
17159 version_type=linux
17160 else
17161 version_type=irix
17162 fi ;;
17163 esac
17164 need_lib_prefix=no
17165 need_version=no
17166 soname_spec='${libname}${release}${shared_ext}$major'
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17168 case $host_os in
17169 irix5* | nonstopux*)
17170 libsuff= shlibsuff=
17173 case $LD in # libtool.m4 will add one of these switches to LD
17174 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17175 libsuff= shlibsuff= libmagic=32-bit;;
17176 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17177 libsuff=32 shlibsuff=N32 libmagic=N32;;
17178 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17179 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17180 *) libsuff= shlibsuff= libmagic=never-match;;
17181 esac
17183 esac
17184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17185 shlibpath_overrides_runpath=no
17186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17188 hardcode_into_libs=yes
17191 # No shared lib support for Linux oldld, aout, or coff.
17192 linux*oldld* | linux*aout* | linux*coff*)
17193 dynamic_linker=no
17196 # This must be Linux ELF.
17197 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17198 version_type=linux
17199 need_lib_prefix=no
17200 need_version=no
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major'
17203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=no
17207 # Some binutils ld are patched to set DT_RUNPATH
17208 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17209 $as_echo_n "(cached) " >&6
17210 else
17211 lt_cv_shlibpath_overrides_runpath=no
17212 save_LDFLAGS=$LDFLAGS
17213 save_libdir=$libdir
17214 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17215 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17220 main ()
17224 return 0;
17226 _ACEOF
17227 if ac_fn_c_try_link "$LINENO"; then :
17228 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17229 lt_cv_shlibpath_overrides_runpath=yes
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 LDFLAGS=$save_LDFLAGS
17235 libdir=$save_libdir
17239 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17241 # This implies no fast_install, which is unacceptable.
17242 # Some rework will be needed to allow for fast_install
17243 # before this can be enabled.
17244 hardcode_into_libs=yes
17246 # Append ld.so.conf contents to the search path
17247 if test -f /etc/ld.so.conf; then
17248 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' ' '`
17249 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17252 # We used to test for /lib/ld.so.1 and disable shared libraries on
17253 # powerpc, because MkLinux only supported shared libraries with the
17254 # GNU dynamic linker. Since this was broken with cross compilers,
17255 # most powerpc-linux boxes support dynamic linking these days and
17256 # people can always --disable-shared, the test was removed, and we
17257 # assume the GNU/Linux dynamic linker is in use.
17258 dynamic_linker='GNU/Linux ld.so'
17261 netbsd*)
17262 version_type=sunos
17263 need_lib_prefix=no
17264 need_version=no
17265 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17268 dynamic_linker='NetBSD (a.out) ld.so'
17269 else
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 dynamic_linker='NetBSD ld.elf_so'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=yes
17276 hardcode_into_libs=yes
17279 newsos6)
17280 version_type=linux
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17282 shlibpath_var=LD_LIBRARY_PATH
17283 shlibpath_overrides_runpath=yes
17286 *nto* | *qnx*)
17287 version_type=qnx
17288 need_lib_prefix=no
17289 need_version=no
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17291 soname_spec='${libname}${release}${shared_ext}$major'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=no
17294 hardcode_into_libs=yes
17295 dynamic_linker='ldqnx.so'
17298 openbsd*)
17299 version_type=sunos
17300 sys_lib_dlsearch_path_spec="/usr/lib"
17301 need_lib_prefix=no
17302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17303 case $host_os in
17304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17305 *) need_version=no ;;
17306 esac
17307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17311 case $host_os in
17312 openbsd2.[89] | openbsd2.[89].*)
17313 shlibpath_overrides_runpath=no
17316 shlibpath_overrides_runpath=yes
17318 esac
17319 else
17320 shlibpath_overrides_runpath=yes
17324 os2*)
17325 libname_spec='$name'
17326 shrext_cmds=".dll"
17327 need_lib_prefix=no
17328 library_names_spec='$libname${shared_ext} $libname.a'
17329 dynamic_linker='OS/2 ld.exe'
17330 shlibpath_var=LIBPATH
17333 osf3* | osf4* | osf5*)
17334 version_type=osf
17335 need_lib_prefix=no
17336 need_version=no
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17344 rdos*)
17345 dynamic_linker=no
17348 solaris*)
17349 version_type=linux
17350 need_lib_prefix=no
17351 need_version=no
17352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353 soname_spec='${libname}${release}${shared_ext}$major'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=yes
17356 hardcode_into_libs=yes
17357 # ldd complains unless libraries are executable
17358 postinstall_cmds='chmod +x $lib'
17361 sunos4*)
17362 version_type=sunos
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=yes
17367 if test "$with_gnu_ld" = yes; then
17368 need_lib_prefix=no
17370 need_version=yes
17373 sysv4 | sysv4.3*)
17374 version_type=linux
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 case $host_vendor in
17379 sni)
17380 shlibpath_overrides_runpath=no
17381 need_lib_prefix=no
17382 runpath_var=LD_RUN_PATH
17384 siemens)
17385 need_lib_prefix=no
17387 motorola)
17388 need_lib_prefix=no
17389 need_version=no
17390 shlibpath_overrides_runpath=no
17391 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17393 esac
17396 sysv4*MP*)
17397 if test -d /usr/nec ;then
17398 version_type=linux
17399 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17400 soname_spec='$libname${shared_ext}.$major'
17401 shlibpath_var=LD_LIBRARY_PATH
17405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17406 version_type=freebsd-elf
17407 need_lib_prefix=no
17408 need_version=no
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 shlibpath_var=LD_LIBRARY_PATH
17412 shlibpath_overrides_runpath=yes
17413 hardcode_into_libs=yes
17414 if test "$with_gnu_ld" = yes; then
17415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17416 else
17417 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17418 case $host_os in
17419 sco3.2v5*)
17420 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17422 esac
17424 sys_lib_dlsearch_path_spec='/usr/lib'
17427 tpf*)
17428 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17429 version_type=linux
17430 need_lib_prefix=no
17431 need_version=no
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=no
17435 hardcode_into_libs=yes
17438 uts4*)
17439 version_type=linux
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17446 dynamic_linker=no
17448 esac
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17450 $as_echo "$dynamic_linker" >&6; }
17451 test "$dynamic_linker" = no && can_build_shared=no
17453 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17454 if test "$GCC" = yes; then
17455 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17458 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17459 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17461 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17462 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17558 hardcode_action=
17559 if test -n "$hardcode_libdir_flag_spec" ||
17560 test -n "$runpath_var" ||
17561 test "X$hardcode_automatic" = "Xyes" ; then
17563 # We can hardcode non-existent directories.
17564 if test "$hardcode_direct" != no &&
17565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17566 # have to relink, otherwise we might link with an installed library
17567 # when we should be linking with a yet-to-be-installed one
17568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17569 test "$hardcode_minus_L" != no; then
17570 # Linking always hardcodes the temporary library directory.
17571 hardcode_action=relink
17572 else
17573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17574 hardcode_action=immediate
17576 else
17577 # We cannot hardcode anything, or else we can only hardcode existing
17578 # directories.
17579 hardcode_action=unsupported
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17582 $as_echo "$hardcode_action" >&6; }
17584 if test "$hardcode_action" = relink ||
17585 test "$inherit_rpath" = yes; then
17586 # Fast installation is not supported
17587 enable_fast_install=no
17588 elif test "$shlibpath_overrides_runpath" = yes ||
17589 test "$enable_shared" = no; then
17590 # Fast installation is not necessary
17591 enable_fast_install=needless
17599 if test "x$enable_dlopen" != xyes; then
17600 enable_dlopen=unknown
17601 enable_dlopen_self=unknown
17602 enable_dlopen_self_static=unknown
17603 else
17604 lt_cv_dlopen=no
17605 lt_cv_dlopen_libs=
17607 case $host_os in
17608 beos*)
17609 lt_cv_dlopen="load_add_on"
17610 lt_cv_dlopen_libs=
17611 lt_cv_dlopen_self=yes
17614 mingw* | pw32* | cegcc*)
17615 lt_cv_dlopen="LoadLibrary"
17616 lt_cv_dlopen_libs=
17619 cygwin*)
17620 lt_cv_dlopen="dlopen"
17621 lt_cv_dlopen_libs=
17624 darwin*)
17625 # if libdl is installed we need to link against it
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-ldl $LIBS"
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char dlopen ();
17644 main ()
17646 return dlopen ();
17648 return 0;
17650 _ACEOF
17651 if ac_fn_c_try_link "$LINENO"; then :
17652 ac_cv_lib_dl_dlopen=yes
17653 else
17654 ac_cv_lib_dl_dlopen=no
17656 rm -f core conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17662 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17664 else
17666 lt_cv_dlopen="dyld"
17667 lt_cv_dlopen_libs=
17668 lt_cv_dlopen_self=yes
17675 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17676 if test "x$ac_cv_func_shl_load" = x""yes; then :
17677 lt_cv_dlopen="shl_load"
17678 else
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17680 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17681 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17682 $as_echo_n "(cached) " >&6
17683 else
17684 ac_check_lib_save_LIBS=$LIBS
17685 LIBS="-ldld $LIBS"
17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687 /* end confdefs.h. */
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17692 #ifdef __cplusplus
17693 extern "C"
17694 #endif
17695 char shl_load ();
17697 main ()
17699 return shl_load ();
17701 return 0;
17703 _ACEOF
17704 if ac_fn_c_try_link "$LINENO"; then :
17705 ac_cv_lib_dld_shl_load=yes
17706 else
17707 ac_cv_lib_dld_shl_load=no
17709 rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17711 LIBS=$ac_check_lib_save_LIBS
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17714 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17715 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17716 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17717 else
17718 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17719 if test "x$ac_cv_func_dlopen" = x""yes; then :
17720 lt_cv_dlopen="dlopen"
17721 else
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17723 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17725 $as_echo_n "(cached) " >&6
17726 else
17727 ac_check_lib_save_LIBS=$LIBS
17728 LIBS="-ldl $LIBS"
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17732 /* Override any GCC internal prototype to avoid an error.
17733 Use char because int might match the return type of a GCC
17734 builtin and then its argument prototype would still apply. */
17735 #ifdef __cplusplus
17736 extern "C"
17737 #endif
17738 char dlopen ();
17740 main ()
17742 return dlopen ();
17744 return 0;
17746 _ACEOF
17747 if ac_fn_c_try_link "$LINENO"; then :
17748 ac_cv_lib_dl_dlopen=yes
17749 else
17750 ac_cv_lib_dl_dlopen=no
17752 rm -f core conftest.err conftest.$ac_objext \
17753 conftest$ac_exeext conftest.$ac_ext
17754 LIBS=$ac_check_lib_save_LIBS
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17757 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17758 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17760 else
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17762 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17763 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17764 $as_echo_n "(cached) " >&6
17765 else
17766 ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-lsvld $LIBS"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17771 /* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 char dlopen ();
17779 main ()
17781 return dlopen ();
17783 return 0;
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 ac_cv_lib_svld_dlopen=yes
17788 else
17789 ac_cv_lib_svld_dlopen=no
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793 LIBS=$ac_check_lib_save_LIBS
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17796 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17797 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17799 else
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17801 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17803 $as_echo_n "(cached) " >&6
17804 else
17805 ac_check_lib_save_LIBS=$LIBS
17806 LIBS="-ldld $LIBS"
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char dld_link ();
17818 main ()
17820 return dld_link ();
17822 return 0;
17824 _ACEOF
17825 if ac_fn_c_try_link "$LINENO"; then :
17826 ac_cv_lib_dld_dld_link=yes
17827 else
17828 ac_cv_lib_dld_dld_link=no
17830 rm -f core conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
17832 LIBS=$ac_check_lib_save_LIBS
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17835 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17836 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17837 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17856 esac
17858 if test "x$lt_cv_dlopen" != xno; then
17859 enable_dlopen=yes
17860 else
17861 enable_dlopen=no
17864 case $lt_cv_dlopen in
17865 dlopen)
17866 save_CPPFLAGS="$CPPFLAGS"
17867 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17869 save_LDFLAGS="$LDFLAGS"
17870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17872 save_LIBS="$LIBS"
17873 LIBS="$lt_cv_dlopen_libs $LIBS"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17876 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17877 if test "${lt_cv_dlopen_self+set}" = set; then :
17878 $as_echo_n "(cached) " >&6
17879 else
17880 if test "$cross_compiling" = yes; then :
17881 lt_cv_dlopen_self=cross
17882 else
17883 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17884 lt_status=$lt_dlunknown
17885 cat > conftest.$ac_ext <<_LT_EOF
17886 #line 17881 "configure"
17887 #include "confdefs.h"
17889 #if HAVE_DLFCN_H
17890 #include <dlfcn.h>
17891 #endif
17893 #include <stdio.h>
17895 #ifdef RTLD_GLOBAL
17896 # define LT_DLGLOBAL RTLD_GLOBAL
17897 #else
17898 # ifdef DL_GLOBAL
17899 # define LT_DLGLOBAL DL_GLOBAL
17900 # else
17901 # define LT_DLGLOBAL 0
17902 # endif
17903 #endif
17905 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17906 find out it does not work in some platform. */
17907 #ifndef LT_DLLAZY_OR_NOW
17908 # ifdef RTLD_LAZY
17909 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17910 # else
17911 # ifdef DL_LAZY
17912 # define LT_DLLAZY_OR_NOW DL_LAZY
17913 # else
17914 # ifdef RTLD_NOW
17915 # define LT_DLLAZY_OR_NOW RTLD_NOW
17916 # else
17917 # ifdef DL_NOW
17918 # define LT_DLLAZY_OR_NOW DL_NOW
17919 # else
17920 # define LT_DLLAZY_OR_NOW 0
17921 # endif
17922 # endif
17923 # endif
17924 # endif
17925 #endif
17927 /* When -fvisbility=hidden is used, assume the code has been annotated
17928 correspondingly for the symbols needed. */
17929 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17930 void fnord () __attribute__((visibility("default")));
17931 #endif
17933 void fnord () { int i=42; }
17934 int main ()
17936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17937 int status = $lt_dlunknown;
17939 if (self)
17941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17942 else
17944 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17945 else puts (dlerror ());
17947 /* dlclose (self); */
17949 else
17950 puts (dlerror ());
17952 return status;
17954 _LT_EOF
17955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17956 (eval $ac_link) 2>&5
17957 ac_status=$?
17958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17959 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17960 (./conftest; exit; ) >&5 2>/dev/null
17961 lt_status=$?
17962 case x$lt_status in
17963 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17964 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17965 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17966 esac
17967 else :
17968 # compilation failed
17969 lt_cv_dlopen_self=no
17972 rm -fr conftest*
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17977 $as_echo "$lt_cv_dlopen_self" >&6; }
17979 if test "x$lt_cv_dlopen_self" = xyes; then
17980 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17982 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17983 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17984 $as_echo_n "(cached) " >&6
17985 else
17986 if test "$cross_compiling" = yes; then :
17987 lt_cv_dlopen_self_static=cross
17988 else
17989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17990 lt_status=$lt_dlunknown
17991 cat > conftest.$ac_ext <<_LT_EOF
17992 #line 17987 "configure"
17993 #include "confdefs.h"
17995 #if HAVE_DLFCN_H
17996 #include <dlfcn.h>
17997 #endif
17999 #include <stdio.h>
18001 #ifdef RTLD_GLOBAL
18002 # define LT_DLGLOBAL RTLD_GLOBAL
18003 #else
18004 # ifdef DL_GLOBAL
18005 # define LT_DLGLOBAL DL_GLOBAL
18006 # else
18007 # define LT_DLGLOBAL 0
18008 # endif
18009 #endif
18011 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18012 find out it does not work in some platform. */
18013 #ifndef LT_DLLAZY_OR_NOW
18014 # ifdef RTLD_LAZY
18015 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18016 # else
18017 # ifdef DL_LAZY
18018 # define LT_DLLAZY_OR_NOW DL_LAZY
18019 # else
18020 # ifdef RTLD_NOW
18021 # define LT_DLLAZY_OR_NOW RTLD_NOW
18022 # else
18023 # ifdef DL_NOW
18024 # define LT_DLLAZY_OR_NOW DL_NOW
18025 # else
18026 # define LT_DLLAZY_OR_NOW 0
18027 # endif
18028 # endif
18029 # endif
18030 # endif
18031 #endif
18033 /* When -fvisbility=hidden is used, assume the code has been annotated
18034 correspondingly for the symbols needed. */
18035 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18036 void fnord () __attribute__((visibility("default")));
18037 #endif
18039 void fnord () { int i=42; }
18040 int main ()
18042 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18043 int status = $lt_dlunknown;
18045 if (self)
18047 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18048 else
18050 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18051 else puts (dlerror ());
18053 /* dlclose (self); */
18055 else
18056 puts (dlerror ());
18058 return status;
18060 _LT_EOF
18061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18062 (eval $ac_link) 2>&5
18063 ac_status=$?
18064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18065 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18066 (./conftest; exit; ) >&5 2>/dev/null
18067 lt_status=$?
18068 case x$lt_status in
18069 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18070 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18071 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18072 esac
18073 else :
18074 # compilation failed
18075 lt_cv_dlopen_self_static=no
18078 rm -fr conftest*
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18083 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18086 CPPFLAGS="$save_CPPFLAGS"
18087 LDFLAGS="$save_LDFLAGS"
18088 LIBS="$save_LIBS"
18090 esac
18092 case $lt_cv_dlopen_self in
18093 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18094 *) enable_dlopen_self=unknown ;;
18095 esac
18097 case $lt_cv_dlopen_self_static in
18098 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18099 *) enable_dlopen_self_static=unknown ;;
18100 esac
18119 striplib=
18120 old_striplib=
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18122 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18123 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18125 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18127 $as_echo "yes" >&6; }
18128 else
18129 # FIXME - insert some real tests, host_os isn't really good enough
18130 case $host_os in
18131 darwin*)
18132 if test -n "$STRIP" ; then
18133 striplib="$STRIP -x"
18134 old_striplib="$STRIP -S"
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18136 $as_echo "yes" >&6; }
18137 else
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18146 esac
18160 # Report which library types will actually be built
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18162 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18164 $as_echo "$can_build_shared" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18167 $as_echo_n "checking whether to build shared libraries... " >&6; }
18168 test "$can_build_shared" = "no" && enable_shared=no
18170 # On AIX, shared libraries and static libraries use the same namespace, and
18171 # are all built from PIC.
18172 case $host_os in
18173 aix3*)
18174 test "$enable_shared" = yes && enable_static=no
18175 if test -n "$RANLIB"; then
18176 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18177 postinstall_cmds='$RANLIB $lib'
18181 aix[4-9]*)
18182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18183 test "$enable_shared" = yes && enable_static=no
18186 esac
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18188 $as_echo "$enable_shared" >&6; }
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18191 $as_echo_n "checking whether to build static libraries... " >&6; }
18192 # Make sure either enable_shared or enable_static is yes.
18193 test "$enable_shared" = yes || enable_static=yes
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18195 $as_echo "$enable_static" >&6; }
18201 ac_ext=c
18202 ac_cpp='$CPP $CPPFLAGS'
18203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18207 CC="$lt_save_CC"
18209 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18210 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18211 (test "X$CXX" != "Xg++"))) ; then
18212 ac_ext=cpp
18213 ac_cpp='$CXXCPP $CPPFLAGS'
18214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18218 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18219 if test -z "$CXXCPP"; then
18220 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 # Double quotes because CXXCPP needs to be expanded
18224 for CXXCPP in "$CXX -E" "/lib/cpp"
18226 ac_preproc_ok=false
18227 for ac_cxx_preproc_warn_flag in '' yes
18229 # Use a header file that comes with gcc, so configuring glibc
18230 # with a fresh cross-compiler works.
18231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18232 # <limits.h> exists even on freestanding compilers.
18233 # On the NeXT, cc -E runs the code through the compiler's parser,
18234 # not just through cpp. "Syntax error" is here to catch this case.
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237 #ifdef __STDC__
18238 # include <limits.h>
18239 #else
18240 # include <assert.h>
18241 #endif
18242 Syntax error
18243 _ACEOF
18244 if ac_fn_cxx_try_cpp "$LINENO"; then :
18246 else
18247 # Broken: fails on valid input.
18248 continue
18250 rm -f conftest.err conftest.$ac_ext
18252 # OK, works on sane cases. Now check whether nonexistent headers
18253 # can be detected and how.
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256 #include <ac_nonexistent.h>
18257 _ACEOF
18258 if ac_fn_cxx_try_cpp "$LINENO"; then :
18259 # Broken: success on invalid input.
18260 continue
18261 else
18262 # Passes both tests.
18263 ac_preproc_ok=:
18264 break
18266 rm -f conftest.err conftest.$ac_ext
18268 done
18269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18270 rm -f conftest.err conftest.$ac_ext
18271 if $ac_preproc_ok; then :
18272 break
18275 done
18276 ac_cv_prog_CXXCPP=$CXXCPP
18279 CXXCPP=$ac_cv_prog_CXXCPP
18280 else
18281 ac_cv_prog_CXXCPP=$CXXCPP
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18284 $as_echo "$CXXCPP" >&6; }
18285 ac_preproc_ok=false
18286 for ac_cxx_preproc_warn_flag in '' yes
18288 # Use a header file that comes with gcc, so configuring glibc
18289 # with a fresh cross-compiler works.
18290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18291 # <limits.h> exists even on freestanding compilers.
18292 # On the NeXT, cc -E runs the code through the compiler's parser,
18293 # not just through cpp. "Syntax error" is here to catch this case.
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #ifdef __STDC__
18297 # include <limits.h>
18298 #else
18299 # include <assert.h>
18300 #endif
18301 Syntax error
18302 _ACEOF
18303 if ac_fn_cxx_try_cpp "$LINENO"; then :
18305 else
18306 # Broken: fails on valid input.
18307 continue
18309 rm -f conftest.err conftest.$ac_ext
18311 # OK, works on sane cases. Now check whether nonexistent headers
18312 # can be detected and how.
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <ac_nonexistent.h>
18316 _ACEOF
18317 if ac_fn_cxx_try_cpp "$LINENO"; then :
18318 # Broken: success on invalid input.
18319 continue
18320 else
18321 # Passes both tests.
18322 ac_preproc_ok=:
18323 break
18325 rm -f conftest.err conftest.$ac_ext
18327 done
18328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18329 rm -f conftest.err conftest.$ac_ext
18330 if $ac_preproc_ok; then :
18332 else
18333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18335 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18336 See \`config.log' for more details." "$LINENO" 5; }
18339 ac_ext=c
18340 ac_cpp='$CPP $CPPFLAGS'
18341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18345 else
18346 _lt_caught_CXX_error=yes
18349 ac_ext=cpp
18350 ac_cpp='$CXXCPP $CPPFLAGS'
18351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18355 archive_cmds_need_lc_CXX=no
18356 allow_undefined_flag_CXX=
18357 always_export_symbols_CXX=no
18358 archive_expsym_cmds_CXX=
18359 compiler_needs_object_CXX=no
18360 export_dynamic_flag_spec_CXX=
18361 hardcode_direct_CXX=no
18362 hardcode_direct_absolute_CXX=no
18363 hardcode_libdir_flag_spec_CXX=
18364 hardcode_libdir_flag_spec_ld_CXX=
18365 hardcode_libdir_separator_CXX=
18366 hardcode_minus_L_CXX=no
18367 hardcode_shlibpath_var_CXX=unsupported
18368 hardcode_automatic_CXX=no
18369 inherit_rpath_CXX=no
18370 module_cmds_CXX=
18371 module_expsym_cmds_CXX=
18372 link_all_deplibs_CXX=unknown
18373 old_archive_cmds_CXX=$old_archive_cmds
18374 reload_flag_CXX=$reload_flag
18375 reload_cmds_CXX=$reload_cmds
18376 no_undefined_flag_CXX=
18377 whole_archive_flag_spec_CXX=
18378 enable_shared_with_static_runtimes_CXX=no
18380 # Source file extension for C++ test sources.
18381 ac_ext=cpp
18383 # Object file extension for compiled C++ test sources.
18384 objext=o
18385 objext_CXX=$objext
18387 # No sense in running all these tests if we already determined that
18388 # the CXX compiler isn't working. Some variables (like enable_shared)
18389 # are currently assumed to apply to all compilers on this platform,
18390 # and will be corrupted by setting them based on a non-working compiler.
18391 if test "$_lt_caught_CXX_error" != yes; then
18392 # Code to be used in simple compile tests
18393 lt_simple_compile_test_code="int some_variable = 0;"
18395 # Code to be used in simple link tests
18396 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18405 # If no C compiler was specified, use CC.
18406 LTCC=${LTCC-"$CC"}
18408 # If no C compiler flags were specified, use CFLAGS.
18409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18411 # Allow CC to be a program name with arguments.
18412 compiler=$CC
18415 # save warnings/boilerplate of simple test code
18416 ac_outfile=conftest.$ac_objext
18417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18419 _lt_compiler_boilerplate=`cat conftest.err`
18420 $RM conftest*
18422 ac_outfile=conftest.$ac_objext
18423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18425 _lt_linker_boilerplate=`cat conftest.err`
18426 $RM -r conftest*
18429 # Allow CC to be a program name with arguments.
18430 lt_save_CC=$CC
18431 lt_save_LD=$LD
18432 lt_save_GCC=$GCC
18433 GCC=$GXX
18434 lt_save_with_gnu_ld=$with_gnu_ld
18435 lt_save_path_LD=$lt_cv_path_LD
18436 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18437 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18438 else
18439 $as_unset lt_cv_prog_gnu_ld
18441 if test -n "${lt_cv_path_LDCXX+set}"; then
18442 lt_cv_path_LD=$lt_cv_path_LDCXX
18443 else
18444 $as_unset lt_cv_path_LD
18446 test -z "${LDCXX+set}" || LD=$LDCXX
18447 CC=${CXX-"c++"}
18448 compiler=$CC
18449 compiler_CXX=$CC
18450 for cc_temp in $compiler""; do
18451 case $cc_temp in
18452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18454 \-*) ;;
18455 *) break;;
18456 esac
18457 done
18458 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18461 if test -n "$compiler"; then
18462 # We don't want -fno-exception when compiling C++ code, so set the
18463 # no_builtin_flag separately
18464 if test "$GXX" = yes; then
18465 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18466 else
18467 lt_prog_compiler_no_builtin_flag_CXX=
18470 if test "$GXX" = yes; then
18471 # Set up default GNU C++ configuration
18475 # Check whether --with-gnu-ld was given.
18476 if test "${with_gnu_ld+set}" = set; then :
18477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18478 else
18479 with_gnu_ld=no
18482 ac_prog=ld
18483 if test "$GCC" = yes; then
18484 # Check if gcc -print-prog-name=ld gives a path.
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18486 $as_echo_n "checking for ld used by $CC... " >&6; }
18487 case $host in
18488 *-*-mingw*)
18489 # gcc leaves a trailing carriage return which upsets mingw
18490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18493 esac
18494 case $ac_prog in
18495 # Accept absolute paths.
18496 [\\/]* | ?:[\\/]*)
18497 re_direlt='/[^/][^/]*/\.\./'
18498 # Canonicalize the pathname of ld
18499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18502 done
18503 test -z "$LD" && LD="$ac_prog"
18506 # If it fails, then pretend we aren't using GCC.
18507 ac_prog=ld
18510 # If it is relative, then search for the first ld in PATH.
18511 with_gnu_ld=unknown
18513 esac
18514 elif test "$with_gnu_ld" = yes; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18516 $as_echo_n "checking for GNU ld... " >&6; }
18517 else
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18519 $as_echo_n "checking for non-GNU ld... " >&6; }
18521 if test "${lt_cv_path_LD+set}" = set; then :
18522 $as_echo_n "(cached) " >&6
18523 else
18524 if test -z "$LD"; then
18525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18526 for ac_dir in $PATH; do
18527 IFS="$lt_save_ifs"
18528 test -z "$ac_dir" && ac_dir=.
18529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18530 lt_cv_path_LD="$ac_dir/$ac_prog"
18531 # Check to see if the program is GNU ld. I'd rather use --version,
18532 # but apparently some variants of GNU ld only accept -v.
18533 # Break only if it was the GNU/non-GNU ld that we prefer.
18534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18535 *GNU* | *'with BFD'*)
18536 test "$with_gnu_ld" != no && break
18539 test "$with_gnu_ld" != yes && break
18541 esac
18543 done
18544 IFS="$lt_save_ifs"
18545 else
18546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18550 LD="$lt_cv_path_LD"
18551 if test -n "$LD"; then
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18553 $as_echo "$LD" >&6; }
18554 else
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556 $as_echo "no" >&6; }
18558 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18561 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18565 case `$LD -v 2>&1 </dev/null` in
18566 *GNU* | *'with BFD'*)
18567 lt_cv_prog_gnu_ld=yes
18570 lt_cv_prog_gnu_ld=no
18572 esac
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18576 with_gnu_ld=$lt_cv_prog_gnu_ld
18584 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18585 # archiving commands below assume that GNU ld is being used.
18586 if test "$with_gnu_ld" = yes; then
18587 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18588 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'
18590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18593 # If archive_cmds runs LD, not CC, wlarc should be empty
18594 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18595 # investigate it a little bit more. (MM)
18596 wlarc='${wl}'
18598 # ancient GNU ld didn't support --whole-archive et. al.
18599 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18600 $GREP 'no-whole-archive' > /dev/null; then
18601 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18602 else
18603 whole_archive_flag_spec_CXX=
18605 else
18606 with_gnu_ld=no
18607 wlarc=
18609 # A generic and very simple default shared library creation
18610 # command for GNU C++ for the case where it uses the native
18611 # linker, instead of GNU ld. If possible, this setting should
18612 # overridden to take advantage of the native linker features on
18613 # the platform it is being used on.
18614 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18617 # Commands to make compiler produce verbose output that lists
18618 # what "hidden" libraries, object files and flags are used when
18619 # linking a shared library.
18620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18622 else
18623 GXX=no
18624 with_gnu_ld=no
18625 wlarc=
18628 # PORTME: fill in a description of your system's C++ link characteristics
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18631 ld_shlibs_CXX=yes
18632 case $host_os in
18633 aix3*)
18634 # FIXME: insert proper C++ library support
18635 ld_shlibs_CXX=no
18637 aix[4-9]*)
18638 if test "$host_cpu" = ia64; then
18639 # On IA64, the linker does run time linking by default, so we don't
18640 # have to do anything special.
18641 aix_use_runtimelinking=no
18642 exp_sym_flag='-Bexport'
18643 no_entry_flag=""
18644 else
18645 aix_use_runtimelinking=no
18647 # Test if we are trying to use run time linking or normal
18648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18649 # need to do runtime linking.
18650 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18651 for ld_flag in $LDFLAGS; do
18652 case $ld_flag in
18653 *-brtl*)
18654 aix_use_runtimelinking=yes
18655 break
18657 esac
18658 done
18660 esac
18662 exp_sym_flag='-bexport'
18663 no_entry_flag='-bnoentry'
18666 # When large executables or shared objects are built, AIX ld can
18667 # have problems creating the table of contents. If linking a library
18668 # or program results in "error TOC overflow" add -mminimal-toc to
18669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18672 archive_cmds_CXX=''
18673 hardcode_direct_CXX=yes
18674 hardcode_direct_absolute_CXX=yes
18675 hardcode_libdir_separator_CXX=':'
18676 link_all_deplibs_CXX=yes
18677 file_list_spec_CXX='${wl}-f,'
18679 if test "$GXX" = yes; then
18680 case $host_os in aix4.[012]|aix4.[012].*)
18681 # We only want to do this on AIX 4.2 and lower, the check
18682 # below for broken collect2 doesn't work under 4.3+
18683 collect2name=`${CC} -print-prog-name=collect2`
18684 if test -f "$collect2name" &&
18685 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18686 then
18687 # We have reworked collect2
18689 else
18690 # We have old collect2
18691 hardcode_direct_CXX=unsupported
18692 # It fails to find uninstalled libraries when the uninstalled
18693 # path is not listed in the libpath. Setting hardcode_minus_L
18694 # to unsupported forces relinking
18695 hardcode_minus_L_CXX=yes
18696 hardcode_libdir_flag_spec_CXX='-L$libdir'
18697 hardcode_libdir_separator_CXX=
18699 esac
18700 shared_flag='-shared'
18701 if test "$aix_use_runtimelinking" = yes; then
18702 shared_flag="$shared_flag "'${wl}-G'
18704 else
18705 # not using gcc
18706 if test "$host_cpu" = ia64; then
18707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18708 # chokes on -Wl,-G. The following line is correct:
18709 shared_flag='-G'
18710 else
18711 if test "$aix_use_runtimelinking" = yes; then
18712 shared_flag='${wl}-G'
18713 else
18714 shared_flag='${wl}-bM:SRE'
18719 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18720 # It seems that -bexpall does not export symbols beginning with
18721 # underscore (_), so it is better to generate a list of symbols to
18722 # export.
18723 always_export_symbols_CXX=yes
18724 if test "$aix_use_runtimelinking" = yes; then
18725 # Warning - without using the other runtime loading flags (-brtl),
18726 # -berok will link without error, but may produce a broken library.
18727 allow_undefined_flag_CXX='-berok'
18728 # Determine the default libpath from the value encoded in an empty
18729 # executable.
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18734 main ()
18738 return 0;
18740 _ACEOF
18741 if ac_fn_cxx_try_link "$LINENO"; then :
18743 lt_aix_libpath_sed='
18744 /Import File Strings/,/^$/ {
18745 /^0/ {
18746 s/^0 *\(.*\)$/\1/
18750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18751 # Check for a 64-bit object if we didn't find anything.
18752 if test -z "$aix_libpath"; then
18753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18756 rm -f core conftest.err conftest.$ac_objext \
18757 conftest$ac_exeext conftest.$ac_ext
18758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18762 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"
18763 else
18764 if test "$host_cpu" = ia64; then
18765 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18766 allow_undefined_flag_CXX="-z nodefs"
18767 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"
18768 else
18769 # Determine the default libpath from the value encoded in an
18770 # empty executable.
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18775 main ()
18779 return 0;
18781 _ACEOF
18782 if ac_fn_cxx_try_link "$LINENO"; then :
18784 lt_aix_libpath_sed='
18785 /Import File Strings/,/^$/ {
18786 /^0/ {
18787 s/^0 *\(.*\)$/\1/
18791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18792 # Check for a 64-bit object if we didn't find anything.
18793 if test -z "$aix_libpath"; then
18794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18797 rm -f core conftest.err conftest.$ac_objext \
18798 conftest$ac_exeext conftest.$ac_ext
18799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18801 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18802 # Warning - without using the other run time loading flags,
18803 # -berok will link without error, but may produce a broken library.
18804 no_undefined_flag_CXX=' ${wl}-bernotok'
18805 allow_undefined_flag_CXX=' ${wl}-berok'
18806 if test "$with_gnu_ld" = yes; then
18807 # We only use this code for GNU lds that support --whole-archive.
18808 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18809 else
18810 # Exported symbols can be pulled into shared objects from archives
18811 whole_archive_flag_spec_CXX='$convenience'
18813 archive_cmds_need_lc_CXX=yes
18814 # This is similar to how AIX traditionally builds its shared
18815 # libraries.
18816 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'
18821 beos*)
18822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18823 allow_undefined_flag_CXX=unsupported
18824 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18825 # support --undefined. This deserves some investigation. FIXME
18826 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18827 else
18828 ld_shlibs_CXX=no
18832 chorus*)
18833 case $cc_basename in
18835 # FIXME: insert proper C++ library support
18836 ld_shlibs_CXX=no
18838 esac
18841 cygwin* | mingw* | pw32* | cegcc*)
18842 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18843 # as there is no search path for DLLs.
18844 hardcode_libdir_flag_spec_CXX='-L$libdir'
18845 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18846 allow_undefined_flag_CXX=unsupported
18847 always_export_symbols_CXX=no
18848 enable_shared_with_static_runtimes_CXX=yes
18850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18851 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'
18852 # If the export-symbols file already is a .def file (1st line
18853 # is EXPORTS), use it as is; otherwise, prepend...
18854 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18855 cp $export_symbols $output_objdir/$soname.def;
18856 else
18857 echo EXPORTS > $output_objdir/$soname.def;
18858 cat $export_symbols >> $output_objdir/$soname.def;
18860 $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'
18861 else
18862 ld_shlibs_CXX=no
18865 darwin* | rhapsody*)
18868 archive_cmds_need_lc_CXX=no
18869 hardcode_direct_CXX=no
18870 hardcode_automatic_CXX=yes
18871 hardcode_shlibpath_var_CXX=unsupported
18872 if test "$lt_cv_ld_force_load" = "yes"; then
18873 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\"`'
18874 else
18875 whole_archive_flag_spec_CXX=''
18877 link_all_deplibs_CXX=yes
18878 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18879 case $cc_basename in
18880 ifort*) _lt_dar_can_shared=yes ;;
18881 *) _lt_dar_can_shared=$GCC ;;
18882 esac
18883 if test "$_lt_dar_can_shared" = "yes"; then
18884 output_verbose_link_cmd=func_echo_all
18885 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}"
18886 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18887 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}"
18888 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}"
18889 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18890 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}"
18891 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}"
18894 else
18895 ld_shlibs_CXX=no
18900 dgux*)
18901 case $cc_basename in
18902 ec++*)
18903 # FIXME: insert proper C++ library support
18904 ld_shlibs_CXX=no
18906 ghcx*)
18907 # Green Hills C++ Compiler
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18915 esac
18918 freebsd2.*)
18919 # C++ shared libraries reported to be fairly broken before
18920 # switch to ELF
18921 ld_shlibs_CXX=no
18924 freebsd-elf*)
18925 archive_cmds_need_lc_CXX=no
18928 freebsd* | dragonfly*)
18929 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18930 # conventions
18931 ld_shlibs_CXX=yes
18934 gnu*)
18937 haiku*)
18938 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18939 link_all_deplibs_CXX=yes
18942 hpux9*)
18943 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18944 hardcode_libdir_separator_CXX=:
18945 export_dynamic_flag_spec_CXX='${wl}-E'
18946 hardcode_direct_CXX=yes
18947 hardcode_minus_L_CXX=yes # Not in the search PATH,
18948 # but as the default
18949 # location of the library.
18951 case $cc_basename in
18952 CC*)
18953 # FIXME: insert proper C++ library support
18954 ld_shlibs_CXX=no
18956 aCC*)
18957 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'
18958 # Commands to make compiler produce verbose output that lists
18959 # what "hidden" libraries, object files and flags are used when
18960 # linking a shared library.
18962 # There doesn't appear to be a way to prevent this compiler from
18963 # explicitly linking system object files so we need to strip them
18964 # from the output so that they don't get included in the library
18965 # dependencies.
18966 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"'
18969 if test "$GXX" = yes; then
18970 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'
18971 else
18972 # FIXME: insert proper C++ library support
18973 ld_shlibs_CXX=no
18976 esac
18979 hpux10*|hpux11*)
18980 if test $with_gnu_ld = no; then
18981 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18982 hardcode_libdir_separator_CXX=:
18984 case $host_cpu in
18985 hppa*64*|ia64*)
18988 export_dynamic_flag_spec_CXX='${wl}-E'
18990 esac
18992 case $host_cpu in
18993 hppa*64*|ia64*)
18994 hardcode_direct_CXX=no
18995 hardcode_shlibpath_var_CXX=no
18998 hardcode_direct_CXX=yes
18999 hardcode_direct_absolute_CXX=yes
19000 hardcode_minus_L_CXX=yes # Not in the search PATH,
19001 # but as the default
19002 # location of the library.
19004 esac
19006 case $cc_basename in
19007 CC*)
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19011 aCC*)
19012 case $host_cpu in
19013 hppa*64*)
19014 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19016 ia64*)
19017 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19020 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19022 esac
19023 # Commands to make compiler produce verbose output that lists
19024 # what "hidden" libraries, object files and flags are used when
19025 # linking a shared library.
19027 # There doesn't appear to be a way to prevent this compiler from
19028 # explicitly linking system object files so we need to strip them
19029 # from the output so that they don't get included in the library
19030 # dependencies.
19031 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"'
19034 if test "$GXX" = yes; then
19035 if test $with_gnu_ld = no; then
19036 case $host_cpu in
19037 hppa*64*)
19038 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19040 ia64*)
19041 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19044 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'
19046 esac
19048 else
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19053 esac
19056 interix[3-9]*)
19057 hardcode_direct_CXX=no
19058 hardcode_shlibpath_var_CXX=no
19059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19060 export_dynamic_flag_spec_CXX='${wl}-E'
19061 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19062 # Instead, shared libraries are loaded at an image base (0x10000000 by
19063 # default) and relocated if they conflict, which is a slow very memory
19064 # consuming and fragmenting process. To avoid this, we pick a random,
19065 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19066 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19067 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'
19068 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'
19070 irix5* | irix6*)
19071 case $cc_basename in
19072 CC*)
19073 # SGI C++
19074 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'
19076 # Archives containing C++ object files must be created using
19077 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19078 # necessary to make sure instantiated templates are included
19079 # in the archive.
19080 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19083 if test "$GXX" = yes; then
19084 if test "$with_gnu_ld" = no; then
19085 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'
19086 else
19087 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'
19090 link_all_deplibs_CXX=yes
19092 esac
19093 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19094 hardcode_libdir_separator_CXX=:
19095 inherit_rpath_CXX=yes
19098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19099 case $cc_basename in
19100 KCC*)
19101 # Kuck and Associates, Inc. (KAI) C++ Compiler
19103 # KCC will only create a shared library if the output file
19104 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19105 # to its proper name (with version) after linking.
19106 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'
19107 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'
19108 # Commands to make compiler produce verbose output that lists
19109 # what "hidden" libraries, object files and flags are used when
19110 # linking a shared library.
19112 # There doesn't appear to be a way to prevent this compiler from
19113 # explicitly linking system object files so we need to strip them
19114 # from the output so that they don't get included in the library
19115 # dependencies.
19116 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"'
19118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19121 # Archives containing C++ object files must be created using
19122 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19123 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19125 icpc* | ecpc* )
19126 # Intel C++
19127 with_gnu_ld=yes
19128 # version 8.0 and above of icpc choke on multiply defined symbols
19129 # if we add $predep_objects and $postdep_objects, however 7.1 and
19130 # earlier do not add the objects themselves.
19131 case `$CC -V 2>&1` in
19132 *"Version 7."*)
19133 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 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'
19136 *) # Version 8.0 or newer
19137 tmp_idyn=
19138 case $host_cpu in
19139 ia64*) tmp_idyn=' -i_dynamic';;
19140 esac
19141 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142 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'
19144 esac
19145 archive_cmds_need_lc_CXX=no
19146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19148 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19150 pgCC* | pgcpp*)
19151 # Portland Group C++ compiler
19152 case `$CC -V` in
19153 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19154 prelink_cmds_CXX='tpldir=Template.dir~
19155 rm -rf $tpldir~
19156 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19157 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19158 old_archive_cmds_CXX='tpldir=Template.dir~
19159 rm -rf $tpldir~
19160 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19161 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19162 $RANLIB $oldlib'
19163 archive_cmds_CXX='tpldir=Template.dir~
19164 rm -rf $tpldir~
19165 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19166 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19167 archive_expsym_cmds_CXX='tpldir=Template.dir~
19168 rm -rf $tpldir~
19169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19170 $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'
19172 *) # Version 6 and above use weak symbols
19173 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19174 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'
19176 esac
19178 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19179 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19180 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'
19182 cxx*)
19183 # Compaq C++
19184 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19185 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'
19187 runpath_var=LD_RUN_PATH
19188 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19189 hardcode_libdir_separator_CXX=:
19191 # Commands to make compiler produce verbose output that lists
19192 # what "hidden" libraries, object files and flags are used when
19193 # linking a shared library.
19195 # There doesn't appear to be a way to prevent this compiler from
19196 # explicitly linking system object files so we need to strip them
19197 # from the output so that they don't get included in the library
19198 # dependencies.
19199 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'
19201 xl* | mpixl* | bgxl*)
19202 # IBM XL 8.0 on PPC, with GNU ld
19203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206 if test "x$supports_anon_versioning" = xyes; then
19207 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19209 echo "local: *; };" >> $output_objdir/$libname.ver~
19210 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19214 case `$CC -V 2>&1 | sed 5q` in
19215 *Sun\ C*)
19216 # Sun C++ 5.9
19217 no_undefined_flag_CXX=' -zdefs'
19218 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 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'
19220 hardcode_libdir_flag_spec_CXX='-R$libdir'
19221 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'
19222 compiler_needs_object_CXX=yes
19224 # Not sure whether something based on
19225 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19226 # would be better.
19227 output_verbose_link_cmd='func_echo_all'
19229 # Archives containing C++ object files must be created using
19230 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19231 # necessary to make sure instantiated templates are included
19232 # in the archive.
19233 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235 esac
19237 esac
19240 lynxos*)
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19245 m88k*)
19246 # FIXME: insert proper C++ library support
19247 ld_shlibs_CXX=no
19250 mvs*)
19251 case $cc_basename in
19252 cxx*)
19253 # FIXME: insert proper C++ library support
19254 ld_shlibs_CXX=no
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19260 esac
19263 netbsd*)
19264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19265 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19266 wlarc=
19267 hardcode_libdir_flag_spec_CXX='-R$libdir'
19268 hardcode_direct_CXX=yes
19269 hardcode_shlibpath_var_CXX=no
19271 # Workaround some broken pre-1.5 toolchains
19272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19275 *nto* | *qnx*)
19276 ld_shlibs_CXX=yes
19279 openbsd2*)
19280 # C++ shared libraries are fairly broken
19281 ld_shlibs_CXX=no
19284 openbsd*)
19285 if test -f /usr/libexec/ld.so; then
19286 hardcode_direct_CXX=yes
19287 hardcode_shlibpath_var_CXX=no
19288 hardcode_direct_absolute_CXX=yes
19289 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19290 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19292 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19293 export_dynamic_flag_spec_CXX='${wl}-E'
19294 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19296 output_verbose_link_cmd=func_echo_all
19297 else
19298 ld_shlibs_CXX=no
19302 osf3* | osf4* | osf5*)
19303 case $cc_basename in
19304 KCC*)
19305 # Kuck and Associates, Inc. (KAI) C++ Compiler
19307 # KCC will only create a shared library if the output file
19308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309 # to its proper name (with version) after linking.
19310 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'
19312 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19313 hardcode_libdir_separator_CXX=:
19315 # Archives containing C++ object files must be created using
19316 # the KAI C++ compiler.
19317 case $host in
19318 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19319 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19320 esac
19322 RCC*)
19323 # Rational C++ 2.4.1
19324 # FIXME: insert proper C++ library support
19325 ld_shlibs_CXX=no
19327 cxx*)
19328 case $host in
19329 osf3*)
19330 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19331 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'
19332 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19335 allow_undefined_flag_CXX=' -expect_unresolved \*'
19336 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'
19337 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19338 echo "-hidden">> $lib.exp~
19339 $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~
19340 $RM $lib.exp'
19341 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19343 esac
19345 hardcode_libdir_separator_CXX=:
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19351 # There doesn't appear to be a way to prevent this compiler from
19352 # explicitly linking system object files so we need to strip them
19353 # from the output so that they don't get included in the library
19354 # dependencies.
19355 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"'
19358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19360 case $host in
19361 osf3*)
19362 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'
19365 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'
19367 esac
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX=:
19372 # Commands to make compiler produce verbose output that lists
19373 # what "hidden" libraries, object files and flags are used when
19374 # linking a shared library.
19375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19377 else
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19382 esac
19385 psos*)
19386 # FIXME: insert proper C++ library support
19387 ld_shlibs_CXX=no
19390 sunos4*)
19391 case $cc_basename in
19392 CC*)
19393 # Sun C++ 4.x
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19397 lcc*)
19398 # Lucid
19399 # FIXME: insert proper C++ library support
19400 ld_shlibs_CXX=no
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19406 esac
19409 solaris*)
19410 case $cc_basename in
19411 CC*)
19412 # Sun C++ 4.2, 5.x and Centerline C++
19413 archive_cmds_need_lc_CXX=yes
19414 no_undefined_flag_CXX=' -zdefs'
19415 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19416 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19417 $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'
19419 hardcode_libdir_flag_spec_CXX='-R$libdir'
19420 hardcode_shlibpath_var_CXX=no
19421 case $host_os in
19422 solaris2.[0-5] | solaris2.[0-5].*) ;;
19424 # The compiler driver will combine and reorder linker options,
19425 # but understands `-z linker_flag'.
19426 # Supported since Solaris 2.6 (maybe 2.5.1?)
19427 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19429 esac
19430 link_all_deplibs_CXX=yes
19432 output_verbose_link_cmd='func_echo_all'
19434 # Archives containing C++ object files must be created using
19435 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19436 # necessary to make sure instantiated templates are included
19437 # in the archive.
19438 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19440 gcx*)
19441 # Green Hills C++ Compiler
19442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19444 # The C++ compiler must be used to create the archive.
19445 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19448 # GNU C++ compiler with Solaris linker
19449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19450 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19451 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19452 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19453 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19454 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19456 # Commands to make compiler produce verbose output that lists
19457 # what "hidden" libraries, object files and flags are used when
19458 # linking a shared library.
19459 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19460 else
19461 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19462 # platform.
19463 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19464 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19465 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19470 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19473 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19474 case $host_os in
19475 solaris2.[0-5] | solaris2.[0-5].*) ;;
19477 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19479 esac
19482 esac
19485 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19486 no_undefined_flag_CXX='${wl}-z,text'
19487 archive_cmds_need_lc_CXX=no
19488 hardcode_shlibpath_var_CXX=no
19489 runpath_var='LD_RUN_PATH'
19491 case $cc_basename in
19492 CC*)
19493 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19494 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19497 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19498 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19500 esac
19503 sysv5* | sco3.2v5* | sco5v6*)
19504 # Note: We can NOT use -z defs as we might desire, because we do not
19505 # link with -lc, and that would cause any symbols used from libc to
19506 # always be unresolved, which means just about no library would
19507 # ever link correctly. If we're not using GNU ld we use -z text
19508 # though, which does catch some bad symbols but isn't as heavy-handed
19509 # as -z defs.
19510 no_undefined_flag_CXX='${wl}-z,text'
19511 allow_undefined_flag_CXX='${wl}-z,nodefs'
19512 archive_cmds_need_lc_CXX=no
19513 hardcode_shlibpath_var_CXX=no
19514 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19515 hardcode_libdir_separator_CXX=':'
19516 link_all_deplibs_CXX=yes
19517 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19518 runpath_var='LD_RUN_PATH'
19520 case $cc_basename in
19521 CC*)
19522 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19525 '"$old_archive_cmds_CXX"
19526 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19527 '"$reload_cmds_CXX"
19530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533 esac
19536 tandem*)
19537 case $cc_basename in
19538 NCC*)
19539 # NonStop-UX NCC 3.20
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19547 esac
19550 vxworks*)
19551 # FIXME: insert proper C++ library support
19552 ld_shlibs_CXX=no
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19559 esac
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19562 $as_echo "$ld_shlibs_CXX" >&6; }
19563 test "$ld_shlibs_CXX" = no && can_build_shared=no
19565 GCC_CXX="$GXX"
19566 LD_CXX="$LD"
19568 ## CAVEAT EMPTOR:
19569 ## There is no encapsulation within the following macros, do not change
19570 ## the running order or otherwise move them around unless you know exactly
19571 ## what you are doing...
19572 # Dependencies to place before and after the object being linked:
19573 predep_objects_CXX=
19574 postdep_objects_CXX=
19575 predeps_CXX=
19576 postdeps_CXX=
19577 compiler_lib_search_path_CXX=
19579 cat > conftest.$ac_ext <<_LT_EOF
19580 class Foo
19582 public:
19583 Foo (void) { a = 0; }
19584 private:
19585 int a;
19587 _LT_EOF
19589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19590 (eval $ac_compile) 2>&5
19591 ac_status=$?
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; then
19594 # Parse the compiler output and extract the necessary
19595 # objects, libraries and library flags.
19597 # Sentinel used to keep track of whether or not we are before
19598 # the conftest object file.
19599 pre_test_object_deps_done=no
19601 for p in `eval "$output_verbose_link_cmd"`; do
19602 case $p in
19604 -L* | -R* | -l*)
19605 # Some compilers place space between "-{L,R}" and the path.
19606 # Remove the space.
19607 if test $p = "-L" ||
19608 test $p = "-R"; then
19609 prev=$p
19610 continue
19611 else
19612 prev=
19615 if test "$pre_test_object_deps_done" = no; then
19616 case $p in
19617 -L* | -R*)
19618 # Internal compiler library paths should come after those
19619 # provided the user. The postdeps already come after the
19620 # user supplied libs so there is no need to process them.
19621 if test -z "$compiler_lib_search_path_CXX"; then
19622 compiler_lib_search_path_CXX="${prev}${p}"
19623 else
19624 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19627 # The "-l" case would never come before the object being
19628 # linked, so don't bother handling this case.
19629 esac
19630 else
19631 if test -z "$postdeps_CXX"; then
19632 postdeps_CXX="${prev}${p}"
19633 else
19634 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19639 *.$objext)
19640 # This assumes that the test object file only shows up
19641 # once in the compiler output.
19642 if test "$p" = "conftest.$objext"; then
19643 pre_test_object_deps_done=yes
19644 continue
19647 if test "$pre_test_object_deps_done" = no; then
19648 if test -z "$predep_objects_CXX"; then
19649 predep_objects_CXX="$p"
19650 else
19651 predep_objects_CXX="$predep_objects_CXX $p"
19653 else
19654 if test -z "$postdep_objects_CXX"; then
19655 postdep_objects_CXX="$p"
19656 else
19657 postdep_objects_CXX="$postdep_objects_CXX $p"
19662 *) ;; # Ignore the rest.
19664 esac
19665 done
19667 # Clean up.
19668 rm -f a.out a.exe
19669 else
19670 echo "libtool.m4: error: problem compiling CXX test program"
19673 $RM -f confest.$objext
19675 # PORTME: override above test on systems where it is broken
19676 case $host_os in
19677 interix[3-9]*)
19678 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19679 # hack all around it, let's just trust "g++" to DTRT.
19680 predep_objects_CXX=
19681 postdep_objects_CXX=
19682 postdeps_CXX=
19685 linux*)
19686 case `$CC -V 2>&1 | sed 5q` in
19687 *Sun\ C*)
19688 # Sun C++ 5.9
19690 # The more standards-conforming stlport4 library is
19691 # incompatible with the Cstd library. Avoid specifying
19692 # it if it's in CXXFLAGS. Ignore libCrun as
19693 # -library=stlport4 depends on it.
19694 case " $CXX $CXXFLAGS " in
19695 *" -library=stlport4 "*)
19696 solaris_use_stlport4=yes
19698 esac
19700 if test "$solaris_use_stlport4" != yes; then
19701 postdeps_CXX='-library=Cstd -library=Crun'
19704 esac
19707 solaris*)
19708 case $cc_basename in
19709 CC*)
19710 # The more standards-conforming stlport4 library is
19711 # incompatible with the Cstd library. Avoid specifying
19712 # it if it's in CXXFLAGS. Ignore libCrun as
19713 # -library=stlport4 depends on it.
19714 case " $CXX $CXXFLAGS " in
19715 *" -library=stlport4 "*)
19716 solaris_use_stlport4=yes
19718 esac
19720 # Adding this requires a known-good setup of shared libraries for
19721 # Sun compiler versions before 5.6, else PIC objects from an old
19722 # archive will be linked into the output, leading to subtle bugs.
19723 if test "$solaris_use_stlport4" != yes; then
19724 postdeps_CXX='-library=Cstd -library=Crun'
19727 esac
19729 esac
19732 case " $postdeps_CXX " in
19733 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19734 esac
19735 compiler_lib_search_dirs_CXX=
19736 if test -n "${compiler_lib_search_path_CXX}"; then
19737 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19770 lt_prog_compiler_wl_CXX=
19771 lt_prog_compiler_pic_CXX=
19772 lt_prog_compiler_static_CXX=
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19777 # C++ specific cases for pic, static, wl, etc.
19778 if test "$GXX" = yes; then
19779 lt_prog_compiler_wl_CXX='-Wl,'
19780 lt_prog_compiler_static_CXX='-static'
19782 case $host_os in
19783 aix*)
19784 # All AIX code is PIC.
19785 if test "$host_cpu" = ia64; then
19786 # AIX 5 now supports IA64 processor
19787 lt_prog_compiler_static_CXX='-Bstatic'
19789 lt_prog_compiler_pic_CXX='-fPIC'
19792 amigaos*)
19793 case $host_cpu in
19794 powerpc)
19795 # see comment about AmigaOS4 .so support
19796 lt_prog_compiler_pic_CXX='-fPIC'
19798 m68k)
19799 # FIXME: we need at least 68020 code to build shared libraries, but
19800 # adding the `-m68020' flag to GCC prevents building anything better,
19801 # like `-m68040'.
19802 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19804 esac
19807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19808 # PIC is the default for these OSes.
19810 mingw* | cygwin* | os2* | pw32* | cegcc*)
19811 # This hack is so that the source file can tell whether it is being
19812 # built for inclusion in a dll (and should export symbols for example).
19813 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19814 # (--disable-auto-import) libraries
19815 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19817 darwin* | rhapsody*)
19818 # PIC is the default on this platform
19819 # Common symbols not allowed in MH_DYLIB files
19820 lt_prog_compiler_pic_CXX='-fno-common'
19822 *djgpp*)
19823 # DJGPP does not support shared libraries at all
19824 lt_prog_compiler_pic_CXX=
19826 haiku*)
19827 # PIC is the default for Haiku.
19828 # The "-static" flag exists, but is broken.
19829 lt_prog_compiler_static_CXX=
19831 interix[3-9]*)
19832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19833 # Instead, we relocate shared libraries at runtime.
19835 sysv4*MP*)
19836 if test -d /usr/nec; then
19837 lt_prog_compiler_pic_CXX=-Kconform_pic
19840 hpux*)
19841 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19842 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19843 # sets the default TLS model and affects inlining.
19844 case $host_cpu in
19845 hppa*64*)
19848 lt_prog_compiler_pic_CXX='-fPIC'
19850 esac
19852 *qnx* | *nto*)
19853 # QNX uses GNU C++, but need to define -shared option too, otherwise
19854 # it will coredump.
19855 lt_prog_compiler_pic_CXX='-fPIC -shared'
19858 lt_prog_compiler_pic_CXX='-fPIC'
19860 esac
19861 else
19862 case $host_os in
19863 aix[4-9]*)
19864 # All AIX code is PIC.
19865 if test "$host_cpu" = ia64; then
19866 # AIX 5 now supports IA64 processor
19867 lt_prog_compiler_static_CXX='-Bstatic'
19868 else
19869 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19872 chorus*)
19873 case $cc_basename in
19874 cxch68*)
19875 # Green Hills C++ Compiler
19876 # _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"
19878 esac
19880 dgux*)
19881 case $cc_basename in
19882 ec++*)
19883 lt_prog_compiler_pic_CXX='-KPIC'
19885 ghcx*)
19886 # Green Hills C++ Compiler
19887 lt_prog_compiler_pic_CXX='-pic'
19891 esac
19893 freebsd* | dragonfly*)
19894 # FreeBSD uses GNU C++
19896 hpux9* | hpux10* | hpux11*)
19897 case $cc_basename in
19898 CC*)
19899 lt_prog_compiler_wl_CXX='-Wl,'
19900 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19901 if test "$host_cpu" != ia64; then
19902 lt_prog_compiler_pic_CXX='+Z'
19905 aCC*)
19906 lt_prog_compiler_wl_CXX='-Wl,'
19907 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19908 case $host_cpu in
19909 hppa*64*|ia64*)
19910 # +Z the default
19913 lt_prog_compiler_pic_CXX='+Z'
19915 esac
19919 esac
19921 interix*)
19922 # This is c89, which is MS Visual C++ (no shared libs)
19923 # Anyone wants to do a port?
19925 irix5* | irix6* | nonstopux*)
19926 case $cc_basename in
19927 CC*)
19928 lt_prog_compiler_wl_CXX='-Wl,'
19929 lt_prog_compiler_static_CXX='-non_shared'
19930 # CC pic flag -KPIC is the default.
19934 esac
19936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19937 case $cc_basename in
19938 KCC*)
19939 # KAI C++ Compiler
19940 lt_prog_compiler_wl_CXX='--backend -Wl,'
19941 lt_prog_compiler_pic_CXX='-fPIC'
19943 ecpc* )
19944 # old Intel C++ for x86_64 which still supported -KPIC.
19945 lt_prog_compiler_wl_CXX='-Wl,'
19946 lt_prog_compiler_pic_CXX='-KPIC'
19947 lt_prog_compiler_static_CXX='-static'
19949 icpc* )
19950 # Intel C++, used to be incompatible with GCC.
19951 # ICC 10 doesn't accept -KPIC any more.
19952 lt_prog_compiler_wl_CXX='-Wl,'
19953 lt_prog_compiler_pic_CXX='-fPIC'
19954 lt_prog_compiler_static_CXX='-static'
19956 pgCC* | pgcpp*)
19957 # Portland Group C++ compiler
19958 lt_prog_compiler_wl_CXX='-Wl,'
19959 lt_prog_compiler_pic_CXX='-fpic'
19960 lt_prog_compiler_static_CXX='-Bstatic'
19962 cxx*)
19963 # Compaq C++
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX=
19967 lt_prog_compiler_static_CXX='-non_shared'
19969 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19970 # IBM XL 8.0, 9.0 on PPC and BlueGene
19971 lt_prog_compiler_wl_CXX='-Wl,'
19972 lt_prog_compiler_pic_CXX='-qpic'
19973 lt_prog_compiler_static_CXX='-qstaticlink'
19976 case `$CC -V 2>&1 | sed 5q` in
19977 *Sun\ C*)
19978 # Sun C++ 5.9
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19981 lt_prog_compiler_wl_CXX='-Qoption ld '
19983 esac
19985 esac
19987 lynxos*)
19989 m88k*)
19991 mvs*)
19992 case $cc_basename in
19993 cxx*)
19994 lt_prog_compiler_pic_CXX='-W c,exportall'
19998 esac
20000 netbsd*)
20002 *qnx* | *nto*)
20003 # QNX uses GNU C++, but need to define -shared option too, otherwise
20004 # it will coredump.
20005 lt_prog_compiler_pic_CXX='-fPIC -shared'
20007 osf3* | osf4* | osf5*)
20008 case $cc_basename in
20009 KCC*)
20010 lt_prog_compiler_wl_CXX='--backend -Wl,'
20012 RCC*)
20013 # Rational C++ 2.4.1
20014 lt_prog_compiler_pic_CXX='-pic'
20016 cxx*)
20017 # Digital/Compaq C++
20018 lt_prog_compiler_wl_CXX='-Wl,'
20019 # Make sure the PIC flag is empty. It appears that all Alpha
20020 # Linux and Compaq Tru64 Unix objects are PIC.
20021 lt_prog_compiler_pic_CXX=
20022 lt_prog_compiler_static_CXX='-non_shared'
20026 esac
20028 psos*)
20030 solaris*)
20031 case $cc_basename in
20032 CC*)
20033 # Sun C++ 4.2, 5.x and Centerline C++
20034 lt_prog_compiler_pic_CXX='-KPIC'
20035 lt_prog_compiler_static_CXX='-Bstatic'
20036 lt_prog_compiler_wl_CXX='-Qoption ld '
20038 gcx*)
20039 # Green Hills C++ Compiler
20040 lt_prog_compiler_pic_CXX='-PIC'
20044 esac
20046 sunos4*)
20047 case $cc_basename in
20048 CC*)
20049 # Sun C++ 4.x
20050 lt_prog_compiler_pic_CXX='-pic'
20051 lt_prog_compiler_static_CXX='-Bstatic'
20053 lcc*)
20054 # Lucid
20055 lt_prog_compiler_pic_CXX='-pic'
20059 esac
20061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20062 case $cc_basename in
20063 CC*)
20064 lt_prog_compiler_wl_CXX='-Wl,'
20065 lt_prog_compiler_pic_CXX='-KPIC'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20068 esac
20070 tandem*)
20071 case $cc_basename in
20072 NCC*)
20073 # NonStop-UX NCC 3.20
20074 lt_prog_compiler_pic_CXX='-KPIC'
20078 esac
20080 vxworks*)
20083 lt_prog_compiler_can_build_shared_CXX=no
20085 esac
20088 case $host_os in
20089 # For platforms which do not support PIC, -DPIC is meaningless:
20090 *djgpp*)
20091 lt_prog_compiler_pic_CXX=
20094 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20096 esac
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20098 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20103 # Check to make sure the PIC flag actually works.
20105 if test -n "$lt_prog_compiler_pic_CXX"; then
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20108 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20109 $as_echo_n "(cached) " >&6
20110 else
20111 lt_cv_prog_compiler_pic_works_CXX=no
20112 ac_outfile=conftest.$ac_objext
20113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20114 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20115 # Insert the option either (1) after the last *FLAGS variable, or
20116 # (2) before a word containing "conftest.", or (3) at the end.
20117 # Note that $ac_compile itself does not contain backslashes and begins
20118 # with a dollar sign (not a hyphen), so the echo should work correctly.
20119 # The option is referenced via a variable to avoid confusing sed.
20120 lt_compile=`echo "$ac_compile" | $SED \
20121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20123 -e 's:$: $lt_compiler_flag:'`
20124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20125 (eval "$lt_compile" 2>conftest.err)
20126 ac_status=$?
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 if (exit $ac_status) && test -s "$ac_outfile"; then
20130 # The compiler can only warn and ignore the option if not recognized
20131 # So say no if there are warnings other than the usual output.
20132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20135 lt_cv_prog_compiler_pic_works_CXX=yes
20138 $RM conftest*
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20142 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20144 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20145 case $lt_prog_compiler_pic_CXX in
20146 "" | " "*) ;;
20147 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20148 esac
20149 else
20150 lt_prog_compiler_pic_CXX=
20151 lt_prog_compiler_can_build_shared_CXX=no
20159 # Check to make sure the static flag actually works.
20161 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20164 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20165 $as_echo_n "(cached) " >&6
20166 else
20167 lt_cv_prog_compiler_static_works_CXX=no
20168 save_LDFLAGS="$LDFLAGS"
20169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20170 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20172 # The linker can only warn and ignore the option if not recognized
20173 # So say no if there are warnings
20174 if test -s conftest.err; then
20175 # Append any errors to the config.log.
20176 cat conftest.err 1>&5
20177 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20179 if diff conftest.exp conftest.er2 >/dev/null; then
20180 lt_cv_prog_compiler_static_works_CXX=yes
20182 else
20183 lt_cv_prog_compiler_static_works_CXX=yes
20186 $RM -r conftest*
20187 LDFLAGS="$save_LDFLAGS"
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20191 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20193 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20195 else
20196 lt_prog_compiler_static_CXX=
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20204 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 lt_cv_prog_compiler_c_o_CXX=no
20208 $RM -r conftest 2>/dev/null
20209 mkdir conftest
20210 cd conftest
20211 mkdir out
20212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20214 lt_compiler_flag="-o out/conftest2.$ac_objext"
20215 # Insert the option either (1) after the last *FLAGS variable, or
20216 # (2) before a word containing "conftest.", or (3) at the end.
20217 # Note that $ac_compile itself does not contain backslashes and begins
20218 # with a dollar sign (not a hyphen), so the echo should work correctly.
20219 lt_compile=`echo "$ac_compile" | $SED \
20220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20222 -e 's:$: $lt_compiler_flag:'`
20223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20224 (eval "$lt_compile" 2>out/conftest.err)
20225 ac_status=$?
20226 cat out/conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20229 then
20230 # The compiler can only warn and ignore the option if not recognized
20231 # So say no if there are warnings
20232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20235 lt_cv_prog_compiler_c_o_CXX=yes
20238 chmod u+w . 2>&5
20239 $RM conftest*
20240 # SGI C++ compiler will create directory out/ii_files/ for
20241 # template instantiation
20242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20243 $RM out/* && rmdir out
20244 cd ..
20245 $RM -r conftest
20246 $RM conftest*
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20250 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20255 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20256 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20257 $as_echo_n "(cached) " >&6
20258 else
20259 lt_cv_prog_compiler_c_o_CXX=no
20260 $RM -r conftest 2>/dev/null
20261 mkdir conftest
20262 cd conftest
20263 mkdir out
20264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20266 lt_compiler_flag="-o out/conftest2.$ac_objext"
20267 # Insert the option either (1) after the last *FLAGS variable, or
20268 # (2) before a word containing "conftest.", or (3) at the end.
20269 # Note that $ac_compile itself does not contain backslashes and begins
20270 # with a dollar sign (not a hyphen), so the echo should work correctly.
20271 lt_compile=`echo "$ac_compile" | $SED \
20272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20274 -e 's:$: $lt_compiler_flag:'`
20275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20276 (eval "$lt_compile" 2>out/conftest.err)
20277 ac_status=$?
20278 cat out/conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20281 then
20282 # The compiler can only warn and ignore the option if not recognized
20283 # So say no if there are warnings
20284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20287 lt_cv_prog_compiler_c_o_CXX=yes
20290 chmod u+w . 2>&5
20291 $RM conftest*
20292 # SGI C++ compiler will create directory out/ii_files/ for
20293 # template instantiation
20294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20295 $RM out/* && rmdir out
20296 cd ..
20297 $RM -r conftest
20298 $RM conftest*
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20302 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20307 hard_links="nottested"
20308 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20309 # do not overwrite the value of need_locks provided by the user
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20311 $as_echo_n "checking if we can lock with hard links... " >&6; }
20312 hard_links=yes
20313 $RM conftest*
20314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20315 touch conftest.a
20316 ln conftest.a conftest.b 2>&5 || hard_links=no
20317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20319 $as_echo "$hard_links" >&6; }
20320 if test "$hard_links" = no; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20322 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20323 need_locks=warn
20325 else
20326 need_locks=no
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20334 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20335 case $host_os in
20336 aix[4-9]*)
20337 # If we're using GNU nm, then we don't want the "-C" option.
20338 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20339 # Also, AIX nm treats weak defined symbols like other global defined
20340 # symbols, whereas GNU nm marks them as "W".
20341 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20342 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'
20343 else
20344 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'
20347 pw32*)
20348 export_symbols_cmds_CXX="$ltdll_cmds"
20350 cygwin* | mingw* | cegcc*)
20351 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'
20354 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20356 esac
20357 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20360 $as_echo "$ld_shlibs_CXX" >&6; }
20361 test "$ld_shlibs_CXX" = no && can_build_shared=no
20363 with_gnu_ld_CXX=$with_gnu_ld
20371 # Do we need to explicitly link libc?
20373 case "x$archive_cmds_need_lc_CXX" in
20374 x|xyes)
20375 # Assume -lc should be added
20376 archive_cmds_need_lc_CXX=yes
20378 if test "$enable_shared" = yes && test "$GCC" = yes; then
20379 case $archive_cmds_CXX in
20380 *'~'*)
20381 # FIXME: we may have to deal with multi-command sequences.
20383 '$CC '*)
20384 # Test whether the compiler implicitly links with -lc since on some
20385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20386 # to ld, don't add -lc before -lgcc.
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20388 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20389 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20390 $as_echo_n "(cached) " >&6
20391 else
20392 $RM conftest*
20393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20396 (eval $ac_compile) 2>&5
20397 ac_status=$?
20398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20399 test $ac_status = 0; } 2>conftest.err; then
20400 soname=conftest
20401 lib=conftest
20402 libobjs=conftest.$ac_objext
20403 deplibs=
20404 wl=$lt_prog_compiler_wl_CXX
20405 pic_flag=$lt_prog_compiler_pic_CXX
20406 compiler_flags=-v
20407 linker_flags=-v
20408 verstring=
20409 output_objdir=.
20410 libname=conftest
20411 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20412 allow_undefined_flag_CXX=
20413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20414 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20415 ac_status=$?
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; }
20418 then
20419 lt_cv_archive_cmds_need_lc_CXX=no
20420 else
20421 lt_cv_archive_cmds_need_lc_CXX=yes
20423 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20424 else
20425 cat conftest.err 1>&5
20427 $RM conftest*
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20431 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20432 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20434 esac
20437 esac
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20503 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20505 library_names_spec=
20506 libname_spec='lib$name'
20507 soname_spec=
20508 shrext_cmds=".so"
20509 postinstall_cmds=
20510 postuninstall_cmds=
20511 finish_cmds=
20512 finish_eval=
20513 shlibpath_var=
20514 shlibpath_overrides_runpath=unknown
20515 version_type=none
20516 dynamic_linker="$host_os ld.so"
20517 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20518 need_lib_prefix=unknown
20519 hardcode_into_libs=no
20521 # when you set need_version to no, make sure it does not cause -set_version
20522 # flags to be left without arguments
20523 need_version=unknown
20525 case $host_os in
20526 aix3*)
20527 version_type=linux
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20529 shlibpath_var=LIBPATH
20531 # AIX 3 has no versioning support, so we append a major version to the name.
20532 soname_spec='${libname}${release}${shared_ext}$major'
20535 aix[4-9]*)
20536 version_type=linux
20537 need_lib_prefix=no
20538 need_version=no
20539 hardcode_into_libs=yes
20540 if test "$host_cpu" = ia64; then
20541 # AIX 5 supports IA64
20542 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20543 shlibpath_var=LD_LIBRARY_PATH
20544 else
20545 # With GCC up to 2.95.x, collect2 would create an import file
20546 # for dependence libraries. The import file would start with
20547 # the line `#! .'. This would cause the generated library to
20548 # depend on `.', always an invalid library. This was fixed in
20549 # development snapshots of GCC prior to 3.0.
20550 case $host_os in
20551 aix4 | aix4.[01] | aix4.[01].*)
20552 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20553 echo ' yes '
20554 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20556 else
20557 can_build_shared=no
20560 esac
20561 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20562 # soname into executable. Probably we can add versioning support to
20563 # collect2, so additional links can be useful in future.
20564 if test "$aix_use_runtimelinking" = yes; then
20565 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20566 # instead of lib<name>.a to let people know that these are not
20567 # typical AIX shared libraries.
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 else
20570 # We preserve .a as extension for shared libraries through AIX4.2
20571 # and later when we are not doing run time linking.
20572 library_names_spec='${libname}${release}.a $libname.a'
20573 soname_spec='${libname}${release}${shared_ext}$major'
20575 shlibpath_var=LIBPATH
20579 amigaos*)
20580 case $host_cpu in
20581 powerpc)
20582 # Since July 2007 AmigaOS4 officially supports .so libraries.
20583 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20586 m68k)
20587 library_names_spec='$libname.ixlibrary $libname.a'
20588 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20589 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'
20591 esac
20594 beos*)
20595 library_names_spec='${libname}${shared_ext}'
20596 dynamic_linker="$host_os ld.so"
20597 shlibpath_var=LIBRARY_PATH
20600 bsdi[45]*)
20601 version_type=linux
20602 need_version=no
20603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604 soname_spec='${libname}${release}${shared_ext}$major'
20605 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20608 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20609 # the default ld.so.conf also contains /usr/contrib/lib and
20610 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20611 # libtool to hard-code these into programs
20614 cygwin* | mingw* | pw32* | cegcc*)
20615 version_type=windows
20616 shrext_cmds=".dll"
20617 need_version=no
20618 need_lib_prefix=no
20620 case $GCC,$host_os in
20621 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20622 library_names_spec='$libname.dll.a'
20623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20624 postinstall_cmds='base_file=`basename \${file}`~
20625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20626 dldir=$destdir/`dirname \$dlpath`~
20627 test -d \$dldir || mkdir -p \$dldir~
20628 $install_prog $dir/$dlname \$dldir/$dlname~
20629 chmod a+x \$dldir/$dlname~
20630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20634 dlpath=$dir/\$dldll~
20635 $RM \$dlpath'
20636 shlibpath_overrides_runpath=yes
20638 case $host_os in
20639 cygwin*)
20640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20644 mingw* | cegcc*)
20645 # MinGW DLLs use traditional 'lib' prefix
20646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20648 pw32*)
20649 # pw32 DLLs use 'pw' prefix rather than 'lib'
20650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20652 esac
20656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20658 esac
20659 dynamic_linker='Win32 ld.exe'
20660 # FIXME: first we should search . and the directory the executable is in
20661 shlibpath_var=PATH
20664 darwin* | rhapsody*)
20665 dynamic_linker="$host_os dyld"
20666 version_type=darwin
20667 need_lib_prefix=no
20668 need_version=no
20669 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20670 soname_spec='${libname}${release}${major}$shared_ext'
20671 shlibpath_overrides_runpath=yes
20672 shlibpath_var=DYLD_LIBRARY_PATH
20673 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20675 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20678 dgux*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20687 freebsd* | dragonfly*)
20688 # DragonFly does not have aout. When/if they implement a new
20689 # versioning mechanism, adjust this.
20690 if test -x /usr/bin/objformat; then
20691 objformat=`/usr/bin/objformat`
20692 else
20693 case $host_os in
20694 freebsd[23].*) objformat=aout ;;
20695 *) objformat=elf ;;
20696 esac
20698 version_type=freebsd-$objformat
20699 case $version_type in
20700 freebsd-elf*)
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20702 need_version=no
20703 need_lib_prefix=no
20705 freebsd-*)
20706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20707 need_version=yes
20709 esac
20710 shlibpath_var=LD_LIBRARY_PATH
20711 case $host_os in
20712 freebsd2.*)
20713 shlibpath_overrides_runpath=yes
20715 freebsd3.[01]* | freebsdelf3.[01]*)
20716 shlibpath_overrides_runpath=yes
20717 hardcode_into_libs=yes
20719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20721 shlibpath_overrides_runpath=no
20722 hardcode_into_libs=yes
20724 *) # from 4.6 on, and DragonFly
20725 shlibpath_overrides_runpath=yes
20726 hardcode_into_libs=yes
20728 esac
20731 gnu*)
20732 version_type=linux
20733 need_lib_prefix=no
20734 need_version=no
20735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 shlibpath_var=LD_LIBRARY_PATH
20738 hardcode_into_libs=yes
20741 haiku*)
20742 version_type=linux
20743 need_lib_prefix=no
20744 need_version=no
20745 dynamic_linker="$host_os runtime_loader"
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 shlibpath_var=LIBRARY_PATH
20749 shlibpath_overrides_runpath=yes
20750 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20751 hardcode_into_libs=yes
20754 hpux9* | hpux10* | hpux11*)
20755 # Give a soname corresponding to the major version so that dld.sl refuses to
20756 # link against other versions.
20757 version_type=sunos
20758 need_lib_prefix=no
20759 need_version=no
20760 case $host_cpu in
20761 ia64*)
20762 shrext_cmds='.so'
20763 hardcode_into_libs=yes
20764 dynamic_linker="$host_os dld.so"
20765 shlibpath_var=LD_LIBRARY_PATH
20766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 if test "X$HPUX_IA64_MODE" = X32; then
20770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20771 else
20772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20776 hppa*64*)
20777 shrext_cmds='.sl'
20778 hardcode_into_libs=yes
20779 dynamic_linker="$host_os dld.sl"
20780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20783 soname_spec='${libname}${release}${shared_ext}$major'
20784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20788 shrext_cmds='.sl'
20789 dynamic_linker="$host_os dld.sl"
20790 shlibpath_var=SHLIB_PATH
20791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20793 soname_spec='${libname}${release}${shared_ext}$major'
20795 esac
20796 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20797 postinstall_cmds='chmod 555 $lib'
20798 # or fails outright, so override atomically:
20799 install_override_mode=555
20802 interix[3-9]*)
20803 version_type=linux
20804 need_lib_prefix=no
20805 need_version=no
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath=no
20811 hardcode_into_libs=yes
20814 irix5* | irix6* | nonstopux*)
20815 case $host_os in
20816 nonstopux*) version_type=nonstopux ;;
20818 if test "$lt_cv_prog_gnu_ld" = yes; then
20819 version_type=linux
20820 else
20821 version_type=irix
20822 fi ;;
20823 esac
20824 need_lib_prefix=no
20825 need_version=no
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20828 case $host_os in
20829 irix5* | nonstopux*)
20830 libsuff= shlibsuff=
20833 case $LD in # libtool.m4 will add one of these switches to LD
20834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20835 libsuff= shlibsuff= libmagic=32-bit;;
20836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20837 libsuff=32 shlibsuff=N32 libmagic=N32;;
20838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20840 *) libsuff= shlibsuff= libmagic=never-match;;
20841 esac
20843 esac
20844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20845 shlibpath_overrides_runpath=no
20846 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20847 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20848 hardcode_into_libs=yes
20851 # No shared lib support for Linux oldld, aout, or coff.
20852 linux*oldld* | linux*aout* | linux*coff*)
20853 dynamic_linker=no
20856 # This must be Linux ELF.
20857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20858 version_type=linux
20859 need_lib_prefix=no
20860 need_version=no
20861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20862 soname_spec='${libname}${release}${shared_ext}$major'
20863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20864 shlibpath_var=LD_LIBRARY_PATH
20865 shlibpath_overrides_runpath=no
20867 # Some binutils ld are patched to set DT_RUNPATH
20868 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20870 else
20871 lt_cv_shlibpath_overrides_runpath=no
20872 save_LDFLAGS=$LDFLAGS
20873 save_libdir=$libdir
20874 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20875 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20880 main ()
20884 return 0;
20886 _ACEOF
20887 if ac_fn_cxx_try_link "$LINENO"; then :
20888 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20889 lt_cv_shlibpath_overrides_runpath=yes
20892 rm -f core conftest.err conftest.$ac_objext \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LDFLAGS=$save_LDFLAGS
20895 libdir=$save_libdir
20899 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20901 # This implies no fast_install, which is unacceptable.
20902 # Some rework will be needed to allow for fast_install
20903 # before this can be enabled.
20904 hardcode_into_libs=yes
20906 # Append ld.so.conf contents to the search path
20907 if test -f /etc/ld.so.conf; then
20908 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' ' '`
20909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20912 # We used to test for /lib/ld.so.1 and disable shared libraries on
20913 # powerpc, because MkLinux only supported shared libraries with the
20914 # GNU dynamic linker. Since this was broken with cross compilers,
20915 # most powerpc-linux boxes support dynamic linking these days and
20916 # people can always --disable-shared, the test was removed, and we
20917 # assume the GNU/Linux dynamic linker is in use.
20918 dynamic_linker='GNU/Linux ld.so'
20921 netbsd*)
20922 version_type=sunos
20923 need_lib_prefix=no
20924 need_version=no
20925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20927 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20928 dynamic_linker='NetBSD (a.out) ld.so'
20929 else
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 dynamic_linker='NetBSD ld.elf_so'
20934 shlibpath_var=LD_LIBRARY_PATH
20935 shlibpath_overrides_runpath=yes
20936 hardcode_into_libs=yes
20939 newsos6)
20940 version_type=linux
20941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942 shlibpath_var=LD_LIBRARY_PATH
20943 shlibpath_overrides_runpath=yes
20946 *nto* | *qnx*)
20947 version_type=qnx
20948 need_lib_prefix=no
20949 need_version=no
20950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20951 soname_spec='${libname}${release}${shared_ext}$major'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath=no
20954 hardcode_into_libs=yes
20955 dynamic_linker='ldqnx.so'
20958 openbsd*)
20959 version_type=sunos
20960 sys_lib_dlsearch_path_spec="/usr/lib"
20961 need_lib_prefix=no
20962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20963 case $host_os in
20964 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20965 *) need_version=no ;;
20966 esac
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20971 case $host_os in
20972 openbsd2.[89] | openbsd2.[89].*)
20973 shlibpath_overrides_runpath=no
20976 shlibpath_overrides_runpath=yes
20978 esac
20979 else
20980 shlibpath_overrides_runpath=yes
20984 os2*)
20985 libname_spec='$name'
20986 shrext_cmds=".dll"
20987 need_lib_prefix=no
20988 library_names_spec='$libname${shared_ext} $libname.a'
20989 dynamic_linker='OS/2 ld.exe'
20990 shlibpath_var=LIBPATH
20993 osf3* | osf4* | osf5*)
20994 version_type=osf
20995 need_lib_prefix=no
20996 need_version=no
20997 soname_spec='${libname}${release}${shared_ext}$major'
20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20999 shlibpath_var=LD_LIBRARY_PATH
21000 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21001 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21004 rdos*)
21005 dynamic_linker=no
21008 solaris*)
21009 version_type=linux
21010 need_lib_prefix=no
21011 need_version=no
21012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21013 soname_spec='${libname}${release}${shared_ext}$major'
21014 shlibpath_var=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath=yes
21016 hardcode_into_libs=yes
21017 # ldd complains unless libraries are executable
21018 postinstall_cmds='chmod +x $lib'
21021 sunos4*)
21022 version_type=sunos
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21024 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath=yes
21027 if test "$with_gnu_ld" = yes; then
21028 need_lib_prefix=no
21030 need_version=yes
21033 sysv4 | sysv4.3*)
21034 version_type=linux
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 soname_spec='${libname}${release}${shared_ext}$major'
21037 shlibpath_var=LD_LIBRARY_PATH
21038 case $host_vendor in
21039 sni)
21040 shlibpath_overrides_runpath=no
21041 need_lib_prefix=no
21042 runpath_var=LD_RUN_PATH
21044 siemens)
21045 need_lib_prefix=no
21047 motorola)
21048 need_lib_prefix=no
21049 need_version=no
21050 shlibpath_overrides_runpath=no
21051 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21053 esac
21056 sysv4*MP*)
21057 if test -d /usr/nec ;then
21058 version_type=linux
21059 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21060 soname_spec='$libname${shared_ext}.$major'
21061 shlibpath_var=LD_LIBRARY_PATH
21065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21066 version_type=freebsd-elf
21067 need_lib_prefix=no
21068 need_version=no
21069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21070 soname_spec='${libname}${release}${shared_ext}$major'
21071 shlibpath_var=LD_LIBRARY_PATH
21072 shlibpath_overrides_runpath=yes
21073 hardcode_into_libs=yes
21074 if test "$with_gnu_ld" = yes; then
21075 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21076 else
21077 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21078 case $host_os in
21079 sco3.2v5*)
21080 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21082 esac
21084 sys_lib_dlsearch_path_spec='/usr/lib'
21087 tpf*)
21088 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21089 version_type=linux
21090 need_lib_prefix=no
21091 need_version=no
21092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21093 shlibpath_var=LD_LIBRARY_PATH
21094 shlibpath_overrides_runpath=no
21095 hardcode_into_libs=yes
21098 uts4*)
21099 version_type=linux
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21106 dynamic_linker=no
21108 esac
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21110 $as_echo "$dynamic_linker" >&6; }
21111 test "$dynamic_linker" = no && can_build_shared=no
21113 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21114 if test "$GCC" = yes; then
21115 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21118 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21119 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21121 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21122 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21163 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21164 hardcode_action_CXX=
21165 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21166 test -n "$runpath_var_CXX" ||
21167 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21169 # We can hardcode non-existent directories.
21170 if test "$hardcode_direct_CXX" != no &&
21171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21172 # have to relink, otherwise we might link with an installed library
21173 # when we should be linking with a yet-to-be-installed one
21174 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21175 test "$hardcode_minus_L_CXX" != no; then
21176 # Linking always hardcodes the temporary library directory.
21177 hardcode_action_CXX=relink
21178 else
21179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21180 hardcode_action_CXX=immediate
21182 else
21183 # We cannot hardcode anything, or else we can only hardcode existing
21184 # directories.
21185 hardcode_action_CXX=unsupported
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21188 $as_echo "$hardcode_action_CXX" >&6; }
21190 if test "$hardcode_action_CXX" = relink ||
21191 test "$inherit_rpath_CXX" = yes; then
21192 # Fast installation is not supported
21193 enable_fast_install=no
21194 elif test "$shlibpath_overrides_runpath" = yes ||
21195 test "$enable_shared" = no; then
21196 # Fast installation is not necessary
21197 enable_fast_install=needless
21206 fi # test -n "$compiler"
21208 CC=$lt_save_CC
21209 LDCXX=$LD
21210 LD=$lt_save_LD
21211 GCC=$lt_save_GCC
21212 with_gnu_ld=$lt_save_with_gnu_ld
21213 lt_cv_path_LDCXX=$lt_cv_path_LD
21214 lt_cv_path_LD=$lt_save_path_LD
21215 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21216 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21217 fi # test "$_lt_caught_CXX_error" != yes
21219 ac_ext=c
21220 ac_cpp='$CPP $CPPFLAGS'
21221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21240 # Only expand once:
21246 # Identify the assembler which will work hand-in-glove with the newly
21247 # built GCC, so that we can examine its features. This is the assembler
21248 # which will be driven by the driver program.
21250 # If build != host, and we aren't building gas in-tree, we identify a
21251 # build->target assembler and hope that it will have the same features
21252 # as the host->target assembler we'll be using.
21253 gcc_cv_gas_major_version=
21254 gcc_cv_gas_minor_version=
21255 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21257 if test "${gcc_cv_as+set}" = set; then :
21259 else
21261 if test -x "$DEFAULT_ASSEMBLER"; then
21262 gcc_cv_as="$DEFAULT_ASSEMBLER"
21263 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21264 && test -f ../gas/Makefile \
21265 && test x$build = x$host; then
21266 gcc_cv_as=../gas/as-new$build_exeext
21267 elif test -x as$build_exeext; then
21268 # Build using assembler in the current directory.
21269 gcc_cv_as=./as$build_exeext
21270 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21271 gcc_cv_as="$AS_FOR_TARGET"
21272 else
21273 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21274 set dummy $AS_FOR_TARGET; ac_word=$2
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21276 $as_echo_n "checking for $ac_word... " >&6; }
21277 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21278 $as_echo_n "(cached) " >&6
21279 else
21280 case $gcc_cv_as in
21281 [\\/]* | ?:[\\/]*)
21282 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21286 for as_dir in $PATH
21288 IFS=$as_save_IFS
21289 test -z "$as_dir" && as_dir=.
21290 for ac_exec_ext in '' $ac_executable_extensions; do
21291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21292 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21294 break 2
21296 done
21297 done
21298 IFS=$as_save_IFS
21301 esac
21303 gcc_cv_as=$ac_cv_path_gcc_cv_as
21304 if test -n "$gcc_cv_as"; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21306 $as_echo "$gcc_cv_as" >&6; }
21307 else
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21309 $as_echo "no" >&6; }
21316 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21318 case "$ORIGINAL_AS_FOR_TARGET" in
21319 ./as | ./as$build_exeext) ;;
21320 *) ac_config_files="$ac_config_files as:exec-tool.in"
21322 esac
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21325 $as_echo_n "checking what assembler to use... " >&6; }
21326 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21327 # Single tree build which includes gas. We want to prefer it
21328 # over whatever linker top-level may have detected, since
21329 # we'll use what we're building after installation anyway.
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21331 $as_echo "newly built gas" >&6; }
21332 in_tree_gas=yes
21333 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21334 for f in $gcc_cv_as_bfd_srcdir/configure \
21335 $gcc_cv_as_gas_srcdir/configure \
21336 $gcc_cv_as_gas_srcdir/configure.in \
21337 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21338 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21339 if test x$gcc_cv_gas_version != x; then
21340 break
21342 done
21343 case $gcc_cv_gas_version in
21344 VERSION=[0-9]*) ;;
21345 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21346 esac
21347 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21348 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21349 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21350 case $gcc_cv_gas_patch_version in
21351 "") gcc_cv_gas_patch_version="0" ;;
21352 esac
21353 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21354 + $gcc_cv_gas_minor_version \) \* 1000 \
21355 + $gcc_cv_gas_patch_version`
21357 in_tree_gas_is_elf=no
21358 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21359 || (grep 'obj_format = multi' ../gas/Makefile \
21360 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21361 then
21362 in_tree_gas_is_elf=yes
21364 else
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21366 $as_echo "$gcc_cv_as" >&6; }
21367 in_tree_gas=no
21370 # Identify the linker which will work hand-in-glove with the newly
21371 # built GCC, so that we can examine its features. This is the linker
21372 # which will be driven by the driver program.
21374 # If build != host, and we aren't building gas in-tree, we identify a
21375 # build->target linker and hope that it will have the same features
21376 # as the host->target linker we'll be using.
21377 gcc_cv_gld_major_version=
21378 gcc_cv_gld_minor_version=
21379 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21380 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21382 if test "${gcc_cv_ld+set}" = set; then :
21384 else
21386 if test -x "$DEFAULT_LINKER"; then
21387 gcc_cv_ld="$DEFAULT_LINKER"
21388 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21389 && test -f ../ld/Makefile \
21390 && test x$build = x$host; then
21391 gcc_cv_ld=../ld/ld-new$build_exeext
21392 elif test -x collect-ld$build_exeext; then
21393 # Build using linker in the current directory.
21394 gcc_cv_ld=./collect-ld$build_exeext
21395 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21396 gcc_cv_ld="$LD_FOR_TARGET"
21397 else
21398 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21399 set dummy $LD_FOR_TARGET; ac_word=$2
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21401 $as_echo_n "checking for $ac_word... " >&6; }
21402 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21403 $as_echo_n "(cached) " >&6
21404 else
21405 case $gcc_cv_ld in
21406 [\\/]* | ?:[\\/]*)
21407 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21411 for as_dir in $PATH
21413 IFS=$as_save_IFS
21414 test -z "$as_dir" && as_dir=.
21415 for ac_exec_ext in '' $ac_executable_extensions; do
21416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21417 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21419 break 2
21421 done
21422 done
21423 IFS=$as_save_IFS
21426 esac
21428 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21429 if test -n "$gcc_cv_ld"; then
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21431 $as_echo "$gcc_cv_ld" >&6; }
21432 else
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21434 $as_echo "no" >&6; }
21441 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21442 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21443 # if the PLUGIN_LD is set ld-new, just have it as ld
21444 # as that is the installed named.
21445 if test x$PLUGIN_LD_SUFFIX = xld-new \
21446 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21447 PLUGIN_LD_SUFFIX=ld
21450 # Check whether --with-plugin-ld was given.
21451 if test "${with_plugin_ld+set}" = set; then :
21452 withval=$with_plugin_ld; if test x"$withval" != x; then
21453 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21454 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21460 cat >>confdefs.h <<_ACEOF
21461 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21462 _ACEOF
21465 # Check to see if we are using gold instead of ld
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21467 $as_echo_n "checking whether we are using gold... " >&6; }
21468 ld_is_gold=no
21469 if test x$gcc_cv_ld != x; then
21470 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21471 | grep "GNU gold" > /dev/null; then
21472 ld_is_gold=yes
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21476 $as_echo "$ld_is_gold" >&6; }
21478 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21480 case "$ORIGINAL_LD_FOR_TARGET" in
21481 ./collect-ld | ./collect-ld$build_exeext) ;;
21482 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21484 esac
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21487 $as_echo_n "checking what linker to use... " >&6; }
21488 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21489 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21490 # Single tree build which includes ld. We want to prefer it
21491 # over whatever linker top-level may have detected, since
21492 # we'll use what we're building after installation anyway.
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21494 $as_echo "newly built ld" >&6; }
21495 in_tree_ld=yes
21496 in_tree_ld_is_elf=no
21497 if (grep 'EMUL = .*elf' ../ld/Makefile \
21498 || grep 'EMUL = .*linux' ../ld/Makefile \
21499 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21500 in_tree_ld_is_elf=yes
21501 elif test "$ld_is_gold" = yes; then
21502 in_tree_ld_is_elf=yes
21504 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
21506 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21507 if test x$gcc_cv_gld_version != x; then
21508 break
21510 done
21511 case $gcc_cv_gld_version in
21512 VERSION=[0-9]*) ;;
21513 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21514 esac
21515 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21516 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21517 else
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21519 $as_echo "$gcc_cv_ld" >&6; }
21520 in_tree_ld=no
21523 # Figure out what nm we will be using.
21524 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21525 if test "${gcc_cv_nm+set}" = set; then :
21527 else
21529 if test -f $gcc_cv_binutils_srcdir/configure.in \
21530 && test -f ../binutils/Makefile \
21531 && test x$build = x$host; then
21532 gcc_cv_nm=../binutils/nm-new$build_exeext
21533 elif test -x nm$build_exeext; then
21534 gcc_cv_nm=./nm$build_exeext
21535 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21536 gcc_cv_nm="$NM_FOR_TARGET"
21537 else
21538 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21539 set dummy $NM_FOR_TARGET; ac_word=$2
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21541 $as_echo_n "checking for $ac_word... " >&6; }
21542 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21545 case $gcc_cv_nm in
21546 [\\/]* | ?:[\\/]*)
21547 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21551 for as_dir in $PATH
21553 IFS=$as_save_IFS
21554 test -z "$as_dir" && as_dir=.
21555 for ac_exec_ext in '' $ac_executable_extensions; do
21556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21557 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21559 break 2
21561 done
21562 done
21563 IFS=$as_save_IFS
21566 esac
21568 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21569 if test -n "$gcc_cv_nm"; then
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21571 $as_echo "$gcc_cv_nm" >&6; }
21572 else
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21582 $as_echo_n "checking what nm to use... " >&6; }
21583 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21584 # Single tree build which includes binutils.
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21586 $as_echo "newly built nm" >&6; }
21587 in_tree_nm=yes
21588 else
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21590 $as_echo "$gcc_cv_nm" >&6; }
21591 in_tree_nm=no
21594 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21596 case "$ORIGINAL_NM_FOR_TARGET" in
21597 ./nm | ./nm$build_exeext) ;;
21598 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21600 esac
21603 # Figure out what objdump we will be using.
21604 if test "${gcc_cv_objdump+set}" = set; then :
21606 else
21608 if test -f $gcc_cv_binutils_srcdir/configure.in \
21609 && test -f ../binutils/Makefile \
21610 && test x$build = x$host; then
21611 # Single tree build which includes binutils.
21612 gcc_cv_objdump=../binutils/objdump$build_exeext
21613 elif test -x objdump$build_exeext; then
21614 gcc_cv_objdump=./objdump$build_exeext
21615 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21616 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21617 else
21618 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21619 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621 $as_echo_n "checking for $ac_word... " >&6; }
21622 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21623 $as_echo_n "(cached) " >&6
21624 else
21625 case $gcc_cv_objdump in
21626 [\\/]* | ?:[\\/]*)
21627 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21631 for as_dir in $PATH
21633 IFS=$as_save_IFS
21634 test -z "$as_dir" && as_dir=.
21635 for ac_exec_ext in '' $ac_executable_extensions; do
21636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21637 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21639 break 2
21641 done
21642 done
21643 IFS=$as_save_IFS
21646 esac
21648 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21649 if test -n "$gcc_cv_objdump"; then
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21651 $as_echo "$gcc_cv_objdump" >&6; }
21652 else
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21654 $as_echo "no" >&6; }
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21662 $as_echo_n "checking what objdump to use... " >&6; }
21663 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21664 # Single tree build which includes binutils.
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21666 $as_echo "newly built objdump" >&6; }
21667 elif test x$gcc_cv_objdump = x; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21669 $as_echo "not found" >&6; }
21670 else
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21672 $as_echo "$gcc_cv_objdump" >&6; }
21675 # Figure out what readelf we will be using.
21676 if test "${gcc_cv_readelf+set}" = set; then :
21678 else
21680 if test -f $gcc_cv_binutils_srcdir/configure.in \
21681 && test -f ../binutils/Makefile \
21682 && test x$build = x$host; then
21683 # Single tree build which includes binutils.
21684 gcc_cv_readelf=../binutils/readelf$build_exeext
21685 elif test -x readelf$build_exeext; then
21686 gcc_cv_readelf=./readelf$build_exeext
21687 else
21688 # Extract the first word of "readelf", so it can be a program name with args.
21689 set dummy readelf; ac_word=$2
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21691 $as_echo_n "checking for $ac_word... " >&6; }
21692 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 case $gcc_cv_readelf in
21696 [\\/]* | ?:[\\/]*)
21697 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21701 for as_dir in $PATH
21703 IFS=$as_save_IFS
21704 test -z "$as_dir" && as_dir=.
21705 for ac_exec_ext in '' $ac_executable_extensions; do
21706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21707 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21709 break 2
21711 done
21712 done
21713 IFS=$as_save_IFS
21716 esac
21718 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21719 if test -n "$gcc_cv_readelf"; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21721 $as_echo "$gcc_cv_readelf" >&6; }
21722 else
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21724 $as_echo "no" >&6; }
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21732 $as_echo_n "checking what readelf to use... " >&6; }
21733 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21734 # Single tree build which includes binutils.
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21736 $as_echo "newly built readelf" >&6; }
21737 elif test x$gcc_cv_readelf = x; then
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21739 $as_echo "not found" >&6; }
21740 else
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21742 $as_echo "$gcc_cv_readelf" >&6; }
21745 # Figure out what assembler alignment features are present.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21747 $as_echo_n "checking assembler flags... " >&6; }
21748 if test "${gcc_cv_as_flags+set}" = set; then :
21749 $as_echo_n "(cached) " >&6
21750 else
21751 case "$target" in
21752 i[34567]86-*-linux*)
21753 gcc_cv_as_flags="--32"
21755 powerpc*-*-darwin*)
21756 gcc_cv_as_flags="-arch ppc"
21759 gcc_cv_as_flags=" "
21761 esac
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21764 $as_echo "$gcc_cv_as_flags" >&6; }
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21767 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21768 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21770 else
21771 gcc_cv_as_balign_and_p2align=no
21772 if test $in_tree_gas = yes; then
21773 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21774 then gcc_cv_as_balign_and_p2align=yes
21776 elif test x$gcc_cv_as != x; then
21777 $as_echo '.balign 4
21778 .p2align 2' > conftest.s
21779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21781 (eval $ac_try) 2>&5
21782 ac_status=$?
21783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21784 test $ac_status = 0; }; }
21785 then
21786 gcc_cv_as_balign_and_p2align=yes
21787 else
21788 echo "configure: failed program was" >&5
21789 cat conftest.s >&5
21791 rm -f conftest.o conftest.s
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21795 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21796 if test $gcc_cv_as_balign_and_p2align = yes; then
21798 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21803 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21804 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21806 else
21807 gcc_cv_as_max_skip_p2align=no
21808 if test $in_tree_gas = yes; then
21809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21810 then gcc_cv_as_max_skip_p2align=yes
21812 elif test x$gcc_cv_as != x; then
21813 $as_echo '.p2align 4,,7' > conftest.s
21814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21819 test $ac_status = 0; }; }
21820 then
21821 gcc_cv_as_max_skip_p2align=yes
21822 else
21823 echo "configure: failed program was" >&5
21824 cat conftest.s >&5
21826 rm -f conftest.o conftest.s
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21830 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21831 if test $gcc_cv_as_max_skip_p2align = yes; then
21833 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21838 $as_echo_n "checking assembler for .literal16... " >&6; }
21839 if test "${gcc_cv_as_literal16+set}" = set; then :
21840 $as_echo_n "(cached) " >&6
21841 else
21842 gcc_cv_as_literal16=no
21843 if test $in_tree_gas = yes; then
21844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21845 then gcc_cv_as_literal16=yes
21847 elif test x$gcc_cv_as != x; then
21848 $as_echo '.literal16' > conftest.s
21849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21851 (eval $ac_try) 2>&5
21852 ac_status=$?
21853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21854 test $ac_status = 0; }; }
21855 then
21856 gcc_cv_as_literal16=yes
21857 else
21858 echo "configure: failed program was" >&5
21859 cat conftest.s >&5
21861 rm -f conftest.o conftest.s
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21865 $as_echo "$gcc_cv_as_literal16" >&6; }
21866 if test $gcc_cv_as_literal16 = yes; then
21868 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21873 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21874 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21875 $as_echo_n "(cached) " >&6
21876 else
21877 gcc_cv_as_subsection_m1=no
21878 if test $in_tree_gas = yes; then
21879 if test $in_tree_gas_is_elf = yes \
21880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21881 then gcc_cv_as_subsection_m1=yes
21883 elif test x$gcc_cv_as != x; then
21884 $as_echo 'conftest_label1: .word 0
21885 .subsection -1
21886 conftest_label2: .word 0
21887 .previous' > conftest.s
21888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21893 test $ac_status = 0; }; }
21894 then
21895 if test x$gcc_cv_nm != x; then
21896 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21897 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21898 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21899 then :
21900 else gcc_cv_as_subsection_m1=yes
21902 rm -f conftest.nm1 conftest.nm2
21904 else
21905 echo "configure: failed program was" >&5
21906 cat conftest.s >&5
21908 rm -f conftest.o conftest.s
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21912 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21913 if test $gcc_cv_as_subsection_m1 = yes; then
21915 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21920 $as_echo_n "checking assembler for .weak... " >&6; }
21921 if test "${gcc_cv_as_weak+set}" = set; then :
21922 $as_echo_n "(cached) " >&6
21923 else
21924 gcc_cv_as_weak=no
21925 if test $in_tree_gas = yes; then
21926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21927 then gcc_cv_as_weak=yes
21929 elif test x$gcc_cv_as != x; then
21930 $as_echo ' .weak foobar' > conftest.s
21931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21936 test $ac_status = 0; }; }
21937 then
21938 gcc_cv_as_weak=yes
21939 else
21940 echo "configure: failed program was" >&5
21941 cat conftest.s >&5
21943 rm -f conftest.o conftest.s
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21947 $as_echo "$gcc_cv_as_weak" >&6; }
21948 if test $gcc_cv_as_weak = yes; then
21950 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21955 $as_echo_n "checking assembler for .weakref... " >&6; }
21956 if test "${gcc_cv_as_weakref+set}" = set; then :
21957 $as_echo_n "(cached) " >&6
21958 else
21959 gcc_cv_as_weakref=no
21960 if test $in_tree_gas = yes; then
21961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21962 then gcc_cv_as_weakref=yes
21964 elif test x$gcc_cv_as != x; then
21965 $as_echo ' .weakref foobar, barfnot' > conftest.s
21966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; }; }
21972 then
21973 gcc_cv_as_weakref=yes
21974 else
21975 echo "configure: failed program was" >&5
21976 cat conftest.s >&5
21978 rm -f conftest.o conftest.s
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21982 $as_echo "$gcc_cv_as_weakref" >&6; }
21983 if test $gcc_cv_as_weakref = yes; then
21985 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21990 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21991 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21992 $as_echo_n "(cached) " >&6
21993 else
21994 gcc_cv_as_nsubspa_comdat=no
21995 if test $in_tree_gas = yes; then
21996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21997 then gcc_cv_as_nsubspa_comdat=yes
21999 elif test x$gcc_cv_as != x; then
22000 $as_echo ' .SPACE $TEXT$
22001 .NSUBSPA $CODE$,COMDAT' > conftest.s
22002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; }
22008 then
22009 gcc_cv_as_nsubspa_comdat=yes
22010 else
22011 echo "configure: failed program was" >&5
22012 cat conftest.s >&5
22014 rm -f conftest.o conftest.s
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22018 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22019 if test $gcc_cv_as_nsubspa_comdat = yes; then
22021 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22025 # .hidden needs to be supported in both the assembler and the linker,
22026 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22027 # This is irritatingly difficult to feature test for; we have to check the
22028 # date string after the version number. If we've got an in-tree
22029 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22030 # to be safe.
22031 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22033 $as_echo_n "checking assembler for .hidden... " >&6; }
22034 if test "${gcc_cv_as_hidden+set}" = set; then :
22035 $as_echo_n "(cached) " >&6
22036 else
22037 gcc_cv_as_hidden=no
22038 if test $in_tree_gas = yes; then
22039 if test $in_tree_gas_is_elf = yes \
22040 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22041 then gcc_cv_as_hidden=yes
22043 elif test x$gcc_cv_as != x; then
22044 $as_echo ' .hidden foobar
22045 foobar:' > conftest.s
22046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22051 test $ac_status = 0; }; }
22052 then
22054 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22055 # STV_HIDDEN, so disable .hidden support if so.
22056 case "${target}" in
22057 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22058 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22059 cat > conftest.s <<EOF
22060 .globl hidden
22061 .hidden hidden
22062 hidden:
22063 .globl default
22064 .set default,hidden
22066 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22067 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22068 grep '\.hidden default' > /dev/null; then
22069 gcc_cv_as_hidden=no
22070 else
22071 gcc_cv_as_hidden=yes
22073 else
22074 # Assume bug is present if objdump is missing.
22075 gcc_cv_as_hidden=no
22079 gcc_cv_as_hidden=yes
22081 esac
22082 else
22083 echo "configure: failed program was" >&5
22084 cat conftest.s >&5
22086 rm -f conftest.o conftest.s
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22090 $as_echo "$gcc_cv_as_hidden" >&6; }
22092 case "${target}" in
22093 *-*-darwin*)
22094 # Darwin as has some visibility support, though with a different syntax.
22095 gcc_cv_as_hidden=yes
22097 esac
22099 # gnu_indirect_function type is an extension proposed at
22100 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22101 # selection of function implementation
22102 # Check whether --enable-gnu-indirect-function was given.
22103 if test "${enable_gnu_indirect_function+set}" = set; then :
22104 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22105 yes | no) ;;
22106 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22108 esac
22109 else
22110 enable_gnu_indirect_function="$default_gnu_indirect_function"
22113 if test x$enable_gnu_indirect_function = xyes; then
22115 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22119 if test $in_tree_ld != yes ; then
22120 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22121 if echo "$ld_ver" | grep GNU > /dev/null; then
22122 if test x"$ld_is_gold" = xyes; then
22123 # GNU gold --version looks like this:
22125 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22127 # We extract the binutils version which is more familiar and specific
22128 # than the gold version.
22129 ld_vers=`echo $ld_ver | sed -n \
22130 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22131 else
22132 # GNU ld --version looks like this:
22134 # GNU ld (GNU Binutils) 2.21.51.20110225
22135 ld_vers=`echo $ld_ver | sed -n \
22136 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22138 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'`
22139 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22140 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22141 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22142 else
22143 case "${target}" in
22144 *-*-solaris2*)
22145 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22146 # format.
22148 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22149 # /usr/ccs/bin/ld has been configured.
22150 ld_ver=`$gcc_cv_ld -V 2>&1`
22151 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22152 ld_vers=`echo $ld_ver | sed -n \
22153 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22154 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22155 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22158 esac
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22163 $as_echo_n "checking linker for .hidden support... " >&6; }
22164 if test "${gcc_cv_ld_hidden+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22166 else
22167 if test $in_tree_ld = yes ; then
22168 gcc_cv_ld_hidden=no
22169 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 \
22170 && test $in_tree_ld_is_elf = yes; then
22171 gcc_cv_ld_hidden=yes
22173 else
22174 gcc_cv_ld_hidden=yes
22175 if test x"$ld_is_gold" = xyes; then
22177 elif echo "$ld_ver" | grep GNU > /dev/null; then
22178 case "${target}" in
22179 mmix-knuth-mmixware)
22180 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22181 gcc_cv_ld_hidden=no
22183 esac
22184 if test 0"$ld_date" -lt 20020404; then
22185 if test -n "$ld_date"; then
22186 # If there was date string, but was earlier than 2002-04-04, fail
22187 gcc_cv_ld_hidden=no
22188 elif test -z "$ld_vers"; then
22189 # If there was no date string nor ld version number, something is wrong
22190 gcc_cv_ld_hidden=no
22191 else
22192 test -z "$ld_vers_patch" && ld_vers_patch=0
22193 if test "$ld_vers_major" -lt 2; then
22194 gcc_cv_ld_hidden=no
22195 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22196 gcc_cv_ld_hidden="no"
22197 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22198 gcc_cv_ld_hidden=no
22202 else
22203 case "${target}" in
22204 *-*-darwin*)
22205 # Darwin ld has some visibility support.
22206 gcc_cv_ld_hidden=yes
22208 hppa64*-*-hpux* | ia64*-*-hpux*)
22209 gcc_cv_ld_hidden=yes
22211 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22212 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22213 # .symbolic was only added in Solaris 9 12/02.
22214 gcc_cv_ld_hidden=yes
22217 gcc_cv_ld_hidden=no
22219 esac
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22224 $as_echo "$gcc_cv_ld_hidden" >&6; }
22225 libgcc_visibility=no
22228 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22229 libgcc_visibility=yes
22231 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22236 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22237 gcc_cv_ld_ro_rw_mix=unknown
22238 if test $in_tree_ld = yes ; then
22239 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 \
22240 && test $in_tree_ld_is_elf = yes; then
22241 gcc_cv_ld_ro_rw_mix=read-write
22243 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22244 echo '.section myfoosect, "a"' > conftest1.s
22245 echo '.section myfoosect, "aw"' > conftest2.s
22246 echo '.byte 1' >> conftest2.s
22247 echo '.section myfoosect, "a"' > conftest3.s
22248 echo '.byte 0' >> conftest3.s
22249 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22250 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22251 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22252 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22253 conftest2.o conftest3.o > /dev/null 2>&1; then
22254 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22255 | sed -e '/myfoosect/!d' -e N`
22256 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22257 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22258 gcc_cv_ld_ro_rw_mix=read-only
22259 else
22260 gcc_cv_ld_ro_rw_mix=read-write
22264 rm -f conftest.* conftest[123].*
22266 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22268 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22272 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22274 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22275 case "${target}" in
22276 *-*-solaris2*)
22278 # Solaris 2 ld -V output looks like this for a regular version:
22280 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22282 # but test versions add stuff at the end:
22284 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22286 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22287 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22288 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22289 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22290 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22291 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22294 esac
22297 # Check whether --enable-initfini-array was given.
22298 if test "${enable_initfini_array+set}" = set; then :
22299 enableval=$enable_initfini_array;
22300 else
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22303 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22304 if test "${gcc_cv_initfini_array+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22308 case "${target}" in
22309 ia64-*)
22310 if test "$cross_compiling" = yes; then :
22311 gcc_cv_initfini_array=no
22312 else
22313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22316 #ifndef __ELF__
22317 #error Not an ELF OS
22318 #endif
22319 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22320 if it can be used. */
22321 static int x = -1;
22322 int main (void) { return x; }
22323 int foo (void) { x = 0; }
22324 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22326 _ACEOF
22327 if ac_fn_c_try_run "$LINENO"; then :
22328 gcc_cv_initfini_array=yes
22329 else
22330 gcc_cv_initfini_array=no
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22333 conftest.$ac_objext conftest.beam conftest.$ac_ext
22337 gcc_cv_initfini_array=no
22338 if test $in_tree_ld = yes ; then
22339 if test "$gcc_cv_gld_major_version" -eq 2 \
22340 -a "$gcc_cv_gld_minor_version" -ge 22 \
22341 -o "$gcc_cv_gld_major_version" -gt 2 \
22342 && test $in_tree_ld_is_elf = yes; then
22343 gcc_cv_initfini_array=yes
22345 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22346 cat > conftest.s <<\EOF
22347 .section .dtors,"a",%progbits
22348 .balign 4
22349 .byte 'A', 'A', 'A', 'A'
22350 .section .ctors,"a",%progbits
22351 .balign 4
22352 .byte 'B', 'B', 'B', 'B'
22353 .section .fini_array.65530,"a",%progbits
22354 .balign 4
22355 .byte 'C', 'C', 'C', 'C'
22356 .section .init_array.65530,"a",%progbits
22357 .balign 4
22358 .byte 'D', 'D', 'D', 'D'
22359 .section .dtors.64528,"a",%progbits
22360 .balign 4
22361 .byte 'E', 'E', 'E', 'E'
22362 .section .ctors.64528,"a",%progbits
22363 .balign 4
22364 .byte 'F', 'F', 'F', 'F'
22365 .section .fini_array.01005,"a",%progbits
22366 .balign 4
22367 .byte 'G', 'G', 'G', 'G'
22368 .section .init_array.01005,"a",%progbits
22369 .balign 4
22370 .byte 'H', 'H', 'H', 'H'
22371 .text
22372 .globl _start
22373 _start:
22375 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22376 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22377 && $gcc_cv_objdump -s -j .init_array conftest \
22378 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22379 && $gcc_cv_objdump -s -j .fini_array conftest \
22380 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22381 gcc_cv_initfini_array=yes
22383 rm -f conftest conftest.*
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22388 #ifndef __ELF__
22389 # error Not an ELF OS
22390 #endif
22391 #include <stdlib.h>
22392 #if defined __GLIBC_PREREQ
22393 # if __GLIBC_PREREQ (2, 4)
22394 # else
22395 # error GLIBC 2.4 required
22396 # endif
22397 #else
22398 # if defined __sun__ && defined __svr4__
22399 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22400 # else
22401 # error The C library not known to support .init_array/.fini_array
22402 # endif
22403 #endif
22405 _ACEOF
22406 if ac_fn_c_try_cpp "$LINENO"; then :
22408 else
22409 gcc_cv_initfini_array=no
22411 rm -f conftest.err conftest.$ac_ext;;
22412 esac
22413 else
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22415 $as_echo_n "checking cross compile... guessing... " >&6; }
22416 gcc_cv_initfini_array=no
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22420 $as_echo "$gcc_cv_initfini_array" >&6; }
22421 enable_initfini_array=$gcc_cv_initfini_array
22425 if test $enable_initfini_array = yes; then
22427 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22431 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22433 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22434 if test "${gcc_cv_as_leb128+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 gcc_cv_as_leb128=no
22438 if test $in_tree_gas = yes; then
22439 if test $in_tree_gas_is_elf = yes \
22440 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22441 then gcc_cv_as_leb128=yes
22443 elif test x$gcc_cv_as != x; then
22444 $as_echo ' .data
22445 .uleb128 L2 - L1
22447 .uleb128 1280
22448 .sleb128 -1010
22449 L2:' > conftest.s
22450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452 (eval $ac_try) 2>&5
22453 ac_status=$?
22454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455 test $ac_status = 0; }; }
22456 then
22457 # GAS versions before 2.11 do not support uleb128,
22458 # despite appearing to.
22459 # ??? There exists an elf-specific test that will crash
22460 # the assembler. Perhaps it's better to figure out whether
22461 # arbitrary sections are supported and try the test.
22462 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22463 if echo "$as_ver" | grep GNU > /dev/null; then
22464 as_vers=`echo $as_ver | sed -n \
22465 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22466 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22467 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22468 if test $as_major -eq 2 && test $as_minor -lt 11
22469 then :
22470 else gcc_cv_as_leb128=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22481 $as_echo "$gcc_cv_as_leb128" >&6; }
22482 if test $gcc_cv_as_leb128 = yes; then
22484 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22488 # Check if we have assembler support for unwind directives.
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22490 $as_echo_n "checking assembler for cfi directives... " >&6; }
22491 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 gcc_cv_as_cfi_directive=no
22495 if test x$gcc_cv_as != x; then
22496 $as_echo ' .text
22497 .cfi_startproc
22498 .cfi_offset 0, 0
22499 .cfi_same_value 1
22500 .cfi_def_cfa 1, 2
22501 .cfi_escape 1, 2, 3, 4, 5
22502 .cfi_endproc' > conftest.s
22503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22509 then
22510 case "$target" in
22511 *-*-solaris*)
22512 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22513 # read-only and read-write sections, we need to make sure that the
22514 # assembler used emits read-write .eh_frame sections.
22515 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22516 if test "x$gcc_cv_objdump" != x; then
22517 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22518 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22519 gcc_cv_as_cfi_directive=no
22520 else
22521 case "$target" in
22522 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22523 # On Solaris/x86, make sure that GCC and gas agree on using
22524 # read-only .eh_frame sections for 64-bit.
22525 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22526 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22527 sed -e /.eh_frame/!d -e N | \
22528 grep READONLY > /dev/null; then
22529 gcc_cv_as_cfi_directive=yes
22530 else
22531 gcc_cv_as_cfi_directive=no
22535 gcc_cv_as_cfi_directive=yes
22537 esac
22539 else
22540 # no objdump, err on the side of caution
22541 gcc_cv_as_cfi_directive=no
22543 else
22544 gcc_cv_as_cfi_directive=yes
22547 *-*-*)
22548 gcc_cv_as_cfi_directive=yes
22550 esac
22551 else
22552 echo "configure: failed program was" >&5
22553 cat conftest.s >&5
22555 rm -f conftest.o conftest.s
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22559 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22561 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22563 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22564 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22565 $as_echo_n "(cached) " >&6
22566 else
22567 gcc_cv_as_cfi_advance_working=no
22568 if test x$gcc_cv_as != x; then
22569 $as_echo ' .text
22570 .cfi_startproc
22571 .cfi_adjust_cfa_offset 64
22572 .skip 75040, 0
22573 .cfi_adjust_cfa_offset 128
22574 .cfi_endproc' > conftest.s
22575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22581 then
22583 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22584 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22585 gcc_cv_as_cfi_advance_working=yes
22588 else
22589 echo "configure: failed program was" >&5
22590 cat conftest.s >&5
22592 rm -f conftest.o conftest.s
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22596 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22598 else
22599 # no objdump, err on the side of caution
22600 gcc_cv_as_cfi_advance_working=no
22604 cat >>confdefs.h <<_ACEOF
22605 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22606 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22607 _ACEOF
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22612 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22613 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 gcc_cv_as_cfi_personality_directive=no
22617 if test x$gcc_cv_as != x; then
22618 $as_echo ' .text
22619 .cfi_startproc
22620 .cfi_personality 0, symbol
22621 .cfi_endproc' > conftest.s
22622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22627 test $ac_status = 0; }; }
22628 then
22629 gcc_cv_as_cfi_personality_directive=yes
22630 else
22631 echo "configure: failed program was" >&5
22632 cat conftest.s >&5
22634 rm -f conftest.o conftest.s
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22638 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22643 then echo 1; else echo 0; fi`
22644 _ACEOF
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22648 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22649 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22651 else
22652 gcc_cv_as_cfi_sections_directive=no
22653 if test x$gcc_cv_as != x; then
22654 $as_echo ' .text
22655 .cfi_sections .debug_frame, .eh_frame
22656 .cfi_startproc
22657 .cfi_endproc' > conftest.s
22658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22664 then
22665 case $target_os in
22666 win32 | pe | cygwin* | mingw32* | uwin*)
22667 # Need to check that we generated the correct relocation for the
22668 # .debug_frame section. This was fixed for binutils 2.21.
22669 gcc_cv_as_cfi_sections_directive=no
22670 if test "x$gcc_cv_objdump" != x; then
22671 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22672 grep secrel > /dev/null; then
22673 gcc_cv_as_cfi_sections_directive=yes
22678 gcc_cv_as_cfi_sections_directive=yes
22680 esac
22681 else
22682 echo "configure: failed program was" >&5
22683 cat conftest.s >&5
22685 rm -f conftest.o conftest.s
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22689 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22695 then echo 1; else echo 0; fi`
22696 _ACEOF
22699 # GAS versions up to and including 2.11.0 may mis-optimize
22700 # .eh_frame data.
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22702 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22703 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 gcc_cv_as_eh_frame=no
22707 if test $in_tree_gas = yes; then
22708 if test $in_tree_gas_is_elf = yes \
22709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22710 then gcc_cv_as_eh_frame=yes
22712 elif test x$gcc_cv_as != x; then
22713 $as_echo ' .text
22714 .LFB1:
22715 .4byte 0
22716 .L1:
22717 .4byte 0
22718 .LFE1:
22719 .section .eh_frame,"aw",@progbits
22720 __FRAME_BEGIN__:
22721 .4byte .LECIE1-.LSCIE1
22722 .LSCIE1:
22723 .4byte 0x0
22724 .byte 0x1
22725 .ascii "z\0"
22726 .byte 0x1
22727 .byte 0x78
22728 .byte 0x1a
22729 .byte 0x0
22730 .byte 0x4
22731 .4byte 1
22732 .p2align 1
22733 .LECIE1:
22734 .LSFDE1:
22735 .4byte .LEFDE1-.LASFDE1
22736 .LASFDE1:
22737 .4byte .LASFDE1-__FRAME_BEGIN__
22738 .4byte .LFB1
22739 .4byte .LFE1-.LFB1
22740 .byte 0x4
22741 .4byte .LFE1-.LFB1
22742 .byte 0x4
22743 .4byte .L1-.LFB1
22744 .LEFDE1:' > conftest.s
22745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22750 test $ac_status = 0; }; }
22751 then
22752 cat > conftest.lit <<EOF
22753 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22754 0010 01000000 12000000 18000000 00000000 ................
22755 0020 08000000 04080000 0044 .........D
22757 cat > conftest.big <<EOF
22758 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22759 0010 00000001 00000012 00000018 00000000 ................
22760 0020 00000008 04000000 0844 .........D
22762 # If the assembler didn't choke, and we can objdump,
22763 # and we got the correct data, then succeed.
22764 # The text in the here-document typically retains its unix-style line
22765 # endings, while the output of objdump will use host line endings.
22766 # Therefore, use diff -b for the comparisons.
22767 if test x$gcc_cv_objdump != x \
22768 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22769 | tail -3 > conftest.got \
22770 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22771 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22772 then
22773 gcc_cv_as_eh_frame=yes
22774 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22779 test $ac_status = 0; }; }; then
22780 gcc_cv_as_eh_frame=buggy
22781 else
22782 # Uh oh, what do we do now?
22783 gcc_cv_as_eh_frame=no
22785 else
22786 echo "configure: failed program was" >&5
22787 cat conftest.s >&5
22789 rm -f conftest.o conftest.s
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22793 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22796 if test $gcc_cv_as_eh_frame = buggy; then
22798 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22803 $as_echo_n "checking assembler for section merging support... " >&6; }
22804 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22805 $as_echo_n "(cached) " >&6
22806 else
22807 gcc_cv_as_shf_merge=no
22808 if test $in_tree_gas = yes; then
22809 if test $in_tree_gas_is_elf = yes \
22810 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22811 then gcc_cv_as_shf_merge=yes
22813 elif test x$gcc_cv_as != x; then
22814 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22817 (eval $ac_try) 2>&5
22818 ac_status=$?
22819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22820 test $ac_status = 0; }; }
22821 then
22822 gcc_cv_as_shf_merge=yes
22823 else
22824 echo "configure: failed program was" >&5
22825 cat conftest.s >&5
22827 rm -f conftest.o conftest.s
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22831 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22833 if test $gcc_cv_as_shf_merge = no; then
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22835 $as_echo_n "checking assembler for section merging support... " >&6; }
22836 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22838 else
22839 gcc_cv_as_shf_merge=no
22840 if test $in_tree_gas = yes; then
22841 if test $in_tree_gas_is_elf = yes \
22842 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22843 then gcc_cv_as_shf_merge=yes
22845 elif test x$gcc_cv_as != x; then
22846 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22852 test $ac_status = 0; }; }
22853 then
22854 gcc_cv_as_shf_merge=yes
22855 else
22856 echo "configure: failed program was" >&5
22857 cat conftest.s >&5
22859 rm -f conftest.o conftest.s
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22863 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22867 cat >>confdefs.h <<_ACEOF
22868 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22869 _ACEOF
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22873 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22874 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22876 else
22877 gcc_cv_as_comdat_group=no
22878 if test $in_tree_gas = yes; then
22879 if test $in_tree_gas_is_elf = yes \
22880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22881 then gcc_cv_as_comdat_group=yes
22883 elif test x$gcc_cv_as != x; then
22884 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22887 (eval $ac_try) 2>&5
22888 ac_status=$?
22889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22890 test $ac_status = 0; }; }
22891 then
22892 gcc_cv_as_comdat_group=yes
22893 else
22894 echo "configure: failed program was" >&5
22895 cat conftest.s >&5
22897 rm -f conftest.o conftest.s
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22901 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22903 if test $gcc_cv_as_comdat_group = yes; then
22904 gcc_cv_as_comdat_group_percent=no
22905 gcc_cv_as_comdat_group_group=no
22906 else
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22908 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22909 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22910 $as_echo_n "(cached) " >&6
22911 else
22912 gcc_cv_as_comdat_group_percent=no
22913 if test $in_tree_gas = yes; then
22914 if test $in_tree_gas_is_elf = yes \
22915 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22916 then gcc_cv_as_comdat_group_percent=yes
22918 elif test x$gcc_cv_as != x; then
22919 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22925 test $ac_status = 0; }; }
22926 then
22927 gcc_cv_as_comdat_group_percent=yes
22928 else
22929 echo "configure: failed program was" >&5
22930 cat conftest.s >&5
22932 rm -f conftest.o conftest.s
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22936 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22938 if test $gcc_cv_as_comdat_group_percent = yes; then
22939 gcc_cv_as_comdat_group_group=no
22940 else
22941 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22942 gcc_cv_as_comdat_group_group=no
22944 case "${target}" in
22945 # Sun as uses a completely different syntax.
22946 *-*-solaris2*)
22947 case "${target}" in
22948 sparc*-*-solaris2*)
22949 conftest_s='
22950 .group foo,".text%foo",#comdat
22951 .section ".text%foo", #alloc,#execinstr,#progbits
22952 .globl foo
22953 foo:
22956 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22957 conftest_s='
22958 .group foo,.text%foo,#comdat
22959 .section .text%foo, "ax", @progbits
22960 .globl foo
22961 foo:
22964 esac
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22966 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22967 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22968 $as_echo_n "(cached) " >&6
22969 else
22970 gcc_cv_as_comdat_group_group=no
22971 if test x$gcc_cv_as != x; then
22972 $as_echo "$conftest_s" > conftest.s
22973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22975 (eval $ac_try) 2>&5
22976 ac_status=$?
22977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22978 test $ac_status = 0; }; }
22979 then
22980 gcc_cv_as_comdat_group_group=yes
22981 else
22982 echo "configure: failed program was" >&5
22983 cat conftest.s >&5
22985 rm -f conftest.o conftest.s
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22989 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22992 esac
22995 if test x"$ld_is_gold" = xyes; then
22996 comdat_group=yes
22997 elif test $in_tree_ld = yes ; then
22998 comdat_group=no
22999 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 \
23000 && test $in_tree_ld_is_elf = yes; then
23001 comdat_group=yes
23003 elif echo "$ld_ver" | grep GNU > /dev/null; then
23004 comdat_group=yes
23005 if test 0"$ld_date" -lt 20050308; then
23006 if test -n "$ld_date"; then
23007 # If there was date string, but was earlier than 2005-03-08, fail
23008 comdat_group=no
23009 elif test "$ld_vers_major" -lt 2; then
23010 comdat_group=no
23011 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23012 comdat_group=no
23015 else
23016 case "${target}" in
23017 *-*-solaris2.1[1-9]*)
23018 comdat_group=no
23019 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23020 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23021 # version 1.688.
23023 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23024 # least ld version 1.2267.
23025 if test "$ld_vers_major" -gt 1; then
23026 comdat_group=yes
23027 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23028 comdat_group=yes
23029 elif test "$ld_vers_minor" -ge 2267; then
23030 comdat_group=yes
23034 # Assume linkers other than GNU ld don't support COMDAT group.
23035 comdat_group=no
23037 esac
23039 # Allow overriding the automatic COMDAT group tests above.
23040 # Check whether --enable-comdat was given.
23041 if test "${enable_comdat+set}" = set; then :
23042 enableval=$enable_comdat; comdat_group="$enable_comdat"
23045 if test $comdat_group = no; then
23046 gcc_cv_as_comdat_group=no
23047 gcc_cv_as_comdat_group_percent=no
23048 gcc_cv_as_comdat_group_group=no
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23053 || test $gcc_cv_as_comdat_group_percent = yes \
23054 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23055 _ACEOF
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23059 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23060 if test "${gcc_cv_as_discriminator+set}" = set; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 gcc_cv_as_discriminator=no
23064 if test $in_tree_gas = yes; then
23065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23066 then gcc_cv_as_discriminator=yes
23068 elif test x$gcc_cv_as != x; then
23069 $as_echo ' .text
23070 .file 1 "conf.c"
23071 .loc 1 1 0 discriminator 1' > conftest.s
23072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074 (eval $ac_try) 2>&5
23075 ac_status=$?
23076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077 test $ac_status = 0; }; }
23078 then
23079 gcc_cv_as_discriminator=yes
23080 else
23081 echo "configure: failed program was" >&5
23082 cat conftest.s >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23088 $as_echo "$gcc_cv_as_discriminator" >&6; }
23089 if test $gcc_cv_as_discriminator = yes; then
23091 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23095 # Thread-local storage - the check is heavily parameterized.
23096 conftest_s=
23097 tls_first_major=
23098 tls_first_minor=
23099 tls_as_opt=
23100 case "$target" in
23101 alpha*-*-*)
23102 conftest_s='
23103 .section ".tdata","awT",@progbits
23104 foo: .long 25
23105 .text
23106 ldq $27,__tls_get_addr($29) !literal!1
23107 lda $16,foo($29) !tlsgd!1
23108 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23109 ldq $27,__tls_get_addr($29) !literal!2
23110 lda $16,foo($29) !tlsldm!2
23111 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23112 ldq $1,foo($29) !gotdtprel
23113 ldah $2,foo($29) !dtprelhi
23114 lda $3,foo($2) !dtprello
23115 lda $4,foo($29) !dtprel
23116 ldq $1,foo($29) !gottprel
23117 ldah $2,foo($29) !tprelhi
23118 lda $3,foo($2) !tprello
23119 lda $4,foo($29) !tprel'
23120 tls_first_major=2
23121 tls_first_minor=13
23122 tls_as_opt=--fatal-warnings
23124 cris-*-*|crisv32-*-*)
23125 conftest_s='
23126 .section ".tdata","awT",@progbits
23127 x: .long 25
23128 .text
23129 move.d x:IE,$r10
23130 nop'
23131 tls_first_major=2
23132 tls_first_minor=20
23133 tls_as_opt=--fatal-warnings
23135 frv*-*-*)
23136 conftest_s='
23137 .section ".tdata","awT",@progbits
23138 x: .long 25
23139 .text
23140 call #gettlsoff(x)'
23141 tls_first_major=2
23142 tls_first_minor=14
23144 hppa*-*-linux*)
23145 conftest_s='
23146 t1: .reg %r20
23147 t2: .reg %r21
23148 gp: .reg %r19
23149 .section ".tdata","awT",@progbits
23150 foo: .long 25
23151 .text
23152 .align 4
23153 addil LT%foo-$tls_gdidx$,gp
23154 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23155 b __tls_get_addr
23157 addil LT%foo-$tls_ldidx$,gp
23158 b __tls_get_addr
23159 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23160 addil LR%foo-$tls_dtpoff$,%ret0
23161 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23162 mfctl %cr27,%t1
23163 addil LT%foo-$tls_ieoff$,gp
23164 ldw RT%foo-$tls_ieoff$(%r1),%t2
23165 add %t1,%t2,%t3
23166 mfctl %cr27,%t1
23167 addil LR%foo-$tls_leoff$,%t1
23168 ldo RR%foo-$tls_leoff$(%r1),%t2'
23169 tls_first_major=2
23170 tls_first_minor=15
23171 tls_as_opt=--fatal-warnings
23173 arm*-*-*)
23174 conftest_s='
23175 .section ".tdata","awT",%progbits
23176 foo: .long 25
23177 .text
23178 .word foo(gottpoff)
23179 .word foo(tpoff)
23180 .word foo(tlsgd)
23181 .word foo(tlsldm)
23182 .word foo(tlsldo)'
23183 tls_first_major=2
23184 tls_first_minor=17
23186 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23187 case "$target" in
23188 i[34567]86-*-solaris2.*)
23189 on_solaris=yes
23190 tga_func=___tls_get_addr
23192 x86_64-*-solaris2.1[0-9]*)
23193 on_solaris=yes
23194 tga_func=__tls_get_addr
23197 on_solaris=no
23199 esac
23200 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23201 conftest_s='
23202 .section .tdata,"awt",@progbits'
23203 tls_first_major=0
23204 tls_first_minor=0
23206 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23208 else
23209 conftest_s='
23210 .section ".tdata","awT",@progbits'
23211 tls_first_major=2
23212 tls_first_minor=14
23213 tls_as_opt="--fatal-warnings"
23215 conftest_s="$conftest_s
23216 foo: .long 25
23217 .text
23218 movl %gs:0, %eax
23219 leal foo@tlsgd(,%ebx,1), %eax
23220 leal foo@tlsldm(%ebx), %eax
23221 leal foo@dtpoff(%eax), %edx
23222 movl foo@gottpoff(%ebx), %eax
23223 subl foo@gottpoff(%ebx), %eax
23224 addl foo@gotntpoff(%ebx), %eax
23225 movl foo@indntpoff, %eax
23226 movl \$foo@tpoff, %eax
23227 subl \$foo@tpoff, %eax
23228 leal foo@ntpoff(%ecx), %eax"
23230 x86_64-*-*)
23231 conftest_s='
23232 .section ".tdata","awT",@progbits
23233 foo: .long 25
23234 .text
23235 movq %fs:0, %rax
23236 leaq foo@TLSGD(%rip), %rdi
23237 leaq foo@TLSLD(%rip), %rdi
23238 leaq foo@DTPOFF(%rax), %rdx
23239 movq foo@GOTTPOFF(%rip), %rax
23240 movq $foo@TPOFF, %rax'
23241 tls_first_major=2
23242 tls_first_minor=14
23243 tls_as_opt=--fatal-warnings
23245 ia64-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 foo: data8 25
23249 .text
23250 addl r16 = @ltoff(@dtpmod(foo#)), gp
23251 addl r17 = @ltoff(@dtprel(foo#)), gp
23252 addl r18 = @ltoff(@tprel(foo#)), gp
23253 addl r19 = @dtprel(foo#), gp
23254 adds r21 = @dtprel(foo#), r13
23255 movl r23 = @dtprel(foo#)
23256 addl r20 = @tprel(foo#), gp
23257 adds r22 = @tprel(foo#), r13
23258 movl r24 = @tprel(foo#)'
23259 tls_first_major=2
23260 tls_first_minor=13
23261 tls_as_opt=--fatal-warnings
23263 microblaze*-*-*)
23264 conftest_s='
23265 .section .tdata,"awT",@progbits
23267 .word 2
23268 .text
23269 addik r5,r20,x@TLSGD
23270 addik r5,r20,x@TLSLDM'
23271 tls_first_major=2
23272 tls_first_minor=20
23273 tls_as_opt='--fatal-warnings'
23275 mips*-*-*)
23276 conftest_s='
23277 .section .tdata,"awT",@progbits
23279 .word 2
23280 .text
23281 addiu $4, $28, %tlsgd(x)
23282 addiu $4, $28, %tlsldm(x)
23283 lui $4, %dtprel_hi(x)
23284 addiu $4, $4, %dtprel_lo(x)
23285 lw $4, %gottprel(x)($28)
23286 lui $4, %tprel_hi(x)
23287 addiu $4, $4, %tprel_lo(x)'
23288 tls_first_major=2
23289 tls_first_minor=16
23290 tls_as_opt='-32 --fatal-warnings'
23292 m68k-*-*)
23293 conftest_s='
23294 .section .tdata,"awT",@progbits
23296 .word 2
23297 .text
23298 foo:
23299 move.l x@TLSGD(%a5),%a0
23300 move.l x@TLSLDM(%a5),%a0
23301 move.l x@TLSLDO(%a5),%a0
23302 move.l x@TLSIE(%a5),%a0
23303 move.l x@TLSLE(%a5),%a0'
23304 tls_first_major=2
23305 tls_first_minor=19
23306 tls_as_opt='--fatal-warnings'
23308 aarch64*-*-*)
23309 conftest_s='
23310 .section ".tdata","awT",%progbits
23311 foo: .long 25
23312 .text
23313 adrp x0, :tlsgd:x
23314 add x0, x0, #:tlsgd_lo12:x
23315 bl __tls_get_addr
23316 nop'
23317 tls_first_major=2
23318 tls_first_minor=20
23319 tls_as_opt='--fatal-warnings'
23321 powerpc-ibm-aix*)
23322 conftest_s='
23323 .extern __get_tpointer
23324 .toc
23325 LC..1:
23326 .tc a[TC],a[TL]@le
23327 .csect .text[PR]
23328 .tlstest:
23329 lwz 9,LC..1(2)
23330 bla __get_tpointer
23331 lwzx 3,9,3
23332 .globl a
23333 .csect a[TL],4
23335 .space 4'
23336 tls_first_major=0
23337 tls_first_minor=0
23339 powerpc64*-*-*)
23340 conftest_s='
23341 .section ".tdata","awT",@progbits
23342 .align 3
23343 ld0: .space 8
23344 ld1: .space 8
23345 x1: .space 8
23346 x2: .space 8
23347 x3: .space 8
23348 .text
23349 addi 3,2,ld0@got@tlsgd
23350 bl .__tls_get_addr
23352 addi 3,2,ld1@toc
23353 bl .__tls_get_addr
23355 addi 3,2,x1@got@tlsld
23356 bl .__tls_get_addr
23358 addi 9,3,x1@dtprel
23359 bl .__tls_get_addr
23361 addis 9,3,x2@dtprel@ha
23362 addi 9,9,x2@dtprel@l
23363 bl .__tls_get_addr
23365 ld 9,x3@got@dtprel(2)
23366 add 9,9,3
23367 bl .__tls_get_addr
23368 nop'
23369 tls_first_major=2
23370 tls_first_minor=14
23371 tls_as_opt="-a64 --fatal-warnings"
23373 powerpc*-*-*)
23374 conftest_s='
23375 .section ".tdata","awT",@progbits
23376 .align 2
23377 ld0: .space 4
23378 ld1: .space 4
23379 x1: .space 4
23380 x2: .space 4
23381 x3: .space 4
23382 .text
23383 addi 3,31,ld0@got@tlsgd
23384 bl __tls_get_addr
23385 addi 3,31,x1@got@tlsld
23386 bl __tls_get_addr
23387 addi 9,3,x1@dtprel
23388 addis 9,3,x2@dtprel@ha
23389 addi 9,9,x2@dtprel@l
23390 lwz 9,x3@got@tprel(31)
23391 add 9,9,x@tls
23392 addi 9,2,x1@tprel
23393 addis 9,2,x2@tprel@ha
23394 addi 9,9,x2@tprel@l'
23395 tls_first_major=2
23396 tls_first_minor=14
23397 tls_as_opt="-a32 --fatal-warnings"
23399 s390-*-*)
23400 conftest_s='
23401 .section ".tdata","awT",@progbits
23402 foo: .long 25
23403 .text
23404 .long foo@TLSGD
23405 .long foo@TLSLDM
23406 .long foo@DTPOFF
23407 .long foo@NTPOFF
23408 .long foo@GOTNTPOFF
23409 .long foo@INDNTPOFF
23410 l %r1,foo@GOTNTPOFF(%r12)
23411 l %r1,0(%r1):tls_load:foo
23412 bas %r14,0(%r1,%r13):tls_gdcall:foo
23413 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23414 tls_first_major=2
23415 tls_first_minor=14
23416 tls_as_opt="-m31 --fatal-warnings"
23418 s390x-*-*)
23419 conftest_s='
23420 .section ".tdata","awT",@progbits
23421 foo: .long 25
23422 .text
23423 .quad foo@TLSGD
23424 .quad foo@TLSLDM
23425 .quad foo@DTPOFF
23426 .quad foo@NTPOFF
23427 .quad foo@GOTNTPOFF
23428 lg %r1,foo@GOTNTPOFF(%r12)
23429 larl %r1,foo@INDNTPOFF
23430 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23431 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23432 tls_first_major=2
23433 tls_first_minor=14
23434 tls_as_opt="-m64 -Aesame --fatal-warnings"
23436 sh-*-* | sh[34]-*-*)
23437 conftest_s='
23438 .section ".tdata","awT",@progbits
23439 foo: .long 25
23440 .text
23441 .long foo@TLSGD
23442 .long foo@TLSLDM
23443 .long foo@DTPOFF
23444 .long foo@GOTTPOFF
23445 .long foo@TPOFF'
23446 tls_first_major=2
23447 tls_first_minor=13
23448 tls_as_opt=--fatal-warnings
23450 sparc*-*-*)
23451 case "$target" in
23452 sparc*-sun-solaris2.*)
23453 on_solaris=yes
23454 tga_func=__tls_get_addr
23457 on_solaris=no
23459 esac
23460 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23461 conftest_s='
23462 .section ".tdata",#alloc,#write,#tls'
23463 tls_first_major=0
23464 tls_first_minor=0
23465 else
23466 conftest_s='
23467 .section ".tdata","awT",@progbits'
23468 tls_first_major=2
23469 tls_first_minor=14
23470 tls_as_opt="-32 --fatal-warnings"
23472 conftest_s="$conftest_s
23473 foo: .long 25
23474 .text
23475 sethi %tgd_hi22(foo), %o0
23476 add %o0, %tgd_lo10(foo), %o1
23477 add %l7, %o1, %o0, %tgd_add(foo)
23478 call __tls_get_addr, %tgd_call(foo)
23479 sethi %tldm_hi22(foo), %l1
23480 add %l1, %tldm_lo10(foo), %l2
23481 add %l7, %l2, %o0, %tldm_add(foo)
23482 call __tls_get_addr, %tldm_call(foo)
23483 sethi %tldo_hix22(foo), %l3
23484 xor %l3, %tldo_lox10(foo), %l4
23485 add %o0, %l4, %l5, %tldo_add(foo)
23486 sethi %tie_hi22(foo), %o3
23487 add %o3, %tie_lo10(foo), %o3
23488 ld [%l7 + %o3], %o2, %tie_ld(foo)
23489 add %g7, %o2, %o4, %tie_add(foo)
23490 sethi %tle_hix22(foo), %l1
23491 xor %l1, %tle_lox10(foo), %o5
23492 ld [%g7 + %o5], %o1"
23494 tilepro*-*-*)
23495 conftest_s='
23496 .section ".tdata","awT",@progbits
23497 foo: .long 25
23498 .text
23499 addli r0, zero, tls_gd(foo)
23500 auli r0, zero, tls_gd_ha16(foo)
23501 addli r0, r0, tls_gd_lo16(foo)
23502 jal __tls_get_addr
23503 addli r0, zero, tls_ie(foo)
23504 auli r0, r0, tls_ie_ha16(foo)
23505 addli r0, r0, tls_ie_lo16(foo)'
23506 tls_first_major=2
23507 tls_first_minor=22
23508 tls_as_opt="--fatal-warnings"
23510 tilegx*-*-*)
23511 conftest_s='
23512 .section ".tdata","awT",@progbits
23513 foo: .long 25
23514 .text
23515 shl16insli r0, zero, hw0_last_tls_gd(foo)
23516 shl16insli r0, zero, hw1_last_tls_gd(foo)
23517 shl16insli r0, r0, hw0_tls_gd(foo)
23518 jal __tls_get_addr
23519 shl16insli r0, zero, hw1_last_tls_ie(foo)
23520 shl16insli r0, r0, hw0_tls_ie(foo)'
23521 tls_first_major=2
23522 tls_first_minor=22
23523 tls_as_opt="--fatal-warnings"
23525 xtensa*-*-*)
23526 conftest_s='
23527 .section ".tdata","awT",@progbits
23528 foo: .long 25
23529 .text
23530 movi a8, foo@TLSFUNC
23531 movi a10, foo@TLSARG
23532 callx8.tls a8, foo@TLSCALL'
23533 tls_first_major=2
23534 tls_first_minor=19
23536 esac
23537 set_have_as_tls=no
23538 if test "x$enable_tls" = xno ; then
23539 : # TLS explicitly disabled.
23540 elif test "x$enable_tls" = xyes ; then
23541 set_have_as_tls=yes # TLS explicitly enabled.
23542 elif test -z "$tls_first_major"; then
23543 : # If we don't have a check, assume no support.
23544 else
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23546 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23547 if test "${gcc_cv_as_tls+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 gcc_cv_as_tls=no
23551 if test $in_tree_gas = yes; then
23552 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23553 then gcc_cv_as_tls=yes
23555 elif test x$gcc_cv_as != x; then
23556 $as_echo "$conftest_s" > conftest.s
23557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23562 test $ac_status = 0; }; }
23563 then
23564 gcc_cv_as_tls=yes
23565 else
23566 echo "configure: failed program was" >&5
23567 cat conftest.s >&5
23569 rm -f conftest.o conftest.s
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23573 $as_echo "$gcc_cv_as_tls" >&6; }
23574 if test $gcc_cv_as_tls = yes; then
23575 set_have_as_tls=yes
23578 case "$target" in
23579 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23580 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23581 # Sun style that Sun ld and GCC don't support any longer.
23582 *-*-solaris2.*)
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23584 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23585 ld_tls_support=no
23586 # Check ld and ld.so.1 TLS support.
23587 if echo "$ld_ver" | grep GNU > /dev/null; then
23588 # Assume all interesting versions of GNU ld have TLS support.
23589 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23590 ld_tls_support=yes
23591 else
23592 case "$target" in
23593 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23594 i?86-*-solaris2.9)
23595 min_tls_ld_vers_minor=374
23597 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23598 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23599 min_tls_ld_vers_minor=343
23601 esac
23602 if test "$ld_vers_major" -gt 1 || \
23603 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23604 ld_tls_support=yes
23605 else
23606 set_have_as_tls=no
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23610 $as_echo "$ld_tls_support" >&6; }
23612 save_LIBS="$LIBS"
23613 save_LDFLAGS="$LDFLAGS"
23614 LIBS=
23615 LDFLAGS=
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23618 $as_echo_n "checking library containing $tga_func... " >&6; }
23619 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23620 # (32-bit x86) only lived in libthread, so check for that. Keep
23621 # set_have_as_tls if found, disable if not.
23622 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23624 $as_echo_n "checking for library containing $tga_func... " >&6; }
23625 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 ac_func_search_save_LIBS=$LIBS
23629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23630 /* end confdefs.h. */
23632 /* Override any GCC internal prototype to avoid an error.
23633 Use char because int might match the return type of a GCC
23634 builtin and then its argument prototype would still apply. */
23635 #ifdef __cplusplus
23636 extern "C"
23637 #endif
23638 char $tga_func ();
23640 main ()
23642 return $tga_func ();
23644 return 0;
23646 _ACEOF
23647 for ac_lib in '' thread; do
23648 if test -z "$ac_lib"; then
23649 ac_res="none required"
23650 else
23651 ac_res=-l$ac_lib
23652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23654 if ac_fn_c_try_link "$LINENO"; then :
23655 eval "$as_ac_Search=\$ac_res"
23657 rm -f core conftest.err conftest.$ac_objext \
23658 conftest$ac_exeext
23659 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23660 break
23662 done
23663 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23665 else
23666 eval "$as_ac_Search=no"
23668 rm conftest.$ac_ext
23669 LIBS=$ac_func_search_save_LIBS
23671 eval ac_res=\$$as_ac_Search
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23673 $as_echo "$ac_res" >&6; }
23674 eval ac_res=\$$as_ac_Search
23675 if test "$ac_res" != no; then :
23676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23678 else
23679 set_have_as_tls=no
23682 # Clear LIBS if we cannot support TLS.
23683 if test $set_have_as_tls = no; then
23684 LIBS=
23686 # Always define LIB_TLS_SPEC, even without TLS support.
23688 cat >>confdefs.h <<_ACEOF
23689 #define LIB_TLS_SPEC "$LIBS"
23690 _ACEOF
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23693 $as_echo "$LIBS" >&6; }
23695 LIBS="$save_LIBS"
23696 LDFLAGS="$save_LDFLAGS"
23698 esac
23699 if test $set_have_as_tls = yes ; then
23701 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23705 # Target-specific assembler checks.
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23708 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23709 gcc_cv_ld_static_dynamic=no
23710 gcc_cv_ld_static_option='-Bstatic'
23711 gcc_cv_ld_dynamic_option='-Bdynamic'
23712 if test $in_tree_ld = yes ; then
23713 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
23714 gcc_cv_ld_static_dynamic=yes
23716 elif test x$gcc_cv_ld != x; then
23717 # Check if linker supports -Bstatic/-Bdynamic option
23718 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23719 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23720 gcc_cv_ld_static_dynamic=yes
23721 else
23722 case "$target" in
23723 # AIX ld uses -b flags
23724 *-*-aix4.[23]* | *-*-aix[5-9]*)
23725 gcc_cv_ld_static_dynamic=yes
23726 gcc_cv_ld_static_option="-bstatic"
23727 gcc_cv_ld_dynamic_option="-bdynamic"
23729 # HP-UX ld uses -a flags to select between shared and archive.
23730 *-*-hpux*)
23731 if test x"$gnu_ld" = xno; then
23732 gcc_cv_ld_static_dynamic=yes
23733 gcc_cv_ld_static_option="-aarchive_shared"
23734 gcc_cv_ld_dynamic_option="-adefault"
23737 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23738 *-*-solaris2*)
23739 gcc_cv_ld_static_dynamic=yes
23741 esac
23744 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23746 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23749 cat >>confdefs.h <<_ACEOF
23750 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23751 _ACEOF
23754 cat >>confdefs.h <<_ACEOF
23755 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23756 _ACEOF
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23760 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23762 if test x"$demangler_in_ld" = xyes; then
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23764 $as_echo_n "checking linker --demangle support... " >&6; }
23765 gcc_cv_ld_demangle=no
23766 if test $in_tree_ld = yes; then
23767 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 \
23768 gcc_cv_ld_demangle=yes
23770 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23771 # Check if the GNU linker supports --demangle option
23772 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23773 gcc_cv_ld_demangle=yes
23776 if test x"$gcc_cv_ld_demangle" = xyes; then
23778 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23782 $as_echo "$gcc_cv_ld_demangle" >&6; }
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23786 $as_echo_n "checking linker plugin support... " >&6; }
23787 gcc_cv_lto_plugin=0
23788 if test -f liblto_plugin.la; then
23789 save_ld_ver="$ld_ver"
23790 save_ld_vers_major="$ld_vers_major"
23791 save_ld_vers_minor="$ld_vers_minor"
23792 save_ld_is_gold="$ld_is_gold"
23794 ld_is_gold=no
23796 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23797 ld_ver="GNU ld"
23798 # FIXME: ld_is_gold?
23799 ld_vers_major="$gcc_cv_gld_major_version"
23800 ld_vers_minor="$gcc_cv_gld_minor_version"
23801 else
23802 # Determine plugin linker version.
23803 # FIXME: Partial duplicate from above, generalize.
23804 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23805 if echo "$ld_ver" | grep GNU > /dev/null; then
23806 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23807 ld_is_gold=yes
23808 ld_vers=`echo $ld_ver | sed -n \
23809 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23810 else
23811 ld_vers=`echo $ld_ver | sed -n \
23812 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23814 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23815 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23819 # Determine plugin support.
23820 if echo "$ld_ver" | grep GNU > /dev/null; then
23821 # Require GNU ld or gold 2.21+ for plugin support by default.
23822 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23823 gcc_cv_lto_plugin=2
23824 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23825 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23826 gcc_cv_lto_plugin=1
23830 ld_ver="$save_ld_ver"
23831 ld_vers_major="$save_ld_vers_major"
23832 ld_vers_minor="$save_ld_vers_minor"
23833 ld_is_gold="$save_ld_is_gold"
23836 cat >>confdefs.h <<_ACEOF
23837 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23838 _ACEOF
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23841 $as_echo "$gcc_cv_lto_plugin" >&6; }
23843 case "$target" in
23844 # All TARGET_ABI_OSF targets.
23845 alpha*-*-linux* | alpha*-*-*bsd*)
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23847 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23848 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23849 $as_echo_n "(cached) " >&6
23850 else
23851 gcc_cv_as_alpha_explicit_relocs=no
23852 if test $in_tree_gas = yes; then
23853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23854 then gcc_cv_as_alpha_explicit_relocs=yes
23856 elif test x$gcc_cv_as != x; then
23857 $as_echo ' .set nomacro
23858 .text
23859 extbl $3, $2, $3 !lituse_bytoff!1
23860 ldq $2, a($29) !literal!1
23861 ldq $4, b($29) !literal!2
23862 ldq_u $3, 0($2) !lituse_base!1
23863 ldq $27, f($29) !literal!5
23864 jsr $26, ($27), f !lituse_jsr!5
23865 ldah $29, 0($26) !gpdisp!3
23866 lda $0, c($29) !gprel
23867 ldah $1, d($29) !gprelhigh
23868 lda $1, d($1) !gprellow
23869 lda $29, 0($29) !gpdisp!3' > conftest.s
23870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23872 (eval $ac_try) 2>&5
23873 ac_status=$?
23874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; }; }
23876 then
23877 gcc_cv_as_alpha_explicit_relocs=yes
23878 else
23879 echo "configure: failed program was" >&5
23880 cat conftest.s >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23886 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23887 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23889 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23893 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23894 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 gcc_cv_as_alpha_jsrdirect_relocs=no
23898 if test $in_tree_gas = yes; then
23899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23900 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23902 elif test x$gcc_cv_as != x; then
23903 $as_echo ' .set nomacro
23904 .text
23905 ldq $27, a($29) !literal!1
23906 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23913 then
23914 gcc_cv_as_alpha_jsrdirect_relocs=yes
23915 else
23916 echo "configure: failed program was" >&5
23917 cat conftest.s >&5
23919 rm -f conftest.o conftest.s
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23923 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23924 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23926 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23931 cris-*-*)
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23933 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23934 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23936 else
23937 gcc_cv_as_cris_no_mul_bug=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23940 then gcc_cv_as_cris_no_mul_bug=yes
23942 elif test x$gcc_cv_as != x; then
23943 $as_echo '.text' > conftest.s
23944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23950 then
23951 gcc_cv_as_cris_no_mul_bug=yes
23952 else
23953 echo "configure: failed program was" >&5
23954 cat conftest.s >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23960 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23961 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23963 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23968 sparc*-*-*)
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23970 $as_echo_n "checking assembler for .register... " >&6; }
23971 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23973 else
23974 gcc_cv_as_sparc_register_op=no
23975 if test x$gcc_cv_as != x; then
23976 $as_echo '.register %g2, #scratch' > conftest.s
23977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23983 then
23984 gcc_cv_as_sparc_register_op=yes
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23989 rm -f conftest.o conftest.s
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23993 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23994 if test $gcc_cv_as_sparc_register_op = yes; then
23996 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24001 $as_echo_n "checking assembler for #nobits... " >&6; }
24002 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24004 else
24005 gcc_cv_as_sparc_nobits=no
24006 if test x$gcc_cv_as != x; then
24007 $as_echo '.section "nobits",#alloc,#write,#nobits
24008 .section "progbits",#alloc,#write,#progbits' > conftest.s
24009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014 test $ac_status = 0; }; }
24015 then
24016 gcc_cv_as_sparc_nobits=yes
24017 else
24018 echo "configure: failed program was" >&5
24019 cat conftest.s >&5
24021 rm -f conftest.o conftest.s
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24025 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24028 cat >>confdefs.h <<_ACEOF
24029 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24030 _ACEOF
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24034 $as_echo_n "checking assembler for -relax option... " >&6; }
24035 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24037 else
24038 gcc_cv_as_sparc_relax=no
24039 if test x$gcc_cv_as != x; then
24040 $as_echo '.text' > conftest.s
24041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }
24047 then
24048 gcc_cv_as_sparc_relax=yes
24049 else
24050 echo "configure: failed program was" >&5
24051 cat conftest.s >&5
24053 rm -f conftest.o conftest.s
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24057 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24058 if test $gcc_cv_as_sparc_relax = yes; then
24060 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24065 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24066 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24068 else
24069 gcc_cv_as_sparc_gotdata_op=no
24070 if test x$gcc_cv_as != x; then
24071 $as_echo '.text
24072 .align 4
24073 foo:
24075 bar:
24076 sethi %gdop_hix22(foo), %g1
24077 xor %g1, %gdop_lox10(foo), %g1
24078 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24084 test $ac_status = 0; }; }
24085 then
24086 if test x$gcc_cv_ld != x \
24087 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24088 if test x$gcc_cv_objdump != x; then
24089 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24090 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24091 gcc_cv_as_sparc_gotdata_op=no
24092 else
24093 gcc_cv_as_sparc_gotdata_op=yes
24097 rm -f conftest
24098 else
24099 echo "configure: failed program was" >&5
24100 cat conftest.s >&5
24102 rm -f conftest.o conftest.s
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24106 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24107 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24109 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24114 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24115 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24118 gcc_cv_as_sparc_ua_pcrel=no
24119 if test x$gcc_cv_as != x; then
24120 $as_echo '.text
24121 foo:
24123 .data
24124 .align 4
24125 .byte 0
24126 .uaword %r_disp32(foo)' > conftest.s
24127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; }
24133 then
24134 if test x$gcc_cv_ld != x \
24135 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24136 gcc_cv_as_sparc_ua_pcrel=yes
24138 rm -f conftest
24139 else
24140 echo "configure: failed program was" >&5
24141 cat conftest.s >&5
24143 rm -f conftest.o conftest.s
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24147 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24148 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24150 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24154 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24155 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24156 $as_echo_n "(cached) " >&6
24157 else
24158 gcc_cv_as_sparc_ua_pcrel_hidden=no
24159 if test x$gcc_cv_as != x; then
24160 $as_echo '.data
24161 .align 4
24162 .byte 0x31
24163 .uaword %r_disp32(foo)
24164 .byte 0x32, 0x33, 0x34
24165 .global foo
24166 .hidden foo
24167 foo:
24168 .skip 4' > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24175 then
24176 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24177 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24178 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24179 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24180 if $gcc_cv_objdump -R conftest 2> /dev/null \
24181 | grep 'DISP32' > /dev/null 2>&1; then
24183 else
24184 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24187 rm -f conftest
24188 else
24189 echo "configure: failed program was" >&5
24190 cat conftest.s >&5
24192 rm -f conftest.o conftest.s
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24196 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24197 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24199 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24203 fi # unaligned pcrel relocs
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24206 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24207 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24208 $as_echo_n "(cached) " >&6
24209 else
24210 gcc_cv_as_sparc_offsetable_lo10=no
24211 if test x$gcc_cv_as != x; then
24212 $as_echo '.text
24213 or %g1, %lo(ab) + 12, %g1
24214 or %g1, %lo(ab + 12), %g1' > conftest.s
24215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24217 (eval $ac_try) 2>&5
24218 ac_status=$?
24219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24220 test $ac_status = 0; }; }
24221 then
24222 if test x$gcc_cv_objdump != x \
24223 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24224 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24225 gcc_cv_as_sparc_offsetable_lo10=yes
24227 else
24228 echo "configure: failed program was" >&5
24229 cat conftest.s >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24235 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24236 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24238 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24243 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24244 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24246 else
24247 gcc_cv_as_sparc_fmaf=no
24248 if test x$gcc_cv_as != x; then
24249 $as_echo '.text
24250 .register %g2, #scratch
24251 .register %g3, #scratch
24252 .align 4
24253 fmaddd %f0, %f2, %f4, %f6
24254 addxccc %g1, %g2, %g3
24255 fsrl32 %f2, %f4, %f8
24256 fnaddd %f10, %f12, %f14' > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24263 then
24264 gcc_cv_as_sparc_fmaf=yes
24265 else
24266 echo "configure: failed program was" >&5
24267 cat conftest.s >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24273 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24274 if test $gcc_cv_as_sparc_fmaf = yes; then
24276 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24281 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24282 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_sparc_sparc4=no
24286 if test x$gcc_cv_as != x; then
24287 $as_echo '.text
24288 .register %g2, #scratch
24289 .register %g3, #scratch
24290 .align 4
24291 cxbe %g2, %g3, 1f
24292 1: cwbneg %g2, %g3, 1f
24293 1: sha1
24295 aes_kexpand0 %f4, %f6, %f8
24296 des_round %f38, %f40, %f42, %f44
24297 camellia_f %f54, %f56, %f58, %f60
24298 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_sparc_sparc4=yes
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24315 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24316 if test $gcc_cv_as_sparc_sparc4 = yes; then
24318 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24323 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24324 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_sparc_leon=no
24328 if test x$gcc_cv_as != x; then
24329 $as_echo '.text
24330 .register %g2, #scratch
24331 .register %g3, #scratch
24332 .align 4
24333 smac %g2, %g3, %g1
24334 umac %g2, %g3, %g1
24335 cas [%g2], %g3, %g1' > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 gcc_cv_as_sparc_leon=yes
24344 else
24345 echo "configure: failed program was" >&5
24346 cat conftest.s >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24352 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24353 if test $gcc_cv_as_sparc_leon = yes; then
24355 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24360 i[34567]86-*-* | x86_64-*-*)
24361 case $target_os in
24362 cygwin*)
24363 # Full C++ conformance when using a shared libstdc++-v3 requires some
24364 # support from the Cygwin DLL, which in more recent versions exports
24365 # wrappers to aid in interposing and redirecting operators new, delete,
24366 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24367 # are configuring for a version of Cygwin that exports the wrappers.
24368 if test x$host = x$target; then
24369 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24370 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24371 gcc_ac_cygwin_dll_wrappers=yes
24372 else
24373 gcc_ac_cygwin_dll_wrappers=no
24376 else
24377 # Can't check presence of libc functions during cross-compile, so
24378 # we just have to assume we're building for an up-to-date target.
24379 gcc_ac_cygwin_dll_wrappers=yes
24382 cat >>confdefs.h <<_ACEOF
24383 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24384 _ACEOF
24386 esac
24387 case $target_os in
24388 cygwin* | pe | mingw32* | interix*)
24389 # Recent binutils allows the three-operand form of ".comm" on PE. This
24390 # definition is used unconditionally to initialise the default state of
24391 # the target option variable that governs usage of the feature.
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24393 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24394 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24396 else
24397 gcc_cv_as_comm_has_align=no
24398 if test $in_tree_gas = yes; then
24399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24400 then gcc_cv_as_comm_has_align=yes
24402 elif test x$gcc_cv_as != x; then
24403 $as_echo '.comm foo,1,32' > conftest.s
24404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24406 (eval $ac_try) 2>&5
24407 ac_status=$?
24408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24409 test $ac_status = 0; }; }
24410 then
24411 gcc_cv_as_comm_has_align=yes
24412 else
24413 echo "configure: failed program was" >&5
24414 cat conftest.s >&5
24416 rm -f conftest.o conftest.s
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24420 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24425 _ACEOF
24427 # Used for DWARF 2 in PE
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24429 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24430 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24431 $as_echo_n "(cached) " >&6
24432 else
24433 gcc_cv_as_ix86_pe_secrel32=no
24434 if test $in_tree_gas = yes; then
24435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24436 then gcc_cv_as_ix86_pe_secrel32=yes
24438 elif test x$gcc_cv_as != x; then
24439 $as_echo '.text
24440 foo: nop
24441 .data
24442 .secrel32 foo' > conftest.s
24443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24449 then
24450 if test x$gcc_cv_ld != x \
24451 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24452 gcc_cv_as_ix86_pe_secrel32=yes
24454 rm -f conftest
24455 else
24456 echo "configure: failed program was" >&5
24457 cat conftest.s >&5
24459 rm -f conftest.o conftest.s
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24463 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24464 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24466 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24469 # Test if the assembler supports the extended form of the .section
24470 # directive that specifies section alignment. LTO support uses this,
24471 # but normally only after installation, so we warn but don't fail the
24472 # configure if LTO is enabled but the assembler does not support it.
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24474 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24475 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 gcc_cv_as_section_has_align=no
24479 if test $in_tree_gas = yes; then
24480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24481 then gcc_cv_as_section_has_align=yes
24483 elif test x$gcc_cv_as != x; then
24484 $as_echo '.section lto_test,"dr0"' > conftest.s
24485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24487 (eval $ac_try) 2>&5
24488 ac_status=$?
24489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24490 test $ac_status = 0; }; }
24491 then
24492 gcc_cv_as_section_has_align=yes
24493 else
24494 echo "configure: failed program was" >&5
24495 cat conftest.s >&5
24497 rm -f conftest.o conftest.s
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24501 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24503 if test x$gcc_cv_as_section_has_align != xyes; then
24504 case ",$enable_languages," in
24505 *,lto,*)
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24507 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24509 esac
24511 # Test if the assembler supports the section flag 'e' for specifying
24512 # an excluded section.
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24514 $as_echo_n "checking assembler for .section with e... " >&6; }
24515 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_section_has_e=no
24519 if test $in_tree_gas = yes; then
24520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24521 then gcc_cv_as_section_has_e=yes
24523 elif test x$gcc_cv_as != x; then
24524 $as_echo '.section foo1,"e"
24525 .byte 0,0,0,0' > conftest.s
24526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24531 test $ac_status = 0; }; }
24532 then
24533 gcc_cv_as_section_has_e=yes
24534 else
24535 echo "configure: failed program was" >&5
24536 cat conftest.s >&5
24538 rm -f conftest.o conftest.s
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24542 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24545 cat >>confdefs.h <<_ACEOF
24546 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24547 _ACEOF
24550 esac
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24553 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24554 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 gcc_cv_as_ix86_filds=no
24558 if test x$gcc_cv_as != x; then
24559 $as_echo 'filds mem; fists mem' > conftest.s
24560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24562 (eval $ac_try) 2>&5
24563 ac_status=$?
24564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24565 test $ac_status = 0; }; }
24566 then
24567 gcc_cv_as_ix86_filds=yes
24568 else
24569 echo "configure: failed program was" >&5
24570 cat conftest.s >&5
24572 rm -f conftest.o conftest.s
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24576 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24577 if test $gcc_cv_as_ix86_filds = yes; then
24579 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24584 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24585 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24586 $as_echo_n "(cached) " >&6
24587 else
24588 gcc_cv_as_ix86_fildq=no
24589 if test x$gcc_cv_as != x; then
24590 $as_echo 'fildq mem; fistpq mem' > conftest.s
24591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24593 (eval $ac_try) 2>&5
24594 ac_status=$?
24595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24596 test $ac_status = 0; }; }
24597 then
24598 gcc_cv_as_ix86_fildq=yes
24599 else
24600 echo "configure: failed program was" >&5
24601 cat conftest.s >&5
24603 rm -f conftest.o conftest.s
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24607 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24608 if test $gcc_cv_as_ix86_fildq = yes; then
24610 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24615 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24616 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24618 else
24619 gcc_cv_as_ix86_cmov_sun_syntax=no
24620 if test x$gcc_cv_as != x; then
24621 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24624 (eval $ac_try) 2>&5
24625 ac_status=$?
24626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24627 test $ac_status = 0; }; }
24628 then
24629 gcc_cv_as_ix86_cmov_sun_syntax=yes
24630 else
24631 echo "configure: failed program was" >&5
24632 cat conftest.s >&5
24634 rm -f conftest.o conftest.s
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24638 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24639 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24641 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24646 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24647 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24649 else
24650 gcc_cv_as_ix86_ffreep=no
24651 if test x$gcc_cv_as != x; then
24652 $as_echo 'ffreep %st(1)' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_ix86_ffreep=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24669 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24670 if test $gcc_cv_as_ix86_ffreep = yes; then
24672 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24677 $as_echo_n "checking assembler for .quad directive... " >&6; }
24678 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_ix86_quad=no
24682 if test x$gcc_cv_as != x; then
24683 $as_echo '.quad 0' > conftest.s
24684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24690 then
24691 gcc_cv_as_ix86_quad=yes
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24700 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24701 if test $gcc_cv_as_ix86_quad = yes; then
24703 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24708 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24709 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_sahf=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo '.code64
24715 sahf' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_ix86_sahf=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24732 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24733 if test $gcc_cv_as_ix86_sahf = yes; then
24735 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24740 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24741 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24743 else
24744 gcc_cv_as_ix86_hle=no
24745 if test x$gcc_cv_as != x; then
24746 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749 (eval $ac_try) 2>&5
24750 ac_status=$?
24751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752 test $ac_status = 0; }; }
24753 then
24754 gcc_cv_as_ix86_hle=yes
24755 else
24756 echo "configure: failed program was" >&5
24757 cat conftest.s >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24763 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24764 if test $gcc_cv_as_ix86_hle = yes; then
24766 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24771 $as_echo_n "checking assembler for swap suffix... " >&6; }
24772 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_ix86_swap=no
24776 if test x$gcc_cv_as != x; then
24777 $as_echo 'movl.s %esp, %ebp' > conftest.s
24778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24784 then
24785 gcc_cv_as_ix86_swap=yes
24786 else
24787 echo "configure: failed program was" >&5
24788 cat conftest.s >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24794 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24795 if test $gcc_cv_as_ix86_swap = yes; then
24797 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24802 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24803 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24804 $as_echo_n "(cached) " >&6
24805 else
24806 gcc_cv_as_ix86_diff_sect_delta=no
24807 if test x$gcc_cv_as != x; then
24808 $as_echo '.section .rodata
24809 .L1:
24810 .long .L2-.L1
24811 .long .L3-.L1
24812 .text
24813 .L3: nop
24814 .L2: nop' > conftest.s
24815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24821 then
24822 gcc_cv_as_ix86_diff_sect_delta=yes
24823 else
24824 echo "configure: failed program was" >&5
24825 cat conftest.s >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24831 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24832 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24834 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24838 # These two are used unconditionally by i386.[ch]; it is to be defined
24839 # to 1 if the feature is present, 0 otherwise.
24840 as_ix86_gotoff_in_data_opt=
24841 if test x$gas = xyes; then
24842 as_ix86_gotoff_in_data_opt="--32"
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24845 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24846 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 gcc_cv_as_ix86_gotoff_in_data=no
24850 if test $in_tree_gas = yes; then
24851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24852 then gcc_cv_as_ix86_gotoff_in_data=yes
24854 elif test x$gcc_cv_as != x; then
24855 $as_echo ' .text
24856 .L0:
24858 .data
24859 .long .L0@GOTOFF' > conftest.s
24860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24866 then
24867 gcc_cv_as_ix86_gotoff_in_data=yes
24868 else
24869 echo "configure: failed program was" >&5
24870 cat conftest.s >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24876 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24879 cat >>confdefs.h <<_ACEOF
24880 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24881 _ACEOF
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24885 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24886 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24887 $as_echo_n "(cached) " >&6
24888 else
24889 gcc_cv_as_ix86_rep_lock_prefix=no
24890 if test x$gcc_cv_as != x; then
24891 $as_echo 'rep movsl
24892 rep ret
24893 rep nop
24894 rep bsf %ecx, %eax
24895 rep bsr %ecx, %eax
24896 lock addl %edi, (%eax,%esi)
24897 lock orl $0, (%esp)' > conftest.s
24898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24904 then
24905 gcc_cv_as_ix86_rep_lock_prefix=yes
24906 else
24907 echo "configure: failed program was" >&5
24908 cat conftest.s >&5
24910 rm -f conftest.o conftest.s
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24914 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24915 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24917 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24922 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24923 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
24925 else
24926 gcc_cv_as_ix86_ud2=no
24927 if test x$gcc_cv_as != x; then
24928 $as_echo 'ud2' > conftest.s
24929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24935 then
24936 gcc_cv_as_ix86_ud2=yes
24937 else
24938 echo "configure: failed program was" >&5
24939 cat conftest.s >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24945 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24946 if test $gcc_cv_as_ix86_ud2 = yes; then
24948 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24953 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24954 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24955 $as_echo_n "(cached) " >&6
24956 else
24957 gcc_cv_as_ix86_tlsgdplt=no
24958 if test x$gcc_cv_as != x; then
24959 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24966 then
24967 if test x$gcc_cv_ld != x \
24968 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24969 gcc_cv_as_ix86_tlsgdplt=yes
24971 rm -f conftest
24972 else
24973 echo "configure: failed program was" >&5
24974 cat conftest.s >&5
24976 rm -f conftest.o conftest.s
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24980 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24981 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24983 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24988 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24989 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 gcc_cv_as_ix86_tlsldmplt=no
24993 if test x$gcc_cv_as != x; then
24994 $as_echo 'tls_ld:
24995 call tls_ld@tlsldmplt' > conftest.s
24996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25002 then
25003 if test x$gcc_cv_ld != x \
25004 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25005 gcc_cv_as_ix86_tlsldmplt=yes
25007 rm -f conftest
25008 else
25009 echo "configure: failed program was" >&5
25010 cat conftest.s >&5
25012 rm -f conftest.o conftest.s
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25016 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25017 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25019 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25025 ia64*-*-*)
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25027 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25028 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25029 $as_echo_n "(cached) " >&6
25030 else
25031 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25032 if test $in_tree_gas = yes; then
25033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25034 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25036 elif test x$gcc_cv_as != x; then
25037 $as_echo ' .text
25038 addl r15 = @ltoffx(x#), gp
25040 ld8.mov r16 = [r15], x#' > conftest.s
25041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25043 (eval $ac_try) 2>&5
25044 ac_status=$?
25045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25046 test $ac_status = 0; }; }
25047 then
25048 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25049 else
25050 echo "configure: failed program was" >&5
25051 cat conftest.s >&5
25053 rm -f conftest.o conftest.s
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25057 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25058 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25060 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25066 powerpc*-*-*)
25067 case $target in
25068 *-*-aix*) conftest_s=' .machine "pwr5"
25069 .csect .text[PR]
25070 mfcr 3,128';;
25071 *-*-darwin*)
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25073 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25074 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_machine_directive=no
25078 if test x$gcc_cv_as != x; then
25079 $as_echo ' .machine ppc7400' > conftest.s
25080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25086 then
25087 gcc_cv_as_machine_directive=yes
25088 else
25089 echo "configure: failed program was" >&5
25090 cat conftest.s >&5
25092 rm -f conftest.o conftest.s
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25096 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25098 if test x$gcc_cv_as_machine_directive != xyes; then
25099 echo "*** This target requires an assembler supporting \".machine\"" >&2
25100 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25101 test x$build = x$target && exit 1
25103 conftest_s=' .text
25104 mfcr r3,128';;
25105 *) conftest_s=' .machine power4
25106 .text
25107 mfcr 3,128';;
25108 esac
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25111 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25112 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 gcc_cv_as_powerpc_mfcrf=no
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25118 then gcc_cv_as_powerpc_mfcrf=yes
25120 elif test x$gcc_cv_as != x; then
25121 $as_echo "$conftest_s" > conftest.s
25122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25125 ac_status=$?
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25128 then
25129 gcc_cv_as_powerpc_mfcrf=yes
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25134 rm -f conftest.o conftest.s
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25138 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25139 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25141 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25145 case $target in
25146 *-*-aix*) conftest_s=' .machine "pwr5"
25147 .csect .text[PR]
25148 popcntb 3,3';;
25149 *) conftest_s=' .machine power5
25150 .text
25151 popcntb 3,3';;
25152 esac
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25155 $as_echo_n "checking assembler for popcntb support... " >&6; }
25156 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25157 $as_echo_n "(cached) " >&6
25158 else
25159 gcc_cv_as_powerpc_popcntb=no
25160 if test $in_tree_gas = yes; then
25161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25162 then gcc_cv_as_powerpc_popcntb=yes
25164 elif test x$gcc_cv_as != x; then
25165 $as_echo "$conftest_s" > conftest.s
25166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25168 (eval $ac_try) 2>&5
25169 ac_status=$?
25170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25171 test $ac_status = 0; }; }
25172 then
25173 gcc_cv_as_powerpc_popcntb=yes
25174 else
25175 echo "configure: failed program was" >&5
25176 cat conftest.s >&5
25178 rm -f conftest.o conftest.s
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25182 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25183 if test $gcc_cv_as_powerpc_popcntb = yes; then
25185 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25189 case $target in
25190 *-*-aix*) conftest_s=' .machine "pwr5x"
25191 .csect .text[PR]
25192 frin 1,1';;
25193 *) conftest_s=' .machine power5
25194 .text
25195 frin 1,1';;
25196 esac
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25199 $as_echo_n "checking assembler for fp round support... " >&6; }
25200 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25201 $as_echo_n "(cached) " >&6
25202 else
25203 gcc_cv_as_powerpc_fprnd=no
25204 if test $in_tree_gas = yes; then
25205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25206 then gcc_cv_as_powerpc_fprnd=yes
25208 elif test x$gcc_cv_as != x; then
25209 $as_echo "$conftest_s" > conftest.s
25210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25215 test $ac_status = 0; }; }
25216 then
25217 gcc_cv_as_powerpc_fprnd=yes
25218 else
25219 echo "configure: failed program was" >&5
25220 cat conftest.s >&5
25222 rm -f conftest.o conftest.s
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25226 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25227 if test $gcc_cv_as_powerpc_fprnd = yes; then
25229 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25233 case $target in
25234 *-*-aix*) conftest_s=' .machine "pwr6"
25235 .csect .text[PR]
25236 mffgpr 1,3';;
25237 *) conftest_s=' .machine power6
25238 .text
25239 mffgpr 1,3';;
25240 esac
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25243 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25244 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_powerpc_mfpgpr=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25250 then gcc_cv_as_powerpc_mfpgpr=yes
25252 elif test x$gcc_cv_as != x; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25260 then
25261 gcc_cv_as_powerpc_mfpgpr=yes
25262 else
25263 echo "configure: failed program was" >&5
25264 cat conftest.s >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25270 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25271 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25273 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25277 case $target in
25278 *-*-aix*) conftest_s=' .csect .text[PR]
25279 LCF..0:
25280 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25281 *-*-darwin*)
25282 conftest_s=' .text
25283 LCF0:
25284 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25285 *) conftest_s=' .text
25286 .LCF0:
25287 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25288 esac
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25291 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25292 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25294 else
25295 gcc_cv_as_powerpc_rel16=no
25296 if test $in_tree_gas = yes; then
25297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25298 then gcc_cv_as_powerpc_rel16=yes
25300 elif test x$gcc_cv_as != x; then
25301 $as_echo "$conftest_s" > conftest.s
25302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25307 test $ac_status = 0; }; }
25308 then
25309 gcc_cv_as_powerpc_rel16=yes
25310 else
25311 echo "configure: failed program was" >&5
25312 cat conftest.s >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25318 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25319 if test $gcc_cv_as_powerpc_rel16 = yes; then
25321 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25325 case $target in
25326 *-*-aix*) conftest_s=' .machine "pwr6"
25327 .csect .text[PR]
25328 cmpb 3,4,5';;
25329 *) conftest_s=' .machine power6
25330 .text
25331 cmpb 3,4,5';;
25332 esac
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25335 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25336 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_powerpc_cmpb=no
25340 if test $in_tree_gas = yes; then
25341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25342 then gcc_cv_as_powerpc_cmpb=yes
25344 elif test x$gcc_cv_as != x; then
25345 $as_echo "$conftest_s" > conftest.s
25346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25352 then
25353 gcc_cv_as_powerpc_cmpb=yes
25354 else
25355 echo "configure: failed program was" >&5
25356 cat conftest.s >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25362 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25363 if test $gcc_cv_as_powerpc_cmpb = yes; then
25365 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25369 case $target in
25370 *-*-aix*) conftest_s=' .machine "pwr6"
25371 .csect .text[PR]
25372 dadd 1,2,3';;
25373 *) conftest_s=' .machine power6
25374 .text
25375 dadd 1,2,3';;
25376 esac
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25379 $as_echo_n "checking assembler for decimal float support... " >&6; }
25380 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 gcc_cv_as_powerpc_dfp=no
25384 if test $in_tree_gas = yes; then
25385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25386 then gcc_cv_as_powerpc_dfp=yes
25388 elif test x$gcc_cv_as != x; then
25389 $as_echo "$conftest_s" > conftest.s
25390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25396 then
25397 gcc_cv_as_powerpc_dfp=yes
25398 else
25399 echo "configure: failed program was" >&5
25400 cat conftest.s >&5
25402 rm -f conftest.o conftest.s
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25406 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25407 if test $gcc_cv_as_powerpc_dfp = yes; then
25409 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25413 case $target in
25414 *-*-aix*) conftest_s=' .machine "pwr7"
25415 .csect .text[PR]
25416 lxvd2x 1,2,3';;
25417 *) conftest_s=' .machine power7
25418 .text
25419 lxvd2x 1,2,3';;
25420 esac
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25423 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25424 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25426 else
25427 gcc_cv_as_powerpc_vsx=no
25428 if test $in_tree_gas = yes; then
25429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25430 then gcc_cv_as_powerpc_vsx=yes
25432 elif test x$gcc_cv_as != x; then
25433 $as_echo "$conftest_s" > conftest.s
25434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25440 then
25441 gcc_cv_as_powerpc_vsx=yes
25442 else
25443 echo "configure: failed program was" >&5
25444 cat conftest.s >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25450 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25451 if test $gcc_cv_as_powerpc_vsx = yes; then
25453 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25457 case $target in
25458 *-*-aix*) conftest_s=' .machine "pwr7"
25459 .csect .text[PR]
25460 popcntd 3,3';;
25461 *) conftest_s=' .machine power7
25462 .text
25463 popcntd 3,3';;
25464 esac
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25467 $as_echo_n "checking assembler for popcntd support... " >&6; }
25468 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25470 else
25471 gcc_cv_as_powerpc_popcntd=no
25472 if test $in_tree_gas = yes; then
25473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25474 then gcc_cv_as_powerpc_popcntd=yes
25476 elif test x$gcc_cv_as != x; then
25477 $as_echo "$conftest_s" > conftest.s
25478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25484 then
25485 gcc_cv_as_powerpc_popcntd=yes
25486 else
25487 echo "configure: failed program was" >&5
25488 cat conftest.s >&5
25490 rm -f conftest.o conftest.s
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25494 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25495 if test $gcc_cv_as_powerpc_popcntd = yes; then
25497 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25501 case $target in
25502 *-*-aix*) conftest_s=' .machine "pwr8"
25503 .csect .text[PR]';;
25504 *) conftest_s=' .machine power8
25505 .text';;
25506 esac
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25509 $as_echo_n "checking assembler for power8 support... " >&6; }
25510 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25511 $as_echo_n "(cached) " >&6
25512 else
25513 gcc_cv_as_powerpc_power8=no
25514 if test $in_tree_gas = yes; then
25515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25516 then gcc_cv_as_powerpc_power8=yes
25518 elif test x$gcc_cv_as != x; then
25519 $as_echo "$conftest_s" > conftest.s
25520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525 test $ac_status = 0; }; }
25526 then
25527 gcc_cv_as_powerpc_power8=yes
25528 else
25529 echo "configure: failed program was" >&5
25530 cat conftest.s >&5
25532 rm -f conftest.o conftest.s
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25536 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25537 if test $gcc_cv_as_powerpc_power8 = yes; then
25539 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25543 case $target in
25544 *-*-aix*) conftest_s=' .csect .text[PR]
25545 lwsync';;
25546 *) conftest_s=' .text
25547 lwsync';;
25548 esac
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25551 $as_echo_n "checking assembler for lwsync support... " >&6; }
25552 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
25554 else
25555 gcc_cv_as_powerpc_lwsync=no
25556 if test $in_tree_gas = yes; then
25557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25558 then gcc_cv_as_powerpc_lwsync=yes
25560 elif test x$gcc_cv_as != x; then
25561 $as_echo "$conftest_s" > conftest.s
25562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25564 (eval $ac_try) 2>&5
25565 ac_status=$?
25566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25567 test $ac_status = 0; }; }
25568 then
25569 gcc_cv_as_powerpc_lwsync=yes
25570 else
25571 echo "configure: failed program was" >&5
25572 cat conftest.s >&5
25574 rm -f conftest.o conftest.s
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25578 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25579 if test $gcc_cv_as_powerpc_lwsync = yes; then
25581 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25585 case $target in
25586 *-*-aix*) conftest_s=' .machine "476"
25587 .csect .text[PR]
25588 dci 0';;
25589 *) conftest_s=' .machine "476"
25590 .text
25591 dci 0';;
25592 esac
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25595 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25596 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
25598 else
25599 gcc_cv_as_powerpc_dci=no
25600 if test $in_tree_gas = yes; then
25601 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25602 then gcc_cv_as_powerpc_dci=yes
25604 elif test x$gcc_cv_as != x; then
25605 $as_echo "$conftest_s" > conftest.s
25606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25612 then
25613 gcc_cv_as_powerpc_dci=yes
25614 else
25615 echo "configure: failed program was" >&5
25616 cat conftest.s >&5
25618 rm -f conftest.o conftest.s
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25622 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25623 if test $gcc_cv_as_powerpc_dci = yes; then
25625 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25630 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25631 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25633 else
25634 gcc_cv_as_powerpc_gnu_attribute=no
25635 if test $in_tree_gas = yes; then
25636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25637 then gcc_cv_as_powerpc_gnu_attribute=yes
25639 elif test x$gcc_cv_as != x; then
25640 $as_echo '.gnu_attribute 4,1' > conftest.s
25641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25646 test $ac_status = 0; }; }
25647 then
25648 gcc_cv_as_powerpc_gnu_attribute=yes
25649 else
25650 echo "configure: failed program was" >&5
25651 cat conftest.s >&5
25653 rm -f conftest.o conftest.s
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25657 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25658 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25660 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25665 $as_echo_n "checking assembler for tls marker support... " >&6; }
25666 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25667 $as_echo_n "(cached) " >&6
25668 else
25669 gcc_cv_as_powerpc_tls_markers=no
25670 if test $in_tree_gas = yes; then
25671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25672 then gcc_cv_as_powerpc_tls_markers=yes
25674 elif test x$gcc_cv_as != x; then
25675 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25678 (eval $ac_try) 2>&5
25679 ac_status=$?
25680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25681 test $ac_status = 0; }; }
25682 then
25683 gcc_cv_as_powerpc_tls_markers=yes
25684 else
25685 echo "configure: failed program was" >&5
25686 cat conftest.s >&5
25688 rm -f conftest.o conftest.s
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25692 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25693 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25695 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25699 case $target in
25700 *-*-aix*)
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25702 $as_echo_n "checking assembler for .ref support... " >&6; }
25703 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25705 else
25706 gcc_cv_as_aix_ref=no
25707 if test $in_tree_gas = yes; then
25708 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25709 then gcc_cv_as_aix_ref=yes
25711 elif test x$gcc_cv_as != x; then
25712 $as_echo ' .csect stuff[rw]
25713 stuff:
25714 .long 1
25715 .extern sym
25716 .ref sym
25717 ' > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25724 then
25725 gcc_cv_as_aix_ref=yes
25726 else
25727 echo "configure: failed program was" >&5
25728 cat conftest.s >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25734 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25735 if test $gcc_cv_as_aix_ref = yes; then
25737 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25741 esac
25744 mips*-*-*)
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25746 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25747 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25749 else
25750 gcc_cv_as_mips_explicit_relocs=no
25751 if test $in_tree_gas = yes; then
25752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25753 then gcc_cv_as_mips_explicit_relocs=yes
25755 elif test x$gcc_cv_as != x; then
25756 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25762 test $ac_status = 0; }; }
25763 then
25764 gcc_cv_as_mips_explicit_relocs=yes
25765 else
25766 echo "configure: failed program was" >&5
25767 cat conftest.s >&5
25769 rm -f conftest.o conftest.s
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25773 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25774 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25775 if test x$target_cpu_default = x
25776 then target_cpu_default=MASK_EXPLICIT_RELOCS
25777 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25781 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25782 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_mips_no_shared=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25788 then gcc_cv_as_mips_no_shared=yes
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo 'nop' > conftest.s
25792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25797 test $ac_status = 0; }; }
25798 then
25799 gcc_cv_as_mips_no_shared=yes
25800 else
25801 echo "configure: failed program was" >&5
25802 cat conftest.s >&5
25804 rm -f conftest.o conftest.s
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25808 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25809 if test $gcc_cv_as_mips_no_shared = yes; then
25811 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25816 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25817 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25818 $as_echo_n "(cached) " >&6
25819 else
25820 gcc_cv_as_mips_gnu_attribute=no
25821 if test $in_tree_gas = yes; then
25822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25823 then gcc_cv_as_mips_gnu_attribute=yes
25825 elif test x$gcc_cv_as != x; then
25826 $as_echo '.gnu_attribute 4,1' > conftest.s
25827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25832 test $ac_status = 0; }; }
25833 then
25834 gcc_cv_as_mips_gnu_attribute=yes
25835 else
25836 echo "configure: failed program was" >&5
25837 cat conftest.s >&5
25839 rm -f conftest.o conftest.s
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25843 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25844 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25846 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25851 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25852 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 gcc_cv_as_mips_dtprelword=no
25856 if test $in_tree_gas = yes; then
25857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25858 then gcc_cv_as_mips_dtprelword=yes
25860 elif test x$gcc_cv_as != x; then
25861 $as_echo '.section .tdata,"awT",@progbits
25863 .word 2
25864 .text
25865 .dtprelword x+0x8000' > conftest.s
25866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25872 then
25873 gcc_cv_as_mips_dtprelword=yes
25874 else
25875 echo "configure: failed program was" >&5
25876 cat conftest.s >&5
25878 rm -f conftest.o conftest.s
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25882 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25883 if test $gcc_cv_as_mips_dtprelword = yes; then
25885 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25890 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25891 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25893 else
25894 gcc_cv_as_mips_dspr1_mult=no
25895 if test x$gcc_cv_as != x; then
25896 $as_echo ' .set mips32r2
25897 .set nodspr2
25898 .set dsp
25899 madd $ac3,$4,$5
25900 maddu $ac3,$4,$5
25901 msub $ac3,$4,$5
25902 msubu $ac3,$4,$5
25903 mult $ac3,$4,$5
25904 multu $ac3,$4,$5' > conftest.s
25905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25908 ac_status=$?
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; }
25911 then
25912 gcc_cv_as_mips_dspr1_mult=yes
25913 else
25914 echo "configure: failed program was" >&5
25915 cat conftest.s >&5
25917 rm -f conftest.o conftest.s
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25921 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25922 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25924 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25929 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25930 gcc_cv_as_ld_jalr_reloc=no
25931 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25932 if test $in_tree_ld = yes ; then
25933 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 \
25934 && test $in_tree_ld_is_elf = yes; then
25935 gcc_cv_as_ld_jalr_reloc=yes
25937 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25938 echo ' .ent x' > conftest.s
25939 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25940 echo ' ld $25,%call16(y)($28)' >> conftest.s
25941 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25942 echo '1: jalr $25' >> conftest.s
25943 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25944 echo '1: jalr $25' >> conftest.s
25945 echo ' .end x' >> conftest.s
25946 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25947 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25948 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25949 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25950 gcc_cv_as_ld_jalr_reloc=yes
25953 rm -f conftest.*
25956 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25957 if test x$target_cpu_default = x; then
25958 target_cpu_default=MASK_RELAX_PIC_CALLS
25959 else
25960 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25964 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25967 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25968 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25971 gcc_cv_ld_mips_personality_relaxation=no
25972 if test $in_tree_ld = yes ; then
25973 if test "$gcc_cv_gld_major_version" -eq 2 \
25974 -a "$gcc_cv_gld_minor_version" -ge 21 \
25975 -o "$gcc_cv_gld_major_version" -gt 2; then
25976 gcc_cv_ld_mips_personality_relaxation=yes
25978 elif test x$gcc_cv_as != x \
25979 -a x$gcc_cv_ld != x \
25980 -a x$gcc_cv_readelf != x ; then
25981 cat > conftest.s <<EOF
25982 .cfi_startproc
25983 .cfi_personality 0x80,indirect_ptr
25984 .ent test
25985 test:
25987 .end test
25988 .cfi_endproc
25990 .section .data,"aw",@progbits
25991 indirect_ptr:
25992 .dc.a personality
25994 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25995 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25996 if $gcc_cv_readelf -d conftest 2>&1 \
25997 | grep TEXTREL > /dev/null 2>&1; then
25999 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26000 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26002 else
26003 gcc_cv_ld_mips_personality_relaxation=yes
26007 rm -f conftest.s conftest.o conftest
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26010 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26011 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26013 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26017 esac
26019 # Mips and HP-UX need the GNU assembler.
26020 # Linux on IA64 might be able to use the Intel assembler.
26022 case "$target" in
26023 mips*-*-* | *-*-hpux* )
26024 if test x$gas_flag = xyes \
26025 || test x"$host" != x"$build" \
26026 || test ! -x "$gcc_cv_as" \
26027 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26029 else
26030 echo "*** This configuration requires the GNU assembler" >&2
26031 exit 1
26034 esac
26036 # ??? Not all targets support dwarf2 debug_line, even within a version
26037 # of gas. Moreover, we need to emit a valid instruction to trigger any
26038 # info to the output file. So, as supported targets are added to gas 2.11,
26039 # add some instruction here to (also) show we expect this might work.
26040 # ??? Once 2.11 is released, probably need to add first known working
26041 # version to the per-target configury.
26042 case "$cpu_type" in
26043 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26044 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26045 insn="nop"
26047 ia64 | s390)
26048 insn="nop 0"
26050 mmix)
26051 insn="swym 0"
26053 esac
26054 if test x"$insn" != x; then
26055 conftest_s="\
26056 .file 1 \"conftest.s\"
26057 .loc 1 3 0
26058 $insn"
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26060 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26061 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_dwarf2_debug_line=no
26065 if test $in_tree_gas = yes; then
26066 if test $in_tree_gas_is_elf = yes \
26067 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26068 then gcc_cv_as_dwarf2_debug_line=yes
26070 elif test x$gcc_cv_as != x; then
26071 $as_echo "$conftest_s" > conftest.s
26072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26074 (eval $ac_try) 2>&5
26075 ac_status=$?
26076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26077 test $ac_status = 0; }; }
26078 then
26079 if test x$gcc_cv_objdump != x \
26080 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26081 | grep debug_line > /dev/null 2>&1; then
26082 gcc_cv_as_dwarf2_debug_line=yes
26084 else
26085 echo "configure: failed program was" >&5
26086 cat conftest.s >&5
26088 rm -f conftest.o conftest.s
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26092 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26095 # The .debug_line file table must be in the exact order that
26096 # we specified the files, since these indices are also used
26097 # by DW_AT_decl_file. Approximate this test by testing if
26098 # the assembler bitches if the same index is assigned twice.
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26100 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26101 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26103 else
26104 gcc_cv_as_dwarf2_file_buggy=no
26105 if test x$gcc_cv_as != x; then
26106 $as_echo ' .file 1 "foo.s"
26107 .file 1 "bar.s"' > conftest.s
26108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26113 test $ac_status = 0; }; }
26114 then
26115 gcc_cv_as_dwarf2_file_buggy=yes
26116 else
26117 echo "configure: failed program was" >&5
26118 cat conftest.s >&5
26120 rm -f conftest.o conftest.s
26123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26124 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26127 if test $gcc_cv_as_dwarf2_debug_line = yes \
26128 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26130 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26135 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26136 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26137 $as_echo_n "(cached) " >&6
26138 else
26139 gcc_cv_as_gdwarf2_flag=no
26140 if test $in_tree_gas = yes; then
26141 if test $in_tree_gas_is_elf = yes \
26142 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26143 then gcc_cv_as_gdwarf2_flag=yes
26145 elif test x$gcc_cv_as != x; then
26146 $as_echo "$insn" > conftest.s
26147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26153 then
26154 gcc_cv_as_gdwarf2_flag=yes
26155 else
26156 echo "configure: failed program was" >&5
26157 cat conftest.s >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26163 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26164 if test $gcc_cv_as_gdwarf2_flag = yes; then
26166 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26171 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26172 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 gcc_cv_as_gstabs_flag=no
26176 if test $in_tree_gas = yes; then
26177 if test $in_tree_gas_is_elf = yes \
26178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26179 then gcc_cv_as_gstabs_flag=yes
26181 elif test x$gcc_cv_as != x; then
26182 $as_echo "$insn" > conftest.s
26183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26188 test $ac_status = 0; }; }
26189 then
26190 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26191 # and warns about it, but still exits successfully. So check for
26192 # this.
26193 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26199 then :
26200 else gcc_cv_as_gstabs_flag=yes
26202 else
26203 echo "configure: failed program was" >&5
26204 cat conftest.s >&5
26206 rm -f conftest.o conftest.s
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26210 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26211 if test $gcc_cv_as_gstabs_flag = yes; then
26213 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26218 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26219 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26220 $as_echo_n "(cached) " >&6
26221 else
26222 gcc_cv_as_debug_prefix_map_flag=no
26223 if test $in_tree_gas = yes; then
26224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26225 then gcc_cv_as_debug_prefix_map_flag=yes
26227 elif test x$gcc_cv_as != x; then
26228 $as_echo "$insn" > conftest.s
26229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26231 (eval $ac_try) 2>&5
26232 ac_status=$?
26233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26234 test $ac_status = 0; }; }
26235 then
26236 gcc_cv_as_debug_prefix_map_flag=yes
26237 else
26238 echo "configure: failed program was" >&5
26239 cat conftest.s >&5
26241 rm -f conftest.o conftest.s
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26245 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26246 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26248 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26254 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26255 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26256 $as_echo_n "(cached) " >&6
26257 else
26258 gcc_cv_as_lcomm_with_alignment=no
26259 if test x$gcc_cv_as != x; then
26260 $as_echo '.lcomm bar,4,16' > conftest.s
26261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26267 then
26268 gcc_cv_as_lcomm_with_alignment=yes
26269 else
26270 echo "configure: failed program was" >&5
26271 cat conftest.s >&5
26273 rm -f conftest.o conftest.s
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26277 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26278 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26280 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26284 # Check whether --enable-gnu-unique-object was given.
26285 if test "${enable_gnu_unique_object+set}" = set; then :
26286 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26287 yes | no) ;;
26288 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26289 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26290 esac
26291 else
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26293 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26294 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26295 $as_echo_n "(cached) " >&6
26296 else
26297 gcc_cv_as_gnu_unique_object=no
26298 if test $in_tree_gas = yes; then
26299 if test $in_tree_gas_is_elf = yes \
26300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26301 then gcc_cv_as_gnu_unique_object=yes
26303 elif test x$gcc_cv_as != x; then
26304 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26311 then
26312 gcc_cv_as_gnu_unique_object=yes
26313 else
26314 echo "configure: failed program was" >&5
26315 cat conftest.s >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26321 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26322 if test $gcc_cv_as_gnu_unique_object = yes; then
26323 # We need to unquote above to to use the definition from config.gcc.
26324 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26325 if test x$host = x$build -a x$host = x$target &&
26326 ldd --version 2>/dev/null &&
26327 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26328 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26329 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26330 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26331 if test "$glibcnum" -ge 2011 ; then
26332 enable_gnu_unique_object=yes
26338 if test x$enable_gnu_unique_object = xyes; then
26340 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26345 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26346 if test "${gcc_cv_as_line_zero+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26349 gcc_cv_as_line_zero=no
26350 if test $in_tree_gas = yes; then
26351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26352 then gcc_cv_as_line_zero=yes
26354 elif test "x$gcc_cv_as" != x; then
26355 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26356 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26361 test $ac_status = 0; }; } &&
26362 test "x`cat conftest.out`" = x
26363 then
26364 gcc_cv_as_line_zero=yes
26365 else
26366 echo "configure: failed program was" >&5
26367 cat conftest.s >&5
26368 echo "configure: error output was" >&5
26369 cat conftest.out >&5
26371 rm -f conftest.o conftest.s conftest.out
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26375 $as_echo "$gcc_cv_as_line_zero" >&6; }
26376 if test "x$gcc_cv_as_line_zero" = xyes; then
26378 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26383 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26384 gcc_cv_ld_eh_frame_hdr=no
26385 if test $in_tree_ld = yes ; then
26386 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 \
26387 && test $in_tree_ld_is_elf = yes; then
26388 gcc_cv_ld_eh_frame_hdr=yes
26390 elif test x$gcc_cv_ld != x; then
26391 if echo "$ld_ver" | grep GNU > /dev/null; then
26392 # Check if linker supports --eh-frame-hdr option
26393 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26394 gcc_cv_ld_eh_frame_hdr=yes
26396 else
26397 case "$target" in
26398 *-*-solaris2*)
26399 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26400 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26401 gcc_cv_ld_eh_frame_hdr=yes
26404 esac
26408 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26410 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26414 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26417 $as_echo_n "checking linker position independent executable support... " >&6; }
26418 gcc_cv_ld_pie=no
26419 if test $in_tree_ld = yes ; then
26420 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 \
26421 && test $in_tree_ld_is_elf = yes; then
26422 gcc_cv_ld_pie=yes
26424 elif test x$gcc_cv_ld != x; then
26425 # Check if linker supports -pie option
26426 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26427 gcc_cv_ld_pie=yes
26430 if test x"$gcc_cv_ld_pie" = xyes; then
26432 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26436 $as_echo "$gcc_cv_ld_pie" >&6; }
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26439 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26440 gcc_cv_ld_eh_gc_sections=no
26441 if test $in_tree_ld = yes ; then
26442 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 \
26443 && test $in_tree_ld_is_elf = yes; then
26444 gcc_cv_ld_eh_gc_sections=yes
26446 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26447 cat > conftest.s <<EOF
26448 .section .text
26449 .globl _start
26450 .type _start, @function
26451 _start:
26452 .long foo
26453 .size _start, .-_start
26454 .section .text.foo,"ax",@progbits
26455 .type foo, @function
26456 foo:
26457 .long 0
26458 .size foo, .-foo
26459 .section .gcc_except_table.foo,"a",@progbits
26460 .L0:
26461 .long 0
26462 .section .eh_frame,"a",@progbits
26463 .long .L0
26465 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26466 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26467 | grep "gc-sections option ignored" > /dev/null; then
26468 gcc_cv_ld_eh_gc_sections=no
26469 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26470 | grep gcc_except_table > /dev/null; then
26471 gcc_cv_ld_eh_gc_sections=yes
26472 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26473 if test x$gcc_cv_as_comdat_group != xyes; then
26474 gcc_cv_ld_eh_gc_sections=no
26475 cat > conftest.s <<EOF
26476 .section .text
26477 .globl _start
26478 .type _start, @function
26479 _start:
26480 .long foo
26481 .size _start, .-_start
26482 .section .gnu.linkonce.t.foo,"ax",@progbits
26483 .type foo, @function
26484 foo:
26485 .long 0
26486 .size foo, .-foo
26487 .section .gcc_except_table.foo,"a",@progbits
26488 .L0:
26489 .long 0
26490 .section .eh_frame,"a",@progbits
26491 .long .L0
26493 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26494 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26495 | grep "gc-sections option ignored" > /dev/null; then
26496 gcc_cv_ld_eh_gc_sections=no
26497 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26498 | grep gcc_except_table > /dev/null; then
26499 gcc_cv_ld_eh_gc_sections=yes
26505 rm -f conftest.s conftest.o conftest
26507 case "$target" in
26508 hppa*-*-linux*)
26509 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26510 gcc_cv_ld_eh_gc_sections=no
26512 esac
26513 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26515 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26519 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26522 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26523 gcc_cv_ld_eh_gc_sections_bug=no
26524 if test $in_tree_ld = yes ; then
26525 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26526 && test $in_tree_ld_is_elf = yes; then
26527 gcc_cv_ld_eh_gc_sections_bug=yes
26529 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26530 gcc_cv_ld_eh_gc_sections_bug=yes
26531 cat > conftest.s <<EOF
26532 .section .text
26533 .globl _start
26534 .type _start, @function
26535 _start:
26536 .long foo
26537 .size _start, .-_start
26538 .section .text.startup.foo,"ax",@progbits
26539 .type foo, @function
26540 foo:
26541 .long 0
26542 .size foo, .-foo
26543 .section .gcc_except_table.foo,"a",@progbits
26544 .L0:
26545 .long 0
26546 .section .eh_frame,"a",@progbits
26547 .long .L0
26549 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26550 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26551 | grep "gc-sections option ignored" > /dev/null; then
26553 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26554 | grep gcc_except_table > /dev/null; then
26555 gcc_cv_ld_eh_gc_sections_bug=no
26558 rm -f conftest.s conftest.o conftest
26560 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26562 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26566 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26568 # --------
26569 # UNSORTED
26570 # --------
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26573 $as_echo_n "checking linker --as-needed support... " >&6; }
26574 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26575 $as_echo_n "(cached) " >&6
26576 else
26577 gcc_cv_ld_as_needed=no
26578 if test $in_tree_ld = yes ; then
26579 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 \
26580 && test $in_tree_ld_is_elf = yes; then
26581 gcc_cv_ld_as_needed=yes
26583 elif test x$gcc_cv_ld != x; then
26584 # Check if linker supports --as-needed and --no-as-needed options
26585 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26586 gcc_cv_ld_as_needed=yes
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26592 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26593 if test x"$gcc_cv_ld_as_needed" = xyes; then
26595 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26599 case "$target:$tm_file" in
26600 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26601 case "$target" in
26602 *le-*-linux*)
26603 emul_name="-melf64lppc"
26605 *-*-linux*)
26606 emul_name="-melf64ppc"
26608 *-*-freebsd*)
26609 emul_name="-melf64ppc_fbsd"
26611 esac
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26613 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26614 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26615 $as_echo_n "(cached) " >&6
26616 else
26617 gcc_cv_ld_no_dot_syms=no
26618 if test x"$ld_is_gold" = xyes; then
26619 gcc_cv_ld_no_dot_syms=yes
26620 elif test $in_tree_ld = yes ; then
26621 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
26622 gcc_cv_ld_no_dot_syms=yes
26624 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26625 cat > conftest1.s <<EOF
26626 .text
26627 bl .foo
26629 cat > conftest2.s <<EOF
26630 .section ".opd","aw"
26631 .align 3
26632 .globl foo
26633 .type foo,@function
26634 foo:
26635 .quad .LEfoo,.TOC.@tocbase,0
26636 .text
26637 .LEfoo:
26639 .size foo,.-.LEfoo
26641 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26642 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26643 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26644 gcc_cv_ld_no_dot_syms=yes
26646 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26651 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26652 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26654 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26659 $as_echo_n "checking linker large toc support... " >&6; }
26660 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26661 $as_echo_n "(cached) " >&6
26662 else
26663 gcc_cv_ld_large_toc=no
26664 if test x"$ld_is_gold" = xyes; then
26665 gcc_cv_ld_large_toc=yes
26666 elif test $in_tree_ld = yes ; then
26667 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26668 gcc_cv_ld_large_toc=yes
26670 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26671 cat > conftest.s <<EOF
26672 .section ".tbss","awT",@nobits
26673 .align 3
26674 ie0: .space 8
26675 .global _start
26676 .text
26677 _start:
26678 addis 9,13,ie0@got@tprel@ha
26679 ld 9,ie0@got@tprel@l(9)
26681 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26682 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26683 gcc_cv_ld_large_toc=yes
26685 rm -f conftest conftest.o conftest.s
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26690 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26691 if test x"$gcc_cv_ld_large_toc" = xyes; then
26693 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26697 esac
26699 case "$target" in
26700 *-*-aix*)
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26702 $as_echo_n "checking linker large toc support... " >&6; }
26703 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26704 $as_echo_n "(cached) " >&6
26705 else
26706 gcc_cv_ld_large_toc=no
26707 if test x$gcc_cv_as != x ; then
26708 cat > conftest.s <<EOF
26709 .toc
26710 LC..1:
26711 .tc a[TC],a[RW]
26712 .extern a[RW]
26713 .csect .text[PR]
26714 .largetoctest:
26715 addis 9,LC..1@u(2)
26716 ld 3,LC..1@l(9)
26718 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26719 gcc_cv_ld_large_toc=yes
26721 rm -f conftest conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26726 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26727 if test x"$gcc_cv_ld_large_toc" = xyes; then
26729 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26733 esac
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26736 $as_echo_n "checking linker --build-id support... " >&6; }
26737 if test "${gcc_cv_ld_buildid+set}" = set; then :
26738 $as_echo_n "(cached) " >&6
26739 else
26740 gcc_cv_ld_buildid=no
26741 if test $in_tree_ld = yes ; then
26742 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26743 "$gcc_cv_gld_minor_version" -ge 18 -o \
26744 "$gcc_cv_gld_major_version" -gt 2 \
26745 && test $in_tree_ld_is_elf = yes; then
26746 gcc_cv_ld_buildid=yes
26748 elif test x$gcc_cv_ld != x; then
26749 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26750 gcc_cv_ld_buildid=yes
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26755 $as_echo "$gcc_cv_ld_buildid" >&6; }
26756 if test x"$gcc_cv_ld_buildid" = xyes; then
26758 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26762 # Check whether --enable-linker-build-id was given.
26763 if test "${enable_linker_build_id+set}" = set; then :
26764 enableval=$enable_linker_build_id;
26765 else
26766 enable_linker_build_id=no
26770 if test x"$enable_linker_build_id" = xyes; then
26771 if test x"$gcc_cv_ld_buildid" = xyes; then
26773 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26775 else
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26777 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26781 # In binutils 2.21, GNU ld gained support for new emulations fully
26782 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26784 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26785 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26786 $as_echo_n "(cached) " >&6
26787 else
26788 gcc_cv_ld_sol2_emulation=no
26789 if test $in_tree_ld = yes ; then
26790 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26791 "$gcc_cv_gld_minor_version" -ge 21 -o \
26792 "$gcc_cv_gld_major_version" -gt 2 \
26793 && test $in_tree_ld_is_elf = yes; then
26794 gcc_cv_ld_sol2_emulation=yes
26796 elif test x$gcc_cv_ld != x; then
26797 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26798 grep _sol2 > /dev/null; then
26799 gcc_cv_ld_sol2_emulation=yes
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26804 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26805 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26807 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26812 $as_echo_n "checking linker --sysroot support... " >&6; }
26813 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26816 gcc_cv_ld_sysroot=no
26817 if test $in_tree_ld = yes ; then
26818 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
26819 gcc_cv_ld_sysroot=yes
26821 elif test x$gcc_cv_ld != x; then
26822 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26823 gcc_cv_ld_sysroot=yes
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26828 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26829 if test x"$gcc_cv_ld_sysroot" = xyes; then
26831 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26835 if test x$with_sysroot = x && test x$host = x$target \
26836 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26837 && test "$prefix" != "NONE"; then
26839 cat >>confdefs.h <<_ACEOF
26840 #define PREFIX_INCLUDE_DIR "$prefix/include"
26841 _ACEOF
26845 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26846 if test "x$with_headers" != x; then
26847 target_header_dir=$with_headers
26848 elif test "x$with_sysroot" = x; then
26849 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26850 elif test "x$with_build_sysroot" != "x"; then
26851 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26852 elif test "x$with_sysroot" = xyes; then
26853 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26854 else
26855 target_header_dir="${with_sysroot}${native_system_header_dir}"
26857 else
26858 target_header_dir=${native_system_header_dir}
26861 # Test for stack protector support in target C library.
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26863 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26864 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26865 $as_echo_n "(cached) " >&6
26866 else
26867 gcc_cv_libc_provides_ssp=no
26868 case "$target" in
26869 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26870 # glibc 2.4 and later provides __stack_chk_fail and
26871 # either __stack_chk_guard, or TLS access to stack guard canary.
26872 if test -f $target_header_dir/features.h \
26873 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26874 $target_header_dir/features.h > /dev/null; then
26875 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26876 $target_header_dir/features.h > /dev/null; then
26877 gcc_cv_libc_provides_ssp=yes
26878 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26879 $target_header_dir/features.h > /dev/null \
26880 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26881 $target_header_dir/features.h > /dev/null; then
26882 gcc_cv_libc_provides_ssp=yes
26883 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26884 $target_header_dir/features.h > /dev/null && \
26885 test -f $target_header_dir/bits/uClibc_config.h && \
26886 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26887 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26888 gcc_cv_libc_provides_ssp=yes
26890 # all versions of Bionic support stack protector
26891 elif test -f $target_header_dir/sys/cdefs.h \
26892 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26893 $target_header_dir/sys/cdefs.h > /dev/null; then
26894 gcc_cv_libc_provides_ssp=yes
26897 *-*-gnu*)
26898 # Avoid complicated tests (see
26899 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26900 # simply assert that glibc does provide this, which is true for all
26901 # realistically usable GNU/Hurd configurations.
26902 gcc_cv_libc_provides_ssp=yes;;
26903 *-*-darwin* | *-*-freebsd*)
26904 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26905 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26906 gcc_cv_libc_provides_ssp=yes
26907 else
26908 echo "no __stack_chk_fail on this target"
26912 *) gcc_cv_libc_provides_ssp=no ;;
26913 esac
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26916 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26918 if test x$gcc_cv_libc_provides_ssp = xyes; then
26920 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26924 # Test for <sys/sdt.h> on the target.
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26927 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26928 have_sys_sdt_h=no
26929 if test -f $target_header_dir/sys/sdt.h; then
26930 have_sys_sdt_h=yes
26932 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26936 $as_echo "$have_sys_sdt_h" >&6; }
26938 # Check if TFmode long double should be used by default or not.
26939 # Some glibc targets used DFmode long double, but with glibc 2.4
26940 # and later they can use TFmode.
26941 case "$target" in
26942 powerpc*-*-linux* | \
26943 sparc*-*-linux* | \
26944 s390*-*-linux* | \
26945 alpha*-*-linux*)
26947 # Check whether --with-long-double-128 was given.
26948 if test "${with_long_double_128+set}" = set; then :
26949 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26950 else
26951 gcc_cv_target_ldbl128=no
26952 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26953 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26954 && gcc_cv_target_ldbl128=yes
26959 esac
26960 if test x$gcc_cv_target_ldbl128 = xyes; then
26962 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26967 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26968 gcc_cv_target_dl_iterate_phdr=unknown
26969 case "$target" in
26970 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26971 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26972 # libdl there, both complicating its use and breaking compatibility
26973 # between Solaris 10 updates.
26974 *-*-solaris2.1[1-9]*)
26975 # <link.h> needs both a dl_iterate_phdr declaration and support for
26976 # compilation with largefile support.
26977 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26978 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26979 gcc_cv_target_dl_iterate_phdr=yes
26980 else
26981 gcc_cv_target_dl_iterate_phdr=no
26984 esac
26986 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26988 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26992 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26994 # We no longer support different GC mechanisms. Emit an error if
26995 # the user configures with --with-gc.
26997 # Check whether --with-gc was given.
26998 if test "${with_gc+set}" = set; then :
26999 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27003 # Libraries to use on the host. This will normally be set by the top
27004 # level Makefile. Here we simply capture the value for our Makefile.
27005 if test -z "${HOST_LIBS+set}"; then
27006 HOST_LIBS=
27010 # Use the system's zlib library.
27011 zlibdir=-L../zlib
27012 zlibinc="-I\$(srcdir)/../zlib"
27014 # Check whether --with-system-zlib was given.
27015 if test "${with_system_zlib+set}" = set; then :
27016 withval=$with_system_zlib; zlibdir=
27017 zlibinc=
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27026 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27027 # Check whether --enable-maintainer-mode was given.
27028 if test "${enable_maintainer_mode+set}" = set; then :
27029 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27030 else
27031 maintainer_mode=no
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27036 $as_echo "$maintainer_mode" >&6; }
27038 if test "$maintainer_mode" = "yes"; then
27039 MAINT=''
27040 else
27041 MAINT='#'
27044 # --------------
27045 # Language hooks
27046 # --------------
27048 # Make empty files to contain the specs and options for each language.
27049 # Then add #include lines to for a compiler that has specs and/or options.
27051 subdirs=
27052 lang_opt_files=
27053 lang_specs_files=
27054 lang_tree_files=
27055 # These (without "all_") are set in each config-lang.in.
27056 # `language' must be a single word so is spelled singularly.
27057 all_languages=
27058 all_compilers=
27059 all_outputs='Makefile'
27060 # List of language makefile fragments.
27061 all_lang_makefrags=
27062 # Additional files for gengtype
27063 all_gtfiles="$target_gtfiles"
27065 # These are the languages that are set in --enable-languages,
27066 # and are available in the GCC tree.
27067 all_selected_languages=
27069 # Add the language fragments.
27070 # Languages are added via two mechanisms. Some information must be
27071 # recorded in makefile variables, these are defined in config-lang.in.
27072 # We accumulate them and plug them into the main Makefile.
27073 # The other mechanism is a set of hooks for each of the main targets
27074 # like `clean', `install', etc.
27076 language_hooks="Make-hooks"
27078 for lang in ${srcdir}/*/config-lang.in
27080 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27082 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27083 if test "x$lang_alias" = x
27084 then
27085 echo "$lang doesn't set \$language." 1>&2
27086 exit 1
27088 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27089 subdirs="$subdirs $subdir"
27091 # $gcc_subdir is where the gcc integration files are to be found
27092 # for a language, both for internal compiler purposes (compiler
27093 # sources implementing front-end to GCC tree converters), and for
27094 # build infrastructure purposes (Make-lang.in, etc.)
27096 # This will be <subdir> (relative to $srcdir) if a line like
27097 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27098 # is found in <langdir>/config-lang.in, and will remain <langdir>
27099 # otherwise.
27101 # Except for the language alias (fetched above), the regular
27102 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27103 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27104 # only this and the language alias.
27106 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27107 if [ "$gcc_subdir" = "" ]; then
27108 gcc_subdir="$subdir"
27111 case ",$enable_languages," in
27112 *,$lang_alias,*)
27113 all_selected_languages="$all_selected_languages $lang_alias"
27114 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27115 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27118 esac
27120 language=
27121 boot_language=
27122 compilers=
27123 outputs=
27124 gtfiles=
27125 subdir_requires=
27126 . ${srcdir}/$gcc_subdir/config-lang.in
27127 if test "x$language" = x
27128 then
27129 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27130 exit 1
27133 ok=:
27134 case ",$enable_languages," in
27135 *,$lang_alias,*) ;;
27137 for i in $subdir_requires; do
27138 test -f "${srcdir}/$i/config-lang.in" && continue
27139 ok=false
27140 break
27141 done
27143 esac
27144 $ok || continue
27146 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27147 if test -f $srcdir/$gcc_subdir/lang.opt; then
27148 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27149 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27151 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27152 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27154 all_languages="$all_languages $language"
27155 all_compilers="$all_compilers $compilers"
27156 all_outputs="$all_outputs $outputs"
27157 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27158 case ",$enable_languages," in
27159 *,lto,*)
27161 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27163 enable_lto=yes
27166 *) ;;
27167 esac
27168 done
27170 check_languages=
27171 for language in $all_selected_languages
27173 check_languages="$check_languages check-$language"
27174 done
27176 # We link each language in with a set of hooks, reached indirectly via
27177 # lang.${target}. Only do so for selected languages.
27179 rm -f Make-hooks
27180 touch Make-hooks
27181 target_list="all.cross start.encap rest.encap tags \
27182 install-common install-man install-info install-pdf install-html dvi \
27183 pdf html uninstall info man srcextra srcman srcinfo \
27184 mostlyclean clean distclean maintainer-clean install-plugin"
27186 for t in $target_list
27189 for lang in $all_selected_languages
27191 x="$x $lang.$t"
27192 done
27193 echo "lang.$t: $x" >> Make-hooks
27194 done
27196 # --------
27197 # Option include files
27198 # --------
27200 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27201 option_includes="option-includes.mk"
27204 # --------
27205 # UNSORTED
27206 # --------
27208 # Create .gdbinit.
27210 echo "dir ." > .gdbinit
27211 echo "dir ${srcdir}" >> .gdbinit
27212 if test x$gdb_needs_out_file_path = xyes
27213 then
27214 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27216 if test "x$subdirs" != x; then
27217 for s in $subdirs
27219 echo "dir ${srcdir}/$s" >> .gdbinit
27220 done
27222 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27224 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27228 # Find a directory in which to install a shared libgcc.
27230 # Check whether --enable-version-specific-runtime-libs was given.
27231 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27232 enableval=$enable_version_specific_runtime_libs;
27236 # Set default prefix canonicalization.
27238 # Check whether --enable-canonical-prefixes was given.
27239 if test "${enable_canonical_prefixes+set}" = set; then :
27240 enableval=$enable_canonical_prefixes;
27241 else
27242 enable_canonical_prefixes=yes
27245 if test x"$enable_canonical_prefixes" = xyes; then
27247 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27251 # Substitute configuration variables
27314 # Echo link setup.
27315 if test x${build} = x${host} ; then
27316 if test x${host} = x${target} ; then
27317 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27318 else
27319 echo "Links are now set up to build a cross-compiler" 1>&2
27320 echo " from ${host} to ${target}." 1>&2
27322 else
27323 if test x${host} = x${target} ; then
27324 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27325 echo " for ${target}." 1>&2
27326 else
27327 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27328 echo " from ${host} to ${target}." 1>&2
27340 if test "x${CLOOGLIBS}" != "x" ; then
27342 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27346 # Check for plugin support
27347 # Check whether --enable-plugin was given.
27348 if test "${enable_plugin+set}" = set; then :
27349 enableval=$enable_plugin; enable_plugin=$enableval
27350 else
27351 enable_plugin=yes; default_plugin=yes
27355 pluginlibs=
27357 case "${host}" in
27358 *-*-darwin*)
27359 if test x$build = x$host; then
27360 export_sym_check="nm${exeext} -g"
27361 elif test x$host = x$target; then
27362 export_sym_check="$gcc_cv_nm -g"
27363 else
27364 export_sym_check=
27368 if test x$build = x$host; then
27369 export_sym_check="objdump${exeext} -T"
27370 elif test x$host = x$target; then
27371 export_sym_check="$gcc_cv_objdump -T"
27372 else
27373 export_sym_check=
27376 esac
27378 if test x"$enable_plugin" = x"yes"; then
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27381 $as_echo_n "checking for exported symbols... " >&6; }
27382 if test "x$export_sym_check" != x; then
27383 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27384 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27385 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27386 : # No need to use a flag
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27388 $as_echo "yes" >&6; }
27389 else
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27391 $as_echo "yes" >&6; }
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27393 $as_echo_n "checking for -rdynamic... " >&6; }
27394 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27395 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27396 plugin_rdynamic=yes
27397 pluginlibs="-rdynamic"
27398 else
27399 plugin_rdynamic=no
27400 enable_plugin=no
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27403 $as_echo "$plugin_rdynamic" >&6; }
27405 else
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27407 $as_echo "unable to check" >&6; }
27410 # Check -ldl
27411 saved_LIBS="$LIBS"
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27413 $as_echo_n "checking for library containing dlopen... " >&6; }
27414 if test "${ac_cv_search_dlopen+set}" = set; then :
27415 $as_echo_n "(cached) " >&6
27416 else
27417 ac_func_search_save_LIBS=$LIBS
27418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27419 /* end confdefs.h. */
27421 /* Override any GCC internal prototype to avoid an error.
27422 Use char because int might match the return type of a GCC
27423 builtin and then its argument prototype would still apply. */
27424 #ifdef __cplusplus
27425 extern "C"
27426 #endif
27427 char dlopen ();
27429 main ()
27431 return dlopen ();
27433 return 0;
27435 _ACEOF
27436 for ac_lib in '' dl; do
27437 if test -z "$ac_lib"; then
27438 ac_res="none required"
27439 else
27440 ac_res=-l$ac_lib
27441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27443 if ac_fn_c_try_link "$LINENO"; then :
27444 ac_cv_search_dlopen=$ac_res
27446 rm -f core conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext
27448 if test "${ac_cv_search_dlopen+set}" = set; then :
27449 break
27451 done
27452 if test "${ac_cv_search_dlopen+set}" = set; then :
27454 else
27455 ac_cv_search_dlopen=no
27457 rm conftest.$ac_ext
27458 LIBS=$ac_func_search_save_LIBS
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27461 $as_echo "$ac_cv_search_dlopen" >&6; }
27462 ac_res=$ac_cv_search_dlopen
27463 if test "$ac_res" != no; then :
27464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27468 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27469 pluginlibs="$pluginlibs -ldl"
27471 LIBS="$saved_LIBS"
27473 # Check that we can build shared objects with -fPIC -shared
27474 saved_LDFLAGS="$LDFLAGS"
27475 saved_CFLAGS="$CFLAGS"
27476 case "${host}" in
27477 *-*-darwin*)
27478 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27479 CFLAGS="$CFLAGS -fPIC"
27480 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27483 CFLAGS="$CFLAGS -fPIC"
27484 LDFLAGS="$LDFLAGS -fPIC -shared"
27486 esac
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27488 $as_echo_n "checking for -fPIC -shared... " >&6; }
27489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27490 /* end confdefs.h. */
27491 extern int X;
27493 main ()
27495 return X == 0;
27497 return 0;
27499 _ACEOF
27500 if ac_fn_c_try_link "$LINENO"; then :
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27502 $as_echo "yes" >&6; }; have_pic_shared=yes
27503 else
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27505 $as_echo "no" >&6; }; have_pic_shared=no
27507 rm -f core conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
27509 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27510 pluginlibs=
27511 enable_plugin=no
27513 LDFLAGS="$saved_LDFLAGS"
27514 CFLAGS="$saved_CFLAGS"
27516 # If plugin support had been requested but not available, fail.
27517 if test x"$enable_plugin" = x"no" ; then
27518 if test x"$default_plugin" != x"yes"; then
27519 as_fn_error "
27520 Building GCC with plugin support requires a host that supports
27521 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27528 if test x"$enable_plugin" = x"yes"; then
27530 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27535 # Check whether --enable-libquadmath-support was given.
27536 if test "${enable_libquadmath_support+set}" = set; then :
27537 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27538 else
27539 ENABLE_LIBQUADMATH_SUPPORT=yes
27542 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27544 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27549 warn_frame_larger_than_extra_text=
27551 # Check whether --with-warn-frame-larger-than-extra-text was given.
27552 if test "${with_warn_frame_larger_than_extra_text+set}" = set; then :
27553 withval=$with_warn_frame_larger_than_extra_text; case "${withval}" in
27554 yes) as_fn_error "bad value ${withval} given for frame size warning text" "$LINENO" 5 ;;
27555 no) ;;
27556 *) warn_frame_larger_than_extra_text="$withval" ;;
27557 esac
27561 cat >>confdefs.h <<_ACEOF
27562 #define WARN_FRAME_LARGER_THAN_EXTRA_TEXT "$warn_frame_larger_than_extra_text"
27563 _ACEOF
27567 # Specify what hash style to use by default.
27569 # Check whether --with-linker-hash-style was given.
27570 if test "${with_linker_hash_style+set}" = set; then :
27571 withval=$with_linker_hash_style; case x"$withval" in
27572 xsysv)
27573 LINKER_HASH_STYLE=sysv
27575 xgnu)
27576 LINKER_HASH_STYLE=gnu
27578 xboth)
27579 LINKER_HASH_STYLE=both
27582 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27584 esac
27585 else
27586 LINKER_HASH_STYLE=''
27589 if test x"${LINKER_HASH_STYLE}" != x; then
27591 cat >>confdefs.h <<_ACEOF
27592 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27593 _ACEOF
27597 # Configure the subdirectories
27598 # AC_CONFIG_SUBDIRS($subdirs)
27600 # Create the Makefile
27601 # and configure language subdirectories
27602 ac_config_files="$ac_config_files $all_outputs"
27605 ac_config_commands="$ac_config_commands default"
27607 cat >confcache <<\_ACEOF
27608 # This file is a shell script that caches the results of configure
27609 # tests run on this system so they can be shared between configure
27610 # scripts and configure runs, see configure's option --config-cache.
27611 # It is not useful on other systems. If it contains results you don't
27612 # want to keep, you may remove or edit it.
27614 # config.status only pays attention to the cache file if you give it
27615 # the --recheck option to rerun configure.
27617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27619 # following values.
27621 _ACEOF
27623 # The following way of writing the cache mishandles newlines in values,
27624 # but we know of no workaround that is simple, portable, and efficient.
27625 # So, we kill variables containing newlines.
27626 # Ultrix sh set writes to stderr and can't be redirected directly,
27627 # and sets the high bit in the cache file unless we assign to the vars.
27629 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27630 eval ac_val=\$$ac_var
27631 case $ac_val in #(
27632 *${as_nl}*)
27633 case $ac_var in #(
27634 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27636 esac
27637 case $ac_var in #(
27638 _ | IFS | as_nl) ;; #(
27639 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27640 *) { eval $ac_var=; unset $ac_var;} ;;
27641 esac ;;
27642 esac
27643 done
27645 (set) 2>&1 |
27646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27647 *${as_nl}ac_space=\ *)
27648 # `set' does not quote correctly, so add quotes: double-quote
27649 # substitution turns \\\\ into \\, and sed turns \\ into \.
27650 sed -n \
27651 "s/'/'\\\\''/g;
27652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27653 ;; #(
27655 # `set' quotes correctly as required by POSIX, so do not add quotes.
27656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27658 esac |
27659 sort
27661 sed '
27662 /^ac_cv_env_/b end
27663 t clear
27664 :clear
27665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27666 t end
27667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27668 :end' >>confcache
27669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27670 if test -w "$cache_file"; then
27671 test "x$cache_file" != "x/dev/null" &&
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27673 $as_echo "$as_me: updating cache $cache_file" >&6;}
27674 cat confcache >$cache_file
27675 else
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27677 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27680 rm -f confcache
27682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27683 # Let make expand exec_prefix.
27684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27686 DEFS=-DHAVE_CONFIG_H
27688 ac_libobjs=
27689 ac_ltlibobjs=
27690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27691 # 1. Remove the extension, and $U if already installed.
27692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27695 # will be set to the directory where LIBOBJS objects are built.
27696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27698 done
27699 LIBOBJS=$ac_libobjs
27701 LTLIBOBJS=$ac_ltlibobjs
27706 : ${CONFIG_STATUS=./config.status}
27707 ac_write_fail=0
27708 ac_clean_files_save=$ac_clean_files
27709 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27711 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27712 as_write_fail=0
27713 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27714 #! $SHELL
27715 # Generated by $as_me.
27716 # Run this file to recreate the current configuration.
27717 # Compiler output produced by configure, useful for debugging
27718 # configure, is in config.log if it exists.
27720 debug=false
27721 ac_cs_recheck=false
27722 ac_cs_silent=false
27724 SHELL=\${CONFIG_SHELL-$SHELL}
27725 export SHELL
27726 _ASEOF
27727 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27728 ## -------------------- ##
27729 ## M4sh Initialization. ##
27730 ## -------------------- ##
27732 # Be more Bourne compatible
27733 DUALCASE=1; export DUALCASE # for MKS sh
27734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27735 emulate sh
27736 NULLCMD=:
27737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27738 # is contrary to our usage. Disable this feature.
27739 alias -g '${1+"$@"}'='"$@"'
27740 setopt NO_GLOB_SUBST
27741 else
27742 case `(set -o) 2>/dev/null` in #(
27743 *posix*) :
27744 set -o posix ;; #(
27745 *) :
27747 esac
27751 as_nl='
27753 export as_nl
27754 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27755 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27757 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27758 # Prefer a ksh shell builtin over an external printf program on Solaris,
27759 # but without wasting forks for bash or zsh.
27760 if test -z "$BASH_VERSION$ZSH_VERSION" \
27761 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27762 as_echo='print -r --'
27763 as_echo_n='print -rn --'
27764 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27765 as_echo='printf %s\n'
27766 as_echo_n='printf %s'
27767 else
27768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27770 as_echo_n='/usr/ucb/echo -n'
27771 else
27772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27773 as_echo_n_body='eval
27774 arg=$1;
27775 case $arg in #(
27776 *"$as_nl"*)
27777 expr "X$arg" : "X\\(.*\\)$as_nl";
27778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27779 esac;
27780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27782 export as_echo_n_body
27783 as_echo_n='sh -c $as_echo_n_body as_echo'
27785 export as_echo_body
27786 as_echo='sh -c $as_echo_body as_echo'
27789 # The user is always right.
27790 if test "${PATH_SEPARATOR+set}" != set; then
27791 PATH_SEPARATOR=:
27792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27794 PATH_SEPARATOR=';'
27799 # IFS
27800 # We need space, tab and new line, in precisely that order. Quoting is
27801 # there to prevent editors from complaining about space-tab.
27802 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27803 # splitting by setting IFS to empty value.)
27804 IFS=" "" $as_nl"
27806 # Find who we are. Look in the path if we contain no directory separator.
27807 case $0 in #((
27808 *[\\/]* ) as_myself=$0 ;;
27809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27810 for as_dir in $PATH
27812 IFS=$as_save_IFS
27813 test -z "$as_dir" && as_dir=.
27814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27815 done
27816 IFS=$as_save_IFS
27819 esac
27820 # We did not find ourselves, most probably we were run as `sh COMMAND'
27821 # in which case we are not to be found in the path.
27822 if test "x$as_myself" = x; then
27823 as_myself=$0
27825 if test ! -f "$as_myself"; then
27826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27827 exit 1
27830 # Unset variables that we do not need and which cause bugs (e.g. in
27831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27832 # suppresses any "Segmentation fault" message there. '((' could
27833 # trigger a bug in pdksh 5.2.14.
27834 for as_var in BASH_ENV ENV MAIL MAILPATH
27835 do eval test x\${$as_var+set} = xset \
27836 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27837 done
27838 PS1='$ '
27839 PS2='> '
27840 PS4='+ '
27842 # NLS nuisances.
27843 LC_ALL=C
27844 export LC_ALL
27845 LANGUAGE=C
27846 export LANGUAGE
27848 # CDPATH.
27849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27852 # as_fn_error ERROR [LINENO LOG_FD]
27853 # ---------------------------------
27854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27856 # script with status $?, using 1 if that was 0.
27857 as_fn_error ()
27859 as_status=$?; test $as_status -eq 0 && as_status=1
27860 if test "$3"; then
27861 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27864 $as_echo "$as_me: error: $1" >&2
27865 as_fn_exit $as_status
27866 } # as_fn_error
27869 # as_fn_set_status STATUS
27870 # -----------------------
27871 # Set $? to STATUS, without forking.
27872 as_fn_set_status ()
27874 return $1
27875 } # as_fn_set_status
27877 # as_fn_exit STATUS
27878 # -----------------
27879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27880 as_fn_exit ()
27882 set +e
27883 as_fn_set_status $1
27884 exit $1
27885 } # as_fn_exit
27887 # as_fn_unset VAR
27888 # ---------------
27889 # Portably unset VAR.
27890 as_fn_unset ()
27892 { eval $1=; unset $1;}
27894 as_unset=as_fn_unset
27895 # as_fn_append VAR VALUE
27896 # ----------------------
27897 # Append the text in VALUE to the end of the definition contained in VAR. Take
27898 # advantage of any shell optimizations that allow amortized linear growth over
27899 # repeated appends, instead of the typical quadratic growth present in naive
27900 # implementations.
27901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27902 eval 'as_fn_append ()
27904 eval $1+=\$2
27906 else
27907 as_fn_append ()
27909 eval $1=\$$1\$2
27911 fi # as_fn_append
27913 # as_fn_arith ARG...
27914 # ------------------
27915 # Perform arithmetic evaluation on the ARGs, and store the result in the
27916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27917 # must be portable across $(()) and expr.
27918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27919 eval 'as_fn_arith ()
27921 as_val=$(( $* ))
27923 else
27924 as_fn_arith ()
27926 as_val=`expr "$@" || test $? -eq 1`
27928 fi # as_fn_arith
27931 if expr a : '\(a\)' >/dev/null 2>&1 &&
27932 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27933 as_expr=expr
27934 else
27935 as_expr=false
27938 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27939 as_basename=basename
27940 else
27941 as_basename=false
27944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27945 as_dirname=dirname
27946 else
27947 as_dirname=false
27950 as_me=`$as_basename -- "$0" ||
27951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27952 X"$0" : 'X\(//\)$' \| \
27953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27954 $as_echo X/"$0" |
27955 sed '/^.*\/\([^/][^/]*\)\/*$/{
27956 s//\1/
27959 /^X\/\(\/\/\)$/{
27960 s//\1/
27963 /^X\/\(\/\).*/{
27964 s//\1/
27967 s/.*/./; q'`
27969 # Avoid depending upon Character Ranges.
27970 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27971 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27972 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27973 as_cr_digits='0123456789'
27974 as_cr_alnum=$as_cr_Letters$as_cr_digits
27976 ECHO_C= ECHO_N= ECHO_T=
27977 case `echo -n x` in #(((((
27978 -n*)
27979 case `echo 'xy\c'` in
27980 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27981 xy) ECHO_C='\c';;
27982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27983 ECHO_T=' ';;
27984 esac;;
27986 ECHO_N='-n';;
27987 esac
27989 rm -f conf$$ conf$$.exe conf$$.file
27990 if test -d conf$$.dir; then
27991 rm -f conf$$.dir/conf$$.file
27992 else
27993 rm -f conf$$.dir
27994 mkdir conf$$.dir 2>/dev/null
27996 if (echo >conf$$.file) 2>/dev/null; then
27997 if ln -s conf$$.file conf$$ 2>/dev/null; then
27998 as_ln_s='ln -s'
27999 # ... but there are two gotchas:
28000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28002 # In both cases, we have to default to `cp -p'.
28003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28004 as_ln_s='cp -p'
28005 elif ln conf$$.file conf$$ 2>/dev/null; then
28006 as_ln_s=ln
28007 else
28008 as_ln_s='cp -p'
28010 else
28011 as_ln_s='cp -p'
28013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28014 rmdir conf$$.dir 2>/dev/null
28017 # as_fn_mkdir_p
28018 # -------------
28019 # Create "$as_dir" as a directory, including parents if necessary.
28020 as_fn_mkdir_p ()
28023 case $as_dir in #(
28024 -*) as_dir=./$as_dir;;
28025 esac
28026 test -d "$as_dir" || eval $as_mkdir_p || {
28027 as_dirs=
28028 while :; do
28029 case $as_dir in #(
28030 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28031 *) as_qdir=$as_dir;;
28032 esac
28033 as_dirs="'$as_qdir' $as_dirs"
28034 as_dir=`$as_dirname -- "$as_dir" ||
28035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28036 X"$as_dir" : 'X\(//\)[^/]' \| \
28037 X"$as_dir" : 'X\(//\)$' \| \
28038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28039 $as_echo X"$as_dir" |
28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28041 s//\1/
28044 /^X\(\/\/\)[^/].*/{
28045 s//\1/
28048 /^X\(\/\/\)$/{
28049 s//\1/
28052 /^X\(\/\).*/{
28053 s//\1/
28056 s/.*/./; q'`
28057 test -d "$as_dir" && break
28058 done
28059 test -z "$as_dirs" || eval "mkdir $as_dirs"
28060 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28063 } # as_fn_mkdir_p
28064 if mkdir -p . 2>/dev/null; then
28065 as_mkdir_p='mkdir -p "$as_dir"'
28066 else
28067 test -d ./-p && rmdir ./-p
28068 as_mkdir_p=false
28071 if test -x / >/dev/null 2>&1; then
28072 as_test_x='test -x'
28073 else
28074 if ls -dL / >/dev/null 2>&1; then
28075 as_ls_L_option=L
28076 else
28077 as_ls_L_option=
28079 as_test_x='
28080 eval sh -c '\''
28081 if test -d "$1"; then
28082 test -d "$1/.";
28083 else
28084 case $1 in #(
28085 -*)set "./$1";;
28086 esac;
28087 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28088 ???[sx]*):;;*)false;;esac;fi
28089 '\'' sh
28092 as_executable_p=$as_test_x
28094 # Sed expression to map a string onto a valid CPP name.
28095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28097 # Sed expression to map a string onto a valid variable name.
28098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28101 exec 6>&1
28102 ## ----------------------------------- ##
28103 ## Main body of $CONFIG_STATUS script. ##
28104 ## ----------------------------------- ##
28105 _ASEOF
28106 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28109 # Save the log message, to keep $0 and so on meaningful, and to
28110 # report actual input values of CONFIG_FILES etc. instead of their
28111 # values after options handling.
28112 ac_log="
28113 This file was extended by $as_me, which was
28114 generated by GNU Autoconf 2.64. Invocation command line was
28116 CONFIG_FILES = $CONFIG_FILES
28117 CONFIG_HEADERS = $CONFIG_HEADERS
28118 CONFIG_LINKS = $CONFIG_LINKS
28119 CONFIG_COMMANDS = $CONFIG_COMMANDS
28120 $ $0 $@
28122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28125 _ACEOF
28127 case $ac_config_files in *"
28128 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28129 esac
28131 case $ac_config_headers in *"
28132 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28133 esac
28136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28137 # Files that config.status was made for.
28138 config_files="$ac_config_files"
28139 config_headers="$ac_config_headers"
28140 config_commands="$ac_config_commands"
28142 _ACEOF
28144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28145 ac_cs_usage="\
28146 \`$as_me' instantiates files and other configuration actions
28147 from templates according to the current configuration. Unless the files
28148 and actions are specified as TAGs, all are instantiated by default.
28150 Usage: $0 [OPTION]... [TAG]...
28152 -h, --help print this help, then exit
28153 -V, --version print version number and configuration settings, then exit
28154 -q, --quiet, --silent
28155 do not print progress messages
28156 -d, --debug don't remove temporary files
28157 --recheck update $as_me by reconfiguring in the same conditions
28158 --file=FILE[:TEMPLATE]
28159 instantiate the configuration file FILE
28160 --header=FILE[:TEMPLATE]
28161 instantiate the configuration header FILE
28163 Configuration files:
28164 $config_files
28166 Configuration headers:
28167 $config_headers
28169 Configuration commands:
28170 $config_commands
28172 Report bugs to the package provider."
28174 _ACEOF
28175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28176 ac_cs_version="\\
28177 config.status
28178 configured by $0, generated by GNU Autoconf 2.64,
28179 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28181 Copyright (C) 2009 Free Software Foundation, Inc.
28182 This config.status script is free software; the Free Software Foundation
28183 gives unlimited permission to copy, distribute and modify it."
28185 ac_pwd='$ac_pwd'
28186 srcdir='$srcdir'
28187 AWK='$AWK'
28188 test -n "\$AWK" || AWK=awk
28189 _ACEOF
28191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28192 # The default lists apply if the user does not specify any file.
28193 ac_need_defaults=:
28194 while test $# != 0
28196 case $1 in
28197 --*=*)
28198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28199 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28200 ac_shift=:
28203 ac_option=$1
28204 ac_optarg=$2
28205 ac_shift=shift
28207 esac
28209 case $ac_option in
28210 # Handling of the options.
28211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28212 ac_cs_recheck=: ;;
28213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28214 $as_echo "$ac_cs_version"; exit ;;
28215 --debug | --debu | --deb | --de | --d | -d )
28216 debug=: ;;
28217 --file | --fil | --fi | --f )
28218 $ac_shift
28219 case $ac_optarg in
28220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28221 esac
28222 as_fn_append CONFIG_FILES " '$ac_optarg'"
28223 ac_need_defaults=false;;
28224 --header | --heade | --head | --hea )
28225 $ac_shift
28226 case $ac_optarg in
28227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28228 esac
28229 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28230 ac_need_defaults=false;;
28231 --he | --h)
28232 # Conflict between --help and --header
28233 as_fn_error "ambiguous option: \`$1'
28234 Try \`$0 --help' for more information.";;
28235 --help | --hel | -h )
28236 $as_echo "$ac_cs_usage"; exit ;;
28237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28238 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28239 ac_cs_silent=: ;;
28241 # This is an error.
28242 -*) as_fn_error "unrecognized option: \`$1'
28243 Try \`$0 --help' for more information." ;;
28245 *) as_fn_append ac_config_targets " $1"
28246 ac_need_defaults=false ;;
28248 esac
28249 shift
28250 done
28252 ac_configure_extra_args=
28254 if $ac_cs_silent; then
28255 exec 6>/dev/null
28256 ac_configure_extra_args="$ac_configure_extra_args --silent"
28259 _ACEOF
28260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28261 if \$ac_cs_recheck; then
28262 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28263 shift
28264 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28265 CONFIG_SHELL='$SHELL'
28266 export CONFIG_SHELL
28267 exec "\$@"
28270 _ACEOF
28271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28272 exec 5>>config.log
28274 echo
28275 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28276 ## Running $as_me. ##
28277 _ASBOX
28278 $as_echo "$ac_log"
28279 } >&5
28281 _ACEOF
28282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28284 # INIT-COMMANDS
28286 subdirs='$subdirs'
28288 _ACEOF
28290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28292 # Handling of arguments.
28293 for ac_config_target in $ac_config_targets
28295 case $ac_config_target in
28296 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28297 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28298 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28299 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28300 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28301 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28303 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28304 esac
28305 done
28308 # If the user did not use the arguments to specify the items to instantiate,
28309 # then the envvar interface is used. Set only those that are not.
28310 # We use the long form for the default assignment because of an extremely
28311 # bizarre bug on SunOS 4.1.3.
28312 if $ac_need_defaults; then
28313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28318 # Have a temporary directory for convenience. Make it in the build tree
28319 # simply because there is no reason against having it here, and in addition,
28320 # creating and moving files from /tmp can sometimes cause problems.
28321 # Hook for its removal unless debugging.
28322 # Note that there is a small window in which the directory will not be cleaned:
28323 # after its creation but before its name has been assigned to `$tmp'.
28324 $debug ||
28326 tmp=
28327 trap 'exit_status=$?
28328 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28330 trap 'as_fn_exit 1' 1 2 13 15
28332 # Create a (secure) tmp directory for tmp files.
28335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28336 test -n "$tmp" && test -d "$tmp"
28337 } ||
28339 tmp=./conf$$-$RANDOM
28340 (umask 077 && mkdir "$tmp")
28341 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28343 # Set up the scripts for CONFIG_FILES section.
28344 # No need to generate them if there are no CONFIG_FILES.
28345 # This happens for instance with `./config.status config.h'.
28346 if test -n "$CONFIG_FILES"; then
28348 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28349 ac_cs_awk_getline=:
28350 ac_cs_awk_pipe_init=
28351 ac_cs_awk_read_file='
28352 while ((getline aline < (F[key])) > 0)
28353 print(aline)
28354 close(F[key])'
28355 ac_cs_awk_pipe_fini=
28356 else
28357 ac_cs_awk_getline=false
28358 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28359 ac_cs_awk_read_file='
28360 print "|#_!!_#|"
28361 print "cat " F[key] " &&"
28362 '$ac_cs_awk_pipe_init
28363 # The final `:' finishes the AND list.
28364 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28366 ac_cr=`echo X | tr X '\015'`
28367 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28368 # But we know of no other shell where ac_cr would be empty at this
28369 # point, so we can use a bashism as a fallback.
28370 if test "x$ac_cr" = x; then
28371 eval ac_cr=\$\'\\r\'
28373 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28375 ac_cs_awk_cr='\r'
28376 else
28377 ac_cs_awk_cr=$ac_cr
28380 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28381 _ACEOF
28383 # Create commands to substitute file output variables.
28385 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28386 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28387 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28388 echo "_ACAWK" &&
28389 echo "_ACEOF"
28390 } >conf$$files.sh &&
28391 . ./conf$$files.sh ||
28392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28393 rm -f conf$$files.sh
28396 echo "cat >conf$$subs.awk <<_ACEOF" &&
28397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28398 echo "_ACEOF"
28399 } >conf$$subs.sh ||
28400 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28401 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28402 ac_delim='%!_!# '
28403 for ac_last_try in false false false false false :; do
28404 . ./conf$$subs.sh ||
28405 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28407 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28408 if test $ac_delim_n = $ac_delim_num; then
28409 break
28410 elif $ac_last_try; then
28411 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28412 else
28413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28415 done
28416 rm -f conf$$subs.sh
28418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28419 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28420 _ACEOF
28421 sed -n '
28423 s/^/S["/; s/!.*/"]=/
28426 s/^[^!]*!//
28427 :repl
28428 t repl
28429 s/'"$ac_delim"'$//
28430 t delim
28433 s/\(.\{148\}\).*/\1/
28434 t more1
28435 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28438 b repl
28439 :more1
28440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28443 s/.\{148\}//
28444 t nl
28445 :delim
28447 s/\(.\{148\}\).*/\1/
28448 t more2
28449 s/["\\]/\\&/g; s/^/"/; s/$/"/
28452 :more2
28453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28456 s/.\{148\}//
28457 t delim
28458 ' <conf$$subs.awk | sed '
28459 /^[^""]/{
28461 s/\n//
28463 ' >>$CONFIG_STATUS || ac_write_fail=1
28464 rm -f conf$$subs.awk
28465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28466 _ACAWK
28467 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28468 for (key in S) S_is_set[key] = 1
28469 FS = "\a"
28470 \$ac_cs_awk_pipe_init
28473 line = $ 0
28474 nfields = split(line, field, "@")
28475 substed = 0
28476 len = length(field[1])
28477 for (i = 2; i < nfields; i++) {
28478 key = field[i]
28479 keylen = length(key)
28480 if (S_is_set[key]) {
28481 value = S[key]
28482 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28483 len += length(value) + length(field[++i])
28484 substed = 1
28485 } else
28486 len += 1 + keylen
28488 if (nfields == 3 && !substed) {
28489 key = field[2]
28490 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28491 \$ac_cs_awk_read_file
28492 next
28495 print line
28497 \$ac_cs_awk_pipe_fini
28498 _ACAWK
28499 _ACEOF
28500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28502 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28503 else
28505 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28506 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28507 _ACEOF
28509 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28510 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28511 # trailing colons and then remove the whole line if VPATH becomes empty
28512 # (actually we leave an empty line to preserve line numbers).
28513 if test "x$srcdir" = x.; then
28514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28515 s/:*\$(srcdir):*/:/
28516 s/:*\${srcdir}:*/:/
28517 s/:*@srcdir@:*/:/
28518 s/^\([^=]*=[ ]*\):*/\1/
28519 s/:*$//
28520 s/^[^=]*=[ ]*$//
28524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28525 fi # test -n "$CONFIG_FILES"
28527 # Set up the scripts for CONFIG_HEADERS section.
28528 # No need to generate them if there are no CONFIG_HEADERS.
28529 # This happens for instance with `./config.status Makefile'.
28530 if test -n "$CONFIG_HEADERS"; then
28531 cat >"$tmp/defines.awk" <<\_ACAWK ||
28532 BEGIN {
28533 _ACEOF
28535 # Transform confdefs.h into an awk script `defines.awk', embedded as
28536 # here-document in config.status, that substitutes the proper values into
28537 # config.h.in to produce config.h.
28539 # Create a delimiter string that does not exist in confdefs.h, to ease
28540 # handling of long lines.
28541 ac_delim='%!_!# '
28542 for ac_last_try in false false :; do
28543 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28544 if test -z "$ac_t"; then
28545 break
28546 elif $ac_last_try; then
28547 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28548 else
28549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28551 done
28553 # For the awk script, D is an array of macro values keyed by name,
28554 # likewise P contains macro parameters if any. Preserve backslash
28555 # newline sequences.
28557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28558 sed -n '
28559 s/.\{148\}/&'"$ac_delim"'/g
28560 t rset
28561 :rset
28562 s/^[ ]*#[ ]*define[ ][ ]*/ /
28563 t def
28565 :def
28566 s/\\$//
28567 t bsnl
28568 s/["\\]/\\&/g
28569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28570 D["\1"]=" \3"/p
28571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28573 :bsnl
28574 s/["\\]/\\&/g
28575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28576 D["\1"]=" \3\\\\\\n"\\/p
28577 t cont
28578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28579 t cont
28581 :cont
28583 s/.\{148\}/&'"$ac_delim"'/g
28584 t clear
28585 :clear
28586 s/\\$//
28587 t bsnlc
28588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28590 :bsnlc
28591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28592 b cont
28593 ' <confdefs.h | sed '
28594 s/'"$ac_delim"'/"\\\
28595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28598 for (key in D) D_is_set[key] = 1
28599 FS = "\a"
28601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28602 line = \$ 0
28603 split(line, arg, " ")
28604 if (arg[1] == "#") {
28605 defundef = arg[2]
28606 mac1 = arg[3]
28607 } else {
28608 defundef = substr(arg[1], 2)
28609 mac1 = arg[2]
28611 split(mac1, mac2, "(") #)
28612 macro = mac2[1]
28613 prefix = substr(line, 1, index(line, defundef) - 1)
28614 if (D_is_set[macro]) {
28615 # Preserve the white space surrounding the "#".
28616 print prefix "define", macro P[macro] D[macro]
28617 next
28618 } else {
28619 # Replace #undef with comments. This is necessary, for example,
28620 # in the case of _POSIX_SOURCE, which is predefined and required
28621 # on some systems where configure will not decide to define it.
28622 if (defundef == "undef") {
28623 print "/*", prefix defundef, macro, "*/"
28624 next
28628 { print }
28629 _ACAWK
28630 _ACEOF
28631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28632 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28633 fi # test -n "$CONFIG_HEADERS"
28636 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28637 shift
28638 for ac_tag
28640 case $ac_tag in
28641 :[FHLC]) ac_mode=$ac_tag; continue;;
28642 esac
28643 case $ac_mode$ac_tag in
28644 :[FHL]*:*);;
28645 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28646 :[FH]-) ac_tag=-:-;;
28647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28648 esac
28649 ac_save_IFS=$IFS
28650 IFS=:
28651 set x $ac_tag
28652 IFS=$ac_save_IFS
28653 shift
28654 ac_file=$1
28655 shift
28657 case $ac_mode in
28658 :L) ac_source=$1;;
28659 :[FH])
28660 ac_file_inputs=
28661 for ac_f
28663 case $ac_f in
28664 -) ac_f="$tmp/stdin";;
28665 *) # Look for the file first in the build tree, then in the source tree
28666 # (if the path is not absolute). The absolute path cannot be DOS-style,
28667 # because $ac_f cannot contain `:'.
28668 test -f "$ac_f" ||
28669 case $ac_f in
28670 [\\/$]*) false;;
28671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28672 esac ||
28673 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28674 esac
28675 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28676 as_fn_append ac_file_inputs " '$ac_f'"
28677 done
28679 # Let's still pretend it is `configure' which instantiates (i.e., don't
28680 # use $as_me), people would be surprised to read:
28681 # /* config.h. Generated by config.status. */
28682 configure_input='Generated from '`
28683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28684 `' by configure.'
28685 if test x"$ac_file" != x-; then
28686 configure_input="$ac_file. $configure_input"
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28688 $as_echo "$as_me: creating $ac_file" >&6;}
28690 # Neutralize special characters interpreted by sed in replacement strings.
28691 case $configure_input in #(
28692 *\&* | *\|* | *\\* )
28693 ac_sed_conf_input=`$as_echo "$configure_input" |
28694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28695 *) ac_sed_conf_input=$configure_input;;
28696 esac
28698 case $ac_tag in
28699 *:-:* | *:-) cat >"$tmp/stdin" \
28700 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28701 esac
28703 esac
28705 ac_dir=`$as_dirname -- "$ac_file" ||
28706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28707 X"$ac_file" : 'X\(//\)[^/]' \| \
28708 X"$ac_file" : 'X\(//\)$' \| \
28709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28710 $as_echo X"$ac_file" |
28711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28712 s//\1/
28715 /^X\(\/\/\)[^/].*/{
28716 s//\1/
28719 /^X\(\/\/\)$/{
28720 s//\1/
28723 /^X\(\/\).*/{
28724 s//\1/
28727 s/.*/./; q'`
28728 as_dir="$ac_dir"; as_fn_mkdir_p
28729 ac_builddir=.
28731 case "$ac_dir" in
28732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28735 # A ".." for each directory in $ac_dir_suffix.
28736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28737 case $ac_top_builddir_sub in
28738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28740 esac ;;
28741 esac
28742 ac_abs_top_builddir=$ac_pwd
28743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28744 # for backward compatibility:
28745 ac_top_builddir=$ac_top_build_prefix
28747 case $srcdir in
28748 .) # We are building in place.
28749 ac_srcdir=.
28750 ac_top_srcdir=$ac_top_builddir_sub
28751 ac_abs_top_srcdir=$ac_pwd ;;
28752 [\\/]* | ?:[\\/]* ) # Absolute name.
28753 ac_srcdir=$srcdir$ac_dir_suffix;
28754 ac_top_srcdir=$srcdir
28755 ac_abs_top_srcdir=$srcdir ;;
28756 *) # Relative name.
28757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28758 ac_top_srcdir=$ac_top_build_prefix$srcdir
28759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28760 esac
28761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28764 case $ac_mode in
28767 # CONFIG_FILE
28770 _ACEOF
28772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28773 # If the template does not know about datarootdir, expand it.
28774 # FIXME: This hack should be removed a few years after 2.60.
28775 ac_datarootdir_hack=; ac_datarootdir_seen=
28776 ac_sed_dataroot='
28777 /datarootdir/ {
28781 /@datadir@/p
28782 /@docdir@/p
28783 /@infodir@/p
28784 /@localedir@/p
28785 /@mandir@/p'
28786 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28787 *datarootdir*) ac_datarootdir_seen=yes;;
28788 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28790 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28791 _ACEOF
28792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28793 ac_datarootdir_hack='
28794 s&@datadir@&$datadir&g
28795 s&@docdir@&$docdir&g
28796 s&@infodir@&$infodir&g
28797 s&@localedir@&$localedir&g
28798 s&@mandir@&$mandir&g
28799 s&\\\${datarootdir}&$datarootdir&g' ;;
28800 esac
28801 _ACEOF
28803 # Neutralize VPATH when `$srcdir' = `.'.
28804 # Shell code in configure.ac might set extrasub.
28805 # FIXME: do we really want to maintain this feature?
28806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28807 ac_sed_extra="$ac_vpsub
28808 $extrasub
28809 _ACEOF
28810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28813 s|@configure_input@|$ac_sed_conf_input|;t t
28814 s&@top_builddir@&$ac_top_builddir_sub&;t t
28815 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28816 s&@srcdir@&$ac_srcdir&;t t
28817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28818 s&@top_srcdir@&$ac_top_srcdir&;t t
28819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28820 s&@builddir@&$ac_builddir&;t t
28821 s&@abs_builddir@&$ac_abs_builddir&;t t
28822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28823 $ac_datarootdir_hack
28825 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28826 if $ac_cs_awk_getline; then
28827 $AWK -f "$tmp/subs.awk"
28828 else
28829 $AWK -f "$tmp/subs.awk" | $SHELL
28830 fi >$tmp/out \
28831 || as_fn_error "could not create $ac_file" "$LINENO" 5
28833 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28834 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28835 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28837 which seems to be undefined. Please make sure it is defined." >&5
28838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28839 which seems to be undefined. Please make sure it is defined." >&2;}
28841 rm -f "$tmp/stdin"
28842 case $ac_file in
28843 -) cat "$tmp/out" && rm -f "$tmp/out";;
28844 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28845 esac \
28846 || as_fn_error "could not create $ac_file" "$LINENO" 5
28850 # CONFIG_HEADER
28852 if test x"$ac_file" != x-; then
28854 $as_echo "/* $configure_input */" \
28855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28856 } >"$tmp/config.h" \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28858 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28861 else
28862 rm -f "$ac_file"
28863 mv "$tmp/config.h" "$ac_file" \
28864 || as_fn_error "could not create $ac_file" "$LINENO" 5
28866 else
28867 $as_echo "/* $configure_input */" \
28868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28869 || as_fn_error "could not create -" "$LINENO" 5
28873 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28874 $as_echo "$as_me: executing $ac_file commands" >&6;}
28876 esac
28879 case $ac_file$ac_mode in
28880 "as":F) chmod +x as ;;
28881 "collect-ld":F) chmod +x collect-ld ;;
28882 "nm":F) chmod +x nm ;;
28883 "default":C)
28884 case ${CONFIG_HEADERS} in
28885 *auto-host.h:config.in*)
28886 echo > cstamp-h ;;
28887 esac
28888 # Make sure all the subdirs exist.
28889 for d in $subdirs doc build common c-family
28891 test -d $d || mkdir $d
28892 done
28895 esac
28896 done # for ac_tag
28899 as_fn_exit 0
28900 _ACEOF
28901 ac_clean_files=$ac_clean_files_save
28903 test $ac_write_fail = 0 ||
28904 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28907 # configure is writing to config.log, and then calls config.status.
28908 # config.status does its own redirection, appending to config.log.
28909 # Unfortunately, on DOS this fails, as config.log is still kept open
28910 # by configure, so config.status won't be able to write to it; its
28911 # output is simply discarded. So we exec the FD to /dev/null,
28912 # effectively closing config.log, so it can be properly (re)opened and
28913 # appended to by config.status. When coming back to configure, we
28914 # need to make the FD available again.
28915 if test "$no_create" != yes; then
28916 ac_cs_success=:
28917 ac_config_status_args=
28918 test "$silent" = yes &&
28919 ac_config_status_args="$ac_config_status_args --quiet"
28920 exec 5>/dev/null
28921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28922 exec 5>>config.log
28923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28924 # would make configure fail if this is the last instruction.
28925 $ac_cs_success || as_fn_exit $?
28927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28929 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}