gcc/testsuite/
[official-gcc.git] / gcc / configure
blob127dceeef7318af4dc5b406abf2a79c65ce0e588
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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 with_glibc_version
924 enable_gnu_unique_object
925 enable_linker_build_id
926 with_long_double_128
927 with_gc
928 with_system_zlib
929 enable_maintainer_mode
930 enable_link_mutex
931 enable_version_specific_runtime_libs
932 enable_plugin
933 enable_host_shared
934 enable_libquadmath_support
935 with_linker_hash_style
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
946 CXXFLAGS
949 CXXCPP
950 GMPLIBS
951 GMPINC
952 ISLLIBS
953 ISLINC
954 CLOOGLIBS
955 CLOOGINC'
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1026 ac_dashdash=yes ;;
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1340 -*) as_fn_error "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information."
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 esac
1363 done
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error "missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1568 cat <<\_ACEOF
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-generated-files-in-srcdir
1575 put copies of generated files in source dir intended
1576 for creating source tarballs for users without
1577 texinfo bison or flex
1578 --disable-largefile omit support for large files
1579 --disable-build-format-warnings
1580 don't use -Wformat while building GCC
1581 --enable-werror-always enable -Werror despite compiler version
1582 --enable-checking[=LIST]
1583 enable expensive run-time checks. With LIST, enable
1584 only specific categories of checks. Categories are:
1585 yes,no,all,none,release. Flags are:
1586 assert,df,fold,gc,gcac,gimple,misc,
1587 rtlflag,rtl,runtime,tree,valgrind,types
1588 --enable-coverage[=LEVEL]
1589 enable compiler's code coverage collection. Use to
1590 measure compiler performance and locate unused parts
1591 of the compiler. With LEVEL, specify optimization.
1592 Values are opt, noopt, default is noopt
1593 --enable-gather-detailed-mem-stats
1594 enable detailed memory allocation stats gathering
1595 --enable-valgrind-annotations
1596 enable valgrind runtime interaction
1597 --enable-multilib enable library support for multiple ABIs
1598 --enable-multiarch enable support for multiarch paths
1599 --enable-__cxa_atexit enable __cxa_atexit for C++
1600 --enable-decimal-float={no,yes,bid,dpd}
1601 enable decimal float extension to C. Selecting 'bid'
1602 or 'dpd' choses which decimal floating point format
1603 to use
1604 --enable-fixed-point enable fixed-point arithmetic extension to C
1605 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1606 package
1607 --enable-tls enable or disable generation of tls code overriding
1608 the assembler check for tls support
1609 --enable-objc-gc enable the use of Boehm's garbage collector with the
1610 GNU Objective-C runtime
1611 --disable-shared don't provide a shared libgcc
1612 --enable-languages=LIST specify which front-ends to build
1613 --disable-rpath do not hardcode runtime library paths
1614 --enable-sjlj-exceptions
1615 arrange to use setjmp/longjmp exception handling
1616 --enable-secureplt enable -msecure-plt by default for PowerPC
1617 --enable-leading-mingw64-underscores
1618 enable leading underscores on 64 bit mingw targets
1619 --enable-cld enable -mcld by default for 32bit x86
1620 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1622 --disable-win32-registry
1623 disable lookup of installation paths in the Registry
1624 on Windows hosts
1625 --enable-win32-registry enable registry lookup (default)
1626 --enable-win32-registry=KEY
1627 use KEY instead of GCC version as the last portion
1628 of the registry key
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1635 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1636 --enable-gnu-indirect-function
1637 enable the use of the @gnu_indirect_function to
1638 glibc systems
1639 --enable-initfini-array use .init_array/.fini_array sections
1640 --enable-comdat enable COMDAT group support
1641 --enable-gnu-unique-object
1642 enable the use of the @gnu_unique_object ELF
1643 extension on glibc systems
1644 --enable-linker-build-id
1645 compiler will always pass --build-id to linker
1646 --enable-maintainer-mode
1647 enable make rules and dependencies not useful (and
1648 sometimes confusing) to the casual installer
1649 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1650 thrashing on the build machine
1651 --enable-version-specific-runtime-libs
1652 specify that runtime libraries should be installed
1653 in a compiler-specific directory
1654 --enable-plugin enable plugin support
1655 --enable-host-shared build host code as shared libraries
1656 --disable-libquadmath-support
1657 disable libquadmath support for Fortran
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-build-libsubdir=DIR Directory where to find libraries for build system
1663 --with-local-prefix=DIR specifies directory to put local include
1664 --with-gxx-include-dir=DIR
1665 specifies directory to put g++ header files
1666 --with-cpp-install-dir=DIR
1667 install the user visible C preprocessor in DIR
1668 (relative to PREFIX) as well as PREFIX/bin
1669 --with-gnu-ld arrange to work with GNU ld
1670 --with-ld arrange to use the specified ld (full pathname)
1671 --with-demangler-in-ld try to use demangler in GNU ld
1672 --with-gnu-as arrange to work with GNU as
1673 --with-as arrange to use the specified as (full pathname)
1674 --with-stabs arrange to use stabs instead of host debug format
1675 --with-dwarf2 force the default debug format to be DWARF 2
1676 --with-native-system-header-dir=dir
1677 use dir as the directory to look for standard
1678 system header files in. Defaults to /usr/include.
1679 --with-build-sysroot=sysroot
1680 use sysroot as the system root during the build
1681 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1682 --with-specs=SPECS add SPECS to driver command-line processing
1683 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1686 --with-gnu-ld assume the C compiler uses GNU ld default=no
1687 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1688 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1689 --with-pic try to use only PIC/non-PIC objects [default=use
1690 both]
1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1692 --with-plugin-ld=[ARG] specify the plugin linker
1693 --with-glibc-version=M.N
1694 assume GCC used with glibc version M.N or later
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1698 the compiler
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 CPP C preprocessor
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to the package provider.
1726 _ACEOF
1727 ac_status=$?
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 configure
1789 generated by GNU Autoconf 2.64
1791 Copyright (C) 2009 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_cpp
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 return $ac_retval
2042 } # ac_fn_c_try_run
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2079 # computed
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116 else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158 else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 ac_lo= ac_hi=
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2210 main ()
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2223 else
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof ($2))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof (($2)))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2293 else
2294 eval "$3=yes"
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 eval "$3=no"
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2326 main ()
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2340 main ()
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2352 else
2353 case $ac_type in #(
2354 int$2_t) :
2355 eval "$3=yes" ;; #(
2356 *) :
2357 eval "$3=\$ac_type" ;;
2358 esac
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval as_val=\$$3
2364 if test "x$as_val" = x""no; then :
2366 else
2367 break
2369 done
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_link ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest$ac_exeext
2406 }; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_retval=1
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 return $ac_retval
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_find_uintX_t ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 eval "$3=no"
2437 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2443 main ()
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2446 test_array [0] = 0
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 case $ac_type in #(
2454 uint$2_t) :
2455 eval "$3=yes" ;; #(
2456 *) :
2457 eval "$3=\$ac_type" ;;
2458 esac
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2464 else
2465 break
2467 done
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_c_try_cpp "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2496 rm -f conftest.err conftest.$ac_ext
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 if { { ac_try="$ac_cpp conftest.$ac_ext"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 }; then :
2530 ac_retval=0
2531 else
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_retval=1
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 return $ac_retval
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 #include <$2>
2556 _ACEOF
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2562 rm -f conftest.err conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2599 #undef $2
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2616 main ()
2618 return $2 ();
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_retval=1
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2682 } # ac_fn_cxx_try_link
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2690 $ $0 $@
2692 _ACEOF
2693 exec 5>>config.log
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2717 _ASUNAME
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2728 } >&5
2730 cat >&5 <<_ACEOF
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2737 _ACEOF
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2751 for ac_arg
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2780 as_fn_append ac_configure_args " '$ac_arg'"
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2796 echo
2798 cat <<\_ASBOX
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2802 _ASBOX
2803 echo
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2808 case $ac_val in #(
2809 *${as_nl}*)
2810 case $ac_var in #(
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2813 esac
2814 case $ac_var in #(
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2818 esac ;;
2819 esac
2820 done
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 sed -n \
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2827 ;; #(
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2831 esac |
2832 sort
2834 echo
2836 cat <<\_ASBOX
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2840 _ASBOX
2841 echo
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2845 case $ac_val in
2846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 esac
2848 $as_echo "$ac_var='\''$ac_val'\''"
2849 done | sort
2850 echo
2852 if test -n "$ac_subst_files"; then
2853 cat <<\_ASBOX
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2857 _ASBOX
2858 echo
2859 for ac_var in $ac_subst_files
2861 eval ac_val=\$$ac_var
2862 case $ac_val in
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 esac
2865 $as_echo "$ac_var='\''$ac_val'\''"
2866 done | sort
2867 echo
2870 if test -s confdefs.h; then
2871 cat <<\_ASBOX
2872 ## ----------- ##
2873 ## confdefs.h. ##
2874 ## ----------- ##
2875 _ASBOX
2876 echo
2877 cat confdefs.h
2878 echo
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2883 } >&5
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 exit $exit_status
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE; then
2932 ac_site_file1=$prefix/share/config.site
2933 ac_site_file2=$prefix/etc/config.site
2934 else
2935 ac_site_file1=$ac_default_prefix/share/config.site
2936 ac_site_file2=$ac_default_prefix/etc/config.site
2938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE && continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2945 . "$ac_site_file"
2947 done
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2955 case $cache_file in
2956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2957 *) . "./$cache_file";;
2958 esac
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 >$cache_file
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3041 gcc_version=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t in install-sh install.sh shtool; do
3047 if test -f "$ac_dir/$ac_t"; then
3048 ac_aux_dir=$ac_dir
3049 ac_install_sh="$ac_aux_dir/$ac_t -c"
3050 break 2
3052 done
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3088 *-*-*) ;;
3089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3090 esac
3091 build=$ac_cv_build
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_build
3094 shift
3095 build_cpu=$1
3096 build_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 build_os=$*
3101 IFS=$ac_save_IFS
3102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test "x$host_alias" = x; then
3111 ac_cv_host=$ac_cv_build
3112 else
3113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3120 case $ac_cv_host in
3121 *-*-*) ;;
3122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3123 esac
3124 host=$ac_cv_host
3125 ac_save_IFS=$IFS; IFS='-'
3126 set x $ac_cv_host
3127 shift
3128 host_cpu=$1
3129 host_vendor=$2
3130 shift; shift
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3133 host_os=$*
3134 IFS=$ac_save_IFS
3135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test "x$target_alias" = x; then
3144 ac_cv_target=$ac_cv_host
3145 else
3146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3156 esac
3157 target=$ac_cv_target
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_target
3160 shift
3161 target_cpu=$1
3162 target_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 target_os=$*
3167 IFS=$ac_save_IFS
3168 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3184 case ${host_alias} in
3185 "") host_noncanonical=${build_noncanonical} ;;
3186 *) host_noncanonical=${host_alias} ;;
3187 esac
3189 case ${target_alias} in
3190 "") target_noncanonical=${host_noncanonical} ;;
3191 *) target_noncanonical=${target_alias} ;;
3192 esac
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3204 # finishes. So:
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval=$with_build_libsubdir; build_libsubdir="$withval"
3214 else
3215 build_libsubdir="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = . && test -d gcc ) \
3220 || test -d $srcdir/../host-${host_noncanonical}; then
3221 host_subdir="host-${host_noncanonical}"
3222 else
3223 host_subdir=.
3225 # No prefix.
3226 target_subdir=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE &&
3231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE &&
3234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 library_path_setting="contains current directory"
3256 library_path_setting="ok"
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3262 as_fn_error "
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3271 # is true:
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 gcc_exec_prefix_setting="contains current directory"
3282 gcc_exec_prefix_setting="ok"
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3288 as_fn_error "
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3294 # -----------
3295 # Directories
3296 # -----------
3298 # Specify the local prefix
3299 local_prefix=
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3305 no) ;;
3306 *) local_prefix=$with_local_prefix ;;
3307 esac
3311 # Default local prefix if it is empty
3312 if test x$local_prefix = x; then
3313 local_prefix=/usr/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3326 no) ;;
3327 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3328 esac
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x${gcc_gxx_include_dir} = x; then
3334 if test x${enable_version_specific_runtime_libs} = xyes; then
3335 gcc_gxx_include_dir='${libsubdir}/include/c++'
3336 else
3337 libstdcxx_incdir='include/c++/$(version)'
3338 if test x$host != x$target; then
3339 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3358 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x$withval != xno; then
3360 cpp_install_dir=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3369 # just that.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3376 else
3377 generated_files_in_srcdir=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3385 GENINSRC=''
3386 else
3387 GENINSRC='#'
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3395 # With GNU ld
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3400 else
3401 gnu_ld_flag=no
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3416 gnu_ld_flag=yes
3419 cat >>confdefs.h <<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 _ACEOF
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test x"$gnu_ld_flag" = x"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3445 else
3446 demangler_in_ld=yes
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3454 # With GNU as
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3459 else
3460 gas_flag=no
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3474 gas_flag=yes
3477 cat >>confdefs.h <<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 _ACEOF
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test x"$gas_flag" = x"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 # ---------------
3499 # Find C compiler
3500 # ---------------
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3557 ac_ct_CC=$CC
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3579 done
3580 done
3581 IFS=$as_save_IFS
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3605 else
3606 CC="$ac_cv_prog_CC"
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3671 continue
3673 ac_cv_prog_CC="cc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3684 shift
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3689 shift
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3748 done
3750 if test -z "$CC"; then
3751 ac_ct_CC=$CC
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3792 done
3794 if test "x$ac_ct_CC" = x; then
3795 CC=""
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 CC=$ac_ct_CC
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828 ac_status=$?
3829 if test -s conftest.err; then
3830 sed '10a\
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 done
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 main ()
3848 return 0;
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 esac
3870 done
3871 rm -f $ac_rmfiles
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3916 else
3917 ac_file=''
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status 77
3928 as_fn_error "C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3950 cross_compiling=no
3951 else
3952 if test "$cross_compiling" = maybe; then
3953 cross_compiling=yes
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try="$ac_compile"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 break;;
4048 esac
4049 done
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files: cannot compile
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4064 ac_objext=$OBJEXT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4076 #ifndef __GNUC__
4077 choke me
4078 #endif
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086 else
4087 ac_compiler_gnu=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097 else
4098 GCC=
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_g=yes
4124 else
4125 CFLAGS=""
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4139 else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4173 else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4197 char **p;
4198 int i;
4200 return p[i];
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4204 char *s;
4205 va_list v;
4206 va_start (v,p);
4207 s = g (p, va_arg (v,int));
4208 va_end (v);
4209 return s;
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4223 #define FOO(x) 'x'
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 int argc;
4231 char **argv;
4233 main ()
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 return 0;
4239 _ACEOF
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4254 # AC_CACHE_VAL
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4259 xno)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 esac
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 ac_ext=cpp
4278 ac_cpp='$CXXCPP $CPPFLAGS'
4279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4282 if test -z "$CXX"; then
4283 if test -n "$CCC"; then
4284 CXX=$CCC
4285 else
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CXX+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$CXX"; then
4297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 CXX=$ac_cv_prog_CXX
4317 if test -n "$CXX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4319 $as_echo "$CXX" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$CXX" && break
4327 done
4329 if test -z "$CXX"; then
4330 ac_ct_CXX=$CXX
4331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$ac_ct_CXX"; then
4341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CXX="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4361 if test -n "$ac_ct_CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4363 $as_echo "$ac_ct_CXX" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$ac_ct_CXX" && break
4371 done
4373 if test "x$ac_ct_CXX" = x; then
4374 CXX="g++"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382 CXX=$ac_ct_CXX
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4390 set X $ac_compile
4391 ac_compiler=$2
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401 ac_status=$?
4402 if test -s conftest.err; then
4403 sed '10a\
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 done
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4422 main ()
4424 #ifndef __GNUC__
4425 choke me
4426 #endif
4429 return 0;
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_compiler_gnu=yes
4434 else
4435 ac_compiler_gnu=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4443 if test $ac_compiler_gnu = yes; then
4444 GXX=yes
4445 else
4446 GXX=
4448 ac_test_CXXFLAGS=${CXXFLAGS+set}
4449 ac_save_CXXFLAGS=$CXXFLAGS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4452 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4456 ac_cxx_werror_flag=yes
4457 ac_cv_prog_cxx_g=no
4458 CXXFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4463 main ()
4467 return 0;
4469 _ACEOF
4470 if ac_fn_cxx_try_compile "$LINENO"; then :
4471 ac_cv_prog_cxx_g=yes
4472 else
4473 CXXFLAGS=""
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 main ()
4482 return 0;
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4487 else
4488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4494 main ()
4498 return 0;
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4513 if test "$ac_test_CXXFLAGS" = set; then
4514 CXXFLAGS=$ac_save_CXXFLAGS
4515 elif test $ac_cv_prog_cxx_g = yes; then
4516 if test "$GXX" = yes; then
4517 CXXFLAGS="-g -O2"
4518 else
4519 CXXFLAGS="-g"
4521 else
4522 if test "$GXX" = yes; then
4523 CXXFLAGS="-O2"
4524 else
4525 CXXFLAGS=
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$GNATBIND"; then
4546 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 GNATBIND=$ac_cv_prog_GNATBIND
4566 if test -n "$GNATBIND"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4568 $as_echo "$GNATBIND" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_GNATBIND"; then
4577 ac_ct_GNATBIND=$GNATBIND
4578 # Extract the first word of "gnatbind", so it can be a program name with args.
4579 set dummy gnatbind; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_GNATBIND"; then
4586 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4606 if test -n "$ac_ct_GNATBIND"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4608 $as_echo "$ac_ct_GNATBIND" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_GNATBIND" = x; then
4615 GNATBIND="no"
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623 GNATBIND=$ac_ct_GNATBIND
4625 else
4626 GNATBIND="$ac_cv_prog_GNATBIND"
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$GNATMAKE"; then
4638 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 GNATMAKE=$ac_cv_prog_GNATMAKE
4658 if test -n "$GNATMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4660 $as_echo "$GNATMAKE" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_GNATMAKE"; then
4669 ac_ct_GNATMAKE=$GNATMAKE
4670 # Extract the first word of "gnatmake", so it can be a program name with args.
4671 set dummy gnatmake; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$ac_ct_GNATMAKE"; then
4678 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4698 if test -n "$ac_ct_GNATMAKE"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4700 $as_echo "$ac_ct_GNATMAKE" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_GNATMAKE" = x; then
4707 GNATMAKE="no"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 GNATMAKE=$ac_ct_GNATMAKE
4717 else
4718 GNATMAKE="$ac_cv_prog_GNATMAKE"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4722 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4723 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat >conftest.adb <<EOF
4727 procedure conftest is begin null; end conftest;
4729 acx_cv_cc_gcc_supports_ada=no
4730 # There is a bug in old released versions of GCC which causes the
4731 # driver to exit successfully when the appropriate language module
4732 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4733 # Therefore we must check for the error message as well as an
4734 # unsuccessful exit.
4735 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4736 # given a .adb file, but produce no object file. So we must check
4737 # if an object file was really produced to guard against this.
4738 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4739 if test x"$errors" = x && test -f conftest.$ac_objext; then
4740 acx_cv_cc_gcc_supports_ada=yes
4742 rm -f conftest.*
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4745 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4747 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4748 have_gnat=yes
4749 else
4750 have_gnat=no
4754 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4755 # optimizations to be activated explicitly by the toplevel.
4756 case "$CC" in
4757 */prev-gcc/xgcc*) ;;
4758 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4759 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4760 esac
4764 # Determine PICFLAG for target gnatlib.
4769 case "${target}" in
4770 # PIC is the default on some targets or must not be used.
4771 *-*-darwin*)
4772 # PIC is the default on this platform
4773 # Common symbols not allowed in MH_DYLIB files
4774 PICFLAG_FOR_TARGET=-fno-common
4776 alpha*-dec-osf5*)
4777 # PIC is the default.
4779 hppa*64*-*-hpux*)
4780 # PIC is the default for 64-bit PA HP-UX.
4782 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4784 i[34567]86-*-mingw* | x86_64-*-mingw*)
4786 i[34567]86-*-interix[3-9]*)
4787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4788 # Instead, we relocate shared libraries at runtime.
4790 i[34567]86-*-nto-qnx*)
4791 # QNX uses GNU C++, but need to define -shared option too, otherwise
4792 # it will coredump.
4793 PICFLAG_FOR_TARGET='-fPIC -shared'
4795 i[34567]86-pc-msdosdjgpp*)
4796 # DJGPP does not support shared libraries at all.
4798 ia64*-*-hpux*)
4799 # On IA64 HP-UX, PIC is the default but the pic flag
4800 # sets the default TLS model and affects inlining.
4801 PICFLAG_FOR_TARGET=-fPIC
4803 mips-sgi-irix6*)
4804 # PIC is the default.
4806 rs6000-ibm-aix* | powerpc-ibm-aix*)
4807 # All AIX code is PIC.
4810 # Some targets support both -fPIC and -fpic, but prefer the latter.
4811 # FIXME: Why?
4812 i[34567]86-*-* | x86_64-*-*)
4813 PICFLAG_FOR_TARGET=-fpic
4815 # FIXME: Override -fPIC default in libgcc only?
4816 sh-*-linux* | sh[2346lbe]*-*-linux*)
4817 PICFLAG_FOR_TARGET=-fpic
4819 # FIXME: Simplify to sh*-*-netbsd*?
4820 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4821 sh64-*-netbsd* | sh64l*-*-netbsd*)
4822 PICFLAG_FOR_TARGET=-fpic
4824 # Default to -fPIC unless specified otherwise.
4826 PICFLAG_FOR_TARGET=-fPIC
4828 esac
4830 # If the user explicitly uses -fpic/-fPIC, keep that.
4831 case "${CFLAGS_FOR_TARGET}" in
4832 *-fpic*)
4833 PICFLAG_FOR_TARGET=-fpic
4835 *-fPIC*)
4836 PICFLAG_FOR_TARGET=-fPIC
4838 esac
4842 # -------------------------
4843 # Check C compiler features
4844 # -------------------------
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4854 # On Suns, sometimes $CPP names a directory.
4855 if test -n "$CPP" && test -d "$CPP"; then
4856 CPP=
4858 if test -z "$CPP"; then
4859 if test "${ac_cv_prog_CPP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 # Double quotes because CPP needs to be expanded
4863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4865 ac_preproc_ok=false
4866 for ac_c_preproc_warn_flag in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881 Syntax error
4882 _ACEOF
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4885 else
4886 # Broken: fails on valid input.
4887 continue
4889 rm -f conftest.err conftest.$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4905 rm -f conftest.err conftest.$ac_ext
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then :
4911 break
4914 done
4915 ac_cv_prog_CPP=$CPP
4918 CPP=$ac_cv_prog_CPP
4919 else
4920 ac_cv_prog_CPP=$CPP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4923 $as_echo "$CPP" >&6; }
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4944 else
4945 # Broken: fails on valid input.
4946 continue
4948 rm -f conftest.err conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4964 rm -f conftest.err conftest.$ac_ext
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4971 else
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4975 See \`config.log' for more details." "$LINENO" 5; }
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4987 if test "${ac_cv_path_GREP+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$GREP"; then
4991 ac_path_GREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in grep ggrep; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5002 # Check for GNU ac_path_GREP and select it if it is found.
5003 # Check for GNU $ac_path_GREP
5004 case `"$ac_path_GREP" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'GREP' >> "conftest.nl"
5016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_GREP="$ac_path_GREP"
5022 ac_path_GREP_max=$ac_count
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5030 $ac_path_GREP_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_GREP"; then
5036 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 else
5039 ac_cv_path_GREP=$GREP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5044 $as_echo "$ac_cv_path_GREP" >&6; }
5045 GREP="$ac_cv_path_GREP"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5049 $as_echo_n "checking for egrep... " >&6; }
5050 if test "${ac_cv_path_EGREP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5054 then ac_cv_path_EGREP="$GREP -E"
5055 else
5056 if test -z "$EGREP"; then
5057 ac_path_EGREP_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in egrep; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5068 # Check for GNU ac_path_EGREP and select it if it is found.
5069 # Check for GNU $ac_path_EGREP
5070 case `"$ac_path_EGREP" --version 2>&1` in
5071 *GNU*)
5072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'EGREP' >> "conftest.nl"
5082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_EGREP="$ac_path_EGREP"
5088 ac_path_EGREP_max=$ac_count
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 esac
5096 $ac_path_EGREP_found && break 3
5097 done
5098 done
5099 done
5100 IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_EGREP"; then
5102 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104 else
5105 ac_cv_path_EGREP=$EGREP
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5111 $as_echo "$ac_cv_path_EGREP" >&6; }
5112 EGREP="$ac_cv_path_EGREP"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if test "${ac_cv_header_stdc+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5123 #include <stdarg.h>
5124 #include <string.h>
5125 #include <float.h>
5128 main ()
5132 return 0;
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_header_stdc=yes
5137 else
5138 ac_cv_header_stdc=no
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <string.h>
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev/null 2>&1; then :
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f conftest*
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <stdlib.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev/null 2>&1; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f conftest*
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <ctype.h>
5184 #include <stdlib.h>
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5188 #else
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #endif
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 main ()
5200 int i;
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5204 return 2;
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_run "$LINENO"; then :
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5214 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5230 do :
5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 eval as_val=\$$as_ac_Header
5235 if test "x$as_val" = x""yes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5242 done
5246 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5248 MINIX=yes
5249 else
5250 MINIX=
5254 if test "$MINIX" = yes; then
5256 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5259 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5262 $as_echo "#define _MINIX 1" >>confdefs.h
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5268 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5269 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # define __EXTENSIONS__ 1
5276 $ac_includes_default
5278 main ()
5282 return 0;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_safe_to_define___extensions__=yes
5287 else
5288 ac_cv_safe_to_define___extensions__=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5293 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5294 test $ac_cv_safe_to_define___extensions__ = yes &&
5295 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5297 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5303 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5313 # On Suns, sometimes $CPP names a directory.
5314 if test -n "$CPP" && test -d "$CPP"; then
5315 CPP=
5317 if test -z "$CPP"; then
5318 if test "${ac_cv_prog_CPP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 # Double quotes because CPP needs to be expanded
5322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5324 ac_preproc_ok=false
5325 for ac_c_preproc_warn_flag in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340 Syntax error
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5344 else
5345 # Broken: fails on valid input.
5346 continue
5348 rm -f conftest.err conftest.$ac_ext
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5357 # Broken: success on invalid input.
5358 continue
5359 else
5360 # Passes both tests.
5361 ac_preproc_ok=:
5362 break
5364 rm -f conftest.err conftest.$ac_ext
5366 done
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.err conftest.$ac_ext
5369 if $ac_preproc_ok; then :
5370 break
5373 done
5374 ac_cv_prog_CPP=$CPP
5377 CPP=$ac_cv_prog_CPP
5378 else
5379 ac_cv_prog_CPP=$CPP
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5382 $as_echo "$CPP" >&6; }
5383 ac_preproc_ok=false
5384 for ac_c_preproc_warn_flag in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifdef __STDC__
5395 # include <limits.h>
5396 #else
5397 # include <assert.h>
5398 #endif
5399 Syntax error
5400 _ACEOF
5401 if ac_fn_c_try_cpp "$LINENO"; then :
5403 else
5404 # Broken: fails on valid input.
5405 continue
5407 rm -f conftest.err conftest.$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if ac_fn_c_try_cpp "$LINENO"; then :
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 # Passes both tests.
5420 ac_preproc_ok=:
5421 break
5423 rm -f conftest.err conftest.$ac_ext
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then :
5430 else
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." "$LINENO" 5; }
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5444 $as_echo_n "checking for inline... " >&6; }
5445 if test "${ac_cv_c_inline+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_inline=no
5449 for ac_kw in inline __inline__ __inline; do
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __cplusplus
5453 typedef int foo_t;
5454 static $ac_kw foo_t static_foo () {return 0; }
5455 $ac_kw foo_t foo () {return 0; }
5456 #endif
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_c_inline=$ac_kw
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 test "$ac_cv_c_inline" != no && break
5464 done
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5468 $as_echo "$ac_cv_c_inline" >&6; }
5470 case $ac_cv_c_inline in
5471 inline | yes) ;;
5473 case $ac_cv_c_inline in
5474 no) ac_val=;;
5475 *) ac_val=$ac_cv_c_inline;;
5476 esac
5477 cat >>confdefs.h <<_ACEOF
5478 #ifndef __cplusplus
5479 #define inline $ac_val
5480 #endif
5481 _ACEOF
5483 esac
5486 # Check whether --enable-largefile was given.
5487 if test "${enable_largefile+set}" = set; then :
5488 enableval=$enable_largefile;
5491 if test "$enable_largefile" != no; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_cv_sys_largefile_CC=no
5499 if test "$GCC" != yes; then
5500 ac_save_CC=$CC
5501 while :; do
5502 # IRIX 6.2 and later do not support large files by default,
5503 # so use the C compiler's -n32 option if that helps.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 /* Check that off_t can represent 2**63 - 1 correctly.
5508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5509 since some C++ compilers masquerading as C compilers
5510 incorrectly reject 9223372036854775807. */
5511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5513 && LARGE_OFF_T % 2147483647 == 1)
5514 ? 1 : -1];
5516 main ()
5520 return 0;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 break
5526 rm -f core conftest.err conftest.$ac_objext
5527 CC="$CC -n32"
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_sys_largefile_CC=' -n32'; break
5531 rm -f core conftest.err conftest.$ac_objext
5532 break
5533 done
5534 CC=$ac_save_CC
5535 rm -f conftest.$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5540 if test "$ac_cv_sys_largefile_CC" != no; then
5541 CC=$CC$ac_cv_sys_largefile_CC
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 while :; do
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5560 ? 1 : -1];
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_sys_file_offset_bits=no; break
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5584 ? 1 : -1];
5586 main ()
5590 return 0;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_sys_file_offset_bits=64; break
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 ac_cv_sys_file_offset_bits=unknown
5598 break
5599 done
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5603 case $ac_cv_sys_file_offset_bits in #(
5604 no | unknown) ;;
5606 cat >>confdefs.h <<_ACEOF
5607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5608 _ACEOF
5610 esac
5611 rm -rf conftest*
5612 if test $ac_cv_sys_file_offset_bits = unknown; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5615 if test "${ac_cv_sys_large_files+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 while :; do
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_large_files=no; break
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #define _LARGE_FILES 1
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5653 ? 1 : -1];
5655 main ()
5659 return 0;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_sys_large_files=1; break
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 ac_cv_sys_large_files=unknown
5667 break
5668 done
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5671 $as_echo "$ac_cv_sys_large_files" >&6; }
5672 case $ac_cv_sys_large_files in #(
5673 no | unknown) ;;
5675 cat >>confdefs.h <<_ACEOF
5676 #define _LARGE_FILES $ac_cv_sys_large_files
5677 _ACEOF
5679 esac
5680 rm -rf conftest*
5685 # sizeof(char) is 1 by definition.
5686 # The cast to long int works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5691 $as_echo_n "checking size of void *... " >&6; }
5692 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5697 else
5698 if test "$ac_cv_type_void_p" = yes; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 { as_fn_set_status 77
5702 as_fn_error "cannot compute sizeof (void *)
5703 See \`config.log' for more details." "$LINENO" 5; }; }
5704 else
5705 ac_cv_sizeof_void_p=0
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5711 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5715 cat >>confdefs.h <<_ACEOF
5716 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5717 _ACEOF
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5725 $as_echo_n "checking size of short... " >&6; }
5726 if test "${ac_cv_sizeof_short+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5731 else
5732 if test "$ac_cv_type_short" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status 77
5736 as_fn_error "cannot compute sizeof (short)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5738 else
5739 ac_cv_sizeof_short=0
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5745 $as_echo "$ac_cv_sizeof_short" >&6; }
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_SHORT $ac_cv_sizeof_short
5751 _ACEOF
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5759 $as_echo_n "checking size of int... " >&6; }
5760 if test "${ac_cv_sizeof_int+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5765 else
5766 if test "$ac_cv_type_int" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status 77
5770 as_fn_error "cannot compute sizeof (int)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5772 else
5773 ac_cv_sizeof_int=0
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5779 $as_echo "$ac_cv_sizeof_int" >&6; }
5783 cat >>confdefs.h <<_ACEOF
5784 #define SIZEOF_INT $ac_cv_sizeof_int
5785 _ACEOF
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5793 $as_echo_n "checking size of long... " >&6; }
5794 if test "${ac_cv_sizeof_long+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5799 else
5800 if test "$ac_cv_type_long" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (long)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806 else
5807 ac_cv_sizeof_long=0
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5813 $as_echo "$ac_cv_sizeof_long" >&6; }
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 _ACEOF
5822 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5823 if test "x$ac_cv_type_long_long" = x""yes; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LONG_LONG 1
5827 _ACEOF
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5834 $as_echo_n "checking size of long long... " >&6; }
5835 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5840 else
5841 if test "$ac_cv_type_long_long" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (long long)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847 else
5848 ac_cv_sizeof_long_long=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5854 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5860 _ACEOF
5865 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5866 if test "x$ac_cv_type___int64" = x""yes; then :
5868 cat >>confdefs.h <<_ACEOF
5869 #define HAVE___INT64 1
5870 _ACEOF
5872 # The cast to long int works around a bug in the HP C Compiler
5873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5875 # This bug is HP SR number 8606223364.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5877 $as_echo_n "checking size of __int64... " >&6; }
5878 if test "${ac_cv_sizeof___int64+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5883 else
5884 if test "$ac_cv_type___int64" = yes; then
5885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5887 { as_fn_set_status 77
5888 as_fn_error "cannot compute sizeof (__int64)
5889 See \`config.log' for more details." "$LINENO" 5; }; }
5890 else
5891 ac_cv_sizeof___int64=0
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5897 $as_echo "$ac_cv_sizeof___int64" >&6; }
5901 cat >>confdefs.h <<_ACEOF
5902 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5903 _ACEOF
5908 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5909 case $ac_cv_c_int8_t in #(
5910 no|yes) ;; #(
5913 cat >>confdefs.h <<_ACEOF
5914 #define int8_t $ac_cv_c_int8_t
5915 _ACEOF
5917 esac
5919 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5920 case $ac_cv_c_int16_t in #(
5921 no|yes) ;; #(
5924 cat >>confdefs.h <<_ACEOF
5925 #define int16_t $ac_cv_c_int16_t
5926 _ACEOF
5928 esac
5930 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5931 case $ac_cv_c_int32_t in #(
5932 no|yes) ;; #(
5935 cat >>confdefs.h <<_ACEOF
5936 #define int32_t $ac_cv_c_int32_t
5937 _ACEOF
5939 esac
5941 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5942 case $ac_cv_c_int64_t in #(
5943 no|yes) ;; #(
5946 cat >>confdefs.h <<_ACEOF
5947 #define int64_t $ac_cv_c_int64_t
5948 _ACEOF
5950 esac
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5954 $as_echo_n "checking for long long int... " >&6; }
5955 if test "${ac_cv_type_long_long_int+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5961 /* For now, do not test the preprocessor; as of 2007 there are too many
5962 implementations with broken preprocessors. Perhaps this can
5963 be revisited in 2012. In the meantime, code should not expect
5964 #if to work with literals wider than 32 bits. */
5965 /* Test literals. */
5966 long long int ll = 9223372036854775807ll;
5967 long long int nll = -9223372036854775807LL;
5968 unsigned long long int ull = 18446744073709551615ULL;
5969 /* Test constant expressions. */
5970 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5971 ? 1 : -1)];
5972 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5973 ? 1 : -1)];
5974 int i = 63;
5976 main ()
5978 /* Test availability of runtime routines for shift and division. */
5979 long long int llmax = 9223372036854775807ll;
5980 unsigned long long int ullmax = 18446744073709551615ull;
5981 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5982 | (llmax / ll) | (llmax % ll)
5983 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5984 | (ullmax / ull) | (ullmax % ull));
5986 return 0;
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 if test "$cross_compiling" = yes; then :
5992 ac_cv_type_long_long_int=yes
5993 else
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #include <limits.h>
5997 #ifndef LLONG_MAX
5998 # define HALF \
5999 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6000 # define LLONG_MAX (HALF - 1 + HALF)
6001 #endif
6003 main ()
6005 long long int n = 1;
6006 int i;
6007 for (i = 0; ; i++)
6009 long long int m = n << i;
6010 if (m >> i != n)
6011 return 1;
6012 if (LLONG_MAX / 2 < m)
6013 break;
6015 return 0;
6017 return 0;
6019 _ACEOF
6020 if ac_fn_c_try_run "$LINENO"; then :
6021 ac_cv_type_long_long_int=yes
6022 else
6023 ac_cv_type_long_long_int=no
6025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6026 conftest.$ac_objext conftest.beam conftest.$ac_ext
6029 else
6030 ac_cv_type_long_long_int=no
6032 rm -f core conftest.err conftest.$ac_objext \
6033 conftest$ac_exeext conftest.$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6036 $as_echo "$ac_cv_type_long_long_int" >&6; }
6037 if test $ac_cv_type_long_long_int = yes; then
6039 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6045 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6046 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6048 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6050 else
6051 test $ac_cv_type_long_long_int = yes \
6052 && ac_type='long long int' \
6053 || ac_type='long int'
6055 cat >>confdefs.h <<_ACEOF
6056 #define intmax_t $ac_type
6057 _ACEOF
6063 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6064 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6066 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6068 else
6069 for ac_type in 'int' 'long int' 'long long int'; do
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 $ac_includes_default
6074 main ()
6076 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6077 test_array [0] = 0
6080 return 0;
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6085 cat >>confdefs.h <<_ACEOF
6086 #define intptr_t $ac_type
6087 _ACEOF
6089 ac_type=
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 test -z "$ac_type" && break
6093 done
6097 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6098 case $ac_cv_c_uint8_t in #(
6099 no|yes) ;; #(
6102 $as_echo "#define _UINT8_T 1" >>confdefs.h
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint8_t $ac_cv_c_uint8_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6112 case $ac_cv_c_uint16_t in #(
6113 no|yes) ;; #(
6117 cat >>confdefs.h <<_ACEOF
6118 #define uint16_t $ac_cv_c_uint16_t
6119 _ACEOF
6121 esac
6123 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6124 case $ac_cv_c_uint32_t in #(
6125 no|yes) ;; #(
6128 $as_echo "#define _UINT32_T 1" >>confdefs.h
6131 cat >>confdefs.h <<_ACEOF
6132 #define uint32_t $ac_cv_c_uint32_t
6133 _ACEOF
6135 esac
6137 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6138 case $ac_cv_c_uint64_t in #(
6139 no|yes) ;; #(
6142 $as_echo "#define _UINT64_T 1" >>confdefs.h
6145 cat >>confdefs.h <<_ACEOF
6146 #define uint64_t $ac_cv_c_uint64_t
6147 _ACEOF
6149 esac
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6153 $as_echo_n "checking for unsigned long long int... " >&6; }
6154 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6170 ? 1 : -1)];
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6172 ? 1 : -1)];
6173 int i = 63;
6175 main ()
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6185 return 0;
6188 _ACEOF
6189 if ac_fn_c_try_link "$LINENO"; then :
6190 ac_cv_type_unsigned_long_long_int=yes
6191 else
6192 ac_cv_type_unsigned_long_long_int=no
6194 rm -f core conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6198 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6199 if test $ac_cv_type_unsigned_long_long_int = yes; then
6201 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6207 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6208 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6210 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6212 else
6213 test $ac_cv_type_unsigned_long_long_int = yes \
6214 && ac_type='unsigned long long int' \
6215 || ac_type='unsigned long int'
6217 cat >>confdefs.h <<_ACEOF
6218 #define uintmax_t $ac_type
6219 _ACEOF
6225 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6226 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6228 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6230 else
6231 for ac_type in 'unsigned int' 'unsigned long int' \
6232 'unsigned long long int'; do
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 $ac_includes_default
6237 main ()
6239 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6240 test_array [0] = 0
6243 return 0;
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6248 cat >>confdefs.h <<_ACEOF
6249 #define uintptr_t $ac_type
6250 _ACEOF
6252 ac_type=
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 test -z "$ac_type" && break
6256 done
6273 # ---------------------
6274 # Warnings and checking
6275 # ---------------------
6277 # Check $CC warning features (if it's GCC).
6278 # We want to use -pedantic, but we don't want warnings about
6279 # * 'long long'
6280 # * variadic macros
6281 # * overlong strings
6282 # * C++11 narrowing conversions in { }
6283 # So, we only use -pedantic if we can disable those warnings.
6285 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6286 # Check whether --enable-build-format-warnings was given.
6287 if test "${enable_build_format_warnings+set}" = set; then :
6288 enableval=$enable_build_format_warnings;
6289 else
6290 enable_build_format_warnings=yes
6293 if test $enable_build_format_warnings = no; then :
6294 wf_opt=-Wno-format
6295 else
6296 wf_opt=
6298 loose_warn=
6299 save_CFLAGS="$CFLAGS"
6300 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6301 # Do the check with the no- prefix removed since gcc silently
6302 # accepts any -Wno-* option on purpose
6303 case $real_option in
6304 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6305 *) option=$real_option ;;
6306 esac
6307 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6310 $as_echo_n "checking whether $CC supports $option... " >&6; }
6311 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 CFLAGS="$option"
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6319 main ()
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 eval "$as_acx_Woption=yes"
6328 else
6329 eval "$as_acx_Woption=no"
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 eval ac_res=\$$as_acx_Woption
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6336 $as_echo "$ac_res" >&6; }
6337 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6338 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6340 done
6341 CFLAGS="$save_CFLAGS"
6343 c_loose_warn=
6344 save_CFLAGS="$CFLAGS"
6345 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6346 # Do the check with the no- prefix removed since gcc silently
6347 # accepts any -Wno-* option on purpose
6348 case $real_option in
6349 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6350 *) option=$real_option ;;
6351 esac
6352 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6355 $as_echo_n "checking whether $CC supports $option... " >&6; }
6356 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 CFLAGS="$option"
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6364 main ()
6368 return 0;
6370 _ACEOF
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 eval "$as_acx_Woption=yes"
6373 else
6374 eval "$as_acx_Woption=no"
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 eval ac_res=\$$as_acx_Woption
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6383 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6385 done
6386 CFLAGS="$save_CFLAGS"
6388 strict_warn=
6389 save_CFLAGS="$CFLAGS"
6390 for real_option in -Wmissing-format-attribute; do
6391 # Do the check with the no- prefix removed since gcc silently
6392 # accepts any -Wno-* option on purpose
6393 case $real_option in
6394 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6395 *) option=$real_option ;;
6396 esac
6397 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6400 $as_echo_n "checking whether $CC supports $option... " >&6; }
6401 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6402 $as_echo_n "(cached) " >&6
6403 else
6404 CFLAGS="$option"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6409 main ()
6413 return 0;
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 eval "$as_acx_Woption=yes"
6418 else
6419 eval "$as_acx_Woption=no"
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424 eval ac_res=\$$as_acx_Woption
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6426 $as_echo "$ac_res" >&6; }
6427 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6428 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6430 done
6431 CFLAGS="$save_CFLAGS"
6433 save_CFLAGS="$CFLAGS"
6434 for real_option in -Woverloaded-virtual; do
6435 # Do the check with the no- prefix removed since gcc silently
6436 # accepts any -Wno-* option on purpose
6437 case $real_option in
6438 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6439 *) option=$real_option ;;
6440 esac
6441 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6444 $as_echo_n "checking whether $CC supports $option... " >&6; }
6445 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 CFLAGS="$option"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6453 main ()
6457 return 0;
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"; then :
6461 eval "$as_acx_Woption=yes"
6462 else
6463 eval "$as_acx_Woption=no"
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468 eval ac_res=\$$as_acx_Woption
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6470 $as_echo "$ac_res" >&6; }
6471 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6472 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6474 done
6475 CFLAGS="$save_CFLAGS"
6477 c_strict_warn=
6478 save_CFLAGS="$CFLAGS"
6479 for real_option in -Wold-style-definition -Wc++-compat; do
6480 # Do the check with the no- prefix removed since gcc silently
6481 # accepts any -Wno-* option on purpose
6482 case $real_option in
6483 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6484 *) option=$real_option ;;
6485 esac
6486 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6489 $as_echo_n "checking whether $CC supports $option... " >&6; }
6490 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 CFLAGS="$option"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6498 main ()
6502 return 0;
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 eval "$as_acx_Woption=yes"
6507 else
6508 eval "$as_acx_Woption=no"
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 eval ac_res=\$$as_acx_Woption
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6516 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6517 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6519 done
6520 CFLAGS="$save_CFLAGS"
6522 # Do the check with the no- prefix removed from the warning options
6523 # since gcc silently accepts any -Wno-* option on purpose
6524 if test "$GCC" = yes; then :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6526 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6527 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 save_CFLAGS="$CFLAGS"
6531 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6536 main ()
6540 return 0;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6545 else
6546 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 CFLAGS="$save_CFLAGS"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6552 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6553 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6554 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6559 # Check whether --enable-werror-always was given.
6560 if test "${enable_werror_always+set}" = set; then :
6561 enableval=$enable_werror_always;
6562 else
6563 enable_werror_always=no
6566 if test $enable_werror_always = yes; then :
6567 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6572 # The above macros do nothing if the compiler is not GCC. However, the
6573 # Makefile has more goo to add other flags, so these variables are used
6574 # to enable warnings only for GCC.
6575 warn_cflags=
6576 warn_cxxflags=
6577 if test "x$GCC" = "xyes"; then
6578 warn_cflags='$(GCC_WARN_CFLAGS)'
6579 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6584 # Disable exceptions and RTTI if building with g++
6585 noexception_flags=
6586 save_CFLAGS="$CFLAGS"
6587 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6588 # Do the check with the no- prefix removed since gcc silently
6589 # accepts any -Wno-* option on purpose
6590 case $real_option in
6591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6592 *) option=$real_option ;;
6593 esac
6594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6597 $as_echo_n "checking whether $CC supports $option... " >&6; }
6598 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 CFLAGS="$option"
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 eval "$as_acx_Woption=yes"
6615 else
6616 eval "$as_acx_Woption=no"
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621 eval ac_res=\$$as_acx_Woption
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6623 $as_echo "$ac_res" >&6; }
6624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6625 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6627 done
6628 CFLAGS="$save_CFLAGS"
6631 # Enable expensive internal checks
6632 is_release=
6633 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6634 is_release=yes
6637 # Check whether --enable-checking was given.
6638 if test "${enable_checking+set}" = set; then :
6639 enableval=$enable_checking; ac_checking_flags="${enableval}"
6640 else
6642 # Determine the default checks.
6643 if test x$is_release = x ; then
6644 ac_checking_flags=yes
6645 else
6646 ac_checking_flags=release
6650 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6651 for check in release $ac_checking_flags
6653 case $check in
6654 # these set all the flags to specific states
6655 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6656 ac_fold_checking= ; ac_gc_checking=1 ;
6657 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6658 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6659 ac_tree_checking=1 ; ac_valgrind_checking= ;
6660 ac_types_checking=1 ;;
6661 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6662 ac_fold_checking= ; ac_gc_checking= ;
6663 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6664 ac_rtlflag_checking= ; ac_runtime_checking= ;
6665 ac_tree_checking= ; ac_valgrind_checking= ;
6666 ac_types_checking= ;;
6667 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6668 ac_fold_checking=1 ; ac_gc_checking=1 ;
6669 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6670 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6671 ac_tree_checking=1 ; ac_valgrind_checking= ;
6672 ac_types_checking=1 ;;
6673 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6674 ac_fold_checking= ; ac_gc_checking= ;
6675 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6676 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6677 ac_tree_checking= ; ac_valgrind_checking= ;
6678 ac_types_checking= ;;
6679 # these enable particular checks
6680 assert) ac_assert_checking=1 ;;
6681 df) ac_df_checking=1 ;;
6682 fold) ac_fold_checking=1 ;;
6683 gc) ac_gc_checking=1 ;;
6684 gcac) ac_gc_always_collect=1 ;;
6685 gimple) ac_gimple_checking=1 ;;
6686 misc) ac_checking=1 ;;
6687 rtl) ac_rtl_checking=1 ;;
6688 rtlflag) ac_rtlflag_checking=1 ;;
6689 runtime) ac_runtime_checking=1 ;;
6690 tree) ac_tree_checking=1 ;;
6691 types) ac_types_checking=1 ;;
6692 valgrind) ac_valgrind_checking=1 ;;
6693 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6694 esac
6695 done
6696 IFS="$ac_save_IFS"
6698 nocommon_flag=""
6699 if test x$ac_checking != x ; then
6701 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6703 nocommon_flag=-fno-common
6706 if test x$ac_df_checking != x ; then
6708 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6711 if test x$ac_assert_checking != x ; then
6713 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6716 if test x$ac_gimple_checking != x ; then
6718 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6722 if test x$ac_runtime_checking != x ; then
6724 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6727 if test x$ac_tree_checking != x ; then
6729 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6731 TREEBROWSER=tree-browser.o
6732 TREECHECKING=yes
6734 if test x$ac_types_checking != x ; then
6736 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6741 if test x$ac_rtl_checking != x ; then
6743 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6746 if test x$ac_rtlflag_checking != x ; then
6748 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6751 if test x$ac_gc_checking != x ; then
6753 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6756 if test x$ac_gc_always_collect != x ; then
6758 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6761 if test x$ac_fold_checking != x ; then
6763 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6766 valgrind_path_defines=
6767 valgrind_command=
6769 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6770 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6771 have_valgrind_h=yes
6772 else
6773 have_valgrind_h=no
6778 # It is certainly possible that there's valgrind but no valgrind.h.
6779 # GCC relies on making annotations so we must have both.
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6781 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <valgrind/memcheck.h>
6785 #ifndef VALGRIND_DISCARD
6786 #error VALGRIND_DISCARD not defined
6787 #endif
6788 _ACEOF
6789 if ac_fn_c_try_cpp "$LINENO"; then :
6790 gcc_cv_header_valgrind_memcheck_h=yes
6791 else
6792 gcc_cv_header_valgrind_memcheck_h=no
6794 rm -f conftest.err conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6796 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6798 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801 #include <memcheck.h>
6802 #ifndef VALGRIND_DISCARD
6803 #error VALGRIND_DISCARD not defined
6804 #endif
6805 _ACEOF
6806 if ac_fn_c_try_cpp "$LINENO"; then :
6807 gcc_cv_header_memcheck_h=yes
6808 else
6809 gcc_cv_header_memcheck_h=no
6811 rm -f conftest.err conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6813 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6814 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6816 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6819 if test $gcc_cv_header_memcheck_h = yes; then
6821 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6825 if test x$ac_valgrind_checking != x ; then
6827 # Prepare PATH_SEPARATOR.
6828 # The user is always right.
6829 if test "${PATH_SEPARATOR+set}" != set; then
6830 echo "#! /bin/sh" >conf$$.sh
6831 echo "exit 0" >>conf$$.sh
6832 chmod +x conf$$.sh
6833 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6834 PATH_SEPARATOR=';'
6835 else
6836 PATH_SEPARATOR=:
6838 rm -f conf$$.sh
6841 # Find out how to test for executable files. Don't use a zero-byte file,
6842 # as systems may use methods other than mode bits to determine executability.
6843 cat >conf$$.file <<_ASEOF
6844 #! /bin/sh
6845 exit 0
6846 _ASEOF
6847 chmod +x conf$$.file
6848 if test -x conf$$.file >/dev/null 2>&1; then
6849 ac_executable_p="test -x"
6850 else
6851 ac_executable_p="test -f"
6853 rm -f conf$$.file
6855 # Extract the first word of "valgrind", so it can be a program name with args.
6856 set dummy valgrind; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 case "$valgrind_path" in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6867 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6868 for ac_dir in $PATH; do
6869 IFS="$ac_save_IFS"
6870 test -z "$ac_dir" && ac_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6873 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6874 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6875 break 2
6878 done
6879 done
6880 IFS="$ac_save_IFS"
6882 esac
6884 valgrind_path="$ac_cv_path_valgrind_path"
6885 if test -n "$valgrind_path"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6887 $as_echo "$valgrind_path" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6893 if test "x$valgrind_path" = "x" \
6894 || (test $have_valgrind_h = no \
6895 && test $gcc_cv_header_memcheck_h = no \
6896 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6897 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6899 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6900 valgrind_command="$valgrind_path -q"
6902 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6908 # Enable code coverage collection
6909 # Check whether --enable-coverage was given.
6910 if test "${enable_coverage+set}" = set; then :
6911 enableval=$enable_coverage; case "${enableval}" in
6912 yes|noopt)
6913 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6915 opt)
6916 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6919 # a.k.a. --disable-coverage
6920 coverage_flags=""
6923 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6925 esac
6926 else
6927 coverage_flags=""
6932 # Check whether --enable-gather-detailed-mem-stats was given.
6933 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6934 enableval=$enable_gather_detailed_mem_stats;
6935 else
6936 enable_gather_detailed_mem_stats=no
6939 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6941 cat >>confdefs.h <<_ACEOF
6942 #define GATHER_STATISTICS $gather_stats
6943 _ACEOF
6946 # Check whether --enable-valgrind-annotations was given.
6947 if test "${enable_valgrind_annotations+set}" = set; then :
6948 enableval=$enable_valgrind_annotations;
6949 else
6950 enable_valgrind_annotations=no
6953 if test x$enable_valgrind_annotations != xno \
6954 || test x$ac_valgrind_checking != x; then
6955 if (test $have_valgrind_h = no \
6956 && test $gcc_cv_header_memcheck_h = no \
6957 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6958 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6961 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
6965 # -------------------------------
6966 # Miscenalleous configure options
6967 # -------------------------------
6969 # With stabs
6971 # Check whether --with-stabs was given.
6972 if test "${with_stabs+set}" = set; then :
6973 withval=$with_stabs; stabs="$with_stabs"
6974 else
6975 stabs=no
6979 # Determine whether or not multilibs are enabled.
6980 # Check whether --enable-multilib was given.
6981 if test "${enable_multilib+set}" = set; then :
6982 enableval=$enable_multilib;
6983 else
6984 enable_multilib=yes
6989 # Determine whether or not multiarch is enabled.
6990 # Check whether --enable-multiarch was given.
6991 if test "${enable_multiarch+set}" = set; then :
6992 enableval=$enable_multiarch; case "${enableval}" in
6993 yes|no|auto) enable_multiarch=$enableval;;
6994 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6995 esac
6996 else
6997 enable_multiarch=auto
7000 if test x${enable_multiarch} = xauto; then
7001 if test x${with_native_system_header_dir} != x; then
7002 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7003 enable_multiarch=no
7005 if test x$host != x$target && test "x$with_sysroot" = x; then
7006 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7007 enable_multiarch=no
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7011 $as_echo_n "checking for multiarch configuration... " >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7014 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7016 # needed for setting the multiarch name for soft-float/hard-float ABIs
7020 # Enable __cxa_atexit for C++.
7021 # Check whether --enable-__cxa_atexit was given.
7022 if test "${enable___cxa_atexit+set}" = set; then :
7023 enableval=$enable___cxa_atexit;
7027 # Enable C extension for decimal float if target supports it.
7029 # Check whether --enable-decimal-float was given.
7030 if test "${enable_decimal_float+set}" = set; then :
7031 enableval=$enable_decimal_float;
7032 case $enable_decimal_float in
7033 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7034 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7035 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7036 esac
7038 else
7040 case $target in
7041 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7042 i?86*-*-gnu* | \
7043 i?86*-*-mingw* | x86_64*-*-mingw* | \
7044 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7045 enable_decimal_float=yes
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7049 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7050 enable_decimal_float=no
7052 esac
7057 # x86's use BID format instead of DPD
7058 case x$enable_decimal_float in
7059 xyes)
7060 case $target in
7061 i?86*-*-* | x86_64*-*-*)
7062 enable_decimal_float=bid
7065 enable_decimal_float=dpd
7067 esac
7068 default_decimal_float=$enable_decimal_float
7070 xno)
7071 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7072 # dependency on libdecnumber.
7073 default_decimal_float=dpd
7075 esac
7080 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7082 cat >>confdefs.h <<_ACEOF
7083 #define ENABLE_DECIMAL_FLOAT $dfp
7084 _ACEOF
7087 # Use default_decimal_float for dependency.
7088 enable_decimal_float=$default_decimal_float
7090 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7092 cat >>confdefs.h <<_ACEOF
7093 #define ENABLE_DECIMAL_BID_FORMAT $bid
7094 _ACEOF
7097 # Enable C extension for fixed-point arithmetic.
7098 # Check whether --enable-fixed-point was given.
7099 if test "${enable_fixed_point+set}" = set; then :
7100 enableval=$enable_fixed_point;
7101 else
7103 case $target in
7104 arm*)
7105 enable_fixed_point=yes
7108 mips*-*-*)
7109 enable_fixed_point=yes
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7114 enable_fixed_point=no
7116 esac
7122 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7124 cat >>confdefs.h <<_ACEOF
7125 #define ENABLE_FIXED_POINT $fixedpoint
7126 _ACEOF
7129 # Enable threads
7130 # Pass with no value to take the default
7131 # Pass with a value to specify a thread package
7132 # Check whether --enable-threads was given.
7133 if test "${enable_threads+set}" = set; then :
7134 enableval=$enable_threads;
7135 else
7136 enable_threads=''
7140 # Check whether --enable-tls was given.
7141 if test "${enable_tls+set}" = set; then :
7142 enableval=$enable_tls;
7143 case $enable_tls in
7144 yes | no) ;;
7145 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7146 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7147 esac
7149 else
7150 enable_tls=''
7154 # Check whether --enable-objc-gc was given.
7155 if test "${enable_objc_gc+set}" = set; then :
7156 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7157 objc_boehm_gc=''
7158 else
7159 objc_boehm_gc=1
7161 else
7162 objc_boehm_gc=''
7167 # Check whether --with-dwarf2 was given.
7168 if test "${with_dwarf2+set}" = set; then :
7169 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7170 else
7171 dwarf2=no
7175 # Check whether --enable-shared was given.
7176 if test "${enable_shared+set}" = set; then :
7177 enableval=$enable_shared;
7178 case $enable_shared in
7179 yes | no) ;;
7181 enable_shared=no
7182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7183 for pkg in $enableval; do
7184 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7185 enable_shared=yes
7187 done
7188 IFS="$ac_save_ifs"
7190 esac
7192 else
7193 enable_shared=yes
7199 # Check whether --with-native-system-header-dir was given.
7200 if test "${with_native_system_header_dir+set}" = set; then :
7201 withval=$with_native_system_header_dir;
7202 case ${with_native_system_header_dir} in
7203 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7204 /* | [A-Za-z]:[\\/]*) ;;
7205 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7206 esac
7207 configured_native_system_header_dir="${withval}"
7209 else
7210 configured_native_system_header_dir=
7215 # Check whether --with-build-sysroot was given.
7216 if test "${with_build_sysroot+set}" = set; then :
7217 withval=$with_build_sysroot; if test x"$withval" != x ; then
7218 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7220 else
7221 SYSROOT_CFLAGS_FOR_TARGET=
7226 if test "x$prefix" = xNONE; then
7227 test_prefix=/usr/local
7228 else
7229 test_prefix=$prefix
7231 if test "x$exec_prefix" = xNONE; then
7232 test_exec_prefix=$test_prefix
7233 else
7234 test_exec_prefix=$exec_prefix
7238 # Check whether --with-sysroot was given.
7239 if test "${with_sysroot+set}" = set; then :
7240 withval=$with_sysroot;
7241 case ${with_sysroot} in
7242 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7243 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7244 esac
7246 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7247 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7249 case ${TARGET_SYSTEM_ROOT} in
7250 "${test_prefix}"|"${test_prefix}/"*|\
7251 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7252 '${prefix}'|'${prefix}/'*|\
7253 '${exec_prefix}'|'${exec_prefix}/'*)
7254 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7255 TARGET_SYSTEM_ROOT_DEFINE="$t"
7257 esac
7259 else
7261 TARGET_SYSTEM_ROOT=
7262 TARGET_SYSTEM_ROOT_DEFINE=
7263 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7272 # Check whether --with-specs was given.
7273 if test "${with_specs+set}" = set; then :
7274 withval=$with_specs; CONFIGURE_SPECS=$withval
7275 else
7276 CONFIGURE_SPECS=
7284 # Check whether --with-pkgversion was given.
7285 if test "${with_pkgversion+set}" = set; then :
7286 withval=$with_pkgversion; case "$withval" in
7287 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7288 no) PKGVERSION= ;;
7289 *) PKGVERSION="($withval) " ;;
7290 esac
7291 else
7292 PKGVERSION="(GCC) "
7300 # Check whether --with-bugurl was given.
7301 if test "${with_bugurl+set}" = set; then :
7302 withval=$with_bugurl; case "$withval" in
7303 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7304 no) BUGURL=
7306 *) BUGURL="$withval"
7308 esac
7309 else
7310 BUGURL="http://gcc.gnu.org/bugs.html"
7314 case ${BUGURL} in
7316 REPORT_BUGS_TO=
7317 REPORT_BUGS_TEXI=
7320 REPORT_BUGS_TO="<$BUGURL>"
7321 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7323 esac;
7328 # Sanity check enable_languages in case someone does not run the toplevel
7329 # configure # script.
7330 # Check whether --enable-languages was given.
7331 if test "${enable_languages+set}" = set; then :
7332 enableval=$enable_languages; case ,${enable_languages}, in
7333 ,,|,yes,)
7334 # go safe -- we cannot be much sure without the toplevel
7335 # configure's
7336 # analysis of which target libs are present and usable
7337 enable_languages=c
7339 *,all,*)
7340 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7342 *,c,*)
7345 enable_languages=c,${enable_languages}
7347 esac
7348 else
7349 enable_languages=c
7354 # Check whether --with-multilib-list was given.
7355 if test "${with_multilib_list+set}" = set; then :
7356 withval=$with_multilib_list; :
7357 else
7358 with_multilib_list=default
7362 # -------------------------
7363 # Checks for other programs
7364 # -------------------------
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7367 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7368 set x ${MAKE-make}
7369 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 cat >conftest.make <<\_ACEOF
7374 SHELL = /bin/sh
7375 all:
7376 @echo '@@@%%%=$(MAKE)=@@@%%%'
7377 _ACEOF
7378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7380 *@@@%%%=?*=@@@%%%*)
7381 eval ac_cv_prog_make_${ac_make}_set=yes;;
7383 eval ac_cv_prog_make_${ac_make}_set=no;;
7384 esac
7385 rm -f conftest.make
7387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7390 SET_MAKE=
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 SET_MAKE="MAKE=${MAKE-make}"
7398 # Find some useful tools
7399 for ac_prog in gawk mawk nawk awk
7401 # Extract the first word of "$ac_prog", so it can be a program name with args.
7402 set dummy $ac_prog; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_AWK+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$AWK"; then
7409 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_AWK="$ac_prog"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7422 done
7423 done
7424 IFS=$as_save_IFS
7428 AWK=$ac_cv_prog_AWK
7429 if test -n "$AWK"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7431 $as_echo "$AWK" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7438 test -n "$AWK" && break
7439 done
7441 # We need awk to create options.c and options.h.
7442 # Bail out if it's missing.
7443 case ${AWK} in
7444 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7445 esac
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7448 $as_echo_n "checking whether ln -s works... " >&6; }
7449 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7455 then
7456 gcc_cv_prog_LN_S="ln -s"
7457 else
7458 if ln conftestdata_f conftestdata_t 2>/dev/null
7459 then
7460 gcc_cv_prog_LN_S=ln
7461 else
7462 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7463 then
7464 gcc_cv_prog_LN_S="cp -p"
7465 else
7466 gcc_cv_prog_LN_S=cp
7470 rm -f conftestdata_f conftestdata_t
7473 LN_S="$gcc_cv_prog_LN_S"
7474 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7476 $as_echo "yes" >&6; }
7477 else
7478 if test "$gcc_cv_prog_LN_S" = "ln"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7480 $as_echo "no, using ln" >&6; }
7481 else
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7483 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7488 $as_echo_n "checking whether ln works... " >&6; }
7489 if test "${acx_cv_prog_LN+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 rm -f conftestdata_t
7493 echo >conftestdata_f
7494 if ln conftestdata_f conftestdata_t 2>/dev/null
7495 then
7496 acx_cv_prog_LN=ln
7497 else
7498 acx_cv_prog_LN=no
7500 rm -f conftestdata_f conftestdata_t
7503 if test $acx_cv_prog_LN = no; then
7504 LN="$LN_S"
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7506 $as_echo "no, using $LN" >&6; }
7507 else
7508 LN="$acx_cv_prog_LN"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7510 $as_echo "yes" >&6; }
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$RANLIB"; then
7522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 RANLIB=$ac_cv_prog_RANLIB
7542 if test -n "$RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7544 $as_echo "$RANLIB" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_RANLIB"; then
7553 ac_ct_RANLIB=$RANLIB
7554 # Extract the first word of "ranlib", so it can be a program name with args.
7555 set dummy ranlib; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$ac_ct_RANLIB"; then
7562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_ac_ct_RANLIB="ranlib"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7582 if test -n "$ac_ct_RANLIB"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7584 $as_echo "$ac_ct_RANLIB" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_RANLIB" = x; then
7591 RANLIB=":"
7592 else
7593 case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599 RANLIB=$ac_ct_RANLIB
7601 else
7602 RANLIB="$ac_cv_prog_RANLIB"
7605 ranlib_flags=""
7608 # Find a good install program. We prefer a C program (faster),
7609 # so one script is as good as another. But avoid the broken or
7610 # incompatible versions:
7611 # SysV /etc/install, /usr/sbin/install
7612 # SunOS /usr/etc/install
7613 # IRIX /sbin/install
7614 # AIX /bin/install
7615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7617 # ./install, which can be erroneously created by make from ./install.sh.
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7619 $as_echo_n "checking for a BSD compatible install... " >&6; }
7620 if test -z "$INSTALL"; then
7621 if test "${ac_cv_path_install+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7625 for ac_dir in $PATH; do
7626 # Account for people who put trailing slashes in PATH elements.
7627 case "$ac_dir/" in
7628 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7630 # OSF1 and SCO ODT 3.0 have their own names for install.
7631 for ac_prog in ginstall scoinst install; do
7632 if test -f $ac_dir/$ac_prog; then
7633 if test $ac_prog = install &&
7634 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7635 # AIX install. It has an incompatible calling convention.
7636 # OSF/1 installbsd also uses dspmsg, but is usable.
7638 else
7639 ac_cv_path_install="$ac_dir/$ac_prog -c"
7640 break 2
7643 done
7645 esac
7646 done
7647 IFS="$ac_save_IFS"
7650 if test "${ac_cv_path_install+set}" = set; then
7651 INSTALL="$ac_cv_path_install"
7652 else
7653 # As a last resort, use the slow shell script. We don't cache a
7654 # path for INSTALL within a source directory, because that will
7655 # break other packages using the cache if that directory is
7656 # removed, or if the path is relative.
7657 INSTALL="$ac_install_sh"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7661 $as_echo "$INSTALL" >&6; }
7663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7664 # It thinks the first close brace ends the variable substitution.
7665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7670 # See if cmp has --ignore-initial.
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7672 $as_echo_n "checking for cmp's capabilities... " >&6; }
7673 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 echo abfoo >t1
7677 echo cdfoo >t2
7678 gcc_cv_prog_cmp_skip=slowcompare
7679 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7680 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7682 else
7683 gcc_cv_prog_cmp_skip=gnucompare
7686 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7687 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7688 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7690 else
7691 gcc_cv_prog_cmp_skip=fastcompare
7695 rm t1 t2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7699 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7700 make_compare_target=$gcc_cv_prog_cmp_skip
7704 # See if we have the mktemp command.
7705 # Extract the first word of "mktemp", so it can be a program name with args.
7706 set dummy mktemp; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$have_mktemp_command"; then
7713 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_have_mktemp_command="yes"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7726 done
7727 done
7728 IFS=$as_save_IFS
7730 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7733 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7734 if test -n "$have_mktemp_command"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7736 $as_echo "$have_mktemp_command" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7744 # See if makeinfo has been installed and is modern enough
7745 # that we can use it.
7747 # Extract the first word of "makeinfo", so it can be a program name with args.
7748 set dummy makeinfo; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$MAKEINFO"; then
7755 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_MAKEINFO="makeinfo"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7768 done
7769 done
7770 IFS=$as_save_IFS
7774 MAKEINFO=$ac_cv_prog_MAKEINFO
7775 if test -n "$MAKEINFO"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7777 $as_echo "$MAKEINFO" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 if test -n "$MAKEINFO"; then
7785 # Found it, now check the version.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7787 $as_echo_n "checking for modern makeinfo... " >&6; }
7788 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7792 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7794 case $ac_prog_version in
7795 '') gcc_cv_prog_makeinfo_modern=no;;
7796 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7797 *) gcc_cv_prog_makeinfo_modern=no;;
7798 esac
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7802 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7803 else
7804 gcc_cv_prog_makeinfo_modern=no
7806 if test $gcc_cv_prog_makeinfo_modern = no; then
7807 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7810 if test $gcc_cv_prog_makeinfo_modern = no; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7812 *** Makeinfo is missing or too old.
7813 *** Info documentation will not be built." >&5
7814 $as_echo "$as_me: WARNING:
7815 *** Makeinfo is missing or too old.
7816 *** Info documentation will not be built." >&2;}
7817 BUILD_INFO=
7818 else
7819 BUILD_INFO=info
7823 # Is pod2man recent enough to regenerate manpages?
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7825 $as_echo_n "checking for recent Pod::Man... " >&6; }
7826 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 GENERATED_MANPAGES=generated-manpages
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 GENERATED_MANPAGES=
7837 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7839 # How about lex?
7840 for ac_prog in flex
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_FLEX+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$FLEX"; then
7850 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_FLEX="$ac_prog"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7863 done
7864 done
7865 IFS=$as_save_IFS
7869 FLEX=$ac_cv_prog_FLEX
7870 if test -n "$FLEX"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7872 $as_echo "$FLEX" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7879 test -n "$FLEX" && break
7880 done
7881 test -n "$FLEX" || FLEX="$MISSING flex"
7884 # Bison?
7885 for ac_prog in bison
7887 # Extract the first word of "$ac_prog", so it can be a program name with args.
7888 set dummy $ac_prog; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_BISON+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$BISON"; then
7895 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_BISON="$ac_prog"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7908 done
7909 done
7910 IFS=$as_save_IFS
7914 BISON=$ac_cv_prog_BISON
7915 if test -n "$BISON"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7917 $as_echo "$BISON" >&6; }
7918 else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7924 test -n "$BISON" && break
7925 done
7926 test -n "$BISON" || BISON="$MISSING bison"
7929 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7930 # check for build == host before using them.
7932 # NM
7933 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7934 && test -d ../binutils ; then
7935 NM='${objdir}/../binutils/nm-new'
7936 else
7937 # Extract the first word of "nm", so it can be a program name with args.
7938 set dummy nm; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_NM+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$NM"; then
7945 ac_cv_prog_NM="$NM" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_NM="nm"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7962 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7965 NM=$ac_cv_prog_NM
7966 if test -n "$NM"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7968 $as_echo "$NM" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7977 # AR
7978 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7979 && test -d ../binutils ; then
7980 AR='${objdir}/../binutils/ar'
7981 else
7982 # Extract the first word of "ar", so it can be a program name with args.
7983 set dummy ar; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_AR+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$AR"; then
7990 ac_cv_prog_AR="$AR" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_AR="ar"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8007 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8010 AR=$ac_cv_prog_AR
8011 if test -n "$AR"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8013 $as_echo "$AR" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8023 # --------------------
8024 # Checks for C headers
8025 # --------------------
8027 # Need to reject headers which give warnings, so that the -Werror bootstrap
8028 # works later. *sigh* This needs to come before all header checks.
8030 ac_c_preproc_warn_flag=yes
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8033 $as_echo_n "checking for ANSI C header files... " >&6; }
8034 if test "${ac_cv_header_stdc+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <stdlib.h>
8040 #include <stdarg.h>
8041 #include <string.h>
8042 #include <float.h>
8045 main ()
8049 return 0;
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 ac_cv_header_stdc=yes
8054 else
8055 ac_cv_header_stdc=no
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 if test $ac_cv_header_stdc = yes; then
8060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 #include <string.h>
8065 _ACEOF
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 $EGREP "memchr" >/dev/null 2>&1; then :
8069 else
8070 ac_cv_header_stdc=no
8072 rm -f conftest*
8076 if test $ac_cv_header_stdc = yes; then
8077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <stdlib.h>
8082 _ACEOF
8083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8084 $EGREP "free" >/dev/null 2>&1; then :
8086 else
8087 ac_cv_header_stdc=no
8089 rm -f conftest*
8093 if test $ac_cv_header_stdc = yes; then
8094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8095 if test "$cross_compiling" = yes; then :
8097 else
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 #include <ctype.h>
8101 #include <stdlib.h>
8102 #if ((' ' & 0x0FF) == 0x020)
8103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8105 #else
8106 # define ISLOWER(c) \
8107 (('a' <= (c) && (c) <= 'i') \
8108 || ('j' <= (c) && (c) <= 'r') \
8109 || ('s' <= (c) && (c) <= 'z'))
8110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8111 #endif
8113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8115 main ()
8117 int i;
8118 for (i = 0; i < 256; i++)
8119 if (XOR (islower (i), ISLOWER (i))
8120 || toupper (i) != TOUPPER (i))
8121 return 2;
8122 return 0;
8124 _ACEOF
8125 if ac_fn_c_try_run "$LINENO"; then :
8127 else
8128 ac_cv_header_stdc=no
8130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8131 conftest.$ac_objext conftest.beam conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8137 $as_echo "$ac_cv_header_stdc" >&6; }
8138 if test $ac_cv_header_stdc = yes; then
8140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8145 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8146 if test "${ac_cv_header_time+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 #include <sys/types.h>
8152 #include <sys/time.h>
8153 #include <time.h>
8156 main ()
8158 if ((struct tm *) 0)
8159 return 0;
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165 ac_cv_header_time=yes
8166 else
8167 ac_cv_header_time=no
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8172 $as_echo "$ac_cv_header_time" >&6; }
8173 if test $ac_cv_header_time = yes; then
8175 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8180 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8181 if test "${gcc_cv_header_string+set}" = set; then :
8182 $as_echo_n "(cached) " >&6
8183 else
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 #include <string.h>
8187 #include <strings.h>
8189 main ()
8193 return 0;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 gcc_cv_header_string=yes
8198 else
8199 gcc_cv_header_string=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8204 $as_echo "$gcc_cv_header_string" >&6; }
8205 if test $gcc_cv_header_string = yes; then
8207 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8212 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8213 if test "${ac_cv_header_sys_wait_h+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/wait.h>
8220 #ifndef WEXITSTATUS
8221 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8222 #endif
8223 #ifndef WIFEXITED
8224 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8225 #endif
8228 main ()
8230 int s;
8231 wait (&s);
8232 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8234 return 0;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 ac_cv_header_sys_wait_h=yes
8239 else
8240 ac_cv_header_sys_wait_h=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8245 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8246 if test $ac_cv_header_sys_wait_h = yes; then
8248 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8253 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8254 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <termios.h>
8261 #ifdef TIOCGWINSZ
8263 #endif
8265 _ACEOF
8266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8267 $EGREP "yes" >/dev/null 2>&1; then :
8268 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8269 else
8270 ac_cv_sys_tiocgwinsz_in_termios_h=no
8272 rm -f conftest*
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8276 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8278 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8280 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8281 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 #include <sys/types.h>
8287 #include <sys/ioctl.h>
8288 #ifdef TIOCGWINSZ
8290 #endif
8292 _ACEOF
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294 $EGREP "yes" >/dev/null 2>&1; then :
8295 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8296 else
8297 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8299 rm -f conftest*
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8303 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8305 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8307 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8312 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8313 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8314 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8316 do :
8317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8319 eval as_val=\$$as_ac_Header
8320 if test "x$as_val" = x""yes; then :
8321 cat >>confdefs.h <<_ACEOF
8322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8323 _ACEOF
8326 done
8329 # Check for thread headers.
8330 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8331 if test "x$ac_cv_header_thread_h" = x""yes; then :
8332 have_thread_h=yes
8333 else
8334 have_thread_h=
8337 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8338 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8339 have_pthread_h=yes
8340 else
8341 have_pthread_h=
8345 # These tests can't be done till we know if we have limits.h.
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8347 $as_echo_n "checking for CHAR_BIT... " >&6; }
8348 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #ifdef HAVE_LIMITS_H
8354 #include <limits.h>
8355 #endif
8356 #ifdef CHAR_BIT
8357 found
8358 #endif
8359 _ACEOF
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361 $EGREP "found" >/dev/null 2>&1; then :
8362 gcc_cv_decl_char_bit=yes
8363 else
8364 gcc_cv_decl_char_bit=no
8366 rm -f conftest*
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8371 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8372 if test $gcc_cv_decl_char_bit = no; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8374 $as_echo_n "checking number of bits in a byte... " >&6; }
8375 if test "${gcc_cv_c_nbby+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8379 gcc_cv_c_nbby=
8380 while test $i -lt 65; do
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8385 main ()
8387 switch(0) {
8388 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8389 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8392 return 0;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 gcc_cv_c_nbby=$i; break
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 i=`expr $i + 1`
8400 done
8401 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8405 $as_echo "$gcc_cv_c_nbby" >&6; }
8406 if test $gcc_cv_c_nbby = failed; then
8407 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8408 else
8410 cat >>confdefs.h <<_ACEOF
8411 #define CHAR_BIT $gcc_cv_c_nbby
8412 _ACEOF
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8418 if test "${ac_cv_c_bigendian+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 ac_cv_c_bigendian=unknown
8422 # See if we're dealing with a universal compiler.
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8425 #ifndef __APPLE_CC__
8426 not a universal capable compiler
8427 #endif
8428 typedef int dummy;
8430 _ACEOF
8431 if ac_fn_c_try_compile "$LINENO"; then :
8433 # Check for potential -arch flags. It is not universal unless
8434 # there are at least two -arch flags with different values.
8435 ac_arch=
8436 ac_prev=
8437 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8438 if test -n "$ac_prev"; then
8439 case $ac_word in
8440 i?86 | x86_64 | ppc | ppc64)
8441 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8442 ac_arch=$ac_word
8443 else
8444 ac_cv_c_bigendian=universal
8445 break
8448 esac
8449 ac_prev=
8450 elif test "x$ac_word" = "x-arch"; then
8451 ac_prev=arch
8453 done
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 if test $ac_cv_c_bigendian = unknown; then
8457 # See if sys/param.h defines the BYTE_ORDER macro.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/param.h>
8464 main ()
8466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8467 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8468 && LITTLE_ENDIAN)
8469 bogus endian macros
8470 #endif
8473 return 0;
8475 _ACEOF
8476 if ac_fn_c_try_compile "$LINENO"; then :
8477 # It does; now see whether it defined to BIG_ENDIAN or not.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <sys/types.h>
8481 #include <sys/param.h>
8484 main ()
8486 #if BYTE_ORDER != BIG_ENDIAN
8487 not big endian
8488 #endif
8491 return 0;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"; then :
8495 ac_cv_c_bigendian=yes
8496 else
8497 ac_cv_c_bigendian=no
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 if test $ac_cv_c_bigendian = unknown; then
8504 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <limits.h>
8510 main ()
8512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8513 bogus endian macros
8514 #endif
8517 return 0;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to _BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <limits.h>
8527 main ()
8529 #ifndef _BIG_ENDIAN
8530 not big endian
8531 #endif
8534 return 0;
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"; then :
8538 ac_cv_c_bigendian=yes
8539 else
8540 ac_cv_c_bigendian=no
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 if test $ac_cv_c_bigendian = unknown; then
8547 # Compile a test program.
8548 if test "$cross_compiling" = yes; then :
8549 # Try to guess by grepping values from an object file.
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 short int ascii_mm[] =
8553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8554 short int ascii_ii[] =
8555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8556 int use_ascii (int i) {
8557 return ascii_mm[i] + ascii_ii[i];
8559 short int ebcdic_ii[] =
8560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8561 short int ebcdic_mm[] =
8562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8563 int use_ebcdic (int i) {
8564 return ebcdic_mm[i] + ebcdic_ii[i];
8566 extern int foo;
8569 main ()
8571 return use_ascii (foo) == use_ebcdic (foo);
8573 return 0;
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8578 ac_cv_c_bigendian=yes
8580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8581 if test "$ac_cv_c_bigendian" = unknown; then
8582 ac_cv_c_bigendian=no
8583 else
8584 # finding both strings is unlikely to happen, but who knows?
8585 ac_cv_c_bigendian=unknown
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 else
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 $ac_includes_default
8595 main ()
8598 /* Are we little or big endian? From Harbison&Steele. */
8599 union
8601 long int l;
8602 char c[sizeof (long int)];
8603 } u;
8604 u.l = 1;
8605 return u.c[sizeof (long int) - 1] == 1;
8608 return 0;
8610 _ACEOF
8611 if ac_fn_c_try_run "$LINENO"; then :
8612 ac_cv_c_bigendian=no
8613 else
8614 ac_cv_c_bigendian=yes
8616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8617 conftest.$ac_objext conftest.beam conftest.$ac_ext
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8623 $as_echo "$ac_cv_c_bigendian" >&6; }
8624 case $ac_cv_c_bigendian in #(
8625 yes)
8626 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8627 ;; #(
8629 ;; #(
8630 universal)
8632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8634 ;; #(
8636 as_fn_error "unknown endianness
8637 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8638 esac
8641 # ----------------------
8642 # Checks for C++ headers
8643 # ----------------------
8645 ac_ext=cpp
8646 ac_cpp='$CXXCPP $CPPFLAGS'
8647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8651 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8652 if test -z "$CXXCPP"; then
8653 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 # Double quotes because CXXCPP needs to be expanded
8657 for CXXCPP in "$CXX -E" "/lib/cpp"
8659 ac_preproc_ok=false
8660 for ac_cxx_preproc_warn_flag in '' yes
8662 # Use a header file that comes with gcc, so configuring glibc
8663 # with a fresh cross-compiler works.
8664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8665 # <limits.h> exists even on freestanding compilers.
8666 # On the NeXT, cc -E runs the code through the compiler's parser,
8667 # not just through cpp. "Syntax error" is here to catch this case.
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670 #ifdef __STDC__
8671 # include <limits.h>
8672 #else
8673 # include <assert.h>
8674 #endif
8675 Syntax error
8676 _ACEOF
8677 if ac_fn_cxx_try_cpp "$LINENO"; then :
8679 else
8680 # Broken: fails on valid input.
8681 continue
8683 rm -f conftest.err conftest.$ac_ext
8685 # OK, works on sane cases. Now check whether nonexistent headers
8686 # can be detected and how.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <ac_nonexistent.h>
8690 _ACEOF
8691 if ac_fn_cxx_try_cpp "$LINENO"; then :
8692 # Broken: success on invalid input.
8693 continue
8694 else
8695 # Passes both tests.
8696 ac_preproc_ok=:
8697 break
8699 rm -f conftest.err conftest.$ac_ext
8701 done
8702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8703 rm -f conftest.err conftest.$ac_ext
8704 if $ac_preproc_ok; then :
8705 break
8708 done
8709 ac_cv_prog_CXXCPP=$CXXCPP
8712 CXXCPP=$ac_cv_prog_CXXCPP
8713 else
8714 ac_cv_prog_CXXCPP=$CXXCPP
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8717 $as_echo "$CXXCPP" >&6; }
8718 ac_preproc_ok=false
8719 for ac_cxx_preproc_warn_flag in '' yes
8721 # Use a header file that comes with gcc, so configuring glibc
8722 # with a fresh cross-compiler works.
8723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8724 # <limits.h> exists even on freestanding compilers.
8725 # On the NeXT, cc -E runs the code through the compiler's parser,
8726 # not just through cpp. "Syntax error" is here to catch this case.
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #ifdef __STDC__
8730 # include <limits.h>
8731 #else
8732 # include <assert.h>
8733 #endif
8734 Syntax error
8735 _ACEOF
8736 if ac_fn_cxx_try_cpp "$LINENO"; then :
8738 else
8739 # Broken: fails on valid input.
8740 continue
8742 rm -f conftest.err conftest.$ac_ext
8744 # OK, works on sane cases. Now check whether nonexistent headers
8745 # can be detected and how.
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 #include <ac_nonexistent.h>
8749 _ACEOF
8750 if ac_fn_cxx_try_cpp "$LINENO"; then :
8751 # Broken: success on invalid input.
8752 continue
8753 else
8754 # Passes both tests.
8755 ac_preproc_ok=:
8756 break
8758 rm -f conftest.err conftest.$ac_ext
8760 done
8761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8762 rm -f conftest.err conftest.$ac_ext
8763 if $ac_preproc_ok; then :
8765 else
8766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8769 See \`config.log' for more details." >&5
8770 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8771 See \`config.log' for more details." >&2;}; }
8774 ac_ext=c
8775 ac_cpp='$CPP $CPPFLAGS'
8776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8781 ac_ext=cpp
8782 ac_cpp='$CXXCPP $CPPFLAGS'
8783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8790 for ac_header in unordered_map
8791 do :
8792 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8793 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8794 cat >>confdefs.h <<_ACEOF
8795 #define HAVE_UNORDERED_MAP 1
8796 _ACEOF
8799 done
8801 for ac_header in tr1/unordered_map
8802 do :
8803 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8804 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8805 cat >>confdefs.h <<_ACEOF
8806 #define HAVE_TR1_UNORDERED_MAP 1
8807 _ACEOF
8810 done
8812 for ac_header in ext/hash_map
8813 do :
8814 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8815 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8816 cat >>confdefs.h <<_ACEOF
8817 #define HAVE_EXT_HASH_MAP 1
8818 _ACEOF
8821 done
8824 ac_ext=c
8825 ac_cpp='$CPP $CPPFLAGS'
8826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831 # --------
8832 # Dependency checking.
8833 # --------
8835 ac_ext=cpp
8836 ac_cpp='$CXXCPP $CPPFLAGS'
8837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8841 rm -rf .tst 2>/dev/null
8842 mkdir .tst 2>/dev/null
8843 if test -d .tst; then
8844 am__leading_dot=.
8845 else
8846 am__leading_dot=_
8848 rmdir .tst 2>/dev/null
8850 DEPDIR="${am__leading_dot}deps"
8852 ac_config_commands="$ac_config_commands depdir"
8855 ac_config_commands="$ac_config_commands gccdepdir"
8858 depcc="$CXX" am_compiler_list=
8860 am_depcomp=$ac_aux_dir/depcomp
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8862 $as_echo_n "checking dependency style of $depcc... " >&6; }
8863 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -f "$am_depcomp"; then
8867 # We make a subdir and do the tests there. Otherwise we can end up
8868 # making bogus files that we don't know about and never remove. For
8869 # instance it was reported that on HP-UX the gcc test will end up
8870 # making a dummy file named `D' -- because `-MD' means `put the output
8871 # in D'.
8872 mkdir conftest.dir
8873 # Copy depcomp to subdir because otherwise we won't find it if we're
8874 # using a relative directory.
8875 cp "$am_depcomp" conftest.dir
8876 cd conftest.dir
8877 # We will build objects and dependencies in a subdirectory because
8878 # it helps to detect inapplicable dependency modes. For instance
8879 # both Tru64's cc and ICC support -MD to output dependencies as a
8880 # side effect of compilation, but ICC will put the dependencies in
8881 # the current directory while Tru64 will put them in the object
8882 # directory.
8883 mkdir sub
8885 am_cv_CXX_dependencies_compiler_type=none
8886 if test "$am_compiler_list" = ""; then
8887 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8889 for depmode in $am_compiler_list; do
8890 if test $depmode = none; then break; fi
8892 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8893 # Setup a source with many dependencies, because some compilers
8894 # like to wrap large dependency lists on column 80 (with \), and
8895 # we should not choose a depcomp mode which is confused by this.
8897 # We need to recreate these files for each test, as the compiler may
8898 # overwrite some of them when testing with obscure command lines.
8899 # This happens at least with the AIX C compiler.
8900 : > sub/conftest.c
8901 for i in 1 2 3 4 5 6; do
8902 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8903 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8904 # Solaris 8's {/usr,}/bin/sh.
8905 touch sub/conftst$i.h
8906 done
8907 echo "include sub/conftest.Po" > confmf
8909 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8910 # mode. It turns out that the SunPro C++ compiler does not properly
8911 # handle `-M -o', and we need to detect this.
8912 depcmd="depmode=$depmode \
8913 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8914 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8915 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8916 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8917 if env $depcmd > conftest.err 2>&1 &&
8918 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8919 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8920 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8921 # icc doesn't choke on unknown options, it will just issue warnings
8922 # or remarks (even with -Werror). So we grep stderr for any message
8923 # that says an option was ignored or not supported.
8924 # When given -MP, icc 7.0 and 7.1 complain thusly:
8925 # icc: Command line warning: ignoring option '-M'; no argument required
8926 # The diagnosis changed in icc 8.0:
8927 # icc: Command line remark: option '-MP' not supported
8928 if (grep 'ignoring option' conftest.err ||
8929 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8930 am_cv_CXX_dependencies_compiler_type=$depmode
8931 $as_echo "$as_me:$LINENO: success" >&5
8932 break
8935 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8936 sed -e 's/^/| /' < conftest.err >&5
8937 done
8939 cd ..
8940 rm -rf conftest.dir
8941 else
8942 am_cv_CXX_dependencies_compiler_type=none
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8947 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8948 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8949 then as_fn_error "no usable dependency style found" "$LINENO" 5
8950 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961 # --------
8962 # UNSORTED
8963 # --------
8966 # These libraries may be used by collect2.
8967 # We may need a special search path to get them linked.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8969 $as_echo_n "checking for collect2 libraries... " >&6; }
8970 if test "${gcc_cv_collect2_libs+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 save_LIBS="$LIBS"
8974 for libs in '' -lld -lmld \
8975 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8976 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8978 LIBS="$libs"
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8982 /* Override any GCC internal prototype to avoid an error.
8983 Use char because int might match the return type of a GCC
8984 builtin and then its argument prototype would still apply. */
8985 #ifdef __cplusplus
8986 extern "C"
8987 #endif
8988 char ldopen ();
8990 main ()
8992 return ldopen ();
8994 return 0;
8996 _ACEOF
8997 if ac_fn_c_try_link "$LINENO"; then :
8998 gcc_cv_collect2_libs="$libs"; break
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 done
9003 LIBS="$save_LIBS"
9004 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9007 $as_echo "$gcc_cv_collect2_libs" >&6; }
9008 case $gcc_cv_collect2_libs in
9009 "none required") ;;
9010 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9011 esac
9014 # When building Ada code on Alpha, we need exc_resume which is usually in
9015 # -lexc. So test for it.
9016 save_LIBS="$LIBS"
9017 LIBS=
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9019 $as_echo_n "checking for library containing exc_resume... " >&6; }
9020 if test "${ac_cv_search_exc_resume+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 ac_func_search_save_LIBS=$LIBS
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9027 /* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
9030 #ifdef __cplusplus
9031 extern "C"
9032 #endif
9033 char exc_resume ();
9035 main ()
9037 return exc_resume ();
9039 return 0;
9041 _ACEOF
9042 for ac_lib in '' exc; do
9043 if test -z "$ac_lib"; then
9044 ac_res="none required"
9045 else
9046 ac_res=-l$ac_lib
9047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ac_cv_search_exc_resume=$ac_res
9052 rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext
9054 if test "${ac_cv_search_exc_resume+set}" = set; then :
9055 break
9057 done
9058 if test "${ac_cv_search_exc_resume+set}" = set; then :
9060 else
9061 ac_cv_search_exc_resume=no
9063 rm conftest.$ac_ext
9064 LIBS=$ac_func_search_save_LIBS
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9067 $as_echo "$ac_cv_search_exc_resume" >&6; }
9068 ac_res=$ac_cv_search_exc_resume
9069 if test "$ac_res" != no; then :
9070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9074 GNAT_LIBEXC="$LIBS"
9075 LIBS="$save_LIBS"
9078 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9079 save_LIBS="$LIBS"
9080 LIBS=
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9082 $as_echo_n "checking for library containing kstat_open... " >&6; }
9083 if test "${ac_cv_search_kstat_open+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 ac_func_search_save_LIBS=$LIBS
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char kstat_open ();
9098 main ()
9100 return kstat_open ();
9102 return 0;
9104 _ACEOF
9105 for ac_lib in '' kstat; do
9106 if test -z "$ac_lib"; then
9107 ac_res="none required"
9108 else
9109 ac_res=-l$ac_lib
9110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 ac_cv_search_kstat_open=$ac_res
9115 rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext
9117 if test "${ac_cv_search_kstat_open+set}" = set; then :
9118 break
9120 done
9121 if test "${ac_cv_search_kstat_open+set}" = set; then :
9123 else
9124 ac_cv_search_kstat_open=no
9126 rm conftest.$ac_ext
9127 LIBS=$ac_func_search_save_LIBS
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9130 $as_echo "$ac_cv_search_kstat_open" >&6; }
9131 ac_res=$ac_cv_search_kstat_open
9132 if test "$ac_res" != no; then :
9133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9137 EXTRA_GCC_LIBS="$LIBS"
9138 LIBS="$save_LIBS"
9141 # Some systems put ldexp and frexp in libm instead of libc; assume
9142 # they're both in the same place. jcf-dump needs them.
9143 save_LIBS="$LIBS"
9144 LIBS=
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9146 $as_echo_n "checking for library containing ldexp... " >&6; }
9147 if test "${ac_cv_search_ldexp+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 ac_func_search_save_LIBS=$LIBS
9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152 /* end confdefs.h. */
9154 /* Override any GCC internal prototype to avoid an error.
9155 Use char because int might match the return type of a GCC
9156 builtin and then its argument prototype would still apply. */
9157 #ifdef __cplusplus
9158 extern "C"
9159 #endif
9160 char ldexp ();
9162 main ()
9164 return ldexp ();
9166 return 0;
9168 _ACEOF
9169 for ac_lib in '' m; do
9170 if test -z "$ac_lib"; then
9171 ac_res="none required"
9172 else
9173 ac_res=-l$ac_lib
9174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 ac_cv_search_ldexp=$ac_res
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext
9181 if test "${ac_cv_search_ldexp+set}" = set; then :
9182 break
9184 done
9185 if test "${ac_cv_search_ldexp+set}" = set; then :
9187 else
9188 ac_cv_search_ldexp=no
9190 rm conftest.$ac_ext
9191 LIBS=$ac_func_search_save_LIBS
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9194 $as_echo "$ac_cv_search_ldexp" >&6; }
9195 ac_res=$ac_cv_search_ldexp
9196 if test "$ac_res" != no; then :
9197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9201 LDEXP_LIB="$LIBS"
9202 LIBS="$save_LIBS"
9205 # Use <inttypes.h> only if it exists,
9206 # doesn't clash with <sys/types.h>, and declares intmax_t.
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9208 $as_echo_n "checking for inttypes.h... " >&6; }
9209 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
9211 else
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <sys/types.h>
9215 #include <inttypes.h>
9217 main ()
9219 intmax_t i = -1;
9221 return 0;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 gcc_cv_header_inttypes_h=yes
9226 else
9227 gcc_cv_header_inttypes_h=no
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9233 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9234 if test $gcc_cv_header_inttypes_h = yes; then
9236 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9242 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9243 sysconf strsignal getrusage nl_langinfo \
9244 gettimeofday mbstowcs wcswidth mmap setlocale \
9245 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
9246 do :
9247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9249 eval as_val=\$$as_ac_var
9250 if test "x$as_val" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9253 _ACEOF
9256 done
9259 if test x$ac_cv_func_mbstowcs = xyes; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9261 $as_echo_n "checking whether mbstowcs works... " >&6; }
9262 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 if test "$cross_compiling" = yes; then :
9266 gcc_cv_func_mbstowcs_works=yes
9267 else
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 #include <stdlib.h>
9271 int main()
9273 mbstowcs(0, "", 0);
9274 return 0;
9276 _ACEOF
9277 if ac_fn_c_try_run "$LINENO"; then :
9278 gcc_cv_func_mbstowcs_works=yes
9279 else
9280 gcc_cv_func_mbstowcs_works=no
9282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9283 conftest.$ac_objext conftest.beam conftest.$ac_ext
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9288 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9289 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9291 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9296 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9297 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9299 else
9301 cat >>confdefs.h <<_ACEOF
9302 #define ssize_t int
9303 _ACEOF
9307 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9308 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9310 else
9312 cat >>confdefs.h <<_ACEOF
9313 #define caddr_t char *
9314 _ACEOF
9320 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9321 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9322 gcc_header_sys_mman_h=yes
9323 else
9324 gcc_header_sys_mman_h=no
9327 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9328 if test "x$ac_cv_func_mmap" = x""yes; then :
9329 gcc_func_mmap=yes
9330 else
9331 gcc_func_mmap=no
9334 if test "$gcc_header_sys_mman_h" != yes \
9335 || test "$gcc_func_mmap" != yes; then
9336 gcc_cv_func_mmap_file=no
9337 gcc_cv_func_mmap_dev_zero=no
9338 gcc_cv_func_mmap_anon=no
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9341 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9342 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 # Add a system to this blacklist if
9346 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9347 # memory area containing the same data that you'd get if you applied
9348 # read() to the same fd. The only system known to have a problem here
9349 # is VMS, where text files have record structure.
9350 case "$host_os" in
9351 *vms* | ultrix*)
9352 gcc_cv_func_mmap_file=no ;;
9354 gcc_cv_func_mmap_file=yes;;
9355 esac
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9358 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9360 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9361 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9363 else
9364 # Add a system to this blacklist if it has mmap() but /dev/zero
9365 # does not exist, or if mmapping /dev/zero does not give anonymous
9366 # zeroed pages with both the following properties:
9367 # 1. If you map N consecutive pages in with one call, and then
9368 # unmap any subset of those pages, the pages that were not
9369 # explicitly unmapped remain accessible.
9370 # 2. If you map two adjacent blocks of memory and then unmap them
9371 # both at once, they must both go away.
9372 # Systems known to be in this category are Windows (all variants),
9373 # VMS, and Darwin.
9374 case "$host_os" in
9375 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9376 gcc_cv_func_mmap_dev_zero=no ;;
9378 gcc_cv_func_mmap_dev_zero=yes;;
9379 esac
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9382 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9384 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9386 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9387 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9392 #include <sys/types.h>
9393 #include <sys/mman.h>
9394 #include <unistd.h>
9396 #ifndef MAP_ANONYMOUS
9397 #define MAP_ANONYMOUS MAP_ANON
9398 #endif
9401 main ()
9403 int n = MAP_ANONYMOUS;
9405 return 0;
9407 _ACEOF
9408 if ac_fn_c_try_compile "$LINENO"; then :
9409 gcc_cv_decl_map_anon=yes
9410 else
9411 gcc_cv_decl_map_anon=no
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9416 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9418 if test $gcc_cv_decl_map_anon = no; then
9419 gcc_cv_func_mmap_anon=no
9420 else
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9422 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9423 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9427 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9428 # doesn't give anonymous zeroed pages with the same properties listed
9429 # above for use of /dev/zero.
9430 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9431 case "$host_os" in
9432 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9433 gcc_cv_func_mmap_anon=no ;;
9435 gcc_cv_func_mmap_anon=yes;;
9436 esac
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9439 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9443 if test $gcc_cv_func_mmap_file = yes; then
9445 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9448 if test $gcc_cv_func_mmap_dev_zero = yes; then
9450 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9453 if test $gcc_cv_func_mmap_anon = yes; then
9455 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9460 case "${host}" in
9461 *-*-*vms*)
9462 # Under VMS, vfork works very differently than on Unix. The standard test
9463 # won't work, and it isn't easily adaptable. It makes more sense to
9464 # just force it.
9465 ac_cv_func_vfork_works=yes
9467 esac
9468 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9469 if test "x$ac_cv_type_pid_t" = x""yes; then :
9471 else
9473 cat >>confdefs.h <<_ACEOF
9474 #define pid_t int
9475 _ACEOF
9479 for ac_header in vfork.h
9480 do :
9481 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9482 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_VFORK_H 1
9485 _ACEOF
9488 done
9490 for ac_func in fork vfork
9491 do :
9492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9494 eval as_val=\$$as_ac_var
9495 if test "x$as_val" = x""yes; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9498 _ACEOF
9501 done
9503 if test "x$ac_cv_func_fork" = xyes; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9505 $as_echo_n "checking for working fork... " >&6; }
9506 if test "${ac_cv_func_fork_works+set}" = set; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 if test "$cross_compiling" = yes; then :
9510 ac_cv_func_fork_works=cross
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 $ac_includes_default
9516 main ()
9519 /* By Ruediger Kuhlmann. */
9520 return fork () < 0;
9523 return 0;
9525 _ACEOF
9526 if ac_fn_c_try_run "$LINENO"; then :
9527 ac_cv_func_fork_works=yes
9528 else
9529 ac_cv_func_fork_works=no
9531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9532 conftest.$ac_objext conftest.beam conftest.$ac_ext
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9537 $as_echo "$ac_cv_func_fork_works" >&6; }
9539 else
9540 ac_cv_func_fork_works=$ac_cv_func_fork
9542 if test "x$ac_cv_func_fork_works" = xcross; then
9543 case $host in
9544 *-*-amigaos* | *-*-msdosdjgpp*)
9545 # Override, as these systems have only a dummy fork() stub
9546 ac_cv_func_fork_works=no
9549 ac_cv_func_fork_works=yes
9551 esac
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9553 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9555 ac_cv_func_vfork_works=$ac_cv_func_vfork
9556 if test "x$ac_cv_func_vfork" = xyes; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9558 $as_echo_n "checking for working vfork... " >&6; }
9559 if test "${ac_cv_func_vfork_works+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 if test "$cross_compiling" = yes; then :
9563 ac_cv_func_vfork_works=cross
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 /* Thanks to Paul Eggert for this test. */
9568 $ac_includes_default
9569 #include <sys/wait.h>
9570 #ifdef HAVE_VFORK_H
9571 # include <vfork.h>
9572 #endif
9573 /* On some sparc systems, changes by the child to local and incoming
9574 argument registers are propagated back to the parent. The compiler
9575 is told about this with #include <vfork.h>, but some compilers
9576 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9577 static variable whose address is put into a register that is
9578 clobbered by the vfork. */
9579 static void
9580 #ifdef __cplusplus
9581 sparc_address_test (int arg)
9582 # else
9583 sparc_address_test (arg) int arg;
9584 #endif
9586 static pid_t child;
9587 if (!child) {
9588 child = vfork ();
9589 if (child < 0) {
9590 perror ("vfork");
9591 _exit(2);
9593 if (!child) {
9594 arg = getpid();
9595 write(-1, "", 0);
9596 _exit (arg);
9602 main ()
9604 pid_t parent = getpid ();
9605 pid_t child;
9607 sparc_address_test (0);
9609 child = vfork ();
9611 if (child == 0) {
9612 /* Here is another test for sparc vfork register problems. This
9613 test uses lots of local variables, at least as many local
9614 variables as main has allocated so far including compiler
9615 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9616 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9617 reuse the register of parent for one of the local variables,
9618 since it will think that parent can't possibly be used any more
9619 in this routine. Assigning to the local variable will thus
9620 munge parent in the parent process. */
9621 pid_t
9622 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9623 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9624 /* Convince the compiler that p..p7 are live; otherwise, it might
9625 use the same hardware register for all 8 local variables. */
9626 if (p != p1 || p != p2 || p != p3 || p != p4
9627 || p != p5 || p != p6 || p != p7)
9628 _exit(1);
9630 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9631 from child file descriptors. If the child closes a descriptor
9632 before it execs or exits, this munges the parent's descriptor
9633 as well. Test for this by closing stdout in the child. */
9634 _exit(close(fileno(stdout)) != 0);
9635 } else {
9636 int status;
9637 struct stat st;
9639 while (wait(&status) != child)
9641 return (
9642 /* Was there some problem with vforking? */
9643 child < 0
9645 /* Did the child fail? (This shouldn't happen.) */
9646 || status
9648 /* Did the vfork/compiler bug occur? */
9649 || parent != getpid()
9651 /* Did the file descriptor bug occur? */
9652 || fstat(fileno(stdout), &st) != 0
9656 _ACEOF
9657 if ac_fn_c_try_run "$LINENO"; then :
9658 ac_cv_func_vfork_works=yes
9659 else
9660 ac_cv_func_vfork_works=no
9662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9663 conftest.$ac_objext conftest.beam conftest.$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9668 $as_echo "$ac_cv_func_vfork_works" >&6; }
9671 if test "x$ac_cv_func_fork_works" = xcross; then
9672 ac_cv_func_vfork_works=$ac_cv_func_vfork
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9674 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9677 if test "x$ac_cv_func_vfork_works" = xyes; then
9679 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9681 else
9683 $as_echo "#define vfork fork" >>confdefs.h
9686 if test "x$ac_cv_func_fork_works" = xyes; then
9688 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9693 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9694 # iconv() prototype.
9695 ac_ext=cpp
9696 ac_cpp='$CXXCPP $CPPFLAGS'
9697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9702 if test "X$prefix" = "XNONE"; then
9703 acl_final_prefix="$ac_default_prefix"
9704 else
9705 acl_final_prefix="$prefix"
9707 if test "X$exec_prefix" = "XNONE"; then
9708 acl_final_exec_prefix='${prefix}'
9709 else
9710 acl_final_exec_prefix="$exec_prefix"
9712 acl_save_prefix="$prefix"
9713 prefix="$acl_final_prefix"
9714 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9715 prefix="$acl_save_prefix"
9718 # Check whether --with-gnu-ld was given.
9719 if test "${with_gnu_ld+set}" = set; then :
9720 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9721 else
9722 with_gnu_ld=no
9725 # Prepare PATH_SEPARATOR.
9726 # The user is always right.
9727 if test "${PATH_SEPARATOR+set}" != set; then
9728 echo "#! /bin/sh" >conf$$.sh
9729 echo "exit 0" >>conf$$.sh
9730 chmod +x conf$$.sh
9731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9732 PATH_SEPARATOR=';'
9733 else
9734 PATH_SEPARATOR=:
9736 rm -f conf$$.sh
9738 ac_prog=ld
9739 if test "$GCC" = yes; then
9740 # Check if gcc -print-prog-name=ld gives a path.
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9742 $as_echo_n "checking for ld used by GCC... " >&6; }
9743 case $host in
9744 *-*-mingw*)
9745 # gcc leaves a trailing carriage return which upsets mingw
9746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9749 esac
9750 case $ac_prog in
9751 # Accept absolute paths.
9752 [\\/]* | [A-Za-z]:[\\/]*)
9753 re_direlt='/[^/][^/]*/\.\./'
9754 # Canonicalize the path of ld
9755 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9756 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9757 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9758 done
9759 test -z "$LD" && LD="$ac_prog"
9762 # If it fails, then pretend we aren't using GCC.
9763 ac_prog=ld
9766 # If it is relative, then search for the first ld in PATH.
9767 with_gnu_ld=unknown
9769 esac
9770 elif test "$with_gnu_ld" = yes; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9772 $as_echo_n "checking for GNU ld... " >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9775 $as_echo_n "checking for non-GNU ld... " >&6; }
9777 if test "${acl_cv_path_LD+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 if test -z "$LD"; then
9781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9782 for ac_dir in $PATH; do
9783 test -z "$ac_dir" && ac_dir=.
9784 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9785 acl_cv_path_LD="$ac_dir/$ac_prog"
9786 # Check to see if the program is GNU ld. I'd rather use --version,
9787 # but apparently some GNU ld's only accept -v.
9788 # Break only if it was the GNU/non-GNU ld that we prefer.
9789 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9790 test "$with_gnu_ld" != no && break
9791 else
9792 test "$with_gnu_ld" != yes && break
9795 done
9796 IFS="$ac_save_ifs"
9797 else
9798 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9802 LD="$acl_cv_path_LD"
9803 if test -n "$LD"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9805 $as_echo "$LD" >&6; }
9806 else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9810 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9812 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9813 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9817 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9818 acl_cv_prog_gnu_ld=yes
9819 else
9820 acl_cv_prog_gnu_ld=no
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9824 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9825 with_gnu_ld=$acl_cv_prog_gnu_ld
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9830 $as_echo_n "checking for shared library run path origin... " >&6; }
9831 if test "${acl_cv_rpath+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9835 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9836 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9837 . ./conftest.sh
9838 rm -f ./conftest.sh
9839 acl_cv_rpath=done
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9843 $as_echo "$acl_cv_rpath" >&6; }
9844 wl="$acl_cv_wl"
9845 libext="$acl_cv_libext"
9846 shlibext="$acl_cv_shlibext"
9847 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9848 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9849 hardcode_direct="$acl_cv_hardcode_direct"
9850 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9851 # Check whether --enable-rpath was given.
9852 if test "${enable_rpath+set}" = set; then :
9853 enableval=$enable_rpath; :
9854 else
9855 enable_rpath=yes
9865 use_additional=yes
9867 acl_save_prefix="$prefix"
9868 prefix="$acl_final_prefix"
9869 acl_save_exec_prefix="$exec_prefix"
9870 exec_prefix="$acl_final_exec_prefix"
9872 eval additional_includedir=\"$includedir\"
9873 eval additional_libdir=\"$libdir\"
9875 exec_prefix="$acl_save_exec_prefix"
9876 prefix="$acl_save_prefix"
9879 # Check whether --with-libiconv-prefix was given.
9880 if test "${with_libiconv_prefix+set}" = set; then :
9881 withval=$with_libiconv_prefix;
9882 if test "X$withval" = "Xno"; then
9883 use_additional=no
9884 else
9885 if test "X$withval" = "X"; then
9887 acl_save_prefix="$prefix"
9888 prefix="$acl_final_prefix"
9889 acl_save_exec_prefix="$exec_prefix"
9890 exec_prefix="$acl_final_exec_prefix"
9892 eval additional_includedir=\"$includedir\"
9893 eval additional_libdir=\"$libdir\"
9895 exec_prefix="$acl_save_exec_prefix"
9896 prefix="$acl_save_prefix"
9898 else
9899 additional_includedir="$withval/include"
9900 additional_libdir="$withval/lib"
9906 LIBICONV=
9907 LTLIBICONV=
9908 INCICONV=
9909 rpathdirs=
9910 ltrpathdirs=
9911 names_already_handled=
9912 names_next_round='iconv '
9913 while test -n "$names_next_round"; do
9914 names_this_round="$names_next_round"
9915 names_next_round=
9916 for name in $names_this_round; do
9917 already_handled=
9918 for n in $names_already_handled; do
9919 if test "$n" = "$name"; then
9920 already_handled=yes
9921 break
9923 done
9924 if test -z "$already_handled"; then
9925 names_already_handled="$names_already_handled $name"
9926 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9927 eval value=\"\$HAVE_LIB$uppername\"
9928 if test -n "$value"; then
9929 if test "$value" = yes; then
9930 eval value=\"\$LIB$uppername\"
9931 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9932 eval value=\"\$LTLIB$uppername\"
9933 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9934 else
9937 else
9938 found_dir=
9939 found_la=
9940 found_so=
9941 found_a=
9942 if test $use_additional = yes; then
9943 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9944 found_dir="$additional_libdir"
9945 found_so="$additional_libdir/lib$name.$shlibext"
9946 if test -f "$additional_libdir/lib$name.la"; then
9947 found_la="$additional_libdir/lib$name.la"
9949 else
9950 if test -f "$additional_libdir/lib$name.$libext"; then
9951 found_dir="$additional_libdir"
9952 found_a="$additional_libdir/lib$name.$libext"
9953 if test -f "$additional_libdir/lib$name.la"; then
9954 found_la="$additional_libdir/lib$name.la"
9959 if test "X$found_dir" = "X"; then
9960 for x in $LDFLAGS $LTLIBICONV; do
9962 acl_save_prefix="$prefix"
9963 prefix="$acl_final_prefix"
9964 acl_save_exec_prefix="$exec_prefix"
9965 exec_prefix="$acl_final_exec_prefix"
9966 eval x=\"$x\"
9967 exec_prefix="$acl_save_exec_prefix"
9968 prefix="$acl_save_prefix"
9970 case "$x" in
9971 -L*)
9972 dir=`echo "X$x" | sed -e 's/^X-L//'`
9973 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9974 found_dir="$dir"
9975 found_so="$dir/lib$name.$shlibext"
9976 if test -f "$dir/lib$name.la"; then
9977 found_la="$dir/lib$name.la"
9979 else
9980 if test -f "$dir/lib$name.$libext"; then
9981 found_dir="$dir"
9982 found_a="$dir/lib$name.$libext"
9983 if test -f "$dir/lib$name.la"; then
9984 found_la="$dir/lib$name.la"
9989 esac
9990 if test "X$found_dir" != "X"; then
9991 break
9993 done
9995 if test "X$found_dir" != "X"; then
9996 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9997 if test "X$found_so" != "X"; then
9998 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9999 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10000 else
10001 haveit=
10002 for x in $ltrpathdirs; do
10003 if test "X$x" = "X$found_dir"; then
10004 haveit=yes
10005 break
10007 done
10008 if test -z "$haveit"; then
10009 ltrpathdirs="$ltrpathdirs $found_dir"
10011 if test "$hardcode_direct" = yes; then
10012 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10013 else
10014 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10016 haveit=
10017 for x in $rpathdirs; do
10018 if test "X$x" = "X$found_dir"; then
10019 haveit=yes
10020 break
10022 done
10023 if test -z "$haveit"; then
10024 rpathdirs="$rpathdirs $found_dir"
10026 else
10027 haveit=
10028 for x in $LDFLAGS $LIBICONV; do
10030 acl_save_prefix="$prefix"
10031 prefix="$acl_final_prefix"
10032 acl_save_exec_prefix="$exec_prefix"
10033 exec_prefix="$acl_final_exec_prefix"
10034 eval x=\"$x\"
10035 exec_prefix="$acl_save_exec_prefix"
10036 prefix="$acl_save_prefix"
10038 if test "X$x" = "X-L$found_dir"; then
10039 haveit=yes
10040 break
10042 done
10043 if test -z "$haveit"; then
10044 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10046 if test "$hardcode_minus_L" != no; then
10047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10048 else
10049 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10054 else
10055 if test "X$found_a" != "X"; then
10056 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10057 else
10058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10061 additional_includedir=
10062 case "$found_dir" in
10063 */lib | */lib/)
10064 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10065 additional_includedir="$basedir/include"
10067 esac
10068 if test "X$additional_includedir" != "X"; then
10069 if test "X$additional_includedir" != "X/usr/include"; then
10070 haveit=
10071 if test "X$additional_includedir" = "X/usr/local/include"; then
10072 if test -n "$GCC"; then
10073 case $host_os in
10074 linux*) haveit=yes;;
10075 esac
10078 if test -z "$haveit"; then
10079 for x in $CPPFLAGS $INCICONV; do
10081 acl_save_prefix="$prefix"
10082 prefix="$acl_final_prefix"
10083 acl_save_exec_prefix="$exec_prefix"
10084 exec_prefix="$acl_final_exec_prefix"
10085 eval x=\"$x\"
10086 exec_prefix="$acl_save_exec_prefix"
10087 prefix="$acl_save_prefix"
10089 if test "X$x" = "X-I$additional_includedir"; then
10090 haveit=yes
10091 break
10093 done
10094 if test -z "$haveit"; then
10095 if test -d "$additional_includedir"; then
10096 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10102 if test -n "$found_la"; then
10103 save_libdir="$libdir"
10104 case "$found_la" in
10105 */* | *\\*) . "$found_la" ;;
10106 *) . "./$found_la" ;;
10107 esac
10108 libdir="$save_libdir"
10109 for dep in $dependency_libs; do
10110 case "$dep" in
10111 -L*)
10112 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10113 if test "X$additional_libdir" != "X/usr/lib"; then
10114 haveit=
10115 if test "X$additional_libdir" = "X/usr/local/lib"; then
10116 if test -n "$GCC"; then
10117 case $host_os in
10118 linux*) haveit=yes;;
10119 esac
10122 if test -z "$haveit"; then
10123 haveit=
10124 for x in $LDFLAGS $LIBICONV; do
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 acl_save_exec_prefix="$exec_prefix"
10129 exec_prefix="$acl_final_exec_prefix"
10130 eval x=\"$x\"
10131 exec_prefix="$acl_save_exec_prefix"
10132 prefix="$acl_save_prefix"
10134 if test "X$x" = "X-L$additional_libdir"; then
10135 haveit=yes
10136 break
10138 done
10139 if test -z "$haveit"; then
10140 if test -d "$additional_libdir"; then
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10144 haveit=
10145 for x in $LDFLAGS $LTLIBICONV; do
10147 acl_save_prefix="$prefix"
10148 prefix="$acl_final_prefix"
10149 acl_save_exec_prefix="$exec_prefix"
10150 exec_prefix="$acl_final_exec_prefix"
10151 eval x=\"$x\"
10152 exec_prefix="$acl_save_exec_prefix"
10153 prefix="$acl_save_prefix"
10155 if test "X$x" = "X-L$additional_libdir"; then
10156 haveit=yes
10157 break
10159 done
10160 if test -z "$haveit"; then
10161 if test -d "$additional_libdir"; then
10162 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10168 -R*)
10169 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10170 if test "$enable_rpath" != no; then
10171 haveit=
10172 for x in $rpathdirs; do
10173 if test "X$x" = "X$dir"; then
10174 haveit=yes
10175 break
10177 done
10178 if test -z "$haveit"; then
10179 rpathdirs="$rpathdirs $dir"
10181 haveit=
10182 for x in $ltrpathdirs; do
10183 if test "X$x" = "X$dir"; then
10184 haveit=yes
10185 break
10187 done
10188 if test -z "$haveit"; then
10189 ltrpathdirs="$ltrpathdirs $dir"
10193 -l*)
10194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10196 *.la)
10197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10200 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10201 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10203 esac
10204 done
10206 else
10207 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10212 done
10213 done
10214 if test "X$rpathdirs" != "X"; then
10215 if test -n "$hardcode_libdir_separator"; then
10216 alldirs=
10217 for found_dir in $rpathdirs; do
10218 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10219 done
10220 acl_save_libdir="$libdir"
10221 libdir="$alldirs"
10222 eval flag=\"$hardcode_libdir_flag_spec\"
10223 libdir="$acl_save_libdir"
10224 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10225 else
10226 for found_dir in $rpathdirs; do
10227 acl_save_libdir="$libdir"
10228 libdir="$found_dir"
10229 eval flag=\"$hardcode_libdir_flag_spec\"
10230 libdir="$acl_save_libdir"
10231 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10232 done
10235 if test "X$ltrpathdirs" != "X"; then
10236 for found_dir in $ltrpathdirs; do
10237 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10238 done
10247 am_save_CPPFLAGS="$CPPFLAGS"
10249 for element in $INCICONV; do
10250 haveit=
10251 for x in $CPPFLAGS; do
10253 acl_save_prefix="$prefix"
10254 prefix="$acl_final_prefix"
10255 acl_save_exec_prefix="$exec_prefix"
10256 exec_prefix="$acl_final_exec_prefix"
10257 eval x=\"$x\"
10258 exec_prefix="$acl_save_exec_prefix"
10259 prefix="$acl_save_prefix"
10261 if test "X$x" = "X$element"; then
10262 haveit=yes
10263 break
10265 done
10266 if test -z "$haveit"; then
10267 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10269 done
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10273 $as_echo_n "checking for iconv... " >&6; }
10274 if test "${am_cv_func_iconv+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10278 am_cv_func_iconv="no, consider installing GNU libiconv"
10279 am_cv_lib_iconv=no
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 #include <stdlib.h>
10283 #include <iconv.h>
10285 main ()
10287 iconv_t cd = iconv_open("","");
10288 iconv(cd,NULL,NULL,NULL,NULL);
10289 iconv_close(cd);
10291 return 0;
10293 _ACEOF
10294 if ac_fn_cxx_try_link "$LINENO"; then :
10295 am_cv_func_iconv=yes
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10299 if test "$am_cv_func_iconv" != yes; then
10300 am_save_LIBS="$LIBS"
10301 LIBS="$LIBS $LIBICONV"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <stdlib.h>
10305 #include <iconv.h>
10307 main ()
10309 iconv_t cd = iconv_open("","");
10310 iconv(cd,NULL,NULL,NULL,NULL);
10311 iconv_close(cd);
10313 return 0;
10315 _ACEOF
10316 if ac_fn_cxx_try_link "$LINENO"; then :
10317 am_cv_lib_iconv=yes
10318 am_cv_func_iconv=yes
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LIBS="$am_save_LIBS"
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10327 $as_echo "$am_cv_func_iconv" >&6; }
10328 if test "$am_cv_func_iconv" = yes; then
10330 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10333 if test "$am_cv_lib_iconv" = yes; then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10335 $as_echo_n "checking how to link with libiconv... " >&6; }
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10337 $as_echo "$LIBICONV" >&6; }
10338 else
10339 CPPFLAGS="$am_save_CPPFLAGS"
10340 LIBICONV=
10341 LTLIBICONV=
10346 if test "$am_cv_func_iconv" = yes; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10348 $as_echo_n "checking for iconv declaration... " >&6; }
10349 if test "${am_cv_proto_iconv+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 #include <stdlib.h>
10357 #include <iconv.h>
10358 extern
10359 #ifdef __cplusplus
10361 #endif
10362 #if defined(__STDC__) || defined(__cplusplus)
10363 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10364 #else
10365 size_t iconv();
10366 #endif
10369 main ()
10373 return 0;
10375 _ACEOF
10376 if ac_fn_cxx_try_compile "$LINENO"; then :
10377 am_cv_proto_iconv_arg1=""
10378 else
10379 am_cv_proto_iconv_arg1="const"
10381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10382 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);"
10385 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10387 }$am_cv_proto_iconv" >&5
10388 $as_echo "${ac_t:-
10389 }$am_cv_proto_iconv" >&6; }
10391 cat >>confdefs.h <<_ACEOF
10392 #define ICONV_CONST $am_cv_proto_iconv_arg1
10393 _ACEOF
10397 ac_ext=c
10398 ac_cpp='$CPP $CPPFLAGS'
10399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10404 # Until we have in-tree GNU iconv:
10405 LIBICONV_DEP=
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10410 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10411 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <locale.h>
10418 main ()
10420 return LC_MESSAGES
10422 return 0;
10424 _ACEOF
10425 if ac_fn_c_try_link "$LINENO"; then :
10426 am_cv_val_LC_MESSAGES=yes
10427 else
10428 am_cv_val_LC_MESSAGES=no
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10434 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10435 if test $am_cv_val_LC_MESSAGES = yes; then
10437 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10444 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10445 if test "${am_cv_langinfo_codeset+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 #include <langinfo.h>
10452 main ()
10454 char* cs = nl_langinfo(CODESET);
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 am_cv_langinfo_codeset=yes
10461 else
10462 am_cv_langinfo_codeset=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10469 $as_echo "$am_cv_langinfo_codeset" >&6; }
10470 if test $am_cv_langinfo_codeset = yes; then
10472 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10477 # We will need to find libiberty.h and ansidecl.h
10478 saved_CFLAGS="$CFLAGS"
10479 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10480 saved_CXXFLAGS="$CXXFLAGS"
10481 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10482 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10483 strsignal strstr stpcpy strverscmp \
10484 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10485 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
10487 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10489 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10490 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #undef $ac_tr_decl
10496 #define $ac_tr_decl 1
10498 #include "ansidecl.h"
10499 #include "system.h"
10502 main ()
10504 #ifndef $ac_func
10505 char *(*pfn) = (char *(*)) $ac_func ;
10506 #endif
10508 return 0;
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 eval "gcc_cv_have_decl_$ac_func=yes"
10513 else
10514 eval "gcc_cv_have_decl_$ac_func=no"
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10522 #define $ac_tr_decl 1
10523 _ACEOF
10525 else
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10528 #define $ac_tr_decl 0
10529 _ACEOF
10533 done
10536 for ac_func in getrlimit setrlimit getrusage
10538 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10540 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10541 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #undef $ac_tr_decl
10547 #define $ac_tr_decl 1
10549 #include "ansidecl.h"
10550 #include "system.h"
10551 #ifdef HAVE_SYS_RESOURCE_H
10552 #include <sys/resource.h>
10553 #endif
10557 main ()
10559 #ifndef $ac_func
10560 char *(*pfn) = (char *(*)) $ac_func ;
10561 #endif
10563 return 0;
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"; then :
10567 eval "gcc_cv_have_decl_$ac_func=yes"
10568 else
10569 eval "gcc_cv_have_decl_$ac_func=no"
10571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10574 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10576 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10577 #define $ac_tr_decl 1
10578 _ACEOF
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10583 #define $ac_tr_decl 0
10584 _ACEOF
10588 done
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #ifdef HAVE_SYS_RESOURCE_H
10597 #include <sys/resource.h>
10598 #endif
10601 main ()
10603 rlim_t l = 0;
10605 return 0;
10607 _ACEOF
10608 if ac_fn_c_try_compile "$LINENO"; then :
10610 else
10612 $as_echo "#define rlim_t long" >>confdefs.h
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10618 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10619 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10620 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10621 for ac_func in ldgetname
10623 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10625 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10626 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #undef $ac_tr_decl
10632 #define $ac_tr_decl 1
10634 #include "ansidecl.h"
10635 #include "system.h"
10636 #ifdef HAVE_LDFCN_H
10637 #undef FREAD
10638 #undef FWRITE
10639 #include <ldfcn.h>
10640 #endif
10644 main ()
10646 #ifndef $ac_func
10647 char *(*pfn) = (char *(*)) $ac_func ;
10648 #endif
10650 return 0;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"; then :
10654 eval "gcc_cv_have_decl_$ac_func=yes"
10655 else
10656 eval "gcc_cv_have_decl_$ac_func=no"
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10664 #define $ac_tr_decl 1
10665 _ACEOF
10667 else
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10669 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10670 #define $ac_tr_decl 0
10671 _ACEOF
10675 done
10678 for ac_func in times
10680 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10682 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10683 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 #undef $ac_tr_decl
10689 #define $ac_tr_decl 1
10691 #include "ansidecl.h"
10692 #include "system.h"
10693 #ifdef HAVE_SYS_TIMES_H
10694 #include <sys/times.h>
10695 #endif
10699 main ()
10701 #ifndef $ac_func
10702 char *(*pfn) = (char *(*)) $ac_func ;
10703 #endif
10705 return 0;
10707 _ACEOF
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709 eval "gcc_cv_have_decl_$ac_func=yes"
10710 else
10711 eval "gcc_cv_have_decl_$ac_func=no"
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10719 #define $ac_tr_decl 1
10720 _ACEOF
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10725 #define $ac_tr_decl 0
10726 _ACEOF
10730 done
10733 for ac_func in sigaltstack
10735 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10737 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10738 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10743 #undef $ac_tr_decl
10744 #define $ac_tr_decl 1
10746 #include "ansidecl.h"
10747 #include "system.h"
10748 #include <signal.h>
10752 main ()
10754 #ifndef $ac_func
10755 char *(*pfn) = (char *(*)) $ac_func ;
10756 #endif
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762 eval "gcc_cv_have_decl_$ac_func=yes"
10763 else
10764 eval "gcc_cv_have_decl_$ac_func=no"
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10772 #define $ac_tr_decl 1
10773 _ACEOF
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10778 #define $ac_tr_decl 0
10779 _ACEOF
10783 done
10786 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10787 # prototype.
10788 ac_ext=cpp
10789 ac_cpp='$CXXCPP $CPPFLAGS'
10790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10794 for ac_func in madvise
10796 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10798 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10799 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #undef $ac_tr_decl
10805 #define $ac_tr_decl 1
10807 #include "ansidecl.h"
10808 #include "system.h"
10812 main ()
10814 #ifndef $ac_func
10815 char *(*pfn) = (char *(*)) $ac_func ;
10816 #endif
10818 return 0;
10820 _ACEOF
10821 if ac_fn_cxx_try_compile "$LINENO"; then :
10822 eval "gcc_cv_have_decl_$ac_func=yes"
10823 else
10824 eval "gcc_cv_have_decl_$ac_func=no"
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10832 #define $ac_tr_decl 1
10833 _ACEOF
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10838 #define $ac_tr_decl 0
10839 _ACEOF
10843 done
10845 ac_ext=c
10846 ac_cpp='$CPP $CPPFLAGS'
10847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10852 # More time-related stuff.
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10854 $as_echo_n "checking for struct tms... " >&6; }
10855 if test "${ac_cv_struct_tms+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10862 #include "ansidecl.h"
10863 #include "system.h"
10864 #ifdef HAVE_SYS_TIMES_H
10865 #include <sys/times.h>
10866 #endif
10869 main ()
10871 struct tms tms;
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_compile "$LINENO"; then :
10877 ac_cv_struct_tms=yes
10878 else
10879 ac_cv_struct_tms=no
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10884 $as_echo "$ac_cv_struct_tms" >&6; }
10885 if test $ac_cv_struct_tms = yes; then
10887 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10891 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10892 # revisit after autoconf 2.50.
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10894 $as_echo_n "checking for clock_t... " >&6; }
10895 if test "${gcc_cv_type_clock_t+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10902 #include "ansidecl.h"
10903 #include "system.h"
10906 main ()
10908 clock_t x;
10910 return 0;
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"; then :
10914 gcc_cv_type_clock_t=yes
10915 else
10916 gcc_cv_type_clock_t=no
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10921 $as_echo "$gcc_cv_type_clock_t" >&6; }
10922 if test $gcc_cv_type_clock_t = yes; then
10924 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10928 # Check if F_SETLKW is supported by fcntl.
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10930 $as_echo_n "checking for F_SETLKW... " >&6; }
10931 if test "${ac_cv_f_setlkw+set}" = set; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 #include <fcntl.h>
10940 main ()
10943 struct flock fl;
10944 fl.l_whence = 0;
10945 fl.l_start = 0;
10946 fl.l_len = 0;
10947 fl.l_pid = 0;
10948 return fcntl (1, F_SETLKW, &fl);
10950 return 0;
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 ac_cv_f_setlkw=yes
10955 else
10956 ac_cv_f_setlkw=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10961 $as_echo "$ac_cv_f_setlkw" >&6; }
10962 if test $ac_cv_f_setlkw = yes; then
10964 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10968 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10969 CFLAGS="$saved_CFLAGS"
10970 CXXFLAGS="$saved_CXXFLAGS"
10972 # mkdir takes a single argument on some systems.
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10974 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10975 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10981 #include <sys/types.h>
10982 #ifdef HAVE_SYS_STAT_H
10983 # include <sys/stat.h>
10984 #endif
10985 #ifdef HAVE_UNISTD_H
10986 # include <unistd.h>
10987 #endif
10988 #ifdef HAVE_DIRECT_H
10989 # include <direct.h>
10990 #endif
10992 main ()
10994 mkdir ("foo", 0);
10996 return 0;
10998 _ACEOF
10999 if ac_fn_c_try_compile "$LINENO"; then :
11000 gcc_cv_mkdir_takes_one_arg=no
11001 else
11002 gcc_cv_mkdir_takes_one_arg=yes
11004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11007 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11008 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11010 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11015 # File extensions
11016 manext='.1'
11017 objext='.o'
11021 # With Setjmp/Longjmp based exception handling.
11022 # Check whether --enable-sjlj-exceptions was given.
11023 if test "${enable_sjlj_exceptions+set}" = set; then :
11024 enableval=$enable_sjlj_exceptions; case $target in
11025 *-*-hpux10*)
11026 if test $enableval != yes; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11028 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11029 enableval=yes
11032 esac
11033 force_sjlj_exceptions=yes
11034 else
11035 case $target in
11036 *-*-hpux10*)
11037 force_sjlj_exceptions=yes
11038 enableval=yes
11040 lm32*-*-*)
11041 force_sjlj_exceptions=yes
11042 enableval=yes
11045 force_sjlj_exceptions=no
11047 esac
11050 if test $force_sjlj_exceptions = yes; then
11051 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11053 cat >>confdefs.h <<_ACEOF
11054 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11055 _ACEOF
11059 # --------------------------------------------------------
11060 # Build, host, and target specific configuration fragments
11061 # --------------------------------------------------------
11063 # Collect build-machine-specific information.
11064 . ${srcdir}/config.build
11066 # Collect host-machine-specific information.
11067 . ${srcdir}/config.host
11069 target_gtfiles=
11071 # Collect target-machine-specific information.
11072 . ${srcdir}/config.gcc
11074 extra_objs="${host_extra_objs} ${extra_objs}"
11075 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11077 # Default the target-machine variables that were not explicitly set.
11078 if test x"$tm_file" = x
11079 then tm_file=$cpu_type/$cpu_type.h; fi
11081 if test x"$extra_headers" = x
11082 then extra_headers=; fi
11084 if test x$md_file = x
11085 then md_file=$cpu_type/$cpu_type.md; fi
11087 if test x$out_file = x
11088 then out_file=$cpu_type/$cpu_type.c; fi
11090 if test x"$tmake_file" = x
11091 then tmake_file=$cpu_type/t-$cpu_type
11094 # Support --enable-initfini-array.
11095 if test x$enable_initfini_array != xno; then
11096 tm_file="${tm_file} initfini-array.h"
11099 if test x"$dwarf2" = xyes
11100 then tm_file="$tm_file tm-dwarf2.h"
11103 # Say what files are being used for the output code and MD file.
11104 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11105 echo "Using \`$srcdir/config/$md_file' as machine description file."
11107 # If any of the xm_file variables contain nonexistent files, warn
11108 # about them and drop them.
11111 for x in $build_xm_file; do
11112 if test -f $srcdir/config/$x
11113 then bx="$bx $x"
11114 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11115 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11117 done
11118 build_xm_file="$bx"
11121 for x in $host_xm_file; do
11122 if test -f $srcdir/config/$x
11123 then hx="$hx $x"
11124 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11125 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11127 done
11128 host_xm_file="$hx"
11131 for x in $xm_file; do
11132 if test -f $srcdir/config/$x
11133 then tx="$tx $x"
11134 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11135 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11137 done
11138 xm_file="$tx"
11140 count=a
11141 for f in $tm_file; do
11142 count=${count}x
11143 done
11144 if test $count = ax; then
11145 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11146 else
11147 echo "Using the following target machine macro files:"
11148 for f in $tm_file; do
11149 echo " $srcdir/config/$f"
11150 done
11153 if test x$use_long_long_for_widest_fast_int = xyes; then
11155 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11159 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_GNU_LD $gnu_ld_bool
11163 _ACEOF
11166 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_GNU_AS $gnu_as_bool
11170 _ACEOF
11173 count=a
11174 for f in $host_xm_file; do
11175 count=${count}x
11176 done
11177 if test $count = a; then
11179 elif test $count = ax; then
11180 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11181 else
11182 echo "Using the following host machine macro files:"
11183 for f in $host_xm_file; do
11184 echo " $srcdir/config/$f"
11185 done
11187 echo "Using ${out_host_hook_obj} for host machine hooks."
11189 if test "$host_xm_file" != "$build_xm_file"; then
11190 count=a
11191 for f in $build_xm_file; do
11192 count=${count}x
11193 done
11194 if test $count = a; then
11196 elif test $count = ax; then
11197 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11198 else
11199 echo "Using the following build machine macro files:"
11200 for f in $build_xm_file; do
11201 echo " $srcdir/config/$f"
11202 done
11206 if test -n "$configured_native_system_header_dir"; then
11207 native_system_header_dir=$configured_native_system_header_dir
11209 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11212 case ${host} in
11213 powerpc*-*-darwin*)
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11215 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11216 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 #include <sys/cdefs.h>
11223 #include <sys/signal.h>
11224 #include <ucontext.h>
11225 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11227 _ACEOF
11228 if ac_fn_c_try_compile "$LINENO"; then :
11229 gcc_cv_mcontext_underscores=no
11230 else
11231 gcc_cv_mcontext_underscores=yes
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11236 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11237 if test $gcc_cv_mcontext_underscores = yes; then
11239 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11243 esac
11245 # ---------
11246 # Threading
11247 # ---------
11249 # Check if a valid thread package
11250 case ${enable_threads} in
11251 "" | no)
11252 # No threads
11253 target_thread_file='single'
11255 yes)
11256 # default
11257 target_thread_file='single'
11259 aix | dce | lynx | mipssde | posix | rtems | \
11260 single | tpf | vxworks | win32)
11261 target_thread_file=${enable_threads}
11264 echo "${enable_threads} is an unknown thread package" 1>&2
11265 exit 1
11267 esac
11269 if test x${thread_file} = x; then
11270 # No thread file set by target-specific clauses in config.gcc,
11271 # so use file chosen by default logic above
11272 thread_file=${target_thread_file}
11275 # --------
11276 # UNSORTED
11277 # --------
11279 use_cxa_atexit=no
11280 if test x$enable___cxa_atexit = xyes || \
11281 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11282 if test x$host = x$target; then
11283 case $host in
11284 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11285 # keyed to flag_use_cxa_atexit
11286 *-*-mingw32*)
11287 use_cxa_atexit=yes
11289 powerpc-ibm-aix*)
11290 use_cxa_atexit=yes
11293 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11294 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11295 use_cxa_atexit=yes
11296 else
11297 echo "__cxa_atexit can't be enabled on this target"
11301 esac
11302 else
11303 # We can't check for __cxa_atexit when building a cross, so assume
11304 # it is available
11305 use_cxa_atexit=yes
11307 if test x$use_cxa_atexit = xyes; then
11309 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11314 # Look for a file containing extra machine modes.
11315 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11316 extra_modes_file='$(srcdir)'/config/${extra_modes}
11319 cat >>confdefs.h <<_ACEOF
11320 #define EXTRA_MODES_FILE "config/$extra_modes"
11321 _ACEOF
11325 # Convert extra_options into a form suitable for Makefile use.
11326 extra_opt_files=
11327 all_opt_files=
11328 for f in $extra_options; do
11329 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11330 all_opt_files="$all_opt_files $srcdir/config/$f"
11331 done
11334 # auto-host.h is the file containing items generated by autoconf and is
11335 # the first file included by config.h.
11336 # If host=build, it is correct to have bconfig include auto-host.h
11337 # as well. If host!=build, we are in error and need to do more
11338 # work to find out the build config parameters.
11339 if test x$host = x$build
11340 then
11341 build_auto=auto-host.h
11342 else
11343 # We create a subdir, then run autoconf in the subdir.
11344 # To prevent recursion we set host and build for the new
11345 # invocation of configure to the build for this invocation
11346 # of configure.
11347 tempdir=build.$$
11348 rm -rf $tempdir
11349 mkdir $tempdir
11350 cd $tempdir
11351 case ${srcdir} in
11352 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11353 *) realsrcdir=../${srcdir};;
11354 esac
11355 # Clearing GMPINC is necessary to prevent host headers being
11356 # used by the build compiler. Defining GENERATOR_FILE stops
11357 # system.h from including gmp.h.
11358 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11359 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11360 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11361 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11362 ${realsrcdir}/configure \
11363 --enable-languages=${enable_languages-all} \
11364 --target=$target_alias --host=$build_alias --build=$build_alias
11366 # We just finished tests for the build machine, so rename
11367 # the file auto-build.h in the gcc directory.
11368 mv auto-host.h ../auto-build.h
11369 cd ..
11370 rm -rf $tempdir
11371 build_auto=auto-build.h
11375 tm_file="${tm_file} defaults.h"
11376 tm_p_file="${tm_p_file} tm-preds.h"
11377 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11378 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11379 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11380 # put this back in temporarily.
11381 xm_file="auto-host.h ansidecl.h ${xm_file}"
11383 # --------
11384 # UNSORTED
11385 # --------
11387 # Compile in configure arguments.
11388 if test -f configargs.h ; then
11389 # Being re-configured.
11390 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11391 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11392 else
11393 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11396 # Double all backslashes and backslash all quotes to turn
11397 # gcc_config_arguments into a C string.
11398 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11399 $gcc_config_arguments
11401 gcc_config_arguments_str=`cat conftest.out`
11402 rm -f conftest.out
11404 cat > configargs.h <<EOF
11405 /* Generated automatically. */
11406 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11407 static const char thread_model[] = "$thread_file";
11409 static const struct {
11410 const char *name, *value;
11411 } configure_default_options[] = $configure_default_options;
11414 gcc_BASEVER=`cat $srcdir/BASE-VER`
11415 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11416 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11417 if test -f $srcdir/REVISION ; then
11418 gcc_REVISION=`cat $srcdir/REVISION`
11419 else
11420 gcc_REVISION=""
11422 cat > plugin-version.h <<EOF
11423 #include "configargs.h"
11425 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11426 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11427 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11428 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11430 static char basever[] = "$gcc_BASEVER";
11431 static char datestamp[] = "$gcc_DATESTAMP";
11432 static char devphase[] = "$gcc_DEVPHASE";
11433 static char revision[] = "$gcc_REVISION";
11435 /* FIXME plugins: We should make the version information more precise.
11436 One way to do is to add a checksum. */
11438 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11439 devphase, revision,
11440 configuration_arguments};
11443 # Internationalization
11444 # If we haven't got the data from the intl directory,
11445 # assume NLS is disabled.
11446 USE_NLS=no
11447 LIBINTL=
11448 LIBINTL_DEP=
11449 INCINTL=
11450 XGETTEXT=
11451 GMSGFMT=
11452 POSUB=
11454 if test -f ../intl/config.intl; then
11455 . ../intl/config.intl
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11458 $as_echo_n "checking whether NLS is requested... " >&6; }
11459 if test x"$USE_NLS" != xyes; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11464 $as_echo "yes" >&6; }
11466 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11470 $as_echo_n "checking for catalogs to be installed... " >&6; }
11471 # Look for .po and .gmo files in the source directory.
11472 CATALOGS=
11473 XLINGUAS=
11474 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11475 # If there aren't any .gmo files the shell will give us the
11476 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11477 # weeded out.
11478 case "$cat" in *\**)
11479 continue;;
11480 esac
11481 # The quadruple backslash is collapsed to a double backslash
11482 # by the backticks, then collapsed again by the double quotes,
11483 # leaving us with one backslash in the sed expression (right
11484 # before the dot that mustn't act as a wildcard).
11485 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11486 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11487 # The user is allowed to set LINGUAS to a list of languages to
11488 # install catalogs for. If it's empty that means "all of them."
11489 if test "x$LINGUAS" = x; then
11490 CATALOGS="$CATALOGS $cat"
11491 XLINGUAS="$XLINGUAS $lang"
11492 else
11493 case "$LINGUAS" in *$lang*)
11494 CATALOGS="$CATALOGS $cat"
11495 XLINGUAS="$XLINGUAS $lang"
11497 esac
11499 done
11500 LINGUAS="$XLINGUAS"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11502 $as_echo "$LINGUAS" >&6; }
11505 DATADIRNAME=share
11507 INSTOBJEXT=.mo
11509 GENCAT=gencat
11511 CATOBJEXT=.gmo
11515 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11516 # -liconv on the link line twice.
11517 case "$LIBINTL" in *$LIBICONV*)
11518 LIBICONV= ;;
11519 esac
11521 # Check whether --enable-secureplt was given.
11522 if test "${enable_secureplt+set}" = set; then :
11523 enableval=$enable_secureplt;
11527 # Check whether --enable-leading-mingw64-underscores was given.
11528 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11529 enableval=$enable_leading_mingw64_underscores;
11532 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11534 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11538 # Check whether --enable-cld was given.
11539 if test "${enable_cld+set}" = set; then :
11540 enableval=$enable_cld;
11541 else
11542 enable_cld=no
11546 # Check whether --enable-frame-pointer was given.
11547 if test "${enable_frame_pointer+set}" = set; then :
11548 enableval=$enable_frame_pointer;
11549 else
11551 case $target_os in
11552 linux* | darwin[8912]*)
11553 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11554 # DWARF2.
11555 enable_frame_pointer=no
11558 enable_frame_pointer=yes
11560 esac
11565 # Windows32 Registry support for specifying GCC installation paths.
11566 # Check whether --enable-win32-registry was given.
11567 if test "${enable_win32_registry+set}" = set; then :
11568 enableval=$enable_win32_registry;
11572 case $host_os in
11573 win32 | pe | cygwin* | mingw32* | uwin*)
11574 if test "x$enable_win32_registry" != xno; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11576 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11577 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 ac_func_search_save_LIBS=$LIBS
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char RegOpenKeyExA ();
11592 main ()
11594 return RegOpenKeyExA ();
11596 return 0;
11598 _ACEOF
11599 for ac_lib in '' advapi32; do
11600 if test -z "$ac_lib"; then
11601 ac_res="none required"
11602 else
11603 ac_res=-l$ac_lib
11604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_search_RegOpenKeyExA=$ac_res
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext
11611 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11612 break
11614 done
11615 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11617 else
11618 ac_cv_search_RegOpenKeyExA=no
11620 rm conftest.$ac_ext
11621 LIBS=$ac_func_search_save_LIBS
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11624 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11625 ac_res=$ac_cv_search_RegOpenKeyExA
11626 if test "$ac_res" != no; then :
11627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11629 else
11630 enable_win32_registry=no
11635 if test "x$enable_win32_registry" != xno; then
11637 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11640 if test "x$enable_win32_registry" != xyes \
11641 && test "x$enable_win32_registry" != x; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11645 _ACEOF
11650 esac
11652 # Get an absolute path to the GCC top-level source directory
11653 holddir=`${PWDCMD-pwd}`
11654 cd $srcdir
11655 topdir=`${PWDCMD-pwd}`
11656 cd $holddir
11658 # Conditionalize the makefile for this host machine.
11659 xmake_file=
11660 for f in ${host_xmake_file}
11662 if test -f ${srcdir}/config/$f
11663 then
11664 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11666 done
11668 # Conditionalize the makefile for this target machine.
11669 tmake_file_=
11670 for f in ${tmake_file}
11672 if test -f ${srcdir}/config/$f
11673 then
11674 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11676 done
11677 tmake_file="${tmake_file_}"
11679 out_object_file=`basename $out_file .c`.o
11680 common_out_object_file=`basename $common_out_file .c`.o
11682 tm_file_list="options.h"
11683 tm_include_list="options.h insn-constants.h"
11684 for f in $tm_file; do
11685 case $f in
11686 ./* )
11687 f=`echo $f | sed 's/^..//'`
11688 tm_file_list="${tm_file_list} $f"
11689 tm_include_list="${tm_include_list} $f"
11691 defaults.h )
11692 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11693 tm_include_list="${tm_include_list} $f"
11696 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11697 tm_include_list="${tm_include_list} config/$f"
11699 esac
11700 done
11702 tm_p_file_list=
11703 tm_p_include_list=
11704 for f in $tm_p_file; do
11705 case $f in
11706 tm-preds.h )
11707 tm_p_file_list="${tm_p_file_list} $f"
11708 tm_p_include_list="${tm_p_include_list} $f"
11711 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11712 tm_p_include_list="${tm_p_include_list} config/$f"
11713 esac
11714 done
11716 xm_file_list=
11717 xm_include_list=
11718 for f in $xm_file; do
11719 case $f in
11720 ansidecl.h )
11721 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11722 xm_include_list="${xm_include_list} $f"
11724 auto-host.h )
11725 xm_file_list="${xm_file_list} $f"
11726 xm_include_list="${xm_include_list} $f"
11729 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11730 xm_include_list="${xm_include_list} config/$f"
11732 esac
11733 done
11735 host_xm_file_list=
11736 host_xm_include_list=
11737 for f in $host_xm_file; do
11738 case $f in
11739 ansidecl.h )
11740 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11741 host_xm_include_list="${host_xm_include_list} $f"
11743 auto-host.h )
11744 host_xm_file_list="${host_xm_file_list} $f"
11745 host_xm_include_list="${host_xm_include_list} $f"
11748 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11749 host_xm_include_list="${host_xm_include_list} config/$f"
11751 esac
11752 done
11754 build_xm_file_list=
11755 for f in $build_xm_file; do
11756 case $f in
11757 ansidecl.h )
11758 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11759 build_xm_include_list="${build_xm_include_list} $f"
11761 auto-build.h | auto-host.h )
11762 build_xm_file_list="${build_xm_file_list} $f"
11763 build_xm_include_list="${build_xm_include_list} $f"
11766 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11767 build_xm_include_list="${build_xm_include_list} config/$f"
11769 esac
11770 done
11772 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11773 # cross-compiler which does not use the native headers and libraries.
11774 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11775 CROSS=
11776 ALL=all.internal
11777 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11779 if test "x$with_build_sysroot" != x; then
11780 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11781 else
11782 # This value is used, even on a native system, because
11783 # CROSS_SYSTEM_HEADER_DIR is just
11784 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11785 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11788 if test x$host != x$target
11789 then
11790 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11791 ALL=all.cross
11792 SYSTEM_HEADER_DIR=$build_system_header_dir
11793 case "$host","$target" in
11794 # Darwin crosses can use the host system's libraries and headers,
11795 # because of the fat library support. Of course, it must be the
11796 # same version of Darwin on both sides. Allow the user to
11797 # just say --target=foo-darwin without a version number to mean
11798 # "the version on this system".
11799 *-*-darwin*,*-*-darwin*)
11800 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11801 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11802 if test $hostos = $targetos -o $targetos = darwin ; then
11803 CROSS=
11804 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11805 with_headers=yes
11809 i?86-*-*,x86_64-*-* \
11810 | powerpc*-*-*,powerpc64*-*-*)
11811 CROSS="$CROSS -DNATIVE_CROSS" ;;
11812 esac
11814 case $target in
11815 *-*-mingw*)
11816 if test "x$with_headers" = x; then
11817 with_headers=yes
11822 esac
11823 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11824 SYSTEM_HEADER_DIR=$build_system_header_dir
11827 # If this is a cross-compiler that does not
11828 # have its own set of headers then define
11829 # inhibit_libc
11831 # If this is using newlib, without having the headers available now,
11832 # then define inhibit_libc in LIBGCC2_CFLAGS.
11833 # This prevents libgcc2 from containing any code which requires libc
11834 # support.
11835 : ${inhibit_libc=false}
11836 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11837 test x$with_newlib = xyes ; } &&
11838 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11839 inhibit_libc=true
11843 # When building gcc with a cross-compiler, we need to adjust things so
11844 # that the generator programs are still built with the native compiler.
11845 # Also, we cannot run fixincludes.
11847 # These are the normal (build=host) settings:
11848 CC_FOR_BUILD='$(CC)'
11849 CXX_FOR_BUILD='$(CXX)'
11850 BUILD_CFLAGS='$(ALL_CFLAGS)'
11851 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11852 BUILD_LDFLAGS='$(LDFLAGS)'
11853 STMP_FIXINC=stmp-fixinc
11855 # And these apply if build != host, or we are generating coverage data
11856 if test x$build != x$host || test "x$coverage_flags" != x
11857 then
11858 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11859 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11860 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11863 # Expand extra_headers to include complete path.
11864 # This substitutes for lots of t-* files.
11865 extra_headers_list=
11866 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11867 for file in ${extra_headers} ; do
11868 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11869 done
11871 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11872 if test x"$use_gcc_tgmath" = xyes
11873 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11876 # Define collect2 in Makefile.
11877 case $host_can_use_collect2 in
11878 no) collect2= ;;
11879 *) collect2='collect2$(exeext)' ;;
11880 esac
11883 # Add a definition of USE_COLLECT2 if system wants one.
11884 case $use_collect2 in
11885 no) use_collect2= ;;
11886 "") ;;
11888 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11889 xm_defines="${xm_defines} USE_COLLECT2"
11890 case $host_can_use_collect2 in
11892 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11894 esac
11896 esac
11899 cat >>confdefs.h <<_ACEOF
11900 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11901 _ACEOF
11904 # ---------------------------
11905 # Assembler & linker features
11906 # ---------------------------
11908 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11909 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11910 # However when ld-new is first executed from the build tree, libtool will
11911 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11912 # to the build tree. While doing this we need to use the previous-stage
11913 # linker, or we have an infinite loop. The presence of a shell script as
11914 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11915 # the gcc/collect-ld script. So we need to know how libtool works, or
11916 # exec-tool will fail.
11919 case `pwd` in
11920 *\ * | *\ *)
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11923 esac
11927 macro_version='2.2.7a'
11928 macro_revision='1.3134'
11942 ltmain="$ac_aux_dir/ltmain.sh"
11944 # Backslashify metacharacters that are still active within
11945 # double-quoted strings.
11946 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11948 # Same as above, but do not quote variable references.
11949 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11951 # Sed substitution to delay expansion of an escaped shell variable in a
11952 # double_quote_subst'ed string.
11953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11955 # Sed substitution to delay expansion of an escaped single quote.
11956 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11958 # Sed substitution to avoid accidental globbing in evaled expressions
11959 no_glob_subst='s/\*/\\\*/g'
11961 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11966 $as_echo_n "checking how to print strings... " >&6; }
11967 # Test print first, because it will be a builtin if present.
11968 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11969 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11970 ECHO='print -r --'
11971 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11972 ECHO='printf %s\n'
11973 else
11974 # Use this function as a fallback that always works.
11975 func_fallback_echo ()
11977 eval 'cat <<_LTECHO_EOF
11979 _LTECHO_EOF'
11981 ECHO='func_fallback_echo'
11984 # func_echo_all arg...
11985 # Invoke $ECHO with all args, space-separated.
11986 func_echo_all ()
11988 $ECHO ""
11991 case "$ECHO" in
11992 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11993 $as_echo "printf" >&6; } ;;
11994 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11995 $as_echo "print -r" >&6; } ;;
11996 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11997 $as_echo "cat" >&6; } ;;
11998 esac
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12014 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12015 if test "${ac_cv_path_SED+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12019 for ac_i in 1 2 3 4 5 6 7; do
12020 ac_script="$ac_script$as_nl$ac_script"
12021 done
12022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12023 { ac_script=; unset ac_script;}
12024 if test -z "$SED"; then
12025 ac_path_SED_found=false
12026 # Loop through the user's path and test for each of PROGNAME-LIST
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $PATH
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_prog in sed gsed; do
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12035 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12036 # Check for GNU ac_path_SED and select it if it is found.
12037 # Check for GNU $ac_path_SED
12038 case `"$ac_path_SED" --version 2>&1` in
12039 *GNU*)
12040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12042 ac_count=0
12043 $as_echo_n 0123456789 >"conftest.in"
12044 while :
12046 cat "conftest.in" "conftest.in" >"conftest.tmp"
12047 mv "conftest.tmp" "conftest.in"
12048 cp "conftest.in" "conftest.nl"
12049 $as_echo '' >> "conftest.nl"
12050 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12052 as_fn_arith $ac_count + 1 && ac_count=$as_val
12053 if test $ac_count -gt ${ac_path_SED_max-0}; then
12054 # Best one so far, save it but keep looking for a better one
12055 ac_cv_path_SED="$ac_path_SED"
12056 ac_path_SED_max=$ac_count
12058 # 10*(2^10) chars as input seems more than enough
12059 test $ac_count -gt 10 && break
12060 done
12061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12062 esac
12064 $ac_path_SED_found && break 3
12065 done
12066 done
12067 done
12068 IFS=$as_save_IFS
12069 if test -z "$ac_cv_path_SED"; then
12070 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12072 else
12073 ac_cv_path_SED=$SED
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12078 $as_echo "$ac_cv_path_SED" >&6; }
12079 SED="$ac_cv_path_SED"
12080 rm -f conftest.sed
12082 test -z "$SED" && SED=sed
12083 Xsed="$SED -e 1s/^X//"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12096 $as_echo_n "checking for fgrep... " >&6; }
12097 if test "${ac_cv_path_FGREP+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12101 then ac_cv_path_FGREP="$GREP -F"
12102 else
12103 if test -z "$FGREP"; then
12104 ac_path_FGREP_found=false
12105 # Loop through the user's path and test for each of PROGNAME-LIST
12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12109 IFS=$as_save_IFS
12110 test -z "$as_dir" && as_dir=.
12111 for ac_prog in fgrep; do
12112 for ac_exec_ext in '' $ac_executable_extensions; do
12113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12114 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12115 # Check for GNU ac_path_FGREP and select it if it is found.
12116 # Check for GNU $ac_path_FGREP
12117 case `"$ac_path_FGREP" --version 2>&1` in
12118 *GNU*)
12119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12121 ac_count=0
12122 $as_echo_n 0123456789 >"conftest.in"
12123 while :
12125 cat "conftest.in" "conftest.in" >"conftest.tmp"
12126 mv "conftest.tmp" "conftest.in"
12127 cp "conftest.in" "conftest.nl"
12128 $as_echo 'FGREP' >> "conftest.nl"
12129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12131 as_fn_arith $ac_count + 1 && ac_count=$as_val
12132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12133 # Best one so far, save it but keep looking for a better one
12134 ac_cv_path_FGREP="$ac_path_FGREP"
12135 ac_path_FGREP_max=$ac_count
12137 # 10*(2^10) chars as input seems more than enough
12138 test $ac_count -gt 10 && break
12139 done
12140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12141 esac
12143 $ac_path_FGREP_found && break 3
12144 done
12145 done
12146 done
12147 IFS=$as_save_IFS
12148 if test -z "$ac_cv_path_FGREP"; then
12149 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12151 else
12152 ac_cv_path_FGREP=$FGREP
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12158 $as_echo "$ac_cv_path_FGREP" >&6; }
12159 FGREP="$ac_cv_path_FGREP"
12162 test -z "$GREP" && GREP=grep
12182 # Check whether --with-gnu-ld was given.
12183 if test "${with_gnu_ld+set}" = set; then :
12184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12185 else
12186 with_gnu_ld=no
12189 ac_prog=ld
12190 if test "$GCC" = yes; then
12191 # Check if gcc -print-prog-name=ld gives a path.
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12193 $as_echo_n "checking for ld used by $CC... " >&6; }
12194 case $host in
12195 *-*-mingw*)
12196 # gcc leaves a trailing carriage return which upsets mingw
12197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12200 esac
12201 case $ac_prog in
12202 # Accept absolute paths.
12203 [\\/]* | ?:[\\/]*)
12204 re_direlt='/[^/][^/]*/\.\./'
12205 # Canonicalize the pathname of ld
12206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12209 done
12210 test -z "$LD" && LD="$ac_prog"
12213 # If it fails, then pretend we aren't using GCC.
12214 ac_prog=ld
12217 # If it is relative, then search for the first ld in PATH.
12218 with_gnu_ld=unknown
12220 esac
12221 elif test "$with_gnu_ld" = yes; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12223 $as_echo_n "checking for GNU ld... " >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12226 $as_echo_n "checking for non-GNU ld... " >&6; }
12228 if test "${lt_cv_path_LD+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 if test -z "$LD"; then
12232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12233 for ac_dir in $PATH; do
12234 IFS="$lt_save_ifs"
12235 test -z "$ac_dir" && ac_dir=.
12236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12237 lt_cv_path_LD="$ac_dir/$ac_prog"
12238 # Check to see if the program is GNU ld. I'd rather use --version,
12239 # but apparently some variants of GNU ld only accept -v.
12240 # Break only if it was the GNU/non-GNU ld that we prefer.
12241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12242 *GNU* | *'with BFD'*)
12243 test "$with_gnu_ld" != no && break
12246 test "$with_gnu_ld" != yes && break
12248 esac
12250 done
12251 IFS="$lt_save_ifs"
12252 else
12253 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12257 LD="$lt_cv_path_LD"
12258 if test -n "$LD"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12260 $as_echo "$LD" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12265 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12267 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12268 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12272 case `$LD -v 2>&1 </dev/null` in
12273 *GNU* | *'with BFD'*)
12274 lt_cv_prog_gnu_ld=yes
12277 lt_cv_prog_gnu_ld=no
12279 esac
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12282 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12283 with_gnu_ld=$lt_cv_prog_gnu_ld
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12294 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12295 if test "${lt_cv_path_NM+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 if test -n "$NM"; then
12299 # Let the user override the test.
12300 lt_cv_path_NM="$NM"
12301 else
12302 lt_nm_to_check="${ac_tool_prefix}nm"
12303 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12304 lt_nm_to_check="$lt_nm_to_check nm"
12306 for lt_tmp_nm in $lt_nm_to_check; do
12307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12308 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12309 IFS="$lt_save_ifs"
12310 test -z "$ac_dir" && ac_dir=.
12311 tmp_nm="$ac_dir/$lt_tmp_nm"
12312 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12313 # Check to see if the nm accepts a BSD-compat flag.
12314 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12315 # nm: unknown option "B" ignored
12316 # Tru64's nm complains that /dev/null is an invalid object file
12317 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12318 */dev/null* | *'Invalid file or object type'*)
12319 lt_cv_path_NM="$tmp_nm -B"
12320 break
12323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12324 */dev/null*)
12325 lt_cv_path_NM="$tmp_nm -p"
12326 break
12329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12330 continue # so that we can try to find one that supports BSD flags
12332 esac
12334 esac
12336 done
12337 IFS="$lt_save_ifs"
12338 done
12339 : ${lt_cv_path_NM=no}
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12343 $as_echo "$lt_cv_path_NM" >&6; }
12344 if test "$lt_cv_path_NM" != "no"; then
12345 NM="$lt_cv_path_NM"
12346 else
12347 # Didn't find any BSD compatible name lister, look for dumpbin.
12348 if test -n "$DUMPBIN"; then :
12349 # Let the user override the test.
12350 else
12351 if test -n "$ac_tool_prefix"; then
12352 for ac_prog in dumpbin "link -dump"
12354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357 $as_echo_n "checking for $ac_word... " >&6; }
12358 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -n "$DUMPBIN"; then
12362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12363 else
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12375 done
12376 done
12377 IFS=$as_save_IFS
12381 DUMPBIN=$ac_cv_prog_DUMPBIN
12382 if test -n "$DUMPBIN"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12384 $as_echo "$DUMPBIN" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12391 test -n "$DUMPBIN" && break
12392 done
12394 if test -z "$DUMPBIN"; then
12395 ac_ct_DUMPBIN=$DUMPBIN
12396 for ac_prog in dumpbin "link -dump"
12398 # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$ac_ct_DUMPBIN"; then
12406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12419 done
12420 done
12421 IFS=$as_save_IFS
12425 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12426 if test -n "$ac_ct_DUMPBIN"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12428 $as_echo "$ac_ct_DUMPBIN" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12435 test -n "$ac_ct_DUMPBIN" && break
12436 done
12438 if test "x$ac_ct_DUMPBIN" = x; then
12439 DUMPBIN=":"
12440 else
12441 case $cross_compiling:$ac_tool_warned in
12442 yes:)
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445 ac_tool_warned=yes ;;
12446 esac
12447 DUMPBIN=$ac_ct_DUMPBIN
12451 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12452 *COFF*)
12453 DUMPBIN="$DUMPBIN -symbols"
12456 DUMPBIN=:
12458 esac
12461 if test "$DUMPBIN" != ":"; then
12462 NM="$DUMPBIN"
12465 test -z "$NM" && NM=nm
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12474 if test "${lt_cv_nm_interface+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 lt_cv_nm_interface="BSD nm"
12478 echo "int some_variable = 0;" > conftest.$ac_ext
12479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12480 (eval "$ac_compile" 2>conftest.err)
12481 cat conftest.err >&5
12482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12484 cat conftest.err >&5
12485 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12486 cat conftest.out >&5
12487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12488 lt_cv_nm_interface="MS dumpbin"
12490 rm -f conftest*
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12493 $as_echo "$lt_cv_nm_interface" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12496 $as_echo_n "checking whether ln -s works... " >&6; }
12497 LN_S=$as_ln_s
12498 if test "$LN_S" = "ln -s"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12503 $as_echo "no, using $LN_S" >&6; }
12506 # find the maximum length of command line arguments
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12509 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12513 teststring="ABCD"
12515 case $build_os in
12516 msdosdjgpp*)
12517 # On DJGPP, this test can blow up pretty badly due to problems in libc
12518 # (any single argument exceeding 2000 bytes causes a buffer overrun
12519 # during glob expansion). Even if it were fixed, the result of this
12520 # check would be larger than it should be.
12521 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12524 gnu*)
12525 # Under GNU Hurd, this test is not required because there is
12526 # no limit to the length of command line arguments.
12527 # Libtool will interpret -1 as no limit whatsoever
12528 lt_cv_sys_max_cmd_len=-1;
12531 cygwin* | mingw* | cegcc*)
12532 # On Win9x/ME, this test blows up -- it succeeds, but takes
12533 # about 5 minutes as the teststring grows exponentially.
12534 # Worse, since 9x/ME are not pre-emptively multitasking,
12535 # you end up with a "frozen" computer, even though with patience
12536 # the test eventually succeeds (with a max line length of 256k).
12537 # Instead, let's just punt: use the minimum linelength reported by
12538 # all of the supported platforms: 8192 (on NT/2K/XP).
12539 lt_cv_sys_max_cmd_len=8192;
12542 mint*)
12543 # On MiNT this can take a long time and run out of memory.
12544 lt_cv_sys_max_cmd_len=8192;
12547 amigaos*)
12548 # On AmigaOS with pdksh, this test takes hours, literally.
12549 # So we just punt and use a minimum line length of 8192.
12550 lt_cv_sys_max_cmd_len=8192;
12553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12554 # This has been around since 386BSD, at least. Likely further.
12555 if test -x /sbin/sysctl; then
12556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12557 elif test -x /usr/sbin/sysctl; then
12558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12559 else
12560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12562 # And add a safety zone
12563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12567 interix*)
12568 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12569 lt_cv_sys_max_cmd_len=196608
12572 osf*)
12573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12575 # nice to cause kernel panics so lets avoid the loop below.
12576 # First set a reasonable default.
12577 lt_cv_sys_max_cmd_len=16384
12579 if test -x /sbin/sysconfig; then
12580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12582 esac
12585 sco3.2v5*)
12586 lt_cv_sys_max_cmd_len=102400
12588 sysv5* | sco5v6* | sysv4.2uw2*)
12589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12590 if test -n "$kargmax"; then
12591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12592 else
12593 lt_cv_sys_max_cmd_len=32768
12597 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12598 if test -n "$lt_cv_sys_max_cmd_len"; then
12599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12601 else
12602 # Make teststring a little bigger before we do anything with it.
12603 # a 1K string should be a reasonable start.
12604 for i in 1 2 3 4 5 6 7 8 ; do
12605 teststring=$teststring$teststring
12606 done
12607 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12608 # If test is not a shell built-in, we'll probably end up computing a
12609 # maximum length that is only half of the actual maximum length, but
12610 # we can't tell.
12611 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12612 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12613 test $i != 17 # 1/2 MB should be enough
12615 i=`expr $i + 1`
12616 teststring=$teststring$teststring
12617 done
12618 # Only check the string length outside the loop.
12619 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12620 teststring=
12621 # Add a significant safety factor because C++ compilers can tack on
12622 # massive amounts of additional arguments before passing them to the
12623 # linker. It appears as though 1/2 is a usable value.
12624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12627 esac
12631 if test -n $lt_cv_sys_max_cmd_len ; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12633 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12636 $as_echo "none" >&6; }
12638 max_cmd_len=$lt_cv_sys_max_cmd_len
12645 : ${CP="cp -f"}
12646 : ${MV="mv -f"}
12647 : ${RM="rm -f"}
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12650 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12651 # Try some XSI features
12652 xsi_shell=no
12653 ( _lt_dummy="a/b/c"
12654 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12655 = c,a/b,, \
12656 && eval 'test $(( 1 + 1 )) -eq 2 \
12657 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12658 && xsi_shell=yes
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12660 $as_echo "$xsi_shell" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12664 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12665 lt_shell_append=no
12666 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12667 >/dev/null 2>&1 \
12668 && lt_shell_append=yes
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12670 $as_echo "$lt_shell_append" >&6; }
12673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12674 lt_unset=unset
12675 else
12676 lt_unset=false
12683 # test EBCDIC or ASCII
12684 case `echo X|tr X '\101'` in
12685 A) # ASCII based system
12686 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12687 lt_SP2NL='tr \040 \012'
12688 lt_NL2SP='tr \015\012 \040\040'
12690 *) # EBCDIC based system
12691 lt_SP2NL='tr \100 \n'
12692 lt_NL2SP='tr \r\n \100\100'
12694 esac
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12705 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12706 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 lt_cv_ld_reload_flag='-r'
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12712 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12713 reload_flag=$lt_cv_ld_reload_flag
12714 case $reload_flag in
12715 "" | " "*) ;;
12716 *) reload_flag=" $reload_flag" ;;
12717 esac
12718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12719 case $host_os in
12720 darwin*)
12721 if test "$GCC" = yes; then
12722 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12723 else
12724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12727 esac
12737 if test -n "$ac_tool_prefix"; then
12738 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12739 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 if test -n "$OBJDUMP"; then
12746 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12747 else
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12759 done
12760 done
12761 IFS=$as_save_IFS
12765 OBJDUMP=$ac_cv_prog_OBJDUMP
12766 if test -n "$OBJDUMP"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12768 $as_echo "$OBJDUMP" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12776 if test -z "$ac_cv_prog_OBJDUMP"; then
12777 ac_ct_OBJDUMP=$OBJDUMP
12778 # Extract the first word of "objdump", so it can be a program name with args.
12779 set dummy objdump; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 if test -n "$ac_ct_OBJDUMP"; then
12786 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12787 else
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12791 IFS=$as_save_IFS
12792 test -z "$as_dir" && as_dir=.
12793 for ac_exec_ext in '' $ac_executable_extensions; do
12794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12795 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 break 2
12799 done
12800 done
12801 IFS=$as_save_IFS
12805 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12806 if test -n "$ac_ct_OBJDUMP"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12808 $as_echo "$ac_ct_OBJDUMP" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12814 if test "x$ac_ct_OBJDUMP" = x; then
12815 OBJDUMP="false"
12816 else
12817 case $cross_compiling:$ac_tool_warned in
12818 yes:)
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12821 ac_tool_warned=yes ;;
12822 esac
12823 OBJDUMP=$ac_ct_OBJDUMP
12825 else
12826 OBJDUMP="$ac_cv_prog_OBJDUMP"
12829 test -z "$OBJDUMP" && OBJDUMP=objdump
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12840 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12841 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 lt_cv_file_magic_cmd='$MAGIC_CMD'
12845 lt_cv_file_magic_test_file=
12846 lt_cv_deplibs_check_method='unknown'
12847 # Need to set the preceding variable on all platforms that support
12848 # interlibrary dependencies.
12849 # 'none' -- dependencies not supported.
12850 # `unknown' -- same as none, but documents that we really don't know.
12851 # 'pass_all' -- all dependencies passed with no checks.
12852 # 'test_compile' -- check by making test program.
12853 # 'file_magic [[regex]]' -- check by looking for files in library path
12854 # which responds to the $file_magic_cmd with a given extended regex.
12855 # If you have `file' or equivalent on your system and you're not sure
12856 # whether `pass_all' will *always* work, you probably want this one.
12858 case $host_os in
12859 aix[4-9]*)
12860 lt_cv_deplibs_check_method=pass_all
12863 beos*)
12864 lt_cv_deplibs_check_method=pass_all
12867 bsdi[45]*)
12868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12869 lt_cv_file_magic_cmd='/usr/bin/file -L'
12870 lt_cv_file_magic_test_file=/shlib/libc.so
12873 cygwin*)
12874 # func_win32_libid is a shell function defined in ltmain.sh
12875 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12876 lt_cv_file_magic_cmd='func_win32_libid'
12879 mingw* | pw32*)
12880 # Base MSYS/MinGW do not provide the 'file' command needed by
12881 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12882 # unless we find 'file', for example because we are cross-compiling.
12883 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12884 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12885 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12886 lt_cv_file_magic_cmd='func_win32_libid'
12887 else
12888 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12889 lt_cv_file_magic_cmd='$OBJDUMP -f'
12893 cegcc*)
12894 # use the weaker test based on 'objdump'. See mingw*.
12895 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12896 lt_cv_file_magic_cmd='$OBJDUMP -f'
12899 darwin* | rhapsody*)
12900 lt_cv_deplibs_check_method=pass_all
12903 freebsd* | dragonfly*)
12904 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12905 case $host_cpu in
12906 i*86 )
12907 # Not sure whether the presence of OpenBSD here was a mistake.
12908 # Let's accept both of them until this is cleared up.
12909 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12910 lt_cv_file_magic_cmd=/usr/bin/file
12911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12913 esac
12914 else
12915 lt_cv_deplibs_check_method=pass_all
12919 gnu*)
12920 lt_cv_deplibs_check_method=pass_all
12923 haiku*)
12924 lt_cv_deplibs_check_method=pass_all
12927 hpux10.20* | hpux11*)
12928 lt_cv_file_magic_cmd=/usr/bin/file
12929 case $host_cpu in
12930 ia64*)
12931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12932 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12934 hppa*64*)
12935 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]'
12936 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12940 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12942 esac
12945 interix[3-9]*)
12946 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12950 irix5* | irix6* | nonstopux*)
12951 case $LD in
12952 *-32|*"-32 ") libmagic=32-bit;;
12953 *-n32|*"-n32 ") libmagic=N32;;
12954 *-64|*"-64 ") libmagic=64-bit;;
12955 *) libmagic=never-match;;
12956 esac
12957 lt_cv_deplibs_check_method=pass_all
12960 # This must be Linux ELF.
12961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12962 lt_cv_deplibs_check_method=pass_all
12965 netbsd*)
12966 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12968 else
12969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12973 newos6*)
12974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12975 lt_cv_file_magic_cmd=/usr/bin/file
12976 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12979 *nto* | *qnx*)
12980 lt_cv_deplibs_check_method=pass_all
12983 openbsd*)
12984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12986 else
12987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12991 osf3* | osf4* | osf5*)
12992 lt_cv_deplibs_check_method=pass_all
12995 rdos*)
12996 lt_cv_deplibs_check_method=pass_all
12999 solaris*)
13000 lt_cv_deplibs_check_method=pass_all
13003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13004 lt_cv_deplibs_check_method=pass_all
13007 sysv4 | sysv4.3*)
13008 case $host_vendor in
13009 motorola)
13010 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]'
13011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13013 ncr)
13014 lt_cv_deplibs_check_method=pass_all
13016 sequent)
13017 lt_cv_file_magic_cmd='/bin/file'
13018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13020 sni)
13021 lt_cv_file_magic_cmd='/bin/file'
13022 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13023 lt_cv_file_magic_test_file=/lib/libc.so
13025 siemens)
13026 lt_cv_deplibs_check_method=pass_all
13029 lt_cv_deplibs_check_method=pass_all
13031 esac
13034 tpf*)
13035 lt_cv_deplibs_check_method=pass_all
13037 esac
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13041 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13042 file_magic_cmd=$lt_cv_file_magic_cmd
13043 deplibs_check_method=$lt_cv_deplibs_check_method
13044 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13057 if test -n "$ac_tool_prefix"; then
13058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13059 set dummy ${ac_tool_prefix}ar; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if test "${ac_cv_prog_AR+set}" = set; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 if test -n "$AR"; then
13066 ac_cv_prog_AR="$AR" # Let the user override the test.
13067 else
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_AR="${ac_tool_prefix}ar"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13079 done
13080 done
13081 IFS=$as_save_IFS
13085 AR=$ac_cv_prog_AR
13086 if test -n "$AR"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13088 $as_echo "$AR" >&6; }
13089 else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13096 if test -z "$ac_cv_prog_AR"; then
13097 ac_ct_AR=$AR
13098 # Extract the first word of "ar", so it can be a program name with args.
13099 set dummy ar; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if test -n "$ac_ct_AR"; then
13106 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115 ac_cv_prog_ac_ct_AR="ar"
13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13119 done
13120 done
13121 IFS=$as_save_IFS
13125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13126 if test -n "$ac_ct_AR"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13128 $as_echo "$ac_ct_AR" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13134 if test "x$ac_ct_AR" = x; then
13135 AR="false"
13136 else
13137 case $cross_compiling:$ac_tool_warned in
13138 yes:)
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13141 ac_tool_warned=yes ;;
13142 esac
13143 AR=$ac_ct_AR
13145 else
13146 AR="$ac_cv_prog_AR"
13149 test -z "$AR" && AR=ar
13150 test -z "$AR_FLAGS" && AR_FLAGS=cru
13162 if test -n "$ac_tool_prefix"; then
13163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13164 set dummy ${ac_tool_prefix}strip; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if test "${ac_cv_prog_STRIP+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 if test -n "$STRIP"; then
13171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13172 else
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13176 IFS=$as_save_IFS
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13182 break 2
13184 done
13185 done
13186 IFS=$as_save_IFS
13190 STRIP=$ac_cv_prog_STRIP
13191 if test -n "$STRIP"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13193 $as_echo "$STRIP" >&6; }
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13201 if test -z "$ac_cv_prog_STRIP"; then
13202 ac_ct_STRIP=$STRIP
13203 # Extract the first word of "strip", so it can be a program name with args.
13204 set dummy strip; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 if test -n "$ac_ct_STRIP"; then
13211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_ac_ct_STRIP="strip"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 break 2
13224 done
13225 done
13226 IFS=$as_save_IFS
13230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13231 if test -n "$ac_ct_STRIP"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13233 $as_echo "$ac_ct_STRIP" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13239 if test "x$ac_ct_STRIP" = x; then
13240 STRIP=":"
13241 else
13242 case $cross_compiling:$ac_tool_warned in
13243 yes:)
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13246 ac_tool_warned=yes ;;
13247 esac
13248 STRIP=$ac_ct_STRIP
13250 else
13251 STRIP="$ac_cv_prog_STRIP"
13254 test -z "$STRIP" && STRIP=:
13261 if test -n "$ac_tool_prefix"; then
13262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$RANLIB"; then
13270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13283 done
13284 done
13285 IFS=$as_save_IFS
13289 RANLIB=$ac_cv_prog_RANLIB
13290 if test -n "$RANLIB"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13292 $as_echo "$RANLIB" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13300 if test -z "$ac_cv_prog_RANLIB"; then
13301 ac_ct_RANLIB=$RANLIB
13302 # Extract the first word of "ranlib", so it can be a program name with args.
13303 set dummy ranlib; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$ac_ct_RANLIB"; then
13310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_ac_ct_RANLIB="ranlib"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13330 if test -n "$ac_ct_RANLIB"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13332 $as_echo "$ac_ct_RANLIB" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13338 if test "x$ac_ct_RANLIB" = x; then
13339 RANLIB=":"
13340 else
13341 case $cross_compiling:$ac_tool_warned in
13342 yes:)
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345 ac_tool_warned=yes ;;
13346 esac
13347 RANLIB=$ac_ct_RANLIB
13349 else
13350 RANLIB="$ac_cv_prog_RANLIB"
13353 test -z "$RANLIB" && RANLIB=:
13360 # Determine commands to create old-style static archives.
13361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13362 old_postinstall_cmds='chmod 644 $oldlib'
13363 old_postuninstall_cmds=
13365 if test -n "$RANLIB"; then
13366 case $host_os in
13367 openbsd*)
13368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13373 esac
13374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13377 case $host_os in
13378 darwin*)
13379 lock_old_archive_extraction=yes ;;
13381 lock_old_archive_extraction=no ;;
13382 esac
13422 # If no C compiler was specified, use CC.
13423 LTCC=${LTCC-"$CC"}
13425 # If no C compiler flags were specified, use CFLAGS.
13426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13428 # Allow CC to be a program name with arguments.
13429 compiler=$CC
13432 # Check for command to grab the raw symbol name followed by C symbol from nm.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13434 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13435 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13436 $as_echo_n "(cached) " >&6
13437 else
13439 # These are sane defaults that work on at least a few old systems.
13440 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13442 # Character class describing NM global symbol codes.
13443 symcode='[BCDEGRST]'
13445 # Regexp to match symbols that can be accessed directly from C.
13446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13448 # Define system-specific variables.
13449 case $host_os in
13450 aix*)
13451 symcode='[BCDT]'
13453 cygwin* | mingw* | pw32* | cegcc*)
13454 symcode='[ABCDGISTW]'
13456 hpux*)
13457 if test "$host_cpu" = ia64; then
13458 symcode='[ABCDEGRST]'
13461 irix* | nonstopux*)
13462 symcode='[BCDEGRST]'
13464 osf*)
13465 symcode='[BCDEGQRST]'
13467 solaris*)
13468 symcode='[BDRT]'
13470 sco3.2v5*)
13471 symcode='[DT]'
13473 sysv4.2uw2*)
13474 symcode='[DT]'
13476 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13477 symcode='[ABDT]'
13479 sysv4)
13480 symcode='[DFNSTU]'
13482 esac
13484 # If we're using GNU nm, then use its standard symbol codes.
13485 case `$NM -V 2>&1` in
13486 *GNU* | *'with BFD'*)
13487 symcode='[ABCDGIRSTW]' ;;
13488 esac
13490 # Transform an extracted symbol line into a proper C declaration.
13491 # Some systems (esp. on ia64) link data and code symbols differently,
13492 # so use this general approach.
13493 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13495 # Transform an extracted symbol line into symbol name and symbol address
13496 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13497 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'"
13499 # Handle CRLF in mingw tool chain
13500 opt_cr=
13501 case $build_os in
13502 mingw*)
13503 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13505 esac
13507 # Try without a prefix underscore, then with it.
13508 for ac_symprfx in "" "_"; do
13510 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13511 symxfrm="\\1 $ac_symprfx\\2 \\2"
13513 # Write the raw and C identifiers.
13514 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13515 # Fake it for dumpbin and say T for any non-static function
13516 # and D for any global variable.
13517 # Also find C++ and __fastcall symbols from MSVC++,
13518 # which start with @ or ?.
13519 lt_cv_sys_global_symbol_pipe="$AWK '"\
13520 " {last_section=section; section=\$ 3};"\
13521 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13522 " \$ 0!~/External *\|/{next};"\
13523 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13524 " {if(hide[section]) next};"\
13525 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13526 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13527 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13528 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13529 " ' prfx=^$ac_symprfx"
13530 else
13531 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13534 # Check to see that the pipe works correctly.
13535 pipe_works=no
13537 rm -f conftest*
13538 cat > conftest.$ac_ext <<_LT_EOF
13539 #ifdef __cplusplus
13540 extern "C" {
13541 #endif
13542 char nm_test_var;
13543 void nm_test_func(void);
13544 void nm_test_func(void){}
13545 #ifdef __cplusplus
13547 #endif
13548 int main(){nm_test_var='a';nm_test_func();return(0);}
13549 _LT_EOF
13551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13552 (eval $ac_compile) 2>&5
13553 ac_status=$?
13554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13555 test $ac_status = 0; }; then
13556 # Now try to grab the symbols.
13557 nlist=conftest.nm
13558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13559 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; } && test -s "$nlist"; then
13563 # Try sorting and uniquifying the output.
13564 if sort "$nlist" | uniq > "$nlist"T; then
13565 mv -f "$nlist"T "$nlist"
13566 else
13567 rm -f "$nlist"T
13570 # Make sure that we snagged all the symbols we need.
13571 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13572 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13573 cat <<_LT_EOF > conftest.$ac_ext
13574 #ifdef __cplusplus
13575 extern "C" {
13576 #endif
13578 _LT_EOF
13579 # Now generate the symbol file.
13580 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13582 cat <<_LT_EOF >> conftest.$ac_ext
13584 /* The mapping between symbol names and symbols. */
13585 const struct {
13586 const char *name;
13587 void *address;
13589 lt__PROGRAM__LTX_preloaded_symbols[] =
13591 { "@PROGRAM@", (void *) 0 },
13592 _LT_EOF
13593 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13594 cat <<\_LT_EOF >> conftest.$ac_ext
13595 {0, (void *) 0}
13598 /* This works around a problem in FreeBSD linker */
13599 #ifdef FREEBSD_WORKAROUND
13600 static const void *lt_preloaded_setup() {
13601 return lt__PROGRAM__LTX_preloaded_symbols;
13603 #endif
13605 #ifdef __cplusplus
13607 #endif
13608 _LT_EOF
13609 # Now try linking the two files.
13610 mv conftest.$ac_objext conftstm.$ac_objext
13611 lt_save_LIBS="$LIBS"
13612 lt_save_CFLAGS="$CFLAGS"
13613 LIBS="conftstm.$ac_objext"
13614 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13616 (eval $ac_link) 2>&5
13617 ac_status=$?
13618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13620 pipe_works=yes
13622 LIBS="$lt_save_LIBS"
13623 CFLAGS="$lt_save_CFLAGS"
13624 else
13625 echo "cannot find nm_test_func in $nlist" >&5
13627 else
13628 echo "cannot find nm_test_var in $nlist" >&5
13630 else
13631 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13633 else
13634 echo "$progname: failed program was:" >&5
13635 cat conftest.$ac_ext >&5
13637 rm -rf conftest* conftst*
13639 # Do not use the global_symbol_pipe unless it works.
13640 if test "$pipe_works" = yes; then
13641 break
13642 else
13643 lt_cv_sys_global_symbol_pipe=
13645 done
13649 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13650 lt_cv_sys_global_symbol_to_cdecl=
13652 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13654 $as_echo "failed" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13657 $as_echo "ok" >&6; }
13681 # Check whether --enable-libtool-lock was given.
13682 if test "${enable_libtool_lock+set}" = set; then :
13683 enableval=$enable_libtool_lock;
13686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13688 # Some flags need to be propagated to the compiler or linker for good
13689 # libtool support.
13690 case $host in
13691 ia64-*-hpux*)
13692 # Find out which ABI we are using.
13693 echo 'int i;' > conftest.$ac_ext
13694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13695 (eval $ac_compile) 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 case `/usr/bin/file conftest.$ac_objext` in
13700 *ELF-32*)
13701 HPUX_IA64_MODE="32"
13703 *ELF-64*)
13704 HPUX_IA64_MODE="64"
13706 esac
13708 rm -rf conftest*
13710 *-*-irix6*)
13711 # Find out which ABI we are using.
13712 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13714 (eval $ac_compile) 2>&5
13715 ac_status=$?
13716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13717 test $ac_status = 0; }; then
13718 if test "$lt_cv_prog_gnu_ld" = yes; then
13719 case `/usr/bin/file conftest.$ac_objext` in
13720 *32-bit*)
13721 LD="${LD-ld} -melf32bsmip"
13723 *N32*)
13724 LD="${LD-ld} -melf32bmipn32"
13726 *64-bit*)
13727 LD="${LD-ld} -melf64bmip"
13729 esac
13730 else
13731 case `/usr/bin/file conftest.$ac_objext` in
13732 *32-bit*)
13733 LD="${LD-ld} -32"
13735 *N32*)
13736 LD="${LD-ld} -n32"
13738 *64-bit*)
13739 LD="${LD-ld} -64"
13741 esac
13744 rm -rf conftest*
13747 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13748 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13749 # Find out which ABI we are using.
13750 echo 'int i;' > conftest.$ac_ext
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13752 (eval $ac_compile) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; }; then
13756 case `/usr/bin/file conftest.o` in
13757 *32-bit*)
13758 case $host in
13759 x86_64-*kfreebsd*-gnu)
13760 LD="${LD-ld} -m elf_i386_fbsd"
13762 x86_64-*linux*)
13763 case `/usr/bin/file conftest.o` in
13764 *x86-64*)
13765 LD="${LD-ld} -m elf32_x86_64"
13768 LD="${LD-ld} -m elf_i386"
13770 esac
13772 powerpc64le-*linux*)
13773 LD="${LD-ld} -m elf32lppclinux"
13775 powerpc64-*linux*)
13776 LD="${LD-ld} -m elf32ppclinux"
13778 s390x-*linux*)
13779 LD="${LD-ld} -m elf_s390"
13781 sparc64-*linux*)
13782 LD="${LD-ld} -m elf32_sparc"
13784 esac
13786 *64-bit*)
13787 case $host in
13788 x86_64-*kfreebsd*-gnu)
13789 LD="${LD-ld} -m elf_x86_64_fbsd"
13791 x86_64-*linux*)
13792 LD="${LD-ld} -m elf_x86_64"
13794 powerpcle-*linux*)
13795 LD="${LD-ld} -m elf64lppc"
13797 powerpc-*linux*)
13798 LD="${LD-ld} -m elf64ppc"
13800 s390*-*linux*|s390*-*tpf*)
13801 LD="${LD-ld} -m elf64_s390"
13803 sparc*-*linux*)
13804 LD="${LD-ld} -m elf64_sparc"
13806 esac
13808 esac
13810 rm -rf conftest*
13813 *-*-sco3.2v5*)
13814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13815 SAVE_CFLAGS="$CFLAGS"
13816 CFLAGS="$CFLAGS -belf"
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13818 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13819 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 ac_ext=c
13823 ac_cpp='$CPP $CPPFLAGS'
13824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13832 main ()
13836 return 0;
13838 _ACEOF
13839 if ac_fn_c_try_link "$LINENO"; then :
13840 lt_cv_cc_needs_belf=yes
13841 else
13842 lt_cv_cc_needs_belf=no
13844 rm -f core conftest.err conftest.$ac_objext \
13845 conftest$ac_exeext conftest.$ac_ext
13846 ac_ext=c
13847 ac_cpp='$CPP $CPPFLAGS'
13848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13854 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13855 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13856 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13857 CFLAGS="$SAVE_CFLAGS"
13860 sparc*-*solaris*)
13861 # Find out which ABI we are using.
13862 echo 'int i;' > conftest.$ac_ext
13863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13864 (eval $ac_compile) 2>&5
13865 ac_status=$?
13866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13867 test $ac_status = 0; }; then
13868 case `/usr/bin/file conftest.o` in
13869 *64-bit*)
13870 case $lt_cv_prog_gnu_ld in
13871 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13873 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13874 LD="${LD-ld} -64"
13877 esac
13879 esac
13881 rm -rf conftest*
13883 esac
13885 need_locks="$enable_libtool_lock"
13888 case $host_os in
13889 rhapsody* | darwin*)
13890 if test -n "$ac_tool_prefix"; then
13891 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13892 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 $as_echo_n "checking for $ac_word... " >&6; }
13895 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 if test -n "$DSYMUTIL"; then
13899 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13900 else
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13904 IFS=$as_save_IFS
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13908 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13910 break 2
13912 done
13913 done
13914 IFS=$as_save_IFS
13918 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13919 if test -n "$DSYMUTIL"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13921 $as_echo "$DSYMUTIL" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13929 if test -z "$ac_cv_prog_DSYMUTIL"; then
13930 ac_ct_DSYMUTIL=$DSYMUTIL
13931 # Extract the first word of "dsymutil", so it can be a program name with args.
13932 set dummy dsymutil; ac_word=$2
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934 $as_echo_n "checking for $ac_word... " >&6; }
13935 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 if test -n "$ac_ct_DSYMUTIL"; then
13939 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13940 else
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13952 done
13953 done
13954 IFS=$as_save_IFS
13958 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13959 if test -n "$ac_ct_DSYMUTIL"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13961 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13967 if test "x$ac_ct_DSYMUTIL" = x; then
13968 DSYMUTIL=":"
13969 else
13970 case $cross_compiling:$ac_tool_warned in
13971 yes:)
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13974 ac_tool_warned=yes ;;
13975 esac
13976 DSYMUTIL=$ac_ct_DSYMUTIL
13978 else
13979 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13982 if test -n "$ac_tool_prefix"; then
13983 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13984 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$NMEDIT"; then
13991 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14004 done
14005 done
14006 IFS=$as_save_IFS
14010 NMEDIT=$ac_cv_prog_NMEDIT
14011 if test -n "$NMEDIT"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14013 $as_echo "$NMEDIT" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14021 if test -z "$ac_cv_prog_NMEDIT"; then
14022 ac_ct_NMEDIT=$NMEDIT
14023 # Extract the first word of "nmedit", so it can be a program name with args.
14024 set dummy nmedit; ac_word=$2
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14026 $as_echo_n "checking for $ac_word... " >&6; }
14027 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 if test -n "$ac_ct_NMEDIT"; then
14031 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14032 else
14033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14034 for as_dir in $PATH
14036 IFS=$as_save_IFS
14037 test -z "$as_dir" && as_dir=.
14038 for ac_exec_ext in '' $ac_executable_extensions; do
14039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14040 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 break 2
14044 done
14045 done
14046 IFS=$as_save_IFS
14050 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14051 if test -n "$ac_ct_NMEDIT"; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14053 $as_echo "$ac_ct_NMEDIT" >&6; }
14054 else
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056 $as_echo "no" >&6; }
14059 if test "x$ac_ct_NMEDIT" = x; then
14060 NMEDIT=":"
14061 else
14062 case $cross_compiling:$ac_tool_warned in
14063 yes:)
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14066 ac_tool_warned=yes ;;
14067 esac
14068 NMEDIT=$ac_ct_NMEDIT
14070 else
14071 NMEDIT="$ac_cv_prog_NMEDIT"
14074 if test -n "$ac_tool_prefix"; then
14075 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14076 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 $as_echo_n "checking for $ac_word... " >&6; }
14079 if test "${ac_cv_prog_LIPO+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 if test -n "$LIPO"; then
14083 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14096 done
14097 done
14098 IFS=$as_save_IFS
14102 LIPO=$ac_cv_prog_LIPO
14103 if test -n "$LIPO"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14105 $as_echo "$LIPO" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14113 if test -z "$ac_cv_prog_LIPO"; then
14114 ac_ct_LIPO=$LIPO
14115 # Extract the first word of "lipo", so it can be a program name with args.
14116 set dummy lipo; ac_word=$2
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118 $as_echo_n "checking for $ac_word... " >&6; }
14119 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 if test -n "$ac_ct_LIPO"; then
14123 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14124 else
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $PATH
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14132 ac_cv_prog_ac_ct_LIPO="lipo"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 break 2
14136 done
14137 done
14138 IFS=$as_save_IFS
14142 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14143 if test -n "$ac_ct_LIPO"; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14145 $as_echo "$ac_ct_LIPO" >&6; }
14146 else
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; }
14151 if test "x$ac_ct_LIPO" = x; then
14152 LIPO=":"
14153 else
14154 case $cross_compiling:$ac_tool_warned in
14155 yes:)
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14158 ac_tool_warned=yes ;;
14159 esac
14160 LIPO=$ac_ct_LIPO
14162 else
14163 LIPO="$ac_cv_prog_LIPO"
14166 if test -n "$ac_tool_prefix"; then
14167 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14168 set dummy ${ac_tool_prefix}otool; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "$OTOOL"; then
14175 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14188 done
14189 done
14190 IFS=$as_save_IFS
14194 OTOOL=$ac_cv_prog_OTOOL
14195 if test -n "$OTOOL"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14197 $as_echo "$OTOOL" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14205 if test -z "$ac_cv_prog_OTOOL"; then
14206 ac_ct_OTOOL=$OTOOL
14207 # Extract the first word of "otool", so it can be a program name with args.
14208 set dummy otool; ac_word=$2
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14210 $as_echo_n "checking for $ac_word... " >&6; }
14211 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 if test -n "$ac_ct_OTOOL"; then
14215 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14216 else
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14224 ac_cv_prog_ac_ct_OTOOL="otool"
14225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 break 2
14228 done
14229 done
14230 IFS=$as_save_IFS
14234 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14235 if test -n "$ac_ct_OTOOL"; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14237 $as_echo "$ac_ct_OTOOL" >&6; }
14238 else
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14240 $as_echo "no" >&6; }
14243 if test "x$ac_ct_OTOOL" = x; then
14244 OTOOL=":"
14245 else
14246 case $cross_compiling:$ac_tool_warned in
14247 yes:)
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14250 ac_tool_warned=yes ;;
14251 esac
14252 OTOOL=$ac_ct_OTOOL
14254 else
14255 OTOOL="$ac_cv_prog_OTOOL"
14258 if test -n "$ac_tool_prefix"; then
14259 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14260 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262 $as_echo_n "checking for $ac_word... " >&6; }
14263 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 if test -n "$OTOOL64"; then
14267 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14268 else
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14276 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14278 break 2
14280 done
14281 done
14282 IFS=$as_save_IFS
14286 OTOOL64=$ac_cv_prog_OTOOL64
14287 if test -n "$OTOOL64"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14289 $as_echo "$OTOOL64" >&6; }
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14297 if test -z "$ac_cv_prog_OTOOL64"; then
14298 ac_ct_OTOOL64=$OTOOL64
14299 # Extract the first word of "otool64", so it can be a program name with args.
14300 set dummy otool64; ac_word=$2
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14302 $as_echo_n "checking for $ac_word... " >&6; }
14303 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 if test -n "$ac_ct_OTOOL64"; then
14307 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14308 else
14309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14310 for as_dir in $PATH
14312 IFS=$as_save_IFS
14313 test -z "$as_dir" && as_dir=.
14314 for ac_exec_ext in '' $ac_executable_extensions; do
14315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14316 ac_cv_prog_ac_ct_OTOOL64="otool64"
14317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14318 break 2
14320 done
14321 done
14322 IFS=$as_save_IFS
14326 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14327 if test -n "$ac_ct_OTOOL64"; then
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14329 $as_echo "$ac_ct_OTOOL64" >&6; }
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14335 if test "x$ac_ct_OTOOL64" = x; then
14336 OTOOL64=":"
14337 else
14338 case $cross_compiling:$ac_tool_warned in
14339 yes:)
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14342 ac_tool_warned=yes ;;
14343 esac
14344 OTOOL64=$ac_ct_OTOOL64
14346 else
14347 OTOOL64="$ac_cv_prog_OTOOL64"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14377 $as_echo_n "checking for -single_module linker flag... " >&6; }
14378 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 lt_cv_apple_cc_single_mod=no
14382 if test -z "${LT_MULTI_MODULE}"; then
14383 # By default we will add the -single_module flag. You can override
14384 # by either setting the environment variable LT_MULTI_MODULE
14385 # non-empty at configure time, or by adding -multi_module to the
14386 # link flags.
14387 rm -rf libconftest.dylib*
14388 echo "int foo(void){return 1;}" > conftest.c
14389 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14390 -dynamiclib -Wl,-single_module conftest.c" >&5
14391 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14392 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14393 _lt_result=$?
14394 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14395 lt_cv_apple_cc_single_mod=yes
14396 else
14397 cat conftest.err >&5
14399 rm -rf libconftest.dylib*
14400 rm -f conftest.*
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14404 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14406 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14407 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 lt_cv_ld_exported_symbols_list=no
14411 save_LDFLAGS=$LDFLAGS
14412 echo "_main" > conftest.sym
14413 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14418 main ()
14422 return 0;
14424 _ACEOF
14425 if ac_fn_c_try_link "$LINENO"; then :
14426 lt_cv_ld_exported_symbols_list=yes
14427 else
14428 lt_cv_ld_exported_symbols_list=no
14430 rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14432 LDFLAGS="$save_LDFLAGS"
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14436 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14438 $as_echo_n "checking for -force_load linker flag... " >&6; }
14439 if test "${lt_cv_ld_force_load+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 lt_cv_ld_force_load=no
14443 cat > conftest.c << _LT_EOF
14444 int forced_loaded() { return 2;}
14445 _LT_EOF
14446 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14447 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14448 echo "$AR cru libconftest.a conftest.o" >&5
14449 $AR cru libconftest.a conftest.o 2>&5
14450 cat > conftest.c << _LT_EOF
14451 int main() { return 0;}
14452 _LT_EOF
14453 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14454 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14455 _lt_result=$?
14456 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14457 lt_cv_ld_force_load=yes
14458 else
14459 cat conftest.err >&5
14461 rm -f conftest.err libconftest.a conftest conftest.c
14462 rm -rf conftest.dSYM
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14466 $as_echo "$lt_cv_ld_force_load" >&6; }
14467 case $host_os in
14468 rhapsody* | darwin1.[012])
14469 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14470 darwin1.*)
14471 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14472 darwin*) # darwin 5.x on
14473 # if running on 10.5 or later, the deployment target defaults
14474 # to the OS version, if on x86, and 10.4, the deployment
14475 # target defaults to 10.4. Don't you love it?
14476 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14477 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14478 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14479 10.[012]*)
14480 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14481 10.*)
14482 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14483 esac
14485 esac
14486 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14487 _lt_dar_single_mod='$single_module'
14489 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14490 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14491 else
14492 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14494 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14495 _lt_dsymutil='~$DSYMUTIL $lib || :'
14496 else
14497 _lt_dsymutil=
14500 esac
14502 for ac_header in dlfcn.h
14503 do :
14504 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14505 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_DLFCN_H 1
14508 _ACEOF
14511 done
14517 # Set options
14521 enable_dlopen=no
14524 enable_win32_dll=no
14527 # Check whether --enable-shared was given.
14528 if test "${enable_shared+set}" = set; then :
14529 enableval=$enable_shared; p=${PACKAGE-default}
14530 case $enableval in
14531 yes) enable_shared=yes ;;
14532 no) enable_shared=no ;;
14534 enable_shared=no
14535 # Look at the argument we got. We use all the common list separators.
14536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14537 for pkg in $enableval; do
14538 IFS="$lt_save_ifs"
14539 if test "X$pkg" = "X$p"; then
14540 enable_shared=yes
14542 done
14543 IFS="$lt_save_ifs"
14545 esac
14546 else
14547 enable_shared=yes
14558 # Check whether --enable-static was given.
14559 if test "${enable_static+set}" = set; then :
14560 enableval=$enable_static; p=${PACKAGE-default}
14561 case $enableval in
14562 yes) enable_static=yes ;;
14563 no) enable_static=no ;;
14565 enable_static=no
14566 # Look at the argument we got. We use all the common list separators.
14567 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14568 for pkg in $enableval; do
14569 IFS="$lt_save_ifs"
14570 if test "X$pkg" = "X$p"; then
14571 enable_static=yes
14573 done
14574 IFS="$lt_save_ifs"
14576 esac
14577 else
14578 enable_static=yes
14590 # Check whether --with-pic was given.
14591 if test "${with_pic+set}" = set; then :
14592 withval=$with_pic; pic_mode="$withval"
14593 else
14594 pic_mode=default
14598 test -z "$pic_mode" && pic_mode=default
14606 # Check whether --enable-fast-install was given.
14607 if test "${enable_fast_install+set}" = set; then :
14608 enableval=$enable_fast_install; p=${PACKAGE-default}
14609 case $enableval in
14610 yes) enable_fast_install=yes ;;
14611 no) enable_fast_install=no ;;
14613 enable_fast_install=no
14614 # Look at the argument we got. We use all the common list separators.
14615 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14616 for pkg in $enableval; do
14617 IFS="$lt_save_ifs"
14618 if test "X$pkg" = "X$p"; then
14619 enable_fast_install=yes
14621 done
14622 IFS="$lt_save_ifs"
14624 esac
14625 else
14626 enable_fast_install=yes
14639 # This can be used to rebuild libtool when needed
14640 LIBTOOL_DEPS="$ltmain"
14642 # Always use our own libtool.
14643 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14670 test -z "$LN_S" && LN_S="ln -s"
14685 if test -n "${ZSH_VERSION+set}" ; then
14686 setopt NO_GLOB_SUBST
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14690 $as_echo_n "checking for objdir... " >&6; }
14691 if test "${lt_cv_objdir+set}" = set; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 rm -f .libs 2>/dev/null
14695 mkdir .libs 2>/dev/null
14696 if test -d .libs; then
14697 lt_cv_objdir=.libs
14698 else
14699 # MS-DOS does not allow filenames that begin with a dot.
14700 lt_cv_objdir=_libs
14702 rmdir .libs 2>/dev/null
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14705 $as_echo "$lt_cv_objdir" >&6; }
14706 objdir=$lt_cv_objdir
14712 cat >>confdefs.h <<_ACEOF
14713 #define LT_OBJDIR "$lt_cv_objdir/"
14714 _ACEOF
14719 case $host_os in
14720 aix3*)
14721 # AIX sometimes has problems with the GCC collect2 program. For some
14722 # reason, if we set the COLLECT_NAMES environment variable, the problems
14723 # vanish in a puff of smoke.
14724 if test "X${COLLECT_NAMES+set}" != Xset; then
14725 COLLECT_NAMES=
14726 export COLLECT_NAMES
14729 esac
14731 # Global variables:
14732 ofile=libtool
14733 can_build_shared=yes
14735 # All known linkers require a `.a' archive for static linking (except MSVC,
14736 # which needs '.lib').
14737 libext=a
14739 with_gnu_ld="$lt_cv_prog_gnu_ld"
14741 old_CC="$CC"
14742 old_CFLAGS="$CFLAGS"
14744 # Set sane defaults for various variables
14745 test -z "$CC" && CC=cc
14746 test -z "$LTCC" && LTCC=$CC
14747 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14748 test -z "$LD" && LD=ld
14749 test -z "$ac_objext" && ac_objext=o
14751 for cc_temp in $compiler""; do
14752 case $cc_temp in
14753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14755 \-*) ;;
14756 *) break;;
14757 esac
14758 done
14759 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14762 # Only perform the check for file, if the check method requires it
14763 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14764 case $deplibs_check_method in
14765 file_magic*)
14766 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14768 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 case $MAGIC_CMD in
14773 [\\/*] | ?:[\\/]*)
14774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14777 lt_save_MAGIC_CMD="$MAGIC_CMD"
14778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14780 for ac_dir in $ac_dummy; do
14781 IFS="$lt_save_ifs"
14782 test -z "$ac_dir" && ac_dir=.
14783 if test -f $ac_dir/${ac_tool_prefix}file; then
14784 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14785 if test -n "$file_magic_test_file"; then
14786 case $deplibs_check_method in
14787 "file_magic "*)
14788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14791 $EGREP "$file_magic_regex" > /dev/null; then
14793 else
14794 cat <<_LT_EOF 1>&2
14796 *** Warning: the command libtool uses to detect shared libraries,
14797 *** $file_magic_cmd, produces output that libtool cannot recognize.
14798 *** The result is that libtool may fail to recognize shared libraries
14799 *** as such. This will affect the creation of libtool libraries that
14800 *** depend on shared libraries, but programs linked with such libtool
14801 *** libraries will work regardless of this problem. Nevertheless, you
14802 *** may want to report the problem to your system manager and/or to
14803 *** bug-libtool@gnu.org
14805 _LT_EOF
14806 fi ;;
14807 esac
14809 break
14811 done
14812 IFS="$lt_save_ifs"
14813 MAGIC_CMD="$lt_save_MAGIC_CMD"
14815 esac
14818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14819 if test -n "$MAGIC_CMD"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14821 $as_echo "$MAGIC_CMD" >&6; }
14822 else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14831 if test -z "$lt_cv_path_MAGIC_CMD"; then
14832 if test -n "$ac_tool_prefix"; then
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14834 $as_echo_n "checking for file... " >&6; }
14835 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 case $MAGIC_CMD in
14839 [\\/*] | ?:[\\/]*)
14840 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14843 lt_save_MAGIC_CMD="$MAGIC_CMD"
14844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14845 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14846 for ac_dir in $ac_dummy; do
14847 IFS="$lt_save_ifs"
14848 test -z "$ac_dir" && ac_dir=.
14849 if test -f $ac_dir/file; then
14850 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14851 if test -n "$file_magic_test_file"; then
14852 case $deplibs_check_method in
14853 "file_magic "*)
14854 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14855 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14856 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14857 $EGREP "$file_magic_regex" > /dev/null; then
14859 else
14860 cat <<_LT_EOF 1>&2
14862 *** Warning: the command libtool uses to detect shared libraries,
14863 *** $file_magic_cmd, produces output that libtool cannot recognize.
14864 *** The result is that libtool may fail to recognize shared libraries
14865 *** as such. This will affect the creation of libtool libraries that
14866 *** depend on shared libraries, but programs linked with such libtool
14867 *** libraries will work regardless of this problem. Nevertheless, you
14868 *** may want to report the problem to your system manager and/or to
14869 *** bug-libtool@gnu.org
14871 _LT_EOF
14872 fi ;;
14873 esac
14875 break
14877 done
14878 IFS="$lt_save_ifs"
14879 MAGIC_CMD="$lt_save_MAGIC_CMD"
14881 esac
14884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14885 if test -n "$MAGIC_CMD"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14887 $as_echo "$MAGIC_CMD" >&6; }
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14894 else
14895 MAGIC_CMD=:
14901 esac
14903 # Use C for the default configuration in the libtool script
14905 lt_save_CC="$CC"
14906 ac_ext=c
14907 ac_cpp='$CPP $CPPFLAGS'
14908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14913 # Source file extension for C test sources.
14914 ac_ext=c
14916 # Object file extension for compiled C test sources.
14917 objext=o
14918 objext=$objext
14920 # Code to be used in simple compile tests
14921 lt_simple_compile_test_code="int some_variable = 0;"
14923 # Code to be used in simple link tests
14924 lt_simple_link_test_code='int main(){return(0);}'
14932 # If no C compiler was specified, use CC.
14933 LTCC=${LTCC-"$CC"}
14935 # If no C compiler flags were specified, use CFLAGS.
14936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14938 # Allow CC to be a program name with arguments.
14939 compiler=$CC
14941 # Save the default compiler, since it gets overwritten when the other
14942 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14943 compiler_DEFAULT=$CC
14945 # save warnings/boilerplate of simple test code
14946 ac_outfile=conftest.$ac_objext
14947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14949 _lt_compiler_boilerplate=`cat conftest.err`
14950 $RM conftest*
14952 ac_outfile=conftest.$ac_objext
14953 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14954 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14955 _lt_linker_boilerplate=`cat conftest.err`
14956 $RM -r conftest*
14959 ## CAVEAT EMPTOR:
14960 ## There is no encapsulation within the following macros, do not change
14961 ## the running order or otherwise move them around unless you know exactly
14962 ## what you are doing...
14963 if test -n "$compiler"; then
14965 lt_prog_compiler_no_builtin_flag=
14967 if test "$GCC" = yes; then
14968 case $cc_basename in
14969 nvcc*)
14970 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14972 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14973 esac
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14976 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14978 $as_echo_n "(cached) " >&6
14979 else
14980 lt_cv_prog_compiler_rtti_exceptions=no
14981 ac_outfile=conftest.$ac_objext
14982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14983 lt_compiler_flag="-fno-rtti -fno-exceptions"
14984 # Insert the option either (1) after the last *FLAGS variable, or
14985 # (2) before a word containing "conftest.", or (3) at the end.
14986 # Note that $ac_compile itself does not contain backslashes and begins
14987 # with a dollar sign (not a hyphen), so the echo should work correctly.
14988 # The option is referenced via a variable to avoid confusing sed.
14989 lt_compile=`echo "$ac_compile" | $SED \
14990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14992 -e 's:$: $lt_compiler_flag:'`
14993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14994 (eval "$lt_compile" 2>conftest.err)
14995 ac_status=$?
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 if (exit $ac_status) && test -s "$ac_outfile"; then
14999 # The compiler can only warn and ignore the option if not recognized
15000 # So say no if there are warnings other than the usual output.
15001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15004 lt_cv_prog_compiler_rtti_exceptions=yes
15007 $RM conftest*
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15011 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15015 else
15026 lt_prog_compiler_wl=
15027 lt_prog_compiler_pic=
15028 lt_prog_compiler_static=
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15033 if test "$GCC" = yes; then
15034 lt_prog_compiler_wl='-Wl,'
15035 lt_prog_compiler_static='-static'
15037 case $host_os in
15038 aix*)
15039 # All AIX code is PIC.
15040 if test "$host_cpu" = ia64; then
15041 # AIX 5 now supports IA64 processor
15042 lt_prog_compiler_static='-Bstatic'
15044 lt_prog_compiler_pic='-fPIC'
15047 amigaos*)
15048 case $host_cpu in
15049 powerpc)
15050 # see comment about AmigaOS4 .so support
15051 lt_prog_compiler_pic='-fPIC'
15053 m68k)
15054 # FIXME: we need at least 68020 code to build shared libraries, but
15055 # adding the `-m68020' flag to GCC prevents building anything better,
15056 # like `-m68040'.
15057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15059 esac
15062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15063 # PIC is the default for these OSes.
15066 mingw* | cygwin* | pw32* | os2* | cegcc*)
15067 # This hack is so that the source file can tell whether it is being
15068 # built for inclusion in a dll (and should export symbols for example).
15069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15070 # (--disable-auto-import) libraries
15071 lt_prog_compiler_pic='-DDLL_EXPORT'
15074 darwin* | rhapsody*)
15075 # PIC is the default on this platform
15076 # Common symbols not allowed in MH_DYLIB files
15077 lt_prog_compiler_pic='-fno-common'
15080 haiku*)
15081 # PIC is the default for Haiku.
15082 # The "-static" flag exists, but is broken.
15083 lt_prog_compiler_static=
15086 hpux*)
15087 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15088 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15089 # sets the default TLS model and affects inlining.
15090 case $host_cpu in
15091 hppa*64*)
15092 # +Z the default
15095 lt_prog_compiler_pic='-fPIC'
15097 esac
15100 interix[3-9]*)
15101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15102 # Instead, we relocate shared libraries at runtime.
15105 msdosdjgpp*)
15106 # Just because we use GCC doesn't mean we suddenly get shared libraries
15107 # on systems that don't support them.
15108 lt_prog_compiler_can_build_shared=no
15109 enable_shared=no
15112 *nto* | *qnx*)
15113 # QNX uses GNU C++, but need to define -shared option too, otherwise
15114 # it will coredump.
15115 lt_prog_compiler_pic='-fPIC -shared'
15118 sysv4*MP*)
15119 if test -d /usr/nec; then
15120 lt_prog_compiler_pic=-Kconform_pic
15125 lt_prog_compiler_pic='-fPIC'
15127 esac
15129 case $cc_basename in
15130 nvcc*) # Cuda Compiler Driver 2.2
15131 lt_prog_compiler_wl='-Xlinker '
15132 lt_prog_compiler_pic='-Xcompiler -fPIC'
15134 esac
15135 else
15136 # PORTME Check for flag to pass linker flags through the system compiler.
15137 case $host_os in
15138 aix*)
15139 lt_prog_compiler_wl='-Wl,'
15140 if test "$host_cpu" = ia64; then
15141 # AIX 5 now supports IA64 processor
15142 lt_prog_compiler_static='-Bstatic'
15143 else
15144 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15148 mingw* | cygwin* | pw32* | os2* | cegcc*)
15149 # This hack is so that the source file can tell whether it is being
15150 # built for inclusion in a dll (and should export symbols for example).
15151 lt_prog_compiler_pic='-DDLL_EXPORT'
15154 hpux9* | hpux10* | hpux11*)
15155 lt_prog_compiler_wl='-Wl,'
15156 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15157 # not for PA HP-UX.
15158 case $host_cpu in
15159 hppa*64*|ia64*)
15160 # +Z the default
15163 lt_prog_compiler_pic='+Z'
15165 esac
15166 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15167 lt_prog_compiler_static='${wl}-a ${wl}archive'
15170 irix5* | irix6* | nonstopux*)
15171 lt_prog_compiler_wl='-Wl,'
15172 # PIC (with -KPIC) is the default.
15173 lt_prog_compiler_static='-non_shared'
15176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15177 case $cc_basename in
15178 # old Intel for x86_64 which still supported -KPIC.
15179 ecc*)
15180 lt_prog_compiler_wl='-Wl,'
15181 lt_prog_compiler_pic='-KPIC'
15182 lt_prog_compiler_static='-static'
15184 # icc used to be incompatible with GCC.
15185 # ICC 10 doesn't accept -KPIC any more.
15186 icc* | ifort*)
15187 lt_prog_compiler_wl='-Wl,'
15188 lt_prog_compiler_pic='-fPIC'
15189 lt_prog_compiler_static='-static'
15191 # Lahey Fortran 8.1.
15192 lf95*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='--shared'
15195 lt_prog_compiler_static='--static'
15197 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15198 # Portland Group compilers (*not* the Pentium gcc compiler,
15199 # which looks to be a dead project)
15200 lt_prog_compiler_wl='-Wl,'
15201 lt_prog_compiler_pic='-fpic'
15202 lt_prog_compiler_static='-Bstatic'
15204 ccc*)
15205 lt_prog_compiler_wl='-Wl,'
15206 # All Alpha code is PIC.
15207 lt_prog_compiler_static='-non_shared'
15209 xl* | bgxl* | bgf* | mpixl*)
15210 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15211 lt_prog_compiler_wl='-Wl,'
15212 lt_prog_compiler_pic='-qpic'
15213 lt_prog_compiler_static='-qstaticlink'
15216 case `$CC -V 2>&1 | sed 5q` in
15217 *Sun\ F* | *Sun*Fortran*)
15218 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15219 lt_prog_compiler_pic='-KPIC'
15220 lt_prog_compiler_static='-Bstatic'
15221 lt_prog_compiler_wl=''
15223 *Sun\ C*)
15224 # Sun C 5.9
15225 lt_prog_compiler_pic='-KPIC'
15226 lt_prog_compiler_static='-Bstatic'
15227 lt_prog_compiler_wl='-Wl,'
15229 esac
15231 esac
15234 newsos6)
15235 lt_prog_compiler_pic='-KPIC'
15236 lt_prog_compiler_static='-Bstatic'
15239 *nto* | *qnx*)
15240 # QNX uses GNU C++, but need to define -shared option too, otherwise
15241 # it will coredump.
15242 lt_prog_compiler_pic='-fPIC -shared'
15245 osf3* | osf4* | osf5*)
15246 lt_prog_compiler_wl='-Wl,'
15247 # All OSF/1 code is PIC.
15248 lt_prog_compiler_static='-non_shared'
15251 rdos*)
15252 lt_prog_compiler_static='-non_shared'
15255 solaris*)
15256 lt_prog_compiler_pic='-KPIC'
15257 lt_prog_compiler_static='-Bstatic'
15258 case $cc_basename in
15259 f77* | f90* | f95*)
15260 lt_prog_compiler_wl='-Qoption ld ';;
15262 lt_prog_compiler_wl='-Wl,';;
15263 esac
15266 sunos4*)
15267 lt_prog_compiler_wl='-Qoption ld '
15268 lt_prog_compiler_pic='-PIC'
15269 lt_prog_compiler_static='-Bstatic'
15272 sysv4 | sysv4.2uw2* | sysv4.3*)
15273 lt_prog_compiler_wl='-Wl,'
15274 lt_prog_compiler_pic='-KPIC'
15275 lt_prog_compiler_static='-Bstatic'
15278 sysv4*MP*)
15279 if test -d /usr/nec ;then
15280 lt_prog_compiler_pic='-Kconform_pic'
15281 lt_prog_compiler_static='-Bstatic'
15285 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15286 lt_prog_compiler_wl='-Wl,'
15287 lt_prog_compiler_pic='-KPIC'
15288 lt_prog_compiler_static='-Bstatic'
15291 unicos*)
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_can_build_shared=no
15296 uts4*)
15297 lt_prog_compiler_pic='-pic'
15298 lt_prog_compiler_static='-Bstatic'
15302 lt_prog_compiler_can_build_shared=no
15304 esac
15307 case $host_os in
15308 # For platforms which do not support PIC, -DPIC is meaningless:
15309 *djgpp*)
15310 lt_prog_compiler_pic=
15313 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15315 esac
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15317 $as_echo "$lt_prog_compiler_pic" >&6; }
15325 # Check to make sure the PIC flag actually works.
15327 if test -n "$lt_prog_compiler_pic"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15329 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15330 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 lt_cv_prog_compiler_pic_works=no
15334 ac_outfile=conftest.$ac_objext
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
15348 ac_status=$?
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 if (exit $ac_status) && test -s "$ac_outfile"; then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings other than the usual output.
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_pic_works=yes
15360 $RM conftest*
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15364 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15366 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15367 case $lt_prog_compiler_pic in
15368 "" | " "*) ;;
15369 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15370 esac
15371 else
15372 lt_prog_compiler_pic=
15373 lt_prog_compiler_can_build_shared=no
15384 # Check to make sure the static flag actually works.
15386 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15389 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 lt_cv_prog_compiler_static_works=no
15393 save_LDFLAGS="$LDFLAGS"
15394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15397 # The linker can only warn and ignore the option if not recognized
15398 # So say no if there are warnings
15399 if test -s conftest.err; then
15400 # Append any errors to the config.log.
15401 cat conftest.err 1>&5
15402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15404 if diff conftest.exp conftest.er2 >/dev/null; then
15405 lt_cv_prog_compiler_static_works=yes
15407 else
15408 lt_cv_prog_compiler_static_works=yes
15411 $RM -r conftest*
15412 LDFLAGS="$save_LDFLAGS"
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15416 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15418 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15420 else
15421 lt_prog_compiler_static=
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15432 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 lt_cv_prog_compiler_c_o=no
15436 $RM -r conftest 2>/dev/null
15437 mkdir conftest
15438 cd conftest
15439 mkdir out
15440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15442 lt_compiler_flag="-o out/conftest2.$ac_objext"
15443 # Insert the option either (1) after the last *FLAGS variable, or
15444 # (2) before a word containing "conftest.", or (3) at the end.
15445 # Note that $ac_compile itself does not contain backslashes and begins
15446 # with a dollar sign (not a hyphen), so the echo should work correctly.
15447 lt_compile=`echo "$ac_compile" | $SED \
15448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15450 -e 's:$: $lt_compiler_flag:'`
15451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15452 (eval "$lt_compile" 2>out/conftest.err)
15453 ac_status=$?
15454 cat out/conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15457 then
15458 # The compiler can only warn and ignore the option if not recognized
15459 # So say no if there are warnings
15460 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15463 lt_cv_prog_compiler_c_o=yes
15466 chmod u+w . 2>&5
15467 $RM conftest*
15468 # SGI C++ compiler will create directory out/ii_files/ for
15469 # template instantiation
15470 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15471 $RM out/* && rmdir out
15472 cd ..
15473 $RM -r conftest
15474 $RM conftest*
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15478 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15487 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15488 $as_echo_n "(cached) " >&6
15489 else
15490 lt_cv_prog_compiler_c_o=no
15491 $RM -r conftest 2>/dev/null
15492 mkdir conftest
15493 cd conftest
15494 mkdir out
15495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15497 lt_compiler_flag="-o out/conftest2.$ac_objext"
15498 # Insert the option either (1) after the last *FLAGS variable, or
15499 # (2) before a word containing "conftest.", or (3) at the end.
15500 # Note that $ac_compile itself does not contain backslashes and begins
15501 # with a dollar sign (not a hyphen), so the echo should work correctly.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>out/conftest.err)
15508 ac_status=$?
15509 cat out/conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15512 then
15513 # The compiler can only warn and ignore the option if not recognized
15514 # So say no if there are warnings
15515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15518 lt_cv_prog_compiler_c_o=yes
15521 chmod u+w . 2>&5
15522 $RM conftest*
15523 # SGI C++ compiler will create directory out/ii_files/ for
15524 # template instantiation
15525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15526 $RM out/* && rmdir out
15527 cd ..
15528 $RM -r conftest
15529 $RM conftest*
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15533 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15538 hard_links="nottested"
15539 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15540 # do not overwrite the value of need_locks provided by the user
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15542 $as_echo_n "checking if we can lock with hard links... " >&6; }
15543 hard_links=yes
15544 $RM conftest*
15545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15546 touch conftest.a
15547 ln conftest.a conftest.b 2>&5 || hard_links=no
15548 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15550 $as_echo "$hard_links" >&6; }
15551 if test "$hard_links" = no; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15553 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15554 need_locks=warn
15556 else
15557 need_locks=no
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15566 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15568 runpath_var=
15569 allow_undefined_flag=
15570 always_export_symbols=no
15571 archive_cmds=
15572 archive_expsym_cmds=
15573 compiler_needs_object=no
15574 enable_shared_with_static_runtimes=no
15575 export_dynamic_flag_spec=
15576 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15577 hardcode_automatic=no
15578 hardcode_direct=no
15579 hardcode_direct_absolute=no
15580 hardcode_libdir_flag_spec=
15581 hardcode_libdir_flag_spec_ld=
15582 hardcode_libdir_separator=
15583 hardcode_minus_L=no
15584 hardcode_shlibpath_var=unsupported
15585 inherit_rpath=no
15586 link_all_deplibs=unknown
15587 module_cmds=
15588 module_expsym_cmds=
15589 old_archive_from_new_cmds=
15590 old_archive_from_expsyms_cmds=
15591 thread_safe_flag_spec=
15592 whole_archive_flag_spec=
15593 # include_expsyms should be a list of space-separated symbols to be *always*
15594 # included in the symbol list
15595 include_expsyms=
15596 # exclude_expsyms can be an extended regexp of symbols to exclude
15597 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15598 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15599 # as well as any symbol that contains `d'.
15600 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15601 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15602 # platforms (ab)use it in PIC code, but their linkers get confused if
15603 # the symbol is explicitly referenced. Since portable code cannot
15604 # rely on this symbol name, it's probably fine to never include it in
15605 # preloaded symbol tables.
15606 # Exclude shared library initialization/finalization symbols.
15607 extract_expsyms_cmds=
15609 case $host_os in
15610 cygwin* | mingw* | pw32* | cegcc*)
15611 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15612 # When not using gcc, we currently assume that we are using
15613 # Microsoft Visual C++.
15614 if test "$GCC" != yes; then
15615 with_gnu_ld=no
15618 interix*)
15619 # we just hope/assume this is gcc and not c89 (= MSVC++)
15620 with_gnu_ld=yes
15622 openbsd*)
15623 with_gnu_ld=no
15625 esac
15627 ld_shlibs=yes
15629 # On some targets, GNU ld is compatible enough with the native linker
15630 # that we're better off using the native interface for both.
15631 lt_use_gnu_ld_interface=no
15632 if test "$with_gnu_ld" = yes; then
15633 case $host_os in
15634 aix*)
15635 # The AIX port of GNU ld has always aspired to compatibility
15636 # with the native linker. However, as the warning in the GNU ld
15637 # block says, versions before 2.19.5* couldn't really create working
15638 # shared libraries, regardless of the interface used.
15639 case `$LD -v 2>&1` in
15640 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15641 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15642 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15644 lt_use_gnu_ld_interface=yes
15646 esac
15649 lt_use_gnu_ld_interface=yes
15651 esac
15654 if test "$lt_use_gnu_ld_interface" = yes; then
15655 # If archive_cmds runs LD, not CC, wlarc should be empty
15656 wlarc='${wl}'
15658 # Set some defaults for GNU ld with shared library support. These
15659 # are reset later if shared libraries are not supported. Putting them
15660 # here allows them to be overridden if necessary.
15661 runpath_var=LD_RUN_PATH
15662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15663 export_dynamic_flag_spec='${wl}--export-dynamic'
15664 # ancient GNU ld didn't support --whole-archive et. al.
15665 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15666 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15667 else
15668 whole_archive_flag_spec=
15670 supports_anon_versioning=no
15671 case `$LD -v 2>&1` in
15672 *GNU\ gold*) supports_anon_versioning=yes ;;
15673 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15674 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15675 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15676 *\ 2.11.*) ;; # other 2.11 versions
15677 *) supports_anon_versioning=yes ;;
15678 esac
15680 # See if GNU ld supports shared libraries.
15681 case $host_os in
15682 aix[3-9]*)
15683 # On AIX/PPC, the GNU linker is very broken
15684 if test "$host_cpu" != ia64; then
15685 ld_shlibs=no
15686 cat <<_LT_EOF 1>&2
15688 *** Warning: the GNU linker, at least up to release 2.19, is reported
15689 *** to be unable to reliably create shared libraries on AIX.
15690 *** Therefore, libtool is disabling shared libraries support. If you
15691 *** really care for shared libraries, you may want to install binutils
15692 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15693 *** You will then need to restart the configuration process.
15695 _LT_EOF
15699 amigaos*)
15700 case $host_cpu in
15701 powerpc)
15702 # see comment about AmigaOS4 .so support
15703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15704 archive_expsym_cmds=''
15706 m68k)
15707 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)'
15708 hardcode_libdir_flag_spec='-L$libdir'
15709 hardcode_minus_L=yes
15711 esac
15714 beos*)
15715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15716 allow_undefined_flag=unsupported
15717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15718 # support --undefined. This deserves some investigation. FIXME
15719 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15720 else
15721 ld_shlibs=no
15725 cygwin* | mingw* | pw32* | cegcc*)
15726 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15727 # as there is no search path for DLLs.
15728 hardcode_libdir_flag_spec='-L$libdir'
15729 export_dynamic_flag_spec='${wl}--export-all-symbols'
15730 allow_undefined_flag=unsupported
15731 always_export_symbols=no
15732 enable_shared_with_static_runtimes=yes
15733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15735 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15737 # If the export-symbols file already is a .def file (1st line
15738 # is EXPORTS), use it as is; otherwise, prepend...
15739 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15740 cp $export_symbols $output_objdir/$soname.def;
15741 else
15742 echo EXPORTS > $output_objdir/$soname.def;
15743 cat $export_symbols >> $output_objdir/$soname.def;
15745 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15746 else
15747 ld_shlibs=no
15751 haiku*)
15752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15753 link_all_deplibs=yes
15756 interix[3-9]*)
15757 hardcode_direct=no
15758 hardcode_shlibpath_var=no
15759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15760 export_dynamic_flag_spec='${wl}-E'
15761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15762 # Instead, shared libraries are loaded at an image base (0x10000000 by
15763 # default) and relocated if they conflict, which is a slow very memory
15764 # consuming and fragmenting process. To avoid this, we pick a random,
15765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15768 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'
15771 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15772 tmp_diet=no
15773 if test "$host_os" = linux-dietlibc; then
15774 case $cc_basename in
15775 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15776 esac
15778 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15779 && test "$tmp_diet" = no
15780 then
15781 tmp_addflag=
15782 tmp_sharedflag='-shared'
15783 case $cc_basename,$host_cpu in
15784 pgcc*) # Portland Group C compiler
15785 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'
15786 tmp_addflag=' $pic_flag'
15788 pgf77* | pgf90* | pgf95* | pgfortran*)
15789 # Portland Group f77 and f90 compilers
15790 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'
15791 tmp_addflag=' $pic_flag -Mnomain' ;;
15792 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15793 tmp_addflag=' -i_dynamic' ;;
15794 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15795 tmp_addflag=' -i_dynamic -nofor_main' ;;
15796 ifc* | ifort*) # Intel Fortran compiler
15797 tmp_addflag=' -nofor_main' ;;
15798 lf95*) # Lahey Fortran 8.1
15799 whole_archive_flag_spec=
15800 tmp_sharedflag='--shared' ;;
15801 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15802 tmp_sharedflag='-qmkshrobj'
15803 tmp_addflag= ;;
15804 nvcc*) # Cuda Compiler Driver 2.2
15805 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'
15806 compiler_needs_object=yes
15808 esac
15809 case `$CC -V 2>&1 | sed 5q` in
15810 *Sun\ C*) # Sun C 5.9
15811 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'
15812 compiler_needs_object=yes
15813 tmp_sharedflag='-G' ;;
15814 *Sun\ F*) # Sun Fortran 8.3
15815 tmp_sharedflag='-G' ;;
15816 esac
15817 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15819 if test "x$supports_anon_versioning" = xyes; then
15820 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15822 echo "local: *; };" >> $output_objdir/$libname.ver~
15823 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15826 case $cc_basename in
15827 xlf* | bgf* | bgxlf* | mpixlf*)
15828 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15829 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15830 hardcode_libdir_flag_spec=
15831 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15832 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15833 if test "x$supports_anon_versioning" = xyes; then
15834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15836 echo "local: *; };" >> $output_objdir/$libname.ver~
15837 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15840 esac
15841 else
15842 ld_shlibs=no
15846 netbsd*)
15847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15848 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15849 wlarc=
15850 else
15851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15856 solaris*)
15857 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15858 ld_shlibs=no
15859 cat <<_LT_EOF 1>&2
15861 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15862 *** create shared libraries on Solaris systems. Therefore, libtool
15863 *** is disabling shared libraries support. We urge you to upgrade GNU
15864 *** binutils to release 2.9.1 or newer. Another option is to modify
15865 *** your PATH or compiler configuration so that the native linker is
15866 *** used, and then restart.
15868 _LT_EOF
15869 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15872 else
15873 ld_shlibs=no
15877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15878 case `$LD -v 2>&1` in
15879 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15880 ld_shlibs=no
15881 cat <<_LT_EOF 1>&2
15883 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15884 *** reliably create shared libraries on SCO systems. Therefore, libtool
15885 *** is disabling shared libraries support. We urge you to upgrade GNU
15886 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15887 *** your PATH or compiler configuration so that the native linker is
15888 *** used, and then restart.
15890 _LT_EOF
15893 # For security reasons, it is highly recommended that you always
15894 # use absolute paths for naming shared libraries, and exclude the
15895 # DT_RUNPATH tag from executables and libraries. But doing so
15896 # requires that you compile everything twice, which is a pain.
15897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15901 else
15902 ld_shlibs=no
15905 esac
15908 sunos4*)
15909 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15910 wlarc=
15911 hardcode_direct=yes
15912 hardcode_shlibpath_var=no
15916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15919 else
15920 ld_shlibs=no
15923 esac
15925 if test "$ld_shlibs" = no; then
15926 runpath_var=
15927 hardcode_libdir_flag_spec=
15928 export_dynamic_flag_spec=
15929 whole_archive_flag_spec=
15931 else
15932 # PORTME fill in a description of your system's linker (not GNU ld)
15933 case $host_os in
15934 aix3*)
15935 allow_undefined_flag=unsupported
15936 always_export_symbols=yes
15937 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'
15938 # Note: this linker hardcodes the directories in LIBPATH if there
15939 # are no directories specified by -L.
15940 hardcode_minus_L=yes
15941 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15942 # Neither direct hardcoding nor static linking is supported with a
15943 # broken collect2.
15944 hardcode_direct=unsupported
15948 aix[4-9]*)
15949 if test "$host_cpu" = ia64; then
15950 # On IA64, the linker does run time linking by default, so we don't
15951 # have to do anything special.
15952 aix_use_runtimelinking=no
15953 exp_sym_flag='-Bexport'
15954 no_entry_flag=""
15955 else
15956 # If we're using GNU nm, then we don't want the "-C" option.
15957 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15958 # Also, AIX nm treats weak defined symbols like other global
15959 # defined symbols, whereas GNU nm marks them as "W".
15960 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15961 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'
15962 else
15963 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'
15965 aix_use_runtimelinking=no
15967 # Test if we are trying to use run time linking or normal
15968 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15969 # need to do runtime linking.
15970 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15971 for ld_flag in $LDFLAGS; do
15972 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15973 aix_use_runtimelinking=yes
15974 break
15976 done
15978 esac
15980 exp_sym_flag='-bexport'
15981 no_entry_flag='-bnoentry'
15984 # When large executables or shared objects are built, AIX ld can
15985 # have problems creating the table of contents. If linking a library
15986 # or program results in "error TOC overflow" add -mminimal-toc to
15987 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15988 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15990 archive_cmds=''
15991 hardcode_direct=yes
15992 hardcode_direct_absolute=yes
15993 hardcode_libdir_separator=':'
15994 link_all_deplibs=yes
15995 file_list_spec='${wl}-f,'
15997 if test "$GCC" = yes; then
15998 case $host_os in aix4.[012]|aix4.[012].*)
15999 # We only want to do this on AIX 4.2 and lower, the check
16000 # below for broken collect2 doesn't work under 4.3+
16001 collect2name=`${CC} -print-prog-name=collect2`
16002 if test -f "$collect2name" &&
16003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16004 then
16005 # We have reworked collect2
16007 else
16008 # We have old collect2
16009 hardcode_direct=unsupported
16010 # It fails to find uninstalled libraries when the uninstalled
16011 # path is not listed in the libpath. Setting hardcode_minus_L
16012 # to unsupported forces relinking
16013 hardcode_minus_L=yes
16014 hardcode_libdir_flag_spec='-L$libdir'
16015 hardcode_libdir_separator=
16018 esac
16019 shared_flag='-shared'
16020 if test "$aix_use_runtimelinking" = yes; then
16021 shared_flag="$shared_flag "'${wl}-G'
16023 else
16024 # not using gcc
16025 if test "$host_cpu" = ia64; then
16026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16027 # chokes on -Wl,-G. The following line is correct:
16028 shared_flag='-G'
16029 else
16030 if test "$aix_use_runtimelinking" = yes; then
16031 shared_flag='${wl}-G'
16032 else
16033 shared_flag='${wl}-bM:SRE'
16038 export_dynamic_flag_spec='${wl}-bexpall'
16039 # It seems that -bexpall does not export symbols beginning with
16040 # underscore (_), so it is better to generate a list of symbols to export.
16041 always_export_symbols=yes
16042 if test "$aix_use_runtimelinking" = yes; then
16043 # Warning - without using the other runtime loading flags (-brtl),
16044 # -berok will link without error, but may produce a broken library.
16045 allow_undefined_flag='-berok'
16046 # Determine the default libpath from the value encoded in an
16047 # empty executable.
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16052 main ()
16056 return 0;
16058 _ACEOF
16059 if ac_fn_c_try_link "$LINENO"; then :
16061 lt_aix_libpath_sed='
16062 /Import File Strings/,/^$/ {
16063 /^0/ {
16064 s/^0 *\(.*\)$/\1/
16068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16069 # Check for a 64-bit object if we didn't find anything.
16070 if test -z "$aix_libpath"; then
16071 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16078 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16079 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"
16080 else
16081 if test "$host_cpu" = ia64; then
16082 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16083 allow_undefined_flag="-z nodefs"
16084 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"
16085 else
16086 # Determine the default libpath from the value encoded in an
16087 # empty executable.
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16092 main ()
16096 return 0;
16098 _ACEOF
16099 if ac_fn_c_try_link "$LINENO"; then :
16101 lt_aix_libpath_sed='
16102 /Import File Strings/,/^$/ {
16103 /^0/ {
16104 s/^0 *\(.*\)$/\1/
16108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16109 # Check for a 64-bit object if we didn't find anything.
16110 if test -z "$aix_libpath"; then
16111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16114 rm -f core conftest.err conftest.$ac_objext \
16115 conftest$ac_exeext conftest.$ac_ext
16116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16119 # Warning - without using the other run time loading flags,
16120 # -berok will link without error, but may produce a broken library.
16121 no_undefined_flag=' ${wl}-bernotok'
16122 allow_undefined_flag=' ${wl}-berok'
16123 if test "$with_gnu_ld" = yes; then
16124 # We only use this code for GNU lds that support --whole-archive.
16125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16126 else
16127 # Exported symbols can be pulled into shared objects from archives
16128 whole_archive_flag_spec='$convenience'
16130 archive_cmds_need_lc=yes
16131 # This is similar to how AIX traditionally builds its shared libraries.
16132 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'
16137 amigaos*)
16138 case $host_cpu in
16139 powerpc)
16140 # see comment about AmigaOS4 .so support
16141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16142 archive_expsym_cmds=''
16144 m68k)
16145 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)'
16146 hardcode_libdir_flag_spec='-L$libdir'
16147 hardcode_minus_L=yes
16149 esac
16152 bsdi[45]*)
16153 export_dynamic_flag_spec=-rdynamic
16156 cygwin* | mingw* | pw32* | cegcc*)
16157 # When not using gcc, we currently assume that we are using
16158 # Microsoft Visual C++.
16159 # hardcode_libdir_flag_spec is actually meaningless, as there is
16160 # no search path for DLLs.
16161 hardcode_libdir_flag_spec=' '
16162 allow_undefined_flag=unsupported
16163 # Tell ltmain to make .lib files, not .a files.
16164 libext=lib
16165 # Tell ltmain to make .dll files, not .so files.
16166 shrext_cmds=".dll"
16167 # FIXME: Setting linknames here is a bad hack.
16168 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16169 # The linker will automatically build a .lib file if we build a DLL.
16170 old_archive_from_new_cmds='true'
16171 # FIXME: Should let the user specify the lib program.
16172 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16173 fix_srcfile_path='`cygpath -w "$srcfile"`'
16174 enable_shared_with_static_runtimes=yes
16177 darwin* | rhapsody*)
16180 archive_cmds_need_lc=no
16181 hardcode_direct=no
16182 hardcode_automatic=yes
16183 hardcode_shlibpath_var=unsupported
16184 if test "$lt_cv_ld_force_load" = "yes"; then
16185 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\"`'
16186 else
16187 whole_archive_flag_spec=''
16189 link_all_deplibs=yes
16190 allow_undefined_flag="$_lt_dar_allow_undefined"
16191 case $cc_basename in
16192 ifort*) _lt_dar_can_shared=yes ;;
16193 *) _lt_dar_can_shared=$GCC ;;
16194 esac
16195 if test "$_lt_dar_can_shared" = "yes"; then
16196 output_verbose_link_cmd=func_echo_all
16197 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16198 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16199 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}"
16200 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}"
16202 else
16203 ld_shlibs=no
16208 dgux*)
16209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16210 hardcode_libdir_flag_spec='-L$libdir'
16211 hardcode_shlibpath_var=no
16214 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16215 # support. Future versions do this automatically, but an explicit c++rt0.o
16216 # does not break anything, and helps significantly (at the cost of a little
16217 # extra space).
16218 freebsd2.2*)
16219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16220 hardcode_libdir_flag_spec='-R$libdir'
16221 hardcode_direct=yes
16222 hardcode_shlibpath_var=no
16225 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16226 freebsd2.*)
16227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16228 hardcode_direct=yes
16229 hardcode_minus_L=yes
16230 hardcode_shlibpath_var=no
16233 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16234 freebsd* | dragonfly*)
16235 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16236 hardcode_libdir_flag_spec='-R$libdir'
16237 hardcode_direct=yes
16238 hardcode_shlibpath_var=no
16241 hpux9*)
16242 if test "$GCC" = yes; then
16243 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'
16244 else
16245 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'
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_separator=:
16249 hardcode_direct=yes
16251 # hardcode_minus_L: Not really in the search PATH,
16252 # but as the default location of the library.
16253 hardcode_minus_L=yes
16254 export_dynamic_flag_spec='${wl}-E'
16257 hpux10*)
16258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16259 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16260 else
16261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16263 if test "$with_gnu_ld" = no; then
16264 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16265 hardcode_libdir_flag_spec_ld='+b $libdir'
16266 hardcode_libdir_separator=:
16267 hardcode_direct=yes
16268 hardcode_direct_absolute=yes
16269 export_dynamic_flag_spec='${wl}-E'
16270 # hardcode_minus_L: Not really in the search PATH,
16271 # but as the default location of the library.
16272 hardcode_minus_L=yes
16276 hpux11*)
16277 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16278 case $host_cpu in
16279 hppa*64*)
16280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 ia64*)
16283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16286 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16288 esac
16289 else
16290 case $host_cpu in
16291 hppa*64*)
16292 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294 ia64*)
16295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16299 # Older versions of the 11.00 compiler do not understand -b yet
16300 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16302 $as_echo_n "checking if $CC understands -b... " >&6; }
16303 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 lt_cv_prog_compiler__b=no
16307 save_LDFLAGS="$LDFLAGS"
16308 LDFLAGS="$LDFLAGS -b"
16309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16311 # The linker can only warn and ignore the option if not recognized
16312 # So say no if there are warnings
16313 if test -s conftest.err; then
16314 # Append any errors to the config.log.
16315 cat conftest.err 1>&5
16316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16318 if diff conftest.exp conftest.er2 >/dev/null; then
16319 lt_cv_prog_compiler__b=yes
16321 else
16322 lt_cv_prog_compiler__b=yes
16325 $RM -r conftest*
16326 LDFLAGS="$save_LDFLAGS"
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16330 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16332 if test x"$lt_cv_prog_compiler__b" = xyes; then
16333 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16334 else
16335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16339 esac
16341 if test "$with_gnu_ld" = no; then
16342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16343 hardcode_libdir_separator=:
16345 case $host_cpu in
16346 hppa*64*|ia64*)
16347 hardcode_direct=no
16348 hardcode_shlibpath_var=no
16351 hardcode_direct=yes
16352 hardcode_direct_absolute=yes
16353 export_dynamic_flag_spec='${wl}-E'
16355 # hardcode_minus_L: Not really in the search PATH,
16356 # but as the default location of the library.
16357 hardcode_minus_L=yes
16359 esac
16363 irix5* | irix6* | nonstopux*)
16364 if test "$GCC" = yes; then
16365 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'
16366 # Try to use the -exported_symbol ld option, if it does not
16367 # work, assume that -exports_file does not work either and
16368 # implicitly export all symbols.
16369 save_LDFLAGS="$LDFLAGS"
16370 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16373 int foo(void) {}
16374 _ACEOF
16375 if ac_fn_c_try_link "$LINENO"; then :
16376 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'
16379 rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381 LDFLAGS="$save_LDFLAGS"
16382 else
16383 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'
16384 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'
16386 archive_cmds_need_lc='no'
16387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16388 hardcode_libdir_separator=:
16389 inherit_rpath=yes
16390 link_all_deplibs=yes
16393 netbsd*)
16394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16396 else
16397 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16399 hardcode_libdir_flag_spec='-R$libdir'
16400 hardcode_direct=yes
16401 hardcode_shlibpath_var=no
16404 newsos6)
16405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16406 hardcode_direct=yes
16407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16408 hardcode_libdir_separator=:
16409 hardcode_shlibpath_var=no
16412 *nto* | *qnx*)
16415 openbsd*)
16416 if test -f /usr/libexec/ld.so; then
16417 hardcode_direct=yes
16418 hardcode_shlibpath_var=no
16419 hardcode_direct_absolute=yes
16420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16424 export_dynamic_flag_spec='${wl}-E'
16425 else
16426 case $host_os in
16427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16429 hardcode_libdir_flag_spec='-R$libdir'
16432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16435 esac
16437 else
16438 ld_shlibs=no
16442 os2*)
16443 hardcode_libdir_flag_spec='-L$libdir'
16444 hardcode_minus_L=yes
16445 allow_undefined_flag=unsupported
16446 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'
16447 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16450 osf3*)
16451 if test "$GCC" = yes; then
16452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16453 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'
16454 else
16455 allow_undefined_flag=' -expect_unresolved \*'
16456 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'
16458 archive_cmds_need_lc='no'
16459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16460 hardcode_libdir_separator=:
16463 osf4* | osf5*) # as osf3* with the addition of -msym flag
16464 if test "$GCC" = yes; then
16465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16466 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'
16467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16468 else
16469 allow_undefined_flag=' -expect_unresolved \*'
16470 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'
16471 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~
16472 $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'
16474 # Both c and cxx compiler support -rpath directly
16475 hardcode_libdir_flag_spec='-rpath $libdir'
16477 archive_cmds_need_lc='no'
16478 hardcode_libdir_separator=:
16481 solaris*)
16482 no_undefined_flag=' -z defs'
16483 if test "$GCC" = yes; then
16484 wlarc='${wl}'
16485 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16487 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16488 else
16489 case `$CC -V 2>&1` in
16490 *"Compilers 5.0"*)
16491 wlarc=''
16492 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16497 wlarc='${wl}'
16498 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16500 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16502 esac
16504 hardcode_libdir_flag_spec='-R$libdir'
16505 hardcode_shlibpath_var=no
16506 case $host_os in
16507 solaris2.[0-5] | solaris2.[0-5].*) ;;
16509 # The compiler driver will combine and reorder linker options,
16510 # but understands `-z linker_flag'. GCC discards it without `$wl',
16511 # but is careful enough not to reorder.
16512 # Supported since Solaris 2.6 (maybe 2.5.1?)
16513 if test "$GCC" = yes; then
16514 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16515 else
16516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16519 esac
16520 link_all_deplibs=yes
16523 sunos4*)
16524 if test "x$host_vendor" = xsequent; then
16525 # Use $CC to link under sequent, because it throws in some extra .o
16526 # files that make .init and .fini sections work.
16527 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16528 else
16529 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16531 hardcode_libdir_flag_spec='-L$libdir'
16532 hardcode_direct=yes
16533 hardcode_minus_L=yes
16534 hardcode_shlibpath_var=no
16537 sysv4)
16538 case $host_vendor in
16539 sni)
16540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_direct=yes # is this really true???
16543 siemens)
16544 ## LD is ld it makes a PLAMLIB
16545 ## CC just makes a GrossModule.
16546 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16547 reload_cmds='$CC -r -o $output$reload_objs'
16548 hardcode_direct=no
16550 motorola)
16551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16554 esac
16555 runpath_var='LD_RUN_PATH'
16556 hardcode_shlibpath_var=no
16559 sysv4.3*)
16560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16561 hardcode_shlibpath_var=no
16562 export_dynamic_flag_spec='-Bexport'
16565 sysv4*MP*)
16566 if test -d /usr/nec; then
16567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16568 hardcode_shlibpath_var=no
16569 runpath_var=LD_RUN_PATH
16570 hardcode_runpath_var=yes
16571 ld_shlibs=yes
16575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16576 no_undefined_flag='${wl}-z,text'
16577 archive_cmds_need_lc=no
16578 hardcode_shlibpath_var=no
16579 runpath_var='LD_RUN_PATH'
16581 if test "$GCC" = yes; then
16582 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16584 else
16585 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16590 sysv5* | sco3.2v5* | sco5v6*)
16591 # Note: We can NOT use -z defs as we might desire, because we do not
16592 # link with -lc, and that would cause any symbols used from libc to
16593 # always be unresolved, which means just about no library would
16594 # ever link correctly. If we're not using GNU ld we use -z text
16595 # though, which does catch some bad symbols but isn't as heavy-handed
16596 # as -z defs.
16597 no_undefined_flag='${wl}-z,text'
16598 allow_undefined_flag='${wl}-z,nodefs'
16599 archive_cmds_need_lc=no
16600 hardcode_shlibpath_var=no
16601 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16602 hardcode_libdir_separator=':'
16603 link_all_deplibs=yes
16604 export_dynamic_flag_spec='${wl}-Bexport'
16605 runpath_var='LD_RUN_PATH'
16607 if test "$GCC" = yes; then
16608 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16610 else
16611 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16612 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16616 uts4*)
16617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16618 hardcode_libdir_flag_spec='-L$libdir'
16619 hardcode_shlibpath_var=no
16623 ld_shlibs=no
16625 esac
16627 if test x$host_vendor = xsni; then
16628 case $host in
16629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16630 export_dynamic_flag_spec='${wl}-Blargedynsym'
16632 esac
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16637 $as_echo "$ld_shlibs" >&6; }
16638 test "$ld_shlibs" = no && can_build_shared=no
16640 with_gnu_ld=$with_gnu_ld
16657 # Do we need to explicitly link libc?
16659 case "x$archive_cmds_need_lc" in
16660 x|xyes)
16661 # Assume -lc should be added
16662 archive_cmds_need_lc=yes
16664 if test "$enable_shared" = yes && test "$GCC" = yes; then
16665 case $archive_cmds in
16666 *'~'*)
16667 # FIXME: we may have to deal with multi-command sequences.
16669 '$CC '*)
16670 # Test whether the compiler implicitly links with -lc since on some
16671 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16672 # to ld, don't add -lc before -lgcc.
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16675 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16677 else
16678 $RM conftest*
16679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16682 (eval $ac_compile) 2>&5
16683 ac_status=$?
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; } 2>conftest.err; then
16686 soname=conftest
16687 lib=conftest
16688 libobjs=conftest.$ac_objext
16689 deplibs=
16690 wl=$lt_prog_compiler_wl
16691 pic_flag=$lt_prog_compiler_pic
16692 compiler_flags=-v
16693 linker_flags=-v
16694 verstring=
16695 output_objdir=.
16696 libname=conftest
16697 lt_save_allow_undefined_flag=$allow_undefined_flag
16698 allow_undefined_flag=
16699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16700 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16701 ac_status=$?
16702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16703 test $ac_status = 0; }
16704 then
16705 lt_cv_archive_cmds_need_lc=no
16706 else
16707 lt_cv_archive_cmds_need_lc=yes
16709 allow_undefined_flag=$lt_save_allow_undefined_flag
16710 else
16711 cat conftest.err 1>&5
16713 $RM conftest*
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16717 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16718 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16720 esac
16723 esac
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16884 if test "$GCC" = yes; then
16885 case $host_os in
16886 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16887 *) lt_awk_arg="/^libraries:/" ;;
16888 esac
16889 case $host_os in
16890 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16891 *) lt_sed_strip_eq="s,=/,/,g" ;;
16892 esac
16893 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16894 case $lt_search_path_spec in
16895 *\;*)
16896 # if the path contains ";" then we assume it to be the separator
16897 # otherwise default to the standard path separator (i.e. ":") - it is
16898 # assumed that no part of a normal pathname contains ";" but that should
16899 # okay in the real world where ";" in dirpaths is itself problematic.
16900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16903 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16905 esac
16906 # Ok, now we have the path, separated by spaces, we can step through it
16907 # and add multilib dir if necessary.
16908 lt_tmp_lt_search_path_spec=
16909 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16910 for lt_sys_path in $lt_search_path_spec; do
16911 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16913 else
16914 test -d "$lt_sys_path" && \
16915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16917 done
16918 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16919 BEGIN {RS=" "; FS="/|\n";} {
16920 lt_foo="";
16921 lt_count=0;
16922 for (lt_i = NF; lt_i > 0; lt_i--) {
16923 if ($lt_i != "" && $lt_i != ".") {
16924 if ($lt_i == "..") {
16925 lt_count++;
16926 } else {
16927 if (lt_count == 0) {
16928 lt_foo="/" $lt_i lt_foo;
16929 } else {
16930 lt_count--;
16935 if (lt_foo != "") { lt_freq[lt_foo]++; }
16936 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16938 # AWK program above erroneously prepends '/' to C:/dos/paths
16939 # for these hosts.
16940 case $host_os in
16941 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16942 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16943 esac
16944 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16945 else
16946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16948 library_names_spec=
16949 libname_spec='lib$name'
16950 soname_spec=
16951 shrext_cmds=".so"
16952 postinstall_cmds=
16953 postuninstall_cmds=
16954 finish_cmds=
16955 finish_eval=
16956 shlibpath_var=
16957 shlibpath_overrides_runpath=unknown
16958 version_type=none
16959 dynamic_linker="$host_os ld.so"
16960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16961 need_lib_prefix=unknown
16962 hardcode_into_libs=no
16964 # when you set need_version to no, make sure it does not cause -set_version
16965 # flags to be left without arguments
16966 need_version=unknown
16968 case $host_os in
16969 aix3*)
16970 version_type=linux
16971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16972 shlibpath_var=LIBPATH
16974 # AIX 3 has no versioning support, so we append a major version to the name.
16975 soname_spec='${libname}${release}${shared_ext}$major'
16978 aix[4-9]*)
16979 version_type=linux
16980 need_lib_prefix=no
16981 need_version=no
16982 hardcode_into_libs=yes
16983 if test "$host_cpu" = ia64; then
16984 # AIX 5 supports IA64
16985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16986 shlibpath_var=LD_LIBRARY_PATH
16987 else
16988 # With GCC up to 2.95.x, collect2 would create an import file
16989 # for dependence libraries. The import file would start with
16990 # the line `#! .'. This would cause the generated library to
16991 # depend on `.', always an invalid library. This was fixed in
16992 # development snapshots of GCC prior to 3.0.
16993 case $host_os in
16994 aix4 | aix4.[01] | aix4.[01].*)
16995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16996 echo ' yes '
16997 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16999 else
17000 can_build_shared=no
17003 esac
17004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17005 # soname into executable. Probably we can add versioning support to
17006 # collect2, so additional links can be useful in future.
17007 if test "$aix_use_runtimelinking" = yes; then
17008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17009 # instead of lib<name>.a to let people know that these are not
17010 # typical AIX shared libraries.
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17012 else
17013 # We preserve .a as extension for shared libraries through AIX4.2
17014 # and later when we are not doing run time linking.
17015 library_names_spec='${libname}${release}.a $libname.a'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17018 shlibpath_var=LIBPATH
17022 amigaos*)
17023 case $host_cpu in
17024 powerpc)
17025 # Since July 2007 AmigaOS4 officially supports .so libraries.
17026 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17029 m68k)
17030 library_names_spec='$libname.ixlibrary $libname.a'
17031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17032 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'
17034 esac
17037 beos*)
17038 library_names_spec='${libname}${shared_ext}'
17039 dynamic_linker="$host_os ld.so"
17040 shlibpath_var=LIBRARY_PATH
17043 bsdi[45]*)
17044 version_type=linux
17045 need_version=no
17046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047 soname_spec='${libname}${release}${shared_ext}$major'
17048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17049 shlibpath_var=LD_LIBRARY_PATH
17050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17052 # the default ld.so.conf also contains /usr/contrib/lib and
17053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17054 # libtool to hard-code these into programs
17057 cygwin* | mingw* | pw32* | cegcc*)
17058 version_type=windows
17059 shrext_cmds=".dll"
17060 need_version=no
17061 need_lib_prefix=no
17063 case $GCC,$host_os in
17064 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17065 library_names_spec='$libname.dll.a'
17066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17067 postinstall_cmds='base_file=`basename \${file}`~
17068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17069 dldir=$destdir/`dirname \$dlpath`~
17070 test -d \$dldir || mkdir -p \$dldir~
17071 $install_prog $dir/$dlname \$dldir/$dlname~
17072 chmod a+x \$dldir/$dlname~
17073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17077 dlpath=$dir/\$dldll~
17078 $RM \$dlpath'
17079 shlibpath_overrides_runpath=yes
17081 case $host_os in
17082 cygwin*)
17083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17088 mingw* | cegcc*)
17089 # MinGW DLLs use traditional 'lib' prefix
17090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17092 pw32*)
17093 # pw32 DLLs use 'pw' prefix rather than 'lib'
17094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17096 esac
17100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17102 esac
17103 dynamic_linker='Win32 ld.exe'
17104 # FIXME: first we should search . and the directory the executable is in
17105 shlibpath_var=PATH
17108 darwin* | rhapsody*)
17109 dynamic_linker="$host_os dyld"
17110 version_type=darwin
17111 need_lib_prefix=no
17112 need_version=no
17113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17114 soname_spec='${libname}${release}${major}$shared_ext'
17115 shlibpath_overrides_runpath=yes
17116 shlibpath_var=DYLD_LIBRARY_PATH
17117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17123 dgux*)
17124 version_type=linux
17125 need_lib_prefix=no
17126 need_version=no
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 shlibpath_var=LD_LIBRARY_PATH
17132 freebsd* | dragonfly*)
17133 # DragonFly does not have aout. When/if they implement a new
17134 # versioning mechanism, adjust this.
17135 if test -x /usr/bin/objformat; then
17136 objformat=`/usr/bin/objformat`
17137 else
17138 case $host_os in
17139 freebsd[23].*) objformat=aout ;;
17140 *) objformat=elf ;;
17141 esac
17143 version_type=freebsd-$objformat
17144 case $version_type in
17145 freebsd-elf*)
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17147 need_version=no
17148 need_lib_prefix=no
17150 freebsd-*)
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17152 need_version=yes
17154 esac
17155 shlibpath_var=LD_LIBRARY_PATH
17156 case $host_os in
17157 freebsd2.*)
17158 shlibpath_overrides_runpath=yes
17160 freebsd3.[01]* | freebsdelf3.[01]*)
17161 shlibpath_overrides_runpath=yes
17162 hardcode_into_libs=yes
17164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17166 shlibpath_overrides_runpath=no
17167 hardcode_into_libs=yes
17169 *) # from 4.6 on, and DragonFly
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17173 esac
17176 gnu*)
17177 version_type=linux
17178 need_lib_prefix=no
17179 need_version=no
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 hardcode_into_libs=yes
17186 haiku*)
17187 version_type=linux
17188 need_lib_prefix=no
17189 need_version=no
17190 dynamic_linker="$host_os runtime_loader"
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LIBRARY_PATH
17194 shlibpath_overrides_runpath=yes
17195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17196 hardcode_into_libs=yes
17199 hpux9* | hpux10* | hpux11*)
17200 # Give a soname corresponding to the major version so that dld.sl refuses to
17201 # link against other versions.
17202 version_type=sunos
17203 need_lib_prefix=no
17204 need_version=no
17205 case $host_cpu in
17206 ia64*)
17207 shrext_cmds='.so'
17208 hardcode_into_libs=yes
17209 dynamic_linker="$host_os dld.so"
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 if test "X$HPUX_IA64_MODE" = X32; then
17215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17216 else
17217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17221 hppa*64*)
17222 shrext_cmds='.sl'
17223 hardcode_into_libs=yes
17224 dynamic_linker="$host_os dld.sl"
17225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17228 soname_spec='${libname}${release}${shared_ext}$major'
17229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17233 shrext_cmds='.sl'
17234 dynamic_linker="$host_os dld.sl"
17235 shlibpath_var=SHLIB_PATH
17236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17240 esac
17241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17242 postinstall_cmds='chmod 555 $lib'
17243 # or fails outright, so override atomically:
17244 install_override_mode=555
17247 interix[3-9]*)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17259 irix5* | irix6* | nonstopux*)
17260 case $host_os in
17261 nonstopux*) version_type=nonstopux ;;
17263 if test "$lt_cv_prog_gnu_ld" = yes; then
17264 version_type=linux
17265 else
17266 version_type=irix
17267 fi ;;
17268 esac
17269 need_lib_prefix=no
17270 need_version=no
17271 soname_spec='${libname}${release}${shared_ext}$major'
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17273 case $host_os in
17274 irix5* | nonstopux*)
17275 libsuff= shlibsuff=
17278 case $LD in # libtool.m4 will add one of these switches to LD
17279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17280 libsuff= shlibsuff= libmagic=32-bit;;
17281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17282 libsuff=32 shlibsuff=N32 libmagic=N32;;
17283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17285 *) libsuff= shlibsuff= libmagic=never-match;;
17286 esac
17288 esac
17289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17290 shlibpath_overrides_runpath=no
17291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17293 hardcode_into_libs=yes
17296 # No shared lib support for Linux oldld, aout, or coff.
17297 linux*oldld* | linux*aout* | linux*coff*)
17298 dynamic_linker=no
17301 # This must be Linux ELF.
17302 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17303 version_type=linux
17304 need_lib_prefix=no
17305 need_version=no
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307 soname_spec='${libname}${release}${shared_ext}$major'
17308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=no
17312 # Some binutils ld are patched to set DT_RUNPATH
17313 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17314 $as_echo_n "(cached) " >&6
17315 else
17316 lt_cv_shlibpath_overrides_runpath=no
17317 save_LDFLAGS=$LDFLAGS
17318 save_libdir=$libdir
17319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17325 main ()
17329 return 0;
17331 _ACEOF
17332 if ac_fn_c_try_link "$LINENO"; then :
17333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17334 lt_cv_shlibpath_overrides_runpath=yes
17337 rm -f core conftest.err conftest.$ac_objext \
17338 conftest$ac_exeext conftest.$ac_ext
17339 LDFLAGS=$save_LDFLAGS
17340 libdir=$save_libdir
17344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17346 # This implies no fast_install, which is unacceptable.
17347 # Some rework will be needed to allow for fast_install
17348 # before this can be enabled.
17349 hardcode_into_libs=yes
17351 # Append ld.so.conf contents to the search path
17352 if test -f /etc/ld.so.conf; then
17353 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' ' '`
17354 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17357 # We used to test for /lib/ld.so.1 and disable shared libraries on
17358 # powerpc, because MkLinux only supported shared libraries with the
17359 # GNU dynamic linker. Since this was broken with cross compilers,
17360 # most powerpc-linux boxes support dynamic linking these days and
17361 # people can always --disable-shared, the test was removed, and we
17362 # assume the GNU/Linux dynamic linker is in use.
17363 dynamic_linker='GNU/Linux ld.so'
17366 netbsd*)
17367 version_type=sunos
17368 need_lib_prefix=no
17369 need_version=no
17370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17373 dynamic_linker='NetBSD (a.out) ld.so'
17374 else
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 dynamic_linker='NetBSD ld.elf_so'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=yes
17381 hardcode_into_libs=yes
17384 newsos6)
17385 version_type=linux
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=yes
17391 *nto* | *qnx*)
17392 version_type=qnx
17393 need_lib_prefix=no
17394 need_version=no
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 shlibpath_overrides_runpath=no
17399 hardcode_into_libs=yes
17400 dynamic_linker='ldqnx.so'
17403 openbsd*)
17404 version_type=sunos
17405 sys_lib_dlsearch_path_spec="/usr/lib"
17406 need_lib_prefix=no
17407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17408 case $host_os in
17409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17410 *) need_version=no ;;
17411 esac
17412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416 case $host_os in
17417 openbsd2.[89] | openbsd2.[89].*)
17418 shlibpath_overrides_runpath=no
17421 shlibpath_overrides_runpath=yes
17423 esac
17424 else
17425 shlibpath_overrides_runpath=yes
17429 os2*)
17430 libname_spec='$name'
17431 shrext_cmds=".dll"
17432 need_lib_prefix=no
17433 library_names_spec='$libname${shared_ext} $libname.a'
17434 dynamic_linker='OS/2 ld.exe'
17435 shlibpath_var=LIBPATH
17438 osf3* | osf4* | osf5*)
17439 version_type=osf
17440 need_lib_prefix=no
17441 need_version=no
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17449 rdos*)
17450 dynamic_linker=no
17453 solaris*)
17454 version_type=linux
17455 need_lib_prefix=no
17456 need_version=no
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17458 soname_spec='${libname}${release}${shared_ext}$major'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 shlibpath_overrides_runpath=yes
17461 hardcode_into_libs=yes
17462 # ldd complains unless libraries are executable
17463 postinstall_cmds='chmod +x $lib'
17466 sunos4*)
17467 version_type=sunos
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath=yes
17472 if test "$with_gnu_ld" = yes; then
17473 need_lib_prefix=no
17475 need_version=yes
17478 sysv4 | sysv4.3*)
17479 version_type=linux
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 case $host_vendor in
17484 sni)
17485 shlibpath_overrides_runpath=no
17486 need_lib_prefix=no
17487 runpath_var=LD_RUN_PATH
17489 siemens)
17490 need_lib_prefix=no
17492 motorola)
17493 need_lib_prefix=no
17494 need_version=no
17495 shlibpath_overrides_runpath=no
17496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17498 esac
17501 sysv4*MP*)
17502 if test -d /usr/nec ;then
17503 version_type=linux
17504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17505 soname_spec='$libname${shared_ext}.$major'
17506 shlibpath_var=LD_LIBRARY_PATH
17510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17511 version_type=freebsd-elf
17512 need_lib_prefix=no
17513 need_version=no
17514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17515 soname_spec='${libname}${release}${shared_ext}$major'
17516 shlibpath_var=LD_LIBRARY_PATH
17517 shlibpath_overrides_runpath=yes
17518 hardcode_into_libs=yes
17519 if test "$with_gnu_ld" = yes; then
17520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17521 else
17522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17523 case $host_os in
17524 sco3.2v5*)
17525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17527 esac
17529 sys_lib_dlsearch_path_spec='/usr/lib'
17532 tpf*)
17533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17534 version_type=linux
17535 need_lib_prefix=no
17536 need_version=no
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 shlibpath_overrides_runpath=no
17540 hardcode_into_libs=yes
17543 uts4*)
17544 version_type=linux
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17546 soname_spec='${libname}${release}${shared_ext}$major'
17547 shlibpath_var=LD_LIBRARY_PATH
17551 dynamic_linker=no
17553 esac
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17555 $as_echo "$dynamic_linker" >&6; }
17556 test "$dynamic_linker" = no && can_build_shared=no
17558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17559 if test "$GCC" = yes; then
17560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17663 hardcode_action=
17664 if test -n "$hardcode_libdir_flag_spec" ||
17665 test -n "$runpath_var" ||
17666 test "X$hardcode_automatic" = "Xyes" ; then
17668 # We can hardcode non-existent directories.
17669 if test "$hardcode_direct" != no &&
17670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17671 # have to relink, otherwise we might link with an installed library
17672 # when we should be linking with a yet-to-be-installed one
17673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17674 test "$hardcode_minus_L" != no; then
17675 # Linking always hardcodes the temporary library directory.
17676 hardcode_action=relink
17677 else
17678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17679 hardcode_action=immediate
17681 else
17682 # We cannot hardcode anything, or else we can only hardcode existing
17683 # directories.
17684 hardcode_action=unsupported
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17687 $as_echo "$hardcode_action" >&6; }
17689 if test "$hardcode_action" = relink ||
17690 test "$inherit_rpath" = yes; then
17691 # Fast installation is not supported
17692 enable_fast_install=no
17693 elif test "$shlibpath_overrides_runpath" = yes ||
17694 test "$enable_shared" = no; then
17695 # Fast installation is not necessary
17696 enable_fast_install=needless
17704 if test "x$enable_dlopen" != xyes; then
17705 enable_dlopen=unknown
17706 enable_dlopen_self=unknown
17707 enable_dlopen_self_static=unknown
17708 else
17709 lt_cv_dlopen=no
17710 lt_cv_dlopen_libs=
17712 case $host_os in
17713 beos*)
17714 lt_cv_dlopen="load_add_on"
17715 lt_cv_dlopen_libs=
17716 lt_cv_dlopen_self=yes
17719 mingw* | pw32* | cegcc*)
17720 lt_cv_dlopen="LoadLibrary"
17721 lt_cv_dlopen_libs=
17724 cygwin*)
17725 lt_cv_dlopen="dlopen"
17726 lt_cv_dlopen_libs=
17729 darwin*)
17730 # if libdl is installed we need to link against it
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17734 $as_echo_n "(cached) " >&6
17735 else
17736 ac_check_lib_save_LIBS=$LIBS
17737 LIBS="-ldl $LIBS"
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17741 /* Override any GCC internal prototype to avoid an error.
17742 Use char because int might match the return type of a GCC
17743 builtin and then its argument prototype would still apply. */
17744 #ifdef __cplusplus
17745 extern "C"
17746 #endif
17747 char dlopen ();
17749 main ()
17751 return dlopen ();
17753 return 0;
17755 _ACEOF
17756 if ac_fn_c_try_link "$LINENO"; then :
17757 ac_cv_lib_dl_dlopen=yes
17758 else
17759 ac_cv_lib_dl_dlopen=no
17761 rm -f core conftest.err conftest.$ac_objext \
17762 conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17767 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17769 else
17771 lt_cv_dlopen="dyld"
17772 lt_cv_dlopen_libs=
17773 lt_cv_dlopen_self=yes
17780 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17781 if test "x$ac_cv_func_shl_load" = x""yes; then :
17782 lt_cv_dlopen="shl_load"
17783 else
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17787 $as_echo_n "(cached) " >&6
17788 else
17789 ac_check_lib_save_LIBS=$LIBS
17790 LIBS="-ldld $LIBS"
17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17794 /* Override any GCC internal prototype to avoid an error.
17795 Use char because int might match the return type of a GCC
17796 builtin and then its argument prototype would still apply. */
17797 #ifdef __cplusplus
17798 extern "C"
17799 #endif
17800 char shl_load ();
17802 main ()
17804 return shl_load ();
17806 return 0;
17808 _ACEOF
17809 if ac_fn_c_try_link "$LINENO"; then :
17810 ac_cv_lib_dld_shl_load=yes
17811 else
17812 ac_cv_lib_dld_shl_load=no
17814 rm -f core conftest.err conftest.$ac_objext \
17815 conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17820 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17822 else
17823 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17824 if test "x$ac_cv_func_dlopen" = x""yes; then :
17825 lt_cv_dlopen="dlopen"
17826 else
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17831 else
17832 ac_check_lib_save_LIBS=$LIBS
17833 LIBS="-ldl $LIBS"
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17837 /* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840 #ifdef __cplusplus
17841 extern "C"
17842 #endif
17843 char dlopen ();
17845 main ()
17847 return dlopen ();
17849 return 0;
17851 _ACEOF
17852 if ac_fn_c_try_link "$LINENO"; then :
17853 ac_cv_lib_dl_dlopen=yes
17854 else
17855 ac_cv_lib_dl_dlopen=no
17857 rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859 LIBS=$ac_check_lib_save_LIBS
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17863 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17865 else
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17868 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 ac_check_lib_save_LIBS=$LIBS
17872 LIBS="-lsvld $LIBS"
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char dlopen ();
17884 main ()
17886 return dlopen ();
17888 return 0;
17890 _ACEOF
17891 if ac_fn_c_try_link "$LINENO"; then :
17892 ac_cv_lib_svld_dlopen=yes
17893 else
17894 ac_cv_lib_svld_dlopen=no
17896 rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17902 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17904 else
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldld $LIBS"
17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17913 /* end confdefs.h. */
17915 /* Override any GCC internal prototype to avoid an error.
17916 Use char because int might match the return type of a GCC
17917 builtin and then its argument prototype would still apply. */
17918 #ifdef __cplusplus
17919 extern "C"
17920 #endif
17921 char dld_link ();
17923 main ()
17925 return dld_link ();
17927 return 0;
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931 ac_cv_lib_dld_dld_link=yes
17932 else
17933 ac_cv_lib_dld_dld_link=no
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17937 LIBS=$ac_check_lib_save_LIBS
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17941 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17961 esac
17963 if test "x$lt_cv_dlopen" != xno; then
17964 enable_dlopen=yes
17965 else
17966 enable_dlopen=no
17969 case $lt_cv_dlopen in
17970 dlopen)
17971 save_CPPFLAGS="$CPPFLAGS"
17972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17974 save_LDFLAGS="$LDFLAGS"
17975 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17977 save_LIBS="$LIBS"
17978 LIBS="$lt_cv_dlopen_libs $LIBS"
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17982 if test "${lt_cv_dlopen_self+set}" = set; then :
17983 $as_echo_n "(cached) " >&6
17984 else
17985 if test "$cross_compiling" = yes; then :
17986 lt_cv_dlopen_self=cross
17987 else
17988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17989 lt_status=$lt_dlunknown
17990 cat > conftest.$ac_ext <<_LT_EOF
17991 #line 17991 "configure"
17992 #include "confdefs.h"
17994 #if HAVE_DLFCN_H
17995 #include <dlfcn.h>
17996 #endif
17998 #include <stdio.h>
18000 #ifdef RTLD_GLOBAL
18001 # define LT_DLGLOBAL RTLD_GLOBAL
18002 #else
18003 # ifdef DL_GLOBAL
18004 # define LT_DLGLOBAL DL_GLOBAL
18005 # else
18006 # define LT_DLGLOBAL 0
18007 # endif
18008 #endif
18010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18011 find out it does not work in some platform. */
18012 #ifndef LT_DLLAZY_OR_NOW
18013 # ifdef RTLD_LAZY
18014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18015 # else
18016 # ifdef DL_LAZY
18017 # define LT_DLLAZY_OR_NOW DL_LAZY
18018 # else
18019 # ifdef RTLD_NOW
18020 # define LT_DLLAZY_OR_NOW RTLD_NOW
18021 # else
18022 # ifdef DL_NOW
18023 # define LT_DLLAZY_OR_NOW DL_NOW
18024 # else
18025 # define LT_DLLAZY_OR_NOW 0
18026 # endif
18027 # endif
18028 # endif
18029 # endif
18030 #endif
18032 /* When -fvisbility=hidden is used, assume the code has been annotated
18033 correspondingly for the symbols needed. */
18034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18035 void fnord () __attribute__((visibility("default")));
18036 #endif
18038 void fnord () { int i=42; }
18039 int main ()
18041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18042 int status = $lt_dlunknown;
18044 if (self)
18046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18047 else
18049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18050 else puts (dlerror ());
18052 /* dlclose (self); */
18054 else
18055 puts (dlerror ());
18057 return status;
18059 _LT_EOF
18060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18061 (eval $ac_link) 2>&5
18062 ac_status=$?
18063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18065 (./conftest; exit; ) >&5 2>/dev/null
18066 lt_status=$?
18067 case x$lt_status in
18068 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18069 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18070 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18071 esac
18072 else :
18073 # compilation failed
18074 lt_cv_dlopen_self=no
18077 rm -fr conftest*
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18082 $as_echo "$lt_cv_dlopen_self" >&6; }
18084 if test "x$lt_cv_dlopen_self" = xyes; then
18085 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18087 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18088 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18089 $as_echo_n "(cached) " >&6
18090 else
18091 if test "$cross_compiling" = yes; then :
18092 lt_cv_dlopen_self_static=cross
18093 else
18094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18095 lt_status=$lt_dlunknown
18096 cat > conftest.$ac_ext <<_LT_EOF
18097 #line 18097 "configure"
18098 #include "confdefs.h"
18100 #if HAVE_DLFCN_H
18101 #include <dlfcn.h>
18102 #endif
18104 #include <stdio.h>
18106 #ifdef RTLD_GLOBAL
18107 # define LT_DLGLOBAL RTLD_GLOBAL
18108 #else
18109 # ifdef DL_GLOBAL
18110 # define LT_DLGLOBAL DL_GLOBAL
18111 # else
18112 # define LT_DLGLOBAL 0
18113 # endif
18114 #endif
18116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18117 find out it does not work in some platform. */
18118 #ifndef LT_DLLAZY_OR_NOW
18119 # ifdef RTLD_LAZY
18120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18121 # else
18122 # ifdef DL_LAZY
18123 # define LT_DLLAZY_OR_NOW DL_LAZY
18124 # else
18125 # ifdef RTLD_NOW
18126 # define LT_DLLAZY_OR_NOW RTLD_NOW
18127 # else
18128 # ifdef DL_NOW
18129 # define LT_DLLAZY_OR_NOW DL_NOW
18130 # else
18131 # define LT_DLLAZY_OR_NOW 0
18132 # endif
18133 # endif
18134 # endif
18135 # endif
18136 #endif
18138 /* When -fvisbility=hidden is used, assume the code has been annotated
18139 correspondingly for the symbols needed. */
18140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18141 void fnord () __attribute__((visibility("default")));
18142 #endif
18144 void fnord () { int i=42; }
18145 int main ()
18147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18148 int status = $lt_dlunknown;
18150 if (self)
18152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18153 else
18155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18156 else puts (dlerror ());
18158 /* dlclose (self); */
18160 else
18161 puts (dlerror ());
18163 return status;
18165 _LT_EOF
18166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18167 (eval $ac_link) 2>&5
18168 ac_status=$?
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18171 (./conftest; exit; ) >&5 2>/dev/null
18172 lt_status=$?
18173 case x$lt_status in
18174 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18175 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18176 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18177 esac
18178 else :
18179 # compilation failed
18180 lt_cv_dlopen_self_static=no
18183 rm -fr conftest*
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18188 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18191 CPPFLAGS="$save_CPPFLAGS"
18192 LDFLAGS="$save_LDFLAGS"
18193 LIBS="$save_LIBS"
18195 esac
18197 case $lt_cv_dlopen_self in
18198 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18199 *) enable_dlopen_self=unknown ;;
18200 esac
18202 case $lt_cv_dlopen_self_static in
18203 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18204 *) enable_dlopen_self_static=unknown ;;
18205 esac
18224 striplib=
18225 old_striplib=
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18227 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18228 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18229 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18230 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18232 $as_echo "yes" >&6; }
18233 else
18234 # FIXME - insert some real tests, host_os isn't really good enough
18235 case $host_os in
18236 darwin*)
18237 if test -n "$STRIP" ; then
18238 striplib="$STRIP -x"
18239 old_striplib="$STRIP -S"
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18241 $as_echo "yes" >&6; }
18242 else
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244 $as_echo "no" >&6; }
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249 $as_echo "no" >&6; }
18251 esac
18265 # Report which library types will actually be built
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18267 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18269 $as_echo "$can_build_shared" >&6; }
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18272 $as_echo_n "checking whether to build shared libraries... " >&6; }
18273 test "$can_build_shared" = "no" && enable_shared=no
18275 # On AIX, shared libraries and static libraries use the same namespace, and
18276 # are all built from PIC.
18277 case $host_os in
18278 aix3*)
18279 test "$enable_shared" = yes && enable_static=no
18280 if test -n "$RANLIB"; then
18281 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18282 postinstall_cmds='$RANLIB $lib'
18286 aix[4-9]*)
18287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18288 test "$enable_shared" = yes && enable_static=no
18291 esac
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18293 $as_echo "$enable_shared" >&6; }
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18296 $as_echo_n "checking whether to build static libraries... " >&6; }
18297 # Make sure either enable_shared or enable_static is yes.
18298 test "$enable_shared" = yes || enable_static=yes
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18300 $as_echo "$enable_static" >&6; }
18306 ac_ext=c
18307 ac_cpp='$CPP $CPPFLAGS'
18308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18312 CC="$lt_save_CC"
18314 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18315 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18316 (test "X$CXX" != "Xg++"))) ; then
18317 ac_ext=cpp
18318 ac_cpp='$CXXCPP $CPPFLAGS'
18319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18323 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18324 if test -z "$CXXCPP"; then
18325 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18326 $as_echo_n "(cached) " >&6
18327 else
18328 # Double quotes because CXXCPP needs to be expanded
18329 for CXXCPP in "$CXX -E" "/lib/cpp"
18331 ac_preproc_ok=false
18332 for ac_cxx_preproc_warn_flag in '' yes
18334 # Use a header file that comes with gcc, so configuring glibc
18335 # with a fresh cross-compiler works.
18336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18337 # <limits.h> exists even on freestanding compilers.
18338 # On the NeXT, cc -E runs the code through the compiler's parser,
18339 # not just through cpp. "Syntax error" is here to catch this case.
18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341 /* end confdefs.h. */
18342 #ifdef __STDC__
18343 # include <limits.h>
18344 #else
18345 # include <assert.h>
18346 #endif
18347 Syntax error
18348 _ACEOF
18349 if ac_fn_cxx_try_cpp "$LINENO"; then :
18351 else
18352 # Broken: fails on valid input.
18353 continue
18355 rm -f conftest.err conftest.$ac_ext
18357 # OK, works on sane cases. Now check whether nonexistent headers
18358 # can be detected and how.
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18361 #include <ac_nonexistent.h>
18362 _ACEOF
18363 if ac_fn_cxx_try_cpp "$LINENO"; then :
18364 # Broken: success on invalid input.
18365 continue
18366 else
18367 # Passes both tests.
18368 ac_preproc_ok=:
18369 break
18371 rm -f conftest.err conftest.$ac_ext
18373 done
18374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18375 rm -f conftest.err conftest.$ac_ext
18376 if $ac_preproc_ok; then :
18377 break
18380 done
18381 ac_cv_prog_CXXCPP=$CXXCPP
18384 CXXCPP=$ac_cv_prog_CXXCPP
18385 else
18386 ac_cv_prog_CXXCPP=$CXXCPP
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18389 $as_echo "$CXXCPP" >&6; }
18390 ac_preproc_ok=false
18391 for ac_cxx_preproc_warn_flag in '' yes
18393 # Use a header file that comes with gcc, so configuring glibc
18394 # with a fresh cross-compiler works.
18395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18396 # <limits.h> exists even on freestanding compilers.
18397 # On the NeXT, cc -E runs the code through the compiler's parser,
18398 # not just through cpp. "Syntax error" is here to catch this case.
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #ifdef __STDC__
18402 # include <limits.h>
18403 #else
18404 # include <assert.h>
18405 #endif
18406 Syntax error
18407 _ACEOF
18408 if ac_fn_cxx_try_cpp "$LINENO"; then :
18410 else
18411 # Broken: fails on valid input.
18412 continue
18414 rm -f conftest.err conftest.$ac_ext
18416 # OK, works on sane cases. Now check whether nonexistent headers
18417 # can be detected and how.
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 #include <ac_nonexistent.h>
18421 _ACEOF
18422 if ac_fn_cxx_try_cpp "$LINENO"; then :
18423 # Broken: success on invalid input.
18424 continue
18425 else
18426 # Passes both tests.
18427 ac_preproc_ok=:
18428 break
18430 rm -f conftest.err conftest.$ac_ext
18432 done
18433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18434 rm -f conftest.err conftest.$ac_ext
18435 if $ac_preproc_ok; then :
18437 else
18438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18440 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18441 See \`config.log' for more details." "$LINENO" 5; }
18444 ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18450 else
18451 _lt_caught_CXX_error=yes
18454 ac_ext=cpp
18455 ac_cpp='$CXXCPP $CPPFLAGS'
18456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18460 archive_cmds_need_lc_CXX=no
18461 allow_undefined_flag_CXX=
18462 always_export_symbols_CXX=no
18463 archive_expsym_cmds_CXX=
18464 compiler_needs_object_CXX=no
18465 export_dynamic_flag_spec_CXX=
18466 hardcode_direct_CXX=no
18467 hardcode_direct_absolute_CXX=no
18468 hardcode_libdir_flag_spec_CXX=
18469 hardcode_libdir_flag_spec_ld_CXX=
18470 hardcode_libdir_separator_CXX=
18471 hardcode_minus_L_CXX=no
18472 hardcode_shlibpath_var_CXX=unsupported
18473 hardcode_automatic_CXX=no
18474 inherit_rpath_CXX=no
18475 module_cmds_CXX=
18476 module_expsym_cmds_CXX=
18477 link_all_deplibs_CXX=unknown
18478 old_archive_cmds_CXX=$old_archive_cmds
18479 reload_flag_CXX=$reload_flag
18480 reload_cmds_CXX=$reload_cmds
18481 no_undefined_flag_CXX=
18482 whole_archive_flag_spec_CXX=
18483 enable_shared_with_static_runtimes_CXX=no
18485 # Source file extension for C++ test sources.
18486 ac_ext=cpp
18488 # Object file extension for compiled C++ test sources.
18489 objext=o
18490 objext_CXX=$objext
18492 # No sense in running all these tests if we already determined that
18493 # the CXX compiler isn't working. Some variables (like enable_shared)
18494 # are currently assumed to apply to all compilers on this platform,
18495 # and will be corrupted by setting them based on a non-working compiler.
18496 if test "$_lt_caught_CXX_error" != yes; then
18497 # Code to be used in simple compile tests
18498 lt_simple_compile_test_code="int some_variable = 0;"
18500 # Code to be used in simple link tests
18501 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18503 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18510 # If no C compiler was specified, use CC.
18511 LTCC=${LTCC-"$CC"}
18513 # If no C compiler flags were specified, use CFLAGS.
18514 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18516 # Allow CC to be a program name with arguments.
18517 compiler=$CC
18520 # save warnings/boilerplate of simple test code
18521 ac_outfile=conftest.$ac_objext
18522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18524 _lt_compiler_boilerplate=`cat conftest.err`
18525 $RM conftest*
18527 ac_outfile=conftest.$ac_objext
18528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18530 _lt_linker_boilerplate=`cat conftest.err`
18531 $RM -r conftest*
18534 # Allow CC to be a program name with arguments.
18535 lt_save_CC=$CC
18536 lt_save_LD=$LD
18537 lt_save_GCC=$GCC
18538 GCC=$GXX
18539 lt_save_with_gnu_ld=$with_gnu_ld
18540 lt_save_path_LD=$lt_cv_path_LD
18541 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18542 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18543 else
18544 $as_unset lt_cv_prog_gnu_ld
18546 if test -n "${lt_cv_path_LDCXX+set}"; then
18547 lt_cv_path_LD=$lt_cv_path_LDCXX
18548 else
18549 $as_unset lt_cv_path_LD
18551 test -z "${LDCXX+set}" || LD=$LDCXX
18552 CC=${CXX-"c++"}
18553 compiler=$CC
18554 compiler_CXX=$CC
18555 for cc_temp in $compiler""; do
18556 case $cc_temp in
18557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18559 \-*) ;;
18560 *) break;;
18561 esac
18562 done
18563 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18566 if test -n "$compiler"; then
18567 # We don't want -fno-exception when compiling C++ code, so set the
18568 # no_builtin_flag separately
18569 if test "$GXX" = yes; then
18570 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18571 else
18572 lt_prog_compiler_no_builtin_flag_CXX=
18575 if test "$GXX" = yes; then
18576 # Set up default GNU C++ configuration
18580 # Check whether --with-gnu-ld was given.
18581 if test "${with_gnu_ld+set}" = set; then :
18582 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18583 else
18584 with_gnu_ld=no
18587 ac_prog=ld
18588 if test "$GCC" = yes; then
18589 # Check if gcc -print-prog-name=ld gives a path.
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18591 $as_echo_n "checking for ld used by $CC... " >&6; }
18592 case $host in
18593 *-*-mingw*)
18594 # gcc leaves a trailing carriage return which upsets mingw
18595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18598 esac
18599 case $ac_prog in
18600 # Accept absolute paths.
18601 [\\/]* | ?:[\\/]*)
18602 re_direlt='/[^/][^/]*/\.\./'
18603 # Canonicalize the pathname of ld
18604 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18605 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18606 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18607 done
18608 test -z "$LD" && LD="$ac_prog"
18611 # If it fails, then pretend we aren't using GCC.
18612 ac_prog=ld
18615 # If it is relative, then search for the first ld in PATH.
18616 with_gnu_ld=unknown
18618 esac
18619 elif test "$with_gnu_ld" = yes; then
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18621 $as_echo_n "checking for GNU ld... " >&6; }
18622 else
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18624 $as_echo_n "checking for non-GNU ld... " >&6; }
18626 if test "${lt_cv_path_LD+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18628 else
18629 if test -z "$LD"; then
18630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18631 for ac_dir in $PATH; do
18632 IFS="$lt_save_ifs"
18633 test -z "$ac_dir" && ac_dir=.
18634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18635 lt_cv_path_LD="$ac_dir/$ac_prog"
18636 # Check to see if the program is GNU ld. I'd rather use --version,
18637 # but apparently some variants of GNU ld only accept -v.
18638 # Break only if it was the GNU/non-GNU ld that we prefer.
18639 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18640 *GNU* | *'with BFD'*)
18641 test "$with_gnu_ld" != no && break
18644 test "$with_gnu_ld" != yes && break
18646 esac
18648 done
18649 IFS="$lt_save_ifs"
18650 else
18651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18655 LD="$lt_cv_path_LD"
18656 if test -n "$LD"; then
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18658 $as_echo "$LD" >&6; }
18659 else
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18663 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18665 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18666 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18667 $as_echo_n "(cached) " >&6
18668 else
18669 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18670 case `$LD -v 2>&1 </dev/null` in
18671 *GNU* | *'with BFD'*)
18672 lt_cv_prog_gnu_ld=yes
18675 lt_cv_prog_gnu_ld=no
18677 esac
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18680 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18681 with_gnu_ld=$lt_cv_prog_gnu_ld
18689 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18690 # archiving commands below assume that GNU ld is being used.
18691 if test "$with_gnu_ld" = yes; then
18692 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18693 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'
18695 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18696 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18698 # If archive_cmds runs LD, not CC, wlarc should be empty
18699 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18700 # investigate it a little bit more. (MM)
18701 wlarc='${wl}'
18703 # ancient GNU ld didn't support --whole-archive et. al.
18704 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18705 $GREP 'no-whole-archive' > /dev/null; then
18706 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18707 else
18708 whole_archive_flag_spec_CXX=
18710 else
18711 with_gnu_ld=no
18712 wlarc=
18714 # A generic and very simple default shared library creation
18715 # command for GNU C++ for the case where it uses the native
18716 # linker, instead of GNU ld. If possible, this setting should
18717 # overridden to take advantage of the native linker features on
18718 # the platform it is being used on.
18719 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18722 # Commands to make compiler produce verbose output that lists
18723 # what "hidden" libraries, object files and flags are used when
18724 # linking a shared library.
18725 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18727 else
18728 GXX=no
18729 with_gnu_ld=no
18730 wlarc=
18733 # PORTME: fill in a description of your system's C++ link characteristics
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18735 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18736 ld_shlibs_CXX=yes
18737 case $host_os in
18738 aix3*)
18739 # FIXME: insert proper C++ library support
18740 ld_shlibs_CXX=no
18742 aix[4-9]*)
18743 if test "$host_cpu" = ia64; then
18744 # On IA64, the linker does run time linking by default, so we don't
18745 # have to do anything special.
18746 aix_use_runtimelinking=no
18747 exp_sym_flag='-Bexport'
18748 no_entry_flag=""
18749 else
18750 aix_use_runtimelinking=no
18752 # Test if we are trying to use run time linking or normal
18753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18754 # need to do runtime linking.
18755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18756 for ld_flag in $LDFLAGS; do
18757 case $ld_flag in
18758 *-brtl*)
18759 aix_use_runtimelinking=yes
18760 break
18762 esac
18763 done
18765 esac
18767 exp_sym_flag='-bexport'
18768 no_entry_flag='-bnoentry'
18771 # When large executables or shared objects are built, AIX ld can
18772 # have problems creating the table of contents. If linking a library
18773 # or program results in "error TOC overflow" add -mminimal-toc to
18774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18777 archive_cmds_CXX=''
18778 hardcode_direct_CXX=yes
18779 hardcode_direct_absolute_CXX=yes
18780 hardcode_libdir_separator_CXX=':'
18781 link_all_deplibs_CXX=yes
18782 file_list_spec_CXX='${wl}-f,'
18784 if test "$GXX" = yes; then
18785 case $host_os in aix4.[012]|aix4.[012].*)
18786 # We only want to do this on AIX 4.2 and lower, the check
18787 # below for broken collect2 doesn't work under 4.3+
18788 collect2name=`${CC} -print-prog-name=collect2`
18789 if test -f "$collect2name" &&
18790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18791 then
18792 # We have reworked collect2
18794 else
18795 # We have old collect2
18796 hardcode_direct_CXX=unsupported
18797 # It fails to find uninstalled libraries when the uninstalled
18798 # path is not listed in the libpath. Setting hardcode_minus_L
18799 # to unsupported forces relinking
18800 hardcode_minus_L_CXX=yes
18801 hardcode_libdir_flag_spec_CXX='-L$libdir'
18802 hardcode_libdir_separator_CXX=
18804 esac
18805 shared_flag='-shared'
18806 if test "$aix_use_runtimelinking" = yes; then
18807 shared_flag="$shared_flag "'${wl}-G'
18809 else
18810 # not using gcc
18811 if test "$host_cpu" = ia64; then
18812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18813 # chokes on -Wl,-G. The following line is correct:
18814 shared_flag='-G'
18815 else
18816 if test "$aix_use_runtimelinking" = yes; then
18817 shared_flag='${wl}-G'
18818 else
18819 shared_flag='${wl}-bM:SRE'
18824 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18825 # It seems that -bexpall does not export symbols beginning with
18826 # underscore (_), so it is better to generate a list of symbols to
18827 # export.
18828 always_export_symbols_CXX=yes
18829 if test "$aix_use_runtimelinking" = yes; then
18830 # Warning - without using the other runtime loading flags (-brtl),
18831 # -berok will link without error, but may produce a broken library.
18832 allow_undefined_flag_CXX='-berok'
18833 # Determine the default libpath from the value encoded in an empty
18834 # executable.
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18839 main ()
18843 return 0;
18845 _ACEOF
18846 if ac_fn_cxx_try_link "$LINENO"; then :
18848 lt_aix_libpath_sed='
18849 /Import File Strings/,/^$/ {
18850 /^0/ {
18851 s/^0 *\(.*\)$/\1/
18855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18856 # Check for a 64-bit object if we didn't find anything.
18857 if test -z "$aix_libpath"; then
18858 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18861 rm -f core conftest.err conftest.$ac_objext \
18862 conftest$ac_exeext conftest.$ac_ext
18863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18865 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18867 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"
18868 else
18869 if test "$host_cpu" = ia64; then
18870 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18871 allow_undefined_flag_CXX="-z nodefs"
18872 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"
18873 else
18874 # Determine the default libpath from the value encoded in an
18875 # empty executable.
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18880 main ()
18884 return 0;
18886 _ACEOF
18887 if ac_fn_cxx_try_link "$LINENO"; then :
18889 lt_aix_libpath_sed='
18890 /Import File Strings/,/^$/ {
18891 /^0/ {
18892 s/^0 *\(.*\)$/\1/
18896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18897 # Check for a 64-bit object if we didn't find anything.
18898 if test -z "$aix_libpath"; then
18899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18902 rm -f core conftest.err conftest.$ac_objext \
18903 conftest$ac_exeext conftest.$ac_ext
18904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18906 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18907 # Warning - without using the other run time loading flags,
18908 # -berok will link without error, but may produce a broken library.
18909 no_undefined_flag_CXX=' ${wl}-bernotok'
18910 allow_undefined_flag_CXX=' ${wl}-berok'
18911 if test "$with_gnu_ld" = yes; then
18912 # We only use this code for GNU lds that support --whole-archive.
18913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18914 else
18915 # Exported symbols can be pulled into shared objects from archives
18916 whole_archive_flag_spec_CXX='$convenience'
18918 archive_cmds_need_lc_CXX=yes
18919 # This is similar to how AIX traditionally builds its shared
18920 # libraries.
18921 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'
18926 beos*)
18927 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18928 allow_undefined_flag_CXX=unsupported
18929 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18930 # support --undefined. This deserves some investigation. FIXME
18931 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18932 else
18933 ld_shlibs_CXX=no
18937 chorus*)
18938 case $cc_basename in
18940 # FIXME: insert proper C++ library support
18941 ld_shlibs_CXX=no
18943 esac
18946 cygwin* | mingw* | pw32* | cegcc*)
18947 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18948 # as there is no search path for DLLs.
18949 hardcode_libdir_flag_spec_CXX='-L$libdir'
18950 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18951 allow_undefined_flag_CXX=unsupported
18952 always_export_symbols_CXX=no
18953 enable_shared_with_static_runtimes_CXX=yes
18955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18956 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'
18957 # If the export-symbols file already is a .def file (1st line
18958 # is EXPORTS), use it as is; otherwise, prepend...
18959 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18960 cp $export_symbols $output_objdir/$soname.def;
18961 else
18962 echo EXPORTS > $output_objdir/$soname.def;
18963 cat $export_symbols >> $output_objdir/$soname.def;
18965 $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'
18966 else
18967 ld_shlibs_CXX=no
18970 darwin* | rhapsody*)
18973 archive_cmds_need_lc_CXX=no
18974 hardcode_direct_CXX=no
18975 hardcode_automatic_CXX=yes
18976 hardcode_shlibpath_var_CXX=unsupported
18977 if test "$lt_cv_ld_force_load" = "yes"; then
18978 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\"`'
18979 else
18980 whole_archive_flag_spec_CXX=''
18982 link_all_deplibs_CXX=yes
18983 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18984 case $cc_basename in
18985 ifort*) _lt_dar_can_shared=yes ;;
18986 *) _lt_dar_can_shared=$GCC ;;
18987 esac
18988 if test "$_lt_dar_can_shared" = "yes"; then
18989 output_verbose_link_cmd=func_echo_all
18990 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}"
18991 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18992 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}"
18993 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}"
18994 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18995 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}"
18996 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}"
18999 else
19000 ld_shlibs_CXX=no
19005 dgux*)
19006 case $cc_basename in
19007 ec++*)
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19011 ghcx*)
19012 # Green Hills C++ Compiler
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19020 esac
19023 freebsd2.*)
19024 # C++ shared libraries reported to be fairly broken before
19025 # switch to ELF
19026 ld_shlibs_CXX=no
19029 freebsd-elf*)
19030 archive_cmds_need_lc_CXX=no
19033 freebsd* | dragonfly*)
19034 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19035 # conventions
19036 ld_shlibs_CXX=yes
19039 gnu*)
19042 haiku*)
19043 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19044 link_all_deplibs_CXX=yes
19047 hpux9*)
19048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19049 hardcode_libdir_separator_CXX=:
19050 export_dynamic_flag_spec_CXX='${wl}-E'
19051 hardcode_direct_CXX=yes
19052 hardcode_minus_L_CXX=yes # Not in the search PATH,
19053 # but as the default
19054 # location of the library.
19056 case $cc_basename in
19057 CC*)
19058 # FIXME: insert proper C++ library support
19059 ld_shlibs_CXX=no
19061 aCC*)
19062 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'
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19070 # dependencies.
19071 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"'
19074 if test "$GXX" = yes; then
19075 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'
19076 else
19077 # FIXME: insert proper C++ library support
19078 ld_shlibs_CXX=no
19081 esac
19084 hpux10*|hpux11*)
19085 if test $with_gnu_ld = no; then
19086 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19087 hardcode_libdir_separator_CXX=:
19089 case $host_cpu in
19090 hppa*64*|ia64*)
19093 export_dynamic_flag_spec_CXX='${wl}-E'
19095 esac
19097 case $host_cpu in
19098 hppa*64*|ia64*)
19099 hardcode_direct_CXX=no
19100 hardcode_shlibpath_var_CXX=no
19103 hardcode_direct_CXX=yes
19104 hardcode_direct_absolute_CXX=yes
19105 hardcode_minus_L_CXX=yes # Not in the search PATH,
19106 # but as the default
19107 # location of the library.
19109 esac
19111 case $cc_basename in
19112 CC*)
19113 # FIXME: insert proper C++ library support
19114 ld_shlibs_CXX=no
19116 aCC*)
19117 case $host_cpu in
19118 hppa*64*)
19119 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19121 ia64*)
19122 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19127 esac
19128 # Commands to make compiler produce verbose output that lists
19129 # what "hidden" libraries, object files and flags are used when
19130 # linking a shared library.
19132 # There doesn't appear to be a way to prevent this compiler from
19133 # explicitly linking system object files so we need to strip them
19134 # from the output so that they don't get included in the library
19135 # dependencies.
19136 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"'
19139 if test "$GXX" = yes; then
19140 if test $with_gnu_ld = no; then
19141 case $host_cpu in
19142 hppa*64*)
19143 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19145 ia64*)
19146 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19149 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'
19151 esac
19153 else
19154 # FIXME: insert proper C++ library support
19155 ld_shlibs_CXX=no
19158 esac
19161 interix[3-9]*)
19162 hardcode_direct_CXX=no
19163 hardcode_shlibpath_var_CXX=no
19164 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19165 export_dynamic_flag_spec_CXX='${wl}-E'
19166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19167 # Instead, shared libraries are loaded at an image base (0x10000000 by
19168 # default) and relocated if they conflict, which is a slow very memory
19169 # consuming and fragmenting process. To avoid this, we pick a random,
19170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19172 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'
19173 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'
19175 irix5* | irix6*)
19176 case $cc_basename in
19177 CC*)
19178 # SGI C++
19179 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'
19181 # Archives containing C++ object files must be created using
19182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19184 # in the archive.
19185 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19188 if test "$GXX" = yes; then
19189 if test "$with_gnu_ld" = no; then
19190 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'
19191 else
19192 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'
19195 link_all_deplibs_CXX=yes
19197 esac
19198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19199 hardcode_libdir_separator_CXX=:
19200 inherit_rpath_CXX=yes
19203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19204 case $cc_basename in
19205 KCC*)
19206 # Kuck and Associates, Inc. (KAI) C++ Compiler
19208 # KCC will only create a shared library if the output file
19209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19210 # to its proper name (with version) after linking.
19211 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'
19212 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'
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19217 # There doesn't appear to be a way to prevent this compiler from
19218 # explicitly linking system object files so we need to strip them
19219 # from the output so that they don't get included in the library
19220 # dependencies.
19221 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"'
19223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19226 # Archives containing C++ object files must be created using
19227 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19228 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19230 icpc* | ecpc* )
19231 # Intel C++
19232 with_gnu_ld=yes
19233 # version 8.0 and above of icpc choke on multiply defined symbols
19234 # if we add $predep_objects and $postdep_objects, however 7.1 and
19235 # earlier do not add the objects themselves.
19236 case `$CC -V 2>&1` in
19237 *"Version 7."*)
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 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'
19241 *) # Version 8.0 or newer
19242 tmp_idyn=
19243 case $host_cpu in
19244 ia64*) tmp_idyn=' -i_dynamic';;
19245 esac
19246 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19247 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'
19249 esac
19250 archive_cmds_need_lc_CXX=no
19251 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19252 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19253 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19255 pgCC* | pgcpp*)
19256 # Portland Group C++ compiler
19257 case `$CC -V` in
19258 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19259 prelink_cmds_CXX='tpldir=Template.dir~
19260 rm -rf $tpldir~
19261 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19262 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19263 old_archive_cmds_CXX='tpldir=Template.dir~
19264 rm -rf $tpldir~
19265 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19266 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19267 $RANLIB $oldlib'
19268 archive_cmds_CXX='tpldir=Template.dir~
19269 rm -rf $tpldir~
19270 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19271 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19272 archive_expsym_cmds_CXX='tpldir=Template.dir~
19273 rm -rf $tpldir~
19274 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19275 $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'
19277 *) # Version 6 and above use weak symbols
19278 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19279 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'
19281 esac
19283 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19285 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'
19287 cxx*)
19288 # Compaq C++
19289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290 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'
19292 runpath_var=LD_RUN_PATH
19293 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19294 hardcode_libdir_separator_CXX=:
19296 # Commands to make compiler produce verbose output that lists
19297 # what "hidden" libraries, object files and flags are used when
19298 # linking a shared library.
19300 # There doesn't appear to be a way to prevent this compiler from
19301 # explicitly linking system object files so we need to strip them
19302 # from the output so that they don't get included in the library
19303 # dependencies.
19304 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'
19306 xl* | mpixl* | bgxl*)
19307 # IBM XL 8.0 on PPC, with GNU ld
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19310 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19311 if test "x$supports_anon_versioning" = xyes; then
19312 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19314 echo "local: *; };" >> $output_objdir/$libname.ver~
19315 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19319 case `$CC -V 2>&1 | sed 5q` in
19320 *Sun\ C*)
19321 # Sun C++ 5.9
19322 no_undefined_flag_CXX=' -zdefs'
19323 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19324 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'
19325 hardcode_libdir_flag_spec_CXX='-R$libdir'
19326 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'
19327 compiler_needs_object_CXX=yes
19329 # Not sure whether something based on
19330 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19331 # would be better.
19332 output_verbose_link_cmd='func_echo_all'
19334 # Archives containing C++ object files must be created using
19335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19336 # necessary to make sure instantiated templates are included
19337 # in the archive.
19338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19340 esac
19342 esac
19345 lynxos*)
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19350 m88k*)
19351 # FIXME: insert proper C++ library support
19352 ld_shlibs_CXX=no
19355 mvs*)
19356 case $cc_basename in
19357 cxx*)
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19365 esac
19368 netbsd*)
19369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19370 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19371 wlarc=
19372 hardcode_libdir_flag_spec_CXX='-R$libdir'
19373 hardcode_direct_CXX=yes
19374 hardcode_shlibpath_var_CXX=no
19376 # Workaround some broken pre-1.5 toolchains
19377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19380 *nto* | *qnx*)
19381 ld_shlibs_CXX=yes
19384 openbsd2*)
19385 # C++ shared libraries are fairly broken
19386 ld_shlibs_CXX=no
19389 openbsd*)
19390 if test -f /usr/libexec/ld.so; then
19391 hardcode_direct_CXX=yes
19392 hardcode_shlibpath_var_CXX=no
19393 hardcode_direct_absolute_CXX=yes
19394 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19395 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19397 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19398 export_dynamic_flag_spec_CXX='${wl}-E'
19399 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19401 output_verbose_link_cmd=func_echo_all
19402 else
19403 ld_shlibs_CXX=no
19407 osf3* | osf4* | osf5*)
19408 case $cc_basename in
19409 KCC*)
19410 # Kuck and Associates, Inc. (KAI) C++ Compiler
19412 # KCC will only create a shared library if the output file
19413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19414 # to its proper name (with version) after linking.
19415 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'
19417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19418 hardcode_libdir_separator_CXX=:
19420 # Archives containing C++ object files must be created using
19421 # the KAI C++ compiler.
19422 case $host in
19423 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19424 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19425 esac
19427 RCC*)
19428 # Rational C++ 2.4.1
19429 # FIXME: insert proper C++ library support
19430 ld_shlibs_CXX=no
19432 cxx*)
19433 case $host in
19434 osf3*)
19435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19436 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'
19437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19440 allow_undefined_flag_CXX=' -expect_unresolved \*'
19441 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'
19442 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19443 echo "-hidden">> $lib.exp~
19444 $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~
19445 $RM $lib.exp'
19446 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19448 esac
19450 hardcode_libdir_separator_CXX=:
19452 # Commands to make compiler produce verbose output that lists
19453 # what "hidden" libraries, object files and flags are used when
19454 # linking a shared library.
19456 # There doesn't appear to be a way to prevent this compiler from
19457 # explicitly linking system object files so we need to strip them
19458 # from the output so that they don't get included in the library
19459 # dependencies.
19460 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"'
19463 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19465 case $host in
19466 osf3*)
19467 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'
19470 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'
19472 esac
19474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19475 hardcode_libdir_separator_CXX=:
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19482 else
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19487 esac
19490 psos*)
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19495 sunos4*)
19496 case $cc_basename in
19497 CC*)
19498 # Sun C++ 4.x
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19502 lcc*)
19503 # Lucid
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19511 esac
19514 solaris*)
19515 case $cc_basename in
19516 CC*)
19517 # Sun C++ 4.2, 5.x and Centerline C++
19518 archive_cmds_need_lc_CXX=yes
19519 no_undefined_flag_CXX=' -zdefs'
19520 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19521 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19522 $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'
19524 hardcode_libdir_flag_spec_CXX='-R$libdir'
19525 hardcode_shlibpath_var_CXX=no
19526 case $host_os in
19527 solaris2.[0-5] | solaris2.[0-5].*) ;;
19529 # The compiler driver will combine and reorder linker options,
19530 # but understands `-z linker_flag'.
19531 # Supported since Solaris 2.6 (maybe 2.5.1?)
19532 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19534 esac
19535 link_all_deplibs_CXX=yes
19537 output_verbose_link_cmd='func_echo_all'
19539 # Archives containing C++ object files must be created using
19540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19541 # necessary to make sure instantiated templates are included
19542 # in the archive.
19543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19545 gcx*)
19546 # Green Hills C++ Compiler
19547 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19549 # The C++ compiler must be used to create the archive.
19550 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19553 # GNU C++ compiler with Solaris linker
19554 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19555 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19556 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19557 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19558 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19559 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19561 # Commands to make compiler produce verbose output that lists
19562 # what "hidden" libraries, object files and flags are used when
19563 # linking a shared library.
19564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19565 else
19566 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19567 # platform.
19568 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19569 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19570 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19572 # Commands to make compiler produce verbose output that lists
19573 # what "hidden" libraries, object files and flags are used when
19574 # linking a shared library.
19575 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19578 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19579 case $host_os in
19580 solaris2.[0-5] | solaris2.[0-5].*) ;;
19582 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19584 esac
19587 esac
19590 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19591 no_undefined_flag_CXX='${wl}-z,text'
19592 archive_cmds_need_lc_CXX=no
19593 hardcode_shlibpath_var_CXX=no
19594 runpath_var='LD_RUN_PATH'
19596 case $cc_basename in
19597 CC*)
19598 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19599 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19602 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19603 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19605 esac
19608 sysv5* | sco3.2v5* | sco5v6*)
19609 # Note: We can NOT use -z defs as we might desire, because we do not
19610 # link with -lc, and that would cause any symbols used from libc to
19611 # always be unresolved, which means just about no library would
19612 # ever link correctly. If we're not using GNU ld we use -z text
19613 # though, which does catch some bad symbols but isn't as heavy-handed
19614 # as -z defs.
19615 no_undefined_flag_CXX='${wl}-z,text'
19616 allow_undefined_flag_CXX='${wl}-z,nodefs'
19617 archive_cmds_need_lc_CXX=no
19618 hardcode_shlibpath_var_CXX=no
19619 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19620 hardcode_libdir_separator_CXX=':'
19621 link_all_deplibs_CXX=yes
19622 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19623 runpath_var='LD_RUN_PATH'
19625 case $cc_basename in
19626 CC*)
19627 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19628 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19629 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19630 '"$old_archive_cmds_CXX"
19631 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19632 '"$reload_cmds_CXX"
19635 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 esac
19641 tandem*)
19642 case $cc_basename in
19643 NCC*)
19644 # NonStop-UX NCC 3.20
19645 # FIXME: insert proper C++ library support
19646 ld_shlibs_CXX=no
19649 # FIXME: insert proper C++ library support
19650 ld_shlibs_CXX=no
19652 esac
19655 vxworks*)
19656 # FIXME: insert proper C++ library support
19657 ld_shlibs_CXX=no
19661 # FIXME: insert proper C++ library support
19662 ld_shlibs_CXX=no
19664 esac
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19667 $as_echo "$ld_shlibs_CXX" >&6; }
19668 test "$ld_shlibs_CXX" = no && can_build_shared=no
19670 GCC_CXX="$GXX"
19671 LD_CXX="$LD"
19673 ## CAVEAT EMPTOR:
19674 ## There is no encapsulation within the following macros, do not change
19675 ## the running order or otherwise move them around unless you know exactly
19676 ## what you are doing...
19677 # Dependencies to place before and after the object being linked:
19678 predep_objects_CXX=
19679 postdep_objects_CXX=
19680 predeps_CXX=
19681 postdeps_CXX=
19682 compiler_lib_search_path_CXX=
19684 cat > conftest.$ac_ext <<_LT_EOF
19685 class Foo
19687 public:
19688 Foo (void) { a = 0; }
19689 private:
19690 int a;
19692 _LT_EOF
19694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19695 (eval $ac_compile) 2>&5
19696 ac_status=$?
19697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698 test $ac_status = 0; }; then
19699 # Parse the compiler output and extract the necessary
19700 # objects, libraries and library flags.
19702 # Sentinel used to keep track of whether or not we are before
19703 # the conftest object file.
19704 pre_test_object_deps_done=no
19706 for p in `eval "$output_verbose_link_cmd"`; do
19707 case $p in
19709 -L* | -R* | -l*)
19710 # Some compilers place space between "-{L,R}" and the path.
19711 # Remove the space.
19712 if test $p = "-L" ||
19713 test $p = "-R"; then
19714 prev=$p
19715 continue
19716 else
19717 prev=
19720 if test "$pre_test_object_deps_done" = no; then
19721 case $p in
19722 -L* | -R*)
19723 # Internal compiler library paths should come after those
19724 # provided the user. The postdeps already come after the
19725 # user supplied libs so there is no need to process them.
19726 if test -z "$compiler_lib_search_path_CXX"; then
19727 compiler_lib_search_path_CXX="${prev}${p}"
19728 else
19729 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19732 # The "-l" case would never come before the object being
19733 # linked, so don't bother handling this case.
19734 esac
19735 else
19736 if test -z "$postdeps_CXX"; then
19737 postdeps_CXX="${prev}${p}"
19738 else
19739 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19744 *.$objext)
19745 # This assumes that the test object file only shows up
19746 # once in the compiler output.
19747 if test "$p" = "conftest.$objext"; then
19748 pre_test_object_deps_done=yes
19749 continue
19752 if test "$pre_test_object_deps_done" = no; then
19753 if test -z "$predep_objects_CXX"; then
19754 predep_objects_CXX="$p"
19755 else
19756 predep_objects_CXX="$predep_objects_CXX $p"
19758 else
19759 if test -z "$postdep_objects_CXX"; then
19760 postdep_objects_CXX="$p"
19761 else
19762 postdep_objects_CXX="$postdep_objects_CXX $p"
19767 *) ;; # Ignore the rest.
19769 esac
19770 done
19772 # Clean up.
19773 rm -f a.out a.exe
19774 else
19775 echo "libtool.m4: error: problem compiling CXX test program"
19778 $RM -f confest.$objext
19780 # PORTME: override above test on systems where it is broken
19781 case $host_os in
19782 interix[3-9]*)
19783 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19784 # hack all around it, let's just trust "g++" to DTRT.
19785 predep_objects_CXX=
19786 postdep_objects_CXX=
19787 postdeps_CXX=
19790 linux*)
19791 case `$CC -V 2>&1 | sed 5q` in
19792 *Sun\ C*)
19793 # Sun C++ 5.9
19795 # The more standards-conforming stlport4 library is
19796 # incompatible with the Cstd library. Avoid specifying
19797 # it if it's in CXXFLAGS. Ignore libCrun as
19798 # -library=stlport4 depends on it.
19799 case " $CXX $CXXFLAGS " in
19800 *" -library=stlport4 "*)
19801 solaris_use_stlport4=yes
19803 esac
19805 if test "$solaris_use_stlport4" != yes; then
19806 postdeps_CXX='-library=Cstd -library=Crun'
19809 esac
19812 solaris*)
19813 case $cc_basename in
19814 CC*)
19815 # The more standards-conforming stlport4 library is
19816 # incompatible with the Cstd library. Avoid specifying
19817 # it if it's in CXXFLAGS. Ignore libCrun as
19818 # -library=stlport4 depends on it.
19819 case " $CXX $CXXFLAGS " in
19820 *" -library=stlport4 "*)
19821 solaris_use_stlport4=yes
19823 esac
19825 # Adding this requires a known-good setup of shared libraries for
19826 # Sun compiler versions before 5.6, else PIC objects from an old
19827 # archive will be linked into the output, leading to subtle bugs.
19828 if test "$solaris_use_stlport4" != yes; then
19829 postdeps_CXX='-library=Cstd -library=Crun'
19832 esac
19834 esac
19837 case " $postdeps_CXX " in
19838 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19839 esac
19840 compiler_lib_search_dirs_CXX=
19841 if test -n "${compiler_lib_search_path_CXX}"; then
19842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19875 lt_prog_compiler_wl_CXX=
19876 lt_prog_compiler_pic_CXX=
19877 lt_prog_compiler_static_CXX=
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19882 # C++ specific cases for pic, static, wl, etc.
19883 if test "$GXX" = yes; then
19884 lt_prog_compiler_wl_CXX='-Wl,'
19885 lt_prog_compiler_static_CXX='-static'
19887 case $host_os in
19888 aix*)
19889 # All AIX code is PIC.
19890 if test "$host_cpu" = ia64; then
19891 # AIX 5 now supports IA64 processor
19892 lt_prog_compiler_static_CXX='-Bstatic'
19894 lt_prog_compiler_pic_CXX='-fPIC'
19897 amigaos*)
19898 case $host_cpu in
19899 powerpc)
19900 # see comment about AmigaOS4 .so support
19901 lt_prog_compiler_pic_CXX='-fPIC'
19903 m68k)
19904 # FIXME: we need at least 68020 code to build shared libraries, but
19905 # adding the `-m68020' flag to GCC prevents building anything better,
19906 # like `-m68040'.
19907 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19909 esac
19912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19913 # PIC is the default for these OSes.
19915 mingw* | cygwin* | os2* | pw32* | cegcc*)
19916 # This hack is so that the source file can tell whether it is being
19917 # built for inclusion in a dll (and should export symbols for example).
19918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19919 # (--disable-auto-import) libraries
19920 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19922 darwin* | rhapsody*)
19923 # PIC is the default on this platform
19924 # Common symbols not allowed in MH_DYLIB files
19925 lt_prog_compiler_pic_CXX='-fno-common'
19927 *djgpp*)
19928 # DJGPP does not support shared libraries at all
19929 lt_prog_compiler_pic_CXX=
19931 haiku*)
19932 # PIC is the default for Haiku.
19933 # The "-static" flag exists, but is broken.
19934 lt_prog_compiler_static_CXX=
19936 interix[3-9]*)
19937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19938 # Instead, we relocate shared libraries at runtime.
19940 sysv4*MP*)
19941 if test -d /usr/nec; then
19942 lt_prog_compiler_pic_CXX=-Kconform_pic
19945 hpux*)
19946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19948 # sets the default TLS model and affects inlining.
19949 case $host_cpu in
19950 hppa*64*)
19953 lt_prog_compiler_pic_CXX='-fPIC'
19955 esac
19957 *qnx* | *nto*)
19958 # QNX uses GNU C++, but need to define -shared option too, otherwise
19959 # it will coredump.
19960 lt_prog_compiler_pic_CXX='-fPIC -shared'
19963 lt_prog_compiler_pic_CXX='-fPIC'
19965 esac
19966 else
19967 case $host_os in
19968 aix[4-9]*)
19969 # All AIX code is PIC.
19970 if test "$host_cpu" = ia64; then
19971 # AIX 5 now supports IA64 processor
19972 lt_prog_compiler_static_CXX='-Bstatic'
19973 else
19974 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19977 chorus*)
19978 case $cc_basename in
19979 cxch68*)
19980 # Green Hills C++ Compiler
19981 # _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"
19983 esac
19985 dgux*)
19986 case $cc_basename in
19987 ec++*)
19988 lt_prog_compiler_pic_CXX='-KPIC'
19990 ghcx*)
19991 # Green Hills C++ Compiler
19992 lt_prog_compiler_pic_CXX='-pic'
19996 esac
19998 freebsd* | dragonfly*)
19999 # FreeBSD uses GNU C++
20001 hpux9* | hpux10* | hpux11*)
20002 case $cc_basename in
20003 CC*)
20004 lt_prog_compiler_wl_CXX='-Wl,'
20005 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20006 if test "$host_cpu" != ia64; then
20007 lt_prog_compiler_pic_CXX='+Z'
20010 aCC*)
20011 lt_prog_compiler_wl_CXX='-Wl,'
20012 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20013 case $host_cpu in
20014 hppa*64*|ia64*)
20015 # +Z the default
20018 lt_prog_compiler_pic_CXX='+Z'
20020 esac
20024 esac
20026 interix*)
20027 # This is c89, which is MS Visual C++ (no shared libs)
20028 # Anyone wants to do a port?
20030 irix5* | irix6* | nonstopux*)
20031 case $cc_basename in
20032 CC*)
20033 lt_prog_compiler_wl_CXX='-Wl,'
20034 lt_prog_compiler_static_CXX='-non_shared'
20035 # CC pic flag -KPIC is the default.
20039 esac
20041 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20042 case $cc_basename in
20043 KCC*)
20044 # KAI C++ Compiler
20045 lt_prog_compiler_wl_CXX='--backend -Wl,'
20046 lt_prog_compiler_pic_CXX='-fPIC'
20048 ecpc* )
20049 # old Intel C++ for x86_64 which still supported -KPIC.
20050 lt_prog_compiler_wl_CXX='-Wl,'
20051 lt_prog_compiler_pic_CXX='-KPIC'
20052 lt_prog_compiler_static_CXX='-static'
20054 icpc* )
20055 # Intel C++, used to be incompatible with GCC.
20056 # ICC 10 doesn't accept -KPIC any more.
20057 lt_prog_compiler_wl_CXX='-Wl,'
20058 lt_prog_compiler_pic_CXX='-fPIC'
20059 lt_prog_compiler_static_CXX='-static'
20061 pgCC* | pgcpp*)
20062 # Portland Group C++ compiler
20063 lt_prog_compiler_wl_CXX='-Wl,'
20064 lt_prog_compiler_pic_CXX='-fpic'
20065 lt_prog_compiler_static_CXX='-Bstatic'
20067 cxx*)
20068 # Compaq C++
20069 # Make sure the PIC flag is empty. It appears that all Alpha
20070 # Linux and Compaq Tru64 Unix objects are PIC.
20071 lt_prog_compiler_pic_CXX=
20072 lt_prog_compiler_static_CXX='-non_shared'
20074 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20075 # IBM XL 8.0, 9.0 on PPC and BlueGene
20076 lt_prog_compiler_wl_CXX='-Wl,'
20077 lt_prog_compiler_pic_CXX='-qpic'
20078 lt_prog_compiler_static_CXX='-qstaticlink'
20081 case `$CC -V 2>&1 | sed 5q` in
20082 *Sun\ C*)
20083 # Sun C++ 5.9
20084 lt_prog_compiler_pic_CXX='-KPIC'
20085 lt_prog_compiler_static_CXX='-Bstatic'
20086 lt_prog_compiler_wl_CXX='-Qoption ld '
20088 esac
20090 esac
20092 lynxos*)
20094 m88k*)
20096 mvs*)
20097 case $cc_basename in
20098 cxx*)
20099 lt_prog_compiler_pic_CXX='-W c,exportall'
20103 esac
20105 netbsd*)
20107 *qnx* | *nto*)
20108 # QNX uses GNU C++, but need to define -shared option too, otherwise
20109 # it will coredump.
20110 lt_prog_compiler_pic_CXX='-fPIC -shared'
20112 osf3* | osf4* | osf5*)
20113 case $cc_basename in
20114 KCC*)
20115 lt_prog_compiler_wl_CXX='--backend -Wl,'
20117 RCC*)
20118 # Rational C++ 2.4.1
20119 lt_prog_compiler_pic_CXX='-pic'
20121 cxx*)
20122 # Digital/Compaq C++
20123 lt_prog_compiler_wl_CXX='-Wl,'
20124 # Make sure the PIC flag is empty. It appears that all Alpha
20125 # Linux and Compaq Tru64 Unix objects are PIC.
20126 lt_prog_compiler_pic_CXX=
20127 lt_prog_compiler_static_CXX='-non_shared'
20131 esac
20133 psos*)
20135 solaris*)
20136 case $cc_basename in
20137 CC*)
20138 # Sun C++ 4.2, 5.x and Centerline C++
20139 lt_prog_compiler_pic_CXX='-KPIC'
20140 lt_prog_compiler_static_CXX='-Bstatic'
20141 lt_prog_compiler_wl_CXX='-Qoption ld '
20143 gcx*)
20144 # Green Hills C++ Compiler
20145 lt_prog_compiler_pic_CXX='-PIC'
20149 esac
20151 sunos4*)
20152 case $cc_basename in
20153 CC*)
20154 # Sun C++ 4.x
20155 lt_prog_compiler_pic_CXX='-pic'
20156 lt_prog_compiler_static_CXX='-Bstatic'
20158 lcc*)
20159 # Lucid
20160 lt_prog_compiler_pic_CXX='-pic'
20164 esac
20166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_pic_CXX='-KPIC'
20171 lt_prog_compiler_static_CXX='-Bstatic'
20173 esac
20175 tandem*)
20176 case $cc_basename in
20177 NCC*)
20178 # NonStop-UX NCC 3.20
20179 lt_prog_compiler_pic_CXX='-KPIC'
20183 esac
20185 vxworks*)
20188 lt_prog_compiler_can_build_shared_CXX=no
20190 esac
20193 case $host_os in
20194 # For platforms which do not support PIC, -DPIC is meaningless:
20195 *djgpp*)
20196 lt_prog_compiler_pic_CXX=
20199 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20201 esac
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20203 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20208 # Check to make sure the PIC flag actually works.
20210 if test -n "$lt_prog_compiler_pic_CXX"; then
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20213 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20214 $as_echo_n "(cached) " >&6
20215 else
20216 lt_cv_prog_compiler_pic_works_CXX=no
20217 ac_outfile=conftest.$ac_objext
20218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20219 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20220 # Insert the option either (1) after the last *FLAGS variable, or
20221 # (2) before a word containing "conftest.", or (3) at the end.
20222 # Note that $ac_compile itself does not contain backslashes and begins
20223 # with a dollar sign (not a hyphen), so the echo should work correctly.
20224 # The option is referenced via a variable to avoid confusing sed.
20225 lt_compile=`echo "$ac_compile" | $SED \
20226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20228 -e 's:$: $lt_compiler_flag:'`
20229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20230 (eval "$lt_compile" 2>conftest.err)
20231 ac_status=$?
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 if (exit $ac_status) && test -s "$ac_outfile"; then
20235 # The compiler can only warn and ignore the option if not recognized
20236 # So say no if there are warnings other than the usual output.
20237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20240 lt_cv_prog_compiler_pic_works_CXX=yes
20243 $RM conftest*
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20247 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20249 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20250 case $lt_prog_compiler_pic_CXX in
20251 "" | " "*) ;;
20252 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20253 esac
20254 else
20255 lt_prog_compiler_pic_CXX=
20256 lt_prog_compiler_can_build_shared_CXX=no
20264 # Check to make sure the static flag actually works.
20266 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20268 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20269 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 lt_cv_prog_compiler_static_works_CXX=no
20273 save_LDFLAGS="$LDFLAGS"
20274 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20277 # The linker can only warn and ignore the option if not recognized
20278 # So say no if there are warnings
20279 if test -s conftest.err; then
20280 # Append any errors to the config.log.
20281 cat conftest.err 1>&5
20282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20284 if diff conftest.exp conftest.er2 >/dev/null; then
20285 lt_cv_prog_compiler_static_works_CXX=yes
20287 else
20288 lt_cv_prog_compiler_static_works_CXX=yes
20291 $RM -r conftest*
20292 LDFLAGS="$save_LDFLAGS"
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20296 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20298 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20300 else
20301 lt_prog_compiler_static_CXX=
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20309 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20310 $as_echo_n "(cached) " >&6
20311 else
20312 lt_cv_prog_compiler_c_o_CXX=no
20313 $RM -r conftest 2>/dev/null
20314 mkdir conftest
20315 cd conftest
20316 mkdir out
20317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20319 lt_compiler_flag="-o out/conftest2.$ac_objext"
20320 # Insert the option either (1) after the last *FLAGS variable, or
20321 # (2) before a word containing "conftest.", or (3) at the end.
20322 # Note that $ac_compile itself does not contain backslashes and begins
20323 # with a dollar sign (not a hyphen), so the echo should work correctly.
20324 lt_compile=`echo "$ac_compile" | $SED \
20325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20327 -e 's:$: $lt_compiler_flag:'`
20328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20329 (eval "$lt_compile" 2>out/conftest.err)
20330 ac_status=$?
20331 cat out/conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20334 then
20335 # The compiler can only warn and ignore the option if not recognized
20336 # So say no if there are warnings
20337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20340 lt_cv_prog_compiler_c_o_CXX=yes
20343 chmod u+w . 2>&5
20344 $RM conftest*
20345 # SGI C++ compiler will create directory out/ii_files/ for
20346 # template instantiation
20347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20348 $RM out/* && rmdir out
20349 cd ..
20350 $RM -r conftest
20351 $RM conftest*
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20355 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20361 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20362 $as_echo_n "(cached) " >&6
20363 else
20364 lt_cv_prog_compiler_c_o_CXX=no
20365 $RM -r conftest 2>/dev/null
20366 mkdir conftest
20367 cd conftest
20368 mkdir out
20369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20371 lt_compiler_flag="-o out/conftest2.$ac_objext"
20372 # Insert the option either (1) after the last *FLAGS variable, or
20373 # (2) before a word containing "conftest.", or (3) at the end.
20374 # Note that $ac_compile itself does not contain backslashes and begins
20375 # with a dollar sign (not a hyphen), so the echo should work correctly.
20376 lt_compile=`echo "$ac_compile" | $SED \
20377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20379 -e 's:$: $lt_compiler_flag:'`
20380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20381 (eval "$lt_compile" 2>out/conftest.err)
20382 ac_status=$?
20383 cat out/conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20386 then
20387 # The compiler can only warn and ignore the option if not recognized
20388 # So say no if there are warnings
20389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20392 lt_cv_prog_compiler_c_o_CXX=yes
20395 chmod u+w . 2>&5
20396 $RM conftest*
20397 # SGI C++ compiler will create directory out/ii_files/ for
20398 # template instantiation
20399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20400 $RM out/* && rmdir out
20401 cd ..
20402 $RM -r conftest
20403 $RM conftest*
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20407 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20412 hard_links="nottested"
20413 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20414 # do not overwrite the value of need_locks provided by the user
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20416 $as_echo_n "checking if we can lock with hard links... " >&6; }
20417 hard_links=yes
20418 $RM conftest*
20419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20420 touch conftest.a
20421 ln conftest.a conftest.b 2>&5 || hard_links=no
20422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20424 $as_echo "$hard_links" >&6; }
20425 if test "$hard_links" = no; then
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20427 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20428 need_locks=warn
20430 else
20431 need_locks=no
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20440 case $host_os in
20441 aix[4-9]*)
20442 # If we're using GNU nm, then we don't want the "-C" option.
20443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20444 # Also, AIX nm treats weak defined symbols like other global defined
20445 # symbols, whereas GNU nm marks them as "W".
20446 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20447 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'
20448 else
20449 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'
20452 pw32*)
20453 export_symbols_cmds_CXX="$ltdll_cmds"
20455 cygwin* | mingw* | cegcc*)
20456 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'
20459 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20461 esac
20462 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20465 $as_echo "$ld_shlibs_CXX" >&6; }
20466 test "$ld_shlibs_CXX" = no && can_build_shared=no
20468 with_gnu_ld_CXX=$with_gnu_ld
20476 # Do we need to explicitly link libc?
20478 case "x$archive_cmds_need_lc_CXX" in
20479 x|xyes)
20480 # Assume -lc should be added
20481 archive_cmds_need_lc_CXX=yes
20483 if test "$enable_shared" = yes && test "$GCC" = yes; then
20484 case $archive_cmds_CXX in
20485 *'~'*)
20486 # FIXME: we may have to deal with multi-command sequences.
20488 '$CC '*)
20489 # Test whether the compiler implicitly links with -lc since on some
20490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20491 # to ld, don't add -lc before -lgcc.
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20494 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20496 else
20497 $RM conftest*
20498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20501 (eval $ac_compile) 2>&5
20502 ac_status=$?
20503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20504 test $ac_status = 0; } 2>conftest.err; then
20505 soname=conftest
20506 lib=conftest
20507 libobjs=conftest.$ac_objext
20508 deplibs=
20509 wl=$lt_prog_compiler_wl_CXX
20510 pic_flag=$lt_prog_compiler_pic_CXX
20511 compiler_flags=-v
20512 linker_flags=-v
20513 verstring=
20514 output_objdir=.
20515 libname=conftest
20516 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20517 allow_undefined_flag_CXX=
20518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20519 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20520 ac_status=$?
20521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20522 test $ac_status = 0; }
20523 then
20524 lt_cv_archive_cmds_need_lc_CXX=no
20525 else
20526 lt_cv_archive_cmds_need_lc_CXX=yes
20528 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20529 else
20530 cat conftest.err 1>&5
20532 $RM conftest*
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20536 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20537 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20539 esac
20542 esac
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20610 library_names_spec=
20611 libname_spec='lib$name'
20612 soname_spec=
20613 shrext_cmds=".so"
20614 postinstall_cmds=
20615 postuninstall_cmds=
20616 finish_cmds=
20617 finish_eval=
20618 shlibpath_var=
20619 shlibpath_overrides_runpath=unknown
20620 version_type=none
20621 dynamic_linker="$host_os ld.so"
20622 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20623 need_lib_prefix=unknown
20624 hardcode_into_libs=no
20626 # when you set need_version to no, make sure it does not cause -set_version
20627 # flags to be left without arguments
20628 need_version=unknown
20630 case $host_os in
20631 aix3*)
20632 version_type=linux
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20634 shlibpath_var=LIBPATH
20636 # AIX 3 has no versioning support, so we append a major version to the name.
20637 soname_spec='${libname}${release}${shared_ext}$major'
20640 aix[4-9]*)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 hardcode_into_libs=yes
20645 if test "$host_cpu" = ia64; then
20646 # AIX 5 supports IA64
20647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 else
20650 # With GCC up to 2.95.x, collect2 would create an import file
20651 # for dependence libraries. The import file would start with
20652 # the line `#! .'. This would cause the generated library to
20653 # depend on `.', always an invalid library. This was fixed in
20654 # development snapshots of GCC prior to 3.0.
20655 case $host_os in
20656 aix4 | aix4.[01] | aix4.[01].*)
20657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20658 echo ' yes '
20659 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20661 else
20662 can_build_shared=no
20665 esac
20666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20667 # soname into executable. Probably we can add versioning support to
20668 # collect2, so additional links can be useful in future.
20669 if test "$aix_use_runtimelinking" = yes; then
20670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20671 # instead of lib<name>.a to let people know that these are not
20672 # typical AIX shared libraries.
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20674 else
20675 # We preserve .a as extension for shared libraries through AIX4.2
20676 # and later when we are not doing run time linking.
20677 library_names_spec='${libname}${release}.a $libname.a'
20678 soname_spec='${libname}${release}${shared_ext}$major'
20680 shlibpath_var=LIBPATH
20684 amigaos*)
20685 case $host_cpu in
20686 powerpc)
20687 # Since July 2007 AmigaOS4 officially supports .so libraries.
20688 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20691 m68k)
20692 library_names_spec='$libname.ixlibrary $libname.a'
20693 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20694 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'
20696 esac
20699 beos*)
20700 library_names_spec='${libname}${shared_ext}'
20701 dynamic_linker="$host_os ld.so"
20702 shlibpath_var=LIBRARY_PATH
20705 bsdi[45]*)
20706 version_type=linux
20707 need_version=no
20708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20709 soname_spec='${libname}${release}${shared_ext}$major'
20710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20711 shlibpath_var=LD_LIBRARY_PATH
20712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20714 # the default ld.so.conf also contains /usr/contrib/lib and
20715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20716 # libtool to hard-code these into programs
20719 cygwin* | mingw* | pw32* | cegcc*)
20720 version_type=windows
20721 shrext_cmds=".dll"
20722 need_version=no
20723 need_lib_prefix=no
20725 case $GCC,$host_os in
20726 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20727 library_names_spec='$libname.dll.a'
20728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20729 postinstall_cmds='base_file=`basename \${file}`~
20730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20731 dldir=$destdir/`dirname \$dlpath`~
20732 test -d \$dldir || mkdir -p \$dldir~
20733 $install_prog $dir/$dlname \$dldir/$dlname~
20734 chmod a+x \$dldir/$dlname~
20735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20739 dlpath=$dir/\$dldll~
20740 $RM \$dlpath'
20741 shlibpath_overrides_runpath=yes
20743 case $host_os in
20744 cygwin*)
20745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20749 mingw* | cegcc*)
20750 # MinGW DLLs use traditional 'lib' prefix
20751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20753 pw32*)
20754 # pw32 DLLs use 'pw' prefix rather than 'lib'
20755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20757 esac
20761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20763 esac
20764 dynamic_linker='Win32 ld.exe'
20765 # FIXME: first we should search . and the directory the executable is in
20766 shlibpath_var=PATH
20769 darwin* | rhapsody*)
20770 dynamic_linker="$host_os dyld"
20771 version_type=darwin
20772 need_lib_prefix=no
20773 need_version=no
20774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20775 soname_spec='${libname}${release}${major}$shared_ext'
20776 shlibpath_overrides_runpath=yes
20777 shlibpath_var=DYLD_LIBRARY_PATH
20778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20783 dgux*)
20784 version_type=linux
20785 need_lib_prefix=no
20786 need_version=no
20787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20788 soname_spec='${libname}${release}${shared_ext}$major'
20789 shlibpath_var=LD_LIBRARY_PATH
20792 freebsd* | dragonfly*)
20793 # DragonFly does not have aout. When/if they implement a new
20794 # versioning mechanism, adjust this.
20795 if test -x /usr/bin/objformat; then
20796 objformat=`/usr/bin/objformat`
20797 else
20798 case $host_os in
20799 freebsd[23].*) objformat=aout ;;
20800 *) objformat=elf ;;
20801 esac
20803 version_type=freebsd-$objformat
20804 case $version_type in
20805 freebsd-elf*)
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20807 need_version=no
20808 need_lib_prefix=no
20810 freebsd-*)
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20812 need_version=yes
20814 esac
20815 shlibpath_var=LD_LIBRARY_PATH
20816 case $host_os in
20817 freebsd2.*)
20818 shlibpath_overrides_runpath=yes
20820 freebsd3.[01]* | freebsdelf3.[01]*)
20821 shlibpath_overrides_runpath=yes
20822 hardcode_into_libs=yes
20824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20826 shlibpath_overrides_runpath=no
20827 hardcode_into_libs=yes
20829 *) # from 4.6 on, and DragonFly
20830 shlibpath_overrides_runpath=yes
20831 hardcode_into_libs=yes
20833 esac
20836 gnu*)
20837 version_type=linux
20838 need_lib_prefix=no
20839 need_version=no
20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20841 soname_spec='${libname}${release}${shared_ext}$major'
20842 shlibpath_var=LD_LIBRARY_PATH
20843 hardcode_into_libs=yes
20846 haiku*)
20847 version_type=linux
20848 need_lib_prefix=no
20849 need_version=no
20850 dynamic_linker="$host_os runtime_loader"
20851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20852 soname_spec='${libname}${release}${shared_ext}$major'
20853 shlibpath_var=LIBRARY_PATH
20854 shlibpath_overrides_runpath=yes
20855 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20856 hardcode_into_libs=yes
20859 hpux9* | hpux10* | hpux11*)
20860 # Give a soname corresponding to the major version so that dld.sl refuses to
20861 # link against other versions.
20862 version_type=sunos
20863 need_lib_prefix=no
20864 need_version=no
20865 case $host_cpu in
20866 ia64*)
20867 shrext_cmds='.so'
20868 hardcode_into_libs=yes
20869 dynamic_linker="$host_os dld.so"
20870 shlibpath_var=LD_LIBRARY_PATH
20871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20873 soname_spec='${libname}${release}${shared_ext}$major'
20874 if test "X$HPUX_IA64_MODE" = X32; then
20875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20876 else
20877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20881 hppa*64*)
20882 shrext_cmds='.sl'
20883 hardcode_into_libs=yes
20884 dynamic_linker="$host_os dld.sl"
20885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20893 shrext_cmds='.sl'
20894 dynamic_linker="$host_os dld.sl"
20895 shlibpath_var=SHLIB_PATH
20896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20900 esac
20901 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20902 postinstall_cmds='chmod 555 $lib'
20903 # or fails outright, so override atomically:
20904 install_override_mode=555
20907 interix[3-9]*)
20908 version_type=linux
20909 need_lib_prefix=no
20910 need_version=no
20911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20912 soname_spec='${libname}${release}${shared_ext}$major'
20913 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20914 shlibpath_var=LD_LIBRARY_PATH
20915 shlibpath_overrides_runpath=no
20916 hardcode_into_libs=yes
20919 irix5* | irix6* | nonstopux*)
20920 case $host_os in
20921 nonstopux*) version_type=nonstopux ;;
20923 if test "$lt_cv_prog_gnu_ld" = yes; then
20924 version_type=linux
20925 else
20926 version_type=irix
20927 fi ;;
20928 esac
20929 need_lib_prefix=no
20930 need_version=no
20931 soname_spec='${libname}${release}${shared_ext}$major'
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20933 case $host_os in
20934 irix5* | nonstopux*)
20935 libsuff= shlibsuff=
20938 case $LD in # libtool.m4 will add one of these switches to LD
20939 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20940 libsuff= shlibsuff= libmagic=32-bit;;
20941 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20942 libsuff=32 shlibsuff=N32 libmagic=N32;;
20943 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20944 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20945 *) libsuff= shlibsuff= libmagic=never-match;;
20946 esac
20948 esac
20949 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20950 shlibpath_overrides_runpath=no
20951 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20952 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20953 hardcode_into_libs=yes
20956 # No shared lib support for Linux oldld, aout, or coff.
20957 linux*oldld* | linux*aout* | linux*coff*)
20958 dynamic_linker=no
20961 # This must be Linux ELF.
20962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20963 version_type=linux
20964 need_lib_prefix=no
20965 need_version=no
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20967 soname_spec='${libname}${release}${shared_ext}$major'
20968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 shlibpath_overrides_runpath=no
20972 # Some binutils ld are patched to set DT_RUNPATH
20973 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20974 $as_echo_n "(cached) " >&6
20975 else
20976 lt_cv_shlibpath_overrides_runpath=no
20977 save_LDFLAGS=$LDFLAGS
20978 save_libdir=$libdir
20979 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20980 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982 /* end confdefs.h. */
20985 main ()
20989 return 0;
20991 _ACEOF
20992 if ac_fn_cxx_try_link "$LINENO"; then :
20993 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20994 lt_cv_shlibpath_overrides_runpath=yes
20997 rm -f core conftest.err conftest.$ac_objext \
20998 conftest$ac_exeext conftest.$ac_ext
20999 LDFLAGS=$save_LDFLAGS
21000 libdir=$save_libdir
21004 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21006 # This implies no fast_install, which is unacceptable.
21007 # Some rework will be needed to allow for fast_install
21008 # before this can be enabled.
21009 hardcode_into_libs=yes
21011 # Append ld.so.conf contents to the search path
21012 if test -f /etc/ld.so.conf; then
21013 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' ' '`
21014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21017 # We used to test for /lib/ld.so.1 and disable shared libraries on
21018 # powerpc, because MkLinux only supported shared libraries with the
21019 # GNU dynamic linker. Since this was broken with cross compilers,
21020 # most powerpc-linux boxes support dynamic linking these days and
21021 # people can always --disable-shared, the test was removed, and we
21022 # assume the GNU/Linux dynamic linker is in use.
21023 dynamic_linker='GNU/Linux ld.so'
21026 netbsd*)
21027 version_type=sunos
21028 need_lib_prefix=no
21029 need_version=no
21030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21033 dynamic_linker='NetBSD (a.out) ld.so'
21034 else
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 dynamic_linker='NetBSD ld.elf_so'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath=yes
21041 hardcode_into_libs=yes
21044 newsos6)
21045 version_type=linux
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 shlibpath_var=LD_LIBRARY_PATH
21048 shlibpath_overrides_runpath=yes
21051 *nto* | *qnx*)
21052 version_type=qnx
21053 need_lib_prefix=no
21054 need_version=no
21055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21056 soname_spec='${libname}${release}${shared_ext}$major'
21057 shlibpath_var=LD_LIBRARY_PATH
21058 shlibpath_overrides_runpath=no
21059 hardcode_into_libs=yes
21060 dynamic_linker='ldqnx.so'
21063 openbsd*)
21064 version_type=sunos
21065 sys_lib_dlsearch_path_spec="/usr/lib"
21066 need_lib_prefix=no
21067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21068 case $host_os in
21069 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21070 *) need_version=no ;;
21071 esac
21072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21074 shlibpath_var=LD_LIBRARY_PATH
21075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21076 case $host_os in
21077 openbsd2.[89] | openbsd2.[89].*)
21078 shlibpath_overrides_runpath=no
21081 shlibpath_overrides_runpath=yes
21083 esac
21084 else
21085 shlibpath_overrides_runpath=yes
21089 os2*)
21090 libname_spec='$name'
21091 shrext_cmds=".dll"
21092 need_lib_prefix=no
21093 library_names_spec='$libname${shared_ext} $libname.a'
21094 dynamic_linker='OS/2 ld.exe'
21095 shlibpath_var=LIBPATH
21098 osf3* | osf4* | osf5*)
21099 version_type=osf
21100 need_lib_prefix=no
21101 need_version=no
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 shlibpath_var=LD_LIBRARY_PATH
21105 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21106 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21109 rdos*)
21110 dynamic_linker=no
21113 solaris*)
21114 version_type=linux
21115 need_lib_prefix=no
21116 need_version=no
21117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21118 soname_spec='${libname}${release}${shared_ext}$major'
21119 shlibpath_var=LD_LIBRARY_PATH
21120 shlibpath_overrides_runpath=yes
21121 hardcode_into_libs=yes
21122 # ldd complains unless libraries are executable
21123 postinstall_cmds='chmod +x $lib'
21126 sunos4*)
21127 version_type=sunos
21128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21129 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21130 shlibpath_var=LD_LIBRARY_PATH
21131 shlibpath_overrides_runpath=yes
21132 if test "$with_gnu_ld" = yes; then
21133 need_lib_prefix=no
21135 need_version=yes
21138 sysv4 | sysv4.3*)
21139 version_type=linux
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 shlibpath_var=LD_LIBRARY_PATH
21143 case $host_vendor in
21144 sni)
21145 shlibpath_overrides_runpath=no
21146 need_lib_prefix=no
21147 runpath_var=LD_RUN_PATH
21149 siemens)
21150 need_lib_prefix=no
21152 motorola)
21153 need_lib_prefix=no
21154 need_version=no
21155 shlibpath_overrides_runpath=no
21156 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21158 esac
21161 sysv4*MP*)
21162 if test -d /usr/nec ;then
21163 version_type=linux
21164 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21165 soname_spec='$libname${shared_ext}.$major'
21166 shlibpath_var=LD_LIBRARY_PATH
21170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21171 version_type=freebsd-elf
21172 need_lib_prefix=no
21173 need_version=no
21174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21175 soname_spec='${libname}${release}${shared_ext}$major'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 shlibpath_overrides_runpath=yes
21178 hardcode_into_libs=yes
21179 if test "$with_gnu_ld" = yes; then
21180 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21181 else
21182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21183 case $host_os in
21184 sco3.2v5*)
21185 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21187 esac
21189 sys_lib_dlsearch_path_spec='/usr/lib'
21192 tpf*)
21193 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21194 version_type=linux
21195 need_lib_prefix=no
21196 need_version=no
21197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 shlibpath_overrides_runpath=no
21200 hardcode_into_libs=yes
21203 uts4*)
21204 version_type=linux
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206 soname_spec='${libname}${release}${shared_ext}$major'
21207 shlibpath_var=LD_LIBRARY_PATH
21211 dynamic_linker=no
21213 esac
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21215 $as_echo "$dynamic_linker" >&6; }
21216 test "$dynamic_linker" = no && can_build_shared=no
21218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21219 if test "$GCC" = yes; then
21220 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21223 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21224 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21226 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21227 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21269 hardcode_action_CXX=
21270 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21271 test -n "$runpath_var_CXX" ||
21272 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21274 # We can hardcode non-existent directories.
21275 if test "$hardcode_direct_CXX" != no &&
21276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21277 # have to relink, otherwise we might link with an installed library
21278 # when we should be linking with a yet-to-be-installed one
21279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21280 test "$hardcode_minus_L_CXX" != no; then
21281 # Linking always hardcodes the temporary library directory.
21282 hardcode_action_CXX=relink
21283 else
21284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21285 hardcode_action_CXX=immediate
21287 else
21288 # We cannot hardcode anything, or else we can only hardcode existing
21289 # directories.
21290 hardcode_action_CXX=unsupported
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21293 $as_echo "$hardcode_action_CXX" >&6; }
21295 if test "$hardcode_action_CXX" = relink ||
21296 test "$inherit_rpath_CXX" = yes; then
21297 # Fast installation is not supported
21298 enable_fast_install=no
21299 elif test "$shlibpath_overrides_runpath" = yes ||
21300 test "$enable_shared" = no; then
21301 # Fast installation is not necessary
21302 enable_fast_install=needless
21311 fi # test -n "$compiler"
21313 CC=$lt_save_CC
21314 LDCXX=$LD
21315 LD=$lt_save_LD
21316 GCC=$lt_save_GCC
21317 with_gnu_ld=$lt_save_with_gnu_ld
21318 lt_cv_path_LDCXX=$lt_cv_path_LD
21319 lt_cv_path_LD=$lt_save_path_LD
21320 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21321 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21322 fi # test "$_lt_caught_CXX_error" != yes
21324 ac_ext=c
21325 ac_cpp='$CPP $CPPFLAGS'
21326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21345 # Only expand once:
21351 # Identify the assembler which will work hand-in-glove with the newly
21352 # built GCC, so that we can examine its features. This is the assembler
21353 # which will be driven by the driver program.
21355 # If build != host, and we aren't building gas in-tree, we identify a
21356 # build->target assembler and hope that it will have the same features
21357 # as the host->target assembler we'll be using.
21358 gcc_cv_gas_major_version=
21359 gcc_cv_gas_minor_version=
21360 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21362 if test "${gcc_cv_as+set}" = set; then :
21364 else
21366 if test -x "$DEFAULT_ASSEMBLER"; then
21367 gcc_cv_as="$DEFAULT_ASSEMBLER"
21368 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21369 && test -f ../gas/Makefile \
21370 && test x$build = x$host; then
21371 gcc_cv_as=../gas/as-new$build_exeext
21372 elif test -x as$build_exeext; then
21373 # Build using assembler in the current directory.
21374 gcc_cv_as=./as$build_exeext
21375 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21376 gcc_cv_as="$AS_FOR_TARGET"
21377 else
21378 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21379 set dummy $AS_FOR_TARGET; ac_word=$2
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21381 $as_echo_n "checking for $ac_word... " >&6; }
21382 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21383 $as_echo_n "(cached) " >&6
21384 else
21385 case $gcc_cv_as in
21386 [\\/]* | ?:[\\/]*)
21387 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21391 for as_dir in $PATH
21393 IFS=$as_save_IFS
21394 test -z "$as_dir" && as_dir=.
21395 for ac_exec_ext in '' $ac_executable_extensions; do
21396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21397 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21399 break 2
21401 done
21402 done
21403 IFS=$as_save_IFS
21406 esac
21408 gcc_cv_as=$ac_cv_path_gcc_cv_as
21409 if test -n "$gcc_cv_as"; then
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21411 $as_echo "$gcc_cv_as" >&6; }
21412 else
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21414 $as_echo "no" >&6; }
21421 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21423 case "$ORIGINAL_AS_FOR_TARGET" in
21424 ./as | ./as$build_exeext) ;;
21425 *) ac_config_files="$ac_config_files as:exec-tool.in"
21427 esac
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21430 $as_echo_n "checking what assembler to use... " >&6; }
21431 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21432 # Single tree build which includes gas. We want to prefer it
21433 # over whatever linker top-level may have detected, since
21434 # we'll use what we're building after installation anyway.
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21436 $as_echo "newly built gas" >&6; }
21437 in_tree_gas=yes
21438 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21439 for f in $gcc_cv_as_bfd_srcdir/configure \
21440 $gcc_cv_as_gas_srcdir/configure \
21441 $gcc_cv_as_gas_srcdir/configure.in \
21442 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21443 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21444 if test x$gcc_cv_gas_version != x; then
21445 break
21447 done
21448 case $gcc_cv_gas_version in
21449 VERSION=[0-9]*) ;;
21450 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21451 esac
21452 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21453 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21454 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21455 case $gcc_cv_gas_patch_version in
21456 "") gcc_cv_gas_patch_version="0" ;;
21457 esac
21458 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21459 + $gcc_cv_gas_minor_version \) \* 1000 \
21460 + $gcc_cv_gas_patch_version`
21462 in_tree_gas_is_elf=no
21463 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21464 || (grep 'obj_format = multi' ../gas/Makefile \
21465 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21466 then
21467 in_tree_gas_is_elf=yes
21469 else
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21471 $as_echo "$gcc_cv_as" >&6; }
21472 in_tree_gas=no
21475 default_ld=
21476 # Check whether --enable-ld was given.
21477 if test "${enable_ld+set}" = set; then :
21478 enableval=$enable_ld; case "${enableval}" in
21480 default_ld=ld.gold
21482 esac
21486 # Check whether --enable-gold was given.
21487 if test "${enable_gold+set}" = set; then :
21488 enableval=$enable_gold; case "${enableval}" in
21489 default)
21490 install_gold_as_default=yes
21492 yes)
21493 if test x${default_ld} != x; then
21494 install_gold_as_default=yes
21500 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21502 esac
21503 else
21504 install_gold_as_default=no
21508 # Identify the linker which will work hand-in-glove with the newly
21509 # built GCC, so that we can examine its features. This is the linker
21510 # which will be driven by the driver program.
21512 # If build != host, and we aren't building gas in-tree, we identify a
21513 # build->target linker and hope that it will have the same features
21514 # as the host->target linker we'll be using.
21515 gcc_cv_gld_major_version=
21516 gcc_cv_gld_minor_version=
21517 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21518 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21519 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21521 if test "${gcc_cv_ld+set}" = set; then :
21523 else
21525 if test -x "$DEFAULT_LINKER"; then
21526 gcc_cv_ld="$DEFAULT_LINKER"
21527 elif test $install_gold_as_default = yes \
21528 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21529 && test -f ../gold/Makefile \
21530 && test x$build = x$host; then
21531 gcc_cv_ld=../gold/ld-new$build_exeext
21532 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21533 && test -f ../ld/Makefile \
21534 && test x$build = x$host; then
21535 gcc_cv_ld=../ld/ld-new$build_exeext
21536 elif test -x collect-ld$build_exeext; then
21537 # Build using linker in the current directory.
21538 gcc_cv_ld=./collect-ld$build_exeext
21539 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21540 gcc_cv_ld="$LD_FOR_TARGET"
21541 else
21542 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21543 set dummy $LD_FOR_TARGET; ac_word=$2
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21545 $as_echo_n "checking for $ac_word... " >&6; }
21546 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21547 $as_echo_n "(cached) " >&6
21548 else
21549 case $gcc_cv_ld in
21550 [\\/]* | ?:[\\/]*)
21551 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21555 for as_dir in $PATH
21557 IFS=$as_save_IFS
21558 test -z "$as_dir" && as_dir=.
21559 for ac_exec_ext in '' $ac_executable_extensions; do
21560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21561 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21563 break 2
21565 done
21566 done
21567 IFS=$as_save_IFS
21570 esac
21572 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21573 if test -n "$gcc_cv_ld"; then
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21575 $as_echo "$gcc_cv_ld" >&6; }
21576 else
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21585 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21586 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21587 # if the PLUGIN_LD is set ld-new, just have it as ld
21588 # as that is the installed named.
21589 if test x$PLUGIN_LD_SUFFIX = xld-new \
21590 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21591 PLUGIN_LD_SUFFIX=ld
21594 # Check whether --with-plugin-ld was given.
21595 if test "${with_plugin_ld+set}" = set; then :
21596 withval=$with_plugin_ld; if test x"$withval" != x; then
21597 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21598 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21604 cat >>confdefs.h <<_ACEOF
21605 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21606 _ACEOF
21609 # Check to see if we are using gold instead of ld
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21611 $as_echo_n "checking whether we are using gold... " >&6; }
21612 ld_is_gold=no
21613 if test x$gcc_cv_ld != x; then
21614 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21615 | grep "GNU gold" > /dev/null; then
21616 ld_is_gold=yes
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21620 $as_echo "$ld_is_gold" >&6; }
21622 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21624 case "$ORIGINAL_LD_FOR_TARGET" in
21625 ./collect-ld | ./collect-ld$build_exeext) ;;
21626 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21628 esac
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21631 $as_echo_n "checking what linker to use... " >&6; }
21632 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21633 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21634 # Single tree build which includes ld. We want to prefer it
21635 # over whatever linker top-level may have detected, since
21636 # we'll use what we're building after installation anyway.
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21638 $as_echo "newly built ld" >&6; }
21639 in_tree_ld=yes
21640 in_tree_ld_is_elf=no
21641 if (grep 'EMUL = .*elf' ../ld/Makefile \
21642 || grep 'EMUL = .*linux' ../ld/Makefile \
21643 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21644 in_tree_ld_is_elf=yes
21645 elif test "$ld_is_gold" = yes; then
21646 in_tree_ld_is_elf=yes
21648 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
21650 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21651 if test x$gcc_cv_gld_version != x; then
21652 break
21654 done
21655 case $gcc_cv_gld_version in
21656 VERSION=[0-9]*) ;;
21657 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21658 esac
21659 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21660 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21661 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21662 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21663 else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21665 $as_echo "$gcc_cv_ld" >&6; }
21666 in_tree_ld=no
21667 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21668 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21669 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21675 # Figure out what nm we will be using.
21676 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21677 if test "${gcc_cv_nm+set}" = set; then :
21679 else
21681 if test -f $gcc_cv_binutils_srcdir/configure.in \
21682 && test -f ../binutils/Makefile \
21683 && test x$build = x$host; then
21684 gcc_cv_nm=../binutils/nm-new$build_exeext
21685 elif test -x nm$build_exeext; then
21686 gcc_cv_nm=./nm$build_exeext
21687 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21688 gcc_cv_nm="$NM_FOR_TARGET"
21689 else
21690 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21691 set dummy $NM_FOR_TARGET; ac_word=$2
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21693 $as_echo_n "checking for $ac_word... " >&6; }
21694 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21695 $as_echo_n "(cached) " >&6
21696 else
21697 case $gcc_cv_nm in
21698 [\\/]* | ?:[\\/]*)
21699 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21703 for as_dir in $PATH
21705 IFS=$as_save_IFS
21706 test -z "$as_dir" && as_dir=.
21707 for ac_exec_ext in '' $ac_executable_extensions; do
21708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21709 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21711 break 2
21713 done
21714 done
21715 IFS=$as_save_IFS
21718 esac
21720 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21721 if test -n "$gcc_cv_nm"; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21723 $as_echo "$gcc_cv_nm" >&6; }
21724 else
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726 $as_echo "no" >&6; }
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21734 $as_echo_n "checking what nm to use... " >&6; }
21735 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21736 # Single tree build which includes binutils.
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21738 $as_echo "newly built nm" >&6; }
21739 in_tree_nm=yes
21740 else
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21742 $as_echo "$gcc_cv_nm" >&6; }
21743 in_tree_nm=no
21746 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21748 case "$ORIGINAL_NM_FOR_TARGET" in
21749 ./nm | ./nm$build_exeext) ;;
21750 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21752 esac
21755 # Figure out what objdump we will be using.
21756 if test "${gcc_cv_objdump+set}" = set; then :
21758 else
21760 if test -f $gcc_cv_binutils_srcdir/configure.in \
21761 && test -f ../binutils/Makefile \
21762 && test x$build = x$host; then
21763 # Single tree build which includes binutils.
21764 gcc_cv_objdump=../binutils/objdump$build_exeext
21765 elif test -x objdump$build_exeext; then
21766 gcc_cv_objdump=./objdump$build_exeext
21767 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21768 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21769 else
21770 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21771 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21773 $as_echo_n "checking for $ac_word... " >&6; }
21774 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21775 $as_echo_n "(cached) " >&6
21776 else
21777 case $gcc_cv_objdump in
21778 [\\/]* | ?:[\\/]*)
21779 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21783 for as_dir in $PATH
21785 IFS=$as_save_IFS
21786 test -z "$as_dir" && as_dir=.
21787 for ac_exec_ext in '' $ac_executable_extensions; do
21788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21789 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21791 break 2
21793 done
21794 done
21795 IFS=$as_save_IFS
21798 esac
21800 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21801 if test -n "$gcc_cv_objdump"; then
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21803 $as_echo "$gcc_cv_objdump" >&6; }
21804 else
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21806 $as_echo "no" >&6; }
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21814 $as_echo_n "checking what objdump to use... " >&6; }
21815 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21816 # Single tree build which includes binutils.
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21818 $as_echo "newly built objdump" >&6; }
21819 elif test x$gcc_cv_objdump = x; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21821 $as_echo "not found" >&6; }
21822 else
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21824 $as_echo "$gcc_cv_objdump" >&6; }
21827 # Figure out what readelf we will be using.
21828 if test "${gcc_cv_readelf+set}" = set; then :
21830 else
21832 if test -f $gcc_cv_binutils_srcdir/configure.in \
21833 && test -f ../binutils/Makefile \
21834 && test x$build = x$host; then
21835 # Single tree build which includes binutils.
21836 gcc_cv_readelf=../binutils/readelf$build_exeext
21837 elif test -x readelf$build_exeext; then
21838 gcc_cv_readelf=./readelf$build_exeext
21839 else
21840 # Extract the first word of "readelf", so it can be a program name with args.
21841 set dummy readelf; ac_word=$2
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21843 $as_echo_n "checking for $ac_word... " >&6; }
21844 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21845 $as_echo_n "(cached) " >&6
21846 else
21847 case $gcc_cv_readelf in
21848 [\\/]* | ?:[\\/]*)
21849 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21855 IFS=$as_save_IFS
21856 test -z "$as_dir" && as_dir=.
21857 for ac_exec_ext in '' $ac_executable_extensions; do
21858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21859 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21861 break 2
21863 done
21864 done
21865 IFS=$as_save_IFS
21868 esac
21870 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21871 if test -n "$gcc_cv_readelf"; then
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21873 $as_echo "$gcc_cv_readelf" >&6; }
21874 else
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21876 $as_echo "no" >&6; }
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21884 $as_echo_n "checking what readelf to use... " >&6; }
21885 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21886 # Single tree build which includes binutils.
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21888 $as_echo "newly built readelf" >&6; }
21889 elif test x$gcc_cv_readelf = x; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21891 $as_echo "not found" >&6; }
21892 else
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21894 $as_echo "$gcc_cv_readelf" >&6; }
21897 # Figure out what assembler alignment features are present.
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21899 $as_echo_n "checking assembler flags... " >&6; }
21900 if test "${gcc_cv_as_flags+set}" = set; then :
21901 $as_echo_n "(cached) " >&6
21902 else
21903 case "$target" in
21904 i[34567]86-*-linux*)
21905 gcc_cv_as_flags=--32
21907 x86_64-*-linux-gnux32)
21908 gcc_cv_as_flags=--x32
21910 x86_64-*-linux*)
21911 gcc_cv_as_flags=--64
21913 powerpc*-*-darwin*)
21914 gcc_cv_as_flags="-arch ppc"
21917 gcc_cv_as_flags=" "
21919 esac
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21922 $as_echo "$gcc_cv_as_flags" >&6; }
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21925 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21926 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21927 $as_echo_n "(cached) " >&6
21928 else
21929 gcc_cv_as_balign_and_p2align=no
21930 if test $in_tree_gas = yes; then
21931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21932 then gcc_cv_as_balign_and_p2align=yes
21934 elif test x$gcc_cv_as != x; then
21935 $as_echo '.balign 4
21936 .p2align 2' > conftest.s
21937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21942 test $ac_status = 0; }; }
21943 then
21944 gcc_cv_as_balign_and_p2align=yes
21945 else
21946 echo "configure: failed program was" >&5
21947 cat conftest.s >&5
21949 rm -f conftest.o conftest.s
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21953 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21954 if test $gcc_cv_as_balign_and_p2align = yes; then
21956 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21961 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21962 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21963 $as_echo_n "(cached) " >&6
21964 else
21965 gcc_cv_as_max_skip_p2align=no
21966 if test $in_tree_gas = yes; then
21967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21968 then gcc_cv_as_max_skip_p2align=yes
21970 elif test x$gcc_cv_as != x; then
21971 $as_echo '.p2align 4,,7' > conftest.s
21972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21977 test $ac_status = 0; }; }
21978 then
21979 gcc_cv_as_max_skip_p2align=yes
21980 else
21981 echo "configure: failed program was" >&5
21982 cat conftest.s >&5
21984 rm -f conftest.o conftest.s
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21988 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21989 if test $gcc_cv_as_max_skip_p2align = yes; then
21991 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21996 $as_echo_n "checking assembler for .literal16... " >&6; }
21997 if test "${gcc_cv_as_literal16+set}" = set; then :
21998 $as_echo_n "(cached) " >&6
21999 else
22000 gcc_cv_as_literal16=no
22001 if test $in_tree_gas = yes; then
22002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22003 then gcc_cv_as_literal16=yes
22005 elif test x$gcc_cv_as != x; then
22006 $as_echo '.literal16' > conftest.s
22007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22009 (eval $ac_try) 2>&5
22010 ac_status=$?
22011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22012 test $ac_status = 0; }; }
22013 then
22014 gcc_cv_as_literal16=yes
22015 else
22016 echo "configure: failed program was" >&5
22017 cat conftest.s >&5
22019 rm -f conftest.o conftest.s
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22023 $as_echo "$gcc_cv_as_literal16" >&6; }
22024 if test $gcc_cv_as_literal16 = yes; then
22026 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22031 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22032 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22033 $as_echo_n "(cached) " >&6
22034 else
22035 gcc_cv_as_subsection_m1=no
22036 if test $in_tree_gas = yes; then
22037 if test $in_tree_gas_is_elf = yes \
22038 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22039 then gcc_cv_as_subsection_m1=yes
22041 elif test x$gcc_cv_as != x; then
22042 $as_echo 'conftest_label1: .word 0
22043 .subsection -1
22044 conftest_label2: .word 0
22045 .previous' > 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
22053 if test x$gcc_cv_nm != x; then
22054 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22055 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22056 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22057 then :
22058 else gcc_cv_as_subsection_m1=yes
22060 rm -f conftest.nm1 conftest.nm2
22062 else
22063 echo "configure: failed program was" >&5
22064 cat conftest.s >&5
22066 rm -f conftest.o conftest.s
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22070 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22071 if test $gcc_cv_as_subsection_m1 = yes; then
22073 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22078 $as_echo_n "checking assembler for .weak... " >&6; }
22079 if test "${gcc_cv_as_weak+set}" = set; then :
22080 $as_echo_n "(cached) " >&6
22081 else
22082 gcc_cv_as_weak=no
22083 if test $in_tree_gas = yes; then
22084 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22085 then gcc_cv_as_weak=yes
22087 elif test x$gcc_cv_as != x; then
22088 $as_echo ' .weak foobar' > conftest.s
22089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22091 (eval $ac_try) 2>&5
22092 ac_status=$?
22093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22094 test $ac_status = 0; }; }
22095 then
22096 gcc_cv_as_weak=yes
22097 else
22098 echo "configure: failed program was" >&5
22099 cat conftest.s >&5
22101 rm -f conftest.o conftest.s
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22105 $as_echo "$gcc_cv_as_weak" >&6; }
22106 if test $gcc_cv_as_weak = yes; then
22108 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22113 $as_echo_n "checking assembler for .weakref... " >&6; }
22114 if test "${gcc_cv_as_weakref+set}" = set; then :
22115 $as_echo_n "(cached) " >&6
22116 else
22117 gcc_cv_as_weakref=no
22118 if test $in_tree_gas = yes; then
22119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22120 then gcc_cv_as_weakref=yes
22122 elif test x$gcc_cv_as != x; then
22123 $as_echo ' .weakref foobar, barfnot' > conftest.s
22124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129 test $ac_status = 0; }; }
22130 then
22131 gcc_cv_as_weakref=yes
22132 else
22133 echo "configure: failed program was" >&5
22134 cat conftest.s >&5
22136 rm -f conftest.o conftest.s
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22140 $as_echo "$gcc_cv_as_weakref" >&6; }
22141 if test $gcc_cv_as_weakref = yes; then
22143 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22148 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22149 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22150 $as_echo_n "(cached) " >&6
22151 else
22152 gcc_cv_as_nsubspa_comdat=no
22153 if test $in_tree_gas = yes; then
22154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22155 then gcc_cv_as_nsubspa_comdat=yes
22157 elif test x$gcc_cv_as != x; then
22158 $as_echo ' .SPACE $TEXT$
22159 .NSUBSPA $CODE$,COMDAT' > conftest.s
22160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22165 test $ac_status = 0; }; }
22166 then
22167 gcc_cv_as_nsubspa_comdat=yes
22168 else
22169 echo "configure: failed program was" >&5
22170 cat conftest.s >&5
22172 rm -f conftest.o conftest.s
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22176 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22177 if test $gcc_cv_as_nsubspa_comdat = yes; then
22179 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22183 # .hidden needs to be supported in both the assembler and the linker,
22184 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22185 # This is irritatingly difficult to feature test for; we have to check the
22186 # date string after the version number. If we've got an in-tree
22187 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22188 # to be safe.
22189 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22191 $as_echo_n "checking assembler for .hidden... " >&6; }
22192 if test "${gcc_cv_as_hidden+set}" = set; then :
22193 $as_echo_n "(cached) " >&6
22194 else
22195 gcc_cv_as_hidden=no
22196 if test $in_tree_gas = yes; then
22197 if test $in_tree_gas_is_elf = yes \
22198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22199 then gcc_cv_as_hidden=yes
22201 elif test x$gcc_cv_as != x; then
22202 $as_echo ' .hidden foobar
22203 foobar:' > conftest.s
22204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209 test $ac_status = 0; }; }
22210 then
22211 gcc_cv_as_hidden=yes
22212 else
22213 echo "configure: failed program was" >&5
22214 cat conftest.s >&5
22216 rm -f conftest.o conftest.s
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22220 $as_echo "$gcc_cv_as_hidden" >&6; }
22222 case "${target}" in
22223 *-*-darwin*)
22224 # Darwin as has some visibility support, though with a different syntax.
22225 gcc_cv_as_hidden=yes
22227 esac
22229 # gnu_indirect_function type is an extension proposed at
22230 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22231 # selection of function implementation
22232 # Check whether --enable-gnu-indirect-function was given.
22233 if test "${enable_gnu_indirect_function+set}" = set; then :
22234 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22235 yes | no) ;;
22236 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22237 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22238 esac
22239 else
22240 enable_gnu_indirect_function="$default_gnu_indirect_function"
22244 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22246 cat >>confdefs.h <<_ACEOF
22247 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22248 _ACEOF
22252 if test $in_tree_ld != yes ; then
22253 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22254 if echo "$ld_ver" | grep GNU > /dev/null; then
22255 if test x"$ld_is_gold" = xyes; then
22256 # GNU gold --version looks like this:
22258 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22260 # We extract the binutils version which is more familiar and specific
22261 # than the gold version.
22262 ld_vers=`echo $ld_ver | sed -n \
22263 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22264 else
22265 # GNU ld --version looks like this:
22267 # GNU ld (GNU Binutils) 2.21.51.20110225
22268 ld_vers=`echo $ld_ver | sed -n \
22269 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22271 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'`
22272 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22273 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22274 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22275 else
22276 case "${target}" in
22277 *-*-solaris2*)
22278 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22279 # format.
22281 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22282 # /usr/ccs/bin/ld has been configured.
22283 ld_ver=`$gcc_cv_ld -V 2>&1`
22284 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22285 ld_vers=`echo $ld_ver | sed -n \
22286 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22287 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22288 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22291 esac
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22296 $as_echo_n "checking linker for .hidden support... " >&6; }
22297 if test "${gcc_cv_ld_hidden+set}" = set; then :
22298 $as_echo_n "(cached) " >&6
22299 else
22300 if test $in_tree_ld = yes ; then
22301 gcc_cv_ld_hidden=no
22302 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 \
22303 && test $in_tree_ld_is_elf = yes; then
22304 gcc_cv_ld_hidden=yes
22306 else
22307 gcc_cv_ld_hidden=yes
22308 if test x"$ld_is_gold" = xyes; then
22310 elif echo "$ld_ver" | grep GNU > /dev/null; then
22311 case "${target}" in
22312 mmix-knuth-mmixware)
22313 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22314 gcc_cv_ld_hidden=no
22316 esac
22317 if test 0"$ld_date" -lt 20020404; then
22318 if test -n "$ld_date"; then
22319 # If there was date string, but was earlier than 2002-04-04, fail
22320 gcc_cv_ld_hidden=no
22321 elif test -z "$ld_vers"; then
22322 # If there was no date string nor ld version number, something is wrong
22323 gcc_cv_ld_hidden=no
22324 else
22325 test -z "$ld_vers_patch" && ld_vers_patch=0
22326 if test "$ld_vers_major" -lt 2; then
22327 gcc_cv_ld_hidden=no
22328 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22329 gcc_cv_ld_hidden="no"
22330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22331 gcc_cv_ld_hidden=no
22335 else
22336 case "${target}" in
22337 *-*-darwin*)
22338 # Darwin ld has some visibility support.
22339 gcc_cv_ld_hidden=yes
22341 hppa64*-*-hpux* | ia64*-*-hpux*)
22342 gcc_cv_ld_hidden=yes
22344 *-*-solaris2.1[0-9]*)
22345 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22346 # .symbolic was only added in Solaris 9 12/02.
22347 gcc_cv_ld_hidden=yes
22350 gcc_cv_ld_hidden=no
22352 esac
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22357 $as_echo "$gcc_cv_ld_hidden" >&6; }
22358 libgcc_visibility=no
22361 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22362 libgcc_visibility=yes
22364 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22369 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22370 gcc_cv_ld_ro_rw_mix=unknown
22371 if test $in_tree_ld = yes ; then
22372 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22373 && test $in_tree_ld_is_elf = yes; then
22374 gcc_cv_ld_ro_rw_mix=read-write
22376 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22377 echo '.section myfoosect, "a"' > conftest1.s
22378 echo '.section myfoosect, "aw"' > conftest2.s
22379 echo '.byte 1' >> conftest2.s
22380 echo '.section myfoosect, "a"' > conftest3.s
22381 echo '.byte 0' >> conftest3.s
22382 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22383 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22384 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22385 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22386 conftest2.o conftest3.o > /dev/null 2>&1; then
22387 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22388 | sed -e '/myfoosect/!d' -e N`
22389 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22390 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22391 gcc_cv_ld_ro_rw_mix=read-only
22392 else
22393 gcc_cv_ld_ro_rw_mix=read-write
22397 rm -f conftest.* conftest[123].*
22399 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22401 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22405 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22407 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22408 case "${target}" in
22409 *-*-solaris2*)
22411 # Solaris 2 ld -V output looks like this for a regular version:
22413 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22415 # but test versions add stuff at the end:
22417 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22419 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22420 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22421 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22422 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22423 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22424 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22427 esac
22430 # Check whether --enable-initfini-array was given.
22431 if test "${enable_initfini_array+set}" = set; then :
22432 enableval=$enable_initfini_array;
22433 else
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22436 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22437 if test "${gcc_cv_initfini_array+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22441 case "${target}" in
22442 ia64-*)
22443 if test "$cross_compiling" = yes; then :
22444 gcc_cv_initfini_array=no
22445 else
22446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447 /* end confdefs.h. */
22449 #ifndef __ELF__
22450 #error Not an ELF OS
22451 #endif
22452 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22453 if it can be used. */
22454 static int x = -1;
22455 int main (void) { return x; }
22456 int foo (void) { x = 0; }
22457 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22459 _ACEOF
22460 if ac_fn_c_try_run "$LINENO"; then :
22461 gcc_cv_initfini_array=yes
22462 else
22463 gcc_cv_initfini_array=no
22465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22466 conftest.$ac_objext conftest.beam conftest.$ac_ext
22470 gcc_cv_initfini_array=no
22471 if test $in_tree_ld = yes ; then
22472 if test "$gcc_cv_gld_major_version" -eq 2 \
22473 -a "$gcc_cv_gld_minor_version" -ge 22 \
22474 -o "$gcc_cv_gld_major_version" -gt 2 \
22475 && test $in_tree_ld_is_elf = yes; then
22476 gcc_cv_initfini_array=yes
22478 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22479 cat > conftest.s <<\EOF
22480 .section .dtors,"a",%progbits
22481 .balign 4
22482 .byte 'A', 'A', 'A', 'A'
22483 .section .ctors,"a",%progbits
22484 .balign 4
22485 .byte 'B', 'B', 'B', 'B'
22486 .section .fini_array.65530,"a",%progbits
22487 .balign 4
22488 .byte 'C', 'C', 'C', 'C'
22489 .section .init_array.65530,"a",%progbits
22490 .balign 4
22491 .byte 'D', 'D', 'D', 'D'
22492 .section .dtors.64528,"a",%progbits
22493 .balign 4
22494 .byte 'E', 'E', 'E', 'E'
22495 .section .ctors.64528,"a",%progbits
22496 .balign 4
22497 .byte 'F', 'F', 'F', 'F'
22498 .section .fini_array.01005,"a",%progbits
22499 .balign 4
22500 .byte 'G', 'G', 'G', 'G'
22501 .section .init_array.01005,"a",%progbits
22502 .balign 4
22503 .byte 'H', 'H', 'H', 'H'
22504 .text
22505 .globl _start
22506 _start:
22508 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22509 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22510 && $gcc_cv_objdump -s -j .init_array conftest \
22511 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22512 && $gcc_cv_objdump -s -j .fini_array conftest \
22513 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22514 gcc_cv_initfini_array=yes
22516 rm -f conftest conftest.*
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22521 #ifndef __ELF__
22522 # error Not an ELF OS
22523 #endif
22524 #include <stdlib.h>
22525 #if defined __GLIBC_PREREQ
22526 # if __GLIBC_PREREQ (2, 4)
22527 # else
22528 # error GLIBC 2.4 required
22529 # endif
22530 #else
22531 # if defined __sun__ && defined __svr4__
22532 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22533 # else
22534 # error The C library not known to support .init_array/.fini_array
22535 # endif
22536 #endif
22538 _ACEOF
22539 if ac_fn_c_try_cpp "$LINENO"; then :
22541 else
22542 gcc_cv_initfini_array=no
22544 rm -f conftest.err conftest.$ac_ext;;
22545 esac
22546 else
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22548 $as_echo_n "checking cross compile... guessing... " >&6; }
22549 gcc_cv_initfini_array=no
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22553 $as_echo "$gcc_cv_initfini_array" >&6; }
22554 enable_initfini_array=$gcc_cv_initfini_array
22558 if test $enable_initfini_array = yes; then
22560 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22564 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22566 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22567 if test "${gcc_cv_as_leb128+set}" = set; then :
22568 $as_echo_n "(cached) " >&6
22569 else
22570 gcc_cv_as_leb128=no
22571 if test $in_tree_gas = yes; then
22572 if test $in_tree_gas_is_elf = yes \
22573 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22574 then gcc_cv_as_leb128=yes
22576 elif test x$gcc_cv_as != x; then
22577 $as_echo ' .data
22578 .uleb128 L2 - L1
22580 .uleb128 1280
22581 .sleb128 -1010
22582 L2:' > conftest.s
22583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22585 (eval $ac_try) 2>&5
22586 ac_status=$?
22587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22588 test $ac_status = 0; }; }
22589 then
22590 # GAS versions before 2.11 do not support uleb128,
22591 # despite appearing to.
22592 # ??? There exists an elf-specific test that will crash
22593 # the assembler. Perhaps it's better to figure out whether
22594 # arbitrary sections are supported and try the test.
22595 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22596 if echo "$as_ver" | grep GNU > /dev/null; then
22597 as_vers=`echo $as_ver | sed -n \
22598 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22599 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22600 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22601 if test $as_major -eq 2 && test $as_minor -lt 11
22602 then :
22603 else gcc_cv_as_leb128=yes
22606 else
22607 echo "configure: failed program was" >&5
22608 cat conftest.s >&5
22610 rm -f conftest.o conftest.s
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22614 $as_echo "$gcc_cv_as_leb128" >&6; }
22615 if test $gcc_cv_as_leb128 = yes; then
22617 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22621 # Check if we have assembler support for unwind directives.
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22623 $as_echo_n "checking assembler for cfi directives... " >&6; }
22624 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22627 gcc_cv_as_cfi_directive=no
22628 if test x$gcc_cv_as != x; then
22629 $as_echo ' .text
22630 .cfi_startproc
22631 .cfi_offset 0, 0
22632 .cfi_same_value 1
22633 .cfi_def_cfa 1, 2
22634 .cfi_escape 1, 2, 3, 4, 5
22635 .cfi_endproc' > conftest.s
22636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22642 then
22643 case "$target" in
22644 *-*-solaris*)
22645 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22646 # read-only and read-write sections, we need to make sure that the
22647 # assembler used emits read-write .eh_frame sections.
22648 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22649 if test "x$gcc_cv_objdump" != x; then
22650 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22651 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22652 gcc_cv_as_cfi_directive=no
22653 else
22654 case "$target" in
22655 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22656 # On Solaris/x86, make sure that GCC and assembler agree on using
22657 # read-only .eh_frame sections for 64-bit.
22658 if test x$gas = xyes; then
22659 as_ix86_64_opt="--64"
22660 else
22661 as_ix86_64_opt="-xarch=amd64"
22663 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22664 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22665 sed -e /.eh_frame/!d -e N | \
22666 grep READONLY > /dev/null; then
22667 gcc_cv_as_cfi_directive=yes
22668 else
22669 gcc_cv_as_cfi_directive=no
22673 gcc_cv_as_cfi_directive=yes
22675 esac
22677 else
22678 # no objdump, err on the side of caution
22679 gcc_cv_as_cfi_directive=no
22681 else
22682 gcc_cv_as_cfi_directive=yes
22685 *-*-*)
22686 gcc_cv_as_cfi_directive=yes
22688 esac
22689 else
22690 echo "configure: failed program was" >&5
22691 cat conftest.s >&5
22693 rm -f conftest.o conftest.s
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22697 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22699 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22701 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22702 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22703 $as_echo_n "(cached) " >&6
22704 else
22705 gcc_cv_as_cfi_advance_working=no
22706 if test x$gcc_cv_as != x; then
22707 $as_echo ' .text
22708 .cfi_startproc
22709 .cfi_adjust_cfa_offset 64
22710 .skip 75040, 0
22711 .cfi_adjust_cfa_offset 128
22712 .cfi_endproc' > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22721 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22722 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22723 gcc_cv_as_cfi_advance_working=yes
22726 else
22727 echo "configure: failed program was" >&5
22728 cat conftest.s >&5
22730 rm -f conftest.o conftest.s
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22734 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22736 else
22737 # no objdump, err on the side of caution
22738 gcc_cv_as_cfi_advance_working=no
22742 cat >>confdefs.h <<_ACEOF
22743 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22744 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22745 _ACEOF
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22750 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22751 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22752 $as_echo_n "(cached) " >&6
22753 else
22754 gcc_cv_as_cfi_personality_directive=no
22755 if test x$gcc_cv_as != x; then
22756 $as_echo ' .text
22757 .cfi_startproc
22758 .cfi_personality 0, symbol
22759 .cfi_endproc' > conftest.s
22760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22762 (eval $ac_try) 2>&5
22763 ac_status=$?
22764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22765 test $ac_status = 0; }; }
22766 then
22767 gcc_cv_as_cfi_personality_directive=yes
22768 else
22769 echo "configure: failed program was" >&5
22770 cat conftest.s >&5
22772 rm -f conftest.o conftest.s
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22776 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22779 cat >>confdefs.h <<_ACEOF
22780 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22781 then echo 1; else echo 0; fi`
22782 _ACEOF
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22786 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22787 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790 gcc_cv_as_cfi_sections_directive=no
22791 if test x$gcc_cv_as != x; then
22792 $as_echo ' .text
22793 .cfi_sections .debug_frame, .eh_frame
22794 .cfi_startproc
22795 .cfi_endproc' > conftest.s
22796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22801 test $ac_status = 0; }; }
22802 then
22803 case $target_os in
22804 win32 | pe | cygwin* | mingw32* | uwin*)
22805 # Need to check that we generated the correct relocation for the
22806 # .debug_frame section. This was fixed for binutils 2.21.
22807 gcc_cv_as_cfi_sections_directive=no
22808 if test "x$gcc_cv_objdump" != x; then
22809 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22810 grep secrel > /dev/null; then
22811 gcc_cv_as_cfi_sections_directive=yes
22816 gcc_cv_as_cfi_sections_directive=yes
22818 esac
22819 else
22820 echo "configure: failed program was" >&5
22821 cat conftest.s >&5
22823 rm -f conftest.o conftest.s
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22827 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22831 cat >>confdefs.h <<_ACEOF
22832 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22833 then echo 1; else echo 0; fi`
22834 _ACEOF
22837 # GAS versions up to and including 2.11.0 may mis-optimize
22838 # .eh_frame data.
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22840 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22841 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22842 $as_echo_n "(cached) " >&6
22843 else
22844 gcc_cv_as_eh_frame=no
22845 if test $in_tree_gas = yes; then
22846 if test $in_tree_gas_is_elf = yes \
22847 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22848 then gcc_cv_as_eh_frame=yes
22850 elif test x$gcc_cv_as != x; then
22851 $as_echo ' .text
22852 .LFB1:
22853 .4byte 0
22854 .L1:
22855 .4byte 0
22856 .LFE1:
22857 .section .eh_frame,"aw",@progbits
22858 __FRAME_BEGIN__:
22859 .4byte .LECIE1-.LSCIE1
22860 .LSCIE1:
22861 .4byte 0x0
22862 .byte 0x1
22863 .ascii "z\0"
22864 .byte 0x1
22865 .byte 0x78
22866 .byte 0x1a
22867 .byte 0x0
22868 .byte 0x4
22869 .4byte 1
22870 .p2align 1
22871 .LECIE1:
22872 .LSFDE1:
22873 .4byte .LEFDE1-.LASFDE1
22874 .LASFDE1:
22875 .4byte .LASFDE1-__FRAME_BEGIN__
22876 .4byte .LFB1
22877 .4byte .LFE1-.LFB1
22878 .byte 0x4
22879 .4byte .LFE1-.LFB1
22880 .byte 0x4
22881 .4byte .L1-.LFB1
22882 .LEFDE1:' > conftest.s
22883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888 test $ac_status = 0; }; }
22889 then
22890 cat > conftest.lit <<EOF
22891 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22892 0010 01000000 12000000 18000000 00000000 ................
22893 0020 08000000 04080000 0044 .........D
22895 cat > conftest.big <<EOF
22896 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22897 0010 00000001 00000012 00000018 00000000 ................
22898 0020 00000008 04000000 0844 .........D
22900 # If the assembler didn't choke, and we can objdump,
22901 # and we got the correct data, then succeed.
22902 # The text in the here-document typically retains its unix-style line
22903 # endings, while the output of objdump will use host line endings.
22904 # Therefore, use diff -b for the comparisons.
22905 if test x$gcc_cv_objdump != x \
22906 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22907 | tail -3 > conftest.got \
22908 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22909 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22910 then
22911 gcc_cv_as_eh_frame=yes
22912 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22917 test $ac_status = 0; }; }; then
22918 gcc_cv_as_eh_frame=buggy
22919 else
22920 # Uh oh, what do we do now?
22921 gcc_cv_as_eh_frame=no
22923 else
22924 echo "configure: failed program was" >&5
22925 cat conftest.s >&5
22927 rm -f conftest.o conftest.s
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22931 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22934 if test $gcc_cv_as_eh_frame = buggy; then
22936 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22941 $as_echo_n "checking assembler for section merging support... " >&6; }
22942 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 gcc_cv_as_shf_merge=no
22946 if test $in_tree_gas = yes; then
22947 if test $in_tree_gas_is_elf = yes \
22948 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22949 then gcc_cv_as_shf_merge=yes
22951 elif test x$gcc_cv_as != x; then
22952 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22958 test $ac_status = 0; }; }
22959 then
22960 gcc_cv_as_shf_merge=yes
22961 else
22962 echo "configure: failed program was" >&5
22963 cat conftest.s >&5
22965 rm -f conftest.o conftest.s
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22969 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22971 if test $gcc_cv_as_shf_merge = no; then
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22973 $as_echo_n "checking assembler for section merging support... " >&6; }
22974 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22976 else
22977 gcc_cv_as_shf_merge=no
22978 if test $in_tree_gas = yes; then
22979 if test $in_tree_gas_is_elf = yes \
22980 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22981 then gcc_cv_as_shf_merge=yes
22983 elif test x$gcc_cv_as != x; then
22984 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22990 test $ac_status = 0; }; }
22991 then
22992 gcc_cv_as_shf_merge=yes
22993 else
22994 echo "configure: failed program was" >&5
22995 cat conftest.s >&5
22997 rm -f conftest.o conftest.s
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23001 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23005 cat >>confdefs.h <<_ACEOF
23006 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23007 _ACEOF
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23011 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23012 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 gcc_cv_as_comdat_group=no
23016 if test $in_tree_gas = yes; then
23017 if test $in_tree_gas_is_elf = yes \
23018 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23019 then gcc_cv_as_comdat_group=yes
23021 elif test x$gcc_cv_as != x; then
23022 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23025 (eval $ac_try) 2>&5
23026 ac_status=$?
23027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23028 test $ac_status = 0; }; }
23029 then
23030 gcc_cv_as_comdat_group=yes
23031 else
23032 echo "configure: failed program was" >&5
23033 cat conftest.s >&5
23035 rm -f conftest.o conftest.s
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23039 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23041 if test $gcc_cv_as_comdat_group = yes; then
23042 gcc_cv_as_comdat_group_percent=no
23043 gcc_cv_as_comdat_group_group=no
23044 else
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23046 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23047 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23048 $as_echo_n "(cached) " >&6
23049 else
23050 gcc_cv_as_comdat_group_percent=no
23051 if test $in_tree_gas = yes; then
23052 if test $in_tree_gas_is_elf = yes \
23053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23054 then gcc_cv_as_comdat_group_percent=yes
23056 elif test x$gcc_cv_as != x; then
23057 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23064 then
23065 gcc_cv_as_comdat_group_percent=yes
23066 else
23067 echo "configure: failed program was" >&5
23068 cat conftest.s >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23074 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23076 if test $gcc_cv_as_comdat_group_percent = yes; then
23077 gcc_cv_as_comdat_group_group=no
23078 else
23079 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23080 gcc_cv_as_comdat_group_group=no
23082 case "${target}" in
23083 # Sun as uses a completely different syntax.
23084 *-*-solaris2*)
23085 case "${target}" in
23086 sparc*-*-solaris2*)
23087 conftest_s='
23088 .group foo,".text%foo",#comdat
23089 .section ".text%foo", #alloc,#execinstr,#progbits
23090 .globl foo
23091 foo:
23094 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23095 conftest_s='
23096 .group foo,.text%foo,#comdat
23097 .section .text%foo, "ax", @progbits
23098 .globl foo
23099 foo:
23102 esac
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23104 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23105 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23107 else
23108 gcc_cv_as_comdat_group_group=no
23109 if test x$gcc_cv_as != x; then
23110 $as_echo "$conftest_s" > conftest.s
23111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; }
23117 then
23118 gcc_cv_as_comdat_group_group=yes
23119 else
23120 echo "configure: failed program was" >&5
23121 cat conftest.s >&5
23123 rm -f conftest.o conftest.s
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23127 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23130 esac
23133 if test x"$ld_is_gold" = xyes; then
23134 comdat_group=yes
23135 elif test $in_tree_ld = yes ; then
23136 comdat_group=no
23137 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 \
23138 && test $in_tree_ld_is_elf = yes; then
23139 comdat_group=yes
23141 elif echo "$ld_ver" | grep GNU > /dev/null; then
23142 comdat_group=yes
23143 if test 0"$ld_date" -lt 20050308; then
23144 if test -n "$ld_date"; then
23145 # If there was date string, but was earlier than 2005-03-08, fail
23146 comdat_group=no
23147 elif test "$ld_vers_major" -lt 2; then
23148 comdat_group=no
23149 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23150 comdat_group=no
23153 else
23154 case "${target}" in
23155 *-*-solaris2.1[1-9]*)
23156 comdat_group=no
23157 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23158 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23159 # version 1.688.
23161 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23162 # least ld version 1.2267.
23163 if test "$ld_vers_major" -gt 1; then
23164 comdat_group=yes
23165 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23166 comdat_group=yes
23167 elif test "$ld_vers_minor" -ge 2267; then
23168 comdat_group=yes
23172 # Assume linkers other than GNU ld don't support COMDAT group.
23173 comdat_group=no
23175 esac
23177 # Allow overriding the automatic COMDAT group tests above.
23178 # Check whether --enable-comdat was given.
23179 if test "${enable_comdat+set}" = set; then :
23180 enableval=$enable_comdat; comdat_group="$enable_comdat"
23183 if test $comdat_group = no; then
23184 gcc_cv_as_comdat_group=no
23185 gcc_cv_as_comdat_group_percent=no
23186 gcc_cv_as_comdat_group_group=no
23189 cat >>confdefs.h <<_ACEOF
23190 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23191 || test $gcc_cv_as_comdat_group_percent = yes \
23192 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23193 _ACEOF
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23197 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23198 if test "${gcc_cv_as_discriminator+set}" = set; then :
23199 $as_echo_n "(cached) " >&6
23200 else
23201 gcc_cv_as_discriminator=no
23202 if test $in_tree_gas = yes; then
23203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23204 then gcc_cv_as_discriminator=yes
23206 elif test x$gcc_cv_as != x; then
23207 $as_echo ' .text
23208 .file 1 "conf.c"
23209 .loc 1 1 0 discriminator 1' > conftest.s
23210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23212 (eval $ac_try) 2>&5
23213 ac_status=$?
23214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23215 test $ac_status = 0; }; }
23216 then
23217 gcc_cv_as_discriminator=yes
23218 else
23219 echo "configure: failed program was" >&5
23220 cat conftest.s >&5
23222 rm -f conftest.o conftest.s
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23226 $as_echo "$gcc_cv_as_discriminator" >&6; }
23227 if test $gcc_cv_as_discriminator = yes; then
23229 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23233 # Thread-local storage - the check is heavily parameterized.
23234 conftest_s=
23235 tls_first_major=
23236 tls_first_minor=
23237 tls_as_opt=
23238 case "$target" in
23239 alpha*-*-*)
23240 conftest_s='
23241 .section ".tdata","awT",@progbits
23242 foo: .long 25
23243 .text
23244 ldq $27,__tls_get_addr($29) !literal!1
23245 lda $16,foo($29) !tlsgd!1
23246 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23247 ldq $27,__tls_get_addr($29) !literal!2
23248 lda $16,foo($29) !tlsldm!2
23249 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23250 ldq $1,foo($29) !gotdtprel
23251 ldah $2,foo($29) !dtprelhi
23252 lda $3,foo($2) !dtprello
23253 lda $4,foo($29) !dtprel
23254 ldq $1,foo($29) !gottprel
23255 ldah $2,foo($29) !tprelhi
23256 lda $3,foo($2) !tprello
23257 lda $4,foo($29) !tprel'
23258 tls_first_major=2
23259 tls_first_minor=13
23260 tls_as_opt=--fatal-warnings
23262 cris-*-*|crisv32-*-*)
23263 conftest_s='
23264 .section ".tdata","awT",@progbits
23265 x: .long 25
23266 .text
23267 move.d x:IE,$r10
23268 nop'
23269 tls_first_major=2
23270 tls_first_minor=20
23271 tls_as_opt=--fatal-warnings
23273 frv*-*-*)
23274 conftest_s='
23275 .section ".tdata","awT",@progbits
23276 x: .long 25
23277 .text
23278 call #gettlsoff(x)'
23279 tls_first_major=2
23280 tls_first_minor=14
23282 hppa*-*-linux*)
23283 conftest_s='
23284 t1: .reg %r20
23285 t2: .reg %r21
23286 gp: .reg %r19
23287 .section ".tdata","awT",@progbits
23288 foo: .long 25
23289 .text
23290 .align 4
23291 addil LT%foo-$tls_gdidx$,gp
23292 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23293 b __tls_get_addr
23295 addil LT%foo-$tls_ldidx$,gp
23296 b __tls_get_addr
23297 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23298 addil LR%foo-$tls_dtpoff$,%ret0
23299 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23300 mfctl %cr27,%t1
23301 addil LT%foo-$tls_ieoff$,gp
23302 ldw RT%foo-$tls_ieoff$(%r1),%t2
23303 add %t1,%t2,%t3
23304 mfctl %cr27,%t1
23305 addil LR%foo-$tls_leoff$,%t1
23306 ldo RR%foo-$tls_leoff$(%r1),%t2'
23307 tls_first_major=2
23308 tls_first_minor=15
23309 tls_as_opt=--fatal-warnings
23311 arm*-*-*)
23312 conftest_s='
23313 .section ".tdata","awT",%progbits
23314 foo: .long 25
23315 .text
23316 .word foo(gottpoff)
23317 .word foo(tpoff)
23318 .word foo(tlsgd)
23319 .word foo(tlsldm)
23320 .word foo(tlsldo)'
23321 tls_first_major=2
23322 tls_first_minor=17
23324 i[34567]86-*-* | x86_64-*-*)
23325 case "$target" in
23326 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23327 on_solaris=yes
23330 on_solaris=no
23332 esac
23333 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23334 conftest_s='
23335 .section .tdata,"awt",@progbits'
23336 tls_first_major=0
23337 tls_first_minor=0
23338 tls_section_flag=t
23340 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23342 else
23343 conftest_s='
23344 .section ".tdata","awT",@progbits'
23345 tls_first_major=2
23346 tls_first_minor=14
23347 tls_section_flag=T
23348 tls_as_opt="--fatal-warnings"
23350 case "$target" in
23351 i[34567]86-*-*)
23352 conftest_s="$conftest_s
23353 foo: .long 25
23354 .text
23355 movl %gs:0, %eax
23356 leal foo@tlsgd(,%ebx,1), %eax
23357 leal foo@tlsldm(%ebx), %eax
23358 leal foo@dtpoff(%eax), %edx
23359 movl foo@gottpoff(%ebx), %eax
23360 subl foo@gottpoff(%ebx), %eax
23361 addl foo@gotntpoff(%ebx), %eax
23362 movl foo@indntpoff, %eax
23363 movl \$foo@tpoff, %eax
23364 subl \$foo@tpoff, %eax
23365 leal foo@ntpoff(%ecx), %eax"
23367 x86_64-*-*)
23368 if test x$on_solaris = xyes; then
23369 case $gas_flag in
23370 yes) tls_as_opt="$tls_as_opt --64" ;;
23371 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23372 esac
23374 conftest_s="$conftest_s
23375 foo: .long 25
23376 .text
23377 movq %fs:0, %rax
23378 leaq foo@tlsgd(%rip), %rdi
23379 leaq foo@tlsld(%rip), %rdi
23380 leaq foo@dtpoff(%rax), %rdx
23381 movq foo@gottpoff(%rip), %rax
23382 movq \$foo@tpoff, %rax"
23384 esac
23386 ia64-*-*)
23387 conftest_s='
23388 .section ".tdata","awT",@progbits
23389 foo: data8 25
23390 .text
23391 addl r16 = @ltoff(@dtpmod(foo#)), gp
23392 addl r17 = @ltoff(@dtprel(foo#)), gp
23393 addl r18 = @ltoff(@tprel(foo#)), gp
23394 addl r19 = @dtprel(foo#), gp
23395 adds r21 = @dtprel(foo#), r13
23396 movl r23 = @dtprel(foo#)
23397 addl r20 = @tprel(foo#), gp
23398 adds r22 = @tprel(foo#), r13
23399 movl r24 = @tprel(foo#)'
23400 tls_first_major=2
23401 tls_first_minor=13
23402 tls_as_opt=--fatal-warnings
23404 microblaze*-*-*)
23405 conftest_s='
23406 .section .tdata,"awT",@progbits
23408 .word 2
23409 .text
23410 addik r5,r20,x@TLSGD
23411 addik r5,r20,x@TLSLDM'
23412 tls_first_major=2
23413 tls_first_minor=20
23414 tls_as_opt='--fatal-warnings'
23416 mips*-*-*)
23417 conftest_s='
23418 .section .tdata,"awT",@progbits
23420 .word 2
23421 .text
23422 addiu $4, $28, %tlsgd(x)
23423 addiu $4, $28, %tlsldm(x)
23424 lui $4, %dtprel_hi(x)
23425 addiu $4, $4, %dtprel_lo(x)
23426 lw $4, %gottprel(x)($28)
23427 lui $4, %tprel_hi(x)
23428 addiu $4, $4, %tprel_lo(x)'
23429 tls_first_major=2
23430 tls_first_minor=16
23431 tls_as_opt='-32 --fatal-warnings'
23433 m68k-*-*)
23434 conftest_s='
23435 .section .tdata,"awT",@progbits
23437 .word 2
23438 .text
23439 foo:
23440 move.l x@TLSGD(%a5),%a0
23441 move.l x@TLSLDM(%a5),%a0
23442 move.l x@TLSLDO(%a5),%a0
23443 move.l x@TLSIE(%a5),%a0
23444 move.l x@TLSLE(%a5),%a0'
23445 tls_first_major=2
23446 tls_first_minor=19
23447 tls_as_opt='--fatal-warnings'
23449 nios2-*-*)
23450 conftest_s='
23451 .section ".tdata","awT",@progbits'
23452 tls_first_major=2
23453 tls_first_minor=23
23454 tls_as_opt="--fatal-warnings"
23456 aarch64*-*-*)
23457 conftest_s='
23458 .section ".tdata","awT",%progbits
23459 foo: .long 25
23460 .text
23461 adrp x0, :tlsgd:x
23462 add x0, x0, #:tlsgd_lo12:x
23463 bl __tls_get_addr
23464 nop'
23465 tls_first_major=2
23466 tls_first_minor=20
23467 tls_as_opt='--fatal-warnings'
23469 powerpc-ibm-aix*)
23470 conftest_s='
23471 .extern __get_tpointer
23472 .toc
23473 LC..1:
23474 .tc a[TC],a[TL]@le
23475 .csect .text[PR]
23476 .tlstest:
23477 lwz 9,LC..1(2)
23478 bla __get_tpointer
23479 lwzx 3,9,3
23480 .globl a
23481 .csect a[TL],4
23483 .space 4'
23484 tls_first_major=0
23485 tls_first_minor=0
23487 powerpc64*-*-*)
23488 conftest_s='
23489 .section ".tdata","awT",@progbits
23490 .align 3
23491 ld0: .space 8
23492 ld1: .space 8
23493 x1: .space 8
23494 x2: .space 8
23495 x3: .space 8
23496 .text
23497 addi 3,2,ld0@got@tlsgd
23498 bl .__tls_get_addr
23500 addi 3,2,ld1@toc
23501 bl .__tls_get_addr
23503 addi 3,2,x1@got@tlsld
23504 bl .__tls_get_addr
23506 addi 9,3,x1@dtprel
23507 bl .__tls_get_addr
23509 addis 9,3,x2@dtprel@ha
23510 addi 9,9,x2@dtprel@l
23511 bl .__tls_get_addr
23513 ld 9,x3@got@dtprel(2)
23514 add 9,9,3
23515 bl .__tls_get_addr
23516 nop'
23517 tls_first_major=2
23518 tls_first_minor=14
23519 tls_as_opt="-a64 --fatal-warnings"
23521 powerpc*-*-*)
23522 conftest_s='
23523 .section ".tdata","awT",@progbits
23524 .align 2
23525 ld0: .space 4
23526 ld1: .space 4
23527 x1: .space 4
23528 x2: .space 4
23529 x3: .space 4
23530 .text
23531 addi 3,31,ld0@got@tlsgd
23532 bl __tls_get_addr
23533 addi 3,31,x1@got@tlsld
23534 bl __tls_get_addr
23535 addi 9,3,x1@dtprel
23536 addis 9,3,x2@dtprel@ha
23537 addi 9,9,x2@dtprel@l
23538 lwz 9,x3@got@tprel(31)
23539 add 9,9,x@tls
23540 addi 9,2,x1@tprel
23541 addis 9,2,x2@tprel@ha
23542 addi 9,9,x2@tprel@l'
23543 tls_first_major=2
23544 tls_first_minor=14
23545 tls_as_opt="-a32 --fatal-warnings"
23547 s390-*-*)
23548 conftest_s='
23549 .section ".tdata","awT",@progbits
23550 foo: .long 25
23551 .text
23552 .long foo@TLSGD
23553 .long foo@TLSLDM
23554 .long foo@DTPOFF
23555 .long foo@NTPOFF
23556 .long foo@GOTNTPOFF
23557 .long foo@INDNTPOFF
23558 l %r1,foo@GOTNTPOFF(%r12)
23559 l %r1,0(%r1):tls_load:foo
23560 bas %r14,0(%r1,%r13):tls_gdcall:foo
23561 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23562 tls_first_major=2
23563 tls_first_minor=14
23564 tls_as_opt="-m31 --fatal-warnings"
23566 s390x-*-*)
23567 conftest_s='
23568 .section ".tdata","awT",@progbits
23569 foo: .long 25
23570 .text
23571 .quad foo@TLSGD
23572 .quad foo@TLSLDM
23573 .quad foo@DTPOFF
23574 .quad foo@NTPOFF
23575 .quad foo@GOTNTPOFF
23576 lg %r1,foo@GOTNTPOFF(%r12)
23577 larl %r1,foo@INDNTPOFF
23578 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23579 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23580 tls_first_major=2
23581 tls_first_minor=14
23582 tls_as_opt="-m64 -Aesame --fatal-warnings"
23584 sh-*-* | sh[34]-*-*)
23585 conftest_s='
23586 .section ".tdata","awT",@progbits
23587 foo: .long 25
23588 .text
23589 .long foo@TLSGD
23590 .long foo@TLSLDM
23591 .long foo@DTPOFF
23592 .long foo@GOTTPOFF
23593 .long foo@TPOFF'
23594 tls_first_major=2
23595 tls_first_minor=13
23596 tls_as_opt=--fatal-warnings
23598 sparc*-*-*)
23599 case "$target" in
23600 sparc*-sun-solaris2.*)
23601 on_solaris=yes
23604 on_solaris=no
23606 esac
23607 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23608 conftest_s='
23609 .section ".tdata",#alloc,#write,#tls'
23610 tls_first_major=0
23611 tls_first_minor=0
23612 else
23613 conftest_s='
23614 .section ".tdata","awT",@progbits'
23615 tls_first_major=2
23616 tls_first_minor=14
23617 tls_as_opt="-32 --fatal-warnings"
23619 conftest_s="$conftest_s
23620 foo: .long 25
23621 .text
23622 sethi %tgd_hi22(foo), %o0
23623 add %o0, %tgd_lo10(foo), %o1
23624 add %l7, %o1, %o0, %tgd_add(foo)
23625 call __tls_get_addr, %tgd_call(foo)
23626 sethi %tldm_hi22(foo), %l1
23627 add %l1, %tldm_lo10(foo), %l2
23628 add %l7, %l2, %o0, %tldm_add(foo)
23629 call __tls_get_addr, %tldm_call(foo)
23630 sethi %tldo_hix22(foo), %l3
23631 xor %l3, %tldo_lox10(foo), %l4
23632 add %o0, %l4, %l5, %tldo_add(foo)
23633 sethi %tie_hi22(foo), %o3
23634 add %o3, %tie_lo10(foo), %o3
23635 ld [%l7 + %o3], %o2, %tie_ld(foo)
23636 add %g7, %o2, %o4, %tie_add(foo)
23637 sethi %tle_hix22(foo), %l1
23638 xor %l1, %tle_lox10(foo), %o5
23639 ld [%g7 + %o5], %o1"
23641 tilepro*-*-*)
23642 conftest_s='
23643 .section ".tdata","awT",@progbits
23644 foo: .long 25
23645 .text
23646 addli r0, zero, tls_gd(foo)
23647 auli r0, zero, tls_gd_ha16(foo)
23648 addli r0, r0, tls_gd_lo16(foo)
23649 jal __tls_get_addr
23650 addli r0, zero, tls_ie(foo)
23651 auli r0, r0, tls_ie_ha16(foo)
23652 addli r0, r0, tls_ie_lo16(foo)'
23653 tls_first_major=2
23654 tls_first_minor=22
23655 tls_as_opt="--fatal-warnings"
23657 tilegx*-*-*)
23658 conftest_s='
23659 .section ".tdata","awT",@progbits
23660 foo: .long 25
23661 .text
23662 shl16insli r0, zero, hw0_last_tls_gd(foo)
23663 shl16insli r0, zero, hw1_last_tls_gd(foo)
23664 shl16insli r0, r0, hw0_tls_gd(foo)
23665 jal __tls_get_addr
23666 shl16insli r0, zero, hw1_last_tls_ie(foo)
23667 shl16insli r0, r0, hw0_tls_ie(foo)'
23668 tls_first_major=2
23669 tls_first_minor=22
23670 tls_as_opt="--fatal-warnings"
23672 xtensa*-*-*)
23673 conftest_s='
23674 .section ".tdata","awT",@progbits
23675 foo: .long 25
23676 .text
23677 movi a8, foo@TLSFUNC
23678 movi a10, foo@TLSARG
23679 callx8.tls a8, foo@TLSCALL'
23680 tls_first_major=2
23681 tls_first_minor=19
23683 esac
23684 set_have_as_tls=no
23685 if test "x$enable_tls" = xno ; then
23686 : # TLS explicitly disabled.
23687 elif test "x$enable_tls" = xyes ; then
23688 set_have_as_tls=yes # TLS explicitly enabled.
23689 elif test -z "$tls_first_major"; then
23690 : # If we don't have a check, assume no support.
23691 else
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23693 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23694 if test "${gcc_cv_as_tls+set}" = set; then :
23695 $as_echo_n "(cached) " >&6
23696 else
23697 gcc_cv_as_tls=no
23698 if test $in_tree_gas = yes; then
23699 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23700 then gcc_cv_as_tls=yes
23702 elif test x$gcc_cv_as != x; then
23703 $as_echo "$conftest_s" > conftest.s
23704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709 test $ac_status = 0; }; }
23710 then
23711 gcc_cv_as_tls=yes
23712 else
23713 echo "configure: failed program was" >&5
23714 cat conftest.s >&5
23716 rm -f conftest.o conftest.s
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23720 $as_echo "$gcc_cv_as_tls" >&6; }
23721 if test $gcc_cv_as_tls = yes; then
23722 set_have_as_tls=yes
23725 if test $set_have_as_tls = yes ; then
23727 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23731 # Target-specific assembler checks.
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23734 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23735 gcc_cv_ld_static_dynamic=no
23736 gcc_cv_ld_static_option='-Bstatic'
23737 gcc_cv_ld_dynamic_option='-Bdynamic'
23738 if test $in_tree_ld = yes ; then
23739 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
23740 gcc_cv_ld_static_dynamic=yes
23742 elif test x$gcc_cv_ld != x; then
23743 # Check if linker supports -Bstatic/-Bdynamic option
23744 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23745 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23746 gcc_cv_ld_static_dynamic=yes
23747 else
23748 case "$target" in
23749 # AIX ld uses -b flags
23750 *-*-aix4.[23]* | *-*-aix[5-9]*)
23751 gcc_cv_ld_static_dynamic=yes
23752 gcc_cv_ld_static_option="-bstatic"
23753 gcc_cv_ld_dynamic_option="-bdynamic"
23755 # HP-UX ld uses -a flags to select between shared and archive.
23756 *-*-hpux*)
23757 if test x"$gnu_ld" = xno; then
23758 gcc_cv_ld_static_dynamic=yes
23759 gcc_cv_ld_static_option="-aarchive_shared"
23760 gcc_cv_ld_dynamic_option="-adefault"
23763 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23764 *-*-solaris2*)
23765 gcc_cv_ld_static_dynamic=yes
23767 esac
23770 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23772 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23775 cat >>confdefs.h <<_ACEOF
23776 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23777 _ACEOF
23780 cat >>confdefs.h <<_ACEOF
23781 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23782 _ACEOF
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23786 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23788 if test x"$demangler_in_ld" = xyes; then
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23790 $as_echo_n "checking linker --demangle support... " >&6; }
23791 gcc_cv_ld_demangle=no
23792 if test $in_tree_ld = yes; then
23793 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 \
23794 gcc_cv_ld_demangle=yes
23796 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23797 # Check if the GNU linker supports --demangle option
23798 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23799 gcc_cv_ld_demangle=yes
23802 if test x"$gcc_cv_ld_demangle" = xyes; then
23804 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23808 $as_echo "$gcc_cv_ld_demangle" >&6; }
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23812 $as_echo_n "checking linker plugin support... " >&6; }
23813 gcc_cv_lto_plugin=0
23814 if test -f liblto_plugin.la; then
23815 save_ld_ver="$ld_ver"
23816 save_ld_vers_major="$ld_vers_major"
23817 save_ld_vers_minor="$ld_vers_minor"
23818 save_ld_is_gold="$ld_is_gold"
23820 ld_is_gold=no
23822 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23823 ld_ver="GNU ld"
23824 # FIXME: ld_is_gold?
23825 ld_vers_major="$gcc_cv_gld_major_version"
23826 ld_vers_minor="$gcc_cv_gld_minor_version"
23827 else
23828 # Determine plugin linker version.
23829 # FIXME: Partial duplicate from above, generalize.
23830 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23831 if echo "$ld_ver" | grep GNU > /dev/null; then
23832 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23833 ld_is_gold=yes
23834 ld_vers=`echo $ld_ver | sed -n \
23835 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23836 else
23837 ld_vers=`echo $ld_ver | sed -n \
23838 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23840 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23841 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23845 # Determine plugin support.
23846 if echo "$ld_ver" | grep GNU > /dev/null; then
23847 # Require GNU ld or gold 2.21+ for plugin support by default.
23848 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23849 gcc_cv_lto_plugin=2
23850 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23851 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23852 gcc_cv_lto_plugin=1
23856 ld_ver="$save_ld_ver"
23857 ld_vers_major="$save_ld_vers_major"
23858 ld_vers_minor="$save_ld_vers_minor"
23859 ld_is_gold="$save_ld_is_gold"
23862 cat >>confdefs.h <<_ACEOF
23863 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23864 _ACEOF
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23867 $as_echo "$gcc_cv_lto_plugin" >&6; }
23869 case "$target" in
23870 aarch64*-*-*)
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23872 $as_echo_n "checking assembler for -mabi option... " >&6; }
23873 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23874 $as_echo_n "(cached) " >&6
23875 else
23876 gcc_cv_as_aarch64_mabi=no
23877 if test x$gcc_cv_as != x; then
23878 $as_echo '.text' > conftest.s
23879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23884 test $ac_status = 0; }; }
23885 then
23886 gcc_cv_as_aarch64_mabi=yes
23887 else
23888 echo "configure: failed program was" >&5
23889 cat conftest.s >&5
23891 rm -f conftest.o conftest.s
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23895 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23897 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23899 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23901 else
23902 if test x$with_abi = xilp32; then
23903 as_fn_error "Assembler does not support -mabi=ilp32.\
23904 Upgrade the Assembler." "$LINENO" 5
23906 if test x"$with_multilib_list" = xdefault; then
23907 TM_MULTILIB_CONFIG=lp64
23908 else
23909 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23910 for aarch64_multilib in ${aarch64_multilibs}; do
23911 case ${aarch64_multilib} in
23912 ilp32)
23913 as_fn_error "Assembler does not support -mabi=ilp32.\
23914 Upgrade the Assembler." "$LINENO" 5
23918 esac
23919 done
23924 # All TARGET_ABI_OSF targets.
23925 alpha*-*-linux* | alpha*-*-*bsd*)
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23927 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23928 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23929 $as_echo_n "(cached) " >&6
23930 else
23931 gcc_cv_as_alpha_explicit_relocs=no
23932 if test $in_tree_gas = yes; then
23933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23934 then gcc_cv_as_alpha_explicit_relocs=yes
23936 elif test x$gcc_cv_as != x; then
23937 $as_echo ' .set nomacro
23938 .text
23939 extbl $3, $2, $3 !lituse_bytoff!1
23940 ldq $2, a($29) !literal!1
23941 ldq $4, b($29) !literal!2
23942 ldq_u $3, 0($2) !lituse_base!1
23943 ldq $27, f($29) !literal!5
23944 jsr $26, ($27), f !lituse_jsr!5
23945 ldah $29, 0($26) !gpdisp!3
23946 lda $0, c($29) !gprel
23947 ldah $1, d($29) !gprelhigh
23948 lda $1, d($1) !gprellow
23949 lda $29, 0($29) !gpdisp!3' > conftest.s
23950 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23952 (eval $ac_try) 2>&5
23953 ac_status=$?
23954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23955 test $ac_status = 0; }; }
23956 then
23957 gcc_cv_as_alpha_explicit_relocs=yes
23958 else
23959 echo "configure: failed program was" >&5
23960 cat conftest.s >&5
23962 rm -f conftest.o conftest.s
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23966 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23967 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23969 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23973 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23974 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23975 $as_echo_n "(cached) " >&6
23976 else
23977 gcc_cv_as_alpha_jsrdirect_relocs=no
23978 if test $in_tree_gas = yes; then
23979 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23980 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23982 elif test x$gcc_cv_as != x; then
23983 $as_echo ' .set nomacro
23984 .text
23985 ldq $27, a($29) !literal!1
23986 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23992 test $ac_status = 0; }; }
23993 then
23994 gcc_cv_as_alpha_jsrdirect_relocs=yes
23995 else
23996 echo "configure: failed program was" >&5
23997 cat conftest.s >&5
23999 rm -f conftest.o conftest.s
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24003 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24004 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24006 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24011 cris-*-*)
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24013 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24014 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24015 $as_echo_n "(cached) " >&6
24016 else
24017 gcc_cv_as_cris_no_mul_bug=no
24018 if test $in_tree_gas = yes; then
24019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24020 then gcc_cv_as_cris_no_mul_bug=yes
24022 elif test x$gcc_cv_as != x; then
24023 $as_echo '.text' > conftest.s
24024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24026 (eval $ac_try) 2>&5
24027 ac_status=$?
24028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24029 test $ac_status = 0; }; }
24030 then
24031 gcc_cv_as_cris_no_mul_bug=yes
24032 else
24033 echo "configure: failed program was" >&5
24034 cat conftest.s >&5
24036 rm -f conftest.o conftest.s
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24040 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24041 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24043 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24048 sparc*-*-*)
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24050 $as_echo_n "checking assembler for .register... " >&6; }
24051 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_sparc_register_op=no
24055 if test x$gcc_cv_as != x; then
24056 $as_echo '.register %g2, #scratch' > conftest.s
24057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24062 test $ac_status = 0; }; }
24063 then
24064 gcc_cv_as_sparc_register_op=yes
24065 else
24066 echo "configure: failed program was" >&5
24067 cat conftest.s >&5
24069 rm -f conftest.o conftest.s
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24073 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24074 if test $gcc_cv_as_sparc_register_op = yes; then
24076 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24081 $as_echo_n "checking assembler for #nobits... " >&6; }
24082 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24084 else
24085 gcc_cv_as_sparc_nobits=no
24086 if test x$gcc_cv_as != x; then
24087 $as_echo '.section "nobits",#alloc,#write,#nobits
24088 .section "progbits",#alloc,#write,#progbits' > conftest.s
24089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091 (eval $ac_try) 2>&5
24092 ac_status=$?
24093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094 test $ac_status = 0; }; }
24095 then
24096 gcc_cv_as_sparc_nobits=yes
24097 else
24098 echo "configure: failed program was" >&5
24099 cat conftest.s >&5
24101 rm -f conftest.o conftest.s
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24105 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24108 cat >>confdefs.h <<_ACEOF
24109 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24110 _ACEOF
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24114 $as_echo_n "checking assembler for -relax option... " >&6; }
24115 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24118 gcc_cv_as_sparc_relax=no
24119 if test x$gcc_cv_as != x; then
24120 $as_echo '.text' > conftest.s
24121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24126 test $ac_status = 0; }; }
24127 then
24128 gcc_cv_as_sparc_relax=yes
24129 else
24130 echo "configure: failed program was" >&5
24131 cat conftest.s >&5
24133 rm -f conftest.o conftest.s
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24137 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24138 if test $gcc_cv_as_sparc_relax = yes; then
24140 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24145 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24146 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 gcc_cv_as_sparc_gotdata_op=no
24150 if test x$gcc_cv_as != x; then
24151 $as_echo '.text
24152 .align 4
24153 foo:
24155 bar:
24156 sethi %gdop_hix22(foo), %g1
24157 xor %g1, %gdop_lox10(foo), %g1
24158 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24164 test $ac_status = 0; }; }
24165 then
24166 if test x$gcc_cv_ld != x \
24167 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24168 if test x$gcc_cv_objdump != x; then
24169 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24170 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24171 gcc_cv_as_sparc_gotdata_op=no
24172 else
24173 gcc_cv_as_sparc_gotdata_op=yes
24177 rm -f conftest
24178 else
24179 echo "configure: failed program was" >&5
24180 cat conftest.s >&5
24182 rm -f conftest.o conftest.s
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24186 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24187 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24189 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24194 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24195 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24196 $as_echo_n "(cached) " >&6
24197 else
24198 gcc_cv_as_sparc_ua_pcrel=no
24199 if test x$gcc_cv_as != x; then
24200 $as_echo '.text
24201 foo:
24203 .data
24204 .align 4
24205 .byte 0
24206 .uaword %r_disp32(foo)' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24213 then
24214 if test x$gcc_cv_ld != x \
24215 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24216 gcc_cv_as_sparc_ua_pcrel=yes
24218 rm -f conftest
24219 else
24220 echo "configure: failed program was" >&5
24221 cat conftest.s >&5
24223 rm -f conftest.o conftest.s
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24227 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24228 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24230 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24234 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24235 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24238 gcc_cv_as_sparc_ua_pcrel_hidden=no
24239 if test x$gcc_cv_as != x; then
24240 $as_echo '.data
24241 .align 4
24242 .byte 0x31
24243 .uaword %r_disp32(foo)
24244 .byte 0x32, 0x33, 0x34
24245 .global foo
24246 .hidden foo
24247 foo:
24248 .skip 4' > conftest.s
24249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24254 test $ac_status = 0; }; }
24255 then
24256 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24257 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24258 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24259 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24260 if $gcc_cv_objdump -R conftest 2> /dev/null \
24261 | grep 'DISP32' > /dev/null 2>&1; then
24263 else
24264 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24267 rm -f conftest
24268 else
24269 echo "configure: failed program was" >&5
24270 cat conftest.s >&5
24272 rm -f conftest.o conftest.s
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24276 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24277 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24279 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24283 fi # unaligned pcrel relocs
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24286 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24287 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 gcc_cv_as_sparc_offsetable_lo10=no
24291 if test x$gcc_cv_as != x; then
24292 $as_echo '.text
24293 or %g1, %lo(ab) + 12, %g1
24294 or %g1, %lo(ab + 12), %g1' > conftest.s
24295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24301 then
24302 if test x$gcc_cv_objdump != x \
24303 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24304 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24305 gcc_cv_as_sparc_offsetable_lo10=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_offsetable_lo10" >&5
24315 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24316 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24318 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24323 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24324 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_sparc_fmaf=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 fmaddd %f0, %f2, %f4, %f6
24334 addxccc %g1, %g2, %g3
24335 fsrl32 %f2, %f4, %f8
24336 fnaddd %f10, %f12, %f14' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24343 then
24344 gcc_cv_as_sparc_fmaf=yes
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24353 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24354 if test $gcc_cv_as_sparc_fmaf = yes; then
24356 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24361 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24362 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_sparc4=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.text
24368 .register %g2, #scratch
24369 .register %g3, #scratch
24370 .align 4
24371 cxbe %g2, %g3, 1f
24372 1: cwbneg %g2, %g3, 1f
24373 1: sha1
24375 aes_kexpand0 %f4, %f6, %f8
24376 des_round %f38, %f40, %f42, %f44
24377 camellia_f %f54, %f56, %f58, %f60
24378 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24381 (eval $ac_try) 2>&5
24382 ac_status=$?
24383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24384 test $ac_status = 0; }; }
24385 then
24386 gcc_cv_as_sparc_sparc4=yes
24387 else
24388 echo "configure: failed program was" >&5
24389 cat conftest.s >&5
24391 rm -f conftest.o conftest.s
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24395 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24396 if test $gcc_cv_as_sparc_sparc4 = yes; then
24398 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24403 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24404 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24405 $as_echo_n "(cached) " >&6
24406 else
24407 gcc_cv_as_sparc_leon=no
24408 if test x$gcc_cv_as != x; then
24409 $as_echo '.text
24410 .register %g2, #scratch
24411 .register %g3, #scratch
24412 .align 4
24413 smac %g2, %g3, %g1
24414 umac %g2, %g3, %g1
24415 casa [%g2] 0xb, %g3, %g1' > conftest.s
24416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24422 then
24423 gcc_cv_as_sparc_leon=yes
24424 else
24425 echo "configure: failed program was" >&5
24426 cat conftest.s >&5
24428 rm -f conftest.o conftest.s
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24432 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24433 if test $gcc_cv_as_sparc_leon = yes; then
24435 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24440 i[34567]86-*-* | x86_64-*-*)
24441 case $target_os in
24442 cygwin*)
24443 # Full C++ conformance when using a shared libstdc++-v3 requires some
24444 # support from the Cygwin DLL, which in more recent versions exports
24445 # wrappers to aid in interposing and redirecting operators new, delete,
24446 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24447 # are configuring for a version of Cygwin that exports the wrappers.
24448 if test x$host = x$target && test x$host_cpu = xi686; then
24449 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24450 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24451 gcc_ac_cygwin_dll_wrappers=yes
24452 else
24453 gcc_ac_cygwin_dll_wrappers=no
24456 else
24457 # Can't check presence of libc functions during cross-compile, so
24458 # we just have to assume we're building for an up-to-date target.
24459 gcc_ac_cygwin_dll_wrappers=yes
24462 cat >>confdefs.h <<_ACEOF
24463 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24464 _ACEOF
24466 esac
24467 case $target_os in
24468 cygwin* | pe | mingw32* | interix*)
24469 # Recent binutils allows the three-operand form of ".comm" on PE. This
24470 # definition is used unconditionally to initialise the default state of
24471 # the target option variable that governs usage of the feature.
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24473 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24474 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24475 $as_echo_n "(cached) " >&6
24476 else
24477 gcc_cv_as_comm_has_align=no
24478 if test $in_tree_gas = yes; then
24479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24480 then gcc_cv_as_comm_has_align=yes
24482 elif test x$gcc_cv_as != x; then
24483 $as_echo '.comm foo,1,32' > conftest.s
24484 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24486 (eval $ac_try) 2>&5
24487 ac_status=$?
24488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24489 test $ac_status = 0; }; }
24490 then
24491 gcc_cv_as_comm_has_align=yes
24492 else
24493 echo "configure: failed program was" >&5
24494 cat conftest.s >&5
24496 rm -f conftest.o conftest.s
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24500 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24503 cat >>confdefs.h <<_ACEOF
24504 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24505 _ACEOF
24507 # Used for DWARF 2 in PE
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24509 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24510 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24512 else
24513 gcc_cv_as_ix86_pe_secrel32=no
24514 if test $in_tree_gas = yes; then
24515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24516 then gcc_cv_as_ix86_pe_secrel32=yes
24518 elif test x$gcc_cv_as != x; then
24519 $as_echo '.text
24520 foo: nop
24521 .data
24522 .secrel32 foo' > conftest.s
24523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528 test $ac_status = 0; }; }
24529 then
24530 if test x$gcc_cv_ld != x \
24531 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24532 gcc_cv_as_ix86_pe_secrel32=yes
24534 rm -f conftest
24535 else
24536 echo "configure: failed program was" >&5
24537 cat conftest.s >&5
24539 rm -f conftest.o conftest.s
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24543 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24544 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24546 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24549 # Test if the assembler supports the extended form of the .section
24550 # directive that specifies section alignment. LTO support uses this,
24551 # but normally only after installation, so we warn but don't fail the
24552 # configure if LTO is enabled but the assembler does not support it.
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24554 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24555 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24556 $as_echo_n "(cached) " >&6
24557 else
24558 gcc_cv_as_section_has_align=no
24559 if test $in_tree_gas = yes; then
24560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24561 then gcc_cv_as_section_has_align=yes
24563 elif test x$gcc_cv_as != x; then
24564 $as_echo '.section lto_test,"dr0"' > conftest.s
24565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24568 ac_status=$?
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24571 then
24572 gcc_cv_as_section_has_align=yes
24573 else
24574 echo "configure: failed program was" >&5
24575 cat conftest.s >&5
24577 rm -f conftest.o conftest.s
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24581 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24583 if test x$gcc_cv_as_section_has_align != xyes; then
24584 case ",$enable_languages," in
24585 *,lto,*)
24586 { $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
24587 $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;}
24589 esac
24591 # Test if the assembler supports the section flag 'e' for specifying
24592 # an excluded section.
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24594 $as_echo_n "checking assembler for .section with e... " >&6; }
24595 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24597 else
24598 gcc_cv_as_section_has_e=no
24599 if test $in_tree_gas = yes; then
24600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24601 then gcc_cv_as_section_has_e=yes
24603 elif test x$gcc_cv_as != x; then
24604 $as_echo '.section foo1,"e"
24605 .byte 0,0,0,0' > conftest.s
24606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24612 then
24613 gcc_cv_as_section_has_e=yes
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24622 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24625 cat >>confdefs.h <<_ACEOF
24626 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24627 _ACEOF
24630 esac
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24633 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24634 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_ix86_filds=no
24638 if test x$gcc_cv_as != x; then
24639 $as_echo 'filds mem; fists mem' > conftest.s
24640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24645 test $ac_status = 0; }; }
24646 then
24647 gcc_cv_as_ix86_filds=yes
24648 else
24649 echo "configure: failed program was" >&5
24650 cat conftest.s >&5
24652 rm -f conftest.o conftest.s
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24656 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24657 if test $gcc_cv_as_ix86_filds = yes; then
24659 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24664 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24665 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24666 $as_echo_n "(cached) " >&6
24667 else
24668 gcc_cv_as_ix86_fildq=no
24669 if test x$gcc_cv_as != x; then
24670 $as_echo 'fildq mem; fistpq mem' > conftest.s
24671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24676 test $ac_status = 0; }; }
24677 then
24678 gcc_cv_as_ix86_fildq=yes
24679 else
24680 echo "configure: failed program was" >&5
24681 cat conftest.s >&5
24683 rm -f conftest.o conftest.s
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24687 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24688 if test $gcc_cv_as_ix86_fildq = yes; then
24690 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24695 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24696 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24697 $as_echo_n "(cached) " >&6
24698 else
24699 gcc_cv_as_ix86_cmov_sun_syntax=no
24700 if test x$gcc_cv_as != x; then
24701 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24704 (eval $ac_try) 2>&5
24705 ac_status=$?
24706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24707 test $ac_status = 0; }; }
24708 then
24709 gcc_cv_as_ix86_cmov_sun_syntax=yes
24710 else
24711 echo "configure: failed program was" >&5
24712 cat conftest.s >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24718 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24719 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24721 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24726 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24727 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 gcc_cv_as_ix86_ffreep=no
24731 if test x$gcc_cv_as != x; then
24732 $as_echo 'ffreep %st(1)' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_ix86_ffreep=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24749 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24750 if test $gcc_cv_as_ix86_ffreep = yes; then
24752 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24757 $as_echo_n "checking assembler for .quad directive... " >&6; }
24758 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24759 $as_echo_n "(cached) " >&6
24760 else
24761 gcc_cv_as_ix86_quad=no
24762 if test x$gcc_cv_as != x; then
24763 $as_echo '.quad 0' > conftest.s
24764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24770 then
24771 gcc_cv_as_ix86_quad=yes
24772 else
24773 echo "configure: failed program was" >&5
24774 cat conftest.s >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24780 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24781 if test $gcc_cv_as_ix86_quad = yes; then
24783 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24788 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24789 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24792 gcc_cv_as_ix86_sahf=no
24793 if test x$gcc_cv_as != x; then
24794 $as_echo '.code64
24795 sahf' > conftest.s
24796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24802 then
24803 gcc_cv_as_ix86_sahf=yes
24804 else
24805 echo "configure: failed program was" >&5
24806 cat conftest.s >&5
24808 rm -f conftest.o conftest.s
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24812 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24813 if test $gcc_cv_as_ix86_sahf = yes; then
24815 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24820 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24821 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24823 else
24824 gcc_cv_as_ix86_interunit_movq=no
24825 if test x$gcc_cv_as != x; then
24826 $as_echo '.code64
24827 movq %mm0, %rax
24828 movq %rax, %xmm0' > conftest.s
24829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24835 then
24836 gcc_cv_as_ix86_interunit_movq=yes
24837 else
24838 echo "configure: failed program was" >&5
24839 cat conftest.s >&5
24841 rm -f conftest.o conftest.s
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24845 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24848 cat >>confdefs.h <<_ACEOF
24849 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24850 _ACEOF
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24854 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24855 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24857 else
24858 gcc_cv_as_ix86_hle=no
24859 if test x$gcc_cv_as != x; then
24860 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24867 then
24868 gcc_cv_as_ix86_hle=yes
24869 else
24870 echo "configure: failed program was" >&5
24871 cat conftest.s >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24877 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24878 if test $gcc_cv_as_ix86_hle = yes; then
24880 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24885 $as_echo_n "checking assembler for swap suffix... " >&6; }
24886 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24887 $as_echo_n "(cached) " >&6
24888 else
24889 gcc_cv_as_ix86_swap=no
24890 if test x$gcc_cv_as != x; then
24891 $as_echo 'movl.s %esp, %ebp' > conftest.s
24892 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24894 (eval $ac_try) 2>&5
24895 ac_status=$?
24896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24897 test $ac_status = 0; }; }
24898 then
24899 gcc_cv_as_ix86_swap=yes
24900 else
24901 echo "configure: failed program was" >&5
24902 cat conftest.s >&5
24904 rm -f conftest.o conftest.s
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24908 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24909 if test $gcc_cv_as_ix86_swap = yes; then
24911 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24916 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24917 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24918 $as_echo_n "(cached) " >&6
24919 else
24920 gcc_cv_as_ix86_diff_sect_delta=no
24921 if test x$gcc_cv_as != x; then
24922 $as_echo '.section .rodata
24923 .L1:
24924 .long .L2-.L1
24925 .long .L3-.L1
24926 .text
24927 .L3: nop
24928 .L2: nop' > 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_diff_sect_delta=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_diff_sect_delta" >&5
24945 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24946 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24948 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24952 # These two are used unconditionally by i386.[ch]; it is to be defined
24953 # to 1 if the feature is present, 0 otherwise.
24954 as_ix86_gotoff_in_data_opt=
24955 if test x$gas = xyes; then
24956 as_ix86_gotoff_in_data_opt="--32"
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24959 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24960 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 gcc_cv_as_ix86_gotoff_in_data=no
24964 if test $in_tree_gas = yes; then
24965 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24966 then gcc_cv_as_ix86_gotoff_in_data=yes
24968 elif test x$gcc_cv_as != x; then
24969 $as_echo ' .text
24970 .L0:
24972 .data
24973 .long .L0@GOTOFF' > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 gcc_cv_as_ix86_gotoff_in_data=yes
24982 else
24983 echo "configure: failed program was" >&5
24984 cat conftest.s >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24990 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24993 cat >>confdefs.h <<_ACEOF
24994 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24995 _ACEOF
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24999 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25000 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25002 else
25003 gcc_cv_as_ix86_rep_lock_prefix=no
25004 if test x$gcc_cv_as != x; then
25005 $as_echo 'rep movsl
25006 rep ret
25007 rep nop
25008 rep bsf %ecx, %eax
25009 rep bsr %ecx, %eax
25010 lock addl %edi, (%eax,%esi)
25011 lock orl $0, (%esp)' > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 gcc_cv_as_ix86_rep_lock_prefix=yes
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25024 rm -f conftest.o conftest.s
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25028 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25029 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25031 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25036 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25037 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_ix86_ud2=no
25041 if test x$gcc_cv_as != x; then
25042 $as_echo 'ud2' > conftest.s
25043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25048 test $ac_status = 0; }; }
25049 then
25050 gcc_cv_as_ix86_ud2=yes
25051 else
25052 echo "configure: failed program was" >&5
25053 cat conftest.s >&5
25055 rm -f conftest.o conftest.s
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25059 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25060 if test $gcc_cv_as_ix86_ud2 = yes; then
25062 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25067 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25068 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25069 $as_echo_n "(cached) " >&6
25070 else
25071 gcc_cv_as_ix86_tlsgdplt=no
25072 if test x$gcc_cv_as != x; then
25073 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 if test x$gcc_cv_ld != x \
25082 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25083 gcc_cv_as_ix86_tlsgdplt=yes
25085 rm -f conftest
25086 else
25087 echo "configure: failed program was" >&5
25088 cat conftest.s >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25094 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25095 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25097 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25101 conftest_s='
25102 .section .tdata,"aw'$tls_section_flag'",@progbits
25103 tls_ld:
25104 .section .text,"ax",@progbits
25105 call tls_ld@tlsldmplt'
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25107 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25108 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 gcc_cv_as_ix86_tlsldmplt=no
25112 if test x$gcc_cv_as != x; then
25113 $as_echo "$conftest_s" > conftest.s
25114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25119 test $ac_status = 0; }; }
25120 then
25121 if test x$gcc_cv_ld != x \
25122 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25123 gcc_cv_as_ix86_tlsldmplt=yes
25125 rm -f conftest
25126 else
25127 echo "configure: failed program was" >&5
25128 cat conftest.s >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25134 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25137 cat >>confdefs.h <<_ACEOF
25138 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25139 _ACEOF
25142 # Enforce 32-bit output with gas and gld.
25143 if test x$gas = xyes; then
25144 as_ix86_tls_ldm_opt="--32"
25146 if echo "$ld_ver" | grep GNU > /dev/null; then
25147 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25148 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25149 else
25150 ld_ix86_tls_ldm_opt="-melf_i386"
25153 conftest_s='
25154 .section .text,"ax",@progbits
25155 .globl _start
25156 .type _start, @function
25157 _start:
25158 leal value@tlsldm(%ebx), %eax
25159 call ___tls_get_addr@plt
25161 .section .tdata,"aw'$tls_section_flag'",@progbits
25162 .type value, @object
25163 value:'
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25165 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25166 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25167 $as_echo_n "(cached) " >&6
25168 else
25169 gcc_cv_as_ix86_tlsldm=no
25170 if test x$gcc_cv_as != x; then
25171 $as_echo "$conftest_s" > conftest.s
25172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 then
25179 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25180 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25181 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25182 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25183 gcc_cv_as_ix86_tlsldm=yes
25186 rm -f conftest
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25195 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25198 cat >>confdefs.h <<_ACEOF
25199 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25200 _ACEOF
25205 ia64*-*-*)
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25207 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25208 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25212 if test $in_tree_gas = yes; then
25213 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25214 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25216 elif test x$gcc_cv_as != x; then
25217 $as_echo ' .text
25218 addl r15 = @ltoffx(x#), gp
25220 ld8.mov r16 = [r15], x#' > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25237 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25238 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25240 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25246 powerpc*-*-*)
25247 case $target in
25248 *-*-aix*) conftest_s=' .machine "pwr5"
25249 .csect .text[PR]
25250 mfcr 3,128';;
25251 *-*-darwin*)
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25253 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25254 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25255 $as_echo_n "(cached) " >&6
25256 else
25257 gcc_cv_as_machine_directive=no
25258 if test x$gcc_cv_as != x; then
25259 $as_echo ' .machine ppc7400' > conftest.s
25260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262 (eval $ac_try) 2>&5
25263 ac_status=$?
25264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265 test $ac_status = 0; }; }
25266 then
25267 gcc_cv_as_machine_directive=yes
25268 else
25269 echo "configure: failed program was" >&5
25270 cat conftest.s >&5
25272 rm -f conftest.o conftest.s
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25276 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25278 if test x$gcc_cv_as_machine_directive != xyes; then
25279 echo "*** This target requires an assembler supporting \".machine\"" >&2
25280 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25281 test x$build = x$target && exit 1
25283 conftest_s=' .text
25284 mfcr r3,128';;
25285 *) conftest_s=' .machine power4
25286 .text
25287 mfcr 3,128';;
25288 esac
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25291 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25292 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25294 else
25295 gcc_cv_as_powerpc_mfcrf=no
25296 if test $in_tree_gas = yes; then
25297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25298 then gcc_cv_as_powerpc_mfcrf=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 -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_mfcrf=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_mfcrf" >&5
25318 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25319 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25321 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25325 case $target in
25326 *-*-aix*) conftest_s=' .machine "pwr5"
25327 .csect .text[PR]
25328 popcntb 3,3';;
25329 *) conftest_s=' .machine power5
25330 .text
25331 popcntb 3,3';;
25332 esac
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25335 $as_echo_n "checking assembler for popcntb support... " >&6; }
25336 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_powerpc_popcntb=no
25340 if test $in_tree_gas = yes; then
25341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25342 then gcc_cv_as_powerpc_popcntb=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 -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_popcntb=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_popcntb" >&5
25362 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25363 if test $gcc_cv_as_powerpc_popcntb = yes; then
25365 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25369 case $target in
25370 *-*-aix*) conftest_s=' .machine "pwr5x"
25371 .csect .text[PR]
25372 frin 1,1';;
25373 *) conftest_s=' .machine power5
25374 .text
25375 frin 1,1';;
25376 esac
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25379 $as_echo_n "checking assembler for fp round support... " >&6; }
25380 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 gcc_cv_as_powerpc_fprnd=no
25384 if test $in_tree_gas = yes; then
25385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25386 then gcc_cv_as_powerpc_fprnd=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 -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_fprnd=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_fprnd" >&5
25406 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25407 if test $gcc_cv_as_powerpc_fprnd = yes; then
25409 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25413 case $target in
25414 *-*-aix*) conftest_s=' .machine "pwr6"
25415 .csect .text[PR]
25416 mffgpr 1,3';;
25417 *) conftest_s=' .machine power6
25418 .text
25419 mffgpr 1,3';;
25420 esac
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25423 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25424 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25426 else
25427 gcc_cv_as_powerpc_mfpgpr=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_mfpgpr=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 -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_mfpgpr=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_mfpgpr" >&5
25450 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25451 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25453 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25457 case $target in
25458 *-*-aix*) conftest_s=' .csect .text[PR]
25459 LCF..0:
25460 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25461 *-*-darwin*)
25462 conftest_s=' .text
25463 LCF0:
25464 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25465 *) conftest_s=' .text
25466 .LCF0:
25467 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25468 esac
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25471 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25472 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25474 else
25475 gcc_cv_as_powerpc_rel16=no
25476 if test $in_tree_gas = yes; then
25477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25478 then gcc_cv_as_powerpc_rel16=yes
25480 elif test x$gcc_cv_as != x; then
25481 $as_echo "$conftest_s" > conftest.s
25482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484 (eval $ac_try) 2>&5
25485 ac_status=$?
25486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487 test $ac_status = 0; }; }
25488 then
25489 gcc_cv_as_powerpc_rel16=yes
25490 else
25491 echo "configure: failed program was" >&5
25492 cat conftest.s >&5
25494 rm -f conftest.o conftest.s
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25498 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25499 if test $gcc_cv_as_powerpc_rel16 = yes; then
25501 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25505 case $target in
25506 *-*-aix*) conftest_s=' .machine "pwr6"
25507 .csect .text[PR]
25508 cmpb 3,4,5';;
25509 *) conftest_s=' .machine power6
25510 .text
25511 cmpb 3,4,5';;
25512 esac
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25515 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25516 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 gcc_cv_as_powerpc_cmpb=no
25520 if test $in_tree_gas = yes; then
25521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25522 then gcc_cv_as_powerpc_cmpb=yes
25524 elif test x$gcc_cv_as != x; then
25525 $as_echo "$conftest_s" > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 gcc_cv_as_powerpc_cmpb=yes
25534 else
25535 echo "configure: failed program was" >&5
25536 cat conftest.s >&5
25538 rm -f conftest.o conftest.s
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25542 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25543 if test $gcc_cv_as_powerpc_cmpb = yes; then
25545 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25549 case $target in
25550 *-*-aix*) conftest_s=' .machine "pwr6"
25551 .csect .text[PR]
25552 dadd 1,2,3';;
25553 *) conftest_s=' .machine power6
25554 .text
25555 dadd 1,2,3';;
25556 esac
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25559 $as_echo_n "checking assembler for decimal float support... " >&6; }
25560 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_powerpc_dfp=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25566 then gcc_cv_as_powerpc_dfp=yes
25568 elif test x$gcc_cv_as != x; then
25569 $as_echo "$conftest_s" > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_powerpc_dfp=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25586 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25587 if test $gcc_cv_as_powerpc_dfp = yes; then
25589 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25593 case $target in
25594 *-*-aix*) conftest_s=' .machine "pwr7"
25595 .csect .text[PR]
25596 lxvd2x 1,2,3';;
25597 *) conftest_s=' .machine power7
25598 .text
25599 lxvd2x 1,2,3';;
25600 esac
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25603 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25604 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25605 $as_echo_n "(cached) " >&6
25606 else
25607 gcc_cv_as_powerpc_vsx=no
25608 if test $in_tree_gas = yes; then
25609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25610 then gcc_cv_as_powerpc_vsx=yes
25612 elif test x$gcc_cv_as != x; then
25613 $as_echo "$conftest_s" > conftest.s
25614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25616 (eval $ac_try) 2>&5
25617 ac_status=$?
25618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25619 test $ac_status = 0; }; }
25620 then
25621 gcc_cv_as_powerpc_vsx=yes
25622 else
25623 echo "configure: failed program was" >&5
25624 cat conftest.s >&5
25626 rm -f conftest.o conftest.s
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25630 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25631 if test $gcc_cv_as_powerpc_vsx = yes; then
25633 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25637 case $target in
25638 *-*-aix*) conftest_s=' .machine "pwr7"
25639 .csect .text[PR]
25640 popcntd 3,3';;
25641 *) conftest_s=' .machine power7
25642 .text
25643 popcntd 3,3';;
25644 esac
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25647 $as_echo_n "checking assembler for popcntd support... " >&6; }
25648 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_powerpc_popcntd=no
25652 if test $in_tree_gas = yes; then
25653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25654 then gcc_cv_as_powerpc_popcntd=yes
25656 elif test x$gcc_cv_as != x; then
25657 $as_echo "$conftest_s" > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 gcc_cv_as_powerpc_popcntd=yes
25666 else
25667 echo "configure: failed program was" >&5
25668 cat conftest.s >&5
25670 rm -f conftest.o conftest.s
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25674 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25675 if test $gcc_cv_as_powerpc_popcntd = yes; then
25677 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25681 case $target in
25682 *-*-aix*) conftest_s=' .machine "pwr8"
25683 .csect .text[PR]';;
25684 *) conftest_s=' .machine power8
25685 .text';;
25686 esac
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25689 $as_echo_n "checking assembler for power8 support... " >&6; }
25690 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25691 $as_echo_n "(cached) " >&6
25692 else
25693 gcc_cv_as_powerpc_power8=no
25694 if test $in_tree_gas = yes; then
25695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25696 then gcc_cv_as_powerpc_power8=yes
25698 elif test x$gcc_cv_as != x; then
25699 $as_echo "$conftest_s" > conftest.s
25700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705 test $ac_status = 0; }; }
25706 then
25707 gcc_cv_as_powerpc_power8=yes
25708 else
25709 echo "configure: failed program was" >&5
25710 cat conftest.s >&5
25712 rm -f conftest.o conftest.s
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25716 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25717 if test $gcc_cv_as_powerpc_power8 = yes; then
25719 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25723 case $target in
25724 *-*-aix*) conftest_s=' .csect .text[PR]
25725 lwsync';;
25726 *) conftest_s=' .text
25727 lwsync';;
25728 esac
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25731 $as_echo_n "checking assembler for lwsync support... " >&6; }
25732 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25733 $as_echo_n "(cached) " >&6
25734 else
25735 gcc_cv_as_powerpc_lwsync=no
25736 if test $in_tree_gas = yes; then
25737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25738 then gcc_cv_as_powerpc_lwsync=yes
25740 elif test x$gcc_cv_as != x; then
25741 $as_echo "$conftest_s" > conftest.s
25742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25747 test $ac_status = 0; }; }
25748 then
25749 gcc_cv_as_powerpc_lwsync=yes
25750 else
25751 echo "configure: failed program was" >&5
25752 cat conftest.s >&5
25754 rm -f conftest.o conftest.s
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25758 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25759 if test $gcc_cv_as_powerpc_lwsync = yes; then
25761 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25765 case $target in
25766 *-*-aix*) conftest_s=' .machine "476"
25767 .csect .text[PR]
25768 dci 0';;
25769 *) conftest_s=' .machine "476"
25770 .text
25771 dci 0';;
25772 esac
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25775 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25776 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_powerpc_dci=no
25780 if test $in_tree_gas = yes; then
25781 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25782 then gcc_cv_as_powerpc_dci=yes
25784 elif test x$gcc_cv_as != x; then
25785 $as_echo "$conftest_s" > conftest.s
25786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; }; }
25792 then
25793 gcc_cv_as_powerpc_dci=yes
25794 else
25795 echo "configure: failed program was" >&5
25796 cat conftest.s >&5
25798 rm -f conftest.o conftest.s
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25802 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25803 if test $gcc_cv_as_powerpc_dci = yes; then
25805 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25810 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25811 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25812 $as_echo_n "(cached) " >&6
25813 else
25814 gcc_cv_as_powerpc_gnu_attribute=no
25815 if test $in_tree_gas = yes; then
25816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25817 then gcc_cv_as_powerpc_gnu_attribute=yes
25819 elif test x$gcc_cv_as != x; then
25820 $as_echo '.gnu_attribute 4,1' > conftest.s
25821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; }; }
25827 then
25828 gcc_cv_as_powerpc_gnu_attribute=yes
25829 else
25830 echo "configure: failed program was" >&5
25831 cat conftest.s >&5
25833 rm -f conftest.o conftest.s
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25837 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25838 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25840 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25845 $as_echo_n "checking assembler for tls marker support... " >&6; }
25846 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25849 gcc_cv_as_powerpc_tls_markers=no
25850 if test $in_tree_gas = yes; then
25851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25852 then gcc_cv_as_powerpc_tls_markers=yes
25854 elif test x$gcc_cv_as != x; then
25855 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25858 (eval $ac_try) 2>&5
25859 ac_status=$?
25860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25861 test $ac_status = 0; }; }
25862 then
25863 gcc_cv_as_powerpc_tls_markers=yes
25864 else
25865 echo "configure: failed program was" >&5
25866 cat conftest.s >&5
25868 rm -f conftest.o conftest.s
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25872 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25873 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25875 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25879 case $target in
25880 *-*-aix*)
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25882 $as_echo_n "checking assembler for .ref support... " >&6; }
25883 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25884 $as_echo_n "(cached) " >&6
25885 else
25886 gcc_cv_as_aix_ref=no
25887 if test $in_tree_gas = yes; then
25888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25889 then gcc_cv_as_aix_ref=yes
25891 elif test x$gcc_cv_as != x; then
25892 $as_echo ' .csect stuff[rw]
25893 stuff:
25894 .long 1
25895 .extern sym
25896 .ref sym
25897 ' > conftest.s
25898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25904 then
25905 gcc_cv_as_aix_ref=yes
25906 else
25907 echo "configure: failed program was" >&5
25908 cat conftest.s >&5
25910 rm -f conftest.o conftest.s
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25914 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25915 if test $gcc_cv_as_aix_ref = yes; then
25917 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25921 esac
25924 mips*-*-*)
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25926 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25927 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25929 else
25930 gcc_cv_as_mips_explicit_relocs=no
25931 if test $in_tree_gas = yes; then
25932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25933 then gcc_cv_as_mips_explicit_relocs=yes
25935 elif test x$gcc_cv_as != x; then
25936 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25942 test $ac_status = 0; }; }
25943 then
25944 gcc_cv_as_mips_explicit_relocs=yes
25945 else
25946 echo "configure: failed program was" >&5
25947 cat conftest.s >&5
25949 rm -f conftest.o conftest.s
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25953 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25954 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25955 if test x$target_cpu_default = x
25956 then target_cpu_default=MASK_EXPLICIT_RELOCS
25957 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25961 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25962 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25965 gcc_cv_as_mips_no_shared=no
25966 if test $in_tree_gas = yes; then
25967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25968 then gcc_cv_as_mips_no_shared=yes
25970 elif test x$gcc_cv_as != x; then
25971 $as_echo 'nop' > conftest.s
25972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25978 then
25979 gcc_cv_as_mips_no_shared=yes
25980 else
25981 echo "configure: failed program was" >&5
25982 cat conftest.s >&5
25984 rm -f conftest.o conftest.s
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25988 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25989 if test $gcc_cv_as_mips_no_shared = yes; then
25991 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25996 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25997 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25998 $as_echo_n "(cached) " >&6
25999 else
26000 gcc_cv_as_mips_gnu_attribute=no
26001 if test $in_tree_gas = yes; then
26002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26003 then gcc_cv_as_mips_gnu_attribute=yes
26005 elif test x$gcc_cv_as != x; then
26006 $as_echo '.gnu_attribute 4,1' > conftest.s
26007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26012 test $ac_status = 0; }; }
26013 then
26014 gcc_cv_as_mips_gnu_attribute=yes
26015 else
26016 echo "configure: failed program was" >&5
26017 cat conftest.s >&5
26019 rm -f conftest.o conftest.s
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26023 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26024 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26026 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26031 $as_echo_n "checking assembler for .micromips support... " >&6; }
26032 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26033 $as_echo_n "(cached) " >&6
26034 else
26035 gcc_cv_as_micromips_support=no
26036 if test x$gcc_cv_as != x; then
26037 $as_echo '.set micromips' > conftest.s
26038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26040 (eval $ac_try) 2>&5
26041 ac_status=$?
26042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26043 test $ac_status = 0; }; }
26044 then
26045 gcc_cv_as_micromips_support=yes
26046 else
26047 echo "configure: failed program was" >&5
26048 cat conftest.s >&5
26050 rm -f conftest.o conftest.s
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26054 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26055 if test $gcc_cv_as_micromips_support = yes; then
26057 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26062 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26063 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26064 $as_echo_n "(cached) " >&6
26065 else
26066 gcc_cv_as_mips_dtprelword=no
26067 if test $in_tree_gas = yes; then
26068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26069 then gcc_cv_as_mips_dtprelword=yes
26071 elif test x$gcc_cv_as != x; then
26072 $as_echo '.section .tdata,"awT",@progbits
26074 .word 2
26075 .text
26076 .dtprelword x+0x8000' > conftest.s
26077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26080 ac_status=$?
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26083 then
26084 gcc_cv_as_mips_dtprelword=yes
26085 else
26086 echo "configure: failed program was" >&5
26087 cat conftest.s >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26093 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26094 if test $gcc_cv_as_mips_dtprelword = yes; then
26096 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26101 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26102 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26103 $as_echo_n "(cached) " >&6
26104 else
26105 gcc_cv_as_mips_dspr1_mult=no
26106 if test x$gcc_cv_as != x; then
26107 $as_echo ' .set mips32r2
26108 .set nodspr2
26109 .set dsp
26110 madd $ac3,$4,$5
26111 maddu $ac3,$4,$5
26112 msub $ac3,$4,$5
26113 msubu $ac3,$4,$5
26114 mult $ac3,$4,$5
26115 multu $ac3,$4,$5' > conftest.s
26116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121 test $ac_status = 0; }; }
26122 then
26123 gcc_cv_as_mips_dspr1_mult=yes
26124 else
26125 echo "configure: failed program was" >&5
26126 cat conftest.s >&5
26128 rm -f conftest.o conftest.s
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26132 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26133 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26135 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26140 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26141 gcc_cv_as_ld_jalr_reloc=no
26142 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26143 if test $in_tree_ld = yes ; then
26144 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 \
26145 && test $in_tree_ld_is_elf = yes; then
26146 gcc_cv_as_ld_jalr_reloc=yes
26148 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26149 echo ' .ent x' > conftest.s
26150 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26151 echo ' lw $25,%call16(y)($28)' >> conftest.s
26152 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26153 echo '1: jalr $25' >> conftest.s
26154 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26155 echo '1: jalr $25' >> conftest.s
26156 echo ' .end x' >> conftest.s
26157 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26158 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26159 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26160 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26161 gcc_cv_as_ld_jalr_reloc=yes
26164 rm -f conftest.*
26167 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26168 if test x$target_cpu_default = x; then
26169 target_cpu_default=MASK_RELAX_PIC_CALLS
26170 else
26171 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26175 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26178 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26179 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26181 else
26182 gcc_cv_ld_mips_personality_relaxation=no
26183 if test $in_tree_ld = yes ; then
26184 if test "$gcc_cv_gld_major_version" -eq 2 \
26185 -a "$gcc_cv_gld_minor_version" -ge 21 \
26186 -o "$gcc_cv_gld_major_version" -gt 2; then
26187 gcc_cv_ld_mips_personality_relaxation=yes
26189 elif test x$gcc_cv_as != x \
26190 -a x$gcc_cv_ld != x \
26191 -a x$gcc_cv_readelf != x ; then
26192 cat > conftest.s <<EOF
26193 .cfi_startproc
26194 .cfi_personality 0x80,indirect_ptr
26195 .ent test
26196 test:
26198 .end test
26199 .cfi_endproc
26201 .section .data,"aw",@progbits
26202 indirect_ptr:
26203 .dc.a personality
26205 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26206 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26207 if $gcc_cv_readelf -d conftest 2>&1 \
26208 | grep TEXTREL > /dev/null 2>&1; then
26210 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26211 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26213 else
26214 gcc_cv_ld_mips_personality_relaxation=yes
26218 rm -f conftest.s conftest.o conftest
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26221 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26222 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26224 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26229 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26230 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26232 else
26233 gcc_cv_as_mips_nan=no
26234 if test x$gcc_cv_as != x; then
26235 $as_echo '' > conftest.s
26236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26239 ac_status=$?
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26242 then
26243 gcc_cv_as_mips_nan=yes
26244 else
26245 echo "configure: failed program was" >&5
26246 cat conftest.s >&5
26248 rm -f conftest.o conftest.s
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26252 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26253 if test $gcc_cv_as_mips_nan = yes; then
26255 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26258 if test x$gcc_cv_as_mips_nan = xno \
26259 && test x$with_nan != x; then
26260 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26263 esac
26265 # Mips and HP-UX need the GNU assembler.
26266 # Linux on IA64 might be able to use the Intel assembler.
26268 case "$target" in
26269 mips*-*-* | *-*-hpux* )
26270 if test x$gas_flag = xyes \
26271 || test x"$host" != x"$build" \
26272 || test ! -x "$gcc_cv_as" \
26273 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26275 else
26276 echo "*** This configuration requires the GNU assembler" >&2
26277 exit 1
26280 esac
26282 # ??? Not all targets support dwarf2 debug_line, even within a version
26283 # of gas. Moreover, we need to emit a valid instruction to trigger any
26284 # info to the output file. So, as supported targets are added to gas 2.11,
26285 # add some instruction here to (also) show we expect this might work.
26286 # ??? Once 2.11 is released, probably need to add first known working
26287 # version to the per-target configury.
26288 case "$cpu_type" in
26289 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26290 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26291 | xstormy16 | xtensa)
26292 insn="nop"
26294 ia64 | s390)
26295 insn="nop 0"
26297 mmix)
26298 insn="swym 0"
26300 esac
26301 if test x"$insn" != x; then
26302 conftest_s="\
26303 .file 1 \"conftest.s\"
26304 .loc 1 3 0
26305 $insn"
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26307 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26308 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_dwarf2_debug_line=no
26312 if test $in_tree_gas = yes; then
26313 if test $in_tree_gas_is_elf = yes \
26314 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26315 then gcc_cv_as_dwarf2_debug_line=yes
26317 elif test x$gcc_cv_as != x; then
26318 $as_echo "$conftest_s" > conftest.s
26319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26325 then
26326 if test x$gcc_cv_objdump != x \
26327 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26328 | grep debug_line > /dev/null 2>&1; then
26329 gcc_cv_as_dwarf2_debug_line=yes
26331 else
26332 echo "configure: failed program was" >&5
26333 cat conftest.s >&5
26335 rm -f conftest.o conftest.s
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26339 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26342 # The .debug_line file table must be in the exact order that
26343 # we specified the files, since these indices are also used
26344 # by DW_AT_decl_file. Approximate this test by testing if
26345 # the assembler bitches if the same index is assigned twice.
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26347 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26348 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26349 $as_echo_n "(cached) " >&6
26350 else
26351 gcc_cv_as_dwarf2_file_buggy=no
26352 if test x$gcc_cv_as != x; then
26353 $as_echo ' .file 1 "foo.s"
26354 .file 1 "bar.s"' > conftest.s
26355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26360 test $ac_status = 0; }; }
26361 then
26362 gcc_cv_as_dwarf2_file_buggy=yes
26363 else
26364 echo "configure: failed program was" >&5
26365 cat conftest.s >&5
26367 rm -f conftest.o conftest.s
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26371 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26374 if test $gcc_cv_as_dwarf2_debug_line = yes \
26375 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26377 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26382 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26383 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26385 else
26386 gcc_cv_as_gdwarf2_flag=no
26387 if test $in_tree_gas = yes; then
26388 if test $in_tree_gas_is_elf = yes \
26389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26390 then gcc_cv_as_gdwarf2_flag=yes
26392 elif test x$gcc_cv_as != x; then
26393 $as_echo "$insn" > conftest.s
26394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; }
26400 then
26401 gcc_cv_as_gdwarf2_flag=yes
26402 else
26403 echo "configure: failed program was" >&5
26404 cat conftest.s >&5
26406 rm -f conftest.o conftest.s
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26410 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26411 if test $gcc_cv_as_gdwarf2_flag = yes; then
26413 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26418 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26419 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26420 $as_echo_n "(cached) " >&6
26421 else
26422 gcc_cv_as_gstabs_flag=no
26423 if test $in_tree_gas = yes; then
26424 if test $in_tree_gas_is_elf = yes \
26425 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26426 then gcc_cv_as_gstabs_flag=yes
26428 elif test x$gcc_cv_as != x; then
26429 $as_echo "$insn" > conftest.s
26430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26435 test $ac_status = 0; }; }
26436 then
26437 gcc_cv_as_gstabs_flag=yes
26438 else
26439 echo "configure: failed program was" >&5
26440 cat conftest.s >&5
26442 rm -f conftest.o conftest.s
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26446 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26447 if test $gcc_cv_as_gstabs_flag = yes; then
26449 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26454 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26455 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26456 $as_echo_n "(cached) " >&6
26457 else
26458 gcc_cv_as_debug_prefix_map_flag=no
26459 if test $in_tree_gas = yes; then
26460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26461 then gcc_cv_as_debug_prefix_map_flag=yes
26463 elif test x$gcc_cv_as != x; then
26464 $as_echo "$insn" > conftest.s
26465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467 (eval $ac_try) 2>&5
26468 ac_status=$?
26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470 test $ac_status = 0; }; }
26471 then
26472 gcc_cv_as_debug_prefix_map_flag=yes
26473 else
26474 echo "configure: failed program was" >&5
26475 cat conftest.s >&5
26477 rm -f conftest.o conftest.s
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26481 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26482 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26484 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26490 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26491 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494 gcc_cv_as_lcomm_with_alignment=no
26495 if test x$gcc_cv_as != x; then
26496 $as_echo '.lcomm bar,4,16' > conftest.s
26497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499 (eval $ac_try) 2>&5
26500 ac_status=$?
26501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502 test $ac_status = 0; }; }
26503 then
26504 gcc_cv_as_lcomm_with_alignment=yes
26505 else
26506 echo "configure: failed program was" >&5
26507 cat conftest.s >&5
26509 rm -f conftest.o conftest.s
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26513 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26514 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26516 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26520 if test x$with_sysroot = x && test x$host = x$target \
26521 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26522 && test "$prefix" != "NONE"; then
26524 cat >>confdefs.h <<_ACEOF
26525 #define PREFIX_INCLUDE_DIR "$prefix/include"
26526 _ACEOF
26530 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26531 if test "x$with_headers" != x; then
26532 target_header_dir=$with_headers
26533 elif test "x$with_sysroot" = x; then
26534 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26535 elif test "x$with_build_sysroot" != "x"; then
26536 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26537 elif test "x$with_sysroot" = xyes; then
26538 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26539 else
26540 target_header_dir="${with_sysroot}${native_system_header_dir}"
26542 else
26543 target_header_dir=${native_system_header_dir}
26546 # Determine the version of glibc, if any, used on the target.
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26548 $as_echo_n "checking for target glibc version... " >&6; }
26550 # Check whether --with-glibc-version was given.
26551 if test "${with_glibc_version+set}" = set; then :
26552 withval=$with_glibc_version;
26553 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26554 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26555 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26556 else
26557 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26559 else
26561 glibc_version_major=0
26562 glibc_version_minor=0
26563 if test -f $target_header_dir/features.h \
26564 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26565 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26566 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26567 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26572 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26574 # Check whether --enable-gnu-unique-object was given.
26575 if test "${enable_gnu_unique_object+set}" = set; then :
26576 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26577 yes | no) ;;
26578 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26579 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26580 esac
26581 else
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26583 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26584 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26585 $as_echo_n "(cached) " >&6
26586 else
26587 gcc_cv_as_gnu_unique_object=no
26588 if test $in_tree_gas = yes; then
26589 if test $in_tree_gas_is_elf = yes \
26590 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26591 then gcc_cv_as_gnu_unique_object=yes
26593 elif test x$gcc_cv_as != x; then
26594 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26597 (eval $ac_try) 2>&5
26598 ac_status=$?
26599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }; }
26601 then
26602 gcc_cv_as_gnu_unique_object=yes
26603 else
26604 echo "configure: failed program was" >&5
26605 cat conftest.s >&5
26607 rm -f conftest.o conftest.s
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26611 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26612 if test $gcc_cv_as_gnu_unique_object = yes; then
26613 # We need to unquote above to to use the definition from config.gcc.
26614 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26616 if test $glibc_version_major -gt 2 \
26617 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26618 enable_gnu_unique_object=yes
26624 if test x$enable_gnu_unique_object = xyes; then
26626 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26631 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26632 if test "${gcc_cv_as_line_zero+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26634 else
26635 gcc_cv_as_line_zero=no
26636 if test $in_tree_gas = yes; then
26637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26638 then gcc_cv_as_line_zero=yes
26640 elif test "x$gcc_cv_as" != x; then
26641 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26642 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; } &&
26648 test "x`cat conftest.out`" = x
26649 then
26650 gcc_cv_as_line_zero=yes
26651 else
26652 echo "configure: failed program was" >&5
26653 cat conftest.s >&5
26654 echo "configure: error output was" >&5
26655 cat conftest.out >&5
26657 rm -f conftest.o conftest.s conftest.out
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26661 $as_echo "$gcc_cv_as_line_zero" >&6; }
26662 if test "x$gcc_cv_as_line_zero" = xyes; then
26664 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26669 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26670 gcc_cv_ld_eh_frame_hdr=no
26671 if test $in_tree_ld = yes ; then
26672 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 \
26673 && test $in_tree_ld_is_elf = yes; then
26674 gcc_cv_ld_eh_frame_hdr=yes
26676 elif test x$gcc_cv_ld != x; then
26677 if echo "$ld_ver" | grep GNU > /dev/null; then
26678 # Check if linker supports --eh-frame-hdr option
26679 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26680 gcc_cv_ld_eh_frame_hdr=yes
26682 else
26683 case "$target" in
26684 *-*-solaris2*)
26685 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26686 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26687 gcc_cv_ld_eh_frame_hdr=yes
26690 esac
26694 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26696 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26700 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26703 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26704 gcc_cv_ld_eh_frame_ciev3=no
26705 if test $in_tree_ld = yes ; then
26706 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 \
26707 && test $in_tree_ld_is_elf = yes; then
26708 gcc_cv_ld_eh_frame_ciev3=yes
26710 elif test x$gcc_cv_ld != x; then
26711 if echo "$ld_ver" | grep GNU > /dev/null; then
26712 gcc_cv_ld_eh_frame_ciev3=yes
26713 if test 0"$ld_date" -lt 20040513; then
26714 if test -n "$ld_date"; then
26715 # If there was date string, but was earlier than 2004-05-13, fail
26716 gcc_cv_ld_eh_frame_ciev3=no
26717 elif test "$ld_vers_major" -lt 2; then
26718 gcc_cv_ld_eh_frame_ciev3=no
26719 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26720 gcc_cv_ld_eh_frame_ciev3=no
26723 else
26724 case "$target" in
26725 *-*-solaris2*)
26726 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26727 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26728 gcc_cv_ld_eh_frame_ciev3=yes
26731 esac
26735 cat >>confdefs.h <<_ACEOF
26736 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26737 _ACEOF
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26740 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26743 $as_echo_n "checking linker position independent executable support... " >&6; }
26744 gcc_cv_ld_pie=no
26745 if test $in_tree_ld = yes ; then
26746 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 \
26747 && test $in_tree_ld_is_elf = yes; then
26748 gcc_cv_ld_pie=yes
26750 elif test x$gcc_cv_ld != x; then
26751 # Check if linker supports -pie option
26752 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26753 gcc_cv_ld_pie=yes
26756 if test x"$gcc_cv_ld_pie" = xyes; then
26758 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26762 $as_echo "$gcc_cv_ld_pie" >&6; }
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26765 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26766 gcc_cv_ld_eh_gc_sections=no
26767 if test $in_tree_ld = yes ; then
26768 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 \
26769 && test $in_tree_ld_is_elf = yes; then
26770 gcc_cv_ld_eh_gc_sections=yes
26772 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26773 cat > conftest.s <<EOF
26774 .section .text
26775 .globl _start
26776 .type _start, @function
26777 _start:
26778 .long foo
26779 .size _start, .-_start
26780 .section .text.foo,"ax",@progbits
26781 .type foo, @function
26782 foo:
26783 .long 0
26784 .size foo, .-foo
26785 .section .gcc_except_table.foo,"a",@progbits
26786 .L0:
26787 .long 0
26788 .section .eh_frame,"a",@progbits
26789 .long .L0
26791 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26792 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26793 | grep "gc-sections option ignored" > /dev/null; then
26794 gcc_cv_ld_eh_gc_sections=no
26795 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26796 | grep gcc_except_table > /dev/null; then
26797 gcc_cv_ld_eh_gc_sections=yes
26798 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26799 if test x$gcc_cv_as_comdat_group != xyes; then
26800 gcc_cv_ld_eh_gc_sections=no
26801 cat > conftest.s <<EOF
26802 .section .text
26803 .globl _start
26804 .type _start, @function
26805 _start:
26806 .long foo
26807 .size _start, .-_start
26808 .section .gnu.linkonce.t.foo,"ax",@progbits
26809 .type foo, @function
26810 foo:
26811 .long 0
26812 .size foo, .-foo
26813 .section .gcc_except_table.foo,"a",@progbits
26814 .L0:
26815 .long 0
26816 .section .eh_frame,"a",@progbits
26817 .long .L0
26819 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26820 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26821 | grep "gc-sections option ignored" > /dev/null; then
26822 gcc_cv_ld_eh_gc_sections=no
26823 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26824 | grep gcc_except_table > /dev/null; then
26825 gcc_cv_ld_eh_gc_sections=yes
26831 rm -f conftest.s conftest.o conftest
26833 case "$target" in
26834 hppa*-*-linux*)
26835 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26836 gcc_cv_ld_eh_gc_sections=no
26838 esac
26839 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26841 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26845 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26848 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26849 gcc_cv_ld_eh_gc_sections_bug=no
26850 if test $in_tree_ld = yes ; then
26851 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 \
26852 && test $in_tree_ld_is_elf = yes; then
26853 gcc_cv_ld_eh_gc_sections_bug=yes
26855 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
26856 gcc_cv_ld_eh_gc_sections_bug=yes
26857 cat > conftest.s <<EOF
26858 .section .text
26859 .globl _start
26860 .type _start, @function
26861 _start:
26862 .long foo
26863 .size _start, .-_start
26864 .section .text.startup.foo,"ax",@progbits
26865 .type foo, @function
26866 foo:
26867 .long 0
26868 .size foo, .-foo
26869 .section .gcc_except_table.foo,"a",@progbits
26870 .L0:
26871 .long 0
26872 .section .eh_frame,"a",@progbits
26873 .long .L0
26875 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26876 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26877 | grep "gc-sections option ignored" > /dev/null; then
26879 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26880 | grep gcc_except_table > /dev/null; then
26881 gcc_cv_ld_eh_gc_sections_bug=no
26884 rm -f conftest.s conftest.o conftest
26886 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26888 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26892 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26894 # --------
26895 # UNSORTED
26896 # --------
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26899 $as_echo_n "checking linker --as-needed support... " >&6; }
26900 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26901 $as_echo_n "(cached) " >&6
26902 else
26903 gcc_cv_ld_as_needed=no
26904 gcc_cv_ld_as_needed_option='--as-needed'
26905 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26906 if test $in_tree_ld = yes ; then
26907 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 \
26908 && test $in_tree_ld_is_elf = yes; then
26909 gcc_cv_ld_as_needed=yes
26911 elif test x$gcc_cv_ld != x; then
26912 # Check if linker supports --as-needed and --no-as-needed options
26913 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26914 gcc_cv_ld_as_needed=yes
26915 else
26916 case "$target" in
26917 # Solaris 2 ld always supports -z ignore/-z record.
26918 *-*-solaris2*)
26919 gcc_cv_ld_as_needed=yes
26920 gcc_cv_ld_as_needed_option="-z ignore"
26921 gcc_cv_ld_no_as_needed_option="-z record"
26923 esac
26926 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26927 # dl_iterate_phdr, i.e. since Solaris 11.
26928 case "$target" in
26929 *-*-solaris2.1[1-9]*)
26930 case "$target" in
26931 i?86-*-* | x86_64-*-*)
26932 if echo "$ld_ver" | grep GNU > /dev/null; then
26933 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26934 gcc_cv_ld_as_needed=no
26937 esac
26939 *-*-solaris2*)
26940 gcc_cv_ld_as_needed=no
26942 esac
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26946 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26947 if test x"$gcc_cv_ld_as_needed" = xyes; then
26949 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26952 cat >>confdefs.h <<_ACEOF
26953 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26954 _ACEOF
26957 cat >>confdefs.h <<_ACEOF
26958 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26959 _ACEOF
26963 case "$target:$tm_file" in
26964 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26965 case "$target" in
26966 *le-*-linux*)
26967 emul_name="-melf64lppc"
26969 *-*-linux*)
26970 emul_name="-melf64ppc"
26972 *-*-freebsd*)
26973 emul_name="-melf64ppc_fbsd"
26975 esac
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26977 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26978 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26979 $as_echo_n "(cached) " >&6
26980 else
26981 gcc_cv_ld_no_dot_syms=no
26982 if test x"$ld_is_gold" = xyes; then
26983 gcc_cv_ld_no_dot_syms=yes
26984 elif test $in_tree_ld = yes ; then
26985 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
26986 gcc_cv_ld_no_dot_syms=yes
26988 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26989 cat > conftest1.s <<EOF
26990 .text
26991 bl .foo
26993 cat > conftest2.s <<EOF
26994 .section ".opd","aw"
26995 .align 3
26996 .globl foo
26997 .type foo,@function
26998 foo:
26999 .quad .LEfoo,.TOC.@tocbase,0
27000 .text
27001 .LEfoo:
27003 .size foo,.-.LEfoo
27005 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27006 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27007 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27008 gcc_cv_ld_no_dot_syms=yes
27010 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27015 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27016 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27018 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27023 $as_echo_n "checking linker large toc support... " >&6; }
27024 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27025 $as_echo_n "(cached) " >&6
27026 else
27027 gcc_cv_ld_large_toc=no
27028 if test x"$ld_is_gold" = xyes; then
27029 gcc_cv_ld_large_toc=yes
27030 elif test $in_tree_ld = yes ; then
27031 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
27032 gcc_cv_ld_large_toc=yes
27034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27035 cat > conftest.s <<EOF
27036 .section ".tbss","awT",@nobits
27037 .align 3
27038 ie0: .space 8
27039 .global _start
27040 .text
27041 _start:
27042 addis 9,13,ie0@got@tprel@ha
27043 ld 9,ie0@got@tprel@l(9)
27045 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27046 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27047 gcc_cv_ld_large_toc=yes
27049 rm -f conftest conftest.o conftest.s
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27054 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27055 if test x"$gcc_cv_ld_large_toc" = xyes; then
27057 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27061 esac
27063 case "$target" in
27064 *-*-aix*)
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27066 $as_echo_n "checking linker large toc support... " >&6; }
27067 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27068 $as_echo_n "(cached) " >&6
27069 else
27070 gcc_cv_ld_large_toc=no
27071 if test x$gcc_cv_as != x ; then
27072 cat > conftest.s <<EOF
27073 .toc
27074 LC..1:
27075 .tc a[TC],a[RW]
27076 .extern a[RW]
27077 .csect .text[PR]
27078 .largetoctest:
27079 addis 9,LC..1@u(2)
27080 ld 3,LC..1@l(9)
27082 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27083 gcc_cv_ld_large_toc=yes
27085 rm -f conftest conftest.o conftest.s
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27090 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27091 if test x"$gcc_cv_ld_large_toc" = xyes; then
27093 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27097 esac
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27100 $as_echo_n "checking linker --build-id support... " >&6; }
27101 if test "${gcc_cv_ld_buildid+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27103 else
27104 gcc_cv_ld_buildid=no
27105 if test $in_tree_ld = yes ; then
27106 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27107 "$gcc_cv_gld_minor_version" -ge 18 -o \
27108 "$gcc_cv_gld_major_version" -gt 2 \
27109 && test $in_tree_ld_is_elf = yes; then
27110 gcc_cv_ld_buildid=yes
27112 elif test x$gcc_cv_ld != x; then
27113 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27114 gcc_cv_ld_buildid=yes
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27119 $as_echo "$gcc_cv_ld_buildid" >&6; }
27120 if test x"$gcc_cv_ld_buildid" = xyes; then
27122 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27126 # Check whether --enable-linker-build-id was given.
27127 if test "${enable_linker_build_id+set}" = set; then :
27128 enableval=$enable_linker_build_id;
27129 else
27130 enable_linker_build_id=no
27134 if test x"$enable_linker_build_id" = xyes; then
27135 if test x"$gcc_cv_ld_buildid" = xyes; then
27137 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27139 else
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27141 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27145 # In binutils 2.21, GNU ld gained support for new emulations fully
27146 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27148 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27149 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 gcc_cv_ld_sol2_emulation=no
27153 if test $in_tree_ld = yes ; then
27154 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27155 "$gcc_cv_gld_minor_version" -ge 21 -o \
27156 "$gcc_cv_gld_major_version" -gt 2 \
27157 && test $in_tree_ld_is_elf = yes; then
27158 gcc_cv_ld_sol2_emulation=yes
27160 elif test x$gcc_cv_ld != x; then
27161 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27162 grep _sol2 > /dev/null; then
27163 gcc_cv_ld_sol2_emulation=yes
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27168 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27169 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27171 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27176 $as_echo_n "checking linker --sysroot support... " >&6; }
27177 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27178 $as_echo_n "(cached) " >&6
27179 else
27180 gcc_cv_ld_sysroot=no
27181 if test $in_tree_ld = yes ; then
27182 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
27183 gcc_cv_ld_sysroot=yes
27185 elif test x$gcc_cv_ld != x; then
27186 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27187 gcc_cv_ld_sysroot=yes
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27192 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27193 if test x"$gcc_cv_ld_sysroot" = xyes; then
27195 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27199 # Test for stack protector support in target C library.
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27201 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27202 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27203 $as_echo_n "(cached) " >&6
27204 else
27205 gcc_cv_libc_provides_ssp=no
27206 case "$target" in
27207 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27208 # glibc 2.4 and later provides __stack_chk_fail and
27209 # either __stack_chk_guard, or TLS access to stack guard canary.
27211 if test $glibc_version_major -gt 2 \
27212 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27213 gcc_cv_libc_provides_ssp=yes
27214 else
27216 if test -f $target_header_dir/features.h \
27217 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27218 $target_header_dir/features.h > /dev/null; then
27219 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27220 $target_header_dir/features.h > /dev/null && \
27221 test -f $target_header_dir/bits/uClibc_config.h && \
27222 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27223 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27224 gcc_cv_libc_provides_ssp=yes
27226 # all versions of Bionic support stack protector
27227 elif test -f $target_header_dir/sys/cdefs.h \
27228 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27229 $target_header_dir/sys/cdefs.h > /dev/null; then
27230 gcc_cv_libc_provides_ssp=yes
27234 *-*-gnu*)
27235 # Avoid complicated tests (see
27236 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27237 # simply assert that glibc does provide this, which is true for all
27238 # realistically usable GNU/Hurd configurations.
27239 gcc_cv_libc_provides_ssp=yes;;
27240 *-*-darwin* | *-*-freebsd*)
27241 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27242 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27243 gcc_cv_libc_provides_ssp=yes
27244 else
27245 echo "no __stack_chk_fail on this target"
27249 *) gcc_cv_libc_provides_ssp=no ;;
27250 esac
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27253 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27255 if test x$gcc_cv_libc_provides_ssp = xyes; then
27257 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27261 # Test for <sys/sdt.h> on the target.
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27264 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27265 have_sys_sdt_h=no
27266 if test -f $target_header_dir/sys/sdt.h; then
27267 have_sys_sdt_h=yes
27269 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27273 $as_echo "$have_sys_sdt_h" >&6; }
27275 # Check if TFmode long double should be used by default or not.
27276 # Some glibc targets used DFmode long double, but with glibc 2.4
27277 # and later they can use TFmode.
27278 case "$target" in
27279 powerpc*-*-linux* | \
27280 sparc*-*-linux* | \
27281 s390*-*-linux* | \
27282 alpha*-*-linux*)
27284 # Check whether --with-long-double-128 was given.
27285 if test "${with_long_double_128+set}" = set; then :
27286 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27287 else
27289 if test $glibc_version_major -gt 2 \
27290 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27291 gcc_cv_target_ldbl128=yes
27292 else
27294 gcc_cv_target_ldbl128=no
27295 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27296 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27297 && gcc_cv_target_ldbl128=yes
27303 esac
27304 if test x$gcc_cv_target_ldbl128 = xyes; then
27306 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27311 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27312 gcc_cv_target_dl_iterate_phdr=unknown
27313 case "$target" in
27314 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27315 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27316 # libdl there, both complicating its use and breaking compatibility
27317 # between Solaris 10 updates.
27318 *-*-solaris2.1[1-9]*)
27319 # <link.h> needs both a dl_iterate_phdr declaration and support for
27320 # compilation with largefile support.
27321 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27322 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27323 gcc_cv_target_dl_iterate_phdr=yes
27324 else
27325 gcc_cv_target_dl_iterate_phdr=no
27328 esac
27330 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27332 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27336 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27338 # We no longer support different GC mechanisms. Emit an error if
27339 # the user configures with --with-gc.
27341 # Check whether --with-gc was given.
27342 if test "${with_gc+set}" = set; then :
27343 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27347 # Libraries to use on the host. This will normally be set by the top
27348 # level Makefile. Here we simply capture the value for our Makefile.
27349 if test -z "${HOST_LIBS+set}"; then
27350 HOST_LIBS=
27354 # Use the system's zlib library.
27355 zlibdir=-L../zlib
27356 zlibinc="-I\$(srcdir)/../zlib"
27358 # Check whether --with-system-zlib was given.
27359 if test "${with_system_zlib+set}" = set; then :
27360 withval=$with_system_zlib; zlibdir=
27361 zlibinc=
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27370 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27371 # Check whether --enable-maintainer-mode was given.
27372 if test "${enable_maintainer_mode+set}" = set; then :
27373 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27374 else
27375 maintainer_mode=no
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27380 $as_echo "$maintainer_mode" >&6; }
27382 if test "$maintainer_mode" = "yes"; then
27383 MAINT=''
27384 else
27385 MAINT='#'
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27390 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27391 # Check whether --enable-link-mutex was given.
27392 if test "${enable_link_mutex+set}" = set; then :
27393 enableval=$enable_link_mutex; do_link_mutex=$enableval
27394 else
27395 do_link_mutex=no
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27399 $as_echo "$do_link_mutex" >&6; }
27401 if test "$do_link_mutex" = "yes"; then
27402 DO_LINK_MUTEX=true
27403 else
27404 DO_LINK_MUTEX=false
27408 # --------------
27409 # Language hooks
27410 # --------------
27412 # Make empty files to contain the specs and options for each language.
27413 # Then add #include lines to for a compiler that has specs and/or options.
27415 subdirs=
27416 lang_opt_files=
27417 lang_specs_files=
27418 lang_tree_files=
27419 # These (without "all_") are set in each config-lang.in.
27420 # `language' must be a single word so is spelled singularly.
27421 all_languages=
27422 all_compilers=
27423 all_outputs='Makefile'
27424 # List of language makefile fragments.
27425 all_lang_makefrags=
27426 # Additional files for gengtype
27427 all_gtfiles="$target_gtfiles"
27429 # These are the languages that are set in --enable-languages,
27430 # and are available in the GCC tree.
27431 all_selected_languages=
27433 # Add the language fragments.
27434 # Languages are added via two mechanisms. Some information must be
27435 # recorded in makefile variables, these are defined in config-lang.in.
27436 # We accumulate them and plug them into the main Makefile.
27437 # The other mechanism is a set of hooks for each of the main targets
27438 # like `clean', `install', etc.
27440 language_hooks="Make-hooks"
27442 for lang in ${srcdir}/*/config-lang.in
27444 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27446 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27447 if test "x$lang_alias" = x
27448 then
27449 echo "$lang doesn't set \$language." 1>&2
27450 exit 1
27452 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27453 subdirs="$subdirs $subdir"
27455 # $gcc_subdir is where the gcc integration files are to be found
27456 # for a language, both for internal compiler purposes (compiler
27457 # sources implementing front-end to GCC tree converters), and for
27458 # build infrastructure purposes (Make-lang.in, etc.)
27460 # This will be <subdir> (relative to $srcdir) if a line like
27461 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27462 # is found in <langdir>/config-lang.in, and will remain <langdir>
27463 # otherwise.
27465 # Except for the language alias (fetched above), the regular
27466 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27467 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27468 # only this and the language alias.
27470 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27471 if [ "$gcc_subdir" = "" ]; then
27472 gcc_subdir="$subdir"
27475 case ",$enable_languages," in
27476 *,$lang_alias,*)
27477 all_selected_languages="$all_selected_languages $lang_alias"
27478 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27479 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27482 esac
27484 language=
27485 boot_language=
27486 compilers=
27487 outputs=
27488 gtfiles=
27489 subdir_requires=
27490 . ${srcdir}/$gcc_subdir/config-lang.in
27491 if test "x$language" = x
27492 then
27493 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27494 exit 1
27497 ok=:
27498 case ",$enable_languages," in
27499 *,$lang_alias,*) ;;
27501 for i in $subdir_requires; do
27502 test -f "${srcdir}/$i/config-lang.in" && continue
27503 ok=false
27504 break
27505 done
27507 esac
27508 $ok || continue
27510 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27511 if test -f $srcdir/$gcc_subdir/lang.opt; then
27512 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27513 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27515 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27516 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27518 all_languages="$all_languages $language"
27519 all_compilers="$all_compilers $compilers"
27520 all_outputs="$all_outputs $outputs"
27521 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27522 case ",$enable_languages," in
27523 *,lto,*)
27525 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27527 enable_lto=yes
27530 *) ;;
27531 esac
27532 done
27534 check_languages=
27535 for language in $all_selected_languages
27537 check_languages="$check_languages check-$language"
27538 done
27540 # We link each language in with a set of hooks, reached indirectly via
27541 # lang.${target}. Only do so for selected languages.
27543 rm -f Make-hooks
27544 touch Make-hooks
27545 target_list="all.cross start.encap rest.encap tags \
27546 install-common install-man install-info install-pdf install-html dvi \
27547 pdf html uninstall info man srcextra srcman srcinfo \
27548 mostlyclean clean distclean maintainer-clean install-plugin"
27550 for t in $target_list
27553 for lang in $all_selected_languages
27555 x="$x $lang.$t"
27556 done
27557 echo "lang.$t: $x" >> Make-hooks
27558 done
27560 # --------
27561 # Option include files
27562 # --------
27564 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27565 option_includes="option-includes.mk"
27568 # --------
27569 # UNSORTED
27570 # --------
27572 # Create .gdbinit.
27574 echo "dir ." > .gdbinit
27575 echo "dir ${srcdir}" >> .gdbinit
27576 if test x$gdb_needs_out_file_path = xyes
27577 then
27578 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27580 if test "x$subdirs" != x; then
27581 for s in $subdirs
27583 echo "dir ${srcdir}/$s" >> .gdbinit
27584 done
27586 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27587 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27589 # Put a breakpoint on __asan_report_error to help with debugging buffer
27590 # overflow.
27591 case "$CFLAGS" in
27592 *-fsanitize=address*)
27593 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27595 esac
27597 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27601 # Find a directory in which to install a shared libgcc.
27603 # Check whether --enable-version-specific-runtime-libs was given.
27604 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27605 enableval=$enable_version_specific_runtime_libs;
27609 # Substitute configuration variables
27672 # Echo link setup.
27673 if test x${build} = x${host} ; then
27674 if test x${host} = x${target} ; then
27675 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27676 else
27677 echo "Links are now set up to build a cross-compiler" 1>&2
27678 echo " from ${host} to ${target}." 1>&2
27680 else
27681 if test x${host} = x${target} ; then
27682 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27683 echo " for ${target}." 1>&2
27684 else
27685 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27686 echo " from ${host} to ${target}." 1>&2
27698 if test "x${CLOOGLIBS}" != "x" ; then
27700 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27704 # Check for plugin support
27705 # Check whether --enable-plugin was given.
27706 if test "${enable_plugin+set}" = set; then :
27707 enableval=$enable_plugin; enable_plugin=$enableval
27708 else
27709 enable_plugin=yes; default_plugin=yes
27713 pluginlibs=
27715 case "${host}" in
27716 *-*-darwin*)
27717 if test x$build = x$host; then
27718 export_sym_check="nm${exeext} -g"
27719 elif test x$host = x$target; then
27720 export_sym_check="$gcc_cv_nm -g"
27721 else
27722 export_sym_check=
27726 if test x$build = x$host; then
27727 export_sym_check="objdump${exeext} -T"
27728 elif test x$host = x$target; then
27729 export_sym_check="$gcc_cv_objdump -T"
27730 else
27731 export_sym_check=
27734 esac
27736 if test x"$enable_plugin" = x"yes"; then
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27739 $as_echo_n "checking for exported symbols... " >&6; }
27740 if test "x$export_sym_check" != x; then
27741 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27742 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27743 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27744 : # No need to use a flag
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27746 $as_echo "yes" >&6; }
27747 else
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27749 $as_echo "yes" >&6; }
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27751 $as_echo_n "checking for -rdynamic... " >&6; }
27752 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27753 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27754 plugin_rdynamic=yes
27755 pluginlibs="-rdynamic"
27756 else
27757 plugin_rdynamic=no
27758 enable_plugin=no
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27761 $as_echo "$plugin_rdynamic" >&6; }
27763 else
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27765 $as_echo "unable to check" >&6; }
27768 # Check -ldl
27769 saved_LIBS="$LIBS"
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27771 $as_echo_n "checking for library containing dlopen... " >&6; }
27772 if test "${ac_cv_search_dlopen+set}" = set; then :
27773 $as_echo_n "(cached) " >&6
27774 else
27775 ac_func_search_save_LIBS=$LIBS
27776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27777 /* end confdefs.h. */
27779 /* Override any GCC internal prototype to avoid an error.
27780 Use char because int might match the return type of a GCC
27781 builtin and then its argument prototype would still apply. */
27782 #ifdef __cplusplus
27783 extern "C"
27784 #endif
27785 char dlopen ();
27787 main ()
27789 return dlopen ();
27791 return 0;
27793 _ACEOF
27794 for ac_lib in '' dl; do
27795 if test -z "$ac_lib"; then
27796 ac_res="none required"
27797 else
27798 ac_res=-l$ac_lib
27799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27801 if ac_fn_c_try_link "$LINENO"; then :
27802 ac_cv_search_dlopen=$ac_res
27804 rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext
27806 if test "${ac_cv_search_dlopen+set}" = set; then :
27807 break
27809 done
27810 if test "${ac_cv_search_dlopen+set}" = set; then :
27812 else
27813 ac_cv_search_dlopen=no
27815 rm conftest.$ac_ext
27816 LIBS=$ac_func_search_save_LIBS
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27819 $as_echo "$ac_cv_search_dlopen" >&6; }
27820 ac_res=$ac_cv_search_dlopen
27821 if test "$ac_res" != no; then :
27822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27826 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27827 pluginlibs="$pluginlibs -ldl"
27829 LIBS="$saved_LIBS"
27831 # Check that we can build shared objects with -fPIC -shared
27832 saved_LDFLAGS="$LDFLAGS"
27833 saved_CFLAGS="$CFLAGS"
27834 case "${host}" in
27835 *-*-darwin*)
27836 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27837 CFLAGS="$CFLAGS -fPIC"
27838 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27841 CFLAGS="$CFLAGS -fPIC"
27842 LDFLAGS="$LDFLAGS -fPIC -shared"
27844 esac
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27846 $as_echo_n "checking for -fPIC -shared... " >&6; }
27847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27848 /* end confdefs.h. */
27849 extern int X;
27851 main ()
27853 return X == 0;
27855 return 0;
27857 _ACEOF
27858 if ac_fn_c_try_link "$LINENO"; then :
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27860 $as_echo "yes" >&6; }; have_pic_shared=yes
27861 else
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27863 $as_echo "no" >&6; }; have_pic_shared=no
27865 rm -f core conftest.err conftest.$ac_objext \
27866 conftest$ac_exeext conftest.$ac_ext
27867 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27868 pluginlibs=
27869 enable_plugin=no
27871 LDFLAGS="$saved_LDFLAGS"
27872 CFLAGS="$saved_CFLAGS"
27874 # If plugin support had been requested but not available, fail.
27875 if test x"$enable_plugin" = x"no" ; then
27876 if test x"$default_plugin" != x"yes"; then
27877 as_fn_error "
27878 Building GCC with plugin support requires a host that supports
27879 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27886 if test x"$enable_plugin" = x"yes"; then
27888 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27893 # Enable --enable-host-shared
27894 # Check whether --enable-host-shared was given.
27895 if test "${enable_host_shared+set}" = set; then :
27896 enableval=$enable_host_shared; PICFLAG=-fPIC
27897 else
27898 PICFLAG=
27905 # Check whether --enable-libquadmath-support was given.
27906 if test "${enable_libquadmath_support+set}" = set; then :
27907 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27908 else
27909 ENABLE_LIBQUADMATH_SUPPORT=yes
27912 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27914 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27919 # Specify what hash style to use by default.
27921 # Check whether --with-linker-hash-style was given.
27922 if test "${with_linker_hash_style+set}" = set; then :
27923 withval=$with_linker_hash_style; case x"$withval" in
27924 xsysv)
27925 LINKER_HASH_STYLE=sysv
27927 xgnu)
27928 LINKER_HASH_STYLE=gnu
27930 xboth)
27931 LINKER_HASH_STYLE=both
27934 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27936 esac
27937 else
27938 LINKER_HASH_STYLE=''
27941 if test x"${LINKER_HASH_STYLE}" != x; then
27943 cat >>confdefs.h <<_ACEOF
27944 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27945 _ACEOF
27949 # Configure the subdirectories
27950 # AC_CONFIG_SUBDIRS($subdirs)
27952 # Create the Makefile
27953 # and configure language subdirectories
27954 ac_config_files="$ac_config_files $all_outputs"
27957 ac_config_commands="$ac_config_commands default"
27959 cat >confcache <<\_ACEOF
27960 # This file is a shell script that caches the results of configure
27961 # tests run on this system so they can be shared between configure
27962 # scripts and configure runs, see configure's option --config-cache.
27963 # It is not useful on other systems. If it contains results you don't
27964 # want to keep, you may remove or edit it.
27966 # config.status only pays attention to the cache file if you give it
27967 # the --recheck option to rerun configure.
27969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27971 # following values.
27973 _ACEOF
27975 # The following way of writing the cache mishandles newlines in values,
27976 # but we know of no workaround that is simple, portable, and efficient.
27977 # So, we kill variables containing newlines.
27978 # Ultrix sh set writes to stderr and can't be redirected directly,
27979 # and sets the high bit in the cache file unless we assign to the vars.
27981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27982 eval ac_val=\$$ac_var
27983 case $ac_val in #(
27984 *${as_nl}*)
27985 case $ac_var in #(
27986 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27988 esac
27989 case $ac_var in #(
27990 _ | IFS | as_nl) ;; #(
27991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27992 *) { eval $ac_var=; unset $ac_var;} ;;
27993 esac ;;
27994 esac
27995 done
27997 (set) 2>&1 |
27998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27999 *${as_nl}ac_space=\ *)
28000 # `set' does not quote correctly, so add quotes: double-quote
28001 # substitution turns \\\\ into \\, and sed turns \\ into \.
28002 sed -n \
28003 "s/'/'\\\\''/g;
28004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28005 ;; #(
28007 # `set' quotes correctly as required by POSIX, so do not add quotes.
28008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28010 esac |
28011 sort
28013 sed '
28014 /^ac_cv_env_/b end
28015 t clear
28016 :clear
28017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28018 t end
28019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28020 :end' >>confcache
28021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28022 if test -w "$cache_file"; then
28023 test "x$cache_file" != "x/dev/null" &&
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28025 $as_echo "$as_me: updating cache $cache_file" >&6;}
28026 cat confcache >$cache_file
28027 else
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28029 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28032 rm -f confcache
28034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28035 # Let make expand exec_prefix.
28036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28038 DEFS=-DHAVE_CONFIG_H
28040 ac_libobjs=
28041 ac_ltlibobjs=
28042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28043 # 1. Remove the extension, and $U if already installed.
28044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28047 # will be set to the directory where LIBOBJS objects are built.
28048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28050 done
28051 LIBOBJS=$ac_libobjs
28053 LTLIBOBJS=$ac_ltlibobjs
28058 : ${CONFIG_STATUS=./config.status}
28059 ac_write_fail=0
28060 ac_clean_files_save=$ac_clean_files
28061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28063 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28064 as_write_fail=0
28065 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28066 #! $SHELL
28067 # Generated by $as_me.
28068 # Run this file to recreate the current configuration.
28069 # Compiler output produced by configure, useful for debugging
28070 # configure, is in config.log if it exists.
28072 debug=false
28073 ac_cs_recheck=false
28074 ac_cs_silent=false
28076 SHELL=\${CONFIG_SHELL-$SHELL}
28077 export SHELL
28078 _ASEOF
28079 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28080 ## -------------------- ##
28081 ## M4sh Initialization. ##
28082 ## -------------------- ##
28084 # Be more Bourne compatible
28085 DUALCASE=1; export DUALCASE # for MKS sh
28086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28087 emulate sh
28088 NULLCMD=:
28089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28090 # is contrary to our usage. Disable this feature.
28091 alias -g '${1+"$@"}'='"$@"'
28092 setopt NO_GLOB_SUBST
28093 else
28094 case `(set -o) 2>/dev/null` in #(
28095 *posix*) :
28096 set -o posix ;; #(
28097 *) :
28099 esac
28103 as_nl='
28105 export as_nl
28106 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28107 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28110 # Prefer a ksh shell builtin over an external printf program on Solaris,
28111 # but without wasting forks for bash or zsh.
28112 if test -z "$BASH_VERSION$ZSH_VERSION" \
28113 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28114 as_echo='print -r --'
28115 as_echo_n='print -rn --'
28116 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28117 as_echo='printf %s\n'
28118 as_echo_n='printf %s'
28119 else
28120 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28121 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28122 as_echo_n='/usr/ucb/echo -n'
28123 else
28124 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28125 as_echo_n_body='eval
28126 arg=$1;
28127 case $arg in #(
28128 *"$as_nl"*)
28129 expr "X$arg" : "X\\(.*\\)$as_nl";
28130 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28131 esac;
28132 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28134 export as_echo_n_body
28135 as_echo_n='sh -c $as_echo_n_body as_echo'
28137 export as_echo_body
28138 as_echo='sh -c $as_echo_body as_echo'
28141 # The user is always right.
28142 if test "${PATH_SEPARATOR+set}" != set; then
28143 PATH_SEPARATOR=:
28144 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28145 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28146 PATH_SEPARATOR=';'
28151 # IFS
28152 # We need space, tab and new line, in precisely that order. Quoting is
28153 # there to prevent editors from complaining about space-tab.
28154 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28155 # splitting by setting IFS to empty value.)
28156 IFS=" "" $as_nl"
28158 # Find who we are. Look in the path if we contain no directory separator.
28159 case $0 in #((
28160 *[\\/]* ) as_myself=$0 ;;
28161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28162 for as_dir in $PATH
28164 IFS=$as_save_IFS
28165 test -z "$as_dir" && as_dir=.
28166 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28167 done
28168 IFS=$as_save_IFS
28171 esac
28172 # We did not find ourselves, most probably we were run as `sh COMMAND'
28173 # in which case we are not to be found in the path.
28174 if test "x$as_myself" = x; then
28175 as_myself=$0
28177 if test ! -f "$as_myself"; then
28178 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28179 exit 1
28182 # Unset variables that we do not need and which cause bugs (e.g. in
28183 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28184 # suppresses any "Segmentation fault" message there. '((' could
28185 # trigger a bug in pdksh 5.2.14.
28186 for as_var in BASH_ENV ENV MAIL MAILPATH
28187 do eval test x\${$as_var+set} = xset \
28188 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28189 done
28190 PS1='$ '
28191 PS2='> '
28192 PS4='+ '
28194 # NLS nuisances.
28195 LC_ALL=C
28196 export LC_ALL
28197 LANGUAGE=C
28198 export LANGUAGE
28200 # CDPATH.
28201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28204 # as_fn_error ERROR [LINENO LOG_FD]
28205 # ---------------------------------
28206 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28207 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28208 # script with status $?, using 1 if that was 0.
28209 as_fn_error ()
28211 as_status=$?; test $as_status -eq 0 && as_status=1
28212 if test "$3"; then
28213 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28214 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28216 $as_echo "$as_me: error: $1" >&2
28217 as_fn_exit $as_status
28218 } # as_fn_error
28221 # as_fn_set_status STATUS
28222 # -----------------------
28223 # Set $? to STATUS, without forking.
28224 as_fn_set_status ()
28226 return $1
28227 } # as_fn_set_status
28229 # as_fn_exit STATUS
28230 # -----------------
28231 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28232 as_fn_exit ()
28234 set +e
28235 as_fn_set_status $1
28236 exit $1
28237 } # as_fn_exit
28239 # as_fn_unset VAR
28240 # ---------------
28241 # Portably unset VAR.
28242 as_fn_unset ()
28244 { eval $1=; unset $1;}
28246 as_unset=as_fn_unset
28247 # as_fn_append VAR VALUE
28248 # ----------------------
28249 # Append the text in VALUE to the end of the definition contained in VAR. Take
28250 # advantage of any shell optimizations that allow amortized linear growth over
28251 # repeated appends, instead of the typical quadratic growth present in naive
28252 # implementations.
28253 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28254 eval 'as_fn_append ()
28256 eval $1+=\$2
28258 else
28259 as_fn_append ()
28261 eval $1=\$$1\$2
28263 fi # as_fn_append
28265 # as_fn_arith ARG...
28266 # ------------------
28267 # Perform arithmetic evaluation on the ARGs, and store the result in the
28268 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28269 # must be portable across $(()) and expr.
28270 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28271 eval 'as_fn_arith ()
28273 as_val=$(( $* ))
28275 else
28276 as_fn_arith ()
28278 as_val=`expr "$@" || test $? -eq 1`
28280 fi # as_fn_arith
28283 if expr a : '\(a\)' >/dev/null 2>&1 &&
28284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28285 as_expr=expr
28286 else
28287 as_expr=false
28290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28291 as_basename=basename
28292 else
28293 as_basename=false
28296 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28297 as_dirname=dirname
28298 else
28299 as_dirname=false
28302 as_me=`$as_basename -- "$0" ||
28303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28304 X"$0" : 'X\(//\)$' \| \
28305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28306 $as_echo X/"$0" |
28307 sed '/^.*\/\([^/][^/]*\)\/*$/{
28308 s//\1/
28311 /^X\/\(\/\/\)$/{
28312 s//\1/
28315 /^X\/\(\/\).*/{
28316 s//\1/
28319 s/.*/./; q'`
28321 # Avoid depending upon Character Ranges.
28322 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28325 as_cr_digits='0123456789'
28326 as_cr_alnum=$as_cr_Letters$as_cr_digits
28328 ECHO_C= ECHO_N= ECHO_T=
28329 case `echo -n x` in #(((((
28330 -n*)
28331 case `echo 'xy\c'` in
28332 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28333 xy) ECHO_C='\c';;
28334 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28335 ECHO_T=' ';;
28336 esac;;
28338 ECHO_N='-n';;
28339 esac
28341 rm -f conf$$ conf$$.exe conf$$.file
28342 if test -d conf$$.dir; then
28343 rm -f conf$$.dir/conf$$.file
28344 else
28345 rm -f conf$$.dir
28346 mkdir conf$$.dir 2>/dev/null
28348 if (echo >conf$$.file) 2>/dev/null; then
28349 if ln -s conf$$.file conf$$ 2>/dev/null; then
28350 as_ln_s='ln -s'
28351 # ... but there are two gotchas:
28352 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28353 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28354 # In both cases, we have to default to `cp -p'.
28355 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28356 as_ln_s='cp -p'
28357 elif ln conf$$.file conf$$ 2>/dev/null; then
28358 as_ln_s=ln
28359 else
28360 as_ln_s='cp -p'
28362 else
28363 as_ln_s='cp -p'
28365 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28366 rmdir conf$$.dir 2>/dev/null
28369 # as_fn_mkdir_p
28370 # -------------
28371 # Create "$as_dir" as a directory, including parents if necessary.
28372 as_fn_mkdir_p ()
28375 case $as_dir in #(
28376 -*) as_dir=./$as_dir;;
28377 esac
28378 test -d "$as_dir" || eval $as_mkdir_p || {
28379 as_dirs=
28380 while :; do
28381 case $as_dir in #(
28382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28383 *) as_qdir=$as_dir;;
28384 esac
28385 as_dirs="'$as_qdir' $as_dirs"
28386 as_dir=`$as_dirname -- "$as_dir" ||
28387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28388 X"$as_dir" : 'X\(//\)[^/]' \| \
28389 X"$as_dir" : 'X\(//\)$' \| \
28390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28391 $as_echo X"$as_dir" |
28392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28393 s//\1/
28396 /^X\(\/\/\)[^/].*/{
28397 s//\1/
28400 /^X\(\/\/\)$/{
28401 s//\1/
28404 /^X\(\/\).*/{
28405 s//\1/
28408 s/.*/./; q'`
28409 test -d "$as_dir" && break
28410 done
28411 test -z "$as_dirs" || eval "mkdir $as_dirs"
28412 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28415 } # as_fn_mkdir_p
28416 if mkdir -p . 2>/dev/null; then
28417 as_mkdir_p='mkdir -p "$as_dir"'
28418 else
28419 test -d ./-p && rmdir ./-p
28420 as_mkdir_p=false
28423 if test -x / >/dev/null 2>&1; then
28424 as_test_x='test -x'
28425 else
28426 if ls -dL / >/dev/null 2>&1; then
28427 as_ls_L_option=L
28428 else
28429 as_ls_L_option=
28431 as_test_x='
28432 eval sh -c '\''
28433 if test -d "$1"; then
28434 test -d "$1/.";
28435 else
28436 case $1 in #(
28437 -*)set "./$1";;
28438 esac;
28439 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28440 ???[sx]*):;;*)false;;esac;fi
28441 '\'' sh
28444 as_executable_p=$as_test_x
28446 # Sed expression to map a string onto a valid CPP name.
28447 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28449 # Sed expression to map a string onto a valid variable name.
28450 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28453 exec 6>&1
28454 ## ----------------------------------- ##
28455 ## Main body of $CONFIG_STATUS script. ##
28456 ## ----------------------------------- ##
28457 _ASEOF
28458 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28461 # Save the log message, to keep $0 and so on meaningful, and to
28462 # report actual input values of CONFIG_FILES etc. instead of their
28463 # values after options handling.
28464 ac_log="
28465 This file was extended by $as_me, which was
28466 generated by GNU Autoconf 2.64. Invocation command line was
28468 CONFIG_FILES = $CONFIG_FILES
28469 CONFIG_HEADERS = $CONFIG_HEADERS
28470 CONFIG_LINKS = $CONFIG_LINKS
28471 CONFIG_COMMANDS = $CONFIG_COMMANDS
28472 $ $0 $@
28474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28477 _ACEOF
28479 case $ac_config_files in *"
28480 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28481 esac
28483 case $ac_config_headers in *"
28484 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28485 esac
28488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28489 # Files that config.status was made for.
28490 config_files="$ac_config_files"
28491 config_headers="$ac_config_headers"
28492 config_commands="$ac_config_commands"
28494 _ACEOF
28496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28497 ac_cs_usage="\
28498 \`$as_me' instantiates files and other configuration actions
28499 from templates according to the current configuration. Unless the files
28500 and actions are specified as TAGs, all are instantiated by default.
28502 Usage: $0 [OPTION]... [TAG]...
28504 -h, --help print this help, then exit
28505 -V, --version print version number and configuration settings, then exit
28506 -q, --quiet, --silent
28507 do not print progress messages
28508 -d, --debug don't remove temporary files
28509 --recheck update $as_me by reconfiguring in the same conditions
28510 --file=FILE[:TEMPLATE]
28511 instantiate the configuration file FILE
28512 --header=FILE[:TEMPLATE]
28513 instantiate the configuration header FILE
28515 Configuration files:
28516 $config_files
28518 Configuration headers:
28519 $config_headers
28521 Configuration commands:
28522 $config_commands
28524 Report bugs to the package provider."
28526 _ACEOF
28527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28528 ac_cs_version="\\
28529 config.status
28530 configured by $0, generated by GNU Autoconf 2.64,
28531 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28533 Copyright (C) 2009 Free Software Foundation, Inc.
28534 This config.status script is free software; the Free Software Foundation
28535 gives unlimited permission to copy, distribute and modify it."
28537 ac_pwd='$ac_pwd'
28538 srcdir='$srcdir'
28539 AWK='$AWK'
28540 test -n "\$AWK" || AWK=awk
28541 _ACEOF
28543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28544 # The default lists apply if the user does not specify any file.
28545 ac_need_defaults=:
28546 while test $# != 0
28548 case $1 in
28549 --*=*)
28550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28551 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28552 ac_shift=:
28555 ac_option=$1
28556 ac_optarg=$2
28557 ac_shift=shift
28559 esac
28561 case $ac_option in
28562 # Handling of the options.
28563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28564 ac_cs_recheck=: ;;
28565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28566 $as_echo "$ac_cs_version"; exit ;;
28567 --debug | --debu | --deb | --de | --d | -d )
28568 debug=: ;;
28569 --file | --fil | --fi | --f )
28570 $ac_shift
28571 case $ac_optarg in
28572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28573 esac
28574 as_fn_append CONFIG_FILES " '$ac_optarg'"
28575 ac_need_defaults=false;;
28576 --header | --heade | --head | --hea )
28577 $ac_shift
28578 case $ac_optarg in
28579 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28580 esac
28581 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28582 ac_need_defaults=false;;
28583 --he | --h)
28584 # Conflict between --help and --header
28585 as_fn_error "ambiguous option: \`$1'
28586 Try \`$0 --help' for more information.";;
28587 --help | --hel | -h )
28588 $as_echo "$ac_cs_usage"; exit ;;
28589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28590 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28591 ac_cs_silent=: ;;
28593 # This is an error.
28594 -*) as_fn_error "unrecognized option: \`$1'
28595 Try \`$0 --help' for more information." ;;
28597 *) as_fn_append ac_config_targets " $1"
28598 ac_need_defaults=false ;;
28600 esac
28601 shift
28602 done
28604 ac_configure_extra_args=
28606 if $ac_cs_silent; then
28607 exec 6>/dev/null
28608 ac_configure_extra_args="$ac_configure_extra_args --silent"
28611 _ACEOF
28612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28613 if \$ac_cs_recheck; then
28614 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28615 shift
28616 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28617 CONFIG_SHELL='$SHELL'
28618 export CONFIG_SHELL
28619 exec "\$@"
28622 _ACEOF
28623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28624 exec 5>>config.log
28626 echo
28627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28628 ## Running $as_me. ##
28629 _ASBOX
28630 $as_echo "$ac_log"
28631 } >&5
28633 _ACEOF
28634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28636 # INIT-COMMANDS
28638 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28639 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28640 subdirs='$subdirs'
28642 _ACEOF
28644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28646 # Handling of arguments.
28647 for ac_config_target in $ac_config_targets
28649 case $ac_config_target in
28650 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28651 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28652 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28653 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28654 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28655 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28656 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28657 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28659 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28660 esac
28661 done
28664 # If the user did not use the arguments to specify the items to instantiate,
28665 # then the envvar interface is used. Set only those that are not.
28666 # We use the long form for the default assignment because of an extremely
28667 # bizarre bug on SunOS 4.1.3.
28668 if $ac_need_defaults; then
28669 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28670 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28674 # Have a temporary directory for convenience. Make it in the build tree
28675 # simply because there is no reason against having it here, and in addition,
28676 # creating and moving files from /tmp can sometimes cause problems.
28677 # Hook for its removal unless debugging.
28678 # Note that there is a small window in which the directory will not be cleaned:
28679 # after its creation but before its name has been assigned to `$tmp'.
28680 $debug ||
28682 tmp=
28683 trap 'exit_status=$?
28684 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28686 trap 'as_fn_exit 1' 1 2 13 15
28688 # Create a (secure) tmp directory for tmp files.
28691 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28692 test -n "$tmp" && test -d "$tmp"
28693 } ||
28695 tmp=./conf$$-$RANDOM
28696 (umask 077 && mkdir "$tmp")
28697 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28699 # Set up the scripts for CONFIG_FILES section.
28700 # No need to generate them if there are no CONFIG_FILES.
28701 # This happens for instance with `./config.status config.h'.
28702 if test -n "$CONFIG_FILES"; then
28704 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28705 ac_cs_awk_getline=:
28706 ac_cs_awk_pipe_init=
28707 ac_cs_awk_read_file='
28708 while ((getline aline < (F[key])) > 0)
28709 print(aline)
28710 close(F[key])'
28711 ac_cs_awk_pipe_fini=
28712 else
28713 ac_cs_awk_getline=false
28714 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28715 ac_cs_awk_read_file='
28716 print "|#_!!_#|"
28717 print "cat " F[key] " &&"
28718 '$ac_cs_awk_pipe_init
28719 # The final `:' finishes the AND list.
28720 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28722 ac_cr=`echo X | tr X '\015'`
28723 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28724 # But we know of no other shell where ac_cr would be empty at this
28725 # point, so we can use a bashism as a fallback.
28726 if test "x$ac_cr" = x; then
28727 eval ac_cr=\$\'\\r\'
28729 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28730 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28731 ac_cs_awk_cr='\r'
28732 else
28733 ac_cs_awk_cr=$ac_cr
28736 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28737 _ACEOF
28739 # Create commands to substitute file output variables.
28741 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28742 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28743 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28744 echo "_ACAWK" &&
28745 echo "_ACEOF"
28746 } >conf$$files.sh &&
28747 . ./conf$$files.sh ||
28748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28749 rm -f conf$$files.sh
28752 echo "cat >conf$$subs.awk <<_ACEOF" &&
28753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28754 echo "_ACEOF"
28755 } >conf$$subs.sh ||
28756 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28757 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28758 ac_delim='%!_!# '
28759 for ac_last_try in false false false false false :; do
28760 . ./conf$$subs.sh ||
28761 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28763 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28764 if test $ac_delim_n = $ac_delim_num; then
28765 break
28766 elif $ac_last_try; then
28767 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28768 else
28769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28771 done
28772 rm -f conf$$subs.sh
28774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28775 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28776 _ACEOF
28777 sed -n '
28779 s/^/S["/; s/!.*/"]=/
28782 s/^[^!]*!//
28783 :repl
28784 t repl
28785 s/'"$ac_delim"'$//
28786 t delim
28789 s/\(.\{148\}\).*/\1/
28790 t more1
28791 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28794 b repl
28795 :more1
28796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28799 s/.\{148\}//
28800 t nl
28801 :delim
28803 s/\(.\{148\}\).*/\1/
28804 t more2
28805 s/["\\]/\\&/g; s/^/"/; s/$/"/
28808 :more2
28809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28812 s/.\{148\}//
28813 t delim
28814 ' <conf$$subs.awk | sed '
28815 /^[^""]/{
28817 s/\n//
28819 ' >>$CONFIG_STATUS || ac_write_fail=1
28820 rm -f conf$$subs.awk
28821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28822 _ACAWK
28823 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28824 for (key in S) S_is_set[key] = 1
28825 FS = "\a"
28826 \$ac_cs_awk_pipe_init
28829 line = $ 0
28830 nfields = split(line, field, "@")
28831 substed = 0
28832 len = length(field[1])
28833 for (i = 2; i < nfields; i++) {
28834 key = field[i]
28835 keylen = length(key)
28836 if (S_is_set[key]) {
28837 value = S[key]
28838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28839 len += length(value) + length(field[++i])
28840 substed = 1
28841 } else
28842 len += 1 + keylen
28844 if (nfields == 3 && !substed) {
28845 key = field[2]
28846 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28847 \$ac_cs_awk_read_file
28848 next
28851 print line
28853 \$ac_cs_awk_pipe_fini
28854 _ACAWK
28855 _ACEOF
28856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28859 else
28861 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28862 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28863 _ACEOF
28865 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28866 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28867 # trailing colons and then remove the whole line if VPATH becomes empty
28868 # (actually we leave an empty line to preserve line numbers).
28869 if test "x$srcdir" = x.; then
28870 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28871 s/:*\$(srcdir):*/:/
28872 s/:*\${srcdir}:*/:/
28873 s/:*@srcdir@:*/:/
28874 s/^\([^=]*=[ ]*\):*/\1/
28875 s/:*$//
28876 s/^[^=]*=[ ]*$//
28880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28881 fi # test -n "$CONFIG_FILES"
28883 # Set up the scripts for CONFIG_HEADERS section.
28884 # No need to generate them if there are no CONFIG_HEADERS.
28885 # This happens for instance with `./config.status Makefile'.
28886 if test -n "$CONFIG_HEADERS"; then
28887 cat >"$tmp/defines.awk" <<\_ACAWK ||
28888 BEGIN {
28889 _ACEOF
28891 # Transform confdefs.h into an awk script `defines.awk', embedded as
28892 # here-document in config.status, that substitutes the proper values into
28893 # config.h.in to produce config.h.
28895 # Create a delimiter string that does not exist in confdefs.h, to ease
28896 # handling of long lines.
28897 ac_delim='%!_!# '
28898 for ac_last_try in false false :; do
28899 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28900 if test -z "$ac_t"; then
28901 break
28902 elif $ac_last_try; then
28903 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28904 else
28905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28907 done
28909 # For the awk script, D is an array of macro values keyed by name,
28910 # likewise P contains macro parameters if any. Preserve backslash
28911 # newline sequences.
28913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28914 sed -n '
28915 s/.\{148\}/&'"$ac_delim"'/g
28916 t rset
28917 :rset
28918 s/^[ ]*#[ ]*define[ ][ ]*/ /
28919 t def
28921 :def
28922 s/\\$//
28923 t bsnl
28924 s/["\\]/\\&/g
28925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28926 D["\1"]=" \3"/p
28927 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28929 :bsnl
28930 s/["\\]/\\&/g
28931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28932 D["\1"]=" \3\\\\\\n"\\/p
28933 t cont
28934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28935 t cont
28937 :cont
28939 s/.\{148\}/&'"$ac_delim"'/g
28940 t clear
28941 :clear
28942 s/\\$//
28943 t bsnlc
28944 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28946 :bsnlc
28947 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28948 b cont
28949 ' <confdefs.h | sed '
28950 s/'"$ac_delim"'/"\\\
28951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28954 for (key in D) D_is_set[key] = 1
28955 FS = "\a"
28957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28958 line = \$ 0
28959 split(line, arg, " ")
28960 if (arg[1] == "#") {
28961 defundef = arg[2]
28962 mac1 = arg[3]
28963 } else {
28964 defundef = substr(arg[1], 2)
28965 mac1 = arg[2]
28967 split(mac1, mac2, "(") #)
28968 macro = mac2[1]
28969 prefix = substr(line, 1, index(line, defundef) - 1)
28970 if (D_is_set[macro]) {
28971 # Preserve the white space surrounding the "#".
28972 print prefix "define", macro P[macro] D[macro]
28973 next
28974 } else {
28975 # Replace #undef with comments. This is necessary, for example,
28976 # in the case of _POSIX_SOURCE, which is predefined and required
28977 # on some systems where configure will not decide to define it.
28978 if (defundef == "undef") {
28979 print "/*", prefix defundef, macro, "*/"
28980 next
28984 { print }
28985 _ACAWK
28986 _ACEOF
28987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28988 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28989 fi # test -n "$CONFIG_HEADERS"
28992 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28993 shift
28994 for ac_tag
28996 case $ac_tag in
28997 :[FHLC]) ac_mode=$ac_tag; continue;;
28998 esac
28999 case $ac_mode$ac_tag in
29000 :[FHL]*:*);;
29001 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29002 :[FH]-) ac_tag=-:-;;
29003 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29004 esac
29005 ac_save_IFS=$IFS
29006 IFS=:
29007 set x $ac_tag
29008 IFS=$ac_save_IFS
29009 shift
29010 ac_file=$1
29011 shift
29013 case $ac_mode in
29014 :L) ac_source=$1;;
29015 :[FH])
29016 ac_file_inputs=
29017 for ac_f
29019 case $ac_f in
29020 -) ac_f="$tmp/stdin";;
29021 *) # Look for the file first in the build tree, then in the source tree
29022 # (if the path is not absolute). The absolute path cannot be DOS-style,
29023 # because $ac_f cannot contain `:'.
29024 test -f "$ac_f" ||
29025 case $ac_f in
29026 [\\/$]*) false;;
29027 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29028 esac ||
29029 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29030 esac
29031 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29032 as_fn_append ac_file_inputs " '$ac_f'"
29033 done
29035 # Let's still pretend it is `configure' which instantiates (i.e., don't
29036 # use $as_me), people would be surprised to read:
29037 # /* config.h. Generated by config.status. */
29038 configure_input='Generated from '`
29039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29040 `' by configure.'
29041 if test x"$ac_file" != x-; then
29042 configure_input="$ac_file. $configure_input"
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29044 $as_echo "$as_me: creating $ac_file" >&6;}
29046 # Neutralize special characters interpreted by sed in replacement strings.
29047 case $configure_input in #(
29048 *\&* | *\|* | *\\* )
29049 ac_sed_conf_input=`$as_echo "$configure_input" |
29050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29051 *) ac_sed_conf_input=$configure_input;;
29052 esac
29054 case $ac_tag in
29055 *:-:* | *:-) cat >"$tmp/stdin" \
29056 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29057 esac
29059 esac
29061 ac_dir=`$as_dirname -- "$ac_file" ||
29062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29063 X"$ac_file" : 'X\(//\)[^/]' \| \
29064 X"$ac_file" : 'X\(//\)$' \| \
29065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29066 $as_echo X"$ac_file" |
29067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29068 s//\1/
29071 /^X\(\/\/\)[^/].*/{
29072 s//\1/
29075 /^X\(\/\/\)$/{
29076 s//\1/
29079 /^X\(\/\).*/{
29080 s//\1/
29083 s/.*/./; q'`
29084 as_dir="$ac_dir"; as_fn_mkdir_p
29085 ac_builddir=.
29087 case "$ac_dir" in
29088 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29090 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29091 # A ".." for each directory in $ac_dir_suffix.
29092 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29093 case $ac_top_builddir_sub in
29094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29096 esac ;;
29097 esac
29098 ac_abs_top_builddir=$ac_pwd
29099 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29100 # for backward compatibility:
29101 ac_top_builddir=$ac_top_build_prefix
29103 case $srcdir in
29104 .) # We are building in place.
29105 ac_srcdir=.
29106 ac_top_srcdir=$ac_top_builddir_sub
29107 ac_abs_top_srcdir=$ac_pwd ;;
29108 [\\/]* | ?:[\\/]* ) # Absolute name.
29109 ac_srcdir=$srcdir$ac_dir_suffix;
29110 ac_top_srcdir=$srcdir
29111 ac_abs_top_srcdir=$srcdir ;;
29112 *) # Relative name.
29113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29114 ac_top_srcdir=$ac_top_build_prefix$srcdir
29115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29116 esac
29117 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29120 case $ac_mode in
29123 # CONFIG_FILE
29126 _ACEOF
29128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29129 # If the template does not know about datarootdir, expand it.
29130 # FIXME: This hack should be removed a few years after 2.60.
29131 ac_datarootdir_hack=; ac_datarootdir_seen=
29132 ac_sed_dataroot='
29133 /datarootdir/ {
29137 /@datadir@/p
29138 /@docdir@/p
29139 /@infodir@/p
29140 /@localedir@/p
29141 /@mandir@/p'
29142 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29143 *datarootdir*) ac_datarootdir_seen=yes;;
29144 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29146 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29147 _ACEOF
29148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29149 ac_datarootdir_hack='
29150 s&@datadir@&$datadir&g
29151 s&@docdir@&$docdir&g
29152 s&@infodir@&$infodir&g
29153 s&@localedir@&$localedir&g
29154 s&@mandir@&$mandir&g
29155 s&\\\${datarootdir}&$datarootdir&g' ;;
29156 esac
29157 _ACEOF
29159 # Neutralize VPATH when `$srcdir' = `.'.
29160 # Shell code in configure.ac might set extrasub.
29161 # FIXME: do we really want to maintain this feature?
29162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29163 ac_sed_extra="$ac_vpsub
29164 $extrasub
29165 _ACEOF
29166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29168 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29169 s|@configure_input@|$ac_sed_conf_input|;t t
29170 s&@top_builddir@&$ac_top_builddir_sub&;t t
29171 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29172 s&@srcdir@&$ac_srcdir&;t t
29173 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29174 s&@top_srcdir@&$ac_top_srcdir&;t t
29175 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29176 s&@builddir@&$ac_builddir&;t t
29177 s&@abs_builddir@&$ac_abs_builddir&;t t
29178 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29179 $ac_datarootdir_hack
29181 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29182 if $ac_cs_awk_getline; then
29183 $AWK -f "$tmp/subs.awk"
29184 else
29185 $AWK -f "$tmp/subs.awk" | $SHELL
29186 fi >$tmp/out \
29187 || as_fn_error "could not create $ac_file" "$LINENO" 5
29189 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29190 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29191 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29193 which seems to be undefined. Please make sure it is defined." >&5
29194 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29195 which seems to be undefined. Please make sure it is defined." >&2;}
29197 rm -f "$tmp/stdin"
29198 case $ac_file in
29199 -) cat "$tmp/out" && rm -f "$tmp/out";;
29200 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29201 esac \
29202 || as_fn_error "could not create $ac_file" "$LINENO" 5
29206 # CONFIG_HEADER
29208 if test x"$ac_file" != x-; then
29210 $as_echo "/* $configure_input */" \
29211 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29212 } >"$tmp/config.h" \
29213 || as_fn_error "could not create $ac_file" "$LINENO" 5
29214 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29216 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29217 else
29218 rm -f "$ac_file"
29219 mv "$tmp/config.h" "$ac_file" \
29220 || as_fn_error "could not create $ac_file" "$LINENO" 5
29222 else
29223 $as_echo "/* $configure_input */" \
29224 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29225 || as_fn_error "could not create -" "$LINENO" 5
29229 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29230 $as_echo "$as_me: executing $ac_file commands" >&6;}
29232 esac
29235 case $ac_file$ac_mode in
29236 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29237 "gccdepdir":C)
29238 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29239 for lang in $subdirs c-family common
29241 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29242 done ;;
29243 "as":F) chmod +x as ;;
29244 "collect-ld":F) chmod +x collect-ld ;;
29245 "nm":F) chmod +x nm ;;
29246 "default":C)
29247 case ${CONFIG_HEADERS} in
29248 *auto-host.h:config.in*)
29249 echo > cstamp-h ;;
29250 esac
29251 # Make sure all the subdirs exist.
29252 for d in $subdirs doc build common c-family
29254 test -d $d || mkdir $d
29255 done
29258 esac
29259 done # for ac_tag
29262 as_fn_exit 0
29263 _ACEOF
29264 ac_clean_files=$ac_clean_files_save
29266 test $ac_write_fail = 0 ||
29267 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29270 # configure is writing to config.log, and then calls config.status.
29271 # config.status does its own redirection, appending to config.log.
29272 # Unfortunately, on DOS this fails, as config.log is still kept open
29273 # by configure, so config.status won't be able to write to it; its
29274 # output is simply discarded. So we exec the FD to /dev/null,
29275 # effectively closing config.log, so it can be properly (re)opened and
29276 # appended to by config.status. When coming back to configure, we
29277 # need to make the FD available again.
29278 if test "$no_create" != yes; then
29279 ac_cs_success=:
29280 ac_config_status_args=
29281 test "$silent" = yes &&
29282 ac_config_status_args="$ac_config_status_args --quiet"
29283 exec 5>/dev/null
29284 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29285 exec 5>>config.log
29286 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29287 # would make configure fail if this is the last instruction.
29288 $ac_cs_success || as_fn_exit $?
29290 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29292 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}