2015-05-22 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / gcc / configure
blobb99eb6d0fcd16086926627a6aab630934aa634c9
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 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 STRIP
698 OBJDUMP
699 ac_ct_DUMPBIN
700 DUMPBIN
702 FGREP
704 LIBTOOL
705 collect2
706 STMP_FIXINC
707 BUILD_LDFLAGS
708 BUILD_CXXFLAGS
709 BUILD_CFLAGS
710 CXX_FOR_BUILD
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 NATIVE_SYSTEM_HEADER_DIR
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 EXTRA_GCC_LIBS
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXDEPMODE
741 DEPDIR
742 am__leading_dot
743 CXXCPP
744 doc_build_sys
747 BISON
748 FLEX
749 GENERATED_MANPAGES
750 BUILD_INFO
751 MAKEINFO
752 have_mktemp_command
753 make_compare_target
754 INSTALL_DATA
755 INSTALL_PROGRAM
756 INSTALL
757 ranlib_flags
758 RANLIB
760 LN_S
762 SET_MAKE
763 accel_dir_suffix
764 real_target_noncanonical
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 with_multilib_list
907 enable_rpath
908 with_libiconv_prefix
909 enable_sjlj_exceptions
910 enable_secureplt
911 enable_leading_mingw64_underscores
912 enable_cld
913 enable_frame_pointer
914 enable_win32_registry
915 enable_static
916 with_pic
917 enable_fast_install
918 enable_libtool_lock
919 enable_ld
920 enable_gold
921 with_plugin_ld
922 enable_gnu_indirect_function
923 enable_initfini_array
924 enable_comdat
925 enable_fix_cortex_a53_835769
926 enable_fix_cortex_a53_843419
927 with_glibc_version
928 enable_gnu_unique_object
929 enable_linker_build_id
930 with_long_double_128
931 with_gc
932 with_system_zlib
933 enable_maintainer_mode
934 enable_link_mutex
935 enable_version_specific_runtime_libs
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_linker_hash_style
940 with_diagnostics_color
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
951 CXXFLAGS
954 CXXCPP
955 GMPLIBS
956 GMPINC
957 ISLLIBS
958 ISLINC'
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1029 ac_dashdash=yes ;;
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=no ;;
1079 -docdir | --docdir | --docdi | --doc | --do)
1080 ac_prev=docdir ;;
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 ac_prev=dvidir ;;
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1343 -*) as_fn_error "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1353 esac
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 esac
1366 done
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error "missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1452 /^X\(\/\/\)$/{
1453 s//\1/
1456 /^X\(\/\).*/{
1457 s//\1/
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1465 else
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1555 cat <<\_ACEOF
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1566 _ACEOF
1569 if test -n "$ac_init_help"; then
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files in source dir intended
1579 for creating source tarballs for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support for large files
1582 --disable-build-format-warnings
1583 don't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and locate unused parts
1594 of the compiler. With LEVEL, specify optimization.
1595 Values are opt, noopt, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support for multiple ABIs
1601 --enable-multiarch enable support for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit for C++
1603 --enable-decimal-float={no,yes,bid,dpd}
1604 enable decimal float extension to C. Selecting 'bid'
1605 or 'dpd' choses which decimal floating point format
1606 to use
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1609 package
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check for tls support
1612 --enable-objc-gc enable the use of Boehm's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify which front-ends to build
1616 --disable-rpath do not hardcode runtime library paths
1617 --enable-sjlj-exceptions
1618 arrange to use setjmp/longjmp exception handling
1619 --enable-secureplt enable -msecure-plt by default for PowerPC
1620 --enable-leading-mingw64-underscores
1621 enable leading underscores on 64 bit mingw targets
1622 --enable-cld enable -mcld by default for 32bit x86
1623 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1625 --disable-win32-registry
1626 disable lookup of installation paths in the Registry
1627 on Windows hosts
1628 --enable-win32-registry enable registry lookup (default)
1629 --enable-win32-registry=KEY
1630 use KEY instead of GCC version as the last portion
1631 of the registry key
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1638 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1639 --enable-gnu-indirect-function
1640 enable the use of the @gnu_indirect_function to
1641 glibc systems
1642 --enable-initfini-array use .init_array/.fini_array sections
1643 --enable-comdat enable COMDAT group support
1645 --enable-fix-cortex-a53-835769
1646 enable workaround for AArch64 Cortex-A53 erratum
1647 835769 by default
1648 --disable-fix-cortex-a53-835769
1649 disable workaround for AArch64 Cortex-A53 erratum
1650 835769 by default
1653 --enable-fix-cortex-a53-843419
1654 enable workaround for AArch64 Cortex-A53 erratum
1655 843419 by default
1656 --disable-fix-cortex-a53-843419
1657 disable workaround for AArch64 Cortex-A53 erratum
1658 843419 by default
1660 --enable-gnu-unique-object
1661 enable the use of the @gnu_unique_object ELF
1662 extension on glibc systems
1663 --enable-linker-build-id
1664 compiler will always pass --build-id to linker
1665 --enable-maintainer-mode
1666 enable make rules and dependencies not useful (and
1667 sometimes confusing) to the casual installer
1668 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1669 thrashing on the build machine
1670 --enable-version-specific-runtime-libs
1671 specify that runtime libraries should be installed
1672 in a compiler-specific directory
1673 --enable-plugin enable plugin support
1674 --enable-host-shared build host code as shared libraries
1675 --disable-libquadmath-support
1676 disable libquadmath support for Fortran
1678 Optional Packages:
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-build-libsubdir=DIR Directory where to find libraries for build system
1682 --with-local-prefix=DIR specifies directory to put local include
1683 --with-gxx-include-dir=DIR
1684 specifies directory to put g++ header files
1685 --with-cpp-install-dir=DIR
1686 install the user visible C preprocessor in DIR
1687 (relative to PREFIX) as well as PREFIX/bin
1688 --with-gnu-ld arrange to work with GNU ld
1689 --with-ld arrange to use the specified ld (full pathname)
1690 --with-demangler-in-ld try to use demangler in GNU ld
1691 --with-gnu-as arrange to work with GNU as
1692 --with-as arrange to use the specified as (full pathname)
1693 --with-stabs arrange to use stabs instead of host debug format
1694 --with-dwarf2 force the default debug format to be DWARF 2
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-specs=SPECS add SPECS to driver command-line processing
1702 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1703 --with-bugurl=URL Direct users to URL to report a bug
1704 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1705 --with-gnu-ld assume the C compiler uses GNU ld default=no
1706 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1707 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1708 --with-pic try to use only PIC/non-PIC objects [default=use
1709 both]
1710 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1711 --with-plugin-ld=[ARG] specify the plugin linker
1712 --with-glibc-version=M.N
1713 assume GCC used with glibc version M.N or later
1714 --with-long-double-128 use 128-bit long double by default
1715 --with-gc={page,zone} this option is not supported anymore. It used to
1716 choose the garbage collection mechanism to use with
1717 the compiler
1718 --with-system-zlib use installed libz
1719 --with-linker-hash-style={sysv,gnu,both}
1720 specify the linker hash style
1721 --with-diagnostics-color={never,auto,auto-if-env,always}
1722 specify the default of -fdiagnostics-color option
1723 auto-if-env stands for -fdiagnostics-color=auto if
1724 GCC_COLOR environment variable is present and
1725 -fdiagnostics-color=never otherwise
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1735 CXX C++ compiler command
1736 CXXFLAGS C++ compiler flags
1737 CPP C preprocessor
1738 CXXCPP C++ preprocessor
1739 GMPLIBS How to link GMP
1740 GMPINC How to find GMP include files
1741 ISLLIBS How to link ISL
1742 ISLINC How to find ISL include files
1744 Use these variables to override the choices made by `configure' or to help
1745 it to find libraries and programs with nonstandard names/locations.
1747 Report bugs to the package provider.
1748 _ACEOF
1749 ac_status=$?
1752 if test "$ac_init_help" = "recursive"; then
1753 # If there are subdirs, report their specific --help.
1754 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1755 test -d "$ac_dir" ||
1756 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1757 continue
1758 ac_builddir=.
1760 case "$ac_dir" in
1761 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1763 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1764 # A ".." for each directory in $ac_dir_suffix.
1765 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1766 case $ac_top_builddir_sub in
1767 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 esac ;;
1770 esac
1771 ac_abs_top_builddir=$ac_pwd
1772 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1773 # for backward compatibility:
1774 ac_top_builddir=$ac_top_build_prefix
1776 case $srcdir in
1777 .) # We are building in place.
1778 ac_srcdir=.
1779 ac_top_srcdir=$ac_top_builddir_sub
1780 ac_abs_top_srcdir=$ac_pwd ;;
1781 [\\/]* | ?:[\\/]* ) # Absolute name.
1782 ac_srcdir=$srcdir$ac_dir_suffix;
1783 ac_top_srcdir=$srcdir
1784 ac_abs_top_srcdir=$srcdir ;;
1785 *) # Relative name.
1786 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1787 ac_top_srcdir=$ac_top_build_prefix$srcdir
1788 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 esac
1790 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1792 cd "$ac_dir" || { ac_status=$?; continue; }
1793 # Check for guested configure.
1794 if test -f "$ac_srcdir/configure.gnu"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1797 elif test -f "$ac_srcdir/configure"; then
1798 echo &&
1799 $SHELL "$ac_srcdir/configure" --help=recursive
1800 else
1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 fi || ac_status=$?
1803 cd "$ac_pwd" || { ac_status=$?; break; }
1804 done
1807 test -n "$ac_init_help" && exit $ac_status
1808 if $ac_init_version; then
1809 cat <<\_ACEOF
1810 configure
1811 generated by GNU Autoconf 2.64
1813 Copyright (C) 2009 Free Software Foundation, Inc.
1814 This configure script is free software; the Free Software Foundation
1815 gives unlimited permission to copy, distribute and modify it.
1816 _ACEOF
1817 exit
1820 ## ------------------------ ##
1821 ## Autoconf initialization. ##
1822 ## ------------------------ ##
1824 # ac_fn_c_try_compile LINENO
1825 # --------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext
1831 if { { ac_try="$ac_compile"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1860 } # ac_fn_c_try_compile
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.$ac_objext; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_cxx_try_compile
1900 # ac_fn_c_try_cpp LINENO
1901 # ----------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_cpp ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if { { ac_try="$ac_cpp conftest.$ac_ext"
1907 case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910 esac
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 return $ac_retval
1935 } # ac_fn_c_try_cpp
1937 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1941 # accordingly.
1942 ac_fn_c_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 else
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1965 else
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_c_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1981 else
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1990 yes:no: )
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 no:yes:* )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 esac
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=\$ac_header_compiler"
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_c_check_header_mongrel
2024 # ac_fn_c_try_run LINENO
2025 # ----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_c_try_run ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2039 ac_status=$?
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2052 ac_retval=0
2053 else
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062 return $ac_retval
2064 } # ac_fn_c_try_run
2066 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2067 # -------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_c_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 eval "$3=yes"
2085 else
2086 eval "$3=no"
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_c_check_header_compile
2097 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2098 # --------------------------------------------
2099 # Tries to find the compile-time value of EXPR in a program that includes
2100 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2101 # computed
2102 ac_fn_c_compute_int ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if test "$cross_compiling" = yes; then
2106 # Depending upon the size, compute the lo and hi bounds.
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) >= 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_lo=0 ac_mid=0
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid; break
2138 else
2139 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2140 if test $ac_lo -le $ac_mid; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) < 0)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=-1 ac_mid=-1
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179 ac_lo=$ac_mid; break
2180 else
2181 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182 if test $ac_mid -le $ac_hi; then
2183 ac_lo= ac_hi=
2184 break
2186 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 ac_lo= ac_hi=
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2203 main ()
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid
2214 else
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219 case $ac_lo in #((
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2221 '') ac_retval=1 ;;
2222 esac
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2229 #include <stdio.h>
2230 #include <stdlib.h>
2232 main ()
2235 FILE *f = fopen ("conftest.val", "w");
2236 if (! f)
2237 return 1;
2238 if (($2) < 0)
2240 long int i = longval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%ld", i);
2245 else
2247 unsigned long int i = ulongval ();
2248 if (i != ($2))
2249 return 1;
2250 fprintf (f, "%lu", i);
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2257 return 0;
2259 _ACEOF
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2262 else
2263 ac_retval=1
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2267 rm -f conftest.val
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 return $ac_retval
2273 } # ac_fn_c_compute_int
2275 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2276 # -------------------------------------------
2277 # Tests whether TYPE exists after having included INCLUDES, setting cache
2278 # variable VAR accordingly.
2279 ac_fn_c_check_type ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2283 $as_echo_n "checking for $2... " >&6; }
2284 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 eval "$3=no"
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2292 main ()
2294 if (sizeof ($2))
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 if (sizeof (($2)))
2308 return 0;
2310 return 0;
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2315 else
2316 eval "$3=yes"
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 eval ac_res=\$$3
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2327 } # ac_fn_c_check_type
2329 # ac_fn_c_find_intX_t LINENO BITS VAR
2330 # -----------------------------------
2331 # Finds a signed integer type with width BITS, setting cache variable VAR
2332 # accordingly.
2333 ac_fn_c_find_intX_t ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2337 $as_echo_n "checking for int$2_t... " >&6; }
2338 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 eval "$3=no"
2342 for ac_type in int$2_t 'int' 'long int' \
2343 'long long int' 'short int' 'signed char'; do
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2346 $ac_includes_default
2348 main ()
2350 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2351 test_array [0] = 0
2354 return 0;
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2360 $ac_includes_default
2362 main ()
2364 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2365 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2366 test_array [0] = 0
2369 return 0;
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2374 else
2375 case $ac_type in #(
2376 int$2_t) :
2377 eval "$3=yes" ;; #(
2378 *) :
2379 eval "$3=\$ac_type" ;;
2380 esac
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 eval as_val=\$$3
2386 if test "x$as_val" = x""no; then :
2388 else
2389 break
2391 done
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 } # ac_fn_c_find_intX_t
2400 # ac_fn_c_try_link LINENO
2401 # -----------------------
2402 # Try to link conftest.$ac_ext, and return whether this succeeded.
2403 ac_fn_c_try_link ()
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { { ac_try="$ac_link"
2408 case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2411 esac
2412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2413 $as_echo "$ac_try_echo"; } >&5
2414 (eval "$ac_link") 2>conftest.err
2415 ac_status=$?
2416 if test -s conftest.err; then
2417 grep -v '^ *+' conftest.err >conftest.er1
2418 cat conftest.er1 >&5
2419 mv -f conftest.er1 conftest.err
2421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2422 test $ac_status = 0; } && {
2423 test -z "$ac_c_werror_flag" ||
2424 test ! -s conftest.err
2425 } && test -s conftest$ac_exeext && {
2426 test "$cross_compiling" = yes ||
2427 $as_test_x conftest$ac_exeext
2428 }; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 ac_retval=1
2436 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2437 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2438 # interfere with the next link command; also delete a directory that is
2439 # left behind by Apple's compiler. We do this before executing the actions.
2440 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2442 return $ac_retval
2444 } # ac_fn_c_try_link
2446 # ac_fn_c_find_uintX_t LINENO BITS VAR
2447 # ------------------------------------
2448 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2449 # accordingly.
2450 ac_fn_c_find_uintX_t ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2454 $as_echo_n "checking for uint$2_t... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 eval "$3=no"
2459 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2460 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 $ac_includes_default
2465 main ()
2467 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2468 test_array [0] = 0
2471 return 0;
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 case $ac_type in #(
2476 uint$2_t) :
2477 eval "$3=yes" ;; #(
2478 *) :
2479 eval "$3=\$ac_type" ;;
2480 esac
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 eval as_val=\$$3
2484 if test "x$as_val" = x""no; then :
2486 else
2487 break
2489 done
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_find_uintX_t
2498 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2499 # ----------------------------------------------
2500 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2501 ac_fn_c_check_header_preproc ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2505 $as_echo_n "checking for $2... " >&6; }
2506 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 #include <$2>
2512 _ACEOF
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2518 rm -f conftest.err conftest.$ac_ext
2520 eval ac_res=\$$3
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525 } # ac_fn_c_check_header_preproc
2527 # ac_fn_cxx_try_cpp LINENO
2528 # ------------------------
2529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_cpp ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 if { { ac_try="$ac_cpp conftest.$ac_ext"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2541 ac_status=$?
2542 if test -s conftest.err; then
2543 grep -v '^ *+' conftest.err >conftest.er1
2544 cat conftest.er1 >&5
2545 mv -f conftest.er1 conftest.err
2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2548 test $ac_status = 0; } >/dev/null && {
2549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2550 test ! -s conftest.err
2551 }; then :
2552 ac_retval=0
2553 else
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 ac_retval=1
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2560 return $ac_retval
2562 } # ac_fn_cxx_try_cpp
2564 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2565 # ------------------------------------------------
2566 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2567 ac_fn_cxx_check_header_preproc ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_cxx_try_cpp "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2584 rm -f conftest.err conftest.$ac_ext
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 } # ac_fn_cxx_check_header_preproc
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2621 #undef $2
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 char $2 ();
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2634 choke me
2635 #endif
2638 main ()
2640 return $2 ();
2642 return 0;
2644 _ACEOF
2645 if ac_fn_c_try_link "$LINENO"; then :
2646 eval "$3=yes"
2647 else
2648 eval "$3=no"
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 } # ac_fn_c_check_func
2660 # ac_fn_cxx_try_link LINENO
2661 # -------------------------
2662 # Try to link conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_link ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 rm -f conftest.$ac_objext conftest$ac_exeext
2667 if { { ac_try="$ac_link"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link") 2>conftest.err
2675 ac_status=$?
2676 if test -s conftest.err; then
2677 grep -v '^ *+' conftest.err >conftest.er1
2678 cat conftest.er1 >&5
2679 mv -f conftest.er1 conftest.err
2681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682 test $ac_status = 0; } && {
2683 test -z "$ac_cxx_werror_flag" ||
2684 test ! -s conftest.err
2685 } && test -s conftest$ac_exeext && {
2686 test "$cross_compiling" = yes ||
2687 $as_test_x conftest$ac_exeext
2688 }; then :
2689 ac_retval=0
2690 else
2691 $as_echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 ac_retval=1
2696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2698 # interfere with the next link command; also delete a directory that is
2699 # left behind by Apple's compiler. We do this before executing the actions.
2700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2702 return $ac_retval
2704 } # ac_fn_cxx_try_link
2705 cat >config.log <<_ACEOF
2706 This file contains any messages produced by compilers while
2707 running configure, to aid debugging if configure makes a mistake.
2709 It was created by $as_me, which was
2710 generated by GNU Autoconf 2.64. Invocation command line was
2712 $ $0 $@
2714 _ACEOF
2715 exec 5>>config.log
2717 cat <<_ASUNAME
2718 ## --------- ##
2719 ## Platform. ##
2720 ## --------- ##
2722 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2723 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2724 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2725 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2726 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2728 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2729 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2731 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2732 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2733 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2734 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2735 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2737 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2739 _ASUNAME
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 $as_echo "PATH: $as_dir"
2747 done
2748 IFS=$as_save_IFS
2750 } >&5
2752 cat >&5 <<_ACEOF
2755 ## ----------- ##
2756 ## Core tests. ##
2757 ## ----------- ##
2759 _ACEOF
2762 # Keep a trace of the command line.
2763 # Strip out --no-create and --no-recursion so they do not pile up.
2764 # Strip out --silent because we don't want to record it for future runs.
2765 # Also quote any args containing shell meta-characters.
2766 # Make two passes to allow for proper duplicate-argument suppression.
2767 ac_configure_args=
2768 ac_configure_args0=
2769 ac_configure_args1=
2770 ac_must_keep_next=false
2771 for ac_pass in 1 2
2773 for ac_arg
2775 case $ac_arg in
2776 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2778 | -silent | --silent | --silen | --sile | --sil)
2779 continue ;;
2780 *\'*)
2781 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 esac
2783 case $ac_pass in
2784 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2786 as_fn_append ac_configure_args1 " '$ac_arg'"
2787 if test $ac_must_keep_next = true; then
2788 ac_must_keep_next=false # Got value, back to normal.
2789 else
2790 case $ac_arg in
2791 *=* | --config-cache | -C | -disable-* | --disable-* \
2792 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2793 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2794 | -with-* | --with-* | -without-* | --without-* | --x)
2795 case "$ac_configure_args0 " in
2796 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2797 esac
2799 -* ) ac_must_keep_next=true ;;
2800 esac
2802 as_fn_append ac_configure_args " '$ac_arg'"
2804 esac
2805 done
2806 done
2807 { ac_configure_args0=; unset ac_configure_args0;}
2808 { ac_configure_args1=; unset ac_configure_args1;}
2810 # When interrupted or exit'd, cleanup temporary files, and complete
2811 # config.log. We remove comments because anyway the quotes in there
2812 # would cause problems or look ugly.
2813 # WARNING: Use '\'' to represent an apostrophe within the trap.
2814 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2815 trap 'exit_status=$?
2816 # Save into config.log some information that might help in debugging.
2818 echo
2820 cat <<\_ASBOX
2821 ## ---------------- ##
2822 ## Cache variables. ##
2823 ## ---------------- ##
2824 _ASBOX
2825 echo
2826 # The following way of writing the cache mishandles newlines in values,
2828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829 eval ac_val=\$$ac_var
2830 case $ac_val in #(
2831 *${as_nl}*)
2832 case $ac_var in #(
2833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2835 esac
2836 case $ac_var in #(
2837 _ | IFS | as_nl) ;; #(
2838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839 *) { eval $ac_var=; unset $ac_var;} ;;
2840 esac ;;
2841 esac
2842 done
2843 (set) 2>&1 |
2844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845 *${as_nl}ac_space=\ *)
2846 sed -n \
2847 "s/'\''/'\''\\\\'\'''\''/g;
2848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2849 ;; #(
2851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2853 esac |
2854 sort
2856 echo
2858 cat <<\_ASBOX
2859 ## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##
2862 _ASBOX
2863 echo
2864 for ac_var in $ac_subst_vars
2866 eval ac_val=\$$ac_var
2867 case $ac_val in
2868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 esac
2870 $as_echo "$ac_var='\''$ac_val'\''"
2871 done | sort
2872 echo
2874 if test -n "$ac_subst_files"; then
2875 cat <<\_ASBOX
2876 ## ------------------- ##
2877 ## File substitutions. ##
2878 ## ------------------- ##
2879 _ASBOX
2880 echo
2881 for ac_var in $ac_subst_files
2883 eval ac_val=\$$ac_var
2884 case $ac_val in
2885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2886 esac
2887 $as_echo "$ac_var='\''$ac_val'\''"
2888 done | sort
2889 echo
2892 if test -s confdefs.h; then
2893 cat <<\_ASBOX
2894 ## ----------- ##
2895 ## confdefs.h. ##
2896 ## ----------- ##
2897 _ASBOX
2898 echo
2899 cat confdefs.h
2900 echo
2902 test "$ac_signal" != 0 &&
2903 $as_echo "$as_me: caught signal $ac_signal"
2904 $as_echo "$as_me: exit $exit_status"
2905 } >&5
2906 rm -f core *.core core.conftest.* &&
2907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2908 exit $exit_status
2910 for ac_signal in 1 2 13 15; do
2911 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2912 done
2913 ac_signal=0
2915 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2916 rm -f -r conftest* confdefs.h
2918 $as_echo "/* confdefs.h */" > confdefs.h
2920 # Predefined preprocessor variables.
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_NAME "$PACKAGE_NAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_STRING "$PACKAGE_STRING"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2940 _ACEOF
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_URL "$PACKAGE_URL"
2944 _ACEOF
2947 # Let the site file select an alternate cache file if it wants to.
2948 # Prefer an explicitly selected file to automatically selected ones.
2949 ac_site_file1=NONE
2950 ac_site_file2=NONE
2951 if test -n "$CONFIG_SITE"; then
2952 ac_site_file1=$CONFIG_SITE
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2956 else
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2962 test "x$ac_site_file" = xNONE && continue
2963 if test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2967 . "$ac_site_file"
2969 done
2971 if test -r "$cache_file"; then
2972 # Some versions of bash will fail to source /dev/null (special
2973 # files actually), so we avoid doing that.
2974 if test -f "$cache_file"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2976 $as_echo "$as_me: loading cache $cache_file" >&6;}
2977 case $cache_file in
2978 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2979 *) . "./$cache_file";;
2980 esac
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2984 $as_echo "$as_me: creating cache $cache_file" >&6;}
2985 >$cache_file
2988 # Check that the precious variables saved in the cache have kept the same
2989 # value.
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993 eval ac_new_set=\$ac_env_${ac_var}_set
2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995 eval ac_new_val=\$ac_env_${ac_var}_value
2996 case $ac_old_set,$ac_new_set in
2997 set,)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3001 ,set)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3005 ,);;
3007 if test "x$ac_old_val" != "x$ac_new_val"; then
3008 # differences in whitespace do not lead to failure.
3009 ac_old_val_w=`echo x $ac_old_val`
3010 ac_new_val_w=`echo x $ac_new_val`
3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014 ac_cache_corrupted=:
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018 eval $ac_var=\$ac_old_val
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3024 fi;;
3025 esac
3026 # Pass precious variables to config.status.
3027 if test "$ac_new_set" = set; then
3028 case $ac_new_val in
3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030 *) ac_arg=$ac_var=$ac_new_val ;;
3031 esac
3032 case " $ac_configure_args " in
3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3035 esac
3037 done
3038 if $ac_cache_corrupted; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3060 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3063 gcc_version=`cat $srcdir/BASE-VER`
3065 # Determine the host, build, and target systems
3066 ac_aux_dir=
3067 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3068 for ac_t in install-sh install.sh shtool; do
3069 if test -f "$ac_dir/$ac_t"; then
3070 ac_aux_dir=$ac_dir
3071 ac_install_sh="$ac_aux_dir/$ac_t -c"
3072 break 2
3074 done
3075 done
3076 if test -z "$ac_aux_dir"; then
3077 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3080 # These three variables are undocumented and unsupported,
3081 # and are intended to be withdrawn in a future Autoconf release.
3082 # They can cause serious problems if a builder's source tree is in a directory
3083 # whose full name contains unusual characters.
3084 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3085 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3086 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3089 # Make sure we can run config.sub.
3090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3091 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3094 $as_echo_n "checking build system type... " >&6; }
3095 if test "${ac_cv_build+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3097 else
3098 ac_build_alias=$build_alias
3099 test "x$ac_build_alias" = x &&
3100 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3101 test "x$ac_build_alias" = x &&
3102 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3104 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3108 $as_echo "$ac_cv_build" >&6; }
3109 case $ac_cv_build in
3110 *-*-*) ;;
3111 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3112 esac
3113 build=$ac_cv_build
3114 ac_save_IFS=$IFS; IFS='-'
3115 set x $ac_cv_build
3116 shift
3117 build_cpu=$1
3118 build_vendor=$2
3119 shift; shift
3120 # Remember, the first character of IFS is used to create $*,
3121 # except with old shells:
3122 build_os=$*
3123 IFS=$ac_save_IFS
3124 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3128 $as_echo_n "checking host system type... " >&6; }
3129 if test "${ac_cv_host+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test "x$host_alias" = x; then
3133 ac_cv_host=$ac_cv_build
3134 else
3135 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3136 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3141 $as_echo "$ac_cv_host" >&6; }
3142 case $ac_cv_host in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3145 esac
3146 host=$ac_cv_host
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_host
3149 shift
3150 host_cpu=$1
3151 host_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 host_os=$*
3156 IFS=$ac_save_IFS
3157 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3161 $as_echo_n "checking target system type... " >&6; }
3162 if test "${ac_cv_target+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test "x$target_alias" = x; then
3166 ac_cv_target=$ac_cv_host
3167 else
3168 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3169 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3174 $as_echo "$ac_cv_target" >&6; }
3175 case $ac_cv_target in
3176 *-*-*) ;;
3177 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3178 esac
3179 target=$ac_cv_target
3180 ac_save_IFS=$IFS; IFS='-'
3181 set x $ac_cv_target
3182 shift
3183 target_cpu=$1
3184 target_vendor=$2
3185 shift; shift
3186 # Remember, the first character of IFS is used to create $*,
3187 # except with old shells:
3188 target_os=$*
3189 IFS=$ac_save_IFS
3190 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3193 # The aliases save the names the user supplied, while $host etc.
3194 # will get canonicalized.
3195 test -n "$target_alias" &&
3196 test "$program_prefix$program_suffix$program_transform_name" = \
3197 NONENONEs,x,x, &&
3198 program_prefix=${target_alias}-
3200 # Determine the noncanonical target name, for directory use.
3201 case ${build_alias} in
3202 "") build_noncanonical=${build} ;;
3203 *) build_noncanonical=${build_alias} ;;
3204 esac
3206 case ${host_alias} in
3207 "") host_noncanonical=${build_noncanonical} ;;
3208 *) host_noncanonical=${host_alias} ;;
3209 esac
3211 case ${target_alias} in
3212 "") target_noncanonical=${host_noncanonical} ;;
3213 *) target_noncanonical=${target_alias} ;;
3214 esac
3219 # Used for constructing correct paths for offload compilers.
3220 real_target_noncanonical=${target_noncanonical}
3221 accel_dir_suffix=
3223 # Determine the target- and build-specific subdirectories
3225 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3226 # have matching libraries, they should use host libraries: Makefile.tpl
3227 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3228 # However, they still use the build modules, because the corresponding
3229 # host modules (e.g. bison) are only built for the host when bootstrap
3230 # finishes. So:
3231 # - build_subdir is where we find build modules, and never changes.
3232 # - build_libsubdir is where we find build libraries, and can be overridden.
3234 # Prefix 'build-' so this never conflicts with target_subdir.
3235 build_subdir="build-${build_noncanonical}"
3237 # Check whether --with-build-libsubdir was given.
3238 if test "${with_build_libsubdir+set}" = set; then :
3239 withval=$with_build_libsubdir; build_libsubdir="$withval"
3240 else
3241 build_libsubdir="$build_subdir"
3244 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3245 if ( test $srcdir = . && test -d gcc ) \
3246 || test -d $srcdir/../host-${host_noncanonical}; then
3247 host_subdir="host-${host_noncanonical}"
3248 else
3249 host_subdir=.
3251 # No prefix.
3252 target_subdir=${target_noncanonical}
3255 # Set program_transform_name
3256 test "$program_prefix" != NONE &&
3257 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3258 # Use a double $ so make ignores it.
3259 test "$program_suffix" != NONE &&
3260 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3261 # Double any \ or $.
3262 # By default was `s,x,x', remove it if useless.
3263 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3264 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3267 # Check for bogus environment variables.
3268 # Test if LIBRARY_PATH contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # LIBRARY_PATH 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 LIBRARY_PATH variable" >&5
3276 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3277 case ${LIBRARY_PATH} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 library_path_setting="contains current directory"
3282 library_path_setting="ok"
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3286 $as_echo "$library_path_setting" >&6; }
3287 if test "$library_path_setting" != "ok"; then
3288 as_fn_error "
3289 *** LIBRARY_PATH shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3294 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3295 # since this would lead to problems installing/building glibc.
3296 # GCC_EXEC_PREFIX contains the current directory if one of the following
3297 # is true:
3298 # - one of the terminals (":" and ";") is the first or last sign
3299 # - two terminals occur directly after each other
3300 # - the path contains an element with a dot in it
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3302 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3303 case ${GCC_EXEC_PREFIX} in
3304 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3305 gcc_exec_prefix_setting="contains current directory"
3308 gcc_exec_prefix_setting="ok"
3310 esac
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3312 $as_echo "$gcc_exec_prefix_setting" >&6; }
3313 if test "$gcc_exec_prefix_setting" != "ok"; then
3314 as_fn_error "
3315 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3316 *** building gcc. Please change the environment variable
3317 *** and run configure again." "$LINENO" 5
3320 # -----------
3321 # Directories
3322 # -----------
3324 # Specify the local prefix
3325 local_prefix=
3327 # Check whether --with-local-prefix was given.
3328 if test "${with_local_prefix+set}" = set; then :
3329 withval=$with_local_prefix; case "${withval}" in
3330 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3331 no) ;;
3332 *) local_prefix=$with_local_prefix ;;
3333 esac
3337 # Default local prefix if it is empty
3338 if test x$local_prefix = x; then
3339 local_prefix=/usr/local
3342 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3343 # passed in by the toplevel make and thus we'd get different behavior
3344 # depending on where we built the sources.
3345 gcc_gxx_include_dir=
3346 # Specify the g++ header file directory
3348 # Check whether --with-gxx-include-dir was given.
3349 if test "${with_gxx_include_dir+set}" = set; then :
3350 withval=$with_gxx_include_dir; case "${withval}" in
3351 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3352 no) ;;
3353 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3354 esac
3358 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3359 if test x${gcc_gxx_include_dir} = x; then
3360 if test x${enable_version_specific_runtime_libs} = xyes; then
3361 gcc_gxx_include_dir='${libsubdir}/include/c++'
3362 else
3363 libstdcxx_incdir='include/c++/$(version)'
3364 if test x$host != x$target; then
3365 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3367 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3371 gcc_gxx_include_dir_add_sysroot=0
3372 if test "${with_sysroot+set}" = set; then
3373 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3374 if test "${gcc_gxx_without_sysroot}"; then
3375 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3376 gcc_gxx_include_dir_add_sysroot=1
3381 # Check whether --with-cpp_install_dir was given.
3382 if test "${with_cpp_install_dir+set}" = set; then :
3383 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3384 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3385 elif test x$withval != xno; then
3386 cpp_install_dir=$withval
3391 # We would like to our source tree to be readonly. However when releases or
3392 # pre-releases are generated, the flex/bison generated files as well as the
3393 # various formats of manuals need to be included along with the rest of the
3394 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3395 # just that.
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3398 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3399 # Check whether --enable-generated-files-in-srcdir was given.
3400 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3401 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3402 else
3403 generated_files_in_srcdir=no
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3408 $as_echo "$generated_files_in_srcdir" >&6; }
3410 if test "$generated_files_in_srcdir" = "yes"; then
3411 GENINSRC=''
3412 else
3413 GENINSRC='#'
3417 # -------------------
3418 # Find default linker
3419 # -------------------
3421 # With GNU ld
3423 # Check whether --with-gnu-ld was given.
3424 if test "${with_gnu_ld+set}" = set; then :
3425 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3426 else
3427 gnu_ld_flag=no
3431 # With pre-defined ld
3433 # Check whether --with-ld was given.
3434 if test "${with_ld+set}" = set; then :
3435 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3438 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3439 if test ! -x "$DEFAULT_LINKER"; then
3440 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3441 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3442 gnu_ld_flag=yes
3445 cat >>confdefs.h <<_ACEOF
3446 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3447 _ACEOF
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3452 $as_echo_n "checking whether a default linker was specified... " >&6; }
3453 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3454 if test x"$gnu_ld_flag" = x"no"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3456 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3459 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3466 # With demangler in GNU ld
3468 # Check whether --with-demangler-in-ld was given.
3469 if test "${with_demangler_in_ld+set}" = set; then :
3470 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3471 else
3472 demangler_in_ld=yes
3476 # ----------------------
3477 # Find default assembler
3478 # ----------------------
3480 # With GNU as
3482 # Check whether --with-gnu-as was given.
3483 if test "${with_gnu_as+set}" = set; then :
3484 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3485 else
3486 gas_flag=no
3491 # Check whether --with-as was given.
3492 if test "${with_as+set}" = set; then :
3493 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3496 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3497 if test ! -x "$DEFAULT_ASSEMBLER"; then
3498 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3499 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3500 gas_flag=yes
3503 cat >>confdefs.h <<_ACEOF
3504 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3505 _ACEOF
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3510 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3511 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3512 if test x"$gas_flag" = x"no"; then
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3514 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3517 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3519 else
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521 $as_echo "no" >&6; }
3524 # ---------------
3525 # Find C compiler
3526 # ---------------
3528 # If a non-executable a.out is present (e.g. created by GNU as above even if
3529 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3530 # file, even when creating an executable, so an execution test fails.
3531 # Remove possible default executable files to avoid this.
3533 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3534 # Autoconf includes it.
3535 rm -f a.out a.exe b.out
3537 # Find the native compiler
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_CC+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3567 IFS=$as_save_IFS
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3582 if test -z "$ac_cv_prog_CC"; then
3583 ac_ct_CC=$CC
3584 # Extract the first word of "gcc", so it can be a program name with args.
3585 set dummy gcc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_CC"; then
3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_ac_ct_CC="gcc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3631 else
3632 CC="$ac_cv_prog_CC"
3635 if test -z "$CC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3638 set dummy ${ac_tool_prefix}cc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if test "${ac_cv_prog_CC+set}" = set; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 ac_cv_prog_CC="${ac_tool_prefix}cc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3660 IFS=$as_save_IFS
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3676 if test -z "$CC"; then
3677 # Extract the first word of "cc", so it can be a program name with args.
3678 set dummy cc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_CC+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 ac_prog_rejected=no
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3696 ac_prog_rejected=yes
3697 continue
3699 ac_cv_prog_CC="cc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3703 done
3704 done
3705 IFS=$as_save_IFS
3707 if test $ac_prog_rejected = yes; then
3708 # We found a bogon in the path, so make sure we never use it.
3709 set dummy $ac_cv_prog_CC
3710 shift
3711 if test $# != 0; then
3712 # We chose a different compiler from the bogus one.
3713 # However, it has the same basename, so the bogon will be chosen
3714 # first if we set CC to just the basename; use the full file name.
3715 shift
3716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3732 if test -z "$CC"; then
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in cl.exe
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_CC+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3757 done
3758 done
3759 IFS=$as_save_IFS
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$CC" && break
3774 done
3776 if test -z "$CC"; then
3777 ac_ct_CC=$CC
3778 for ac_prog in cl.exe
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3817 test -n "$ac_ct_CC" && break
3818 done
3820 if test "x$ac_ct_CC" = x; then
3821 CC=""
3822 else
3823 case $cross_compiling:$ac_tool_warned in
3824 yes:)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3828 esac
3829 CC=$ac_ct_CC
3836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error "no acceptable C compiler found in \$PATH
3839 See \`config.log' for more details." "$LINENO" 5; }
3841 # Provide some information about the compiler.
3842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843 set X $ac_compile
3844 ac_compiler=$2
3845 for ac_option in --version -v -V -qversion; do
3846 { { ac_try="$ac_compiler $ac_option >&5"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3854 ac_status=$?
3855 if test -s conftest.err; then
3856 sed '10a\
3857 ... rest of stderr output deleted ...
3858 10q' conftest.err >conftest.er1
3859 cat conftest.er1 >&5
3860 rm -f conftest.er1 conftest.err
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }
3864 done
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 main ()
3874 return 0;
3876 _ACEOF
3877 ac_clean_files_save=$ac_clean_files
3878 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3879 # Try to create an executable without -o first, disregard a.out.
3880 # It will help us diagnose broken compilers, and finding out an intuition
3881 # of exeext.
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3883 $as_echo_n "checking for C compiler default output file name... " >&6; }
3884 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3886 # The possible output files:
3887 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3889 ac_rmfiles=
3890 for ac_file in $ac_files
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3894 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3895 esac
3896 done
3897 rm -f $ac_rmfiles
3899 if { { ac_try="$ac_link_default"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_link_default") 2>&5
3907 ac_status=$?
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; then :
3910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3912 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3913 # so that the user can short-circuit this test for compilers unknown to
3914 # Autoconf.
3915 for ac_file in $ac_files ''
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3921 [ab].out )
3922 # We found the default executable, but exeext='' is most
3923 # certainly right.
3924 break;;
3925 *.* )
3926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3927 then :; else
3928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3930 # We set ac_cv_exeext here because the later test for it is not
3931 # safe: cross compilers may not add the suffix if given an `-o'
3932 # argument, so we may need to know it at that point already.
3933 # Even if this section looks crufty: it has the advantage of
3934 # actually working.
3935 break;;
3937 break;;
3938 esac
3939 done
3940 test "$ac_cv_exeext" = no && ac_cv_exeext=
3942 else
3943 ac_file=''
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 if test -z "$ac_file"; then :
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 { as_fn_set_status 77
3954 as_fn_error "C compiler cannot create executables
3955 See \`config.log' for more details." "$LINENO" 5; }; }
3957 ac_exeext=$ac_cv_exeext
3959 # Check that the compiler produces executables we can run. If not, either
3960 # the compiler is broken, or we cross compile.
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3962 $as_echo_n "checking whether the C compiler works... " >&6; }
3963 # If not cross compiling, check that we can run a simple program.
3964 if test "$cross_compiling" != yes; then
3965 if { ac_try='./$ac_file'
3966 { { case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; }; then
3976 cross_compiling=no
3977 else
3978 if test "$cross_compiling" = maybe; then
3979 cross_compiling=yes
3980 else
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot run C compiled programs.
3984 If you meant to cross compile, use \`--host'.
3985 See \`config.log' for more details." "$LINENO" 5; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 $as_echo "yes" >&6; }
3992 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3993 ac_clean_files=$ac_clean_files_save
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3999 $as_echo "$cross_compiling" >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4002 $as_echo_n "checking for suffix of executables... " >&6; }
4003 if { { ac_try="$ac_link"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_link") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4016 # work properly (i.e., refer to `conftest.exe'), while it won't with
4017 # `rm'.
4018 for ac_file in conftest.exe conftest conftest.*; do
4019 test -f "$ac_file" || continue
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 break;;
4024 * ) break;;
4025 esac
4026 done
4027 else
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "cannot compute suffix of executables: cannot compile and link
4031 See \`config.log' for more details." "$LINENO" 5; }
4033 rm -f conftest$ac_cv_exeext
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4035 $as_echo "$ac_cv_exeext" >&6; }
4037 rm -f conftest.$ac_ext
4038 EXEEXT=$ac_cv_exeext
4039 ac_exeext=$EXEEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041 $as_echo_n "checking for suffix of object files... " >&6; }
4042 if test "${ac_cv_objext+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.o conftest.obj
4057 if { { ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
4065 ac_status=$?
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
4075 done
4076 else
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error "cannot compute suffix of object files: cannot compile
4083 See \`config.log' for more details." "$LINENO" 5; }
4085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088 $as_echo "$ac_cv_objext" >&6; }
4089 OBJEXT=$ac_cv_objext
4090 ac_objext=$OBJEXT
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4093 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4102 #ifndef __GNUC__
4103 choke me
4104 #endif
4107 return 0;
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_compiler_gnu=yes
4112 else
4113 ac_compiler_gnu=no
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4120 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4121 if test $ac_compiler_gnu = yes; then
4122 GCC=yes
4123 else
4124 GCC=
4126 ac_test_CFLAGS=${CFLAGS+set}
4127 ac_save_CFLAGS=$CFLAGS
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4129 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4130 if test "${ac_cv_prog_cc_g+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 ac_cv_prog_cc_g=no
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4141 main ()
4145 return 0;
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_prog_cc_g=yes
4150 else
4151 CFLAGS=""
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4156 main ()
4160 return 0;
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4165 else
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4172 main ()
4176 return 0;
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_g=yes
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190 $as_echo "$ac_cv_prog_cc_g" >&6; }
4191 if test "$ac_test_CFLAGS" = set; then
4192 CFLAGS=$ac_save_CFLAGS
4193 elif test $ac_cv_prog_cc_g = yes; then
4194 if test "$GCC" = yes; then
4195 CFLAGS="-g -O2"
4196 else
4197 CFLAGS="-g"
4199 else
4200 if test "$GCC" = yes; then
4201 CFLAGS="-O2"
4202 else
4203 CFLAGS=
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4207 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4208 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_cv_prog_cc_c89=no
4212 ac_save_CC=$CC
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdarg.h>
4216 #include <stdio.h>
4217 #include <sys/types.h>
4218 #include <sys/stat.h>
4219 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4220 struct buf { int x; };
4221 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4222 static char *e (p, i)
4223 char **p;
4224 int i;
4226 return p[i];
4228 static char *f (char * (*g) (char **, int), char **p, ...)
4230 char *s;
4231 va_list v;
4232 va_start (v,p);
4233 s = g (p, va_arg (v,int));
4234 va_end (v);
4235 return s;
4238 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4239 function prototypes and stuff, but not '\xHH' hex character constants.
4240 These don't provoke an error unfortunately, instead are silently treated
4241 as 'x'. The following induces an error, until -std is added to get
4242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4243 array size at least. It's necessary to write '\x00'==0 to get something
4244 that's true only with -std. */
4245 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4247 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4248 inside strings and character constants. */
4249 #define FOO(x) 'x'
4250 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4252 int test (int i, double x);
4253 struct s1 {int (*f) (int a);};
4254 struct s2 {int (*f) (double a);};
4255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4256 int argc;
4257 char **argv;
4259 main ()
4261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4263 return 0;
4265 _ACEOF
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4269 CC="$ac_save_CC $ac_arg"
4270 if ac_fn_c_try_compile "$LINENO"; then :
4271 ac_cv_prog_cc_c89=$ac_arg
4273 rm -f core conftest.err conftest.$ac_objext
4274 test "x$ac_cv_prog_cc_c89" != "xno" && break
4275 done
4276 rm -f conftest.$ac_ext
4277 CC=$ac_save_CC
4280 # AC_CACHE_VAL
4281 case "x$ac_cv_prog_cc_c89" in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4284 $as_echo "none needed" >&6; } ;;
4285 xno)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4287 $as_echo "unsupported" >&6; } ;;
4289 CC="$CC $ac_cv_prog_cc_c89"
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292 esac
4293 if test "x$ac_cv_prog_cc_c89" != xno; then :
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 ac_ext=cpp
4304 ac_cpp='$CXXCPP $CPPFLAGS'
4305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4308 if test -z "$CXX"; then
4309 if test -n "$CCC"; then
4310 CXX=$CCC
4311 else
4312 if test -n "$ac_tool_prefix"; then
4313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_CXX+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CXX"; then
4323 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 CXX=$ac_cv_prog_CXX
4343 if test -n "$CXX"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4345 $as_echo "$CXX" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4352 test -n "$CXX" && break
4353 done
4355 if test -z "$CXX"; then
4356 ac_ct_CXX=$CXX
4357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$ac_ct_CXX"; then
4367 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_CXX="$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4386 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4387 if test -n "$ac_ct_CXX"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4389 $as_echo "$ac_ct_CXX" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$ac_ct_CXX" && break
4397 done
4399 if test "x$ac_ct_CXX" = x; then
4400 CXX="g++"
4401 else
4402 case $cross_compiling:$ac_tool_warned in
4403 yes:)
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4406 ac_tool_warned=yes ;;
4407 esac
4408 CXX=$ac_ct_CXX
4414 # Provide some information about the compiler.
4415 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4416 set X $ac_compile
4417 ac_compiler=$2
4418 for ac_option in --version -v -V -qversion; do
4419 { { ac_try="$ac_compiler $ac_option >&5"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4427 ac_status=$?
4428 if test -s conftest.err; then
4429 sed '10a\
4430 ... rest of stderr output deleted ...
4431 10q' conftest.err >conftest.er1
4432 cat conftest.er1 >&5
4433 rm -f conftest.er1 conftest.err
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }
4437 done
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4440 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4441 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4448 main ()
4450 #ifndef __GNUC__
4451 choke me
4452 #endif
4455 return 0;
4457 _ACEOF
4458 if ac_fn_cxx_try_compile "$LINENO"; then :
4459 ac_compiler_gnu=yes
4460 else
4461 ac_compiler_gnu=no
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4468 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4469 if test $ac_compiler_gnu = yes; then
4470 GXX=yes
4471 else
4472 GXX=
4474 ac_test_CXXFLAGS=${CXXFLAGS+set}
4475 ac_save_CXXFLAGS=$CXXFLAGS
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4477 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4478 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4482 ac_cxx_werror_flag=yes
4483 ac_cv_prog_cxx_g=no
4484 CXXFLAGS="-g"
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4489 main ()
4493 return 0;
4495 _ACEOF
4496 if ac_fn_cxx_try_compile "$LINENO"; then :
4497 ac_cv_prog_cxx_g=yes
4498 else
4499 CXXFLAGS=""
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4504 main ()
4508 return 0;
4510 _ACEOF
4511 if ac_fn_cxx_try_compile "$LINENO"; then :
4513 else
4514 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4515 CXXFLAGS="-g"
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4524 return 0;
4526 _ACEOF
4527 if ac_fn_cxx_try_compile "$LINENO"; then :
4528 ac_cv_prog_cxx_g=yes
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4538 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4539 if test "$ac_test_CXXFLAGS" = set; then
4540 CXXFLAGS=$ac_save_CXXFLAGS
4541 elif test $ac_cv_prog_cxx_g = yes; then
4542 if test "$GXX" = yes; then
4543 CXXFLAGS="-g -O2"
4544 else
4545 CXXFLAGS="-g"
4547 else
4548 if test "$GXX" = yes; then
4549 CXXFLAGS="-O2"
4550 else
4551 CXXFLAGS=
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4565 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$GNATBIND"; then
4572 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 GNATBIND=$ac_cv_prog_GNATBIND
4592 if test -n "$GNATBIND"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4594 $as_echo "$GNATBIND" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4602 if test -z "$ac_cv_prog_GNATBIND"; then
4603 ac_ct_GNATBIND=$GNATBIND
4604 # Extract the first word of "gnatbind", so it can be a program name with args.
4605 set dummy gnatbind; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$ac_ct_GNATBIND"; then
4612 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4625 done
4626 done
4627 IFS=$as_save_IFS
4631 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4632 if test -n "$ac_ct_GNATBIND"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4634 $as_echo "$ac_ct_GNATBIND" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4640 if test "x$ac_ct_GNATBIND" = x; then
4641 GNATBIND="no"
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649 GNATBIND=$ac_ct_GNATBIND
4651 else
4652 GNATBIND="$ac_cv_prog_GNATBIND"
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$GNATMAKE"; then
4664 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 GNATMAKE=$ac_cv_prog_GNATMAKE
4684 if test -n "$GNATMAKE"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4686 $as_echo "$GNATMAKE" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4694 if test -z "$ac_cv_prog_GNATMAKE"; then
4695 ac_ct_GNATMAKE=$GNATMAKE
4696 # Extract the first word of "gnatmake", so it can be a program name with args.
4697 set dummy gnatmake; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_GNATMAKE"; then
4704 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4724 if test -n "$ac_ct_GNATMAKE"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4726 $as_echo "$ac_ct_GNATMAKE" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4732 if test "x$ac_ct_GNATMAKE" = x; then
4733 GNATMAKE="no"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 GNATMAKE=$ac_ct_GNATMAKE
4743 else
4744 GNATMAKE="$ac_cv_prog_GNATMAKE"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4748 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4749 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 cat >conftest.adb <<EOF
4753 procedure conftest is begin null; end conftest;
4755 acx_cv_cc_gcc_supports_ada=no
4756 # There is a bug in old released versions of GCC which causes the
4757 # driver to exit successfully when the appropriate language module
4758 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4759 # Therefore we must check for the error message as well as an
4760 # unsuccessful exit.
4761 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4762 # given a .adb file, but produce no object file. So we must check
4763 # if an object file was really produced to guard against this.
4764 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4765 if test x"$errors" = x && test -f conftest.$ac_objext; then
4766 acx_cv_cc_gcc_supports_ada=yes
4768 rm -f conftest.*
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4771 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4773 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4774 have_gnat=yes
4775 else
4776 have_gnat=no
4780 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4781 # optimizations to be activated explicitly by the toplevel.
4782 case "$CC" in
4783 */prev-gcc/xgcc*) ;;
4784 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4785 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4786 esac
4790 # Determine PICFLAG for target gnatlib.
4795 case "${target}" in
4796 # PIC is the default on some targets or must not be used.
4797 *-*-darwin*)
4798 # For darwin, common symbols are not allowed in MH_DYLIB files
4799 case "${CFLAGS}" in
4800 # If we are using a compiler supporting mdynamic-no-pic
4801 # and the option has been tested as safe to add, then cancel
4802 # it here, since the code generated is incompatible with shared
4803 # libs.
4804 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
4805 *) PICFLAG_FOR_TARGET=-fno-common ;;
4806 esac
4808 alpha*-dec-osf5*)
4809 # PIC is the default.
4811 hppa*64*-*-hpux*)
4812 # PIC is the default for 64-bit PA HP-UX.
4814 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4816 i[34567]86-*-mingw* | x86_64-*-mingw*)
4818 i[34567]86-*-interix[3-9]*)
4819 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4820 # Instead, we relocate shared libraries at runtime.
4822 i[34567]86-*-nto-qnx*)
4823 # QNX uses GNU C++, but need to define -shared option too, otherwise
4824 # it will coredump.
4825 PICFLAG_FOR_TARGET='-fPIC -shared'
4827 i[34567]86-pc-msdosdjgpp*)
4828 # DJGPP does not support shared libraries at all.
4830 ia64*-*-hpux*)
4831 # On IA64 HP-UX, PIC is the default but the pic flag
4832 # sets the default TLS model and affects inlining.
4833 PICFLAG_FOR_TARGET=-fPIC
4835 mips-sgi-irix6*)
4836 # PIC is the default.
4838 rs6000-ibm-aix* | powerpc-ibm-aix*)
4839 # All AIX code is PIC.
4842 # Some targets support both -fPIC and -fpic, but prefer the latter.
4843 # FIXME: Why?
4844 i[34567]86-*-* | x86_64-*-*)
4845 PICFLAG_FOR_TARGET=-fpic
4847 # FIXME: Override -fPIC default in libgcc only?
4848 sh-*-linux* | sh[2346lbe]*-*-linux*)
4849 PICFLAG_FOR_TARGET=-fpic
4851 # FIXME: Simplify to sh*-*-netbsd*?
4852 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4853 sh64-*-netbsd* | sh64l*-*-netbsd*)
4854 PICFLAG_FOR_TARGET=-fpic
4856 # Default to -fPIC unless specified otherwise.
4858 PICFLAG_FOR_TARGET=-fPIC
4860 esac
4862 # If the user explicitly uses -fpic/-fPIC, keep that.
4863 case "${CFLAGS_FOR_TARGET}" in
4864 *-fpic*)
4865 PICFLAG_FOR_TARGET=-fpic
4867 *-fPIC*)
4868 PICFLAG_FOR_TARGET=-fPIC
4870 esac
4874 # -------------------------
4875 # Check C compiler features
4876 # -------------------------
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4885 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4886 # On Suns, sometimes $CPP names a directory.
4887 if test -n "$CPP" && test -d "$CPP"; then
4888 CPP=
4890 if test -z "$CPP"; then
4891 if test "${ac_cv_prog_CPP+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 # Double quotes because CPP needs to be expanded
4895 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4897 ac_preproc_ok=false
4898 for ac_c_preproc_warn_flag in '' yes
4900 # Use a header file that comes with gcc, so configuring glibc
4901 # with a fresh cross-compiler works.
4902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903 # <limits.h> exists even on freestanding compilers.
4904 # On the NeXT, cc -E runs the code through the compiler's parser,
4905 # not just through cpp. "Syntax error" is here to catch this case.
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #ifdef __STDC__
4909 # include <limits.h>
4910 #else
4911 # include <assert.h>
4912 #endif
4913 Syntax error
4914 _ACEOF
4915 if ac_fn_c_try_cpp "$LINENO"; then :
4917 else
4918 # Broken: fails on valid input.
4919 continue
4921 rm -f conftest.err conftest.$ac_ext
4923 # OK, works on sane cases. Now check whether nonexistent headers
4924 # can be detected and how.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #include <ac_nonexistent.h>
4928 _ACEOF
4929 if ac_fn_c_try_cpp "$LINENO"; then :
4930 # Broken: success on invalid input.
4931 continue
4932 else
4933 # Passes both tests.
4934 ac_preproc_ok=:
4935 break
4937 rm -f conftest.err conftest.$ac_ext
4939 done
4940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4941 rm -f conftest.err conftest.$ac_ext
4942 if $ac_preproc_ok; then :
4943 break
4946 done
4947 ac_cv_prog_CPP=$CPP
4950 CPP=$ac_cv_prog_CPP
4951 else
4952 ac_cv_prog_CPP=$CPP
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4955 $as_echo "$CPP" >&6; }
4956 ac_preproc_ok=false
4957 for ac_c_preproc_warn_flag in '' yes
4959 # Use a header file that comes with gcc, so configuring glibc
4960 # with a fresh cross-compiler works.
4961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4962 # <limits.h> exists even on freestanding compilers.
4963 # On the NeXT, cc -E runs the code through the compiler's parser,
4964 # not just through cpp. "Syntax error" is here to catch this case.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #ifdef __STDC__
4968 # include <limits.h>
4969 #else
4970 # include <assert.h>
4971 #endif
4972 Syntax error
4973 _ACEOF
4974 if ac_fn_c_try_cpp "$LINENO"; then :
4976 else
4977 # Broken: fails on valid input.
4978 continue
4980 rm -f conftest.err conftest.$ac_ext
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #include <ac_nonexistent.h>
4987 _ACEOF
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4989 # Broken: success on invalid input.
4990 continue
4991 else
4992 # Passes both tests.
4993 ac_preproc_ok=:
4994 break
4996 rm -f conftest.err conftest.$ac_ext
4998 done
4999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5000 rm -f conftest.err conftest.$ac_ext
5001 if $ac_preproc_ok; then :
5003 else
5004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5006 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." "$LINENO" 5; }
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5018 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5019 if test "${ac_cv_path_GREP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -z "$GREP"; then
5023 ac_path_GREP_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_prog in grep ggrep; do
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5033 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5034 # Check for GNU ac_path_GREP and select it if it is found.
5035 # Check for GNU $ac_path_GREP
5036 case `"$ac_path_GREP" --version 2>&1` in
5037 *GNU*)
5038 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5040 ac_count=0
5041 $as_echo_n 0123456789 >"conftest.in"
5042 while :
5044 cat "conftest.in" "conftest.in" >"conftest.tmp"
5045 mv "conftest.tmp" "conftest.in"
5046 cp "conftest.in" "conftest.nl"
5047 $as_echo 'GREP' >> "conftest.nl"
5048 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050 as_fn_arith $ac_count + 1 && ac_count=$as_val
5051 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5052 # Best one so far, save it but keep looking for a better one
5053 ac_cv_path_GREP="$ac_path_GREP"
5054 ac_path_GREP_max=$ac_count
5056 # 10*(2^10) chars as input seems more than enough
5057 test $ac_count -gt 10 && break
5058 done
5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060 esac
5062 $ac_path_GREP_found && break 3
5063 done
5064 done
5065 done
5066 IFS=$as_save_IFS
5067 if test -z "$ac_cv_path_GREP"; then
5068 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 else
5071 ac_cv_path_GREP=$GREP
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5076 $as_echo "$ac_cv_path_GREP" >&6; }
5077 GREP="$ac_cv_path_GREP"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5081 $as_echo_n "checking for egrep... " >&6; }
5082 if test "${ac_cv_path_EGREP+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5086 then ac_cv_path_EGREP="$GREP -E"
5087 else
5088 if test -z "$EGREP"; then
5089 ac_path_EGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in egrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5099 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5100 # Check for GNU ac_path_EGREP and select it if it is found.
5101 # Check for GNU $ac_path_EGREP
5102 case `"$ac_path_EGREP" --version 2>&1` in
5103 *GNU*)
5104 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5106 ac_count=0
5107 $as_echo_n 0123456789 >"conftest.in"
5108 while :
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 $as_echo 'EGREP' >> "conftest.nl"
5114 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_EGREP="$ac_path_EGREP"
5120 ac_path_EGREP_max=$ac_count
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126 esac
5128 $ac_path_EGREP_found && break 3
5129 done
5130 done
5131 done
5132 IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_EGREP"; then
5134 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 else
5137 ac_cv_path_EGREP=$EGREP
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5143 $as_echo "$ac_cv_path_EGREP" >&6; }
5144 EGREP="$ac_cv_path_EGREP"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5148 $as_echo_n "checking for ANSI C header files... " >&6; }
5149 if test "${ac_cv_header_stdc+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <stdlib.h>
5155 #include <stdarg.h>
5156 #include <string.h>
5157 #include <float.h>
5160 main ()
5164 return 0;
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_header_stdc=yes
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174 if test $ac_cv_header_stdc = yes; then
5175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <string.h>
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "memchr" >/dev/null 2>&1; then :
5184 else
5185 ac_cv_header_stdc=no
5187 rm -f conftest*
5191 if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 #include <stdlib.h>
5197 _ACEOF
5198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5199 $EGREP "free" >/dev/null 2>&1; then :
5201 else
5202 ac_cv_header_stdc=no
5204 rm -f conftest*
5208 if test $ac_cv_header_stdc = yes; then
5209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5210 if test "$cross_compiling" = yes; then :
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <ctype.h>
5216 #include <stdlib.h>
5217 #if ((' ' & 0x0FF) == 0x020)
5218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5220 #else
5221 # define ISLOWER(c) \
5222 (('a' <= (c) && (c) <= 'i') \
5223 || ('j' <= (c) && (c) <= 'r') \
5224 || ('s' <= (c) && (c) <= 'z'))
5225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5226 #endif
5228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5230 main ()
5232 int i;
5233 for (i = 0; i < 256; i++)
5234 if (XOR (islower (i), ISLOWER (i))
5235 || toupper (i) != TOUPPER (i))
5236 return 2;
5237 return 0;
5239 _ACEOF
5240 if ac_fn_c_try_run "$LINENO"; then :
5242 else
5243 ac_cv_header_stdc=no
5245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5246 conftest.$ac_objext conftest.beam conftest.$ac_ext
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5252 $as_echo "$ac_cv_header_stdc" >&6; }
5253 if test $ac_cv_header_stdc = yes; then
5255 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5259 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5261 inttypes.h stdint.h unistd.h
5262 do :
5263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5264 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5266 eval as_val=\$$as_ac_Header
5267 if test "x$as_val" = x""yes; then :
5268 cat >>confdefs.h <<_ACEOF
5269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5270 _ACEOF
5274 done
5278 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5279 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5280 MINIX=yes
5281 else
5282 MINIX=
5286 if test "$MINIX" = yes; then
5288 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5294 $as_echo "#define _MINIX 1" >>confdefs.h
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5300 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5301 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5307 # define __EXTENSIONS__ 1
5308 $ac_includes_default
5310 main ()
5314 return 0;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"; then :
5318 ac_cv_safe_to_define___extensions__=yes
5319 else
5320 ac_cv_safe_to_define___extensions__=no
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5325 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5326 test $ac_cv_safe_to_define___extensions__ = yes &&
5327 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5329 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5331 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5333 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5335 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5345 # On Suns, sometimes $CPP names a directory.
5346 if test -n "$CPP" && test -d "$CPP"; then
5347 CPP=
5349 if test -z "$CPP"; then
5350 if test "${ac_cv_prog_CPP+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 # Double quotes because CPP needs to be expanded
5354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5356 ac_preproc_ok=false
5357 for ac_c_preproc_warn_flag in '' yes
5359 # Use a header file that comes with gcc, so configuring glibc
5360 # with a fresh cross-compiler works.
5361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 # <limits.h> exists even on freestanding compilers.
5363 # On the NeXT, cc -E runs the code through the compiler's parser,
5364 # not just through cpp. "Syntax error" is here to catch this case.
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #ifdef __STDC__
5368 # include <limits.h>
5369 #else
5370 # include <assert.h>
5371 #endif
5372 Syntax error
5373 _ACEOF
5374 if ac_fn_c_try_cpp "$LINENO"; then :
5376 else
5377 # Broken: fails on valid input.
5378 continue
5380 rm -f conftest.err conftest.$ac_ext
5382 # OK, works on sane cases. Now check whether nonexistent headers
5383 # can be detected and how.
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <ac_nonexistent.h>
5387 _ACEOF
5388 if ac_fn_c_try_cpp "$LINENO"; then :
5389 # Broken: success on invalid input.
5390 continue
5391 else
5392 # Passes both tests.
5393 ac_preproc_ok=:
5394 break
5396 rm -f conftest.err conftest.$ac_ext
5398 done
5399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5400 rm -f conftest.err conftest.$ac_ext
5401 if $ac_preproc_ok; then :
5402 break
5405 done
5406 ac_cv_prog_CPP=$CPP
5409 CPP=$ac_cv_prog_CPP
5410 else
5411 ac_cv_prog_CPP=$CPP
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5414 $as_echo "$CPP" >&6; }
5415 ac_preproc_ok=false
5416 for ac_c_preproc_warn_flag in '' yes
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5421 # <limits.h> exists even on freestanding compilers.
5422 # On the NeXT, cc -E runs the code through the compiler's parser,
5423 # not just through cpp. "Syntax error" is here to catch this case.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #ifdef __STDC__
5427 # include <limits.h>
5428 #else
5429 # include <assert.h>
5430 #endif
5431 Syntax error
5432 _ACEOF
5433 if ac_fn_c_try_cpp "$LINENO"; then :
5435 else
5436 # Broken: fails on valid input.
5437 continue
5439 rm -f conftest.err conftest.$ac_ext
5441 # OK, works on sane cases. Now check whether nonexistent headers
5442 # can be detected and how.
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <ac_nonexistent.h>
5446 _ACEOF
5447 if ac_fn_c_try_cpp "$LINENO"; then :
5448 # Broken: success on invalid input.
5449 continue
5450 else
5451 # Passes both tests.
5452 ac_preproc_ok=:
5453 break
5455 rm -f conftest.err conftest.$ac_ext
5457 done
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then :
5462 else
5463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5465 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." "$LINENO" 5; }
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5476 $as_echo_n "checking for inline... " >&6; }
5477 if test "${ac_cv_c_inline+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 ac_cv_c_inline=no
5481 for ac_kw in inline __inline__ __inline; do
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #ifndef __cplusplus
5485 typedef int foo_t;
5486 static $ac_kw foo_t static_foo () {return 0; }
5487 $ac_kw foo_t foo () {return 0; }
5488 #endif
5490 _ACEOF
5491 if ac_fn_c_try_compile "$LINENO"; then :
5492 ac_cv_c_inline=$ac_kw
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 test "$ac_cv_c_inline" != no && break
5496 done
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5500 $as_echo "$ac_cv_c_inline" >&6; }
5502 case $ac_cv_c_inline in
5503 inline | yes) ;;
5505 case $ac_cv_c_inline in
5506 no) ac_val=;;
5507 *) ac_val=$ac_cv_c_inline;;
5508 esac
5509 cat >>confdefs.h <<_ACEOF
5510 #ifndef __cplusplus
5511 #define inline $ac_val
5512 #endif
5513 _ACEOF
5515 esac
5518 # Check whether --enable-largefile was given.
5519 if test "${enable_largefile+set}" = set; then :
5520 enableval=$enable_largefile;
5523 if test "$enable_largefile" != no; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5526 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5527 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 ac_cv_sys_largefile_CC=no
5531 if test "$GCC" != yes; then
5532 ac_save_CC=$CC
5533 while :; do
5534 # IRIX 6.2 and later do not support large files by default,
5535 # so use the C compiler's -n32 option if that helps.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5546 ? 1 : -1];
5548 main ()
5552 return 0;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 break
5558 rm -f core conftest.err conftest.$ac_objext
5559 CC="$CC -n32"
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 ac_cv_sys_largefile_CC=' -n32'; break
5563 rm -f core conftest.err conftest.$ac_objext
5564 break
5565 done
5566 CC=$ac_save_CC
5567 rm -f conftest.$ac_ext
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5571 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5572 if test "$ac_cv_sys_largefile_CC" != no; then
5573 CC=$CC$ac_cv_sys_largefile_CC
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5577 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 while :; do
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5592 ? 1 : -1];
5594 main ()
5598 return 0;
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 ac_cv_sys_file_offset_bits=no; break
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #define _FILE_OFFSET_BITS 64
5608 #include <sys/types.h>
5609 /* Check that off_t can represent 2**63 - 1 correctly.
5610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5611 since some C++ compilers masquerading as C compilers
5612 incorrectly reject 9223372036854775807. */
5613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5615 && LARGE_OFF_T % 2147483647 == 1)
5616 ? 1 : -1];
5618 main ()
5622 return 0;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 ac_cv_sys_file_offset_bits=64; break
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_file_offset_bits=unknown
5630 break
5631 done
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5634 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5635 case $ac_cv_sys_file_offset_bits in #(
5636 no | unknown) ;;
5638 cat >>confdefs.h <<_ACEOF
5639 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5640 _ACEOF
5642 esac
5643 rm -rf conftest*
5644 if test $ac_cv_sys_file_offset_bits = unknown; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5646 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5647 if test "${ac_cv_sys_large_files+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 while :; do
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5661 ? 1 : -1];
5663 main ()
5667 return 0;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_sys_large_files=no; break
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #define _LARGE_FILES 1
5677 #include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680 since some C++ compilers masquerading as C compilers
5681 incorrectly reject 9223372036854775807. */
5682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684 && LARGE_OFF_T % 2147483647 == 1)
5685 ? 1 : -1];
5687 main ()
5691 return 0;
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_sys_large_files=1; break
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 ac_cv_sys_large_files=unknown
5699 break
5700 done
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5703 $as_echo "$ac_cv_sys_large_files" >&6; }
5704 case $ac_cv_sys_large_files in #(
5705 no | unknown) ;;
5707 cat >>confdefs.h <<_ACEOF
5708 #define _LARGE_FILES $ac_cv_sys_large_files
5709 _ACEOF
5711 esac
5712 rm -rf conftest*
5717 # sizeof(char) is 1 by definition.
5718 # The cast to long int works around a bug in the HP C Compiler
5719 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5720 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5721 # This bug is HP SR number 8606223364.
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5723 $as_echo_n "checking size of void *... " >&6; }
5724 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5729 else
5730 if test "$ac_cv_type_void_p" = yes; then
5731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5733 { as_fn_set_status 77
5734 as_fn_error "cannot compute sizeof (void *)
5735 See \`config.log' for more details." "$LINENO" 5; }; }
5736 else
5737 ac_cv_sizeof_void_p=0
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5743 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5747 cat >>confdefs.h <<_ACEOF
5748 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5749 _ACEOF
5752 # The cast to long int works around a bug in the HP C Compiler
5753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5755 # This bug is HP SR number 8606223364.
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5757 $as_echo_n "checking size of short... " >&6; }
5758 if test "${ac_cv_sizeof_short+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5763 else
5764 if test "$ac_cv_type_short" = yes; then
5765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5767 { as_fn_set_status 77
5768 as_fn_error "cannot compute sizeof (short)
5769 See \`config.log' for more details." "$LINENO" 5; }; }
5770 else
5771 ac_cv_sizeof_short=0
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5777 $as_echo "$ac_cv_sizeof_short" >&6; }
5781 cat >>confdefs.h <<_ACEOF
5782 #define SIZEOF_SHORT $ac_cv_sizeof_short
5783 _ACEOF
5786 # The cast to long int works around a bug in the HP C Compiler
5787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5789 # This bug is HP SR number 8606223364.
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5791 $as_echo_n "checking size of int... " >&6; }
5792 if test "${ac_cv_sizeof_int+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5797 else
5798 if test "$ac_cv_type_int" = yes; then
5799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5801 { as_fn_set_status 77
5802 as_fn_error "cannot compute sizeof (int)
5803 See \`config.log' for more details." "$LINENO" 5; }; }
5804 else
5805 ac_cv_sizeof_int=0
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5811 $as_echo "$ac_cv_sizeof_int" >&6; }
5815 cat >>confdefs.h <<_ACEOF
5816 #define SIZEOF_INT $ac_cv_sizeof_int
5817 _ACEOF
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5825 $as_echo_n "checking size of long... " >&6; }
5826 if test "${ac_cv_sizeof_long+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5831 else
5832 if test "$ac_cv_type_long" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status 77
5836 as_fn_error "cannot compute sizeof (long)
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5838 else
5839 ac_cv_sizeof_long=0
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5845 $as_echo "$ac_cv_sizeof_long" >&6; }
5849 cat >>confdefs.h <<_ACEOF
5850 #define SIZEOF_LONG $ac_cv_sizeof_long
5851 _ACEOF
5854 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5855 if test "x$ac_cv_type_long_long" = x""yes; then :
5857 cat >>confdefs.h <<_ACEOF
5858 #define HAVE_LONG_LONG 1
5859 _ACEOF
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5866 $as_echo_n "checking size of long long... " >&6; }
5867 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5872 else
5873 if test "$ac_cv_type_long_long" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status 77
5877 as_fn_error "cannot compute sizeof (long long)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5879 else
5880 ac_cv_sizeof_long_long=0
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5886 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5890 cat >>confdefs.h <<_ACEOF
5891 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5892 _ACEOF
5897 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5898 case $ac_cv_c_int8_t in #(
5899 no|yes) ;; #(
5902 cat >>confdefs.h <<_ACEOF
5903 #define int8_t $ac_cv_c_int8_t
5904 _ACEOF
5906 esac
5908 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5909 case $ac_cv_c_int16_t in #(
5910 no|yes) ;; #(
5913 cat >>confdefs.h <<_ACEOF
5914 #define int16_t $ac_cv_c_int16_t
5915 _ACEOF
5917 esac
5919 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5920 case $ac_cv_c_int32_t in #(
5921 no|yes) ;; #(
5924 cat >>confdefs.h <<_ACEOF
5925 #define int32_t $ac_cv_c_int32_t
5926 _ACEOF
5928 esac
5930 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5931 case $ac_cv_c_int64_t in #(
5932 no|yes) ;; #(
5935 cat >>confdefs.h <<_ACEOF
5936 #define int64_t $ac_cv_c_int64_t
5937 _ACEOF
5939 esac
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5943 $as_echo_n "checking for long long int... " >&6; }
5944 if test "${ac_cv_type_long_long_int+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5950 /* For now, do not test the preprocessor; as of 2007 there are too many
5951 implementations with broken preprocessors. Perhaps this can
5952 be revisited in 2012. In the meantime, code should not expect
5953 #if to work with literals wider than 32 bits. */
5954 /* Test literals. */
5955 long long int ll = 9223372036854775807ll;
5956 long long int nll = -9223372036854775807LL;
5957 unsigned long long int ull = 18446744073709551615ULL;
5958 /* Test constant expressions. */
5959 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5960 ? 1 : -1)];
5961 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5962 ? 1 : -1)];
5963 int i = 63;
5965 main ()
5967 /* Test availability of runtime routines for shift and division. */
5968 long long int llmax = 9223372036854775807ll;
5969 unsigned long long int ullmax = 18446744073709551615ull;
5970 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5971 | (llmax / ll) | (llmax % ll)
5972 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5973 | (ullmax / ull) | (ullmax % ull));
5975 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 if test "$cross_compiling" = yes; then :
5981 ac_cv_type_long_long_int=yes
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <limits.h>
5986 #ifndef LLONG_MAX
5987 # define HALF \
5988 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5989 # define LLONG_MAX (HALF - 1 + HALF)
5990 #endif
5992 main ()
5994 long long int n = 1;
5995 int i;
5996 for (i = 0; ; i++)
5998 long long int m = n << i;
5999 if (m >> i != n)
6000 return 1;
6001 if (LLONG_MAX / 2 < m)
6002 break;
6004 return 0;
6006 return 0;
6008 _ACEOF
6009 if ac_fn_c_try_run "$LINENO"; then :
6010 ac_cv_type_long_long_int=yes
6011 else
6012 ac_cv_type_long_long_int=no
6014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6015 conftest.$ac_objext conftest.beam conftest.$ac_ext
6018 else
6019 ac_cv_type_long_long_int=no
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6025 $as_echo "$ac_cv_type_long_long_int" >&6; }
6026 if test $ac_cv_type_long_long_int = yes; then
6028 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6034 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6035 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6037 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6039 else
6040 test $ac_cv_type_long_long_int = yes \
6041 && ac_type='long long int' \
6042 || ac_type='long int'
6044 cat >>confdefs.h <<_ACEOF
6045 #define intmax_t $ac_type
6046 _ACEOF
6052 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6053 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6055 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6057 else
6058 for ac_type in 'int' 'long int' 'long long int'; do
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 $ac_includes_default
6063 main ()
6065 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6066 test_array [0] = 0
6069 return 0;
6071 _ACEOF
6072 if ac_fn_c_try_compile "$LINENO"; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define intptr_t $ac_type
6076 _ACEOF
6078 ac_type=
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 test -z "$ac_type" && break
6082 done
6086 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6087 case $ac_cv_c_uint8_t in #(
6088 no|yes) ;; #(
6091 $as_echo "#define _UINT8_T 1" >>confdefs.h
6094 cat >>confdefs.h <<_ACEOF
6095 #define uint8_t $ac_cv_c_uint8_t
6096 _ACEOF
6098 esac
6100 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6101 case $ac_cv_c_uint16_t in #(
6102 no|yes) ;; #(
6106 cat >>confdefs.h <<_ACEOF
6107 #define uint16_t $ac_cv_c_uint16_t
6108 _ACEOF
6110 esac
6112 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6113 case $ac_cv_c_uint32_t in #(
6114 no|yes) ;; #(
6117 $as_echo "#define _UINT32_T 1" >>confdefs.h
6120 cat >>confdefs.h <<_ACEOF
6121 #define uint32_t $ac_cv_c_uint32_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6127 case $ac_cv_c_uint64_t in #(
6128 no|yes) ;; #(
6131 $as_echo "#define _UINT64_T 1" >>confdefs.h
6134 cat >>confdefs.h <<_ACEOF
6135 #define uint64_t $ac_cv_c_uint64_t
6136 _ACEOF
6138 esac
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6142 $as_echo_n "checking for unsigned long long int... " >&6; }
6143 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 /* For now, do not test the preprocessor; as of 2007 there are too many
6150 implementations with broken preprocessors. Perhaps this can
6151 be revisited in 2012. In the meantime, code should not expect
6152 #if to work with literals wider than 32 bits. */
6153 /* Test literals. */
6154 long long int ll = 9223372036854775807ll;
6155 long long int nll = -9223372036854775807LL;
6156 unsigned long long int ull = 18446744073709551615ULL;
6157 /* Test constant expressions. */
6158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6159 ? 1 : -1)];
6160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6161 ? 1 : -1)];
6162 int i = 63;
6164 main ()
6166 /* Test availability of runtime routines for shift and division. */
6167 long long int llmax = 9223372036854775807ll;
6168 unsigned long long int ullmax = 18446744073709551615ull;
6169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6170 | (llmax / ll) | (llmax % ll)
6171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6172 | (ullmax / ull) | (ullmax % ull));
6174 return 0;
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 ac_cv_type_unsigned_long_long_int=yes
6180 else
6181 ac_cv_type_unsigned_long_long_int=no
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6187 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6188 if test $ac_cv_type_unsigned_long_long_int = yes; then
6190 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6196 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6197 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6199 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6201 else
6202 test $ac_cv_type_unsigned_long_long_int = yes \
6203 && ac_type='unsigned long long int' \
6204 || ac_type='unsigned long int'
6206 cat >>confdefs.h <<_ACEOF
6207 #define uintmax_t $ac_type
6208 _ACEOF
6214 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6215 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6217 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6219 else
6220 for ac_type in 'unsigned int' 'unsigned long int' \
6221 'unsigned long long int'; do
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 $ac_includes_default
6226 main ()
6228 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6229 test_array [0] = 0
6232 return 0;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6237 cat >>confdefs.h <<_ACEOF
6238 #define uintptr_t $ac_type
6239 _ACEOF
6241 ac_type=
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 test -z "$ac_type" && break
6245 done
6261 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6262 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6265 # check what underlying integer type int64_t uses
6266 ac_ext=cpp
6267 ac_cpp='$CXXCPP $CPPFLAGS'
6268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6274 $as_echo_n "checking for int64_t underlying type... " >&6; }
6275 if test "${ac_cv_int64_t_type+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6282 #ifdef HAVE_STDINT_H
6283 #include <stdint.h>
6284 #endif
6285 template <typename T> struct X { };
6286 template <>
6287 struct X<long> { typedef long t; };
6290 main ()
6292 X<int64_t>::t x;
6294 return 0;
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6298 ac_cv_int64_t_type=long
6299 else
6300 ac_cv_int64_t_type="long long"
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6305 $as_echo "$ac_cv_int64_t_type" >&6; }
6306 if test "$ac_cv_int64_t_type" = "long"; then
6308 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6310 else
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6314 #ifdef HAVE_STDINT_H
6315 #include <stdint.h>
6316 #endif
6317 template <typename T> struct X { };
6318 template <>
6319 struct X<long long> { typedef long long t; };
6322 main ()
6324 X<int64_t>::t x;
6326 return 0;
6328 _ACEOF
6329 if ac_fn_cxx_try_compile "$LINENO"; then :
6331 else
6332 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346 # ---------------------
6347 # Warnings and checking
6348 # ---------------------
6350 # Check $CC warning features (if it's GCC).
6351 # We want to use -pedantic, but we don't want warnings about
6352 # * 'long long'
6353 # * variadic macros
6354 # * overlong strings
6355 # * C++11 narrowing conversions in { }
6356 # So, we only use -pedantic if we can disable those warnings.
6358 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6359 # Check whether --enable-build-format-warnings was given.
6360 if test "${enable_build_format_warnings+set}" = set; then :
6361 enableval=$enable_build_format_warnings;
6362 else
6363 enable_build_format_warnings=yes
6366 if test $enable_build_format_warnings = no; then :
6367 wf_opt=-Wno-format
6368 else
6369 wf_opt=
6371 loose_warn=
6372 save_CFLAGS="$CFLAGS"
6373 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6374 # Do the check with the no- prefix removed since gcc silently
6375 # accepts any -Wno-* option on purpose
6376 case $real_option in
6377 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6378 *) option=$real_option ;;
6379 esac
6380 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6383 $as_echo_n "checking whether $CC supports $option... " >&6; }
6384 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 CFLAGS="$option"
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6392 main ()
6396 return 0;
6398 _ACEOF
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 eval "$as_acx_Woption=yes"
6401 else
6402 eval "$as_acx_Woption=no"
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 eval ac_res=\$$as_acx_Woption
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6411 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6413 done
6414 CFLAGS="$save_CFLAGS"
6416 c_loose_warn=
6417 save_CFLAGS="$CFLAGS"
6418 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6419 # Do the check with the no- prefix removed since gcc silently
6420 # accepts any -Wno-* option on purpose
6421 case $real_option in
6422 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6423 *) option=$real_option ;;
6424 esac
6425 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6428 $as_echo_n "checking whether $CC supports $option... " >&6; }
6429 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 CFLAGS="$option"
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6437 main ()
6441 return 0;
6443 _ACEOF
6444 if ac_fn_c_try_compile "$LINENO"; then :
6445 eval "$as_acx_Woption=yes"
6446 else
6447 eval "$as_acx_Woption=no"
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 eval ac_res=\$$as_acx_Woption
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6454 $as_echo "$ac_res" >&6; }
6455 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6456 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6458 done
6459 CFLAGS="$save_CFLAGS"
6461 strict_warn=
6462 save_CFLAGS="$CFLAGS"
6463 for real_option in -Wmissing-format-attribute; do
6464 # Do the check with the no- prefix removed since gcc silently
6465 # accepts any -Wno-* option on purpose
6466 case $real_option in
6467 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6468 *) option=$real_option ;;
6469 esac
6470 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6473 $as_echo_n "checking whether $CC supports $option... " >&6; }
6474 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 CFLAGS="$option"
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6482 main ()
6486 return 0;
6488 _ACEOF
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 eval "$as_acx_Woption=yes"
6491 else
6492 eval "$as_acx_Woption=no"
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 eval ac_res=\$$as_acx_Woption
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6499 $as_echo "$ac_res" >&6; }
6500 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6501 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6503 done
6504 CFLAGS="$save_CFLAGS"
6506 save_CFLAGS="$CFLAGS"
6507 for real_option in -Woverloaded-virtual; do
6508 # Do the check with the no- prefix removed since gcc silently
6509 # accepts any -Wno-* option on purpose
6510 case $real_option in
6511 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6512 *) option=$real_option ;;
6513 esac
6514 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6517 $as_echo_n "checking whether $CC supports $option... " >&6; }
6518 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 CFLAGS="$option"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6526 main ()
6530 return 0;
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 eval "$as_acx_Woption=yes"
6535 else
6536 eval "$as_acx_Woption=no"
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 eval ac_res=\$$as_acx_Woption
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6545 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6547 done
6548 CFLAGS="$save_CFLAGS"
6550 c_strict_warn=
6551 save_CFLAGS="$CFLAGS"
6552 for real_option in -Wold-style-definition -Wc++-compat; do
6553 # Do the check with the no- prefix removed since gcc silently
6554 # accepts any -Wno-* option on purpose
6555 case $real_option in
6556 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6557 *) option=$real_option ;;
6558 esac
6559 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6562 $as_echo_n "checking whether $CC supports $option... " >&6; }
6563 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 CFLAGS="$option"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6571 main ()
6575 return 0;
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 eval "$as_acx_Woption=yes"
6580 else
6581 eval "$as_acx_Woption=no"
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 eval ac_res=\$$as_acx_Woption
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6588 $as_echo "$ac_res" >&6; }
6589 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6590 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6592 done
6593 CFLAGS="$save_CFLAGS"
6595 # Do the check with the no- prefix removed from the warning options
6596 # since gcc silently accepts any -Wno-* option on purpose
6597 if test "$GCC" = yes; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6599 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6600 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 save_CFLAGS="$CFLAGS"
6604 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6618 else
6619 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 CFLAGS="$save_CFLAGS"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6625 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6626 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6627 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6632 # Check whether --enable-werror-always was given.
6633 if test "${enable_werror_always+set}" = set; then :
6634 enableval=$enable_werror_always;
6635 else
6636 enable_werror_always=no
6639 if test $enable_werror_always = yes; then :
6640 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6645 # The above macros do nothing if the compiler is not GCC. However, the
6646 # Makefile has more goo to add other flags, so these variables are used
6647 # to enable warnings only for GCC.
6648 warn_cflags=
6649 warn_cxxflags=
6650 if test "x$GCC" = "xyes"; then
6651 warn_cflags='$(GCC_WARN_CFLAGS)'
6652 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6657 # Disable exceptions and RTTI if building with g++
6658 noexception_flags=
6659 save_CFLAGS="$CFLAGS"
6660 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option=$real_option ;;
6666 esac
6667 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 CFLAGS="$option"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6679 main ()
6683 return 0;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6688 else
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 eval ac_res=\$$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6700 done
6701 CFLAGS="$save_CFLAGS"
6704 # Enable expensive internal checks
6705 is_release=
6706 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6707 is_release=yes
6710 # Check whether --enable-checking was given.
6711 if test "${enable_checking+set}" = set; then :
6712 enableval=$enable_checking; ac_checking_flags="${enableval}"
6713 else
6715 # Determine the default checks.
6716 if test x$is_release = x ; then
6717 ac_checking_flags=yes
6718 else
6719 ac_checking_flags=release
6723 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6724 for check in release $ac_checking_flags
6726 case $check in
6727 # these set all the flags to specific states
6728 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6729 ac_fold_checking= ; ac_gc_checking=1 ;
6730 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6731 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6732 ac_tree_checking=1 ; ac_valgrind_checking= ;
6733 ac_types_checking=1 ;;
6734 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6735 ac_fold_checking= ; ac_gc_checking= ;
6736 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6737 ac_rtlflag_checking= ; ac_runtime_checking= ;
6738 ac_tree_checking= ; ac_valgrind_checking= ;
6739 ac_types_checking= ;;
6740 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6741 ac_fold_checking=1 ; ac_gc_checking=1 ;
6742 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6743 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6744 ac_tree_checking=1 ; ac_valgrind_checking= ;
6745 ac_types_checking=1 ;;
6746 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6747 ac_fold_checking= ; ac_gc_checking= ;
6748 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6749 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6750 ac_tree_checking= ; ac_valgrind_checking= ;
6751 ac_types_checking= ;;
6752 # these enable particular checks
6753 assert) ac_assert_checking=1 ;;
6754 df) ac_df_checking=1 ;;
6755 fold) ac_fold_checking=1 ;;
6756 gc) ac_gc_checking=1 ;;
6757 gcac) ac_gc_always_collect=1 ;;
6758 gimple) ac_gimple_checking=1 ;;
6759 misc) ac_checking=1 ;;
6760 rtl) ac_rtl_checking=1 ;;
6761 rtlflag) ac_rtlflag_checking=1 ;;
6762 runtime) ac_runtime_checking=1 ;;
6763 tree) ac_tree_checking=1 ;;
6764 types) ac_types_checking=1 ;;
6765 valgrind) ac_valgrind_checking=1 ;;
6766 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6767 esac
6768 done
6769 IFS="$ac_save_IFS"
6771 nocommon_flag=""
6772 if test x$ac_checking != x ; then
6774 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6776 nocommon_flag=-fno-common
6779 if test x$ac_df_checking != x ; then
6781 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6784 if test x$ac_assert_checking != x ; then
6786 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6789 if test x$ac_gimple_checking != x ; then
6791 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6795 if test x$ac_runtime_checking != x ; then
6797 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6800 if test x$ac_tree_checking != x ; then
6802 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6804 TREEBROWSER=tree-browser.o
6805 TREECHECKING=yes
6807 if test x$ac_types_checking != x ; then
6809 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6814 if test x$ac_rtl_checking != x ; then
6816 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6819 if test x$ac_rtlflag_checking != x ; then
6821 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6824 if test x$ac_gc_checking != x ; then
6826 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6829 if test x$ac_gc_always_collect != x ; then
6831 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6834 if test x$ac_fold_checking != x ; then
6836 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6839 valgrind_path_defines=
6840 valgrind_command=
6842 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6843 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6844 have_valgrind_h=yes
6845 else
6846 have_valgrind_h=no
6851 # It is certainly possible that there's valgrind but no valgrind.h.
6852 # GCC relies on making annotations so we must have both.
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6854 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #include <valgrind/memcheck.h>
6858 #ifndef VALGRIND_DISCARD
6859 #error VALGRIND_DISCARD not defined
6860 #endif
6861 _ACEOF
6862 if ac_fn_c_try_cpp "$LINENO"; then :
6863 gcc_cv_header_valgrind_memcheck_h=yes
6864 else
6865 gcc_cv_header_valgrind_memcheck_h=no
6867 rm -f conftest.err conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6869 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6871 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <memcheck.h>
6875 #ifndef VALGRIND_DISCARD
6876 #error VALGRIND_DISCARD not defined
6877 #endif
6878 _ACEOF
6879 if ac_fn_c_try_cpp "$LINENO"; then :
6880 gcc_cv_header_memcheck_h=yes
6881 else
6882 gcc_cv_header_memcheck_h=no
6884 rm -f conftest.err conftest.$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6886 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6887 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6889 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6892 if test $gcc_cv_header_memcheck_h = yes; then
6894 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6898 if test x$ac_valgrind_checking != x ; then
6900 # Prepare PATH_SEPARATOR.
6901 # The user is always right.
6902 if test "${PATH_SEPARATOR+set}" != set; then
6903 echo "#! /bin/sh" >conf$$.sh
6904 echo "exit 0" >>conf$$.sh
6905 chmod +x conf$$.sh
6906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6907 PATH_SEPARATOR=';'
6908 else
6909 PATH_SEPARATOR=:
6911 rm -f conf$$.sh
6914 # Find out how to test for executable files. Don't use a zero-byte file,
6915 # as systems may use methods other than mode bits to determine executability.
6916 cat >conf$$.file <<_ASEOF
6917 #! /bin/sh
6918 exit 0
6919 _ASEOF
6920 chmod +x conf$$.file
6921 if test -x conf$$.file >/dev/null 2>&1; then
6922 ac_executable_p="test -x"
6923 else
6924 ac_executable_p="test -f"
6926 rm -f conf$$.file
6928 # Extract the first word of "valgrind", so it can be a program name with args.
6929 set dummy valgrind; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 case "$valgrind_path" in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6941 for ac_dir in $PATH; do
6942 IFS="$ac_save_IFS"
6943 test -z "$ac_dir" && ac_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6946 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6947 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6948 break 2
6951 done
6952 done
6953 IFS="$ac_save_IFS"
6955 esac
6957 valgrind_path="$ac_cv_path_valgrind_path"
6958 if test -n "$valgrind_path"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6960 $as_echo "$valgrind_path" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$valgrind_path" = "x" \
6967 || (test $have_valgrind_h = no \
6968 && test $gcc_cv_header_memcheck_h = no \
6969 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6970 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6972 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6973 valgrind_command="$valgrind_path -q"
6975 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6981 # Enable code coverage collection
6982 # Check whether --enable-coverage was given.
6983 if test "${enable_coverage+set}" = set; then :
6984 enableval=$enable_coverage; case "${enableval}" in
6985 yes|noopt)
6986 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6988 opt)
6989 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6992 # a.k.a. --disable-coverage
6993 coverage_flags=""
6996 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6998 esac
6999 else
7000 coverage_flags=""
7005 # Check whether --enable-gather-detailed-mem-stats was given.
7006 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7007 enableval=$enable_gather_detailed_mem_stats;
7008 else
7009 enable_gather_detailed_mem_stats=no
7012 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7014 cat >>confdefs.h <<_ACEOF
7015 #define GATHER_STATISTICS $gather_stats
7016 _ACEOF
7019 # Check whether --enable-valgrind-annotations was given.
7020 if test "${enable_valgrind_annotations+set}" = set; then :
7021 enableval=$enable_valgrind_annotations;
7022 else
7023 enable_valgrind_annotations=no
7026 if test x$enable_valgrind_annotations != xno \
7027 || test x$ac_valgrind_checking != x; then
7028 if (test $have_valgrind_h = no \
7029 && test $gcc_cv_header_memcheck_h = no \
7030 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7031 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7034 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7038 # -------------------------------
7039 # Miscenalleous configure options
7040 # -------------------------------
7042 # With stabs
7044 # Check whether --with-stabs was given.
7045 if test "${with_stabs+set}" = set; then :
7046 withval=$with_stabs; stabs="$with_stabs"
7047 else
7048 stabs=no
7052 # Determine whether or not multilibs are enabled.
7053 # Check whether --enable-multilib was given.
7054 if test "${enable_multilib+set}" = set; then :
7055 enableval=$enable_multilib;
7056 else
7057 enable_multilib=yes
7062 # Determine whether or not multiarch is enabled.
7063 # Check whether --enable-multiarch was given.
7064 if test "${enable_multiarch+set}" = set; then :
7065 enableval=$enable_multiarch; case "${enableval}" in
7066 yes|no|auto) enable_multiarch=$enableval;;
7067 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7068 esac
7069 else
7070 enable_multiarch=auto
7073 if test x${enable_multiarch} = xauto; then
7074 if test x${with_native_system_header_dir} != x; then
7075 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7076 enable_multiarch=no
7078 if test x$host != x$target && test "x$with_sysroot" = x; then
7079 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7080 enable_multiarch=no
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7084 $as_echo_n "checking for multiarch configuration... " >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7087 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7089 # needed for setting the multiarch name for soft-float/hard-float ABIs
7093 # Enable __cxa_atexit for C++.
7094 # Check whether --enable-__cxa_atexit was given.
7095 if test "${enable___cxa_atexit+set}" = set; then :
7096 enableval=$enable___cxa_atexit;
7100 # Enable C extension for decimal float if target supports it.
7102 # Check whether --enable-decimal-float was given.
7103 if test "${enable_decimal_float+set}" = set; then :
7104 enableval=$enable_decimal_float;
7105 case $enable_decimal_float in
7106 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7107 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7108 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7109 esac
7111 else
7113 case $target in
7114 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7115 i?86*-*-gnu* | \
7116 i?86*-*-mingw* | x86_64*-*-mingw* | \
7117 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7118 enable_decimal_float=yes
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7122 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7123 enable_decimal_float=no
7125 esac
7130 # x86's use BID format instead of DPD
7131 case x$enable_decimal_float in
7132 xyes)
7133 case $target in
7134 i?86*-*-* | x86_64*-*-*)
7135 enable_decimal_float=bid
7138 enable_decimal_float=dpd
7140 esac
7141 default_decimal_float=$enable_decimal_float
7143 xno)
7144 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7145 # dependency on libdecnumber.
7146 default_decimal_float=dpd
7148 esac
7153 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7155 cat >>confdefs.h <<_ACEOF
7156 #define ENABLE_DECIMAL_FLOAT $dfp
7157 _ACEOF
7160 # Use default_decimal_float for dependency.
7161 enable_decimal_float=$default_decimal_float
7163 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7165 cat >>confdefs.h <<_ACEOF
7166 #define ENABLE_DECIMAL_BID_FORMAT $bid
7167 _ACEOF
7170 # Enable C extension for fixed-point arithmetic.
7171 # Check whether --enable-fixed-point was given.
7172 if test "${enable_fixed_point+set}" = set; then :
7173 enableval=$enable_fixed_point;
7174 else
7176 case $target in
7177 arm*)
7178 enable_fixed_point=yes
7181 mips*-*-*)
7182 enable_fixed_point=yes
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7186 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7187 enable_fixed_point=no
7189 esac
7195 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7197 cat >>confdefs.h <<_ACEOF
7198 #define ENABLE_FIXED_POINT $fixedpoint
7199 _ACEOF
7202 # Enable threads
7203 # Pass with no value to take the default
7204 # Pass with a value to specify a thread package
7205 # Check whether --enable-threads was given.
7206 if test "${enable_threads+set}" = set; then :
7207 enableval=$enable_threads;
7208 else
7209 enable_threads=''
7213 # Check whether --enable-tls was given.
7214 if test "${enable_tls+set}" = set; then :
7215 enableval=$enable_tls;
7216 case $enable_tls in
7217 yes | no) ;;
7218 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7219 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7220 esac
7222 else
7223 enable_tls=''
7227 # Check whether --enable-objc-gc was given.
7228 if test "${enable_objc_gc+set}" = set; then :
7229 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7230 objc_boehm_gc=''
7231 else
7232 objc_boehm_gc=1
7234 else
7235 objc_boehm_gc=''
7240 # Check whether --with-dwarf2 was given.
7241 if test "${with_dwarf2+set}" = set; then :
7242 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7243 else
7244 dwarf2=no
7248 # Check whether --enable-shared was given.
7249 if test "${enable_shared+set}" = set; then :
7250 enableval=$enable_shared;
7251 case $enable_shared in
7252 yes | no) ;;
7254 enable_shared=no
7255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7256 for pkg in $enableval; do
7257 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7258 enable_shared=yes
7260 done
7261 IFS="$ac_save_ifs"
7263 esac
7265 else
7266 enable_shared=yes
7272 # Check whether --with-native-system-header-dir was given.
7273 if test "${with_native_system_header_dir+set}" = set; then :
7274 withval=$with_native_system_header_dir;
7275 case ${with_native_system_header_dir} in
7276 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7277 /* | [A-Za-z]:[\\/]*) ;;
7278 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7279 esac
7280 configured_native_system_header_dir="${withval}"
7282 else
7283 configured_native_system_header_dir=
7288 # Check whether --with-build-sysroot was given.
7289 if test "${with_build_sysroot+set}" = set; then :
7290 withval=$with_build_sysroot; if test x"$withval" != x ; then
7291 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7293 else
7294 SYSROOT_CFLAGS_FOR_TARGET=
7299 if test "x$prefix" = xNONE; then
7300 test_prefix=/usr/local
7301 else
7302 test_prefix=$prefix
7304 if test "x$exec_prefix" = xNONE; then
7305 test_exec_prefix=$test_prefix
7306 else
7307 test_exec_prefix=$exec_prefix
7311 # Check whether --with-sysroot was given.
7312 if test "${with_sysroot+set}" = set; then :
7313 withval=$with_sysroot;
7314 case ${with_sysroot} in
7315 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7316 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7317 esac
7319 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7320 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7322 case ${TARGET_SYSTEM_ROOT} in
7323 "${test_prefix}"|"${test_prefix}/"*|\
7324 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7325 '${prefix}'|'${prefix}/'*|\
7326 '${exec_prefix}'|'${exec_prefix}/'*)
7327 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7328 TARGET_SYSTEM_ROOT_DEFINE="$t"
7330 esac
7332 else
7334 TARGET_SYSTEM_ROOT=
7335 TARGET_SYSTEM_ROOT_DEFINE=
7336 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7345 # Check whether --with-specs was given.
7346 if test "${with_specs+set}" = set; then :
7347 withval=$with_specs; CONFIGURE_SPECS=$withval
7348 else
7349 CONFIGURE_SPECS=
7357 # Check whether --with-pkgversion was given.
7358 if test "${with_pkgversion+set}" = set; then :
7359 withval=$with_pkgversion; case "$withval" in
7360 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7361 no) PKGVERSION= ;;
7362 *) PKGVERSION="($withval) " ;;
7363 esac
7364 else
7365 PKGVERSION="(GCC) "
7373 # Check whether --with-bugurl was given.
7374 if test "${with_bugurl+set}" = set; then :
7375 withval=$with_bugurl; case "$withval" in
7376 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7377 no) BUGURL=
7379 *) BUGURL="$withval"
7381 esac
7382 else
7383 BUGURL="http://gcc.gnu.org/bugs.html"
7387 case ${BUGURL} in
7389 REPORT_BUGS_TO=
7390 REPORT_BUGS_TEXI=
7393 REPORT_BUGS_TO="<$BUGURL>"
7394 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7396 esac;
7401 # Sanity check enable_languages in case someone does not run the toplevel
7402 # configure # script.
7403 # Check whether --enable-languages was given.
7404 if test "${enable_languages+set}" = set; then :
7405 enableval=$enable_languages; case ,${enable_languages}, in
7406 ,,|,yes,)
7407 # go safe -- we cannot be much sure without the toplevel
7408 # configure's
7409 # analysis of which target libs are present and usable
7410 enable_languages=c
7412 *,all,*)
7413 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7415 *,c,*)
7418 enable_languages=c,${enable_languages}
7420 esac
7421 else
7422 enable_languages=c
7426 if test x"$enable_as_accelerator_for" != x; then
7428 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7430 enable_as_accelerator=yes
7431 case "${target}" in
7432 *-intelmicemul-*)
7433 # In this case we expect offload compiler to be built as native, so we
7434 # need to rename the driver to avoid clashes with host's drivers.
7435 program_transform_name="s&^&${target}-&" ;;
7436 esac
7437 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7438 program_transform_name=`echo $program_transform_name | sed $sedscript`
7439 accel_dir_suffix=/accel/${target_noncanonical}
7440 real_target_noncanonical=${enable_as_accelerator_for}
7446 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7447 tgt=`echo $tgt | sed 's/=.*//'`
7448 if test x"$offload_targets" = x; then
7449 offload_targets=$tgt
7450 else
7451 offload_targets="$offload_targets:$tgt"
7453 done
7455 cat >>confdefs.h <<_ACEOF
7456 #define OFFLOAD_TARGETS "$offload_targets"
7457 _ACEOF
7459 if test x"$offload_targets" != x; then
7461 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7466 # Check whether --with-multilib-list was given.
7467 if test "${with_multilib_list+set}" = set; then :
7468 withval=$with_multilib_list; :
7469 else
7470 with_multilib_list=default
7474 # -------------------------
7475 # Checks for other programs
7476 # -------------------------
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7479 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7480 set x ${MAKE-make}
7481 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat >conftest.make <<\_ACEOF
7486 SHELL = /bin/sh
7487 all:
7488 @echo '@@@%%%=$(MAKE)=@@@%%%'
7489 _ACEOF
7490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7492 *@@@%%%=?*=@@@%%%*)
7493 eval ac_cv_prog_make_${ac_make}_set=yes;;
7495 eval ac_cv_prog_make_${ac_make}_set=no;;
7496 esac
7497 rm -f conftest.make
7499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501 $as_echo "yes" >&6; }
7502 SET_MAKE=
7503 else
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 SET_MAKE="MAKE=${MAKE-make}"
7510 # Find some useful tools
7511 for ac_prog in gawk mawk nawk awk
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy $ac_prog; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if test "${ac_cv_prog_AWK+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$AWK"; then
7521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_AWK="$ac_prog"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7534 done
7535 done
7536 IFS=$as_save_IFS
7540 AWK=$ac_cv_prog_AWK
7541 if test -n "$AWK"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7543 $as_echo "$AWK" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7550 test -n "$AWK" && break
7551 done
7553 # We need awk to create options.c and options.h.
7554 # Bail out if it's missing.
7555 case ${AWK} in
7556 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7557 esac
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7560 $as_echo_n "checking whether ln -s works... " >&6; }
7561 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 rm -f conftestdata_t
7565 echo >conftestdata_f
7566 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7567 then
7568 gcc_cv_prog_LN_S="ln -s"
7569 else
7570 if ln conftestdata_f conftestdata_t 2>/dev/null
7571 then
7572 gcc_cv_prog_LN_S=ln
7573 else
7574 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7575 then
7576 gcc_cv_prog_LN_S="cp -p"
7577 else
7578 gcc_cv_prog_LN_S=cp
7582 rm -f conftestdata_f conftestdata_t
7585 LN_S="$gcc_cv_prog_LN_S"
7586 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588 $as_echo "yes" >&6; }
7589 else
7590 if test "$gcc_cv_prog_LN_S" = "ln"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7592 $as_echo "no, using ln" >&6; }
7593 else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7595 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7600 $as_echo_n "checking whether ln works... " >&6; }
7601 if test "${acx_cv_prog_LN+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 rm -f conftestdata_t
7605 echo >conftestdata_f
7606 if ln conftestdata_f conftestdata_t 2>/dev/null
7607 then
7608 acx_cv_prog_LN=ln
7609 else
7610 acx_cv_prog_LN=no
7612 rm -f conftestdata_f conftestdata_t
7615 if test $acx_cv_prog_LN = no; then
7616 LN="$LN_S"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7618 $as_echo "no, using $LN" >&6; }
7619 else
7620 LN="$acx_cv_prog_LN"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7627 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$RANLIB"; then
7634 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7647 done
7648 done
7649 IFS=$as_save_IFS
7653 RANLIB=$ac_cv_prog_RANLIB
7654 if test -n "$RANLIB"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7656 $as_echo "$RANLIB" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7664 if test -z "$ac_cv_prog_RANLIB"; then
7665 ac_ct_RANLIB=$RANLIB
7666 # Extract the first word of "ranlib", so it can be a program name with args.
7667 set dummy ranlib; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7672 else
7673 if test -n "$ac_ct_RANLIB"; then
7674 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683 ac_cv_prog_ac_ct_RANLIB="ranlib"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7687 done
7688 done
7689 IFS=$as_save_IFS
7693 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7694 if test -n "$ac_ct_RANLIB"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7696 $as_echo "$ac_ct_RANLIB" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7702 if test "x$ac_ct_RANLIB" = x; then
7703 RANLIB=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706 yes:)
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7710 esac
7711 RANLIB=$ac_ct_RANLIB
7713 else
7714 RANLIB="$ac_cv_prog_RANLIB"
7717 ranlib_flags=""
7720 # Find a good install program. We prefer a C program (faster),
7721 # so one script is as good as another. But avoid the broken or
7722 # incompatible versions:
7723 # SysV /etc/install, /usr/sbin/install
7724 # SunOS /usr/etc/install
7725 # IRIX /sbin/install
7726 # AIX /bin/install
7727 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7728 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7729 # ./install, which can be erroneously created by make from ./install.sh.
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7731 $as_echo_n "checking for a BSD compatible install... " >&6; }
7732 if test -z "$INSTALL"; then
7733 if test "${ac_cv_path_install+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7737 for ac_dir in $PATH; do
7738 # Account for people who put trailing slashes in PATH elements.
7739 case "$ac_dir/" in
7740 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7742 # OSF1 and SCO ODT 3.0 have their own names for install.
7743 for ac_prog in ginstall scoinst install; do
7744 if test -f $ac_dir/$ac_prog; then
7745 if test $ac_prog = install &&
7746 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7747 # AIX install. It has an incompatible calling convention.
7748 # OSF/1 installbsd also uses dspmsg, but is usable.
7750 else
7751 ac_cv_path_install="$ac_dir/$ac_prog -c"
7752 break 2
7755 done
7757 esac
7758 done
7759 IFS="$ac_save_IFS"
7762 if test "${ac_cv_path_install+set}" = set; then
7763 INSTALL="$ac_cv_path_install"
7764 else
7765 # As a last resort, use the slow shell script. We don't cache a
7766 # path for INSTALL within a source directory, because that will
7767 # break other packages using the cache if that directory is
7768 # removed, or if the path is relative.
7769 INSTALL="$ac_install_sh"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7773 $as_echo "$INSTALL" >&6; }
7775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7776 # It thinks the first close brace ends the variable substitution.
7777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7782 # See if cmp has --ignore-initial.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7784 $as_echo_n "checking for cmp's capabilities... " >&6; }
7785 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 echo abfoo >t1
7789 echo cdfoo >t2
7790 gcc_cv_prog_cmp_skip=slowcompare
7791 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7792 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7794 else
7795 gcc_cv_prog_cmp_skip=gnucompare
7798 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7799 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7800 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7802 else
7803 gcc_cv_prog_cmp_skip=fastcompare
7807 rm t1 t2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7811 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7812 make_compare_target=$gcc_cv_prog_cmp_skip
7816 # See if we have the mktemp command.
7817 # Extract the first word of "mktemp", so it can be a program name with args.
7818 set dummy mktemp; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$have_mktemp_command"; then
7825 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_have_mktemp_command="yes"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7842 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7845 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7846 if test -n "$have_mktemp_command"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7848 $as_echo "$have_mktemp_command" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7856 # See if makeinfo has been installed and is modern enough
7857 # that we can use it.
7859 # Extract the first word of "makeinfo", so it can be a program name with args.
7860 set dummy makeinfo; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$MAKEINFO"; then
7867 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_MAKEINFO="makeinfo"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 MAKEINFO=$ac_cv_prog_MAKEINFO
7887 if test -n "$MAKEINFO"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7889 $as_echo "$MAKEINFO" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7896 if test -n "$MAKEINFO"; then
7897 # Found it, now check the version.
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7899 $as_echo_n "checking for modern makeinfo... " >&6; }
7900 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7904 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7906 case $ac_prog_version in
7907 '') gcc_cv_prog_makeinfo_modern=no;;
7908 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7909 *) gcc_cv_prog_makeinfo_modern=no;;
7910 esac
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7914 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7915 else
7916 gcc_cv_prog_makeinfo_modern=no
7918 if test $gcc_cv_prog_makeinfo_modern = no; then
7919 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7922 if test $gcc_cv_prog_makeinfo_modern = no; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7924 *** Makeinfo is missing or too old.
7925 *** Info documentation will not be built." >&5
7926 $as_echo "$as_me: WARNING:
7927 *** Makeinfo is missing or too old.
7928 *** Info documentation will not be built." >&2;}
7929 BUILD_INFO=
7930 else
7931 BUILD_INFO=info
7935 # Is pod2man recent enough to regenerate manpages?
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7937 $as_echo_n "checking for recent Pod::Man... " >&6; }
7938 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7940 $as_echo "yes" >&6; }
7941 GENERATED_MANPAGES=generated-manpages
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 GENERATED_MANPAGES=
7949 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7951 # How about lex?
7952 for ac_prog in flex
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_FLEX+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$FLEX"; then
7962 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_FLEX="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 FLEX=$ac_cv_prog_FLEX
7982 if test -n "$FLEX"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7984 $as_echo "$FLEX" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$FLEX" && break
7992 done
7993 test -n "$FLEX" || FLEX="$MISSING flex"
7996 # Bison?
7997 for ac_prog in bison
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_prog_BISON+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 if test -n "$BISON"; then
8007 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8016 ac_cv_prog_BISON="$ac_prog"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8020 done
8021 done
8022 IFS=$as_save_IFS
8026 BISON=$ac_cv_prog_BISON
8027 if test -n "$BISON"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8029 $as_echo "$BISON" >&6; }
8030 else
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032 $as_echo "no" >&6; }
8036 test -n "$BISON" && break
8037 done
8038 test -n "$BISON" || BISON="$MISSING bison"
8041 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8042 # check for build == host before using them.
8044 # NM
8045 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8046 && test -d ../binutils ; then
8047 NM='${objdir}/../binutils/nm-new'
8048 else
8049 # Extract the first word of "nm", so it can be a program name with args.
8050 set dummy nm; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if test "${ac_cv_prog_NM+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 if test -n "$NM"; then
8057 ac_cv_prog_NM="$NM" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8062 IFS=$as_save_IFS
8063 test -z "$as_dir" && as_dir=.
8064 for ac_exec_ext in '' $ac_executable_extensions; do
8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066 ac_cv_prog_NM="nm"
8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068 break 2
8070 done
8071 done
8072 IFS=$as_save_IFS
8074 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8077 NM=$ac_cv_prog_NM
8078 if test -n "$NM"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8080 $as_echo "$NM" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8089 # AR
8090 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8091 && test -d ../binutils ; then
8092 AR='${objdir}/../binutils/ar'
8093 else
8094 # Extract the first word of "ar", so it can be a program name with args.
8095 set dummy ar; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if test "${ac_cv_prog_AR+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 if test -n "$AR"; then
8102 ac_cv_prog_AR="$AR" # Let the user override the test.
8103 else
8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8107 IFS=$as_save_IFS
8108 test -z "$as_dir" && as_dir=.
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_prog_AR="ar"
8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 break 2
8115 done
8116 done
8117 IFS=$as_save_IFS
8119 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8122 AR=$ac_cv_prog_AR
8123 if test -n "$AR"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8125 $as_echo "$AR" >&6; }
8126 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8134 # The jit documentation looks better if built with sphinx, but can be
8135 # built with texinfo if sphinx is not available.
8136 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8137 # Extract the first word of "sphinx-build", so it can be a program name with args.
8138 set dummy sphinx-build; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$doc_build_sys"; then
8145 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8154 ac_cv_prog_doc_build_sys="sphinx"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8158 done
8159 done
8160 IFS=$as_save_IFS
8162 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8165 doc_build_sys=$ac_cv_prog_doc_build_sys
8166 if test -n "$doc_build_sys"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8168 $as_echo "$doc_build_sys" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8176 # --------------------
8177 # Checks for C headers
8178 # --------------------
8180 # Need to reject headers which give warnings, so that the -Werror bootstrap
8181 # works later. *sigh* This needs to come before all header checks.
8183 ac_c_preproc_warn_flag=yes
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8186 $as_echo_n "checking for ANSI C header files... " >&6; }
8187 if test "${ac_cv_header_stdc+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <stdlib.h>
8193 #include <stdarg.h>
8194 #include <string.h>
8195 #include <float.h>
8198 main ()
8202 return 0;
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 ac_cv_header_stdc=yes
8207 else
8208 ac_cv_header_stdc=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 if test $ac_cv_header_stdc = yes; then
8213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <string.h>
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "memchr" >/dev/null 2>&1; then :
8222 else
8223 ac_cv_header_stdc=no
8225 rm -f conftest*
8229 if test $ac_cv_header_stdc = yes; then
8230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 #include <stdlib.h>
8235 _ACEOF
8236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237 $EGREP "free" >/dev/null 2>&1; then :
8239 else
8240 ac_cv_header_stdc=no
8242 rm -f conftest*
8246 if test $ac_cv_header_stdc = yes; then
8247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248 if test "$cross_compiling" = yes; then :
8250 else
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8253 #include <ctype.h>
8254 #include <stdlib.h>
8255 #if ((' ' & 0x0FF) == 0x020)
8256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8258 #else
8259 # define ISLOWER(c) \
8260 (('a' <= (c) && (c) <= 'i') \
8261 || ('j' <= (c) && (c) <= 'r') \
8262 || ('s' <= (c) && (c) <= 'z'))
8263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8264 #endif
8266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8268 main ()
8270 int i;
8271 for (i = 0; i < 256; i++)
8272 if (XOR (islower (i), ISLOWER (i))
8273 || toupper (i) != TOUPPER (i))
8274 return 2;
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_run "$LINENO"; then :
8280 else
8281 ac_cv_header_stdc=no
8283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8284 conftest.$ac_objext conftest.beam conftest.$ac_ext
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8290 $as_echo "$ac_cv_header_stdc" >&6; }
8291 if test $ac_cv_header_stdc = yes; then
8293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8298 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8299 if test "${ac_cv_header_time+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8305 #include <sys/time.h>
8306 #include <time.h>
8309 main ()
8311 if ((struct tm *) 0)
8312 return 0;
8314 return 0;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_header_time=yes
8319 else
8320 ac_cv_header_time=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8325 $as_echo "$ac_cv_header_time" >&6; }
8326 if test $ac_cv_header_time = yes; then
8328 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8333 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8334 if test "${gcc_cv_header_string+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 #include <string.h>
8340 #include <strings.h>
8342 main ()
8346 return 0;
8348 _ACEOF
8349 if ac_fn_c_try_compile "$LINENO"; then :
8350 gcc_cv_header_string=yes
8351 else
8352 gcc_cv_header_string=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8357 $as_echo "$gcc_cv_header_string" >&6; }
8358 if test $gcc_cv_header_string = yes; then
8360 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8365 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8366 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371 #include <sys/types.h>
8372 #include <sys/wait.h>
8373 #ifndef WEXITSTATUS
8374 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8375 #endif
8376 #ifndef WIFEXITED
8377 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8378 #endif
8381 main ()
8383 int s;
8384 wait (&s);
8385 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8387 return 0;
8389 _ACEOF
8390 if ac_fn_c_try_compile "$LINENO"; then :
8391 ac_cv_header_sys_wait_h=yes
8392 else
8393 ac_cv_header_sys_wait_h=no
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8398 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8399 if test $ac_cv_header_sys_wait_h = yes; then
8401 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8406 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8407 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <sys/types.h>
8413 #include <termios.h>
8414 #ifdef TIOCGWINSZ
8416 #endif
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "yes" >/dev/null 2>&1; then :
8421 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8422 else
8423 ac_cv_sys_tiocgwinsz_in_termios_h=no
8425 rm -f conftest*
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8429 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8431 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8433 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8434 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <sys/types.h>
8440 #include <sys/ioctl.h>
8441 #ifdef TIOCGWINSZ
8443 #endif
8445 _ACEOF
8446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8447 $EGREP "yes" >/dev/null 2>&1; then :
8448 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8449 else
8450 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8452 rm -f conftest*
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8456 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8458 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8460 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8465 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8466 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8467 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8468 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8469 do :
8470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8472 eval as_val=\$$as_ac_Header
8473 if test "x$as_val" = x""yes; then :
8474 cat >>confdefs.h <<_ACEOF
8475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 _ACEOF
8479 done
8482 # Check for thread headers.
8483 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8484 if test "x$ac_cv_header_thread_h" = x""yes; then :
8485 have_thread_h=yes
8486 else
8487 have_thread_h=
8490 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8491 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8492 have_pthread_h=yes
8493 else
8494 have_pthread_h=
8498 # These tests can't be done till we know if we have limits.h.
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8500 $as_echo_n "checking for CHAR_BIT... " >&6; }
8501 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 #ifdef HAVE_LIMITS_H
8507 #include <limits.h>
8508 #endif
8509 #ifdef CHAR_BIT
8510 found
8511 #endif
8512 _ACEOF
8513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8514 $EGREP "found" >/dev/null 2>&1; then :
8515 gcc_cv_decl_char_bit=yes
8516 else
8517 gcc_cv_decl_char_bit=no
8519 rm -f conftest*
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8524 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8525 if test $gcc_cv_decl_char_bit = no; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8527 $as_echo_n "checking number of bits in a byte... " >&6; }
8528 if test "${gcc_cv_c_nbby+set}" = set; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8532 gcc_cv_c_nbby=
8533 while test $i -lt 65; do
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8538 main ()
8540 switch(0) {
8541 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8542 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8545 return 0;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 gcc_cv_c_nbby=$i; break
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 i=`expr $i + 1`
8553 done
8554 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8558 $as_echo "$gcc_cv_c_nbby" >&6; }
8559 if test $gcc_cv_c_nbby = failed; then
8560 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8561 else
8563 cat >>confdefs.h <<_ACEOF
8564 #define CHAR_BIT $gcc_cv_c_nbby
8565 _ACEOF
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8570 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8571 if test "${ac_cv_c_bigendian+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 ac_cv_c_bigendian=unknown
8575 # See if we're dealing with a universal compiler.
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #ifndef __APPLE_CC__
8579 not a universal capable compiler
8580 #endif
8581 typedef int dummy;
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"; then :
8586 # Check for potential -arch flags. It is not universal unless
8587 # there are at least two -arch flags with different values.
8588 ac_arch=
8589 ac_prev=
8590 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8591 if test -n "$ac_prev"; then
8592 case $ac_word in
8593 i?86 | x86_64 | ppc | ppc64)
8594 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8595 ac_arch=$ac_word
8596 else
8597 ac_cv_c_bigendian=universal
8598 break
8601 esac
8602 ac_prev=
8603 elif test "x$ac_word" = "x-arch"; then
8604 ac_prev=arch
8606 done
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609 if test $ac_cv_c_bigendian = unknown; then
8610 # See if sys/param.h defines the BYTE_ORDER macro.
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613 #include <sys/types.h>
8614 #include <sys/param.h>
8617 main ()
8619 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8620 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8621 && LITTLE_ENDIAN)
8622 bogus endian macros
8623 #endif
8626 return 0;
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630 # It does; now see whether it defined to BIG_ENDIAN or not.
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <sys/types.h>
8634 #include <sys/param.h>
8637 main ()
8639 #if BYTE_ORDER != BIG_ENDIAN
8640 not big endian
8641 #endif
8644 return 0;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 ac_cv_c_bigendian=yes
8649 else
8650 ac_cv_c_bigendian=no
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 if test $ac_cv_c_bigendian = unknown; then
8657 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <limits.h>
8663 main ()
8665 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8666 bogus endian macros
8667 #endif
8670 return 0;
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"; then :
8674 # It does; now see whether it defined to _BIG_ENDIAN or not.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <limits.h>
8680 main ()
8682 #ifndef _BIG_ENDIAN
8683 not big endian
8684 #endif
8687 return 0;
8689 _ACEOF
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 ac_cv_c_bigendian=yes
8692 else
8693 ac_cv_c_bigendian=no
8695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 if test $ac_cv_c_bigendian = unknown; then
8700 # Compile a test program.
8701 if test "$cross_compiling" = yes; then :
8702 # Try to guess by grepping values from an object file.
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 short int ascii_mm[] =
8706 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8707 short int ascii_ii[] =
8708 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709 int use_ascii (int i) {
8710 return ascii_mm[i] + ascii_ii[i];
8712 short int ebcdic_ii[] =
8713 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8714 short int ebcdic_mm[] =
8715 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8716 int use_ebcdic (int i) {
8717 return ebcdic_mm[i] + ebcdic_ii[i];
8719 extern int foo;
8722 main ()
8724 return use_ascii (foo) == use_ebcdic (foo);
8726 return 0;
8728 _ACEOF
8729 if ac_fn_c_try_compile "$LINENO"; then :
8730 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8731 ac_cv_c_bigendian=yes
8733 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8734 if test "$ac_cv_c_bigendian" = unknown; then
8735 ac_cv_c_bigendian=no
8736 else
8737 # finding both strings is unlikely to happen, but who knows?
8738 ac_cv_c_bigendian=unknown
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743 else
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h. */
8746 $ac_includes_default
8748 main ()
8751 /* Are we little or big endian? From Harbison&Steele. */
8752 union
8754 long int l;
8755 char c[sizeof (long int)];
8756 } u;
8757 u.l = 1;
8758 return u.c[sizeof (long int) - 1] == 1;
8761 return 0;
8763 _ACEOF
8764 if ac_fn_c_try_run "$LINENO"; then :
8765 ac_cv_c_bigendian=no
8766 else
8767 ac_cv_c_bigendian=yes
8769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8770 conftest.$ac_objext conftest.beam conftest.$ac_ext
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8776 $as_echo "$ac_cv_c_bigendian" >&6; }
8777 case $ac_cv_c_bigendian in #(
8778 yes)
8779 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8780 ;; #(
8782 ;; #(
8783 universal)
8785 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8787 ;; #(
8789 as_fn_error "unknown endianness
8790 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8791 esac
8794 # ----------------------
8795 # Checks for C++ headers
8796 # ----------------------
8798 ac_ext=cpp
8799 ac_cpp='$CXXCPP $CPPFLAGS'
8800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8804 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8805 if test -z "$CXXCPP"; then
8806 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 # Double quotes because CXXCPP needs to be expanded
8810 for CXXCPP in "$CXX -E" "/lib/cpp"
8812 ac_preproc_ok=false
8813 for ac_cxx_preproc_warn_flag in '' yes
8815 # Use a header file that comes with gcc, so configuring glibc
8816 # with a fresh cross-compiler works.
8817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8818 # <limits.h> exists even on freestanding compilers.
8819 # On the NeXT, cc -E runs the code through the compiler's parser,
8820 # not just through cpp. "Syntax error" is here to catch this case.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #ifdef __STDC__
8824 # include <limits.h>
8825 #else
8826 # include <assert.h>
8827 #endif
8828 Syntax error
8829 _ACEOF
8830 if ac_fn_cxx_try_cpp "$LINENO"; then :
8832 else
8833 # Broken: fails on valid input.
8834 continue
8836 rm -f conftest.err conftest.$ac_ext
8838 # OK, works on sane cases. Now check whether nonexistent headers
8839 # can be detected and how.
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 #include <ac_nonexistent.h>
8843 _ACEOF
8844 if ac_fn_cxx_try_cpp "$LINENO"; then :
8845 # Broken: success on invalid input.
8846 continue
8847 else
8848 # Passes both tests.
8849 ac_preproc_ok=:
8850 break
8852 rm -f conftest.err conftest.$ac_ext
8854 done
8855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8856 rm -f conftest.err conftest.$ac_ext
8857 if $ac_preproc_ok; then :
8858 break
8861 done
8862 ac_cv_prog_CXXCPP=$CXXCPP
8865 CXXCPP=$ac_cv_prog_CXXCPP
8866 else
8867 ac_cv_prog_CXXCPP=$CXXCPP
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8870 $as_echo "$CXXCPP" >&6; }
8871 ac_preproc_ok=false
8872 for ac_cxx_preproc_warn_flag in '' yes
8874 # Use a header file that comes with gcc, so configuring glibc
8875 # with a fresh cross-compiler works.
8876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8877 # <limits.h> exists even on freestanding compilers.
8878 # On the NeXT, cc -E runs the code through the compiler's parser,
8879 # not just through cpp. "Syntax error" is here to catch this case.
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #ifdef __STDC__
8883 # include <limits.h>
8884 #else
8885 # include <assert.h>
8886 #endif
8887 Syntax error
8888 _ACEOF
8889 if ac_fn_cxx_try_cpp "$LINENO"; then :
8891 else
8892 # Broken: fails on valid input.
8893 continue
8895 rm -f conftest.err conftest.$ac_ext
8897 # OK, works on sane cases. Now check whether nonexistent headers
8898 # can be detected and how.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 #include <ac_nonexistent.h>
8902 _ACEOF
8903 if ac_fn_cxx_try_cpp "$LINENO"; then :
8904 # Broken: success on invalid input.
8905 continue
8906 else
8907 # Passes both tests.
8908 ac_preproc_ok=:
8909 break
8911 rm -f conftest.err conftest.$ac_ext
8913 done
8914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8915 rm -f conftest.err conftest.$ac_ext
8916 if $ac_preproc_ok; then :
8918 else
8919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8922 See \`config.log' for more details." >&5
8923 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8924 See \`config.log' for more details." >&2;}; }
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934 ac_ext=cpp
8935 ac_cpp='$CXXCPP $CPPFLAGS'
8936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8942 for ac_header in unordered_map
8943 do :
8944 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8945 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8946 cat >>confdefs.h <<_ACEOF
8947 #define HAVE_UNORDERED_MAP 1
8948 _ACEOF
8951 done
8953 for ac_header in tr1/unordered_map
8954 do :
8955 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8956 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8957 cat >>confdefs.h <<_ACEOF
8958 #define HAVE_TR1_UNORDERED_MAP 1
8959 _ACEOF
8962 done
8964 for ac_header in ext/hash_map
8965 do :
8966 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8967 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_EXT_HASH_MAP 1
8970 _ACEOF
8973 done
8976 ac_ext=c
8977 ac_cpp='$CPP $CPPFLAGS'
8978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8983 # --------
8984 # Dependency checking.
8985 # --------
8987 ac_ext=cpp
8988 ac_cpp='$CXXCPP $CPPFLAGS'
8989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8993 rm -rf .tst 2>/dev/null
8994 mkdir .tst 2>/dev/null
8995 if test -d .tst; then
8996 am__leading_dot=.
8997 else
8998 am__leading_dot=_
9000 rmdir .tst 2>/dev/null
9002 DEPDIR="${am__leading_dot}deps"
9004 ac_config_commands="$ac_config_commands depdir"
9007 ac_config_commands="$ac_config_commands gccdepdir"
9010 depcc="$CXX" am_compiler_list=
9012 am_depcomp=$ac_aux_dir/depcomp
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9014 $as_echo_n "checking dependency style of $depcc... " >&6; }
9015 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -f "$am_depcomp"; then
9019 # We make a subdir and do the tests there. Otherwise we can end up
9020 # making bogus files that we don't know about and never remove. For
9021 # instance it was reported that on HP-UX the gcc test will end up
9022 # making a dummy file named `D' -- because `-MD' means `put the output
9023 # in D'.
9024 mkdir conftest.dir
9025 # Copy depcomp to subdir because otherwise we won't find it if we're
9026 # using a relative directory.
9027 cp "$am_depcomp" conftest.dir
9028 cd conftest.dir
9029 # We will build objects and dependencies in a subdirectory because
9030 # it helps to detect inapplicable dependency modes. For instance
9031 # both Tru64's cc and ICC support -MD to output dependencies as a
9032 # side effect of compilation, but ICC will put the dependencies in
9033 # the current directory while Tru64 will put them in the object
9034 # directory.
9035 mkdir sub
9037 am_cv_CXX_dependencies_compiler_type=none
9038 if test "$am_compiler_list" = ""; then
9039 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9041 for depmode in $am_compiler_list; do
9042 if test $depmode = none; then break; fi
9044 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9045 # Setup a source with many dependencies, because some compilers
9046 # like to wrap large dependency lists on column 80 (with \), and
9047 # we should not choose a depcomp mode which is confused by this.
9049 # We need to recreate these files for each test, as the compiler may
9050 # overwrite some of them when testing with obscure command lines.
9051 # This happens at least with the AIX C compiler.
9052 : > sub/conftest.c
9053 for i in 1 2 3 4 5 6; do
9054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9056 # Solaris 8's {/usr,}/bin/sh.
9057 touch sub/conftst$i.h
9058 done
9059 echo "include sub/conftest.Po" > confmf
9061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9062 # mode. It turns out that the SunPro C++ compiler does not properly
9063 # handle `-M -o', and we need to detect this.
9064 depcmd="depmode=$depmode \
9065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9068 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9069 if env $depcmd > conftest.err 2>&1 &&
9070 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9071 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9072 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9073 # icc doesn't choke on unknown options, it will just issue warnings
9074 # or remarks (even with -Werror). So we grep stderr for any message
9075 # that says an option was ignored or not supported.
9076 # When given -MP, icc 7.0 and 7.1 complain thusly:
9077 # icc: Command line warning: ignoring option '-M'; no argument required
9078 # The diagnosis changed in icc 8.0:
9079 # icc: Command line remark: option '-MP' not supported
9080 if (grep 'ignoring option' conftest.err ||
9081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9082 am_cv_CXX_dependencies_compiler_type=$depmode
9083 $as_echo "$as_me:$LINENO: success" >&5
9084 break
9087 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9088 sed -e 's/^/| /' < conftest.err >&5
9089 done
9091 cd ..
9092 rm -rf conftest.dir
9093 else
9094 am_cv_CXX_dependencies_compiler_type=none
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9099 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9100 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9101 then as_fn_error "no usable dependency style found" "$LINENO" 5
9102 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9106 ac_ext=c
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113 # --------
9114 # UNSORTED
9115 # --------
9118 # These libraries may be used by collect2.
9119 # We may need a special search path to get them linked.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9121 $as_echo_n "checking for collect2 libraries... " >&6; }
9122 if test "${gcc_cv_collect2_libs+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 save_LIBS="$LIBS"
9126 for libs in '' -lld -lmld \
9127 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9128 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9130 LIBS="$libs"
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9134 /* Override any GCC internal prototype to avoid an error.
9135 Use char because int might match the return type of a GCC
9136 builtin and then its argument prototype would still apply. */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 char ldopen ();
9142 main ()
9144 return ldopen ();
9146 return 0;
9148 _ACEOF
9149 if ac_fn_c_try_link "$LINENO"; then :
9150 gcc_cv_collect2_libs="$libs"; break
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 done
9155 LIBS="$save_LIBS"
9156 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9159 $as_echo "$gcc_cv_collect2_libs" >&6; }
9160 case $gcc_cv_collect2_libs in
9161 "none required") ;;
9162 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9163 esac
9166 # When building Ada code on Alpha, we need exc_resume which is usually in
9167 # -lexc. So test for it.
9168 save_LIBS="$LIBS"
9169 LIBS=
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9171 $as_echo_n "checking for library containing exc_resume... " >&6; }
9172 if test "${ac_cv_search_exc_resume+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 ac_func_search_save_LIBS=$LIBS
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char exc_resume ();
9187 main ()
9189 return exc_resume ();
9191 return 0;
9193 _ACEOF
9194 for ac_lib in '' exc; do
9195 if test -z "$ac_lib"; then
9196 ac_res="none required"
9197 else
9198 ac_res=-l$ac_lib
9199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9201 if ac_fn_c_try_link "$LINENO"; then :
9202 ac_cv_search_exc_resume=$ac_res
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext
9206 if test "${ac_cv_search_exc_resume+set}" = set; then :
9207 break
9209 done
9210 if test "${ac_cv_search_exc_resume+set}" = set; then :
9212 else
9213 ac_cv_search_exc_resume=no
9215 rm conftest.$ac_ext
9216 LIBS=$ac_func_search_save_LIBS
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9219 $as_echo "$ac_cv_search_exc_resume" >&6; }
9220 ac_res=$ac_cv_search_exc_resume
9221 if test "$ac_res" != no; then :
9222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9226 GNAT_LIBEXC="$LIBS"
9227 LIBS="$save_LIBS"
9230 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9231 save_LIBS="$LIBS"
9232 LIBS=
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9234 $as_echo_n "checking for library containing kstat_open... " >&6; }
9235 if test "${ac_cv_search_kstat_open+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 ac_func_search_save_LIBS=$LIBS
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9242 /* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 char kstat_open ();
9250 main ()
9252 return kstat_open ();
9254 return 0;
9256 _ACEOF
9257 for ac_lib in '' kstat; do
9258 if test -z "$ac_lib"; then
9259 ac_res="none required"
9260 else
9261 ac_res=-l$ac_lib
9262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 ac_cv_search_kstat_open=$ac_res
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext
9269 if test "${ac_cv_search_kstat_open+set}" = set; then :
9270 break
9272 done
9273 if test "${ac_cv_search_kstat_open+set}" = set; then :
9275 else
9276 ac_cv_search_kstat_open=no
9278 rm conftest.$ac_ext
9279 LIBS=$ac_func_search_save_LIBS
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9282 $as_echo "$ac_cv_search_kstat_open" >&6; }
9283 ac_res=$ac_cv_search_kstat_open
9284 if test "$ac_res" != no; then :
9285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9289 EXTRA_GCC_LIBS="$LIBS"
9290 LIBS="$save_LIBS"
9293 # Some systems put ldexp and frexp in libm instead of libc; assume
9294 # they're both in the same place. jcf-dump needs them.
9295 save_LIBS="$LIBS"
9296 LIBS=
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9298 $as_echo_n "checking for library containing ldexp... " >&6; }
9299 if test "${ac_cv_search_ldexp+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 ac_func_search_save_LIBS=$LIBS
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char ldexp ();
9314 main ()
9316 return ldexp ();
9318 return 0;
9320 _ACEOF
9321 for ac_lib in '' m; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9324 else
9325 ac_res=-l$ac_lib
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 ac_cv_search_ldexp=$ac_res
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext
9333 if test "${ac_cv_search_ldexp+set}" = set; then :
9334 break
9336 done
9337 if test "${ac_cv_search_ldexp+set}" = set; then :
9339 else
9340 ac_cv_search_ldexp=no
9342 rm conftest.$ac_ext
9343 LIBS=$ac_func_search_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9346 $as_echo "$ac_cv_search_ldexp" >&6; }
9347 ac_res=$ac_cv_search_ldexp
9348 if test "$ac_res" != no; then :
9349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9353 LDEXP_LIB="$LIBS"
9354 LIBS="$save_LIBS"
9357 # Use <inttypes.h> only if it exists,
9358 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9359 # PRId64
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9361 $as_echo_n "checking for inttypes.h... " >&6; }
9362 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9367 #define __STDC_FORMAT_MACROS
9368 #include <sys/types.h>
9369 #include <inttypes.h>
9371 main ()
9373 intmax_t i = -1;
9374 #ifndef PRId64
9375 choke me
9376 #endif
9378 return 0;
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"; then :
9382 gcc_cv_header_inttypes_h=yes
9383 else
9384 gcc_cv_header_inttypes_h=no
9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9390 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9391 if test $gcc_cv_header_inttypes_h = yes; then
9393 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9399 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9400 popen sysconf strsignal getrusage nl_langinfo \
9401 gettimeofday mbstowcs wcswidth mmap setlocale \
9402 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
9403 do :
9404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9406 eval as_val=\$$as_ac_var
9407 if test "x$as_val" = x""yes; then :
9408 cat >>confdefs.h <<_ACEOF
9409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9410 _ACEOF
9413 done
9416 if test x$ac_cv_func_mbstowcs = xyes; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9418 $as_echo_n "checking whether mbstowcs works... " >&6; }
9419 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 if test "$cross_compiling" = yes; then :
9423 gcc_cv_func_mbstowcs_works=yes
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <stdlib.h>
9428 int main()
9430 mbstowcs(0, "", 0);
9431 return 0;
9433 _ACEOF
9434 if ac_fn_c_try_run "$LINENO"; then :
9435 gcc_cv_func_mbstowcs_works=yes
9436 else
9437 gcc_cv_func_mbstowcs_works=no
9439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9440 conftest.$ac_objext conftest.beam conftest.$ac_ext
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9445 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9446 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9448 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9453 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9454 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9456 else
9458 cat >>confdefs.h <<_ACEOF
9459 #define ssize_t int
9460 _ACEOF
9464 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9465 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9467 else
9469 cat >>confdefs.h <<_ACEOF
9470 #define caddr_t char *
9471 _ACEOF
9477 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9478 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9479 gcc_header_sys_mman_h=yes
9480 else
9481 gcc_header_sys_mman_h=no
9484 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9485 if test "x$ac_cv_func_mmap" = x""yes; then :
9486 gcc_func_mmap=yes
9487 else
9488 gcc_func_mmap=no
9491 if test "$gcc_header_sys_mman_h" != yes \
9492 || test "$gcc_func_mmap" != yes; then
9493 gcc_cv_func_mmap_file=no
9494 gcc_cv_func_mmap_dev_zero=no
9495 gcc_cv_func_mmap_anon=no
9496 else
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9498 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9499 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 # Add a system to this blacklist if
9503 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9504 # memory area containing the same data that you'd get if you applied
9505 # read() to the same fd. The only system known to have a problem here
9506 # is VMS, where text files have record structure.
9507 case "$host_os" in
9508 *vms* | ultrix*)
9509 gcc_cv_func_mmap_file=no ;;
9511 gcc_cv_func_mmap_file=yes;;
9512 esac
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9515 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9517 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9518 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 # Add a system to this blacklist if it has mmap() but /dev/zero
9522 # does not exist, or if mmapping /dev/zero does not give anonymous
9523 # zeroed pages with both the following properties:
9524 # 1. If you map N consecutive pages in with one call, and then
9525 # unmap any subset of those pages, the pages that were not
9526 # explicitly unmapped remain accessible.
9527 # 2. If you map two adjacent blocks of memory and then unmap them
9528 # both at once, they must both go away.
9529 # Systems known to be in this category are Windows (all variants),
9530 # VMS, and Darwin.
9531 case "$host_os" in
9532 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9533 gcc_cv_func_mmap_dev_zero=no ;;
9535 gcc_cv_func_mmap_dev_zero=yes;;
9536 esac
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9539 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9541 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9543 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9544 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9549 #include <sys/types.h>
9550 #include <sys/mman.h>
9551 #include <unistd.h>
9553 #ifndef MAP_ANONYMOUS
9554 #define MAP_ANONYMOUS MAP_ANON
9555 #endif
9558 main ()
9560 int n = MAP_ANONYMOUS;
9562 return 0;
9564 _ACEOF
9565 if ac_fn_c_try_compile "$LINENO"; then :
9566 gcc_cv_decl_map_anon=yes
9567 else
9568 gcc_cv_decl_map_anon=no
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9573 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9575 if test $gcc_cv_decl_map_anon = no; then
9576 gcc_cv_func_mmap_anon=no
9577 else
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9579 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9580 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9584 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9585 # doesn't give anonymous zeroed pages with the same properties listed
9586 # above for use of /dev/zero.
9587 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9588 case "$host_os" in
9589 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9590 gcc_cv_func_mmap_anon=no ;;
9592 gcc_cv_func_mmap_anon=yes;;
9593 esac
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9596 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9600 if test $gcc_cv_func_mmap_file = yes; then
9602 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9605 if test $gcc_cv_func_mmap_dev_zero = yes; then
9607 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9610 if test $gcc_cv_func_mmap_anon = yes; then
9612 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9617 case "${host}" in
9618 *-*-*vms*)
9619 # Under VMS, vfork works very differently than on Unix. The standard test
9620 # won't work, and it isn't easily adaptable. It makes more sense to
9621 # just force it.
9622 ac_cv_func_vfork_works=yes
9624 esac
9625 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9626 if test "x$ac_cv_type_pid_t" = x""yes; then :
9628 else
9630 cat >>confdefs.h <<_ACEOF
9631 #define pid_t int
9632 _ACEOF
9636 for ac_header in vfork.h
9637 do :
9638 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9639 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_VFORK_H 1
9642 _ACEOF
9645 done
9647 for ac_func in fork vfork
9648 do :
9649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9651 eval as_val=\$$as_ac_var
9652 if test "x$as_val" = x""yes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655 _ACEOF
9658 done
9660 if test "x$ac_cv_func_fork" = xyes; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9662 $as_echo_n "checking for working fork... " >&6; }
9663 if test "${ac_cv_func_fork_works+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 if test "$cross_compiling" = yes; then :
9667 ac_cv_func_fork_works=cross
9668 else
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 $ac_includes_default
9673 main ()
9676 /* By Ruediger Kuhlmann. */
9677 return fork () < 0;
9680 return 0;
9682 _ACEOF
9683 if ac_fn_c_try_run "$LINENO"; then :
9684 ac_cv_func_fork_works=yes
9685 else
9686 ac_cv_func_fork_works=no
9688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9689 conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9694 $as_echo "$ac_cv_func_fork_works" >&6; }
9696 else
9697 ac_cv_func_fork_works=$ac_cv_func_fork
9699 if test "x$ac_cv_func_fork_works" = xcross; then
9700 case $host in
9701 *-*-amigaos* | *-*-msdosdjgpp*)
9702 # Override, as these systems have only a dummy fork() stub
9703 ac_cv_func_fork_works=no
9706 ac_cv_func_fork_works=yes
9708 esac
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9710 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9712 ac_cv_func_vfork_works=$ac_cv_func_vfork
9713 if test "x$ac_cv_func_vfork" = xyes; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9715 $as_echo_n "checking for working vfork... " >&6; }
9716 if test "${ac_cv_func_vfork_works+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 if test "$cross_compiling" = yes; then :
9720 ac_cv_func_vfork_works=cross
9721 else
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 /* Thanks to Paul Eggert for this test. */
9725 $ac_includes_default
9726 #include <sys/wait.h>
9727 #ifdef HAVE_VFORK_H
9728 # include <vfork.h>
9729 #endif
9730 /* On some sparc systems, changes by the child to local and incoming
9731 argument registers are propagated back to the parent. The compiler
9732 is told about this with #include <vfork.h>, but some compilers
9733 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9734 static variable whose address is put into a register that is
9735 clobbered by the vfork. */
9736 static void
9737 #ifdef __cplusplus
9738 sparc_address_test (int arg)
9739 # else
9740 sparc_address_test (arg) int arg;
9741 #endif
9743 static pid_t child;
9744 if (!child) {
9745 child = vfork ();
9746 if (child < 0) {
9747 perror ("vfork");
9748 _exit(2);
9750 if (!child) {
9751 arg = getpid();
9752 write(-1, "", 0);
9753 _exit (arg);
9759 main ()
9761 pid_t parent = getpid ();
9762 pid_t child;
9764 sparc_address_test (0);
9766 child = vfork ();
9768 if (child == 0) {
9769 /* Here is another test for sparc vfork register problems. This
9770 test uses lots of local variables, at least as many local
9771 variables as main has allocated so far including compiler
9772 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9773 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9774 reuse the register of parent for one of the local variables,
9775 since it will think that parent can't possibly be used any more
9776 in this routine. Assigning to the local variable will thus
9777 munge parent in the parent process. */
9778 pid_t
9779 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9780 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9781 /* Convince the compiler that p..p7 are live; otherwise, it might
9782 use the same hardware register for all 8 local variables. */
9783 if (p != p1 || p != p2 || p != p3 || p != p4
9784 || p != p5 || p != p6 || p != p7)
9785 _exit(1);
9787 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9788 from child file descriptors. If the child closes a descriptor
9789 before it execs or exits, this munges the parent's descriptor
9790 as well. Test for this by closing stdout in the child. */
9791 _exit(close(fileno(stdout)) != 0);
9792 } else {
9793 int status;
9794 struct stat st;
9796 while (wait(&status) != child)
9798 return (
9799 /* Was there some problem with vforking? */
9800 child < 0
9802 /* Did the child fail? (This shouldn't happen.) */
9803 || status
9805 /* Did the vfork/compiler bug occur? */
9806 || parent != getpid()
9808 /* Did the file descriptor bug occur? */
9809 || fstat(fileno(stdout), &st) != 0
9813 _ACEOF
9814 if ac_fn_c_try_run "$LINENO"; then :
9815 ac_cv_func_vfork_works=yes
9816 else
9817 ac_cv_func_vfork_works=no
9819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9825 $as_echo "$ac_cv_func_vfork_works" >&6; }
9828 if test "x$ac_cv_func_fork_works" = xcross; then
9829 ac_cv_func_vfork_works=$ac_cv_func_vfork
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9831 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9834 if test "x$ac_cv_func_vfork_works" = xyes; then
9836 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9838 else
9840 $as_echo "#define vfork fork" >>confdefs.h
9843 if test "x$ac_cv_func_fork_works" = xyes; then
9845 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9850 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9851 # iconv() prototype.
9852 ac_ext=cpp
9853 ac_cpp='$CXXCPP $CPPFLAGS'
9854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9859 if test "X$prefix" = "XNONE"; then
9860 acl_final_prefix="$ac_default_prefix"
9861 else
9862 acl_final_prefix="$prefix"
9864 if test "X$exec_prefix" = "XNONE"; then
9865 acl_final_exec_prefix='${prefix}'
9866 else
9867 acl_final_exec_prefix="$exec_prefix"
9869 acl_save_prefix="$prefix"
9870 prefix="$acl_final_prefix"
9871 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9872 prefix="$acl_save_prefix"
9875 # Check whether --with-gnu-ld was given.
9876 if test "${with_gnu_ld+set}" = set; then :
9877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9878 else
9879 with_gnu_ld=no
9882 # Prepare PATH_SEPARATOR.
9883 # The user is always right.
9884 if test "${PATH_SEPARATOR+set}" != set; then
9885 echo "#! /bin/sh" >conf$$.sh
9886 echo "exit 0" >>conf$$.sh
9887 chmod +x conf$$.sh
9888 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9889 PATH_SEPARATOR=';'
9890 else
9891 PATH_SEPARATOR=:
9893 rm -f conf$$.sh
9895 ac_prog=ld
9896 if test "$GCC" = yes; then
9897 # Check if gcc -print-prog-name=ld gives a path.
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9899 $as_echo_n "checking for ld used by GCC... " >&6; }
9900 case $host in
9901 *-*-mingw*)
9902 # gcc leaves a trailing carriage return which upsets mingw
9903 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9905 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9906 esac
9907 case $ac_prog in
9908 # Accept absolute paths.
9909 [\\/]* | [A-Za-z]:[\\/]*)
9910 re_direlt='/[^/][^/]*/\.\./'
9911 # Canonicalize the path of ld
9912 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9913 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9914 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9915 done
9916 test -z "$LD" && LD="$ac_prog"
9919 # If it fails, then pretend we aren't using GCC.
9920 ac_prog=ld
9923 # If it is relative, then search for the first ld in PATH.
9924 with_gnu_ld=unknown
9926 esac
9927 elif test "$with_gnu_ld" = yes; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9929 $as_echo_n "checking for GNU ld... " >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9932 $as_echo_n "checking for non-GNU ld... " >&6; }
9934 if test "${acl_cv_path_LD+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test -z "$LD"; then
9938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9939 for ac_dir in $PATH; do
9940 test -z "$ac_dir" && ac_dir=.
9941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9942 acl_cv_path_LD="$ac_dir/$ac_prog"
9943 # Check to see if the program is GNU ld. I'd rather use --version,
9944 # but apparently some GNU ld's only accept -v.
9945 # Break only if it was the GNU/non-GNU ld that we prefer.
9946 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9947 test "$with_gnu_ld" != no && break
9948 else
9949 test "$with_gnu_ld" != yes && break
9952 done
9953 IFS="$ac_save_ifs"
9954 else
9955 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9959 LD="$acl_cv_path_LD"
9960 if test -n "$LD"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9962 $as_echo "$LD" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9970 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9974 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9975 acl_cv_prog_gnu_ld=yes
9976 else
9977 acl_cv_prog_gnu_ld=no
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9981 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9982 with_gnu_ld=$acl_cv_prog_gnu_ld
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9987 $as_echo_n "checking for shared library run path origin... " >&6; }
9988 if test "${acl_cv_rpath+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9992 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9993 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9994 . ./conftest.sh
9995 rm -f ./conftest.sh
9996 acl_cv_rpath=done
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10000 $as_echo "$acl_cv_rpath" >&6; }
10001 wl="$acl_cv_wl"
10002 libext="$acl_cv_libext"
10003 shlibext="$acl_cv_shlibext"
10004 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10005 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10006 hardcode_direct="$acl_cv_hardcode_direct"
10007 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10008 # Check whether --enable-rpath was given.
10009 if test "${enable_rpath+set}" = set; then :
10010 enableval=$enable_rpath; :
10011 else
10012 enable_rpath=yes
10022 use_additional=yes
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10029 eval additional_includedir=\"$includedir\"
10030 eval additional_libdir=\"$libdir\"
10032 exec_prefix="$acl_save_exec_prefix"
10033 prefix="$acl_save_prefix"
10036 # Check whether --with-libiconv-prefix was given.
10037 if test "${with_libiconv_prefix+set}" = set; then :
10038 withval=$with_libiconv_prefix;
10039 if test "X$withval" = "Xno"; then
10040 use_additional=no
10041 else
10042 if test "X$withval" = "X"; then
10044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10049 eval additional_includedir=\"$includedir\"
10050 eval additional_libdir=\"$libdir\"
10052 exec_prefix="$acl_save_exec_prefix"
10053 prefix="$acl_save_prefix"
10055 else
10056 additional_includedir="$withval/include"
10057 additional_libdir="$withval/lib"
10063 LIBICONV=
10064 LTLIBICONV=
10065 INCICONV=
10066 rpathdirs=
10067 ltrpathdirs=
10068 names_already_handled=
10069 names_next_round='iconv '
10070 while test -n "$names_next_round"; do
10071 names_this_round="$names_next_round"
10072 names_next_round=
10073 for name in $names_this_round; do
10074 already_handled=
10075 for n in $names_already_handled; do
10076 if test "$n" = "$name"; then
10077 already_handled=yes
10078 break
10080 done
10081 if test -z "$already_handled"; then
10082 names_already_handled="$names_already_handled $name"
10083 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10084 eval value=\"\$HAVE_LIB$uppername\"
10085 if test -n "$value"; then
10086 if test "$value" = yes; then
10087 eval value=\"\$LIB$uppername\"
10088 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10089 eval value=\"\$LTLIB$uppername\"
10090 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10091 else
10094 else
10095 found_dir=
10096 found_la=
10097 found_so=
10098 found_a=
10099 if test $use_additional = yes; then
10100 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10101 found_dir="$additional_libdir"
10102 found_so="$additional_libdir/lib$name.$shlibext"
10103 if test -f "$additional_libdir/lib$name.la"; then
10104 found_la="$additional_libdir/lib$name.la"
10106 else
10107 if test -f "$additional_libdir/lib$name.$libext"; then
10108 found_dir="$additional_libdir"
10109 found_a="$additional_libdir/lib$name.$libext"
10110 if test -f "$additional_libdir/lib$name.la"; then
10111 found_la="$additional_libdir/lib$name.la"
10116 if test "X$found_dir" = "X"; then
10117 for x in $LDFLAGS $LTLIBICONV; do
10119 acl_save_prefix="$prefix"
10120 prefix="$acl_final_prefix"
10121 acl_save_exec_prefix="$exec_prefix"
10122 exec_prefix="$acl_final_exec_prefix"
10123 eval x=\"$x\"
10124 exec_prefix="$acl_save_exec_prefix"
10125 prefix="$acl_save_prefix"
10127 case "$x" in
10128 -L*)
10129 dir=`echo "X$x" | sed -e 's/^X-L//'`
10130 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10131 found_dir="$dir"
10132 found_so="$dir/lib$name.$shlibext"
10133 if test -f "$dir/lib$name.la"; then
10134 found_la="$dir/lib$name.la"
10136 else
10137 if test -f "$dir/lib$name.$libext"; then
10138 found_dir="$dir"
10139 found_a="$dir/lib$name.$libext"
10140 if test -f "$dir/lib$name.la"; then
10141 found_la="$dir/lib$name.la"
10146 esac
10147 if test "X$found_dir" != "X"; then
10148 break
10150 done
10152 if test "X$found_dir" != "X"; then
10153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10154 if test "X$found_so" != "X"; then
10155 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10157 else
10158 haveit=
10159 for x in $ltrpathdirs; do
10160 if test "X$x" = "X$found_dir"; then
10161 haveit=yes
10162 break
10164 done
10165 if test -z "$haveit"; then
10166 ltrpathdirs="$ltrpathdirs $found_dir"
10168 if test "$hardcode_direct" = yes; then
10169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10170 else
10171 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10173 haveit=
10174 for x in $rpathdirs; do
10175 if test "X$x" = "X$found_dir"; then
10176 haveit=yes
10177 break
10179 done
10180 if test -z "$haveit"; then
10181 rpathdirs="$rpathdirs $found_dir"
10183 else
10184 haveit=
10185 for x in $LDFLAGS $LIBICONV; do
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10191 eval x=\"$x\"
10192 exec_prefix="$acl_save_exec_prefix"
10193 prefix="$acl_save_prefix"
10195 if test "X$x" = "X-L$found_dir"; then
10196 haveit=yes
10197 break
10199 done
10200 if test -z "$haveit"; then
10201 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10203 if test "$hardcode_minus_L" != no; then
10204 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10205 else
10206 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10211 else
10212 if test "X$found_a" != "X"; then
10213 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10214 else
10215 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10218 additional_includedir=
10219 case "$found_dir" in
10220 */lib | */lib/)
10221 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10222 additional_includedir="$basedir/include"
10224 esac
10225 if test "X$additional_includedir" != "X"; then
10226 if test "X$additional_includedir" != "X/usr/include"; then
10227 haveit=
10228 if test "X$additional_includedir" = "X/usr/local/include"; then
10229 if test -n "$GCC"; then
10230 case $host_os in
10231 linux*) haveit=yes;;
10232 esac
10235 if test -z "$haveit"; then
10236 for x in $CPPFLAGS $INCICONV; do
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 acl_save_exec_prefix="$exec_prefix"
10241 exec_prefix="$acl_final_exec_prefix"
10242 eval x=\"$x\"
10243 exec_prefix="$acl_save_exec_prefix"
10244 prefix="$acl_save_prefix"
10246 if test "X$x" = "X-I$additional_includedir"; then
10247 haveit=yes
10248 break
10250 done
10251 if test -z "$haveit"; then
10252 if test -d "$additional_includedir"; then
10253 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10259 if test -n "$found_la"; then
10260 save_libdir="$libdir"
10261 case "$found_la" in
10262 */* | *\\*) . "$found_la" ;;
10263 *) . "./$found_la" ;;
10264 esac
10265 libdir="$save_libdir"
10266 for dep in $dependency_libs; do
10267 case "$dep" in
10268 -L*)
10269 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10270 if test "X$additional_libdir" != "X/usr/lib"; then
10271 haveit=
10272 if test "X$additional_libdir" = "X/usr/local/lib"; then
10273 if test -n "$GCC"; then
10274 case $host_os in
10275 linux*) haveit=yes;;
10276 esac
10279 if test -z "$haveit"; then
10280 haveit=
10281 for x in $LDFLAGS $LIBICONV; do
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287 eval x=\"$x\"
10288 exec_prefix="$acl_save_exec_prefix"
10289 prefix="$acl_save_prefix"
10291 if test "X$x" = "X-L$additional_libdir"; then
10292 haveit=yes
10293 break
10295 done
10296 if test -z "$haveit"; then
10297 if test -d "$additional_libdir"; then
10298 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10301 haveit=
10302 for x in $LDFLAGS $LTLIBICONV; do
10304 acl_save_prefix="$prefix"
10305 prefix="$acl_final_prefix"
10306 acl_save_exec_prefix="$exec_prefix"
10307 exec_prefix="$acl_final_exec_prefix"
10308 eval x=\"$x\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10312 if test "X$x" = "X-L$additional_libdir"; then
10313 haveit=yes
10314 break
10316 done
10317 if test -z "$haveit"; then
10318 if test -d "$additional_libdir"; then
10319 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10325 -R*)
10326 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10327 if test "$enable_rpath" != no; then
10328 haveit=
10329 for x in $rpathdirs; do
10330 if test "X$x" = "X$dir"; then
10331 haveit=yes
10332 break
10334 done
10335 if test -z "$haveit"; then
10336 rpathdirs="$rpathdirs $dir"
10338 haveit=
10339 for x in $ltrpathdirs; do
10340 if test "X$x" = "X$dir"; then
10341 haveit=yes
10342 break
10344 done
10345 if test -z "$haveit"; then
10346 ltrpathdirs="$ltrpathdirs $dir"
10350 -l*)
10351 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10353 *.la)
10354 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10357 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10358 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10360 esac
10361 done
10363 else
10364 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10365 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10369 done
10370 done
10371 if test "X$rpathdirs" != "X"; then
10372 if test -n "$hardcode_libdir_separator"; then
10373 alldirs=
10374 for found_dir in $rpathdirs; do
10375 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10376 done
10377 acl_save_libdir="$libdir"
10378 libdir="$alldirs"
10379 eval flag=\"$hardcode_libdir_flag_spec\"
10380 libdir="$acl_save_libdir"
10381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10382 else
10383 for found_dir in $rpathdirs; do
10384 acl_save_libdir="$libdir"
10385 libdir="$found_dir"
10386 eval flag=\"$hardcode_libdir_flag_spec\"
10387 libdir="$acl_save_libdir"
10388 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10389 done
10392 if test "X$ltrpathdirs" != "X"; then
10393 for found_dir in $ltrpathdirs; do
10394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10395 done
10404 am_save_CPPFLAGS="$CPPFLAGS"
10406 for element in $INCICONV; do
10407 haveit=
10408 for x in $CPPFLAGS; do
10410 acl_save_prefix="$prefix"
10411 prefix="$acl_final_prefix"
10412 acl_save_exec_prefix="$exec_prefix"
10413 exec_prefix="$acl_final_exec_prefix"
10414 eval x=\"$x\"
10415 exec_prefix="$acl_save_exec_prefix"
10416 prefix="$acl_save_prefix"
10418 if test "X$x" = "X$element"; then
10419 haveit=yes
10420 break
10422 done
10423 if test -z "$haveit"; then
10424 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10426 done
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10430 $as_echo_n "checking for iconv... " >&6; }
10431 if test "${am_cv_func_iconv+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10435 am_cv_func_iconv="no, consider installing GNU libiconv"
10436 am_cv_lib_iconv=no
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 #include <stdlib.h>
10440 #include <iconv.h>
10442 main ()
10444 iconv_t cd = iconv_open("","");
10445 iconv(cd,NULL,NULL,NULL,NULL);
10446 iconv_close(cd);
10448 return 0;
10450 _ACEOF
10451 if ac_fn_cxx_try_link "$LINENO"; then :
10452 am_cv_func_iconv=yes
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 if test "$am_cv_func_iconv" != yes; then
10457 am_save_LIBS="$LIBS"
10458 LIBS="$LIBS $LIBICONV"
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <stdlib.h>
10462 #include <iconv.h>
10464 main ()
10466 iconv_t cd = iconv_open("","");
10467 iconv(cd,NULL,NULL,NULL,NULL);
10468 iconv_close(cd);
10470 return 0;
10472 _ACEOF
10473 if ac_fn_cxx_try_link "$LINENO"; then :
10474 am_cv_lib_iconv=yes
10475 am_cv_func_iconv=yes
10477 rm -f core conftest.err conftest.$ac_objext \
10478 conftest$ac_exeext conftest.$ac_ext
10479 LIBS="$am_save_LIBS"
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10484 $as_echo "$am_cv_func_iconv" >&6; }
10485 if test "$am_cv_func_iconv" = yes; then
10487 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10490 if test "$am_cv_lib_iconv" = yes; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10492 $as_echo_n "checking how to link with libiconv... " >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10494 $as_echo "$LIBICONV" >&6; }
10495 else
10496 CPPFLAGS="$am_save_CPPFLAGS"
10497 LIBICONV=
10498 LTLIBICONV=
10503 if test "$am_cv_func_iconv" = yes; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10505 $as_echo_n "checking for iconv declaration... " >&6; }
10506 if test "${am_cv_proto_iconv+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10513 #include <stdlib.h>
10514 #include <iconv.h>
10515 extern
10516 #ifdef __cplusplus
10518 #endif
10519 #if defined(__STDC__) || defined(__cplusplus)
10520 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10521 #else
10522 size_t iconv();
10523 #endif
10526 main ()
10530 return 0;
10532 _ACEOF
10533 if ac_fn_cxx_try_compile "$LINENO"; then :
10534 am_cv_proto_iconv_arg1=""
10535 else
10536 am_cv_proto_iconv_arg1="const"
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10539 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);"
10542 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10544 }$am_cv_proto_iconv" >&5
10545 $as_echo "${ac_t:-
10546 }$am_cv_proto_iconv" >&6; }
10548 cat >>confdefs.h <<_ACEOF
10549 #define ICONV_CONST $am_cv_proto_iconv_arg1
10550 _ACEOF
10554 ac_ext=c
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561 # Until we have in-tree GNU iconv:
10562 LIBICONV_DEP=
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10567 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10568 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 #include <locale.h>
10575 main ()
10577 return LC_MESSAGES
10579 return 0;
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 am_cv_val_LC_MESSAGES=yes
10584 else
10585 am_cv_val_LC_MESSAGES=no
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10591 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10592 if test $am_cv_val_LC_MESSAGES = yes; then
10594 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10601 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10602 if test "${am_cv_langinfo_codeset+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 #include <langinfo.h>
10609 main ()
10611 char* cs = nl_langinfo(CODESET);
10613 return 0;
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 am_cv_langinfo_codeset=yes
10618 else
10619 am_cv_langinfo_codeset=no
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10626 $as_echo "$am_cv_langinfo_codeset" >&6; }
10627 if test $am_cv_langinfo_codeset = yes; then
10629 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10634 # We will need to find libiberty.h and ansidecl.h
10635 saved_CFLAGS="$CFLAGS"
10636 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10637 saved_CXXFLAGS="$CXXFLAGS"
10638 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10639 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10640 stpcpy strnlen strsignal strstr strverscmp \
10641 strtol strtoul strtoll strtoull \
10642 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10643 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
10645 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10647 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10648 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 #undef $ac_tr_decl
10654 #define $ac_tr_decl 1
10656 #include "ansidecl.h"
10657 #include "system.h"
10660 main ()
10662 #ifndef $ac_func
10663 char *(*pfn) = (char *(*)) $ac_func ;
10664 #endif
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"; then :
10670 eval "gcc_cv_have_decl_$ac_func=yes"
10671 else
10672 eval "gcc_cv_have_decl_$ac_func=no"
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 1
10681 _ACEOF
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 0
10687 _ACEOF
10691 done
10694 for ac_func in getrlimit setrlimit getrusage
10696 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10698 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10699 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10700 $as_echo_n "(cached) " >&6
10701 else
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #undef $ac_tr_decl
10705 #define $ac_tr_decl 1
10707 #include "ansidecl.h"
10708 #include "system.h"
10709 #ifdef HAVE_SYS_RESOURCE_H
10710 #include <sys/resource.h>
10711 #endif
10715 main ()
10717 #ifndef $ac_func
10718 char *(*pfn) = (char *(*)) $ac_func ;
10719 #endif
10721 return 0;
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725 eval "gcc_cv_have_decl_$ac_func=yes"
10726 else
10727 eval "gcc_cv_have_decl_$ac_func=no"
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10735 #define $ac_tr_decl 1
10736 _ACEOF
10738 else
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10741 #define $ac_tr_decl 0
10742 _ACEOF
10746 done
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10752 #include "ansidecl.h"
10753 #include "system.h"
10754 #ifdef HAVE_SYS_RESOURCE_H
10755 #include <sys/resource.h>
10756 #endif
10759 main ()
10761 rlim_t l = 0;
10763 return 0;
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10768 else
10770 $as_echo "#define rlim_t long" >>confdefs.h
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10776 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10777 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10778 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10779 for ac_func in ldgetname
10781 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10783 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10784 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #undef $ac_tr_decl
10790 #define $ac_tr_decl 1
10792 #include "ansidecl.h"
10793 #include "system.h"
10794 #ifdef HAVE_LDFCN_H
10795 #undef FREAD
10796 #undef FWRITE
10797 #include <ldfcn.h>
10798 #endif
10802 main ()
10804 #ifndef $ac_func
10805 char *(*pfn) = (char *(*)) $ac_func ;
10806 #endif
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10813 else
10814 eval "gcc_cv_have_decl_$ac_func=no"
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10822 #define $ac_tr_decl 1
10823 _ACEOF
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 0
10829 _ACEOF
10833 done
10836 for ac_func in times
10838 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10840 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10841 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 #undef $ac_tr_decl
10847 #define $ac_tr_decl 1
10849 #include "ansidecl.h"
10850 #include "system.h"
10851 #ifdef HAVE_SYS_TIMES_H
10852 #include <sys/times.h>
10853 #endif
10857 main ()
10859 #ifndef $ac_func
10860 char *(*pfn) = (char *(*)) $ac_func ;
10861 #endif
10863 return 0;
10865 _ACEOF
10866 if ac_fn_c_try_compile "$LINENO"; then :
10867 eval "gcc_cv_have_decl_$ac_func=yes"
10868 else
10869 eval "gcc_cv_have_decl_$ac_func=no"
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10876 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10877 #define $ac_tr_decl 1
10878 _ACEOF
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 0
10884 _ACEOF
10888 done
10891 for ac_func in sigaltstack
10893 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10895 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10896 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 #undef $ac_tr_decl
10902 #define $ac_tr_decl 1
10904 #include "ansidecl.h"
10905 #include "system.h"
10906 #include <signal.h>
10910 main ()
10912 #ifndef $ac_func
10913 char *(*pfn) = (char *(*)) $ac_func ;
10914 #endif
10916 return 0;
10918 _ACEOF
10919 if ac_fn_c_try_compile "$LINENO"; then :
10920 eval "gcc_cv_have_decl_$ac_func=yes"
10921 else
10922 eval "gcc_cv_have_decl_$ac_func=no"
10924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10929 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10930 #define $ac_tr_decl 1
10931 _ACEOF
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10936 #define $ac_tr_decl 0
10937 _ACEOF
10941 done
10944 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10945 # prototype.
10946 ac_ext=cpp
10947 ac_cpp='$CXXCPP $CPPFLAGS'
10948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10952 for ac_func in madvise
10954 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10957 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #undef $ac_tr_decl
10963 #define $ac_tr_decl 1
10965 #include "ansidecl.h"
10966 #include "system.h"
10970 main ()
10972 #ifndef $ac_func
10973 char *(*pfn) = (char *(*)) $ac_func ;
10974 #endif
10976 return 0;
10978 _ACEOF
10979 if ac_fn_cxx_try_compile "$LINENO"; then :
10980 eval "gcc_cv_have_decl_$ac_func=yes"
10981 else
10982 eval "gcc_cv_have_decl_$ac_func=no"
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10987 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10990 #define $ac_tr_decl 1
10991 _ACEOF
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10996 #define $ac_tr_decl 0
10997 _ACEOF
11001 done
11003 ac_ext=c
11004 ac_cpp='$CPP $CPPFLAGS'
11005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 # More time-related stuff.
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11012 $as_echo_n "checking for struct tms... " >&6; }
11013 if test "${ac_cv_struct_tms+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11020 #include "ansidecl.h"
11021 #include "system.h"
11022 #ifdef HAVE_SYS_TIMES_H
11023 #include <sys/times.h>
11024 #endif
11027 main ()
11029 struct tms tms;
11031 return 0;
11033 _ACEOF
11034 if ac_fn_c_try_compile "$LINENO"; then :
11035 ac_cv_struct_tms=yes
11036 else
11037 ac_cv_struct_tms=no
11039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11042 $as_echo "$ac_cv_struct_tms" >&6; }
11043 if test $ac_cv_struct_tms = yes; then
11045 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11049 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11050 # revisit after autoconf 2.50.
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11052 $as_echo_n "checking for clock_t... " >&6; }
11053 if test "${gcc_cv_type_clock_t+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11060 #include "ansidecl.h"
11061 #include "system.h"
11064 main ()
11066 clock_t x;
11068 return 0;
11070 _ACEOF
11071 if ac_fn_c_try_compile "$LINENO"; then :
11072 gcc_cv_type_clock_t=yes
11073 else
11074 gcc_cv_type_clock_t=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11079 $as_echo "$gcc_cv_type_clock_t" >&6; }
11080 if test $gcc_cv_type_clock_t = yes; then
11082 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11086 # Check if F_SETLKW is supported by fcntl.
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11088 $as_echo_n "checking for F_SETLKW... " >&6; }
11089 if test "${ac_cv_f_setlkw+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 #include <fcntl.h>
11098 main ()
11101 struct flock fl;
11102 fl.l_whence = 0;
11103 fl.l_start = 0;
11104 fl.l_len = 0;
11105 fl.l_pid = 0;
11106 return fcntl (1, F_SETLKW, &fl);
11108 return 0;
11110 _ACEOF
11111 if ac_fn_c_try_compile "$LINENO"; then :
11112 ac_cv_f_setlkw=yes
11113 else
11114 ac_cv_f_setlkw=no
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11119 $as_echo "$ac_cv_f_setlkw" >&6; }
11120 if test $ac_cv_f_setlkw = yes; then
11122 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11126 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11127 CFLAGS="$saved_CFLAGS"
11128 CXXFLAGS="$saved_CXXFLAGS"
11130 # mkdir takes a single argument on some systems.
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11132 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11133 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 #include <sys/types.h>
11140 #ifdef HAVE_SYS_STAT_H
11141 # include <sys/stat.h>
11142 #endif
11143 #ifdef HAVE_UNISTD_H
11144 # include <unistd.h>
11145 #endif
11146 #ifdef HAVE_DIRECT_H
11147 # include <direct.h>
11148 #endif
11150 main ()
11152 mkdir ("foo", 0);
11154 return 0;
11156 _ACEOF
11157 if ac_fn_c_try_compile "$LINENO"; then :
11158 gcc_cv_mkdir_takes_one_arg=no
11159 else
11160 gcc_cv_mkdir_takes_one_arg=yes
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11165 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11166 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11168 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11173 # File extensions
11174 manext='.1'
11175 objext='.o'
11179 # With Setjmp/Longjmp based exception handling.
11180 # Check whether --enable-sjlj-exceptions was given.
11181 if test "${enable_sjlj_exceptions+set}" = set; then :
11182 enableval=$enable_sjlj_exceptions; case $target in
11183 *-*-hpux10*)
11184 if test $enableval != yes; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11186 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11187 enableval=yes
11190 esac
11191 force_sjlj_exceptions=yes
11192 else
11193 case $target in
11194 *-*-hpux10*)
11195 force_sjlj_exceptions=yes
11196 enableval=yes
11198 lm32*-*-*)
11199 force_sjlj_exceptions=yes
11200 enableval=yes
11203 force_sjlj_exceptions=no
11205 esac
11208 if test $force_sjlj_exceptions = yes; then
11209 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11211 cat >>confdefs.h <<_ACEOF
11212 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11213 _ACEOF
11217 # --------------------------------------------------------
11218 # Build, host, and target specific configuration fragments
11219 # --------------------------------------------------------
11221 # Collect build-machine-specific information.
11222 . ${srcdir}/config.build
11224 # Collect host-machine-specific information.
11225 . ${srcdir}/config.host
11227 target_gtfiles=
11229 # Collect target-machine-specific information.
11230 . ${srcdir}/config.gcc
11232 extra_objs="${host_extra_objs} ${extra_objs}"
11233 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11235 # Default the target-machine variables that were not explicitly set.
11236 if test x"$tm_file" = x
11237 then tm_file=$cpu_type/$cpu_type.h; fi
11239 if test x"$extra_headers" = x
11240 then extra_headers=; fi
11242 if test x$md_file = x
11243 then md_file=$cpu_type/$cpu_type.md; fi
11245 if test x$out_file = x
11246 then out_file=$cpu_type/$cpu_type.c; fi
11248 if test x"$tmake_file" = x
11249 then tmake_file=$cpu_type/t-$cpu_type
11252 # Support --enable-initfini-array.
11253 if test x$enable_initfini_array != xno; then
11254 tm_file="${tm_file} initfini-array.h"
11257 if test x"$dwarf2" = xyes
11258 then tm_file="$tm_file tm-dwarf2.h"
11261 # Say what files are being used for the output code and MD file.
11262 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11263 echo "Using \`$srcdir/config/$md_file' as machine description file."
11265 # If any of the xm_file variables contain nonexistent files, warn
11266 # about them and drop them.
11269 for x in $build_xm_file; do
11270 if test -f $srcdir/config/$x
11271 then bx="$bx $x"
11272 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11273 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11275 done
11276 build_xm_file="$bx"
11279 for x in $host_xm_file; do
11280 if test -f $srcdir/config/$x
11281 then hx="$hx $x"
11282 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11283 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11285 done
11286 host_xm_file="$hx"
11289 for x in $xm_file; do
11290 if test -f $srcdir/config/$x
11291 then tx="$tx $x"
11292 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11293 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11295 done
11296 xm_file="$tx"
11298 count=a
11299 for f in $tm_file; do
11300 count=${count}x
11301 done
11302 if test $count = ax; then
11303 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11304 else
11305 echo "Using the following target machine macro files:"
11306 for f in $tm_file; do
11307 echo " $srcdir/config/$f"
11308 done
11311 if test x$use_long_long_for_widest_fast_int = xyes; then
11313 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11317 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11319 cat >>confdefs.h <<_ACEOF
11320 #define HAVE_GNU_LD $gnu_ld_bool
11321 _ACEOF
11324 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11326 cat >>confdefs.h <<_ACEOF
11327 #define HAVE_GNU_AS $gnu_as_bool
11328 _ACEOF
11331 count=a
11332 for f in $host_xm_file; do
11333 count=${count}x
11334 done
11335 if test $count = a; then
11337 elif test $count = ax; then
11338 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11339 else
11340 echo "Using the following host machine macro files:"
11341 for f in $host_xm_file; do
11342 echo " $srcdir/config/$f"
11343 done
11345 echo "Using ${out_host_hook_obj} for host machine hooks."
11347 if test "$host_xm_file" != "$build_xm_file"; then
11348 count=a
11349 for f in $build_xm_file; do
11350 count=${count}x
11351 done
11352 if test $count = a; then
11354 elif test $count = ax; then
11355 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11356 else
11357 echo "Using the following build machine macro files:"
11358 for f in $build_xm_file; do
11359 echo " $srcdir/config/$f"
11360 done
11364 if test -n "$configured_native_system_header_dir"; then
11365 native_system_header_dir=$configured_native_system_header_dir
11367 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11370 case ${host} in
11371 powerpc*-*-darwin*)
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11373 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11374 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 #include <sys/cdefs.h>
11381 #include <sys/signal.h>
11382 #include <ucontext.h>
11383 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11385 _ACEOF
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387 gcc_cv_mcontext_underscores=no
11388 else
11389 gcc_cv_mcontext_underscores=yes
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11394 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11395 if test $gcc_cv_mcontext_underscores = yes; then
11397 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11401 esac
11403 # ---------
11404 # Threading
11405 # ---------
11407 # Check if a valid thread package
11408 case ${enable_threads} in
11409 "" | no)
11410 # No threads
11411 target_thread_file='single'
11413 yes)
11414 # default
11415 target_thread_file='single'
11417 aix | dce | lynx | mipssde | posix | rtems | \
11418 single | tpf | vxworks | win32)
11419 target_thread_file=${enable_threads}
11422 echo "${enable_threads} is an unknown thread package" 1>&2
11423 exit 1
11425 esac
11427 if test x${thread_file} = x; then
11428 # No thread file set by target-specific clauses in config.gcc,
11429 # so use file chosen by default logic above
11430 thread_file=${target_thread_file}
11433 # --------
11434 # UNSORTED
11435 # --------
11437 use_cxa_atexit=no
11438 if test x$enable___cxa_atexit = xyes || \
11439 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11440 if test x$host = x$target; then
11441 case $host in
11442 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11443 # keyed to flag_use_cxa_atexit
11444 *-*-mingw32*)
11445 use_cxa_atexit=yes
11447 powerpc-ibm-aix*)
11448 use_cxa_atexit=yes
11451 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11452 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11453 use_cxa_atexit=yes
11454 else
11455 echo "__cxa_atexit can't be enabled on this target"
11459 esac
11460 else
11461 # We can't check for __cxa_atexit when building a cross, so assume
11462 # it is available
11463 use_cxa_atexit=yes
11465 if test x$use_cxa_atexit = xyes; then
11467 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11472 # Look for a file containing extra machine modes.
11473 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11474 extra_modes_file='$(srcdir)'/config/${extra_modes}
11477 cat >>confdefs.h <<_ACEOF
11478 #define EXTRA_MODES_FILE "config/$extra_modes"
11479 _ACEOF
11483 # Convert extra_options into a form suitable for Makefile use.
11484 extra_opt_files=
11485 all_opt_files=
11486 for f in $extra_options; do
11487 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11488 all_opt_files="$all_opt_files $srcdir/config/$f"
11489 done
11492 # auto-host.h is the file containing items generated by autoconf and is
11493 # the first file included by config.h.
11494 # If host=build, it is correct to have bconfig include auto-host.h
11495 # as well. If host!=build, we are in error and need to do more
11496 # work to find out the build config parameters.
11497 if test x$host = x$build
11498 then
11499 build_auto=auto-host.h
11500 else
11501 # We create a subdir, then run autoconf in the subdir.
11502 # To prevent recursion we set host and build for the new
11503 # invocation of configure to the build for this invocation
11504 # of configure.
11505 tempdir=build.$$
11506 rm -rf $tempdir
11507 mkdir $tempdir
11508 cd $tempdir
11509 case ${srcdir} in
11510 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11511 *) realsrcdir=../${srcdir};;
11512 esac
11513 # Clearing GMPINC is necessary to prevent host headers being
11514 # used by the build compiler. Defining GENERATOR_FILE stops
11515 # system.h from including gmp.h.
11516 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11517 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11518 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11519 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11520 ${realsrcdir}/configure \
11521 --enable-languages=${enable_languages-all} \
11522 --target=$target_alias --host=$build_alias --build=$build_alias
11524 # We just finished tests for the build machine, so rename
11525 # the file auto-build.h in the gcc directory.
11526 mv auto-host.h ../auto-build.h
11527 cd ..
11528 rm -rf $tempdir
11529 build_auto=auto-build.h
11533 tm_file="${tm_file} defaults.h"
11534 tm_p_file="${tm_p_file} tm-preds.h"
11535 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11536 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11537 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11538 # put this back in temporarily.
11539 xm_file="auto-host.h ansidecl.h ${xm_file}"
11541 # --------
11542 # UNSORTED
11543 # --------
11545 # Compile in configure arguments.
11546 if test -f configargs.h ; then
11547 # Being re-configured.
11548 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11549 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11550 else
11551 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11554 # Double all backslashes and backslash all quotes to turn
11555 # gcc_config_arguments into a C string.
11556 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11557 $gcc_config_arguments
11559 gcc_config_arguments_str=`cat conftest.out`
11560 rm -f conftest.out
11562 cat > configargs.h <<EOF
11563 /* Generated automatically. */
11564 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11565 static const char thread_model[] = "$thread_file";
11567 static const struct {
11568 const char *name, *value;
11569 } configure_default_options[] = $configure_default_options;
11572 gcc_BASEVER=`cat $srcdir/BASE-VER`
11573 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11574 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11575 if test -f $srcdir/REVISION ; then
11576 gcc_REVISION=`cat $srcdir/REVISION`
11577 else
11578 gcc_REVISION=""
11580 cat > plugin-version.h <<EOF
11581 #include "configargs.h"
11583 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11584 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11585 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11586 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11588 static char basever[] = "$gcc_BASEVER";
11589 static char datestamp[] = "$gcc_DATESTAMP";
11590 static char devphase[] = "$gcc_DEVPHASE";
11591 static char revision[] = "$gcc_REVISION";
11593 /* FIXME plugins: We should make the version information more precise.
11594 One way to do is to add a checksum. */
11596 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11597 devphase, revision,
11598 configuration_arguments};
11601 # Internationalization
11602 # If we haven't got the data from the intl directory,
11603 # assume NLS is disabled.
11604 USE_NLS=no
11605 LIBINTL=
11606 LIBINTL_DEP=
11607 INCINTL=
11608 XGETTEXT=
11609 GMSGFMT=
11610 POSUB=
11612 if test -f ../intl/config.intl; then
11613 . ../intl/config.intl
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11616 $as_echo_n "checking whether NLS is requested... " >&6; }
11617 if test x"$USE_NLS" != xyes; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11620 else
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622 $as_echo "yes" >&6; }
11624 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11628 $as_echo_n "checking for catalogs to be installed... " >&6; }
11629 # Look for .po and .gmo files in the source directory.
11630 CATALOGS=
11631 XLINGUAS=
11632 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11633 # If there aren't any .gmo files the shell will give us the
11634 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11635 # weeded out.
11636 case "$cat" in *\**)
11637 continue;;
11638 esac
11639 # The quadruple backslash is collapsed to a double backslash
11640 # by the backticks, then collapsed again by the double quotes,
11641 # leaving us with one backslash in the sed expression (right
11642 # before the dot that mustn't act as a wildcard).
11643 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11644 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11645 # The user is allowed to set LINGUAS to a list of languages to
11646 # install catalogs for. If it's empty that means "all of them."
11647 if test "x$LINGUAS" = x; then
11648 CATALOGS="$CATALOGS $cat"
11649 XLINGUAS="$XLINGUAS $lang"
11650 else
11651 case "$LINGUAS" in *$lang*)
11652 CATALOGS="$CATALOGS $cat"
11653 XLINGUAS="$XLINGUAS $lang"
11655 esac
11657 done
11658 LINGUAS="$XLINGUAS"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11660 $as_echo "$LINGUAS" >&6; }
11663 DATADIRNAME=share
11665 INSTOBJEXT=.mo
11667 GENCAT=gencat
11669 CATOBJEXT=.gmo
11673 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11674 # -liconv on the link line twice.
11675 case "$LIBINTL" in *$LIBICONV*)
11676 LIBICONV= ;;
11677 esac
11679 # Check whether --enable-secureplt was given.
11680 if test "${enable_secureplt+set}" = set; then :
11681 enableval=$enable_secureplt;
11685 # Check whether --enable-leading-mingw64-underscores was given.
11686 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11687 enableval=$enable_leading_mingw64_underscores;
11690 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11692 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11696 # Check whether --enable-cld was given.
11697 if test "${enable_cld+set}" = set; then :
11698 enableval=$enable_cld;
11699 else
11700 enable_cld=no
11704 # Check whether --enable-frame-pointer was given.
11705 if test "${enable_frame_pointer+set}" = set; then :
11706 enableval=$enable_frame_pointer;
11707 else
11709 case $target_os in
11710 linux* | darwin[8912]*)
11711 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11712 # DWARF2.
11713 enable_frame_pointer=no
11716 enable_frame_pointer=yes
11718 esac
11723 # Windows32 Registry support for specifying GCC installation paths.
11724 # Check whether --enable-win32-registry was given.
11725 if test "${enable_win32_registry+set}" = set; then :
11726 enableval=$enable_win32_registry;
11730 case $host_os in
11731 win32 | pe | cygwin* | mingw32* | uwin*)
11732 if test "x$enable_win32_registry" != xno; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11734 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11735 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 ac_func_search_save_LIBS=$LIBS
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char RegOpenKeyExA ();
11750 main ()
11752 return RegOpenKeyExA ();
11754 return 0;
11756 _ACEOF
11757 for ac_lib in '' advapi32; do
11758 if test -z "$ac_lib"; then
11759 ac_res="none required"
11760 else
11761 ac_res=-l$ac_lib
11762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11764 if ac_fn_c_try_link "$LINENO"; then :
11765 ac_cv_search_RegOpenKeyExA=$ac_res
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext
11769 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11770 break
11772 done
11773 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11775 else
11776 ac_cv_search_RegOpenKeyExA=no
11778 rm conftest.$ac_ext
11779 LIBS=$ac_func_search_save_LIBS
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11782 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11783 ac_res=$ac_cv_search_RegOpenKeyExA
11784 if test "$ac_res" != no; then :
11785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11787 else
11788 enable_win32_registry=no
11793 if test "x$enable_win32_registry" != xno; then
11795 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11798 if test "x$enable_win32_registry" != xyes \
11799 && test "x$enable_win32_registry" != x; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11803 _ACEOF
11808 esac
11810 # Get an absolute path to the GCC top-level source directory
11811 holddir=`${PWDCMD-pwd}`
11812 cd $srcdir
11813 topdir=`${PWDCMD-pwd}`
11814 cd $holddir
11816 # Conditionalize the makefile for this host machine.
11817 xmake_file=
11818 for f in ${host_xmake_file}
11820 if test -f ${srcdir}/config/$f
11821 then
11822 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11824 done
11826 # Conditionalize the makefile for this target machine.
11827 tmake_file_=
11828 for f in ${tmake_file}
11830 if test -f ${srcdir}/config/$f
11831 then
11832 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11834 done
11835 tmake_file="${tmake_file_}"
11837 out_object_file=`basename $out_file .c`.o
11838 common_out_object_file=`basename $common_out_file .c`.o
11840 tm_file_list="options.h"
11841 tm_include_list="options.h insn-constants.h"
11842 for f in $tm_file; do
11843 case $f in
11844 ./* )
11845 f=`echo $f | sed 's/^..//'`
11846 tm_file_list="${tm_file_list} $f"
11847 tm_include_list="${tm_include_list} $f"
11849 defaults.h )
11850 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11851 tm_include_list="${tm_include_list} $f"
11854 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11855 tm_include_list="${tm_include_list} config/$f"
11857 esac
11858 done
11860 tm_p_file_list=
11861 tm_p_include_list=
11862 for f in $tm_p_file; do
11863 case $f in
11864 tm-preds.h )
11865 tm_p_file_list="${tm_p_file_list} $f"
11866 tm_p_include_list="${tm_p_include_list} $f"
11869 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11870 tm_p_include_list="${tm_p_include_list} config/$f"
11871 esac
11872 done
11874 xm_file_list=
11875 xm_include_list=
11876 for f in $xm_file; do
11877 case $f in
11878 ansidecl.h )
11879 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11880 xm_include_list="${xm_include_list} $f"
11882 auto-host.h )
11883 xm_file_list="${xm_file_list} $f"
11884 xm_include_list="${xm_include_list} $f"
11887 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11888 xm_include_list="${xm_include_list} config/$f"
11890 esac
11891 done
11893 host_xm_file_list=
11894 host_xm_include_list=
11895 for f in $host_xm_file; do
11896 case $f in
11897 ansidecl.h )
11898 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11899 host_xm_include_list="${host_xm_include_list} $f"
11901 auto-host.h )
11902 host_xm_file_list="${host_xm_file_list} $f"
11903 host_xm_include_list="${host_xm_include_list} $f"
11906 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11907 host_xm_include_list="${host_xm_include_list} config/$f"
11909 esac
11910 done
11912 build_xm_file_list=
11913 for f in $build_xm_file; do
11914 case $f in
11915 ansidecl.h )
11916 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11917 build_xm_include_list="${build_xm_include_list} $f"
11919 auto-build.h | auto-host.h )
11920 build_xm_file_list="${build_xm_file_list} $f"
11921 build_xm_include_list="${build_xm_include_list} $f"
11924 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11925 build_xm_include_list="${build_xm_include_list} config/$f"
11927 esac
11928 done
11930 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11931 # cross-compiler which does not use the native headers and libraries.
11932 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11933 CROSS=
11934 ALL=all.internal
11935 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11937 if test "x$with_build_sysroot" != x; then
11938 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11939 else
11940 # This value is used, even on a native system, because
11941 # CROSS_SYSTEM_HEADER_DIR is just
11942 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11943 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11946 if test x$host != x$target
11947 then
11948 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11949 ALL=all.cross
11950 SYSTEM_HEADER_DIR=$build_system_header_dir
11951 case "$host","$target" in
11952 # Darwin crosses can use the host system's libraries and headers,
11953 # because of the fat library support. Of course, it must be the
11954 # same version of Darwin on both sides. Allow the user to
11955 # just say --target=foo-darwin without a version number to mean
11956 # "the version on this system".
11957 *-*-darwin*,*-*-darwin*)
11958 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11959 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11960 if test $hostos = $targetos -o $targetos = darwin ; then
11961 CROSS=
11962 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11963 with_headers=yes
11967 i?86-*-*,x86_64-*-* \
11968 | powerpc*-*-*,powerpc64*-*-*)
11969 CROSS="$CROSS -DNATIVE_CROSS" ;;
11970 esac
11972 case $target in
11973 *-*-mingw*)
11974 if test "x$with_headers" = x; then
11975 with_headers=yes
11980 esac
11981 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11982 SYSTEM_HEADER_DIR=$build_system_header_dir
11985 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11986 if test "x$with_headers" != x; then
11987 target_header_dir=$with_headers
11988 elif test "x$with_sysroot" = x; then
11989 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11990 elif test "x$with_build_sysroot" != "x"; then
11991 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11992 elif test "x$with_sysroot" = xyes; then
11993 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11994 else
11995 target_header_dir="${with_sysroot}${native_system_header_dir}"
11997 else
11998 target_header_dir=${native_system_header_dir}
12001 # If this is a cross-compiler that does not
12002 # have its own set of headers then define
12003 # inhibit_libc
12005 # If this is using newlib, without having the headers available now,
12006 # then define inhibit_libc in LIBGCC2_CFLAGS.
12007 # This prevents libgcc2 from containing any code which requires libc
12008 # support.
12009 : ${inhibit_libc=false}
12010 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12011 test x$with_newlib = xyes ; } &&
12012 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12013 inhibit_libc=true
12017 # When building gcc with a cross-compiler, we need to adjust things so
12018 # that the generator programs are still built with the native compiler.
12019 # Also, we cannot run fixincludes.
12021 # These are the normal (build=host) settings:
12022 CC_FOR_BUILD='$(CC)'
12023 CXX_FOR_BUILD='$(CXX)'
12024 BUILD_CFLAGS='$(ALL_CFLAGS)'
12025 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12026 BUILD_LDFLAGS='$(LDFLAGS)'
12027 STMP_FIXINC=stmp-fixinc
12029 # And these apply if build != host, or we are generating coverage data
12030 if test x$build != x$host || test "x$coverage_flags" != x
12031 then
12032 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12033 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12034 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12037 # Expand extra_headers to include complete path.
12038 # This substitutes for lots of t-* files.
12039 extra_headers_list=
12040 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12041 for file in ${extra_headers} ; do
12042 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12043 done
12045 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12046 if test x"$use_gcc_tgmath" = xyes
12047 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12050 # Define collect2 in Makefile.
12051 case $host_can_use_collect2 in
12052 no) collect2= ;;
12053 *) collect2='collect2$(exeext)' ;;
12054 esac
12057 # Add a definition of USE_COLLECT2 if system wants one.
12058 case $use_collect2 in
12059 no) use_collect2= ;;
12060 "") ;;
12062 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12063 xm_defines="${xm_defines} USE_COLLECT2"
12064 case $host_can_use_collect2 in
12066 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12068 esac
12070 esac
12073 cat >>confdefs.h <<_ACEOF
12074 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12075 _ACEOF
12078 # ---------------------------
12079 # Assembler & linker features
12080 # ---------------------------
12082 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12083 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12084 # However when ld-new is first executed from the build tree, libtool will
12085 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12086 # to the build tree. While doing this we need to use the previous-stage
12087 # linker, or we have an infinite loop. The presence of a shell script as
12088 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12089 # the gcc/collect-ld script. So we need to know how libtool works, or
12090 # exec-tool will fail.
12093 case `pwd` in
12094 *\ * | *\ *)
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12096 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12097 esac
12101 macro_version='2.2.7a'
12102 macro_revision='1.3134'
12116 ltmain="$ac_aux_dir/ltmain.sh"
12118 # Backslashify metacharacters that are still active within
12119 # double-quoted strings.
12120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12122 # Same as above, but do not quote variable references.
12123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12125 # Sed substitution to delay expansion of an escaped shell variable in a
12126 # double_quote_subst'ed string.
12127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12129 # Sed substitution to delay expansion of an escaped single quote.
12130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12132 # Sed substitution to avoid accidental globbing in evaled expressions
12133 no_glob_subst='s/\*/\\\*/g'
12135 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12136 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12140 $as_echo_n "checking how to print strings... " >&6; }
12141 # Test print first, because it will be a builtin if present.
12142 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12143 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12144 ECHO='print -r --'
12145 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12146 ECHO='printf %s\n'
12147 else
12148 # Use this function as a fallback that always works.
12149 func_fallback_echo ()
12151 eval 'cat <<_LTECHO_EOF
12153 _LTECHO_EOF'
12155 ECHO='func_fallback_echo'
12158 # func_echo_all arg...
12159 # Invoke $ECHO with all args, space-separated.
12160 func_echo_all ()
12162 $ECHO ""
12165 case "$ECHO" in
12166 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12167 $as_echo "printf" >&6; } ;;
12168 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12169 $as_echo "print -r" >&6; } ;;
12170 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12171 $as_echo "cat" >&6; } ;;
12172 esac
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12188 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12189 if test "${ac_cv_path_SED+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12193 for ac_i in 1 2 3 4 5 6 7; do
12194 ac_script="$ac_script$as_nl$ac_script"
12195 done
12196 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12197 { ac_script=; unset ac_script;}
12198 if test -z "$SED"; then
12199 ac_path_SED_found=false
12200 # Loop through the user's path and test for each of PROGNAME-LIST
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_prog in sed gsed; do
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12209 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12210 # Check for GNU ac_path_SED and select it if it is found.
12211 # Check for GNU $ac_path_SED
12212 case `"$ac_path_SED" --version 2>&1` in
12213 *GNU*)
12214 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12216 ac_count=0
12217 $as_echo_n 0123456789 >"conftest.in"
12218 while :
12220 cat "conftest.in" "conftest.in" >"conftest.tmp"
12221 mv "conftest.tmp" "conftest.in"
12222 cp "conftest.in" "conftest.nl"
12223 $as_echo '' >> "conftest.nl"
12224 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12226 as_fn_arith $ac_count + 1 && ac_count=$as_val
12227 if test $ac_count -gt ${ac_path_SED_max-0}; then
12228 # Best one so far, save it but keep looking for a better one
12229 ac_cv_path_SED="$ac_path_SED"
12230 ac_path_SED_max=$ac_count
12232 # 10*(2^10) chars as input seems more than enough
12233 test $ac_count -gt 10 && break
12234 done
12235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12236 esac
12238 $ac_path_SED_found && break 3
12239 done
12240 done
12241 done
12242 IFS=$as_save_IFS
12243 if test -z "$ac_cv_path_SED"; then
12244 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12246 else
12247 ac_cv_path_SED=$SED
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12252 $as_echo "$ac_cv_path_SED" >&6; }
12253 SED="$ac_cv_path_SED"
12254 rm -f conftest.sed
12256 test -z "$SED" && SED=sed
12257 Xsed="$SED -e 1s/^X//"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12270 $as_echo_n "checking for fgrep... " >&6; }
12271 if test "${ac_cv_path_FGREP+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12275 then ac_cv_path_FGREP="$GREP -F"
12276 else
12277 if test -z "$FGREP"; then
12278 ac_path_FGREP_found=false
12279 # Loop through the user's path and test for each of PROGNAME-LIST
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_prog in fgrep; do
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12288 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12289 # Check for GNU ac_path_FGREP and select it if it is found.
12290 # Check for GNU $ac_path_FGREP
12291 case `"$ac_path_FGREP" --version 2>&1` in
12292 *GNU*)
12293 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12295 ac_count=0
12296 $as_echo_n 0123456789 >"conftest.in"
12297 while :
12299 cat "conftest.in" "conftest.in" >"conftest.tmp"
12300 mv "conftest.tmp" "conftest.in"
12301 cp "conftest.in" "conftest.nl"
12302 $as_echo 'FGREP' >> "conftest.nl"
12303 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12305 as_fn_arith $ac_count + 1 && ac_count=$as_val
12306 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12307 # Best one so far, save it but keep looking for a better one
12308 ac_cv_path_FGREP="$ac_path_FGREP"
12309 ac_path_FGREP_max=$ac_count
12311 # 10*(2^10) chars as input seems more than enough
12312 test $ac_count -gt 10 && break
12313 done
12314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12315 esac
12317 $ac_path_FGREP_found && break 3
12318 done
12319 done
12320 done
12321 IFS=$as_save_IFS
12322 if test -z "$ac_cv_path_FGREP"; then
12323 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12325 else
12326 ac_cv_path_FGREP=$FGREP
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12332 $as_echo "$ac_cv_path_FGREP" >&6; }
12333 FGREP="$ac_cv_path_FGREP"
12336 test -z "$GREP" && GREP=grep
12356 # Check whether --with-gnu-ld was given.
12357 if test "${with_gnu_ld+set}" = set; then :
12358 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12359 else
12360 with_gnu_ld=no
12363 ac_prog=ld
12364 if test "$GCC" = yes; then
12365 # Check if gcc -print-prog-name=ld gives a path.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12367 $as_echo_n "checking for ld used by $CC... " >&6; }
12368 case $host in
12369 *-*-mingw*)
12370 # gcc leaves a trailing carriage return which upsets mingw
12371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12374 esac
12375 case $ac_prog in
12376 # Accept absolute paths.
12377 [\\/]* | ?:[\\/]*)
12378 re_direlt='/[^/][^/]*/\.\./'
12379 # Canonicalize the pathname of ld
12380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12383 done
12384 test -z "$LD" && LD="$ac_prog"
12387 # If it fails, then pretend we aren't using GCC.
12388 ac_prog=ld
12391 # If it is relative, then search for the first ld in PATH.
12392 with_gnu_ld=unknown
12394 esac
12395 elif test "$with_gnu_ld" = yes; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12397 $as_echo_n "checking for GNU ld... " >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12400 $as_echo_n "checking for non-GNU ld... " >&6; }
12402 if test "${lt_cv_path_LD+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -z "$LD"; then
12406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12407 for ac_dir in $PATH; do
12408 IFS="$lt_save_ifs"
12409 test -z "$ac_dir" && ac_dir=.
12410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12411 lt_cv_path_LD="$ac_dir/$ac_prog"
12412 # Check to see if the program is GNU ld. I'd rather use --version,
12413 # but apparently some variants of GNU ld only accept -v.
12414 # Break only if it was the GNU/non-GNU ld that we prefer.
12415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12416 *GNU* | *'with BFD'*)
12417 test "$with_gnu_ld" != no && break
12420 test "$with_gnu_ld" != yes && break
12422 esac
12424 done
12425 IFS="$lt_save_ifs"
12426 else
12427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12431 LD="$lt_cv_path_LD"
12432 if test -n "$LD"; then
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12434 $as_echo "$LD" >&6; }
12435 else
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12439 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12441 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12442 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12443 $as_echo_n "(cached) " >&6
12444 else
12445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12446 case `$LD -v 2>&1 </dev/null` in
12447 *GNU* | *'with BFD'*)
12448 lt_cv_prog_gnu_ld=yes
12451 lt_cv_prog_gnu_ld=no
12453 esac
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12456 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12457 with_gnu_ld=$lt_cv_prog_gnu_ld
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12468 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12469 if test "${lt_cv_path_NM+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$NM"; then
12473 # Let the user override the test.
12474 lt_cv_path_NM="$NM"
12475 else
12476 lt_nm_to_check="${ac_tool_prefix}nm"
12477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12478 lt_nm_to_check="$lt_nm_to_check nm"
12480 for lt_tmp_nm in $lt_nm_to_check; do
12481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12483 IFS="$lt_save_ifs"
12484 test -z "$ac_dir" && ac_dir=.
12485 tmp_nm="$ac_dir/$lt_tmp_nm"
12486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12487 # Check to see if the nm accepts a BSD-compat flag.
12488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12489 # nm: unknown option "B" ignored
12490 # Tru64's nm complains that /dev/null is an invalid object file
12491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12492 */dev/null* | *'Invalid file or object type'*)
12493 lt_cv_path_NM="$tmp_nm -B"
12494 break
12497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12498 */dev/null*)
12499 lt_cv_path_NM="$tmp_nm -p"
12500 break
12503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12504 continue # so that we can try to find one that supports BSD flags
12506 esac
12508 esac
12510 done
12511 IFS="$lt_save_ifs"
12512 done
12513 : ${lt_cv_path_NM=no}
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12517 $as_echo "$lt_cv_path_NM" >&6; }
12518 if test "$lt_cv_path_NM" != "no"; then
12519 NM="$lt_cv_path_NM"
12520 else
12521 # Didn't find any BSD compatible name lister, look for dumpbin.
12522 if test -n "$DUMPBIN"; then :
12523 # Let the user override the test.
12524 else
12525 if test -n "$ac_tool_prefix"; then
12526 for ac_prog in dumpbin "link -dump"
12528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$DUMPBIN"; then
12536 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12549 done
12550 done
12551 IFS=$as_save_IFS
12555 DUMPBIN=$ac_cv_prog_DUMPBIN
12556 if test -n "$DUMPBIN"; then
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12558 $as_echo "$DUMPBIN" >&6; }
12559 else
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561 $as_echo "no" >&6; }
12565 test -n "$DUMPBIN" && break
12566 done
12568 if test -z "$DUMPBIN"; then
12569 ac_ct_DUMPBIN=$DUMPBIN
12570 for ac_prog in dumpbin "link -dump"
12572 # Extract the first word of "$ac_prog", so it can be a program name with args.
12573 set dummy $ac_prog; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$ac_ct_DUMPBIN"; then
12580 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12599 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12600 if test -n "$ac_ct_DUMPBIN"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12602 $as_echo "$ac_ct_DUMPBIN" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12609 test -n "$ac_ct_DUMPBIN" && break
12610 done
12612 if test "x$ac_ct_DUMPBIN" = x; then
12613 DUMPBIN=":"
12614 else
12615 case $cross_compiling:$ac_tool_warned in
12616 yes:)
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12619 ac_tool_warned=yes ;;
12620 esac
12621 DUMPBIN=$ac_ct_DUMPBIN
12625 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12626 *COFF*)
12627 DUMPBIN="$DUMPBIN -symbols"
12630 DUMPBIN=:
12632 esac
12635 if test "$DUMPBIN" != ":"; then
12636 NM="$DUMPBIN"
12639 test -z "$NM" && NM=nm
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12647 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12648 if test "${lt_cv_nm_interface+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 lt_cv_nm_interface="BSD nm"
12652 echo "int some_variable = 0;" > conftest.$ac_ext
12653 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12654 (eval "$ac_compile" 2>conftest.err)
12655 cat conftest.err >&5
12656 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12657 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12658 cat conftest.err >&5
12659 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12660 cat conftest.out >&5
12661 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12662 lt_cv_nm_interface="MS dumpbin"
12664 rm -f conftest*
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12667 $as_echo "$lt_cv_nm_interface" >&6; }
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12670 $as_echo_n "checking whether ln -s works... " >&6; }
12671 LN_S=$as_ln_s
12672 if test "$LN_S" = "ln -s"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674 $as_echo "yes" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12677 $as_echo "no, using $LN_S" >&6; }
12680 # find the maximum length of command line arguments
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12682 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12683 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12687 teststring="ABCD"
12689 case $build_os in
12690 msdosdjgpp*)
12691 # On DJGPP, this test can blow up pretty badly due to problems in libc
12692 # (any single argument exceeding 2000 bytes causes a buffer overrun
12693 # during glob expansion). Even if it were fixed, the result of this
12694 # check would be larger than it should be.
12695 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12698 gnu*)
12699 # Under GNU Hurd, this test is not required because there is
12700 # no limit to the length of command line arguments.
12701 # Libtool will interpret -1 as no limit whatsoever
12702 lt_cv_sys_max_cmd_len=-1;
12705 cygwin* | mingw* | cegcc*)
12706 # On Win9x/ME, this test blows up -- it succeeds, but takes
12707 # about 5 minutes as the teststring grows exponentially.
12708 # Worse, since 9x/ME are not pre-emptively multitasking,
12709 # you end up with a "frozen" computer, even though with patience
12710 # the test eventually succeeds (with a max line length of 256k).
12711 # Instead, let's just punt: use the minimum linelength reported by
12712 # all of the supported platforms: 8192 (on NT/2K/XP).
12713 lt_cv_sys_max_cmd_len=8192;
12716 mint*)
12717 # On MiNT this can take a long time and run out of memory.
12718 lt_cv_sys_max_cmd_len=8192;
12721 amigaos*)
12722 # On AmigaOS with pdksh, this test takes hours, literally.
12723 # So we just punt and use a minimum line length of 8192.
12724 lt_cv_sys_max_cmd_len=8192;
12727 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12728 # This has been around since 386BSD, at least. Likely further.
12729 if test -x /sbin/sysctl; then
12730 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12731 elif test -x /usr/sbin/sysctl; then
12732 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12733 else
12734 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12736 # And add a safety zone
12737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12741 interix*)
12742 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12743 lt_cv_sys_max_cmd_len=196608
12746 osf*)
12747 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12748 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12749 # nice to cause kernel panics so lets avoid the loop below.
12750 # First set a reasonable default.
12751 lt_cv_sys_max_cmd_len=16384
12753 if test -x /sbin/sysconfig; then
12754 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12755 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12756 esac
12759 sco3.2v5*)
12760 lt_cv_sys_max_cmd_len=102400
12762 sysv5* | sco5v6* | sysv4.2uw2*)
12763 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12764 if test -n "$kargmax"; then
12765 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12766 else
12767 lt_cv_sys_max_cmd_len=32768
12771 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12772 if test -n "$lt_cv_sys_max_cmd_len"; then
12773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12775 else
12776 # Make teststring a little bigger before we do anything with it.
12777 # a 1K string should be a reasonable start.
12778 for i in 1 2 3 4 5 6 7 8 ; do
12779 teststring=$teststring$teststring
12780 done
12781 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12782 # If test is not a shell built-in, we'll probably end up computing a
12783 # maximum length that is only half of the actual maximum length, but
12784 # we can't tell.
12785 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12786 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12787 test $i != 17 # 1/2 MB should be enough
12789 i=`expr $i + 1`
12790 teststring=$teststring$teststring
12791 done
12792 # Only check the string length outside the loop.
12793 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12794 teststring=
12795 # Add a significant safety factor because C++ compilers can tack on
12796 # massive amounts of additional arguments before passing them to the
12797 # linker. It appears as though 1/2 is a usable value.
12798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12801 esac
12805 if test -n $lt_cv_sys_max_cmd_len ; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12807 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12808 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12810 $as_echo "none" >&6; }
12812 max_cmd_len=$lt_cv_sys_max_cmd_len
12819 : ${CP="cp -f"}
12820 : ${MV="mv -f"}
12821 : ${RM="rm -f"}
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12824 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12825 # Try some XSI features
12826 xsi_shell=no
12827 ( _lt_dummy="a/b/c"
12828 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12829 = c,a/b,, \
12830 && eval 'test $(( 1 + 1 )) -eq 2 \
12831 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12832 && xsi_shell=yes
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12834 $as_echo "$xsi_shell" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12838 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12839 lt_shell_append=no
12840 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12841 >/dev/null 2>&1 \
12842 && lt_shell_append=yes
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12844 $as_echo "$lt_shell_append" >&6; }
12847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12848 lt_unset=unset
12849 else
12850 lt_unset=false
12857 # test EBCDIC or ASCII
12858 case `echo X|tr X '\101'` in
12859 A) # ASCII based system
12860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12861 lt_SP2NL='tr \040 \012'
12862 lt_NL2SP='tr \015\012 \040\040'
12864 *) # EBCDIC based system
12865 lt_SP2NL='tr \100 \n'
12866 lt_NL2SP='tr \r\n \100\100'
12868 esac
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12879 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12880 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 lt_cv_ld_reload_flag='-r'
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12886 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12887 reload_flag=$lt_cv_ld_reload_flag
12888 case $reload_flag in
12889 "" | " "*) ;;
12890 *) reload_flag=" $reload_flag" ;;
12891 esac
12892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12893 case $host_os in
12894 darwin*)
12895 if test "$GCC" = yes; then
12896 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12897 else
12898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12901 esac
12911 if test -n "$ac_tool_prefix"; then
12912 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12913 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$OBJDUMP"; then
12920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12921 else
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12925 IFS=$as_save_IFS
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12929 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 break 2
12933 done
12934 done
12935 IFS=$as_save_IFS
12939 OBJDUMP=$ac_cv_prog_OBJDUMP
12940 if test -n "$OBJDUMP"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12942 $as_echo "$OBJDUMP" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12950 if test -z "$ac_cv_prog_OBJDUMP"; then
12951 ac_ct_OBJDUMP=$OBJDUMP
12952 # Extract the first word of "objdump", so it can be a program name with args.
12953 set dummy objdump; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$ac_ct_OBJDUMP"; then
12960 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12979 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12980 if test -n "$ac_ct_OBJDUMP"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12982 $as_echo "$ac_ct_OBJDUMP" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12988 if test "x$ac_ct_OBJDUMP" = x; then
12989 OBJDUMP="false"
12990 else
12991 case $cross_compiling:$ac_tool_warned in
12992 yes:)
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12995 ac_tool_warned=yes ;;
12996 esac
12997 OBJDUMP=$ac_ct_OBJDUMP
12999 else
13000 OBJDUMP="$ac_cv_prog_OBJDUMP"
13003 test -z "$OBJDUMP" && OBJDUMP=objdump
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13014 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13015 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 lt_cv_file_magic_cmd='$MAGIC_CMD'
13019 lt_cv_file_magic_test_file=
13020 lt_cv_deplibs_check_method='unknown'
13021 # Need to set the preceding variable on all platforms that support
13022 # interlibrary dependencies.
13023 # 'none' -- dependencies not supported.
13024 # `unknown' -- same as none, but documents that we really don't know.
13025 # 'pass_all' -- all dependencies passed with no checks.
13026 # 'test_compile' -- check by making test program.
13027 # 'file_magic [[regex]]' -- check by looking for files in library path
13028 # which responds to the $file_magic_cmd with a given extended regex.
13029 # If you have `file' or equivalent on your system and you're not sure
13030 # whether `pass_all' will *always* work, you probably want this one.
13032 case $host_os in
13033 aix[4-9]*)
13034 lt_cv_deplibs_check_method=pass_all
13037 beos*)
13038 lt_cv_deplibs_check_method=pass_all
13041 bsdi[45]*)
13042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13043 lt_cv_file_magic_cmd='/usr/bin/file -L'
13044 lt_cv_file_magic_test_file=/shlib/libc.so
13047 cygwin*)
13048 # func_win32_libid is a shell function defined in ltmain.sh
13049 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13050 lt_cv_file_magic_cmd='func_win32_libid'
13053 mingw* | pw32*)
13054 # Base MSYS/MinGW do not provide the 'file' command needed by
13055 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13056 # unless we find 'file', for example because we are cross-compiling.
13057 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13058 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13060 lt_cv_file_magic_cmd='func_win32_libid'
13061 else
13062 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13063 lt_cv_file_magic_cmd='$OBJDUMP -f'
13067 cegcc*)
13068 # use the weaker test based on 'objdump'. See mingw*.
13069 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13070 lt_cv_file_magic_cmd='$OBJDUMP -f'
13073 darwin* | rhapsody*)
13074 lt_cv_deplibs_check_method=pass_all
13077 freebsd* | dragonfly*)
13078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13079 case $host_cpu in
13080 i*86 )
13081 # Not sure whether the presence of OpenBSD here was a mistake.
13082 # Let's accept both of them until this is cleared up.
13083 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13084 lt_cv_file_magic_cmd=/usr/bin/file
13085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13087 esac
13088 else
13089 lt_cv_deplibs_check_method=pass_all
13093 gnu*)
13094 lt_cv_deplibs_check_method=pass_all
13097 haiku*)
13098 lt_cv_deplibs_check_method=pass_all
13101 hpux10.20* | hpux11*)
13102 lt_cv_file_magic_cmd=/usr/bin/file
13103 case $host_cpu in
13104 ia64*)
13105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13106 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13108 hppa*64*)
13109 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]'
13110 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13114 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13116 esac
13119 interix[3-9]*)
13120 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13124 irix5* | irix6* | nonstopux*)
13125 case $LD in
13126 *-32|*"-32 ") libmagic=32-bit;;
13127 *-n32|*"-n32 ") libmagic=N32;;
13128 *-64|*"-64 ") libmagic=64-bit;;
13129 *) libmagic=never-match;;
13130 esac
13131 lt_cv_deplibs_check_method=pass_all
13134 # This must be Linux ELF.
13135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13136 lt_cv_deplibs_check_method=pass_all
13139 netbsd*)
13140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13142 else
13143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13147 newos6*)
13148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13149 lt_cv_file_magic_cmd=/usr/bin/file
13150 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13153 *nto* | *qnx*)
13154 lt_cv_deplibs_check_method=pass_all
13157 openbsd*)
13158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13160 else
13161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13165 osf3* | osf4* | osf5*)
13166 lt_cv_deplibs_check_method=pass_all
13169 rdos*)
13170 lt_cv_deplibs_check_method=pass_all
13173 solaris*)
13174 lt_cv_deplibs_check_method=pass_all
13177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13178 lt_cv_deplibs_check_method=pass_all
13181 sysv4 | sysv4.3*)
13182 case $host_vendor in
13183 motorola)
13184 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]'
13185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13187 ncr)
13188 lt_cv_deplibs_check_method=pass_all
13190 sequent)
13191 lt_cv_file_magic_cmd='/bin/file'
13192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13194 sni)
13195 lt_cv_file_magic_cmd='/bin/file'
13196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13197 lt_cv_file_magic_test_file=/lib/libc.so
13199 siemens)
13200 lt_cv_deplibs_check_method=pass_all
13203 lt_cv_deplibs_check_method=pass_all
13205 esac
13208 tpf*)
13209 lt_cv_deplibs_check_method=pass_all
13211 esac
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13215 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13216 file_magic_cmd=$lt_cv_file_magic_cmd
13217 deplibs_check_method=$lt_cv_deplibs_check_method
13218 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13231 if test -n "$ac_tool_prefix"; then
13232 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13233 set dummy ${ac_tool_prefix}ar; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235 $as_echo_n "checking for $ac_word... " >&6; }
13236 if test "${ac_cv_prog_AR+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 if test -n "$AR"; then
13240 ac_cv_prog_AR="$AR" # Let the user override the test.
13241 else
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13249 ac_cv_prog_AR="${ac_tool_prefix}ar"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 break 2
13253 done
13254 done
13255 IFS=$as_save_IFS
13259 AR=$ac_cv_prog_AR
13260 if test -n "$AR"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13262 $as_echo "$AR" >&6; }
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13270 if test -z "$ac_cv_prog_AR"; then
13271 ac_ct_AR=$AR
13272 # Extract the first word of "ar", so it can be a program name with args.
13273 set dummy ar; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 if test -n "$ac_ct_AR"; then
13280 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13281 else
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13289 ac_cv_prog_ac_ct_AR="ar"
13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13293 done
13294 done
13295 IFS=$as_save_IFS
13299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13300 if test -n "$ac_ct_AR"; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13302 $as_echo "$ac_ct_AR" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13308 if test "x$ac_ct_AR" = x; then
13309 AR="false"
13310 else
13311 case $cross_compiling:$ac_tool_warned in
13312 yes:)
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315 ac_tool_warned=yes ;;
13316 esac
13317 AR=$ac_ct_AR
13319 else
13320 AR="$ac_cv_prog_AR"
13323 test -z "$AR" && AR=ar
13324 test -z "$AR_FLAGS" && AR_FLAGS=cru
13336 if test -n "$ac_tool_prefix"; then
13337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13338 set dummy ${ac_tool_prefix}strip; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if test "${ac_cv_prog_STRIP+set}" = set; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 if test -n "$STRIP"; then
13345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13346 else
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13350 IFS=$as_save_IFS
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 break 2
13358 done
13359 done
13360 IFS=$as_save_IFS
13364 STRIP=$ac_cv_prog_STRIP
13365 if test -n "$STRIP"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13367 $as_echo "$STRIP" >&6; }
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13375 if test -z "$ac_cv_prog_STRIP"; then
13376 ac_ct_STRIP=$STRIP
13377 # Extract the first word of "strip", so it can be a program name with args.
13378 set dummy strip; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 if test -n "$ac_ct_STRIP"; then
13385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394 ac_cv_prog_ac_ct_STRIP="strip"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13398 done
13399 done
13400 IFS=$as_save_IFS
13404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13405 if test -n "$ac_ct_STRIP"; then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13407 $as_echo "$ac_ct_STRIP" >&6; }
13408 else
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13410 $as_echo "no" >&6; }
13413 if test "x$ac_ct_STRIP" = x; then
13414 STRIP=":"
13415 else
13416 case $cross_compiling:$ac_tool_warned in
13417 yes:)
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13420 ac_tool_warned=yes ;;
13421 esac
13422 STRIP=$ac_ct_STRIP
13424 else
13425 STRIP="$ac_cv_prog_STRIP"
13428 test -z "$STRIP" && STRIP=:
13435 if test -n "$ac_tool_prefix"; then
13436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439 $as_echo_n "checking for $ac_word... " >&6; }
13440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test -n "$RANLIB"; then
13444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13445 else
13446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447 for as_dir in $PATH
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
13451 for ac_exec_ext in '' $ac_executable_extensions; do
13452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 break 2
13457 done
13458 done
13459 IFS=$as_save_IFS
13463 RANLIB=$ac_cv_prog_RANLIB
13464 if test -n "$RANLIB"; then
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13466 $as_echo "$RANLIB" >&6; }
13467 else
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13474 if test -z "$ac_cv_prog_RANLIB"; then
13475 ac_ct_RANLIB=$RANLIB
13476 # Extract the first word of "ranlib", so it can be a program name with args.
13477 set dummy ranlib; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13483 if test -n "$ac_ct_RANLIB"; then
13484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13485 else
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $PATH
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13493 ac_cv_prog_ac_ct_RANLIB="ranlib"
13494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13497 done
13498 done
13499 IFS=$as_save_IFS
13503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13504 if test -n "$ac_ct_RANLIB"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13506 $as_echo "$ac_ct_RANLIB" >&6; }
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13512 if test "x$ac_ct_RANLIB" = x; then
13513 RANLIB=":"
13514 else
13515 case $cross_compiling:$ac_tool_warned in
13516 yes:)
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13519 ac_tool_warned=yes ;;
13520 esac
13521 RANLIB=$ac_ct_RANLIB
13523 else
13524 RANLIB="$ac_cv_prog_RANLIB"
13527 test -z "$RANLIB" && RANLIB=:
13534 # Determine commands to create old-style static archives.
13535 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13536 old_postinstall_cmds='chmod 644 $oldlib'
13537 old_postuninstall_cmds=
13539 if test -n "$RANLIB"; then
13540 case $host_os in
13541 openbsd*)
13542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13547 esac
13548 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13551 case $host_os in
13552 darwin*)
13553 lock_old_archive_extraction=yes ;;
13555 lock_old_archive_extraction=no ;;
13556 esac
13596 # If no C compiler was specified, use CC.
13597 LTCC=${LTCC-"$CC"}
13599 # If no C compiler flags were specified, use CFLAGS.
13600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13602 # Allow CC to be a program name with arguments.
13603 compiler=$CC
13606 # Check for command to grab the raw symbol name followed by C symbol from nm.
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13608 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13613 # These are sane defaults that work on at least a few old systems.
13614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13616 # Character class describing NM global symbol codes.
13617 symcode='[BCDEGRST]'
13619 # Regexp to match symbols that can be accessed directly from C.
13620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13622 # Define system-specific variables.
13623 case $host_os in
13624 aix*)
13625 symcode='[BCDT]'
13627 cygwin* | mingw* | pw32* | cegcc*)
13628 symcode='[ABCDGISTW]'
13630 hpux*)
13631 if test "$host_cpu" = ia64; then
13632 symcode='[ABCDEGRST]'
13635 irix* | nonstopux*)
13636 symcode='[BCDEGRST]'
13638 osf*)
13639 symcode='[BCDEGQRST]'
13641 solaris*)
13642 symcode='[BDRT]'
13644 sco3.2v5*)
13645 symcode='[DT]'
13647 sysv4.2uw2*)
13648 symcode='[DT]'
13650 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13651 symcode='[ABDT]'
13653 sysv4)
13654 symcode='[DFNSTU]'
13656 esac
13658 # If we're using GNU nm, then use its standard symbol codes.
13659 case `$NM -V 2>&1` in
13660 *GNU* | *'with BFD'*)
13661 symcode='[ABCDGIRSTW]' ;;
13662 esac
13664 # Transform an extracted symbol line into a proper C declaration.
13665 # Some systems (esp. on ia64) link data and code symbols differently,
13666 # so use this general approach.
13667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13669 # Transform an extracted symbol line into symbol name and symbol address
13670 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13671 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'"
13673 # Handle CRLF in mingw tool chain
13674 opt_cr=
13675 case $build_os in
13676 mingw*)
13677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13679 esac
13681 # Try without a prefix underscore, then with it.
13682 for ac_symprfx in "" "_"; do
13684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13685 symxfrm="\\1 $ac_symprfx\\2 \\2"
13687 # Write the raw and C identifiers.
13688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13689 # Fake it for dumpbin and say T for any non-static function
13690 # and D for any global variable.
13691 # Also find C++ and __fastcall symbols from MSVC++,
13692 # which start with @ or ?.
13693 lt_cv_sys_global_symbol_pipe="$AWK '"\
13694 " {last_section=section; section=\$ 3};"\
13695 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13696 " \$ 0!~/External *\|/{next};"\
13697 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13698 " {if(hide[section]) next};"\
13699 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13700 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13701 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13702 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13703 " ' prfx=^$ac_symprfx"
13704 else
13705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13708 # Check to see that the pipe works correctly.
13709 pipe_works=no
13711 rm -f conftest*
13712 cat > conftest.$ac_ext <<_LT_EOF
13713 #ifdef __cplusplus
13714 extern "C" {
13715 #endif
13716 char nm_test_var;
13717 void nm_test_func(void);
13718 void nm_test_func(void){}
13719 #ifdef __cplusplus
13721 #endif
13722 int main(){nm_test_var='a';nm_test_func();return(0);}
13723 _LT_EOF
13725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13726 (eval $ac_compile) 2>&5
13727 ac_status=$?
13728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729 test $ac_status = 0; }; then
13730 # Now try to grab the symbols.
13731 nlist=conftest.nm
13732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13733 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13734 ac_status=$?
13735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; } && test -s "$nlist"; then
13737 # Try sorting and uniquifying the output.
13738 if sort "$nlist" | uniq > "$nlist"T; then
13739 mv -f "$nlist"T "$nlist"
13740 else
13741 rm -f "$nlist"T
13744 # Make sure that we snagged all the symbols we need.
13745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13747 cat <<_LT_EOF > conftest.$ac_ext
13748 #ifdef __cplusplus
13749 extern "C" {
13750 #endif
13752 _LT_EOF
13753 # Now generate the symbol file.
13754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13756 cat <<_LT_EOF >> conftest.$ac_ext
13758 /* The mapping between symbol names and symbols. */
13759 const struct {
13760 const char *name;
13761 void *address;
13763 lt__PROGRAM__LTX_preloaded_symbols[] =
13765 { "@PROGRAM@", (void *) 0 },
13766 _LT_EOF
13767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13768 cat <<\_LT_EOF >> conftest.$ac_ext
13769 {0, (void *) 0}
13772 /* This works around a problem in FreeBSD linker */
13773 #ifdef FREEBSD_WORKAROUND
13774 static const void *lt_preloaded_setup() {
13775 return lt__PROGRAM__LTX_preloaded_symbols;
13777 #endif
13779 #ifdef __cplusplus
13781 #endif
13782 _LT_EOF
13783 # Now try linking the two files.
13784 mv conftest.$ac_objext conftstm.$ac_objext
13785 lt_save_LIBS="$LIBS"
13786 lt_save_CFLAGS="$CFLAGS"
13787 LIBS="conftstm.$ac_objext"
13788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13790 (eval $ac_link) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13794 pipe_works=yes
13796 LIBS="$lt_save_LIBS"
13797 CFLAGS="$lt_save_CFLAGS"
13798 else
13799 echo "cannot find nm_test_func in $nlist" >&5
13801 else
13802 echo "cannot find nm_test_var in $nlist" >&5
13804 else
13805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13807 else
13808 echo "$progname: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13811 rm -rf conftest* conftst*
13813 # Do not use the global_symbol_pipe unless it works.
13814 if test "$pipe_works" = yes; then
13815 break
13816 else
13817 lt_cv_sys_global_symbol_pipe=
13819 done
13823 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13824 lt_cv_sys_global_symbol_to_cdecl=
13826 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13828 $as_echo "failed" >&6; }
13829 else
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13831 $as_echo "ok" >&6; }
13855 # Check whether --enable-libtool-lock was given.
13856 if test "${enable_libtool_lock+set}" = set; then :
13857 enableval=$enable_libtool_lock;
13860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13862 # Some flags need to be propagated to the compiler or linker for good
13863 # libtool support.
13864 case $host in
13865 ia64-*-hpux*)
13866 # Find out which ABI we are using.
13867 echo 'int i;' > conftest.$ac_ext
13868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13869 (eval $ac_compile) 2>&5
13870 ac_status=$?
13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; }; then
13873 case `/usr/bin/file conftest.$ac_objext` in
13874 *ELF-32*)
13875 HPUX_IA64_MODE="32"
13877 *ELF-64*)
13878 HPUX_IA64_MODE="64"
13880 esac
13882 rm -rf conftest*
13884 *-*-irix6*)
13885 # Find out which ABI we are using.
13886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13888 (eval $ac_compile) 2>&5
13889 ac_status=$?
13890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13891 test $ac_status = 0; }; then
13892 if test "$lt_cv_prog_gnu_ld" = yes; then
13893 case `/usr/bin/file conftest.$ac_objext` in
13894 *32-bit*)
13895 LD="${LD-ld} -melf32bsmip"
13897 *N32*)
13898 LD="${LD-ld} -melf32bmipn32"
13900 *64-bit*)
13901 LD="${LD-ld} -melf64bmip"
13903 esac
13904 else
13905 case `/usr/bin/file conftest.$ac_objext` in
13906 *32-bit*)
13907 LD="${LD-ld} -32"
13909 *N32*)
13910 LD="${LD-ld} -n32"
13912 *64-bit*)
13913 LD="${LD-ld} -64"
13915 esac
13918 rm -rf conftest*
13921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13923 # Find out which ABI we are using.
13924 echo 'int i;' > conftest.$ac_ext
13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13926 (eval $ac_compile) 2>&5
13927 ac_status=$?
13928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13929 test $ac_status = 0; }; then
13930 case `/usr/bin/file conftest.o` in
13931 *32-bit*)
13932 case $host in
13933 x86_64-*kfreebsd*-gnu)
13934 LD="${LD-ld} -m elf_i386_fbsd"
13936 x86_64-*linux*)
13937 case `/usr/bin/file conftest.o` in
13938 *x86-64*)
13939 LD="${LD-ld} -m elf32_x86_64"
13942 LD="${LD-ld} -m elf_i386"
13944 esac
13946 powerpc64le-*linux*)
13947 LD="${LD-ld} -m elf32lppclinux"
13949 powerpc64-*linux*)
13950 LD="${LD-ld} -m elf32ppclinux"
13952 s390x-*linux*)
13953 LD="${LD-ld} -m elf_s390"
13955 sparc64-*linux*)
13956 LD="${LD-ld} -m elf32_sparc"
13958 esac
13960 *64-bit*)
13961 case $host in
13962 x86_64-*kfreebsd*-gnu)
13963 LD="${LD-ld} -m elf_x86_64_fbsd"
13965 x86_64-*linux*)
13966 LD="${LD-ld} -m elf_x86_64"
13968 powerpcle-*linux*)
13969 LD="${LD-ld} -m elf64lppc"
13971 powerpc-*linux*)
13972 LD="${LD-ld} -m elf64ppc"
13974 s390*-*linux*|s390*-*tpf*)
13975 LD="${LD-ld} -m elf64_s390"
13977 sparc*-*linux*)
13978 LD="${LD-ld} -m elf64_sparc"
13980 esac
13982 esac
13984 rm -rf conftest*
13987 *-*-sco3.2v5*)
13988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13989 SAVE_CFLAGS="$CFLAGS"
13990 CFLAGS="$CFLAGS -belf"
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13993 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13996 ac_ext=c
13997 ac_cpp='$CPP $CPPFLAGS'
13998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14006 main ()
14010 return 0;
14012 _ACEOF
14013 if ac_fn_c_try_link "$LINENO"; then :
14014 lt_cv_cc_needs_belf=yes
14015 else
14016 lt_cv_cc_needs_belf=no
14018 rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 ac_ext=c
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14031 CFLAGS="$SAVE_CFLAGS"
14034 sparc*-*solaris*)
14035 # Find out which ABI we are using.
14036 echo 'int i;' > conftest.$ac_ext
14037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14041 test $ac_status = 0; }; then
14042 case `/usr/bin/file conftest.o` in
14043 *64-bit*)
14044 case $lt_cv_prog_gnu_ld in
14045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14048 LD="${LD-ld} -64"
14051 esac
14053 esac
14055 rm -rf conftest*
14057 esac
14059 need_locks="$enable_libtool_lock"
14062 case $host_os in
14063 rhapsody* | darwin*)
14064 if test -n "$ac_tool_prefix"; then
14065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068 $as_echo_n "checking for $ac_word... " >&6; }
14069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 if test -n "$DSYMUTIL"; then
14073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14074 else
14075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14076 for as_dir in $PATH
14078 IFS=$as_save_IFS
14079 test -z "$as_dir" && as_dir=.
14080 for ac_exec_ext in '' $ac_executable_extensions; do
14081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 break 2
14086 done
14087 done
14088 IFS=$as_save_IFS
14092 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14093 if test -n "$DSYMUTIL"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14095 $as_echo "$DSYMUTIL" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14103 if test -z "$ac_cv_prog_DSYMUTIL"; then
14104 ac_ct_DSYMUTIL=$DSYMUTIL
14105 # Extract the first word of "dsymutil", so it can be a program name with args.
14106 set dummy dsymutil; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 if test -n "$ac_ct_DSYMUTIL"; then
14113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14126 done
14127 done
14128 IFS=$as_save_IFS
14132 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14133 if test -n "$ac_ct_DSYMUTIL"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14135 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14141 if test "x$ac_ct_DSYMUTIL" = x; then
14142 DSYMUTIL=":"
14143 else
14144 case $cross_compiling:$ac_tool_warned in
14145 yes:)
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14148 ac_tool_warned=yes ;;
14149 esac
14150 DSYMUTIL=$ac_ct_DSYMUTIL
14152 else
14153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14156 if test -n "$ac_tool_prefix"; then
14157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14160 $as_echo_n "checking for $ac_word... " >&6; }
14161 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 if test -n "$NMEDIT"; then
14165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14166 else
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168 for as_dir in $PATH
14170 IFS=$as_save_IFS
14171 test -z "$as_dir" && as_dir=.
14172 for ac_exec_ext in '' $ac_executable_extensions; do
14173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14176 break 2
14178 done
14179 done
14180 IFS=$as_save_IFS
14184 NMEDIT=$ac_cv_prog_NMEDIT
14185 if test -n "$NMEDIT"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14187 $as_echo "$NMEDIT" >&6; }
14188 else
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14190 $as_echo "no" >&6; }
14195 if test -z "$ac_cv_prog_NMEDIT"; then
14196 ac_ct_NMEDIT=$NMEDIT
14197 # Extract the first word of "nmedit", so it can be a program name with args.
14198 set dummy nmedit; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14200 $as_echo_n "checking for $ac_word... " >&6; }
14201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 if test -n "$ac_ct_NMEDIT"; then
14205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14206 else
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14210 IFS=$as_save_IFS
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14216 break 2
14218 done
14219 done
14220 IFS=$as_save_IFS
14224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14225 if test -n "$ac_ct_NMEDIT"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14227 $as_echo "$ac_ct_NMEDIT" >&6; }
14228 else
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14233 if test "x$ac_ct_NMEDIT" = x; then
14234 NMEDIT=":"
14235 else
14236 case $cross_compiling:$ac_tool_warned in
14237 yes:)
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14240 ac_tool_warned=yes ;;
14241 esac
14242 NMEDIT=$ac_ct_NMEDIT
14244 else
14245 NMEDIT="$ac_cv_prog_NMEDIT"
14248 if test -n "$ac_tool_prefix"; then
14249 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14250 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14252 $as_echo_n "checking for $ac_word... " >&6; }
14253 if test "${ac_cv_prog_LIPO+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 if test -n "$LIPO"; then
14257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14262 IFS=$as_save_IFS
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 break 2
14270 done
14271 done
14272 IFS=$as_save_IFS
14276 LIPO=$ac_cv_prog_LIPO
14277 if test -n "$LIPO"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14279 $as_echo "$LIPO" >&6; }
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14287 if test -z "$ac_cv_prog_LIPO"; then
14288 ac_ct_LIPO=$LIPO
14289 # Extract the first word of "lipo", so it can be a program name with args.
14290 set dummy lipo; ac_word=$2
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292 $as_echo_n "checking for $ac_word... " >&6; }
14293 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 if test -n "$ac_ct_LIPO"; then
14297 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14298 else
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300 for as_dir in $PATH
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 for ac_exec_ext in '' $ac_executable_extensions; do
14305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14306 ac_cv_prog_ac_ct_LIPO="lipo"
14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308 break 2
14310 done
14311 done
14312 IFS=$as_save_IFS
14316 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14317 if test -n "$ac_ct_LIPO"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14319 $as_echo "$ac_ct_LIPO" >&6; }
14320 else
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14325 if test "x$ac_ct_LIPO" = x; then
14326 LIPO=":"
14327 else
14328 case $cross_compiling:$ac_tool_warned in
14329 yes:)
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14332 ac_tool_warned=yes ;;
14333 esac
14334 LIPO=$ac_ct_LIPO
14336 else
14337 LIPO="$ac_cv_prog_LIPO"
14340 if test -n "$ac_tool_prefix"; then
14341 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14342 set dummy ${ac_tool_prefix}otool; ac_word=$2
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14344 $as_echo_n "checking for $ac_word... " >&6; }
14345 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 if test -n "$OTOOL"; then
14349 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14350 else
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14358 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14362 done
14363 done
14364 IFS=$as_save_IFS
14368 OTOOL=$ac_cv_prog_OTOOL
14369 if test -n "$OTOOL"; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14371 $as_echo "$OTOOL" >&6; }
14372 else
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374 $as_echo "no" >&6; }
14379 if test -z "$ac_cv_prog_OTOOL"; then
14380 ac_ct_OTOOL=$OTOOL
14381 # Extract the first word of "otool", so it can be a program name with args.
14382 set dummy otool; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test -n "$ac_ct_OTOOL"; then
14389 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398 ac_cv_prog_ac_ct_OTOOL="otool"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14402 done
14403 done
14404 IFS=$as_save_IFS
14408 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14409 if test -n "$ac_ct_OTOOL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14411 $as_echo "$ac_ct_OTOOL" >&6; }
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14417 if test "x$ac_ct_OTOOL" = x; then
14418 OTOOL=":"
14419 else
14420 case $cross_compiling:$ac_tool_warned in
14421 yes:)
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14424 ac_tool_warned=yes ;;
14425 esac
14426 OTOOL=$ac_ct_OTOOL
14428 else
14429 OTOOL="$ac_cv_prog_OTOOL"
14432 if test -n "$ac_tool_prefix"; then
14433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14434 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14436 $as_echo_n "checking for $ac_word... " >&6; }
14437 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 if test -n "$OTOOL64"; then
14441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14442 else
14443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14444 for as_dir in $PATH
14446 IFS=$as_save_IFS
14447 test -z "$as_dir" && as_dir=.
14448 for ac_exec_ext in '' $ac_executable_extensions; do
14449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14452 break 2
14454 done
14455 done
14456 IFS=$as_save_IFS
14460 OTOOL64=$ac_cv_prog_OTOOL64
14461 if test -n "$OTOOL64"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14463 $as_echo "$OTOOL64" >&6; }
14464 else
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14471 if test -z "$ac_cv_prog_OTOOL64"; then
14472 ac_ct_OTOOL64=$OTOOL64
14473 # Extract the first word of "otool64", so it can be a program name with args.
14474 set dummy otool64; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$ac_ct_OTOOL64"; then
14481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_ac_ct_OTOOL64="otool64"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14494 done
14495 done
14496 IFS=$as_save_IFS
14500 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14501 if test -n "$ac_ct_OTOOL64"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14503 $as_echo "$ac_ct_OTOOL64" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14509 if test "x$ac_ct_OTOOL64" = x; then
14510 OTOOL64=":"
14511 else
14512 case $cross_compiling:$ac_tool_warned in
14513 yes:)
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14516 ac_tool_warned=yes ;;
14517 esac
14518 OTOOL64=$ac_ct_OTOOL64
14520 else
14521 OTOOL64="$ac_cv_prog_OTOOL64"
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14551 $as_echo_n "checking for -single_module linker flag... " >&6; }
14552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 lt_cv_apple_cc_single_mod=no
14556 if test -z "${LT_MULTI_MODULE}"; then
14557 # By default we will add the -single_module flag. You can override
14558 # by either setting the environment variable LT_MULTI_MODULE
14559 # non-empty at configure time, or by adding -multi_module to the
14560 # link flags.
14561 rm -rf libconftest.dylib*
14562 echo "int foo(void){return 1;}" > conftest.c
14563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14564 -dynamiclib -Wl,-single_module conftest.c" >&5
14565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14567 _lt_result=$?
14568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14569 lt_cv_apple_cc_single_mod=yes
14570 else
14571 cat conftest.err >&5
14573 rm -rf libconftest.dylib*
14574 rm -f conftest.*
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14580 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 lt_cv_ld_exported_symbols_list=no
14585 save_LDFLAGS=$LDFLAGS
14586 echo "_main" > conftest.sym
14587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589 /* end confdefs.h. */
14592 main ()
14596 return 0;
14598 _ACEOF
14599 if ac_fn_c_try_link "$LINENO"; then :
14600 lt_cv_ld_exported_symbols_list=yes
14601 else
14602 lt_cv_ld_exported_symbols_list=no
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606 LDFLAGS="$save_LDFLAGS"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14610 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14612 $as_echo_n "checking for -force_load linker flag... " >&6; }
14613 if test "${lt_cv_ld_force_load+set}" = set; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 lt_cv_ld_force_load=no
14617 cat > conftest.c << _LT_EOF
14618 int forced_loaded() { return 2;}
14619 _LT_EOF
14620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14622 echo "$AR cru libconftest.a conftest.o" >&5
14623 $AR cru libconftest.a conftest.o 2>&5
14624 cat > conftest.c << _LT_EOF
14625 int main() { return 0;}
14626 _LT_EOF
14627 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14628 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14629 _lt_result=$?
14630 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14631 lt_cv_ld_force_load=yes
14632 else
14633 cat conftest.err >&5
14635 rm -f conftest.err libconftest.a conftest conftest.c
14636 rm -rf conftest.dSYM
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14640 $as_echo "$lt_cv_ld_force_load" >&6; }
14641 case $host_os in
14642 rhapsody* | darwin1.[012])
14643 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14644 darwin1.*)
14645 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14646 darwin*) # darwin 5.x on
14647 # if running on 10.5 or later, the deployment target defaults
14648 # to the OS version, if on x86, and 10.4, the deployment
14649 # target defaults to 10.4. Don't you love it?
14650 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14651 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14653 10.[012][,.]*)
14654 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14655 10.*)
14656 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14657 esac
14659 esac
14660 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14661 _lt_dar_single_mod='$single_module'
14663 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14664 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14665 else
14666 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14668 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14669 _lt_dsymutil='~$DSYMUTIL $lib || :'
14670 else
14671 _lt_dsymutil=
14674 esac
14676 for ac_header in dlfcn.h
14677 do :
14678 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14679 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_DLFCN_H 1
14682 _ACEOF
14685 done
14691 # Set options
14695 enable_dlopen=no
14698 enable_win32_dll=no
14701 # Check whether --enable-shared was given.
14702 if test "${enable_shared+set}" = set; then :
14703 enableval=$enable_shared; p=${PACKAGE-default}
14704 case $enableval in
14705 yes) enable_shared=yes ;;
14706 no) enable_shared=no ;;
14708 enable_shared=no
14709 # Look at the argument we got. We use all the common list separators.
14710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14711 for pkg in $enableval; do
14712 IFS="$lt_save_ifs"
14713 if test "X$pkg" = "X$p"; then
14714 enable_shared=yes
14716 done
14717 IFS="$lt_save_ifs"
14719 esac
14720 else
14721 enable_shared=yes
14732 # Check whether --enable-static was given.
14733 if test "${enable_static+set}" = set; then :
14734 enableval=$enable_static; p=${PACKAGE-default}
14735 case $enableval in
14736 yes) enable_static=yes ;;
14737 no) enable_static=no ;;
14739 enable_static=no
14740 # Look at the argument we got. We use all the common list separators.
14741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14742 for pkg in $enableval; do
14743 IFS="$lt_save_ifs"
14744 if test "X$pkg" = "X$p"; then
14745 enable_static=yes
14747 done
14748 IFS="$lt_save_ifs"
14750 esac
14751 else
14752 enable_static=yes
14764 # Check whether --with-pic was given.
14765 if test "${with_pic+set}" = set; then :
14766 withval=$with_pic; pic_mode="$withval"
14767 else
14768 pic_mode=default
14772 test -z "$pic_mode" && pic_mode=default
14780 # Check whether --enable-fast-install was given.
14781 if test "${enable_fast_install+set}" = set; then :
14782 enableval=$enable_fast_install; p=${PACKAGE-default}
14783 case $enableval in
14784 yes) enable_fast_install=yes ;;
14785 no) enable_fast_install=no ;;
14787 enable_fast_install=no
14788 # Look at the argument we got. We use all the common list separators.
14789 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14790 for pkg in $enableval; do
14791 IFS="$lt_save_ifs"
14792 if test "X$pkg" = "X$p"; then
14793 enable_fast_install=yes
14795 done
14796 IFS="$lt_save_ifs"
14798 esac
14799 else
14800 enable_fast_install=yes
14813 # This can be used to rebuild libtool when needed
14814 LIBTOOL_DEPS="$ltmain"
14816 # Always use our own libtool.
14817 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14844 test -z "$LN_S" && LN_S="ln -s"
14859 if test -n "${ZSH_VERSION+set}" ; then
14860 setopt NO_GLOB_SUBST
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14864 $as_echo_n "checking for objdir... " >&6; }
14865 if test "${lt_cv_objdir+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 rm -f .libs 2>/dev/null
14869 mkdir .libs 2>/dev/null
14870 if test -d .libs; then
14871 lt_cv_objdir=.libs
14872 else
14873 # MS-DOS does not allow filenames that begin with a dot.
14874 lt_cv_objdir=_libs
14876 rmdir .libs 2>/dev/null
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14879 $as_echo "$lt_cv_objdir" >&6; }
14880 objdir=$lt_cv_objdir
14886 cat >>confdefs.h <<_ACEOF
14887 #define LT_OBJDIR "$lt_cv_objdir/"
14888 _ACEOF
14893 case $host_os in
14894 aix3*)
14895 # AIX sometimes has problems with the GCC collect2 program. For some
14896 # reason, if we set the COLLECT_NAMES environment variable, the problems
14897 # vanish in a puff of smoke.
14898 if test "X${COLLECT_NAMES+set}" != Xset; then
14899 COLLECT_NAMES=
14900 export COLLECT_NAMES
14903 esac
14905 # Global variables:
14906 ofile=libtool
14907 can_build_shared=yes
14909 # All known linkers require a `.a' archive for static linking (except MSVC,
14910 # which needs '.lib').
14911 libext=a
14913 with_gnu_ld="$lt_cv_prog_gnu_ld"
14915 old_CC="$CC"
14916 old_CFLAGS="$CFLAGS"
14918 # Set sane defaults for various variables
14919 test -z "$CC" && CC=cc
14920 test -z "$LTCC" && LTCC=$CC
14921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14922 test -z "$LD" && LD=ld
14923 test -z "$ac_objext" && ac_objext=o
14925 for cc_temp in $compiler""; do
14926 case $cc_temp in
14927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14929 \-*) ;;
14930 *) break;;
14931 esac
14932 done
14933 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14936 # Only perform the check for file, if the check method requires it
14937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14938 case $deplibs_check_method in
14939 file_magic*)
14940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14942 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 case $MAGIC_CMD in
14947 [\\/*] | ?:[\\/]*)
14948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14951 lt_save_MAGIC_CMD="$MAGIC_CMD"
14952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14954 for ac_dir in $ac_dummy; do
14955 IFS="$lt_save_ifs"
14956 test -z "$ac_dir" && ac_dir=.
14957 if test -f $ac_dir/${ac_tool_prefix}file; then
14958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14959 if test -n "$file_magic_test_file"; then
14960 case $deplibs_check_method in
14961 "file_magic "*)
14962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14965 $EGREP "$file_magic_regex" > /dev/null; then
14967 else
14968 cat <<_LT_EOF 1>&2
14970 *** Warning: the command libtool uses to detect shared libraries,
14971 *** $file_magic_cmd, produces output that libtool cannot recognize.
14972 *** The result is that libtool may fail to recognize shared libraries
14973 *** as such. This will affect the creation of libtool libraries that
14974 *** depend on shared libraries, but programs linked with such libtool
14975 *** libraries will work regardless of this problem. Nevertheless, you
14976 *** may want to report the problem to your system manager and/or to
14977 *** bug-libtool@gnu.org
14979 _LT_EOF
14980 fi ;;
14981 esac
14983 break
14985 done
14986 IFS="$lt_save_ifs"
14987 MAGIC_CMD="$lt_save_MAGIC_CMD"
14989 esac
14992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14993 if test -n "$MAGIC_CMD"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14995 $as_echo "$MAGIC_CMD" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
15005 if test -z "$lt_cv_path_MAGIC_CMD"; then
15006 if test -n "$ac_tool_prefix"; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15008 $as_echo_n "checking for file... " >&6; }
15009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 case $MAGIC_CMD in
15013 [\\/*] | ?:[\\/]*)
15014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15017 lt_save_MAGIC_CMD="$MAGIC_CMD"
15018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15020 for ac_dir in $ac_dummy; do
15021 IFS="$lt_save_ifs"
15022 test -z "$ac_dir" && ac_dir=.
15023 if test -f $ac_dir/file; then
15024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15025 if test -n "$file_magic_test_file"; then
15026 case $deplibs_check_method in
15027 "file_magic "*)
15028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15031 $EGREP "$file_magic_regex" > /dev/null; then
15033 else
15034 cat <<_LT_EOF 1>&2
15036 *** Warning: the command libtool uses to detect shared libraries,
15037 *** $file_magic_cmd, produces output that libtool cannot recognize.
15038 *** The result is that libtool may fail to recognize shared libraries
15039 *** as such. This will affect the creation of libtool libraries that
15040 *** depend on shared libraries, but programs linked with such libtool
15041 *** libraries will work regardless of this problem. Nevertheless, you
15042 *** may want to report the problem to your system manager and/or to
15043 *** bug-libtool@gnu.org
15045 _LT_EOF
15046 fi ;;
15047 esac
15049 break
15051 done
15052 IFS="$lt_save_ifs"
15053 MAGIC_CMD="$lt_save_MAGIC_CMD"
15055 esac
15058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15059 if test -n "$MAGIC_CMD"; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15061 $as_echo "$MAGIC_CMD" >&6; }
15062 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064 $as_echo "no" >&6; }
15068 else
15069 MAGIC_CMD=:
15075 esac
15077 # Use C for the default configuration in the libtool script
15079 lt_save_CC="$CC"
15080 ac_ext=c
15081 ac_cpp='$CPP $CPPFLAGS'
15082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15087 # Source file extension for C test sources.
15088 ac_ext=c
15090 # Object file extension for compiled C test sources.
15091 objext=o
15092 objext=$objext
15094 # Code to be used in simple compile tests
15095 lt_simple_compile_test_code="int some_variable = 0;"
15097 # Code to be used in simple link tests
15098 lt_simple_link_test_code='int main(){return(0);}'
15106 # If no C compiler was specified, use CC.
15107 LTCC=${LTCC-"$CC"}
15109 # If no C compiler flags were specified, use CFLAGS.
15110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15112 # Allow CC to be a program name with arguments.
15113 compiler=$CC
15115 # Save the default compiler, since it gets overwritten when the other
15116 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15117 compiler_DEFAULT=$CC
15119 # save warnings/boilerplate of simple test code
15120 ac_outfile=conftest.$ac_objext
15121 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15123 _lt_compiler_boilerplate=`cat conftest.err`
15124 $RM conftest*
15126 ac_outfile=conftest.$ac_objext
15127 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15129 _lt_linker_boilerplate=`cat conftest.err`
15130 $RM -r conftest*
15133 ## CAVEAT EMPTOR:
15134 ## There is no encapsulation within the following macros, do not change
15135 ## the running order or otherwise move them around unless you know exactly
15136 ## what you are doing...
15137 if test -n "$compiler"; then
15139 lt_prog_compiler_no_builtin_flag=
15141 if test "$GCC" = yes; then
15142 case $cc_basename in
15143 nvcc*)
15144 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15146 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15147 esac
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15150 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15151 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 lt_cv_prog_compiler_rtti_exceptions=no
15155 ac_outfile=conftest.$ac_objext
15156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15157 lt_compiler_flag="-fno-rtti -fno-exceptions"
15158 # Insert the option either (1) after the last *FLAGS variable, or
15159 # (2) before a word containing "conftest.", or (3) at the end.
15160 # Note that $ac_compile itself does not contain backslashes and begins
15161 # with a dollar sign (not a hyphen), so the echo should work correctly.
15162 # The option is referenced via a variable to avoid confusing sed.
15163 lt_compile=`echo "$ac_compile" | $SED \
15164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15166 -e 's:$: $lt_compiler_flag:'`
15167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15168 (eval "$lt_compile" 2>conftest.err)
15169 ac_status=$?
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 if (exit $ac_status) && test -s "$ac_outfile"; then
15173 # The compiler can only warn and ignore the option if not recognized
15174 # So say no if there are warnings other than the usual output.
15175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15178 lt_cv_prog_compiler_rtti_exceptions=yes
15181 $RM conftest*
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15185 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15187 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15188 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15189 else
15200 lt_prog_compiler_wl=
15201 lt_prog_compiler_pic=
15202 lt_prog_compiler_static=
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15205 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15207 if test "$GCC" = yes; then
15208 lt_prog_compiler_wl='-Wl,'
15209 lt_prog_compiler_static='-static'
15211 case $host_os in
15212 aix*)
15213 # All AIX code is PIC.
15214 if test "$host_cpu" = ia64; then
15215 # AIX 5 now supports IA64 processor
15216 lt_prog_compiler_static='-Bstatic'
15218 lt_prog_compiler_pic='-fPIC'
15221 amigaos*)
15222 case $host_cpu in
15223 powerpc)
15224 # see comment about AmigaOS4 .so support
15225 lt_prog_compiler_pic='-fPIC'
15227 m68k)
15228 # FIXME: we need at least 68020 code to build shared libraries, but
15229 # adding the `-m68020' flag to GCC prevents building anything better,
15230 # like `-m68040'.
15231 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15233 esac
15236 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15237 # PIC is the default for these OSes.
15240 mingw* | cygwin* | pw32* | os2* | cegcc*)
15241 # This hack is so that the source file can tell whether it is being
15242 # built for inclusion in a dll (and should export symbols for example).
15243 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15244 # (--disable-auto-import) libraries
15245 lt_prog_compiler_pic='-DDLL_EXPORT'
15248 darwin* | rhapsody*)
15249 # PIC is the default on this platform
15250 # Common symbols not allowed in MH_DYLIB files
15251 lt_prog_compiler_pic='-fno-common'
15254 haiku*)
15255 # PIC is the default for Haiku.
15256 # The "-static" flag exists, but is broken.
15257 lt_prog_compiler_static=
15260 hpux*)
15261 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15262 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15263 # sets the default TLS model and affects inlining.
15264 case $host_cpu in
15265 hppa*64*)
15266 # +Z the default
15269 lt_prog_compiler_pic='-fPIC'
15271 esac
15274 interix[3-9]*)
15275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15276 # Instead, we relocate shared libraries at runtime.
15279 msdosdjgpp*)
15280 # Just because we use GCC doesn't mean we suddenly get shared libraries
15281 # on systems that don't support them.
15282 lt_prog_compiler_can_build_shared=no
15283 enable_shared=no
15286 *nto* | *qnx*)
15287 # QNX uses GNU C++, but need to define -shared option too, otherwise
15288 # it will coredump.
15289 lt_prog_compiler_pic='-fPIC -shared'
15292 sysv4*MP*)
15293 if test -d /usr/nec; then
15294 lt_prog_compiler_pic=-Kconform_pic
15299 lt_prog_compiler_pic='-fPIC'
15301 esac
15303 case $cc_basename in
15304 nvcc*) # Cuda Compiler Driver 2.2
15305 lt_prog_compiler_wl='-Xlinker '
15306 lt_prog_compiler_pic='-Xcompiler -fPIC'
15308 esac
15309 else
15310 # PORTME Check for flag to pass linker flags through the system compiler.
15311 case $host_os in
15312 aix*)
15313 lt_prog_compiler_wl='-Wl,'
15314 if test "$host_cpu" = ia64; then
15315 # AIX 5 now supports IA64 processor
15316 lt_prog_compiler_static='-Bstatic'
15317 else
15318 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15322 mingw* | cygwin* | pw32* | os2* | cegcc*)
15323 # This hack is so that the source file can tell whether it is being
15324 # built for inclusion in a dll (and should export symbols for example).
15325 lt_prog_compiler_pic='-DDLL_EXPORT'
15328 hpux9* | hpux10* | hpux11*)
15329 lt_prog_compiler_wl='-Wl,'
15330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15331 # not for PA HP-UX.
15332 case $host_cpu in
15333 hppa*64*|ia64*)
15334 # +Z the default
15337 lt_prog_compiler_pic='+Z'
15339 esac
15340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15341 lt_prog_compiler_static='${wl}-a ${wl}archive'
15344 irix5* | irix6* | nonstopux*)
15345 lt_prog_compiler_wl='-Wl,'
15346 # PIC (with -KPIC) is the default.
15347 lt_prog_compiler_static='-non_shared'
15350 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15351 case $cc_basename in
15352 # old Intel for x86_64 which still supported -KPIC.
15353 ecc*)
15354 lt_prog_compiler_wl='-Wl,'
15355 lt_prog_compiler_pic='-KPIC'
15356 lt_prog_compiler_static='-static'
15358 # icc used to be incompatible with GCC.
15359 # ICC 10 doesn't accept -KPIC any more.
15360 icc* | ifort*)
15361 lt_prog_compiler_wl='-Wl,'
15362 lt_prog_compiler_pic='-fPIC'
15363 lt_prog_compiler_static='-static'
15365 # Lahey Fortran 8.1.
15366 lf95*)
15367 lt_prog_compiler_wl='-Wl,'
15368 lt_prog_compiler_pic='--shared'
15369 lt_prog_compiler_static='--static'
15371 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15372 # Portland Group compilers (*not* the Pentium gcc compiler,
15373 # which looks to be a dead project)
15374 lt_prog_compiler_wl='-Wl,'
15375 lt_prog_compiler_pic='-fpic'
15376 lt_prog_compiler_static='-Bstatic'
15378 ccc*)
15379 lt_prog_compiler_wl='-Wl,'
15380 # All Alpha code is PIC.
15381 lt_prog_compiler_static='-non_shared'
15383 xl* | bgxl* | bgf* | mpixl*)
15384 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15385 lt_prog_compiler_wl='-Wl,'
15386 lt_prog_compiler_pic='-qpic'
15387 lt_prog_compiler_static='-qstaticlink'
15390 case `$CC -V 2>&1 | sed 5q` in
15391 *Sun\ F* | *Sun*Fortran*)
15392 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15393 lt_prog_compiler_pic='-KPIC'
15394 lt_prog_compiler_static='-Bstatic'
15395 lt_prog_compiler_wl=''
15397 *Sun\ C*)
15398 # Sun C 5.9
15399 lt_prog_compiler_pic='-KPIC'
15400 lt_prog_compiler_static='-Bstatic'
15401 lt_prog_compiler_wl='-Wl,'
15403 esac
15405 esac
15408 newsos6)
15409 lt_prog_compiler_pic='-KPIC'
15410 lt_prog_compiler_static='-Bstatic'
15413 *nto* | *qnx*)
15414 # QNX uses GNU C++, but need to define -shared option too, otherwise
15415 # it will coredump.
15416 lt_prog_compiler_pic='-fPIC -shared'
15419 osf3* | osf4* | osf5*)
15420 lt_prog_compiler_wl='-Wl,'
15421 # All OSF/1 code is PIC.
15422 lt_prog_compiler_static='-non_shared'
15425 rdos*)
15426 lt_prog_compiler_static='-non_shared'
15429 solaris*)
15430 lt_prog_compiler_pic='-KPIC'
15431 lt_prog_compiler_static='-Bstatic'
15432 case $cc_basename in
15433 f77* | f90* | f95*)
15434 lt_prog_compiler_wl='-Qoption ld ';;
15436 lt_prog_compiler_wl='-Wl,';;
15437 esac
15440 sunos4*)
15441 lt_prog_compiler_wl='-Qoption ld '
15442 lt_prog_compiler_pic='-PIC'
15443 lt_prog_compiler_static='-Bstatic'
15446 sysv4 | sysv4.2uw2* | sysv4.3*)
15447 lt_prog_compiler_wl='-Wl,'
15448 lt_prog_compiler_pic='-KPIC'
15449 lt_prog_compiler_static='-Bstatic'
15452 sysv4*MP*)
15453 if test -d /usr/nec ;then
15454 lt_prog_compiler_pic='-Kconform_pic'
15455 lt_prog_compiler_static='-Bstatic'
15459 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15460 lt_prog_compiler_wl='-Wl,'
15461 lt_prog_compiler_pic='-KPIC'
15462 lt_prog_compiler_static='-Bstatic'
15465 unicos*)
15466 lt_prog_compiler_wl='-Wl,'
15467 lt_prog_compiler_can_build_shared=no
15470 uts4*)
15471 lt_prog_compiler_pic='-pic'
15472 lt_prog_compiler_static='-Bstatic'
15476 lt_prog_compiler_can_build_shared=no
15478 esac
15481 case $host_os in
15482 # For platforms which do not support PIC, -DPIC is meaningless:
15483 *djgpp*)
15484 lt_prog_compiler_pic=
15487 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15489 esac
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15491 $as_echo "$lt_prog_compiler_pic" >&6; }
15499 # Check to make sure the PIC flag actually works.
15501 if test -n "$lt_prog_compiler_pic"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15503 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15504 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15505 $as_echo_n "(cached) " >&6
15506 else
15507 lt_cv_prog_compiler_pic_works=no
15508 ac_outfile=conftest.$ac_objext
15509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15511 # Insert the option either (1) after the last *FLAGS variable, or
15512 # (2) before a word containing "conftest.", or (3) at the end.
15513 # Note that $ac_compile itself does not contain backslashes and begins
15514 # with a dollar sign (not a hyphen), so the echo should work correctly.
15515 # The option is referenced via a variable to avoid confusing sed.
15516 lt_compile=`echo "$ac_compile" | $SED \
15517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519 -e 's:$: $lt_compiler_flag:'`
15520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15521 (eval "$lt_compile" 2>conftest.err)
15522 ac_status=$?
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 if (exit $ac_status) && test -s "$ac_outfile"; then
15526 # The compiler can only warn and ignore the option if not recognized
15527 # So say no if there are warnings other than the usual output.
15528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15531 lt_cv_prog_compiler_pic_works=yes
15534 $RM conftest*
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15538 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15540 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15541 case $lt_prog_compiler_pic in
15542 "" | " "*) ;;
15543 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15544 esac
15545 else
15546 lt_prog_compiler_pic=
15547 lt_prog_compiler_can_build_shared=no
15558 # Check to make sure the static flag actually works.
15560 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15562 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15563 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15564 $as_echo_n "(cached) " >&6
15565 else
15566 lt_cv_prog_compiler_static_works=no
15567 save_LDFLAGS="$LDFLAGS"
15568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15571 # The linker can only warn and ignore the option if not recognized
15572 # So say no if there are warnings
15573 if test -s conftest.err; then
15574 # Append any errors to the config.log.
15575 cat conftest.err 1>&5
15576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578 if diff conftest.exp conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_static_works=yes
15581 else
15582 lt_cv_prog_compiler_static_works=yes
15585 $RM -r conftest*
15586 LDFLAGS="$save_LDFLAGS"
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15590 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15592 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15594 else
15595 lt_prog_compiler_static=
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15606 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 lt_cv_prog_compiler_c_o=no
15610 $RM -r conftest 2>/dev/null
15611 mkdir conftest
15612 cd conftest
15613 mkdir out
15614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15616 lt_compiler_flag="-o out/conftest2.$ac_objext"
15617 # Insert the option either (1) after the last *FLAGS variable, or
15618 # (2) before a word containing "conftest.", or (3) at the end.
15619 # Note that $ac_compile itself does not contain backslashes and begins
15620 # with a dollar sign (not a hyphen), so the echo should work correctly.
15621 lt_compile=`echo "$ac_compile" | $SED \
15622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15624 -e 's:$: $lt_compiler_flag:'`
15625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15626 (eval "$lt_compile" 2>out/conftest.err)
15627 ac_status=$?
15628 cat out/conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15631 then
15632 # The compiler can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15637 lt_cv_prog_compiler_c_o=yes
15640 chmod u+w . 2>&5
15641 $RM conftest*
15642 # SGI C++ compiler will create directory out/ii_files/ for
15643 # template instantiation
15644 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15645 $RM out/* && rmdir out
15646 cd ..
15647 $RM -r conftest
15648 $RM conftest*
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15652 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15661 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15662 $as_echo_n "(cached) " >&6
15663 else
15664 lt_cv_prog_compiler_c_o=no
15665 $RM -r conftest 2>/dev/null
15666 mkdir conftest
15667 cd conftest
15668 mkdir out
15669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15671 lt_compiler_flag="-o out/conftest2.$ac_objext"
15672 # Insert the option either (1) after the last *FLAGS variable, or
15673 # (2) before a word containing "conftest.", or (3) at the end.
15674 # Note that $ac_compile itself does not contain backslashes and begins
15675 # with a dollar sign (not a hyphen), so the echo should work correctly.
15676 lt_compile=`echo "$ac_compile" | $SED \
15677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15679 -e 's:$: $lt_compiler_flag:'`
15680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15681 (eval "$lt_compile" 2>out/conftest.err)
15682 ac_status=$?
15683 cat out/conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15686 then
15687 # The compiler can only warn and ignore the option if not recognized
15688 # So say no if there are warnings
15689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15692 lt_cv_prog_compiler_c_o=yes
15695 chmod u+w . 2>&5
15696 $RM conftest*
15697 # SGI C++ compiler will create directory out/ii_files/ for
15698 # template instantiation
15699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15700 $RM out/* && rmdir out
15701 cd ..
15702 $RM -r conftest
15703 $RM conftest*
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15707 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15712 hard_links="nottested"
15713 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15714 # do not overwrite the value of need_locks provided by the user
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15716 $as_echo_n "checking if we can lock with hard links... " >&6; }
15717 hard_links=yes
15718 $RM conftest*
15719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15720 touch conftest.a
15721 ln conftest.a conftest.b 2>&5 || hard_links=no
15722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15724 $as_echo "$hard_links" >&6; }
15725 if test "$hard_links" = no; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15727 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15728 need_locks=warn
15730 else
15731 need_locks=no
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15742 runpath_var=
15743 allow_undefined_flag=
15744 always_export_symbols=no
15745 archive_cmds=
15746 archive_expsym_cmds=
15747 compiler_needs_object=no
15748 enable_shared_with_static_runtimes=no
15749 export_dynamic_flag_spec=
15750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15751 hardcode_automatic=no
15752 hardcode_direct=no
15753 hardcode_direct_absolute=no
15754 hardcode_libdir_flag_spec=
15755 hardcode_libdir_flag_spec_ld=
15756 hardcode_libdir_separator=
15757 hardcode_minus_L=no
15758 hardcode_shlibpath_var=unsupported
15759 inherit_rpath=no
15760 link_all_deplibs=unknown
15761 module_cmds=
15762 module_expsym_cmds=
15763 old_archive_from_new_cmds=
15764 old_archive_from_expsyms_cmds=
15765 thread_safe_flag_spec=
15766 whole_archive_flag_spec=
15767 # include_expsyms should be a list of space-separated symbols to be *always*
15768 # included in the symbol list
15769 include_expsyms=
15770 # exclude_expsyms can be an extended regexp of symbols to exclude
15771 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15772 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15773 # as well as any symbol that contains `d'.
15774 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15775 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15776 # platforms (ab)use it in PIC code, but their linkers get confused if
15777 # the symbol is explicitly referenced. Since portable code cannot
15778 # rely on this symbol name, it's probably fine to never include it in
15779 # preloaded symbol tables.
15780 # Exclude shared library initialization/finalization symbols.
15781 extract_expsyms_cmds=
15783 case $host_os in
15784 cygwin* | mingw* | pw32* | cegcc*)
15785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15786 # When not using gcc, we currently assume that we are using
15787 # Microsoft Visual C++.
15788 if test "$GCC" != yes; then
15789 with_gnu_ld=no
15792 interix*)
15793 # we just hope/assume this is gcc and not c89 (= MSVC++)
15794 with_gnu_ld=yes
15796 openbsd*)
15797 with_gnu_ld=no
15799 esac
15801 ld_shlibs=yes
15803 # On some targets, GNU ld is compatible enough with the native linker
15804 # that we're better off using the native interface for both.
15805 lt_use_gnu_ld_interface=no
15806 if test "$with_gnu_ld" = yes; then
15807 case $host_os in
15808 aix*)
15809 # The AIX port of GNU ld has always aspired to compatibility
15810 # with the native linker. However, as the warning in the GNU ld
15811 # block says, versions before 2.19.5* couldn't really create working
15812 # shared libraries, regardless of the interface used.
15813 case `$LD -v 2>&1` in
15814 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15815 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15816 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15818 lt_use_gnu_ld_interface=yes
15820 esac
15823 lt_use_gnu_ld_interface=yes
15825 esac
15828 if test "$lt_use_gnu_ld_interface" = yes; then
15829 # If archive_cmds runs LD, not CC, wlarc should be empty
15830 wlarc='${wl}'
15832 # Set some defaults for GNU ld with shared library support. These
15833 # are reset later if shared libraries are not supported. Putting them
15834 # here allows them to be overridden if necessary.
15835 runpath_var=LD_RUN_PATH
15836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15837 export_dynamic_flag_spec='${wl}--export-dynamic'
15838 # ancient GNU ld didn't support --whole-archive et. al.
15839 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15841 else
15842 whole_archive_flag_spec=
15844 supports_anon_versioning=no
15845 case `$LD -v 2>&1` in
15846 *GNU\ gold*) supports_anon_versioning=yes ;;
15847 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15850 *\ 2.11.*) ;; # other 2.11 versions
15851 *) supports_anon_versioning=yes ;;
15852 esac
15854 # See if GNU ld supports shared libraries.
15855 case $host_os in
15856 aix[3-9]*)
15857 # On AIX/PPC, the GNU linker is very broken
15858 if test "$host_cpu" != ia64; then
15859 ld_shlibs=no
15860 cat <<_LT_EOF 1>&2
15862 *** Warning: the GNU linker, at least up to release 2.19, is reported
15863 *** to be unable to reliably create shared libraries on AIX.
15864 *** Therefore, libtool is disabling shared libraries support. If you
15865 *** really care for shared libraries, you may want to install binutils
15866 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15867 *** You will then need to restart the configuration process.
15869 _LT_EOF
15873 amigaos*)
15874 case $host_cpu in
15875 powerpc)
15876 # see comment about AmigaOS4 .so support
15877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 archive_expsym_cmds=''
15880 m68k)
15881 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)'
15882 hardcode_libdir_flag_spec='-L$libdir'
15883 hardcode_minus_L=yes
15885 esac
15888 beos*)
15889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15890 allow_undefined_flag=unsupported
15891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15892 # support --undefined. This deserves some investigation. FIXME
15893 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894 else
15895 ld_shlibs=no
15899 cygwin* | mingw* | pw32* | cegcc*)
15900 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15901 # as there is no search path for DLLs.
15902 hardcode_libdir_flag_spec='-L$libdir'
15903 export_dynamic_flag_spec='${wl}--export-all-symbols'
15904 allow_undefined_flag=unsupported
15905 always_export_symbols=no
15906 enable_shared_with_static_runtimes=yes
15907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15909 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15910 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15911 # If the export-symbols file already is a .def file (1st line
15912 # is EXPORTS), use it as is; otherwise, prepend...
15913 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15914 cp $export_symbols $output_objdir/$soname.def;
15915 else
15916 echo EXPORTS > $output_objdir/$soname.def;
15917 cat $export_symbols >> $output_objdir/$soname.def;
15919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15920 else
15921 ld_shlibs=no
15925 haiku*)
15926 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15927 link_all_deplibs=yes
15930 interix[3-9]*)
15931 hardcode_direct=no
15932 hardcode_shlibpath_var=no
15933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15934 export_dynamic_flag_spec='${wl}-E'
15935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15936 # Instead, shared libraries are loaded at an image base (0x10000000 by
15937 # default) and relocated if they conflict, which is a slow very memory
15938 # consuming and fragmenting process. To avoid this, we pick a random,
15939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15940 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15941 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15942 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'
15945 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15946 tmp_diet=no
15947 if test "$host_os" = linux-dietlibc; then
15948 case $cc_basename in
15949 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15950 esac
15952 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15953 && test "$tmp_diet" = no
15954 then
15955 tmp_addflag=' $pic_flag'
15956 tmp_sharedflag='-shared'
15957 case $cc_basename,$host_cpu in
15958 pgcc*) # Portland Group C compiler
15959 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'
15960 tmp_addflag=' $pic_flag'
15962 pgf77* | pgf90* | pgf95* | pgfortran*)
15963 # Portland Group f77 and f90 compilers
15964 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'
15965 tmp_addflag=' $pic_flag -Mnomain' ;;
15966 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15967 tmp_addflag=' -i_dynamic' ;;
15968 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15969 tmp_addflag=' -i_dynamic -nofor_main' ;;
15970 ifc* | ifort*) # Intel Fortran compiler
15971 tmp_addflag=' -nofor_main' ;;
15972 lf95*) # Lahey Fortran 8.1
15973 whole_archive_flag_spec=
15974 tmp_sharedflag='--shared' ;;
15975 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15976 tmp_sharedflag='-qmkshrobj'
15977 tmp_addflag= ;;
15978 nvcc*) # Cuda Compiler Driver 2.2
15979 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'
15980 compiler_needs_object=yes
15982 esac
15983 case `$CC -V 2>&1 | sed 5q` in
15984 *Sun\ C*) # Sun C 5.9
15985 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'
15986 compiler_needs_object=yes
15987 tmp_sharedflag='-G' ;;
15988 *Sun\ F*) # Sun Fortran 8.3
15989 tmp_sharedflag='-G' ;;
15990 esac
15991 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15993 if test "x$supports_anon_versioning" = xyes; then
15994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996 echo "local: *; };" >> $output_objdir/$libname.ver~
15997 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16000 case $cc_basename in
16001 xlf* | bgf* | bgxlf* | mpixlf*)
16002 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16003 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16004 hardcode_libdir_flag_spec=
16005 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16006 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16007 if test "x$supports_anon_versioning" = xyes; then
16008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16010 echo "local: *; };" >> $output_objdir/$libname.ver~
16011 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16014 esac
16015 else
16016 ld_shlibs=no
16020 netbsd*)
16021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16023 wlarc=
16024 else
16025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16030 solaris*)
16031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16032 ld_shlibs=no
16033 cat <<_LT_EOF 1>&2
16035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16036 *** create shared libraries on Solaris systems. Therefore, libtool
16037 *** is disabling shared libraries support. We urge you to upgrade GNU
16038 *** binutils to release 2.9.1 or newer. Another option is to modify
16039 *** your PATH or compiler configuration so that the native linker is
16040 *** used, and then restart.
16042 _LT_EOF
16043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16046 else
16047 ld_shlibs=no
16051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16052 case `$LD -v 2>&1` in
16053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16054 ld_shlibs=no
16055 cat <<_LT_EOF 1>&2
16057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16058 *** reliably create shared libraries on SCO systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16064 _LT_EOF
16067 # For security reasons, it is highly recommended that you always
16068 # use absolute paths for naming shared libraries, and exclude the
16069 # DT_RUNPATH tag from executables and libraries. But doing so
16070 # requires that you compile everything twice, which is a pain.
16071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16075 else
16076 ld_shlibs=no
16079 esac
16082 sunos4*)
16083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 wlarc=
16085 hardcode_direct=yes
16086 hardcode_shlibpath_var=no
16090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16093 else
16094 ld_shlibs=no
16097 esac
16099 if test "$ld_shlibs" = no; then
16100 runpath_var=
16101 hardcode_libdir_flag_spec=
16102 export_dynamic_flag_spec=
16103 whole_archive_flag_spec=
16105 else
16106 # PORTME fill in a description of your system's linker (not GNU ld)
16107 case $host_os in
16108 aix3*)
16109 allow_undefined_flag=unsupported
16110 always_export_symbols=yes
16111 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'
16112 # Note: this linker hardcodes the directories in LIBPATH if there
16113 # are no directories specified by -L.
16114 hardcode_minus_L=yes
16115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16116 # Neither direct hardcoding nor static linking is supported with a
16117 # broken collect2.
16118 hardcode_direct=unsupported
16122 aix[4-9]*)
16123 if test "$host_cpu" = ia64; then
16124 # On IA64, the linker does run time linking by default, so we don't
16125 # have to do anything special.
16126 aix_use_runtimelinking=no
16127 exp_sym_flag='-Bexport'
16128 no_entry_flag=""
16129 else
16130 # If we're using GNU nm, then we don't want the "-C" option.
16131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16132 # Also, AIX nm treats weak defined symbols like other global
16133 # defined symbols, whereas GNU nm marks them as "W".
16134 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16135 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'
16136 else
16137 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'
16139 aix_use_runtimelinking=no
16141 # Test if we are trying to use run time linking or normal
16142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16143 # need to do runtime linking.
16144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16145 for ld_flag in $LDFLAGS; do
16146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16147 aix_use_runtimelinking=yes
16148 break
16150 done
16152 esac
16154 exp_sym_flag='-bexport'
16155 no_entry_flag='-bnoentry'
16158 # When large executables or shared objects are built, AIX ld can
16159 # have problems creating the table of contents. If linking a library
16160 # or program results in "error TOC overflow" add -mminimal-toc to
16161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16164 archive_cmds=''
16165 hardcode_direct=yes
16166 hardcode_direct_absolute=yes
16167 hardcode_libdir_separator=':'
16168 link_all_deplibs=yes
16169 file_list_spec='${wl}-f,'
16171 if test "$GCC" = yes; then
16172 case $host_os in aix4.[012]|aix4.[012].*)
16173 # We only want to do this on AIX 4.2 and lower, the check
16174 # below for broken collect2 doesn't work under 4.3+
16175 collect2name=`${CC} -print-prog-name=collect2`
16176 if test -f "$collect2name" &&
16177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16178 then
16179 # We have reworked collect2
16181 else
16182 # We have old collect2
16183 hardcode_direct=unsupported
16184 # It fails to find uninstalled libraries when the uninstalled
16185 # path is not listed in the libpath. Setting hardcode_minus_L
16186 # to unsupported forces relinking
16187 hardcode_minus_L=yes
16188 hardcode_libdir_flag_spec='-L$libdir'
16189 hardcode_libdir_separator=
16192 esac
16193 shared_flag='-shared'
16194 if test "$aix_use_runtimelinking" = yes; then
16195 shared_flag="$shared_flag "'${wl}-G'
16197 else
16198 # not using gcc
16199 if test "$host_cpu" = ia64; then
16200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16201 # chokes on -Wl,-G. The following line is correct:
16202 shared_flag='-G'
16203 else
16204 if test "$aix_use_runtimelinking" = yes; then
16205 shared_flag='${wl}-G'
16206 else
16207 shared_flag='${wl}-bM:SRE'
16212 export_dynamic_flag_spec='${wl}-bexpall'
16213 # It seems that -bexpall does not export symbols beginning with
16214 # underscore (_), so it is better to generate a list of symbols to export.
16215 always_export_symbols=yes
16216 if test "$aix_use_runtimelinking" = yes; then
16217 # Warning - without using the other runtime loading flags (-brtl),
16218 # -berok will link without error, but may produce a broken library.
16219 allow_undefined_flag='-berok'
16220 # Determine the default libpath from the value encoded in an
16221 # empty executable.
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16226 main ()
16230 return 0;
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"; then :
16235 lt_aix_libpath_sed='
16236 /Import File Strings/,/^$/ {
16237 /^0/ {
16238 s/^0 *\(.*\)$/\1/
16242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16243 # Check for a 64-bit object if we didn't find anything.
16244 if test -z "$aix_libpath"; then
16245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16253 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"
16254 else
16255 if test "$host_cpu" = ia64; then
16256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16257 allow_undefined_flag="-z nodefs"
16258 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"
16259 else
16260 # Determine the default libpath from the value encoded in an
16261 # empty executable.
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16266 main ()
16270 return 0;
16272 _ACEOF
16273 if ac_fn_c_try_link "$LINENO"; then :
16275 lt_aix_libpath_sed='
16276 /Import File Strings/,/^$/ {
16277 /^0/ {
16278 s/^0 *\(.*\)$/\1/
16282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16283 # Check for a 64-bit object if we didn't find anything.
16284 if test -z "$aix_libpath"; then
16285 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16288 rm -f core conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16293 # Warning - without using the other run time loading flags,
16294 # -berok will link without error, but may produce a broken library.
16295 no_undefined_flag=' ${wl}-bernotok'
16296 allow_undefined_flag=' ${wl}-berok'
16297 if test "$with_gnu_ld" = yes; then
16298 # We only use this code for GNU lds that support --whole-archive.
16299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16300 else
16301 # Exported symbols can be pulled into shared objects from archives
16302 whole_archive_flag_spec='$convenience'
16304 archive_cmds_need_lc=yes
16305 # This is similar to how AIX traditionally builds its shared libraries.
16306 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'
16311 amigaos*)
16312 case $host_cpu in
16313 powerpc)
16314 # see comment about AmigaOS4 .so support
16315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16316 archive_expsym_cmds=''
16318 m68k)
16319 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)'
16320 hardcode_libdir_flag_spec='-L$libdir'
16321 hardcode_minus_L=yes
16323 esac
16326 bsdi[45]*)
16327 export_dynamic_flag_spec=-rdynamic
16330 cygwin* | mingw* | pw32* | cegcc*)
16331 # When not using gcc, we currently assume that we are using
16332 # Microsoft Visual C++.
16333 # hardcode_libdir_flag_spec is actually meaningless, as there is
16334 # no search path for DLLs.
16335 hardcode_libdir_flag_spec=' '
16336 allow_undefined_flag=unsupported
16337 # Tell ltmain to make .lib files, not .a files.
16338 libext=lib
16339 # Tell ltmain to make .dll files, not .so files.
16340 shrext_cmds=".dll"
16341 # FIXME: Setting linknames here is a bad hack.
16342 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16343 # The linker will automatically build a .lib file if we build a DLL.
16344 old_archive_from_new_cmds='true'
16345 # FIXME: Should let the user specify the lib program.
16346 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16347 fix_srcfile_path='`cygpath -w "$srcfile"`'
16348 enable_shared_with_static_runtimes=yes
16351 darwin* | rhapsody*)
16354 archive_cmds_need_lc=no
16355 hardcode_direct=no
16356 hardcode_automatic=yes
16357 hardcode_shlibpath_var=unsupported
16358 if test "$lt_cv_ld_force_load" = "yes"; then
16359 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\"`'
16360 else
16361 whole_archive_flag_spec=''
16363 link_all_deplibs=yes
16364 allow_undefined_flag="$_lt_dar_allow_undefined"
16365 case $cc_basename in
16366 ifort*) _lt_dar_can_shared=yes ;;
16367 *) _lt_dar_can_shared=$GCC ;;
16368 esac
16369 if test "$_lt_dar_can_shared" = "yes"; then
16370 output_verbose_link_cmd=func_echo_all
16371 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16372 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16373 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}"
16374 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}"
16376 else
16377 ld_shlibs=no
16382 dgux*)
16383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16384 hardcode_libdir_flag_spec='-L$libdir'
16385 hardcode_shlibpath_var=no
16388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16389 # support. Future versions do this automatically, but an explicit c++rt0.o
16390 # does not break anything, and helps significantly (at the cost of a little
16391 # extra space).
16392 freebsd2.2*)
16393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16394 hardcode_libdir_flag_spec='-R$libdir'
16395 hardcode_direct=yes
16396 hardcode_shlibpath_var=no
16399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16400 freebsd2.*)
16401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct=yes
16403 hardcode_minus_L=yes
16404 hardcode_shlibpath_var=no
16407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16408 freebsd* | dragonfly*)
16409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16410 hardcode_libdir_flag_spec='-R$libdir'
16411 hardcode_direct=yes
16412 hardcode_shlibpath_var=no
16415 hpux9*)
16416 if test "$GCC" = yes; then
16417 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'
16418 else
16419 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'
16421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16422 hardcode_libdir_separator=:
16423 hardcode_direct=yes
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L=yes
16428 export_dynamic_flag_spec='${wl}-E'
16431 hpux10*)
16432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16434 else
16435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16437 if test "$with_gnu_ld" = no; then
16438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16439 hardcode_libdir_flag_spec_ld='+b $libdir'
16440 hardcode_libdir_separator=:
16441 hardcode_direct=yes
16442 hardcode_direct_absolute=yes
16443 export_dynamic_flag_spec='${wl}-E'
16444 # hardcode_minus_L: Not really in the search PATH,
16445 # but as the default location of the library.
16446 hardcode_minus_L=yes
16450 hpux11*)
16451 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16452 case $host_cpu in
16453 hppa*64*)
16454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16456 ia64*)
16457 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16462 esac
16463 else
16464 case $host_cpu in
16465 hppa*64*)
16466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16468 ia64*)
16469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16473 # Older versions of the 11.00 compiler do not understand -b yet
16474 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16476 $as_echo_n "checking if $CC understands -b... " >&6; }
16477 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 lt_cv_prog_compiler__b=no
16481 save_LDFLAGS="$LDFLAGS"
16482 LDFLAGS="$LDFLAGS -b"
16483 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16485 # The linker can only warn and ignore the option if not recognized
16486 # So say no if there are warnings
16487 if test -s conftest.err; then
16488 # Append any errors to the config.log.
16489 cat conftest.err 1>&5
16490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16492 if diff conftest.exp conftest.er2 >/dev/null; then
16493 lt_cv_prog_compiler__b=yes
16495 else
16496 lt_cv_prog_compiler__b=yes
16499 $RM -r conftest*
16500 LDFLAGS="$save_LDFLAGS"
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16504 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16506 if test x"$lt_cv_prog_compiler__b" = xyes; then
16507 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16508 else
16509 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16513 esac
16515 if test "$with_gnu_ld" = no; then
16516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16517 hardcode_libdir_separator=:
16519 case $host_cpu in
16520 hppa*64*|ia64*)
16521 hardcode_direct=no
16522 hardcode_shlibpath_var=no
16525 hardcode_direct=yes
16526 hardcode_direct_absolute=yes
16527 export_dynamic_flag_spec='${wl}-E'
16529 # hardcode_minus_L: Not really in the search PATH,
16530 # but as the default location of the library.
16531 hardcode_minus_L=yes
16533 esac
16537 irix5* | irix6* | nonstopux*)
16538 if test "$GCC" = yes; then
16539 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'
16540 # Try to use the -exported_symbol ld option, if it does not
16541 # work, assume that -exports_file does not work either and
16542 # implicitly export all symbols.
16543 save_LDFLAGS="$LDFLAGS"
16544 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16547 int foo(void) {}
16548 _ACEOF
16549 if ac_fn_c_try_link "$LINENO"; then :
16550 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'
16553 rm -f core conftest.err conftest.$ac_objext \
16554 conftest$ac_exeext conftest.$ac_ext
16555 LDFLAGS="$save_LDFLAGS"
16556 else
16557 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'
16558 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'
16560 archive_cmds_need_lc='no'
16561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16562 hardcode_libdir_separator=:
16563 inherit_rpath=yes
16564 link_all_deplibs=yes
16567 netbsd*)
16568 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16570 else
16571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16573 hardcode_libdir_flag_spec='-R$libdir'
16574 hardcode_direct=yes
16575 hardcode_shlibpath_var=no
16578 newsos6)
16579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580 hardcode_direct=yes
16581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16582 hardcode_libdir_separator=:
16583 hardcode_shlibpath_var=no
16586 *nto* | *qnx*)
16589 openbsd*)
16590 if test -f /usr/libexec/ld.so; then
16591 hardcode_direct=yes
16592 hardcode_shlibpath_var=no
16593 hardcode_direct_absolute=yes
16594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16598 export_dynamic_flag_spec='${wl}-E'
16599 else
16600 case $host_os in
16601 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_libdir_flag_spec='-R$libdir'
16606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16609 esac
16611 else
16612 ld_shlibs=no
16616 os2*)
16617 hardcode_libdir_flag_spec='-L$libdir'
16618 hardcode_minus_L=yes
16619 allow_undefined_flag=unsupported
16620 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'
16621 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16624 osf3*)
16625 if test "$GCC" = yes; then
16626 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16627 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'
16628 else
16629 allow_undefined_flag=' -expect_unresolved \*'
16630 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'
16632 archive_cmds_need_lc='no'
16633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16634 hardcode_libdir_separator=:
16637 osf4* | osf5*) # as osf3* with the addition of -msym flag
16638 if test "$GCC" = yes; then
16639 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16640 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'
16641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16642 else
16643 allow_undefined_flag=' -expect_unresolved \*'
16644 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'
16645 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~
16646 $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'
16648 # Both c and cxx compiler support -rpath directly
16649 hardcode_libdir_flag_spec='-rpath $libdir'
16651 archive_cmds_need_lc='no'
16652 hardcode_libdir_separator=:
16655 solaris*)
16656 no_undefined_flag=' -z defs'
16657 if test "$GCC" = yes; then
16658 wlarc='${wl}'
16659 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16661 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16662 else
16663 case `$CC -V 2>&1` in
16664 *"Compilers 5.0"*)
16665 wlarc=''
16666 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16667 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16671 wlarc='${wl}'
16672 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16674 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16676 esac
16678 hardcode_libdir_flag_spec='-R$libdir'
16679 hardcode_shlibpath_var=no
16680 case $host_os in
16681 solaris2.[0-5] | solaris2.[0-5].*) ;;
16683 # The compiler driver will combine and reorder linker options,
16684 # but understands `-z linker_flag'. GCC discards it without `$wl',
16685 # but is careful enough not to reorder.
16686 # Supported since Solaris 2.6 (maybe 2.5.1?)
16687 if test "$GCC" = yes; then
16688 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16689 else
16690 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16693 esac
16694 link_all_deplibs=yes
16697 sunos4*)
16698 if test "x$host_vendor" = xsequent; then
16699 # Use $CC to link under sequent, because it throws in some extra .o
16700 # files that make .init and .fini sections work.
16701 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16702 else
16703 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16705 hardcode_libdir_flag_spec='-L$libdir'
16706 hardcode_direct=yes
16707 hardcode_minus_L=yes
16708 hardcode_shlibpath_var=no
16711 sysv4)
16712 case $host_vendor in
16713 sni)
16714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16715 hardcode_direct=yes # is this really true???
16717 siemens)
16718 ## LD is ld it makes a PLAMLIB
16719 ## CC just makes a GrossModule.
16720 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16721 reload_cmds='$CC -r -o $output$reload_objs'
16722 hardcode_direct=no
16724 motorola)
16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16728 esac
16729 runpath_var='LD_RUN_PATH'
16730 hardcode_shlibpath_var=no
16733 sysv4.3*)
16734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16735 hardcode_shlibpath_var=no
16736 export_dynamic_flag_spec='-Bexport'
16739 sysv4*MP*)
16740 if test -d /usr/nec; then
16741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_shlibpath_var=no
16743 runpath_var=LD_RUN_PATH
16744 hardcode_runpath_var=yes
16745 ld_shlibs=yes
16749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16750 no_undefined_flag='${wl}-z,text'
16751 archive_cmds_need_lc=no
16752 hardcode_shlibpath_var=no
16753 runpath_var='LD_RUN_PATH'
16755 if test "$GCC" = yes; then
16756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 else
16759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16764 sysv5* | sco3.2v5* | sco5v6*)
16765 # Note: We can NOT use -z defs as we might desire, because we do not
16766 # link with -lc, and that would cause any symbols used from libc to
16767 # always be unresolved, which means just about no library would
16768 # ever link correctly. If we're not using GNU ld we use -z text
16769 # though, which does catch some bad symbols but isn't as heavy-handed
16770 # as -z defs.
16771 no_undefined_flag='${wl}-z,text'
16772 allow_undefined_flag='${wl}-z,nodefs'
16773 archive_cmds_need_lc=no
16774 hardcode_shlibpath_var=no
16775 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16776 hardcode_libdir_separator=':'
16777 link_all_deplibs=yes
16778 export_dynamic_flag_spec='${wl}-Bexport'
16779 runpath_var='LD_RUN_PATH'
16781 if test "$GCC" = yes; then
16782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16784 else
16785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790 uts4*)
16791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 hardcode_libdir_flag_spec='-L$libdir'
16793 hardcode_shlibpath_var=no
16797 ld_shlibs=no
16799 esac
16801 if test x$host_vendor = xsni; then
16802 case $host in
16803 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16804 export_dynamic_flag_spec='${wl}-Blargedynsym'
16806 esac
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16811 $as_echo "$ld_shlibs" >&6; }
16812 test "$ld_shlibs" = no && can_build_shared=no
16814 with_gnu_ld=$with_gnu_ld
16831 # Do we need to explicitly link libc?
16833 case "x$archive_cmds_need_lc" in
16834 x|xyes)
16835 # Assume -lc should be added
16836 archive_cmds_need_lc=yes
16838 if test "$enable_shared" = yes && test "$GCC" = yes; then
16839 case $archive_cmds in
16840 *'~'*)
16841 # FIXME: we may have to deal with multi-command sequences.
16843 '$CC '*)
16844 # Test whether the compiler implicitly links with -lc since on some
16845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16846 # to ld, don't add -lc before -lgcc.
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16849 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 $RM conftest*
16853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16856 (eval $ac_compile) 2>&5
16857 ac_status=$?
16858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16859 test $ac_status = 0; } 2>conftest.err; then
16860 soname=conftest
16861 lib=conftest
16862 libobjs=conftest.$ac_objext
16863 deplibs=
16864 wl=$lt_prog_compiler_wl
16865 pic_flag=$lt_prog_compiler_pic
16866 compiler_flags=-v
16867 linker_flags=-v
16868 verstring=
16869 output_objdir=.
16870 libname=conftest
16871 lt_save_allow_undefined_flag=$allow_undefined_flag
16872 allow_undefined_flag=
16873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16874 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16875 ac_status=$?
16876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16877 test $ac_status = 0; }
16878 then
16879 lt_cv_archive_cmds_need_lc=no
16880 else
16881 lt_cv_archive_cmds_need_lc=yes
16883 allow_undefined_flag=$lt_save_allow_undefined_flag
16884 else
16885 cat conftest.err 1>&5
16887 $RM conftest*
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16891 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16892 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16894 esac
16897 esac
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17056 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17058 if test "$GCC" = yes; then
17059 case $host_os in
17060 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17061 *) lt_awk_arg="/^libraries:/" ;;
17062 esac
17063 case $host_os in
17064 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17065 *) lt_sed_strip_eq="s,=/,/,g" ;;
17066 esac
17067 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17068 case $lt_search_path_spec in
17069 *\;*)
17070 # if the path contains ";" then we assume it to be the separator
17071 # otherwise default to the standard path separator (i.e. ":") - it is
17072 # assumed that no part of a normal pathname contains ";" but that should
17073 # okay in the real world where ";" in dirpaths is itself problematic.
17074 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17079 esac
17080 # Ok, now we have the path, separated by spaces, we can step through it
17081 # and add multilib dir if necessary.
17082 lt_tmp_lt_search_path_spec=
17083 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17084 for lt_sys_path in $lt_search_path_spec; do
17085 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17087 else
17088 test -d "$lt_sys_path" && \
17089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17091 done
17092 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17093 BEGIN {RS=" "; FS="/|\n";} {
17094 lt_foo="";
17095 lt_count=0;
17096 for (lt_i = NF; lt_i > 0; lt_i--) {
17097 if ($lt_i != "" && $lt_i != ".") {
17098 if ($lt_i == "..") {
17099 lt_count++;
17100 } else {
17101 if (lt_count == 0) {
17102 lt_foo="/" $lt_i lt_foo;
17103 } else {
17104 lt_count--;
17109 if (lt_foo != "") { lt_freq[lt_foo]++; }
17110 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17112 # AWK program above erroneously prepends '/' to C:/dos/paths
17113 # for these hosts.
17114 case $host_os in
17115 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17116 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17117 esac
17118 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17119 else
17120 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17122 library_names_spec=
17123 libname_spec='lib$name'
17124 soname_spec=
17125 shrext_cmds=".so"
17126 postinstall_cmds=
17127 postuninstall_cmds=
17128 finish_cmds=
17129 finish_eval=
17130 shlibpath_var=
17131 shlibpath_overrides_runpath=unknown
17132 version_type=none
17133 dynamic_linker="$host_os ld.so"
17134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17135 need_lib_prefix=unknown
17136 hardcode_into_libs=no
17138 # when you set need_version to no, make sure it does not cause -set_version
17139 # flags to be left without arguments
17140 need_version=unknown
17142 case $host_os in
17143 aix3*)
17144 version_type=linux
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17146 shlibpath_var=LIBPATH
17148 # AIX 3 has no versioning support, so we append a major version to the name.
17149 soname_spec='${libname}${release}${shared_ext}$major'
17152 aix[4-9]*)
17153 version_type=linux
17154 need_lib_prefix=no
17155 need_version=no
17156 hardcode_into_libs=yes
17157 if test "$host_cpu" = ia64; then
17158 # AIX 5 supports IA64
17159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 else
17162 # With GCC up to 2.95.x, collect2 would create an import file
17163 # for dependence libraries. The import file would start with
17164 # the line `#! .'. This would cause the generated library to
17165 # depend on `.', always an invalid library. This was fixed in
17166 # development snapshots of GCC prior to 3.0.
17167 case $host_os in
17168 aix4 | aix4.[01] | aix4.[01].*)
17169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17170 echo ' yes '
17171 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17173 else
17174 can_build_shared=no
17177 esac
17178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17179 # soname into executable. Probably we can add versioning support to
17180 # collect2, so additional links can be useful in future.
17181 if test "$aix_use_runtimelinking" = yes; then
17182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17183 # instead of lib<name>.a to let people know that these are not
17184 # typical AIX shared libraries.
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 else
17187 # We preserve .a as extension for shared libraries through AIX4.2
17188 # and later when we are not doing run time linking.
17189 library_names_spec='${libname}${release}.a $libname.a'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17192 shlibpath_var=LIBPATH
17196 amigaos*)
17197 case $host_cpu in
17198 powerpc)
17199 # Since July 2007 AmigaOS4 officially supports .so libraries.
17200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203 m68k)
17204 library_names_spec='$libname.ixlibrary $libname.a'
17205 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17206 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'
17208 esac
17211 beos*)
17212 library_names_spec='${libname}${shared_ext}'
17213 dynamic_linker="$host_os ld.so"
17214 shlibpath_var=LIBRARY_PATH
17217 bsdi[45]*)
17218 version_type=linux
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17223 shlibpath_var=LD_LIBRARY_PATH
17224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17226 # the default ld.so.conf also contains /usr/contrib/lib and
17227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17228 # libtool to hard-code these into programs
17231 cygwin* | mingw* | pw32* | cegcc*)
17232 version_type=windows
17233 shrext_cmds=".dll"
17234 need_version=no
17235 need_lib_prefix=no
17237 case $GCC,$host_os in
17238 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17239 library_names_spec='$libname.dll.a'
17240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17241 postinstall_cmds='base_file=`basename \${file}`~
17242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17243 dldir=$destdir/`dirname \$dlpath`~
17244 test -d \$dldir || mkdir -p \$dldir~
17245 $install_prog $dir/$dlname \$dldir/$dlname~
17246 chmod a+x \$dldir/$dlname~
17247 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17248 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17251 dlpath=$dir/\$dldll~
17252 $RM \$dlpath'
17253 shlibpath_overrides_runpath=yes
17255 case $host_os in
17256 cygwin*)
17257 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17258 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17260 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17262 mingw* | cegcc*)
17263 # MinGW DLLs use traditional 'lib' prefix
17264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17266 pw32*)
17267 # pw32 DLLs use 'pw' prefix rather than 'lib'
17268 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17270 esac
17274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17276 esac
17277 dynamic_linker='Win32 ld.exe'
17278 # FIXME: first we should search . and the directory the executable is in
17279 shlibpath_var=PATH
17282 darwin* | rhapsody*)
17283 dynamic_linker="$host_os dyld"
17284 version_type=darwin
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17288 soname_spec='${libname}${release}${major}$shared_ext'
17289 shlibpath_overrides_runpath=yes
17290 shlibpath_var=DYLD_LIBRARY_PATH
17291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17293 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17297 dgux*)
17298 version_type=linux
17299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17306 freebsd* | dragonfly*)
17307 # DragonFly does not have aout. When/if they implement a new
17308 # versioning mechanism, adjust this.
17309 if test -x /usr/bin/objformat; then
17310 objformat=`/usr/bin/objformat`
17311 else
17312 case $host_os in
17313 freebsd[23].*) objformat=aout ;;
17314 *) objformat=elf ;;
17315 esac
17317 version_type=freebsd-$objformat
17318 case $version_type in
17319 freebsd-elf*)
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17321 need_version=no
17322 need_lib_prefix=no
17324 freebsd-*)
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17326 need_version=yes
17328 esac
17329 shlibpath_var=LD_LIBRARY_PATH
17330 case $host_os in
17331 freebsd2.*)
17332 shlibpath_overrides_runpath=yes
17334 freebsd3.[01]* | freebsdelf3.[01]*)
17335 shlibpath_overrides_runpath=yes
17336 hardcode_into_libs=yes
17338 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17339 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17340 shlibpath_overrides_runpath=no
17341 hardcode_into_libs=yes
17343 *) # from 4.6 on, and DragonFly
17344 shlibpath_overrides_runpath=yes
17345 hardcode_into_libs=yes
17347 esac
17350 gnu*)
17351 version_type=linux
17352 need_lib_prefix=no
17353 need_version=no
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 hardcode_into_libs=yes
17360 haiku*)
17361 version_type=linux
17362 need_lib_prefix=no
17363 need_version=no
17364 dynamic_linker="$host_os runtime_loader"
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 shlibpath_var=LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17370 hardcode_into_libs=yes
17373 hpux9* | hpux10* | hpux11*)
17374 # Give a soname corresponding to the major version so that dld.sl refuses to
17375 # link against other versions.
17376 version_type=sunos
17377 need_lib_prefix=no
17378 need_version=no
17379 case $host_cpu in
17380 ia64*)
17381 shrext_cmds='.so'
17382 hardcode_into_libs=yes
17383 dynamic_linker="$host_os dld.so"
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 if test "X$HPUX_IA64_MODE" = X32; then
17389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17390 else
17391 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17395 hppa*64*)
17396 shrext_cmds='.sl'
17397 hardcode_into_libs=yes
17398 dynamic_linker="$host_os dld.sl"
17399 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17400 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17407 shrext_cmds='.sl'
17408 dynamic_linker="$host_os dld.sl"
17409 shlibpath_var=SHLIB_PATH
17410 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17414 esac
17415 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17416 postinstall_cmds='chmod 555 $lib'
17417 # or fails outright, so override atomically:
17418 install_override_mode=555
17421 interix[3-9]*)
17422 version_type=linux
17423 need_lib_prefix=no
17424 need_version=no
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath=no
17430 hardcode_into_libs=yes
17433 irix5* | irix6* | nonstopux*)
17434 case $host_os in
17435 nonstopux*) version_type=nonstopux ;;
17437 if test "$lt_cv_prog_gnu_ld" = yes; then
17438 version_type=linux
17439 else
17440 version_type=irix
17441 fi ;;
17442 esac
17443 need_lib_prefix=no
17444 need_version=no
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17447 case $host_os in
17448 irix5* | nonstopux*)
17449 libsuff= shlibsuff=
17452 case $LD in # libtool.m4 will add one of these switches to LD
17453 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17454 libsuff= shlibsuff= libmagic=32-bit;;
17455 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17456 libsuff=32 shlibsuff=N32 libmagic=N32;;
17457 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17458 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17459 *) libsuff= shlibsuff= libmagic=never-match;;
17460 esac
17462 esac
17463 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17464 shlibpath_overrides_runpath=no
17465 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17466 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17467 hardcode_into_libs=yes
17470 # No shared lib support for Linux oldld, aout, or coff.
17471 linux*oldld* | linux*aout* | linux*coff*)
17472 dynamic_linker=no
17475 # This must be Linux ELF.
17476 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17483 shlibpath_var=LD_LIBRARY_PATH
17484 shlibpath_overrides_runpath=no
17486 # Some binutils ld are patched to set DT_RUNPATH
17487 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17488 $as_echo_n "(cached) " >&6
17489 else
17490 lt_cv_shlibpath_overrides_runpath=no
17491 save_LDFLAGS=$LDFLAGS
17492 save_libdir=$libdir
17493 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17494 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17499 main ()
17503 return 0;
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17508 lt_cv_shlibpath_overrides_runpath=yes
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LDFLAGS=$save_LDFLAGS
17514 libdir=$save_libdir
17518 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17520 # This implies no fast_install, which is unacceptable.
17521 # Some rework will be needed to allow for fast_install
17522 # before this can be enabled.
17523 hardcode_into_libs=yes
17525 # Append ld.so.conf contents to the search path
17526 if test -f /etc/ld.so.conf; then
17527 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' ' '`
17528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17531 # We used to test for /lib/ld.so.1 and disable shared libraries on
17532 # powerpc, because MkLinux only supported shared libraries with the
17533 # GNU dynamic linker. Since this was broken with cross compilers,
17534 # most powerpc-linux boxes support dynamic linking these days and
17535 # people can always --disable-shared, the test was removed, and we
17536 # assume the GNU/Linux dynamic linker is in use.
17537 dynamic_linker='GNU/Linux ld.so'
17540 netbsd*)
17541 version_type=sunos
17542 need_lib_prefix=no
17543 need_version=no
17544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17547 dynamic_linker='NetBSD (a.out) ld.so'
17548 else
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17550 soname_spec='${libname}${release}${shared_ext}$major'
17551 dynamic_linker='NetBSD ld.elf_so'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 shlibpath_overrides_runpath=yes
17555 hardcode_into_libs=yes
17558 newsos6)
17559 version_type=linux
17560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=yes
17565 *nto* | *qnx*)
17566 version_type=qnx
17567 need_lib_prefix=no
17568 need_version=no
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath=no
17573 hardcode_into_libs=yes
17574 dynamic_linker='ldqnx.so'
17577 openbsd*)
17578 version_type=sunos
17579 sys_lib_dlsearch_path_spec="/usr/lib"
17580 need_lib_prefix=no
17581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17582 case $host_os in
17583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17584 *) need_version=no ;;
17585 esac
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17590 case $host_os in
17591 openbsd2.[89] | openbsd2.[89].*)
17592 shlibpath_overrides_runpath=no
17595 shlibpath_overrides_runpath=yes
17597 esac
17598 else
17599 shlibpath_overrides_runpath=yes
17603 os2*)
17604 libname_spec='$name'
17605 shrext_cmds=".dll"
17606 need_lib_prefix=no
17607 library_names_spec='$libname${shared_ext} $libname.a'
17608 dynamic_linker='OS/2 ld.exe'
17609 shlibpath_var=LIBPATH
17612 osf3* | osf4* | osf5*)
17613 version_type=osf
17614 need_lib_prefix=no
17615 need_version=no
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 shlibpath_var=LD_LIBRARY_PATH
17619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17623 rdos*)
17624 dynamic_linker=no
17627 solaris*)
17628 version_type=linux
17629 need_lib_prefix=no
17630 need_version=no
17631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632 soname_spec='${libname}${release}${shared_ext}$major'
17633 shlibpath_var=LD_LIBRARY_PATH
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17636 # ldd complains unless libraries are executable
17637 postinstall_cmds='chmod +x $lib'
17640 sunos4*)
17641 version_type=sunos
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath=yes
17646 if test "$with_gnu_ld" = yes; then
17647 need_lib_prefix=no
17649 need_version=yes
17652 sysv4 | sysv4.3*)
17653 version_type=linux
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17657 case $host_vendor in
17658 sni)
17659 shlibpath_overrides_runpath=no
17660 need_lib_prefix=no
17661 runpath_var=LD_RUN_PATH
17663 siemens)
17664 need_lib_prefix=no
17666 motorola)
17667 need_lib_prefix=no
17668 need_version=no
17669 shlibpath_overrides_runpath=no
17670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17672 esac
17675 sysv4*MP*)
17676 if test -d /usr/nec ;then
17677 version_type=linux
17678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17679 soname_spec='$libname${shared_ext}.$major'
17680 shlibpath_var=LD_LIBRARY_PATH
17684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17685 version_type=freebsd-elf
17686 need_lib_prefix=no
17687 need_version=no
17688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17689 soname_spec='${libname}${release}${shared_ext}$major'
17690 shlibpath_var=LD_LIBRARY_PATH
17691 shlibpath_overrides_runpath=yes
17692 hardcode_into_libs=yes
17693 if test "$with_gnu_ld" = yes; then
17694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17695 else
17696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17697 case $host_os in
17698 sco3.2v5*)
17699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17701 esac
17703 sys_lib_dlsearch_path_spec='/usr/lib'
17706 tpf*)
17707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=no
17714 hardcode_into_libs=yes
17717 uts4*)
17718 version_type=linux
17719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720 soname_spec='${libname}${release}${shared_ext}$major'
17721 shlibpath_var=LD_LIBRARY_PATH
17725 dynamic_linker=no
17727 esac
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17729 $as_echo "$dynamic_linker" >&6; }
17730 test "$dynamic_linker" = no && can_build_shared=no
17732 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17733 if test "$GCC" = yes; then
17734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17737 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17738 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17740 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17741 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17836 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17837 hardcode_action=
17838 if test -n "$hardcode_libdir_flag_spec" ||
17839 test -n "$runpath_var" ||
17840 test "X$hardcode_automatic" = "Xyes" ; then
17842 # We can hardcode non-existent directories.
17843 if test "$hardcode_direct" != no &&
17844 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17845 # have to relink, otherwise we might link with an installed library
17846 # when we should be linking with a yet-to-be-installed one
17847 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17848 test "$hardcode_minus_L" != no; then
17849 # Linking always hardcodes the temporary library directory.
17850 hardcode_action=relink
17851 else
17852 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17853 hardcode_action=immediate
17855 else
17856 # We cannot hardcode anything, or else we can only hardcode existing
17857 # directories.
17858 hardcode_action=unsupported
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17861 $as_echo "$hardcode_action" >&6; }
17863 if test "$hardcode_action" = relink ||
17864 test "$inherit_rpath" = yes; then
17865 # Fast installation is not supported
17866 enable_fast_install=no
17867 elif test "$shlibpath_overrides_runpath" = yes ||
17868 test "$enable_shared" = no; then
17869 # Fast installation is not necessary
17870 enable_fast_install=needless
17878 if test "x$enable_dlopen" != xyes; then
17879 enable_dlopen=unknown
17880 enable_dlopen_self=unknown
17881 enable_dlopen_self_static=unknown
17882 else
17883 lt_cv_dlopen=no
17884 lt_cv_dlopen_libs=
17886 case $host_os in
17887 beos*)
17888 lt_cv_dlopen="load_add_on"
17889 lt_cv_dlopen_libs=
17890 lt_cv_dlopen_self=yes
17893 mingw* | pw32* | cegcc*)
17894 lt_cv_dlopen="LoadLibrary"
17895 lt_cv_dlopen_libs=
17898 cygwin*)
17899 lt_cv_dlopen="dlopen"
17900 lt_cv_dlopen_libs=
17903 darwin*)
17904 # if libdl is installed we need to link against it
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17908 $as_echo_n "(cached) " >&6
17909 else
17910 ac_check_lib_save_LIBS=$LIBS
17911 LIBS="-ldl $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 dlopen ();
17923 main ()
17925 return dlopen ();
17927 return 0;
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931 ac_cv_lib_dl_dlopen=yes
17932 else
17933 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
17940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17941 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17943 else
17945 lt_cv_dlopen="dyld"
17946 lt_cv_dlopen_libs=
17947 lt_cv_dlopen_self=yes
17954 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17955 if test "x$ac_cv_func_shl_load" = x""yes; then :
17956 lt_cv_dlopen="shl_load"
17957 else
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17959 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17960 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17961 $as_echo_n "(cached) " >&6
17962 else
17963 ac_check_lib_save_LIBS=$LIBS
17964 LIBS="-ldld $LIBS"
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17971 #ifdef __cplusplus
17972 extern "C"
17973 #endif
17974 char shl_load ();
17976 main ()
17978 return shl_load ();
17980 return 0;
17982 _ACEOF
17983 if ac_fn_c_try_link "$LINENO"; then :
17984 ac_cv_lib_dld_shl_load=yes
17985 else
17986 ac_cv_lib_dld_shl_load=no
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17990 LIBS=$ac_check_lib_save_LIBS
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17993 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17994 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17995 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17996 else
17997 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17998 if test "x$ac_cv_func_dlopen" = x""yes; then :
17999 lt_cv_dlopen="dlopen"
18000 else
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18002 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18004 $as_echo_n "(cached) " >&6
18005 else
18006 ac_check_lib_save_LIBS=$LIBS
18007 LIBS="-ldl $LIBS"
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18011 /* Override any GCC internal prototype to avoid an error.
18012 Use char because int might match the return type of a GCC
18013 builtin and then its argument prototype would still apply. */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 char dlopen ();
18019 main ()
18021 return dlopen ();
18023 return 0;
18025 _ACEOF
18026 if ac_fn_c_try_link "$LINENO"; then :
18027 ac_cv_lib_dl_dlopen=yes
18028 else
18029 ac_cv_lib_dl_dlopen=no
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18033 LIBS=$ac_check_lib_save_LIBS
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18036 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18037 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18039 else
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18041 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18042 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18043 $as_echo_n "(cached) " >&6
18044 else
18045 ac_check_lib_save_LIBS=$LIBS
18046 LIBS="-lsvld $LIBS"
18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048 /* end confdefs.h. */
18050 /* Override any GCC internal prototype to avoid an error.
18051 Use char because int might match the return type of a GCC
18052 builtin and then its argument prototype would still apply. */
18053 #ifdef __cplusplus
18054 extern "C"
18055 #endif
18056 char dlopen ();
18058 main ()
18060 return dlopen ();
18062 return 0;
18064 _ACEOF
18065 if ac_fn_c_try_link "$LINENO"; then :
18066 ac_cv_lib_svld_dlopen=yes
18067 else
18068 ac_cv_lib_svld_dlopen=no
18070 rm -f core conftest.err conftest.$ac_objext \
18071 conftest$ac_exeext conftest.$ac_ext
18072 LIBS=$ac_check_lib_save_LIBS
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18075 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18076 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18078 else
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18080 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18081 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 ac_check_lib_save_LIBS=$LIBS
18085 LIBS="-ldld $LIBS"
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18089 /* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 char dld_link ();
18097 main ()
18099 return dld_link ();
18101 return 0;
18103 _ACEOF
18104 if ac_fn_c_try_link "$LINENO"; then :
18105 ac_cv_lib_dld_dld_link=yes
18106 else
18107 ac_cv_lib_dld_dld_link=no
18109 rm -f core conftest.err conftest.$ac_objext \
18110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_check_lib_save_LIBS
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18114 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18115 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18116 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18135 esac
18137 if test "x$lt_cv_dlopen" != xno; then
18138 enable_dlopen=yes
18139 else
18140 enable_dlopen=no
18143 case $lt_cv_dlopen in
18144 dlopen)
18145 save_CPPFLAGS="$CPPFLAGS"
18146 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18148 save_LDFLAGS="$LDFLAGS"
18149 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18151 save_LIBS="$LIBS"
18152 LIBS="$lt_cv_dlopen_libs $LIBS"
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18155 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18156 if test "${lt_cv_dlopen_self+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 if test "$cross_compiling" = yes; then :
18160 lt_cv_dlopen_self=cross
18161 else
18162 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18163 lt_status=$lt_dlunknown
18164 cat > conftest.$ac_ext <<_LT_EOF
18165 #line 18165 "configure"
18166 #include "confdefs.h"
18168 #if HAVE_DLFCN_H
18169 #include <dlfcn.h>
18170 #endif
18172 #include <stdio.h>
18174 #ifdef RTLD_GLOBAL
18175 # define LT_DLGLOBAL RTLD_GLOBAL
18176 #else
18177 # ifdef DL_GLOBAL
18178 # define LT_DLGLOBAL DL_GLOBAL
18179 # else
18180 # define LT_DLGLOBAL 0
18181 # endif
18182 #endif
18184 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18185 find out it does not work in some platform. */
18186 #ifndef LT_DLLAZY_OR_NOW
18187 # ifdef RTLD_LAZY
18188 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18189 # else
18190 # ifdef DL_LAZY
18191 # define LT_DLLAZY_OR_NOW DL_LAZY
18192 # else
18193 # ifdef RTLD_NOW
18194 # define LT_DLLAZY_OR_NOW RTLD_NOW
18195 # else
18196 # ifdef DL_NOW
18197 # define LT_DLLAZY_OR_NOW DL_NOW
18198 # else
18199 # define LT_DLLAZY_OR_NOW 0
18200 # endif
18201 # endif
18202 # endif
18203 # endif
18204 #endif
18206 /* When -fvisbility=hidden is used, assume the code has been annotated
18207 correspondingly for the symbols needed. */
18208 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18209 void fnord () __attribute__((visibility("default")));
18210 #endif
18212 void fnord () { int i=42; }
18213 int main ()
18215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18216 int status = $lt_dlunknown;
18218 if (self)
18220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18221 else
18223 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18224 else puts (dlerror ());
18226 /* dlclose (self); */
18228 else
18229 puts (dlerror ());
18231 return status;
18233 _LT_EOF
18234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18235 (eval $ac_link) 2>&5
18236 ac_status=$?
18237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18238 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18239 (./conftest; exit; ) >&5 2>/dev/null
18240 lt_status=$?
18241 case x$lt_status in
18242 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18243 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18244 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18245 esac
18246 else :
18247 # compilation failed
18248 lt_cv_dlopen_self=no
18251 rm -fr conftest*
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18256 $as_echo "$lt_cv_dlopen_self" >&6; }
18258 if test "x$lt_cv_dlopen_self" = xyes; then
18259 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18261 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18262 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18263 $as_echo_n "(cached) " >&6
18264 else
18265 if test "$cross_compiling" = yes; then :
18266 lt_cv_dlopen_self_static=cross
18267 else
18268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18269 lt_status=$lt_dlunknown
18270 cat > conftest.$ac_ext <<_LT_EOF
18271 #line 18271 "configure"
18272 #include "confdefs.h"
18274 #if HAVE_DLFCN_H
18275 #include <dlfcn.h>
18276 #endif
18278 #include <stdio.h>
18280 #ifdef RTLD_GLOBAL
18281 # define LT_DLGLOBAL RTLD_GLOBAL
18282 #else
18283 # ifdef DL_GLOBAL
18284 # define LT_DLGLOBAL DL_GLOBAL
18285 # else
18286 # define LT_DLGLOBAL 0
18287 # endif
18288 #endif
18290 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18291 find out it does not work in some platform. */
18292 #ifndef LT_DLLAZY_OR_NOW
18293 # ifdef RTLD_LAZY
18294 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18295 # else
18296 # ifdef DL_LAZY
18297 # define LT_DLLAZY_OR_NOW DL_LAZY
18298 # else
18299 # ifdef RTLD_NOW
18300 # define LT_DLLAZY_OR_NOW RTLD_NOW
18301 # else
18302 # ifdef DL_NOW
18303 # define LT_DLLAZY_OR_NOW DL_NOW
18304 # else
18305 # define LT_DLLAZY_OR_NOW 0
18306 # endif
18307 # endif
18308 # endif
18309 # endif
18310 #endif
18312 /* When -fvisbility=hidden is used, assume the code has been annotated
18313 correspondingly for the symbols needed. */
18314 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18315 void fnord () __attribute__((visibility("default")));
18316 #endif
18318 void fnord () { int i=42; }
18319 int main ()
18321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18322 int status = $lt_dlunknown;
18324 if (self)
18326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18327 else
18329 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18330 else puts (dlerror ());
18332 /* dlclose (self); */
18334 else
18335 puts (dlerror ());
18337 return status;
18339 _LT_EOF
18340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18341 (eval $ac_link) 2>&5
18342 ac_status=$?
18343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18344 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18345 (./conftest; exit; ) >&5 2>/dev/null
18346 lt_status=$?
18347 case x$lt_status in
18348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18350 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18351 esac
18352 else :
18353 # compilation failed
18354 lt_cv_dlopen_self_static=no
18357 rm -fr conftest*
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18362 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18365 CPPFLAGS="$save_CPPFLAGS"
18366 LDFLAGS="$save_LDFLAGS"
18367 LIBS="$save_LIBS"
18369 esac
18371 case $lt_cv_dlopen_self in
18372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18373 *) enable_dlopen_self=unknown ;;
18374 esac
18376 case $lt_cv_dlopen_self_static in
18377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18378 *) enable_dlopen_self_static=unknown ;;
18379 esac
18398 striplib=
18399 old_striplib=
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18401 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18402 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18406 $as_echo "yes" >&6; }
18407 else
18408 # FIXME - insert some real tests, host_os isn't really good enough
18409 case $host_os in
18410 darwin*)
18411 if test -n "$STRIP" ; then
18412 striplib="$STRIP -x"
18413 old_striplib="$STRIP -S"
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18415 $as_echo "yes" >&6; }
18416 else
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18425 esac
18439 # Report which library types will actually be built
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18441 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18443 $as_echo "$can_build_shared" >&6; }
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18446 $as_echo_n "checking whether to build shared libraries... " >&6; }
18447 test "$can_build_shared" = "no" && enable_shared=no
18449 # On AIX, shared libraries and static libraries use the same namespace, and
18450 # are all built from PIC.
18451 case $host_os in
18452 aix3*)
18453 test "$enable_shared" = yes && enable_static=no
18454 if test -n "$RANLIB"; then
18455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18456 postinstall_cmds='$RANLIB $lib'
18460 aix[4-9]*)
18461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18462 test "$enable_shared" = yes && enable_static=no
18465 esac
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18467 $as_echo "$enable_shared" >&6; }
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18470 $as_echo_n "checking whether to build static libraries... " >&6; }
18471 # Make sure either enable_shared or enable_static is yes.
18472 test "$enable_shared" = yes || enable_static=yes
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18474 $as_echo "$enable_static" >&6; }
18480 ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486 CC="$lt_save_CC"
18488 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18489 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18490 (test "X$CXX" != "Xg++"))) ; then
18491 ac_ext=cpp
18492 ac_cpp='$CXXCPP $CPPFLAGS'
18493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18497 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18498 if test -z "$CXXCPP"; then
18499 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18500 $as_echo_n "(cached) " >&6
18501 else
18502 # Double quotes because CXXCPP needs to be expanded
18503 for CXXCPP in "$CXX -E" "/lib/cpp"
18505 ac_preproc_ok=false
18506 for ac_cxx_preproc_warn_flag in '' yes
18508 # Use a header file that comes with gcc, so configuring glibc
18509 # with a fresh cross-compiler works.
18510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18511 # <limits.h> exists even on freestanding compilers.
18512 # On the NeXT, cc -E runs the code through the compiler's parser,
18513 # not just through cpp. "Syntax error" is here to catch this case.
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18516 #ifdef __STDC__
18517 # include <limits.h>
18518 #else
18519 # include <assert.h>
18520 #endif
18521 Syntax error
18522 _ACEOF
18523 if ac_fn_cxx_try_cpp "$LINENO"; then :
18525 else
18526 # Broken: fails on valid input.
18527 continue
18529 rm -f conftest.err conftest.$ac_ext
18531 # OK, works on sane cases. Now check whether nonexistent headers
18532 # can be detected and how.
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18535 #include <ac_nonexistent.h>
18536 _ACEOF
18537 if ac_fn_cxx_try_cpp "$LINENO"; then :
18538 # Broken: success on invalid input.
18539 continue
18540 else
18541 # Passes both tests.
18542 ac_preproc_ok=:
18543 break
18545 rm -f conftest.err conftest.$ac_ext
18547 done
18548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18549 rm -f conftest.err conftest.$ac_ext
18550 if $ac_preproc_ok; then :
18551 break
18554 done
18555 ac_cv_prog_CXXCPP=$CXXCPP
18558 CXXCPP=$ac_cv_prog_CXXCPP
18559 else
18560 ac_cv_prog_CXXCPP=$CXXCPP
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18563 $as_echo "$CXXCPP" >&6; }
18564 ac_preproc_ok=false
18565 for ac_cxx_preproc_warn_flag in '' yes
18567 # Use a header file that comes with gcc, so configuring glibc
18568 # with a fresh cross-compiler works.
18569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18570 # <limits.h> exists even on freestanding compilers.
18571 # On the NeXT, cc -E runs the code through the compiler's parser,
18572 # not just through cpp. "Syntax error" is here to catch this case.
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575 #ifdef __STDC__
18576 # include <limits.h>
18577 #else
18578 # include <assert.h>
18579 #endif
18580 Syntax error
18581 _ACEOF
18582 if ac_fn_cxx_try_cpp "$LINENO"; then :
18584 else
18585 # Broken: fails on valid input.
18586 continue
18588 rm -f conftest.err conftest.$ac_ext
18590 # OK, works on sane cases. Now check whether nonexistent headers
18591 # can be detected and how.
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18594 #include <ac_nonexistent.h>
18595 _ACEOF
18596 if ac_fn_cxx_try_cpp "$LINENO"; then :
18597 # Broken: success on invalid input.
18598 continue
18599 else
18600 # Passes both tests.
18601 ac_preproc_ok=:
18602 break
18604 rm -f conftest.err conftest.$ac_ext
18606 done
18607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18608 rm -f conftest.err conftest.$ac_ext
18609 if $ac_preproc_ok; then :
18611 else
18612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18614 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18615 See \`config.log' for more details." "$LINENO" 5; }
18618 ac_ext=c
18619 ac_cpp='$CPP $CPPFLAGS'
18620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18624 else
18625 _lt_caught_CXX_error=yes
18628 ac_ext=cpp
18629 ac_cpp='$CXXCPP $CPPFLAGS'
18630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18634 archive_cmds_need_lc_CXX=no
18635 allow_undefined_flag_CXX=
18636 always_export_symbols_CXX=no
18637 archive_expsym_cmds_CXX=
18638 compiler_needs_object_CXX=no
18639 export_dynamic_flag_spec_CXX=
18640 hardcode_direct_CXX=no
18641 hardcode_direct_absolute_CXX=no
18642 hardcode_libdir_flag_spec_CXX=
18643 hardcode_libdir_flag_spec_ld_CXX=
18644 hardcode_libdir_separator_CXX=
18645 hardcode_minus_L_CXX=no
18646 hardcode_shlibpath_var_CXX=unsupported
18647 hardcode_automatic_CXX=no
18648 inherit_rpath_CXX=no
18649 module_cmds_CXX=
18650 module_expsym_cmds_CXX=
18651 link_all_deplibs_CXX=unknown
18652 old_archive_cmds_CXX=$old_archive_cmds
18653 reload_flag_CXX=$reload_flag
18654 reload_cmds_CXX=$reload_cmds
18655 no_undefined_flag_CXX=
18656 whole_archive_flag_spec_CXX=
18657 enable_shared_with_static_runtimes_CXX=no
18659 # Source file extension for C++ test sources.
18660 ac_ext=cpp
18662 # Object file extension for compiled C++ test sources.
18663 objext=o
18664 objext_CXX=$objext
18666 # No sense in running all these tests if we already determined that
18667 # the CXX compiler isn't working. Some variables (like enable_shared)
18668 # are currently assumed to apply to all compilers on this platform,
18669 # and will be corrupted by setting them based on a non-working compiler.
18670 if test "$_lt_caught_CXX_error" != yes; then
18671 # Code to be used in simple compile tests
18672 lt_simple_compile_test_code="int some_variable = 0;"
18674 # Code to be used in simple link tests
18675 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18684 # If no C compiler was specified, use CC.
18685 LTCC=${LTCC-"$CC"}
18687 # If no C compiler flags were specified, use CFLAGS.
18688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18690 # Allow CC to be a program name with arguments.
18691 compiler=$CC
18694 # save warnings/boilerplate of simple test code
18695 ac_outfile=conftest.$ac_objext
18696 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18698 _lt_compiler_boilerplate=`cat conftest.err`
18699 $RM conftest*
18701 ac_outfile=conftest.$ac_objext
18702 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18704 _lt_linker_boilerplate=`cat conftest.err`
18705 $RM -r conftest*
18708 # Allow CC to be a program name with arguments.
18709 lt_save_CC=$CC
18710 lt_save_LD=$LD
18711 lt_save_GCC=$GCC
18712 GCC=$GXX
18713 lt_save_with_gnu_ld=$with_gnu_ld
18714 lt_save_path_LD=$lt_cv_path_LD
18715 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18716 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18717 else
18718 $as_unset lt_cv_prog_gnu_ld
18720 if test -n "${lt_cv_path_LDCXX+set}"; then
18721 lt_cv_path_LD=$lt_cv_path_LDCXX
18722 else
18723 $as_unset lt_cv_path_LD
18725 test -z "${LDCXX+set}" || LD=$LDCXX
18726 CC=${CXX-"c++"}
18727 compiler=$CC
18728 compiler_CXX=$CC
18729 for cc_temp in $compiler""; do
18730 case $cc_temp in
18731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18733 \-*) ;;
18734 *) break;;
18735 esac
18736 done
18737 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18740 if test -n "$compiler"; then
18741 # We don't want -fno-exception when compiling C++ code, so set the
18742 # no_builtin_flag separately
18743 if test "$GXX" = yes; then
18744 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18745 else
18746 lt_prog_compiler_no_builtin_flag_CXX=
18749 if test "$GXX" = yes; then
18750 # Set up default GNU C++ configuration
18754 # Check whether --with-gnu-ld was given.
18755 if test "${with_gnu_ld+set}" = set; then :
18756 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18757 else
18758 with_gnu_ld=no
18761 ac_prog=ld
18762 if test "$GCC" = yes; then
18763 # Check if gcc -print-prog-name=ld gives a path.
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18765 $as_echo_n "checking for ld used by $CC... " >&6; }
18766 case $host in
18767 *-*-mingw*)
18768 # gcc leaves a trailing carriage return which upsets mingw
18769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18772 esac
18773 case $ac_prog in
18774 # Accept absolute paths.
18775 [\\/]* | ?:[\\/]*)
18776 re_direlt='/[^/][^/]*/\.\./'
18777 # Canonicalize the pathname of ld
18778 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18779 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18780 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18781 done
18782 test -z "$LD" && LD="$ac_prog"
18785 # If it fails, then pretend we aren't using GCC.
18786 ac_prog=ld
18789 # If it is relative, then search for the first ld in PATH.
18790 with_gnu_ld=unknown
18792 esac
18793 elif test "$with_gnu_ld" = yes; then
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18795 $as_echo_n "checking for GNU ld... " >&6; }
18796 else
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18798 $as_echo_n "checking for non-GNU ld... " >&6; }
18800 if test "${lt_cv_path_LD+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 if test -z "$LD"; then
18804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18805 for ac_dir in $PATH; do
18806 IFS="$lt_save_ifs"
18807 test -z "$ac_dir" && ac_dir=.
18808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18809 lt_cv_path_LD="$ac_dir/$ac_prog"
18810 # Check to see if the program is GNU ld. I'd rather use --version,
18811 # but apparently some variants of GNU ld only accept -v.
18812 # Break only if it was the GNU/non-GNU ld that we prefer.
18813 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18814 *GNU* | *'with BFD'*)
18815 test "$with_gnu_ld" != no && break
18818 test "$with_gnu_ld" != yes && break
18820 esac
18822 done
18823 IFS="$lt_save_ifs"
18824 else
18825 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18829 LD="$lt_cv_path_LD"
18830 if test -n "$LD"; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18832 $as_echo "$LD" >&6; }
18833 else
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835 $as_echo "no" >&6; }
18837 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18839 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18840 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18844 case `$LD -v 2>&1 </dev/null` in
18845 *GNU* | *'with BFD'*)
18846 lt_cv_prog_gnu_ld=yes
18849 lt_cv_prog_gnu_ld=no
18851 esac
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18854 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18855 with_gnu_ld=$lt_cv_prog_gnu_ld
18863 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18864 # archiving commands below assume that GNU ld is being used.
18865 if test "$with_gnu_ld" = yes; then
18866 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18867 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18872 # If archive_cmds runs LD, not CC, wlarc should be empty
18873 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18874 # investigate it a little bit more. (MM)
18875 wlarc='${wl}'
18877 # ancient GNU ld didn't support --whole-archive et. al.
18878 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18879 $GREP 'no-whole-archive' > /dev/null; then
18880 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18881 else
18882 whole_archive_flag_spec_CXX=
18884 else
18885 with_gnu_ld=no
18886 wlarc=
18888 # A generic and very simple default shared library creation
18889 # command for GNU C++ for the case where it uses the native
18890 # linker, instead of GNU ld. If possible, this setting should
18891 # overridden to take advantage of the native linker features on
18892 # the platform it is being used on.
18893 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18896 # Commands to make compiler produce verbose output that lists
18897 # what "hidden" libraries, object files and flags are used when
18898 # linking a shared library.
18899 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18901 else
18902 GXX=no
18903 with_gnu_ld=no
18904 wlarc=
18907 # PORTME: fill in a description of your system's C++ link characteristics
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18910 ld_shlibs_CXX=yes
18911 case $host_os in
18912 aix3*)
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18916 aix[4-9]*)
18917 if test "$host_cpu" = ia64; then
18918 # On IA64, the linker does run time linking by default, so we don't
18919 # have to do anything special.
18920 aix_use_runtimelinking=no
18921 exp_sym_flag='-Bexport'
18922 no_entry_flag=""
18923 else
18924 aix_use_runtimelinking=no
18926 # Test if we are trying to use run time linking or normal
18927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18928 # need to do runtime linking.
18929 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18930 for ld_flag in $LDFLAGS; do
18931 case $ld_flag in
18932 *-brtl*)
18933 aix_use_runtimelinking=yes
18934 break
18936 esac
18937 done
18939 esac
18941 exp_sym_flag='-bexport'
18942 no_entry_flag='-bnoentry'
18945 # When large executables or shared objects are built, AIX ld can
18946 # have problems creating the table of contents. If linking a library
18947 # or program results in "error TOC overflow" add -mminimal-toc to
18948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18951 archive_cmds_CXX=''
18952 hardcode_direct_CXX=yes
18953 hardcode_direct_absolute_CXX=yes
18954 hardcode_libdir_separator_CXX=':'
18955 link_all_deplibs_CXX=yes
18956 file_list_spec_CXX='${wl}-f,'
18958 if test "$GXX" = yes; then
18959 case $host_os in aix4.[012]|aix4.[012].*)
18960 # We only want to do this on AIX 4.2 and lower, the check
18961 # below for broken collect2 doesn't work under 4.3+
18962 collect2name=`${CC} -print-prog-name=collect2`
18963 if test -f "$collect2name" &&
18964 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18965 then
18966 # We have reworked collect2
18968 else
18969 # We have old collect2
18970 hardcode_direct_CXX=unsupported
18971 # It fails to find uninstalled libraries when the uninstalled
18972 # path is not listed in the libpath. Setting hardcode_minus_L
18973 # to unsupported forces relinking
18974 hardcode_minus_L_CXX=yes
18975 hardcode_libdir_flag_spec_CXX='-L$libdir'
18976 hardcode_libdir_separator_CXX=
18978 esac
18979 shared_flag='-shared'
18980 if test "$aix_use_runtimelinking" = yes; then
18981 shared_flag="$shared_flag "'${wl}-G'
18983 else
18984 # not using gcc
18985 if test "$host_cpu" = ia64; then
18986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18987 # chokes on -Wl,-G. The following line is correct:
18988 shared_flag='-G'
18989 else
18990 if test "$aix_use_runtimelinking" = yes; then
18991 shared_flag='${wl}-G'
18992 else
18993 shared_flag='${wl}-bM:SRE'
18998 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18999 # It seems that -bexpall does not export symbols beginning with
19000 # underscore (_), so it is better to generate a list of symbols to
19001 # export.
19002 always_export_symbols_CXX=yes
19003 if test "$aix_use_runtimelinking" = yes; then
19004 # Warning - without using the other runtime loading flags (-brtl),
19005 # -berok will link without error, but may produce a broken library.
19006 allow_undefined_flag_CXX='-berok'
19007 # Determine the default libpath from the value encoded in an empty
19008 # executable.
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19013 main ()
19017 return 0;
19019 _ACEOF
19020 if ac_fn_cxx_try_link "$LINENO"; then :
19022 lt_aix_libpath_sed='
19023 /Import File Strings/,/^$/ {
19024 /^0/ {
19025 s/^0 *\(.*\)$/\1/
19029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19030 # Check for a 64-bit object if we didn't find anything.
19031 if test -z "$aix_libpath"; then
19032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19035 rm -f core conftest.err conftest.$ac_objext \
19036 conftest$ac_exeext conftest.$ac_ext
19037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19039 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19041 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"
19042 else
19043 if test "$host_cpu" = ia64; then
19044 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19045 allow_undefined_flag_CXX="-z nodefs"
19046 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"
19047 else
19048 # Determine the default libpath from the value encoded in an
19049 # empty executable.
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19054 main ()
19058 return 0;
19060 _ACEOF
19061 if ac_fn_cxx_try_link "$LINENO"; then :
19063 lt_aix_libpath_sed='
19064 /Import File Strings/,/^$/ {
19065 /^0/ {
19066 s/^0 *\(.*\)$/\1/
19070 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19071 # Check for a 64-bit object if we didn't find anything.
19072 if test -z "$aix_libpath"; then
19073 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19080 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19081 # Warning - without using the other run time loading flags,
19082 # -berok will link without error, but may produce a broken library.
19083 no_undefined_flag_CXX=' ${wl}-bernotok'
19084 allow_undefined_flag_CXX=' ${wl}-berok'
19085 if test "$with_gnu_ld" = yes; then
19086 # We only use this code for GNU lds that support --whole-archive.
19087 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19088 else
19089 # Exported symbols can be pulled into shared objects from archives
19090 whole_archive_flag_spec_CXX='$convenience'
19092 archive_cmds_need_lc_CXX=yes
19093 # This is similar to how AIX traditionally builds its shared
19094 # libraries.
19095 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'
19100 beos*)
19101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19102 allow_undefined_flag_CXX=unsupported
19103 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19104 # support --undefined. This deserves some investigation. FIXME
19105 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19106 else
19107 ld_shlibs_CXX=no
19111 chorus*)
19112 case $cc_basename in
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19117 esac
19120 cygwin* | mingw* | pw32* | cegcc*)
19121 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19122 # as there is no search path for DLLs.
19123 hardcode_libdir_flag_spec_CXX='-L$libdir'
19124 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19125 allow_undefined_flag_CXX=unsupported
19126 always_export_symbols_CXX=no
19127 enable_shared_with_static_runtimes_CXX=yes
19129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19130 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'
19131 # If the export-symbols file already is a .def file (1st line
19132 # is EXPORTS), use it as is; otherwise, prepend...
19133 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19134 cp $export_symbols $output_objdir/$soname.def;
19135 else
19136 echo EXPORTS > $output_objdir/$soname.def;
19137 cat $export_symbols >> $output_objdir/$soname.def;
19139 $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'
19140 else
19141 ld_shlibs_CXX=no
19144 darwin* | rhapsody*)
19147 archive_cmds_need_lc_CXX=no
19148 hardcode_direct_CXX=no
19149 hardcode_automatic_CXX=yes
19150 hardcode_shlibpath_var_CXX=unsupported
19151 if test "$lt_cv_ld_force_load" = "yes"; then
19152 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\"`'
19153 else
19154 whole_archive_flag_spec_CXX=''
19156 link_all_deplibs_CXX=yes
19157 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19158 case $cc_basename in
19159 ifort*) _lt_dar_can_shared=yes ;;
19160 *) _lt_dar_can_shared=$GCC ;;
19161 esac
19162 if test "$_lt_dar_can_shared" = "yes"; then
19163 output_verbose_link_cmd=func_echo_all
19164 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}"
19165 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19166 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}"
19167 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}"
19168 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19169 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}"
19170 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}"
19173 else
19174 ld_shlibs_CXX=no
19179 dgux*)
19180 case $cc_basename in
19181 ec++*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19185 ghcx*)
19186 # Green Hills C++ Compiler
19187 # FIXME: insert proper C++ library support
19188 ld_shlibs_CXX=no
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19194 esac
19197 freebsd2.*)
19198 # C++ shared libraries reported to be fairly broken before
19199 # switch to ELF
19200 ld_shlibs_CXX=no
19203 freebsd-elf*)
19204 archive_cmds_need_lc_CXX=no
19207 freebsd* | dragonfly*)
19208 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19209 # conventions
19210 ld_shlibs_CXX=yes
19213 gnu*)
19216 haiku*)
19217 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 link_all_deplibs_CXX=yes
19221 hpux9*)
19222 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19223 hardcode_libdir_separator_CXX=:
19224 export_dynamic_flag_spec_CXX='${wl}-E'
19225 hardcode_direct_CXX=yes
19226 hardcode_minus_L_CXX=yes # Not in the search PATH,
19227 # but as the default
19228 # location of the library.
19230 case $cc_basename in
19231 CC*)
19232 # FIXME: insert proper C++ library support
19233 ld_shlibs_CXX=no
19235 aCC*)
19236 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'
19237 # Commands to make compiler produce verbose output that lists
19238 # what "hidden" libraries, object files and flags are used when
19239 # linking a shared library.
19241 # There doesn't appear to be a way to prevent this compiler from
19242 # explicitly linking system object files so we need to strip them
19243 # from the output so that they don't get included in the library
19244 # dependencies.
19245 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"'
19248 if test "$GXX" = yes; then
19249 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'
19250 else
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19255 esac
19258 hpux10*|hpux11*)
19259 if test $with_gnu_ld = no; then
19260 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19261 hardcode_libdir_separator_CXX=:
19263 case $host_cpu in
19264 hppa*64*|ia64*)
19267 export_dynamic_flag_spec_CXX='${wl}-E'
19269 esac
19271 case $host_cpu in
19272 hppa*64*|ia64*)
19273 hardcode_direct_CXX=no
19274 hardcode_shlibpath_var_CXX=no
19277 hardcode_direct_CXX=yes
19278 hardcode_direct_absolute_CXX=yes
19279 hardcode_minus_L_CXX=yes # Not in the search PATH,
19280 # but as the default
19281 # location of the library.
19283 esac
19285 case $cc_basename in
19286 CC*)
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19290 aCC*)
19291 case $host_cpu in
19292 hppa*64*)
19293 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19295 ia64*)
19296 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19301 esac
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19306 # There doesn't appear to be a way to prevent this compiler from
19307 # explicitly linking system object files so we need to strip them
19308 # from the output so that they don't get included in the library
19309 # dependencies.
19310 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"'
19313 if test "$GXX" = yes; then
19314 if test $with_gnu_ld = no; then
19315 case $host_cpu in
19316 hppa*64*)
19317 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19319 ia64*)
19320 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19323 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'
19325 esac
19327 else
19328 # FIXME: insert proper C++ library support
19329 ld_shlibs_CXX=no
19332 esac
19335 interix[3-9]*)
19336 hardcode_direct_CXX=no
19337 hardcode_shlibpath_var_CXX=no
19338 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19339 export_dynamic_flag_spec_CXX='${wl}-E'
19340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19341 # Instead, shared libraries are loaded at an image base (0x10000000 by
19342 # default) and relocated if they conflict, which is a slow very memory
19343 # consuming and fragmenting process. To avoid this, we pick a random,
19344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19346 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'
19347 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'
19349 irix5* | irix6*)
19350 case $cc_basename in
19351 CC*)
19352 # SGI C++
19353 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'
19355 # Archives containing C++ object files must be created using
19356 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19357 # necessary to make sure instantiated templates are included
19358 # in the archive.
19359 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19362 if test "$GXX" = yes; then
19363 if test "$with_gnu_ld" = no; then
19364 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'
19365 else
19366 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'
19369 link_all_deplibs_CXX=yes
19371 esac
19372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19373 hardcode_libdir_separator_CXX=:
19374 inherit_rpath_CXX=yes
19377 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19378 case $cc_basename in
19379 KCC*)
19380 # Kuck and Associates, Inc. (KAI) C++ Compiler
19382 # KCC will only create a shared library if the output file
19383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19384 # to its proper name (with version) after linking.
19385 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'
19386 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'
19387 # Commands to make compiler produce verbose output that lists
19388 # what "hidden" libraries, object files and flags are used when
19389 # linking a shared library.
19391 # There doesn't appear to be a way to prevent this compiler from
19392 # explicitly linking system object files so we need to strip them
19393 # from the output so that they don't get included in the library
19394 # dependencies.
19395 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"'
19397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19398 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19400 # Archives containing C++ object files must be created using
19401 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19402 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19404 icpc* | ecpc* )
19405 # Intel C++
19406 with_gnu_ld=yes
19407 # version 8.0 and above of icpc choke on multiply defined symbols
19408 # if we add $predep_objects and $postdep_objects, however 7.1 and
19409 # earlier do not add the objects themselves.
19410 case `$CC -V 2>&1` in
19411 *"Version 7."*)
19412 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 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'
19415 *) # Version 8.0 or newer
19416 tmp_idyn=
19417 case $host_cpu in
19418 ia64*) tmp_idyn=' -i_dynamic';;
19419 esac
19420 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19421 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'
19423 esac
19424 archive_cmds_need_lc_CXX=no
19425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19427 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19429 pgCC* | pgcpp*)
19430 # Portland Group C++ compiler
19431 case `$CC -V` in
19432 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19433 prelink_cmds_CXX='tpldir=Template.dir~
19434 rm -rf $tpldir~
19435 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19436 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19437 old_archive_cmds_CXX='tpldir=Template.dir~
19438 rm -rf $tpldir~
19439 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19440 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19441 $RANLIB $oldlib'
19442 archive_cmds_CXX='tpldir=Template.dir~
19443 rm -rf $tpldir~
19444 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19445 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19446 archive_expsym_cmds_CXX='tpldir=Template.dir~
19447 rm -rf $tpldir~
19448 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19449 $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'
19451 *) # Version 6 and above use weak symbols
19452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19453 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'
19455 esac
19457 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19459 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'
19461 cxx*)
19462 # Compaq C++
19463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19464 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'
19466 runpath_var=LD_RUN_PATH
19467 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19468 hardcode_libdir_separator_CXX=:
19470 # Commands to make compiler produce verbose output that lists
19471 # what "hidden" libraries, object files and flags are used when
19472 # linking a shared library.
19474 # There doesn't appear to be a way to prevent this compiler from
19475 # explicitly linking system object files so we need to strip them
19476 # from the output so that they don't get included in the library
19477 # dependencies.
19478 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'
19480 xl* | mpixl* | bgxl*)
19481 # IBM XL 8.0 on PPC, with GNU ld
19482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19483 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19484 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19485 if test "x$supports_anon_versioning" = xyes; then
19486 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19487 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19488 echo "local: *; };" >> $output_objdir/$libname.ver~
19489 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19493 case `$CC -V 2>&1 | sed 5q` in
19494 *Sun\ C*)
19495 # Sun C++ 5.9
19496 no_undefined_flag_CXX=' -zdefs'
19497 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19498 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'
19499 hardcode_libdir_flag_spec_CXX='-R$libdir'
19500 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'
19501 compiler_needs_object_CXX=yes
19503 # Not sure whether something based on
19504 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19505 # would be better.
19506 output_verbose_link_cmd='func_echo_all'
19508 # Archives containing C++ object files must be created using
19509 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19510 # necessary to make sure instantiated templates are included
19511 # in the archive.
19512 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19514 esac
19516 esac
19519 lynxos*)
19520 # FIXME: insert proper C++ library support
19521 ld_shlibs_CXX=no
19524 m88k*)
19525 # FIXME: insert proper C++ library support
19526 ld_shlibs_CXX=no
19529 mvs*)
19530 case $cc_basename in
19531 cxx*)
19532 # FIXME: insert proper C++ library support
19533 ld_shlibs_CXX=no
19536 # FIXME: insert proper C++ library support
19537 ld_shlibs_CXX=no
19539 esac
19542 netbsd*)
19543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19544 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19545 wlarc=
19546 hardcode_libdir_flag_spec_CXX='-R$libdir'
19547 hardcode_direct_CXX=yes
19548 hardcode_shlibpath_var_CXX=no
19550 # Workaround some broken pre-1.5 toolchains
19551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19554 *nto* | *qnx*)
19555 ld_shlibs_CXX=yes
19558 openbsd2*)
19559 # C++ shared libraries are fairly broken
19560 ld_shlibs_CXX=no
19563 openbsd*)
19564 if test -f /usr/libexec/ld.so; then
19565 hardcode_direct_CXX=yes
19566 hardcode_shlibpath_var_CXX=no
19567 hardcode_direct_absolute_CXX=yes
19568 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19569 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19571 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19572 export_dynamic_flag_spec_CXX='${wl}-E'
19573 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19575 output_verbose_link_cmd=func_echo_all
19576 else
19577 ld_shlibs_CXX=no
19581 osf3* | osf4* | osf5*)
19582 case $cc_basename in
19583 KCC*)
19584 # Kuck and Associates, Inc. (KAI) C++ Compiler
19586 # KCC will only create a shared library if the output file
19587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19588 # to its proper name (with version) after linking.
19589 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'
19591 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19592 hardcode_libdir_separator_CXX=:
19594 # Archives containing C++ object files must be created using
19595 # the KAI C++ compiler.
19596 case $host in
19597 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19598 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19599 esac
19601 RCC*)
19602 # Rational C++ 2.4.1
19603 # FIXME: insert proper C++ library support
19604 ld_shlibs_CXX=no
19606 cxx*)
19607 case $host in
19608 osf3*)
19609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19610 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'
19611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19614 allow_undefined_flag_CXX=' -expect_unresolved \*'
19615 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'
19616 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19617 echo "-hidden">> $lib.exp~
19618 $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~
19619 $RM $lib.exp'
19620 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19622 esac
19624 hardcode_libdir_separator_CXX=:
19626 # Commands to make compiler produce verbose output that lists
19627 # what "hidden" libraries, object files and flags are used when
19628 # linking a shared library.
19630 # There doesn't appear to be a way to prevent this compiler from
19631 # explicitly linking system object files so we need to strip them
19632 # from the output so that they don't get included in the library
19633 # dependencies.
19634 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"'
19637 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19638 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19639 case $host in
19640 osf3*)
19641 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'
19644 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'
19646 esac
19648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19649 hardcode_libdir_separator_CXX=:
19651 # Commands to make compiler produce verbose output that lists
19652 # what "hidden" libraries, object files and flags are used when
19653 # linking a shared library.
19654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19656 else
19657 # FIXME: insert proper C++ library support
19658 ld_shlibs_CXX=no
19661 esac
19664 psos*)
19665 # FIXME: insert proper C++ library support
19666 ld_shlibs_CXX=no
19669 sunos4*)
19670 case $cc_basename in
19671 CC*)
19672 # Sun C++ 4.x
19673 # FIXME: insert proper C++ library support
19674 ld_shlibs_CXX=no
19676 lcc*)
19677 # Lucid
19678 # FIXME: insert proper C++ library support
19679 ld_shlibs_CXX=no
19682 # FIXME: insert proper C++ library support
19683 ld_shlibs_CXX=no
19685 esac
19688 solaris*)
19689 case $cc_basename in
19690 CC*)
19691 # Sun C++ 4.2, 5.x and Centerline C++
19692 archive_cmds_need_lc_CXX=yes
19693 no_undefined_flag_CXX=' -zdefs'
19694 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19695 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19696 $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'
19698 hardcode_libdir_flag_spec_CXX='-R$libdir'
19699 hardcode_shlibpath_var_CXX=no
19700 case $host_os in
19701 solaris2.[0-5] | solaris2.[0-5].*) ;;
19703 # The compiler driver will combine and reorder linker options,
19704 # but understands `-z linker_flag'.
19705 # Supported since Solaris 2.6 (maybe 2.5.1?)
19706 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19708 esac
19709 link_all_deplibs_CXX=yes
19711 output_verbose_link_cmd='func_echo_all'
19713 # Archives containing C++ object files must be created using
19714 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19715 # necessary to make sure instantiated templates are included
19716 # in the archive.
19717 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19719 gcx*)
19720 # Green Hills C++ Compiler
19721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19723 # The C++ compiler must be used to create the archive.
19724 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19727 # GNU C++ compiler with Solaris linker
19728 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19729 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19730 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19731 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19732 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19733 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19735 # Commands to make compiler produce verbose output that lists
19736 # what "hidden" libraries, object files and flags are used when
19737 # linking a shared library.
19738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19739 else
19740 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19741 # platform.
19742 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19743 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19744 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19746 # Commands to make compiler produce verbose output that lists
19747 # what "hidden" libraries, object files and flags are used when
19748 # linking a shared library.
19749 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19752 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19753 case $host_os in
19754 solaris2.[0-5] | solaris2.[0-5].*) ;;
19756 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19758 esac
19761 esac
19764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19765 no_undefined_flag_CXX='${wl}-z,text'
19766 archive_cmds_need_lc_CXX=no
19767 hardcode_shlibpath_var_CXX=no
19768 runpath_var='LD_RUN_PATH'
19770 case $cc_basename in
19771 CC*)
19772 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19776 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19779 esac
19782 sysv5* | sco3.2v5* | sco5v6*)
19783 # Note: We can NOT use -z defs as we might desire, because we do not
19784 # link with -lc, and that would cause any symbols used from libc to
19785 # always be unresolved, which means just about no library would
19786 # ever link correctly. If we're not using GNU ld we use -z text
19787 # though, which does catch some bad symbols but isn't as heavy-handed
19788 # as -z defs.
19789 no_undefined_flag_CXX='${wl}-z,text'
19790 allow_undefined_flag_CXX='${wl}-z,nodefs'
19791 archive_cmds_need_lc_CXX=no
19792 hardcode_shlibpath_var_CXX=no
19793 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19794 hardcode_libdir_separator_CXX=':'
19795 link_all_deplibs_CXX=yes
19796 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19797 runpath_var='LD_RUN_PATH'
19799 case $cc_basename in
19800 CC*)
19801 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19803 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19804 '"$old_archive_cmds_CXX"
19805 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19806 '"$reload_cmds_CXX"
19809 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19810 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19812 esac
19815 tandem*)
19816 case $cc_basename in
19817 NCC*)
19818 # NonStop-UX NCC 3.20
19819 # FIXME: insert proper C++ library support
19820 ld_shlibs_CXX=no
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19826 esac
19829 vxworks*)
19830 # FIXME: insert proper C++ library support
19831 ld_shlibs_CXX=no
19835 # FIXME: insert proper C++ library support
19836 ld_shlibs_CXX=no
19838 esac
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19841 $as_echo "$ld_shlibs_CXX" >&6; }
19842 test "$ld_shlibs_CXX" = no && can_build_shared=no
19844 GCC_CXX="$GXX"
19845 LD_CXX="$LD"
19847 ## CAVEAT EMPTOR:
19848 ## There is no encapsulation within the following macros, do not change
19849 ## the running order or otherwise move them around unless you know exactly
19850 ## what you are doing...
19851 # Dependencies to place before and after the object being linked:
19852 predep_objects_CXX=
19853 postdep_objects_CXX=
19854 predeps_CXX=
19855 postdeps_CXX=
19856 compiler_lib_search_path_CXX=
19858 cat > conftest.$ac_ext <<_LT_EOF
19859 class Foo
19861 public:
19862 Foo (void) { a = 0; }
19863 private:
19864 int a;
19866 _LT_EOF
19868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19869 (eval $ac_compile) 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19872 test $ac_status = 0; }; then
19873 # Parse the compiler output and extract the necessary
19874 # objects, libraries and library flags.
19876 # Sentinel used to keep track of whether or not we are before
19877 # the conftest object file.
19878 pre_test_object_deps_done=no
19880 for p in `eval "$output_verbose_link_cmd"`; do
19881 case $p in
19883 -L* | -R* | -l*)
19884 # Some compilers place space between "-{L,R}" and the path.
19885 # Remove the space.
19886 if test $p = "-L" ||
19887 test $p = "-R"; then
19888 prev=$p
19889 continue
19890 else
19891 prev=
19894 if test "$pre_test_object_deps_done" = no; then
19895 case $p in
19896 -L* | -R*)
19897 # Internal compiler library paths should come after those
19898 # provided the user. The postdeps already come after the
19899 # user supplied libs so there is no need to process them.
19900 if test -z "$compiler_lib_search_path_CXX"; then
19901 compiler_lib_search_path_CXX="${prev}${p}"
19902 else
19903 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19906 # The "-l" case would never come before the object being
19907 # linked, so don't bother handling this case.
19908 esac
19909 else
19910 if test -z "$postdeps_CXX"; then
19911 postdeps_CXX="${prev}${p}"
19912 else
19913 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19918 *.$objext)
19919 # This assumes that the test object file only shows up
19920 # once in the compiler output.
19921 if test "$p" = "conftest.$objext"; then
19922 pre_test_object_deps_done=yes
19923 continue
19926 if test "$pre_test_object_deps_done" = no; then
19927 if test -z "$predep_objects_CXX"; then
19928 predep_objects_CXX="$p"
19929 else
19930 predep_objects_CXX="$predep_objects_CXX $p"
19932 else
19933 if test -z "$postdep_objects_CXX"; then
19934 postdep_objects_CXX="$p"
19935 else
19936 postdep_objects_CXX="$postdep_objects_CXX $p"
19941 *) ;; # Ignore the rest.
19943 esac
19944 done
19946 # Clean up.
19947 rm -f a.out a.exe
19948 else
19949 echo "libtool.m4: error: problem compiling CXX test program"
19952 $RM -f confest.$objext
19954 # PORTME: override above test on systems where it is broken
19955 case $host_os in
19956 interix[3-9]*)
19957 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19958 # hack all around it, let's just trust "g++" to DTRT.
19959 predep_objects_CXX=
19960 postdep_objects_CXX=
19961 postdeps_CXX=
19964 linux*)
19965 case `$CC -V 2>&1 | sed 5q` in
19966 *Sun\ C*)
19967 # Sun C++ 5.9
19969 # The more standards-conforming stlport4 library is
19970 # incompatible with the Cstd library. Avoid specifying
19971 # it if it's in CXXFLAGS. Ignore libCrun as
19972 # -library=stlport4 depends on it.
19973 case " $CXX $CXXFLAGS " in
19974 *" -library=stlport4 "*)
19975 solaris_use_stlport4=yes
19977 esac
19979 if test "$solaris_use_stlport4" != yes; then
19980 postdeps_CXX='-library=Cstd -library=Crun'
19983 esac
19986 solaris*)
19987 case $cc_basename in
19988 CC*)
19989 # The more standards-conforming stlport4 library is
19990 # incompatible with the Cstd library. Avoid specifying
19991 # it if it's in CXXFLAGS. Ignore libCrun as
19992 # -library=stlport4 depends on it.
19993 case " $CXX $CXXFLAGS " in
19994 *" -library=stlport4 "*)
19995 solaris_use_stlport4=yes
19997 esac
19999 # Adding this requires a known-good setup of shared libraries for
20000 # Sun compiler versions before 5.6, else PIC objects from an old
20001 # archive will be linked into the output, leading to subtle bugs.
20002 if test "$solaris_use_stlport4" != yes; then
20003 postdeps_CXX='-library=Cstd -library=Crun'
20006 esac
20008 esac
20011 case " $postdeps_CXX " in
20012 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20013 esac
20014 compiler_lib_search_dirs_CXX=
20015 if test -n "${compiler_lib_search_path_CXX}"; then
20016 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20049 lt_prog_compiler_wl_CXX=
20050 lt_prog_compiler_pic_CXX=
20051 lt_prog_compiler_static_CXX=
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20056 # C++ specific cases for pic, static, wl, etc.
20057 if test "$GXX" = yes; then
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 lt_prog_compiler_static_CXX='-static'
20061 case $host_os in
20062 aix*)
20063 # All AIX code is PIC.
20064 if test "$host_cpu" = ia64; then
20065 # AIX 5 now supports IA64 processor
20066 lt_prog_compiler_static_CXX='-Bstatic'
20068 lt_prog_compiler_pic_CXX='-fPIC'
20071 amigaos*)
20072 case $host_cpu in
20073 powerpc)
20074 # see comment about AmigaOS4 .so support
20075 lt_prog_compiler_pic_CXX='-fPIC'
20077 m68k)
20078 # FIXME: we need at least 68020 code to build shared libraries, but
20079 # adding the `-m68020' flag to GCC prevents building anything better,
20080 # like `-m68040'.
20081 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20083 esac
20086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20087 # PIC is the default for these OSes.
20089 mingw* | cygwin* | os2* | pw32* | cegcc*)
20090 # This hack is so that the source file can tell whether it is being
20091 # built for inclusion in a dll (and should export symbols for example).
20092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20093 # (--disable-auto-import) libraries
20094 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20096 darwin* | rhapsody*)
20097 # PIC is the default on this platform
20098 # Common symbols not allowed in MH_DYLIB files
20099 lt_prog_compiler_pic_CXX='-fno-common'
20101 *djgpp*)
20102 # DJGPP does not support shared libraries at all
20103 lt_prog_compiler_pic_CXX=
20105 haiku*)
20106 # PIC is the default for Haiku.
20107 # The "-static" flag exists, but is broken.
20108 lt_prog_compiler_static_CXX=
20110 interix[3-9]*)
20111 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20112 # Instead, we relocate shared libraries at runtime.
20114 sysv4*MP*)
20115 if test -d /usr/nec; then
20116 lt_prog_compiler_pic_CXX=-Kconform_pic
20119 hpux*)
20120 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20121 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20122 # sets the default TLS model and affects inlining.
20123 case $host_cpu in
20124 hppa*64*)
20127 lt_prog_compiler_pic_CXX='-fPIC'
20129 esac
20131 *qnx* | *nto*)
20132 # QNX uses GNU C++, but need to define -shared option too, otherwise
20133 # it will coredump.
20134 lt_prog_compiler_pic_CXX='-fPIC -shared'
20137 lt_prog_compiler_pic_CXX='-fPIC'
20139 esac
20140 else
20141 case $host_os in
20142 aix[4-9]*)
20143 # All AIX code is PIC.
20144 if test "$host_cpu" = ia64; then
20145 # AIX 5 now supports IA64 processor
20146 lt_prog_compiler_static_CXX='-Bstatic'
20147 else
20148 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20151 chorus*)
20152 case $cc_basename in
20153 cxch68*)
20154 # Green Hills C++ Compiler
20155 # _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"
20157 esac
20159 dgux*)
20160 case $cc_basename in
20161 ec++*)
20162 lt_prog_compiler_pic_CXX='-KPIC'
20164 ghcx*)
20165 # Green Hills C++ Compiler
20166 lt_prog_compiler_pic_CXX='-pic'
20170 esac
20172 freebsd* | dragonfly*)
20173 # FreeBSD uses GNU C++
20175 hpux9* | hpux10* | hpux11*)
20176 case $cc_basename in
20177 CC*)
20178 lt_prog_compiler_wl_CXX='-Wl,'
20179 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20180 if test "$host_cpu" != ia64; then
20181 lt_prog_compiler_pic_CXX='+Z'
20184 aCC*)
20185 lt_prog_compiler_wl_CXX='-Wl,'
20186 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20187 case $host_cpu in
20188 hppa*64*|ia64*)
20189 # +Z the default
20192 lt_prog_compiler_pic_CXX='+Z'
20194 esac
20198 esac
20200 interix*)
20201 # This is c89, which is MS Visual C++ (no shared libs)
20202 # Anyone wants to do a port?
20204 irix5* | irix6* | nonstopux*)
20205 case $cc_basename in
20206 CC*)
20207 lt_prog_compiler_wl_CXX='-Wl,'
20208 lt_prog_compiler_static_CXX='-non_shared'
20209 # CC pic flag -KPIC is the default.
20213 esac
20215 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20216 case $cc_basename in
20217 KCC*)
20218 # KAI C++ Compiler
20219 lt_prog_compiler_wl_CXX='--backend -Wl,'
20220 lt_prog_compiler_pic_CXX='-fPIC'
20222 ecpc* )
20223 # old Intel C++ for x86_64 which still supported -KPIC.
20224 lt_prog_compiler_wl_CXX='-Wl,'
20225 lt_prog_compiler_pic_CXX='-KPIC'
20226 lt_prog_compiler_static_CXX='-static'
20228 icpc* )
20229 # Intel C++, used to be incompatible with GCC.
20230 # ICC 10 doesn't accept -KPIC any more.
20231 lt_prog_compiler_wl_CXX='-Wl,'
20232 lt_prog_compiler_pic_CXX='-fPIC'
20233 lt_prog_compiler_static_CXX='-static'
20235 pgCC* | pgcpp*)
20236 # Portland Group C++ compiler
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_pic_CXX='-fpic'
20239 lt_prog_compiler_static_CXX='-Bstatic'
20241 cxx*)
20242 # Compaq C++
20243 # Make sure the PIC flag is empty. It appears that all Alpha
20244 # Linux and Compaq Tru64 Unix objects are PIC.
20245 lt_prog_compiler_pic_CXX=
20246 lt_prog_compiler_static_CXX='-non_shared'
20248 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20249 # IBM XL 8.0, 9.0 on PPC and BlueGene
20250 lt_prog_compiler_wl_CXX='-Wl,'
20251 lt_prog_compiler_pic_CXX='-qpic'
20252 lt_prog_compiler_static_CXX='-qstaticlink'
20255 case `$CC -V 2>&1 | sed 5q` in
20256 *Sun\ C*)
20257 # Sun C++ 5.9
20258 lt_prog_compiler_pic_CXX='-KPIC'
20259 lt_prog_compiler_static_CXX='-Bstatic'
20260 lt_prog_compiler_wl_CXX='-Qoption ld '
20262 esac
20264 esac
20266 lynxos*)
20268 m88k*)
20270 mvs*)
20271 case $cc_basename in
20272 cxx*)
20273 lt_prog_compiler_pic_CXX='-W c,exportall'
20277 esac
20279 netbsd*)
20281 *qnx* | *nto*)
20282 # QNX uses GNU C++, but need to define -shared option too, otherwise
20283 # it will coredump.
20284 lt_prog_compiler_pic_CXX='-fPIC -shared'
20286 osf3* | osf4* | osf5*)
20287 case $cc_basename in
20288 KCC*)
20289 lt_prog_compiler_wl_CXX='--backend -Wl,'
20291 RCC*)
20292 # Rational C++ 2.4.1
20293 lt_prog_compiler_pic_CXX='-pic'
20295 cxx*)
20296 # Digital/Compaq C++
20297 lt_prog_compiler_wl_CXX='-Wl,'
20298 # Make sure the PIC flag is empty. It appears that all Alpha
20299 # Linux and Compaq Tru64 Unix objects are PIC.
20300 lt_prog_compiler_pic_CXX=
20301 lt_prog_compiler_static_CXX='-non_shared'
20305 esac
20307 psos*)
20309 solaris*)
20310 case $cc_basename in
20311 CC*)
20312 # Sun C++ 4.2, 5.x and Centerline C++
20313 lt_prog_compiler_pic_CXX='-KPIC'
20314 lt_prog_compiler_static_CXX='-Bstatic'
20315 lt_prog_compiler_wl_CXX='-Qoption ld '
20317 gcx*)
20318 # Green Hills C++ Compiler
20319 lt_prog_compiler_pic_CXX='-PIC'
20323 esac
20325 sunos4*)
20326 case $cc_basename in
20327 CC*)
20328 # Sun C++ 4.x
20329 lt_prog_compiler_pic_CXX='-pic'
20330 lt_prog_compiler_static_CXX='-Bstatic'
20332 lcc*)
20333 # Lucid
20334 lt_prog_compiler_pic_CXX='-pic'
20338 esac
20340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20341 case $cc_basename in
20342 CC*)
20343 lt_prog_compiler_wl_CXX='-Wl,'
20344 lt_prog_compiler_pic_CXX='-KPIC'
20345 lt_prog_compiler_static_CXX='-Bstatic'
20347 esac
20349 tandem*)
20350 case $cc_basename in
20351 NCC*)
20352 # NonStop-UX NCC 3.20
20353 lt_prog_compiler_pic_CXX='-KPIC'
20357 esac
20359 vxworks*)
20362 lt_prog_compiler_can_build_shared_CXX=no
20364 esac
20367 case $host_os in
20368 # For platforms which do not support PIC, -DPIC is meaningless:
20369 *djgpp*)
20370 lt_prog_compiler_pic_CXX=
20373 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20375 esac
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20377 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20382 # Check to make sure the PIC flag actually works.
20384 if test -n "$lt_prog_compiler_pic_CXX"; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20386 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20387 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20388 $as_echo_n "(cached) " >&6
20389 else
20390 lt_cv_prog_compiler_pic_works_CXX=no
20391 ac_outfile=conftest.$ac_objext
20392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20393 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20394 # Insert the option either (1) after the last *FLAGS variable, or
20395 # (2) before a word containing "conftest.", or (3) at the end.
20396 # Note that $ac_compile itself does not contain backslashes and begins
20397 # with a dollar sign (not a hyphen), so the echo should work correctly.
20398 # The option is referenced via a variable to avoid confusing sed.
20399 lt_compile=`echo "$ac_compile" | $SED \
20400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20402 -e 's:$: $lt_compiler_flag:'`
20403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20404 (eval "$lt_compile" 2>conftest.err)
20405 ac_status=$?
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 if (exit $ac_status) && test -s "$ac_outfile"; then
20409 # The compiler can only warn and ignore the option if not recognized
20410 # So say no if there are warnings other than the usual output.
20411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20414 lt_cv_prog_compiler_pic_works_CXX=yes
20417 $RM conftest*
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20421 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20423 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20424 case $lt_prog_compiler_pic_CXX in
20425 "" | " "*) ;;
20426 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20427 esac
20428 else
20429 lt_prog_compiler_pic_CXX=
20430 lt_prog_compiler_can_build_shared_CXX=no
20438 # Check to make sure the static flag actually works.
20440 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20442 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20443 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20444 $as_echo_n "(cached) " >&6
20445 else
20446 lt_cv_prog_compiler_static_works_CXX=no
20447 save_LDFLAGS="$LDFLAGS"
20448 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20451 # The linker can only warn and ignore the option if not recognized
20452 # So say no if there are warnings
20453 if test -s conftest.err; then
20454 # Append any errors to the config.log.
20455 cat conftest.err 1>&5
20456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20458 if diff conftest.exp conftest.er2 >/dev/null; then
20459 lt_cv_prog_compiler_static_works_CXX=yes
20461 else
20462 lt_cv_prog_compiler_static_works_CXX=yes
20465 $RM -r conftest*
20466 LDFLAGS="$save_LDFLAGS"
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20470 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20472 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20474 else
20475 lt_prog_compiler_static_CXX=
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20482 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20483 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20484 $as_echo_n "(cached) " >&6
20485 else
20486 lt_cv_prog_compiler_c_o_CXX=no
20487 $RM -r conftest 2>/dev/null
20488 mkdir conftest
20489 cd conftest
20490 mkdir out
20491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20493 lt_compiler_flag="-o out/conftest2.$ac_objext"
20494 # Insert the option either (1) after the last *FLAGS variable, or
20495 # (2) before a word containing "conftest.", or (3) at the end.
20496 # Note that $ac_compile itself does not contain backslashes and begins
20497 # with a dollar sign (not a hyphen), so the echo should work correctly.
20498 lt_compile=`echo "$ac_compile" | $SED \
20499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20501 -e 's:$: $lt_compiler_flag:'`
20502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20503 (eval "$lt_compile" 2>out/conftest.err)
20504 ac_status=$?
20505 cat out/conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20508 then
20509 # The compiler can only warn and ignore the option if not recognized
20510 # So say no if there are warnings
20511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20514 lt_cv_prog_compiler_c_o_CXX=yes
20517 chmod u+w . 2>&5
20518 $RM conftest*
20519 # SGI C++ compiler will create directory out/ii_files/ for
20520 # template instantiation
20521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20522 $RM out/* && rmdir out
20523 cd ..
20524 $RM -r conftest
20525 $RM conftest*
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20529 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20535 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20536 $as_echo_n "(cached) " >&6
20537 else
20538 lt_cv_prog_compiler_c_o_CXX=no
20539 $RM -r conftest 2>/dev/null
20540 mkdir conftest
20541 cd conftest
20542 mkdir out
20543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20545 lt_compiler_flag="-o out/conftest2.$ac_objext"
20546 # Insert the option either (1) after the last *FLAGS variable, or
20547 # (2) before a word containing "conftest.", or (3) at the end.
20548 # Note that $ac_compile itself does not contain backslashes and begins
20549 # with a dollar sign (not a hyphen), so the echo should work correctly.
20550 lt_compile=`echo "$ac_compile" | $SED \
20551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20553 -e 's:$: $lt_compiler_flag:'`
20554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20555 (eval "$lt_compile" 2>out/conftest.err)
20556 ac_status=$?
20557 cat out/conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20560 then
20561 # The compiler can only warn and ignore the option if not recognized
20562 # So say no if there are warnings
20563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20566 lt_cv_prog_compiler_c_o_CXX=yes
20569 chmod u+w . 2>&5
20570 $RM conftest*
20571 # SGI C++ compiler will create directory out/ii_files/ for
20572 # template instantiation
20573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20574 $RM out/* && rmdir out
20575 cd ..
20576 $RM -r conftest
20577 $RM conftest*
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20581 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20586 hard_links="nottested"
20587 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20588 # do not overwrite the value of need_locks provided by the user
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20590 $as_echo_n "checking if we can lock with hard links... " >&6; }
20591 hard_links=yes
20592 $RM conftest*
20593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20594 touch conftest.a
20595 ln conftest.a conftest.b 2>&5 || hard_links=no
20596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20598 $as_echo "$hard_links" >&6; }
20599 if test "$hard_links" = no; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20601 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20602 need_locks=warn
20604 else
20605 need_locks=no
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20614 case $host_os in
20615 aix[4-9]*)
20616 # If we're using GNU nm, then we don't want the "-C" option.
20617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20618 # Also, AIX nm treats weak defined symbols like other global defined
20619 # symbols, whereas GNU nm marks them as "W".
20620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20621 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'
20622 else
20623 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'
20626 pw32*)
20627 export_symbols_cmds_CXX="$ltdll_cmds"
20629 cygwin* | mingw* | cegcc*)
20630 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'
20633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20635 esac
20636 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20639 $as_echo "$ld_shlibs_CXX" >&6; }
20640 test "$ld_shlibs_CXX" = no && can_build_shared=no
20642 with_gnu_ld_CXX=$with_gnu_ld
20650 # Do we need to explicitly link libc?
20652 case "x$archive_cmds_need_lc_CXX" in
20653 x|xyes)
20654 # Assume -lc should be added
20655 archive_cmds_need_lc_CXX=yes
20657 if test "$enable_shared" = yes && test "$GCC" = yes; then
20658 case $archive_cmds_CXX in
20659 *'~'*)
20660 # FIXME: we may have to deal with multi-command sequences.
20662 '$CC '*)
20663 # Test whether the compiler implicitly links with -lc since on some
20664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20665 # to ld, don't add -lc before -lgcc.
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20667 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20668 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 $RM conftest*
20672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20675 (eval $ac_compile) 2>&5
20676 ac_status=$?
20677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20678 test $ac_status = 0; } 2>conftest.err; then
20679 soname=conftest
20680 lib=conftest
20681 libobjs=conftest.$ac_objext
20682 deplibs=
20683 wl=$lt_prog_compiler_wl_CXX
20684 pic_flag=$lt_prog_compiler_pic_CXX
20685 compiler_flags=-v
20686 linker_flags=-v
20687 verstring=
20688 output_objdir=.
20689 libname=conftest
20690 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20691 allow_undefined_flag_CXX=
20692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20693 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20694 ac_status=$?
20695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20696 test $ac_status = 0; }
20697 then
20698 lt_cv_archive_cmds_need_lc_CXX=no
20699 else
20700 lt_cv_archive_cmds_need_lc_CXX=yes
20702 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20703 else
20704 cat conftest.err 1>&5
20706 $RM conftest*
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20710 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20711 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20713 esac
20716 esac
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20784 library_names_spec=
20785 libname_spec='lib$name'
20786 soname_spec=
20787 shrext_cmds=".so"
20788 postinstall_cmds=
20789 postuninstall_cmds=
20790 finish_cmds=
20791 finish_eval=
20792 shlibpath_var=
20793 shlibpath_overrides_runpath=unknown
20794 version_type=none
20795 dynamic_linker="$host_os ld.so"
20796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20797 need_lib_prefix=unknown
20798 hardcode_into_libs=no
20800 # when you set need_version to no, make sure it does not cause -set_version
20801 # flags to be left without arguments
20802 need_version=unknown
20804 case $host_os in
20805 aix3*)
20806 version_type=linux
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20808 shlibpath_var=LIBPATH
20810 # AIX 3 has no versioning support, so we append a major version to the name.
20811 soname_spec='${libname}${release}${shared_ext}$major'
20814 aix[4-9]*)
20815 version_type=linux
20816 need_lib_prefix=no
20817 need_version=no
20818 hardcode_into_libs=yes
20819 if test "$host_cpu" = ia64; then
20820 # AIX 5 supports IA64
20821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 else
20824 # With GCC up to 2.95.x, collect2 would create an import file
20825 # for dependence libraries. The import file would start with
20826 # the line `#! .'. This would cause the generated library to
20827 # depend on `.', always an invalid library. This was fixed in
20828 # development snapshots of GCC prior to 3.0.
20829 case $host_os in
20830 aix4 | aix4.[01] | aix4.[01].*)
20831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20832 echo ' yes '
20833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20835 else
20836 can_build_shared=no
20839 esac
20840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20841 # soname into executable. Probably we can add versioning support to
20842 # collect2, so additional links can be useful in future.
20843 if test "$aix_use_runtimelinking" = yes; then
20844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20845 # instead of lib<name>.a to let people know that these are not
20846 # typical AIX shared libraries.
20847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848 else
20849 # We preserve .a as extension for shared libraries through AIX4.2
20850 # and later when we are not doing run time linking.
20851 library_names_spec='${libname}${release}.a $libname.a'
20852 soname_spec='${libname}${release}${shared_ext}$major'
20854 shlibpath_var=LIBPATH
20858 amigaos*)
20859 case $host_cpu in
20860 powerpc)
20861 # Since July 2007 AmigaOS4 officially supports .so libraries.
20862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20865 m68k)
20866 library_names_spec='$libname.ixlibrary $libname.a'
20867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20868 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'
20870 esac
20873 beos*)
20874 library_names_spec='${libname}${shared_ext}'
20875 dynamic_linker="$host_os ld.so"
20876 shlibpath_var=LIBRARY_PATH
20879 bsdi[45]*)
20880 version_type=linux
20881 need_version=no
20882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20883 soname_spec='${libname}${release}${shared_ext}$major'
20884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20888 # the default ld.so.conf also contains /usr/contrib/lib and
20889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20890 # libtool to hard-code these into programs
20893 cygwin* | mingw* | pw32* | cegcc*)
20894 version_type=windows
20895 shrext_cmds=".dll"
20896 need_version=no
20897 need_lib_prefix=no
20899 case $GCC,$host_os in
20900 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20901 library_names_spec='$libname.dll.a'
20902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20903 postinstall_cmds='base_file=`basename \${file}`~
20904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20905 dldir=$destdir/`dirname \$dlpath`~
20906 test -d \$dldir || mkdir -p \$dldir~
20907 $install_prog $dir/$dlname \$dldir/$dlname~
20908 chmod a+x \$dldir/$dlname~
20909 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20910 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20913 dlpath=$dir/\$dldll~
20914 $RM \$dlpath'
20915 shlibpath_overrides_runpath=yes
20917 case $host_os in
20918 cygwin*)
20919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20923 mingw* | cegcc*)
20924 # MinGW DLLs use traditional 'lib' prefix
20925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20927 pw32*)
20928 # pw32 DLLs use 'pw' prefix rather than 'lib'
20929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20931 esac
20935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20937 esac
20938 dynamic_linker='Win32 ld.exe'
20939 # FIXME: first we should search . and the directory the executable is in
20940 shlibpath_var=PATH
20943 darwin* | rhapsody*)
20944 dynamic_linker="$host_os dyld"
20945 version_type=darwin
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20949 soname_spec='${libname}${release}${major}$shared_ext'
20950 shlibpath_overrides_runpath=yes
20951 shlibpath_var=DYLD_LIBRARY_PATH
20952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20957 dgux*)
20958 version_type=linux
20959 need_lib_prefix=no
20960 need_version=no
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20966 freebsd* | dragonfly*)
20967 # DragonFly does not have aout. When/if they implement a new
20968 # versioning mechanism, adjust this.
20969 if test -x /usr/bin/objformat; then
20970 objformat=`/usr/bin/objformat`
20971 else
20972 case $host_os in
20973 freebsd[23].*) objformat=aout ;;
20974 *) objformat=elf ;;
20975 esac
20977 version_type=freebsd-$objformat
20978 case $version_type in
20979 freebsd-elf*)
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20981 need_version=no
20982 need_lib_prefix=no
20984 freebsd-*)
20985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20986 need_version=yes
20988 esac
20989 shlibpath_var=LD_LIBRARY_PATH
20990 case $host_os in
20991 freebsd2.*)
20992 shlibpath_overrides_runpath=yes
20994 freebsd3.[01]* | freebsdelf3.[01]*)
20995 shlibpath_overrides_runpath=yes
20996 hardcode_into_libs=yes
20998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21000 shlibpath_overrides_runpath=no
21001 hardcode_into_libs=yes
21003 *) # from 4.6 on, and DragonFly
21004 shlibpath_overrides_runpath=yes
21005 hardcode_into_libs=yes
21007 esac
21010 gnu*)
21011 version_type=linux
21012 need_lib_prefix=no
21013 need_version=no
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21015 soname_spec='${libname}${release}${shared_ext}$major'
21016 shlibpath_var=LD_LIBRARY_PATH
21017 hardcode_into_libs=yes
21020 haiku*)
21021 version_type=linux
21022 need_lib_prefix=no
21023 need_version=no
21024 dynamic_linker="$host_os runtime_loader"
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21030 hardcode_into_libs=yes
21033 hpux9* | hpux10* | hpux11*)
21034 # Give a soname corresponding to the major version so that dld.sl refuses to
21035 # link against other versions.
21036 version_type=sunos
21037 need_lib_prefix=no
21038 need_version=no
21039 case $host_cpu in
21040 ia64*)
21041 shrext_cmds='.so'
21042 hardcode_into_libs=yes
21043 dynamic_linker="$host_os dld.so"
21044 shlibpath_var=LD_LIBRARY_PATH
21045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 if test "X$HPUX_IA64_MODE" = X32; then
21049 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21050 else
21051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21055 hppa*64*)
21056 shrext_cmds='.sl'
21057 hardcode_into_libs=yes
21058 dynamic_linker="$host_os dld.sl"
21059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 soname_spec='${libname}${release}${shared_ext}$major'
21063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21067 shrext_cmds='.sl'
21068 dynamic_linker="$host_os dld.sl"
21069 shlibpath_var=SHLIB_PATH
21070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21074 esac
21075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21076 postinstall_cmds='chmod 555 $lib'
21077 # or fails outright, so override atomically:
21078 install_override_mode=555
21081 interix[3-9]*)
21082 version_type=linux
21083 need_lib_prefix=no
21084 need_version=no
21085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21086 soname_spec='${libname}${release}${shared_ext}$major'
21087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21088 shlibpath_var=LD_LIBRARY_PATH
21089 shlibpath_overrides_runpath=no
21090 hardcode_into_libs=yes
21093 irix5* | irix6* | nonstopux*)
21094 case $host_os in
21095 nonstopux*) version_type=nonstopux ;;
21097 if test "$lt_cv_prog_gnu_ld" = yes; then
21098 version_type=linux
21099 else
21100 version_type=irix
21101 fi ;;
21102 esac
21103 need_lib_prefix=no
21104 need_version=no
21105 soname_spec='${libname}${release}${shared_ext}$major'
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21107 case $host_os in
21108 irix5* | nonstopux*)
21109 libsuff= shlibsuff=
21112 case $LD in # libtool.m4 will add one of these switches to LD
21113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21114 libsuff= shlibsuff= libmagic=32-bit;;
21115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21116 libsuff=32 shlibsuff=N32 libmagic=N32;;
21117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21119 *) libsuff= shlibsuff= libmagic=never-match;;
21120 esac
21122 esac
21123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21124 shlibpath_overrides_runpath=no
21125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21127 hardcode_into_libs=yes
21130 # No shared lib support for Linux oldld, aout, or coff.
21131 linux*oldld* | linux*aout* | linux*coff*)
21132 dynamic_linker=no
21135 # This must be Linux ELF.
21136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21137 version_type=linux
21138 need_lib_prefix=no
21139 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21143 shlibpath_var=LD_LIBRARY_PATH
21144 shlibpath_overrides_runpath=no
21146 # Some binutils ld are patched to set DT_RUNPATH
21147 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21148 $as_echo_n "(cached) " >&6
21149 else
21150 lt_cv_shlibpath_overrides_runpath=no
21151 save_LDFLAGS=$LDFLAGS
21152 save_libdir=$libdir
21153 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21154 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21156 /* end confdefs.h. */
21159 main ()
21163 return 0;
21165 _ACEOF
21166 if ac_fn_cxx_try_link "$LINENO"; then :
21167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21168 lt_cv_shlibpath_overrides_runpath=yes
21171 rm -f core conftest.err conftest.$ac_objext \
21172 conftest$ac_exeext conftest.$ac_ext
21173 LDFLAGS=$save_LDFLAGS
21174 libdir=$save_libdir
21178 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21180 # This implies no fast_install, which is unacceptable.
21181 # Some rework will be needed to allow for fast_install
21182 # before this can be enabled.
21183 hardcode_into_libs=yes
21185 # Append ld.so.conf contents to the search path
21186 if test -f /etc/ld.so.conf; then
21187 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' ' '`
21188 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21191 # We used to test for /lib/ld.so.1 and disable shared libraries on
21192 # powerpc, because MkLinux only supported shared libraries with the
21193 # GNU dynamic linker. Since this was broken with cross compilers,
21194 # most powerpc-linux boxes support dynamic linking these days and
21195 # people can always --disable-shared, the test was removed, and we
21196 # assume the GNU/Linux dynamic linker is in use.
21197 dynamic_linker='GNU/Linux ld.so'
21200 netbsd*)
21201 version_type=sunos
21202 need_lib_prefix=no
21203 need_version=no
21204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21207 dynamic_linker='NetBSD (a.out) ld.so'
21208 else
21209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21210 soname_spec='${libname}${release}${shared_ext}$major'
21211 dynamic_linker='NetBSD ld.elf_so'
21213 shlibpath_var=LD_LIBRARY_PATH
21214 shlibpath_overrides_runpath=yes
21215 hardcode_into_libs=yes
21218 newsos6)
21219 version_type=linux
21220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 shlibpath_overrides_runpath=yes
21225 *nto* | *qnx*)
21226 version_type=qnx
21227 need_lib_prefix=no
21228 need_version=no
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 shlibpath_var=LD_LIBRARY_PATH
21232 shlibpath_overrides_runpath=no
21233 hardcode_into_libs=yes
21234 dynamic_linker='ldqnx.so'
21237 openbsd*)
21238 version_type=sunos
21239 sys_lib_dlsearch_path_spec="/usr/lib"
21240 need_lib_prefix=no
21241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21242 case $host_os in
21243 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21244 *) need_version=no ;;
21245 esac
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21248 shlibpath_var=LD_LIBRARY_PATH
21249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21250 case $host_os in
21251 openbsd2.[89] | openbsd2.[89].*)
21252 shlibpath_overrides_runpath=no
21255 shlibpath_overrides_runpath=yes
21257 esac
21258 else
21259 shlibpath_overrides_runpath=yes
21263 os2*)
21264 libname_spec='$name'
21265 shrext_cmds=".dll"
21266 need_lib_prefix=no
21267 library_names_spec='$libname${shared_ext} $libname.a'
21268 dynamic_linker='OS/2 ld.exe'
21269 shlibpath_var=LIBPATH
21272 osf3* | osf4* | osf5*)
21273 version_type=osf
21274 need_lib_prefix=no
21275 need_version=no
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21278 shlibpath_var=LD_LIBRARY_PATH
21279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21283 rdos*)
21284 dynamic_linker=no
21287 solaris*)
21288 version_type=linux
21289 need_lib_prefix=no
21290 need_version=no
21291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21292 soname_spec='${libname}${release}${shared_ext}$major'
21293 shlibpath_var=LD_LIBRARY_PATH
21294 shlibpath_overrides_runpath=yes
21295 hardcode_into_libs=yes
21296 # ldd complains unless libraries are executable
21297 postinstall_cmds='chmod +x $lib'
21300 sunos4*)
21301 version_type=sunos
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21303 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21304 shlibpath_var=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath=yes
21306 if test "$with_gnu_ld" = yes; then
21307 need_lib_prefix=no
21309 need_version=yes
21312 sysv4 | sysv4.3*)
21313 version_type=linux
21314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21315 soname_spec='${libname}${release}${shared_ext}$major'
21316 shlibpath_var=LD_LIBRARY_PATH
21317 case $host_vendor in
21318 sni)
21319 shlibpath_overrides_runpath=no
21320 need_lib_prefix=no
21321 runpath_var=LD_RUN_PATH
21323 siemens)
21324 need_lib_prefix=no
21326 motorola)
21327 need_lib_prefix=no
21328 need_version=no
21329 shlibpath_overrides_runpath=no
21330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21332 esac
21335 sysv4*MP*)
21336 if test -d /usr/nec ;then
21337 version_type=linux
21338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21339 soname_spec='$libname${shared_ext}.$major'
21340 shlibpath_var=LD_LIBRARY_PATH
21344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21345 version_type=freebsd-elf
21346 need_lib_prefix=no
21347 need_version=no
21348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21349 soname_spec='${libname}${release}${shared_ext}$major'
21350 shlibpath_var=LD_LIBRARY_PATH
21351 shlibpath_overrides_runpath=yes
21352 hardcode_into_libs=yes
21353 if test "$with_gnu_ld" = yes; then
21354 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21355 else
21356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21357 case $host_os in
21358 sco3.2v5*)
21359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21361 esac
21363 sys_lib_dlsearch_path_spec='/usr/lib'
21366 tpf*)
21367 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21368 version_type=linux
21369 need_lib_prefix=no
21370 need_version=no
21371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21372 shlibpath_var=LD_LIBRARY_PATH
21373 shlibpath_overrides_runpath=no
21374 hardcode_into_libs=yes
21377 uts4*)
21378 version_type=linux
21379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21380 soname_spec='${libname}${release}${shared_ext}$major'
21381 shlibpath_var=LD_LIBRARY_PATH
21385 dynamic_linker=no
21387 esac
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21389 $as_echo "$dynamic_linker" >&6; }
21390 test "$dynamic_linker" = no && can_build_shared=no
21392 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21393 if test "$GCC" = yes; then
21394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21397 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21398 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21400 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21401 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21442 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21443 hardcode_action_CXX=
21444 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21445 test -n "$runpath_var_CXX" ||
21446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21448 # We can hardcode non-existent directories.
21449 if test "$hardcode_direct_CXX" != no &&
21450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21451 # have to relink, otherwise we might link with an installed library
21452 # when we should be linking with a yet-to-be-installed one
21453 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21454 test "$hardcode_minus_L_CXX" != no; then
21455 # Linking always hardcodes the temporary library directory.
21456 hardcode_action_CXX=relink
21457 else
21458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21459 hardcode_action_CXX=immediate
21461 else
21462 # We cannot hardcode anything, or else we can only hardcode existing
21463 # directories.
21464 hardcode_action_CXX=unsupported
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21467 $as_echo "$hardcode_action_CXX" >&6; }
21469 if test "$hardcode_action_CXX" = relink ||
21470 test "$inherit_rpath_CXX" = yes; then
21471 # Fast installation is not supported
21472 enable_fast_install=no
21473 elif test "$shlibpath_overrides_runpath" = yes ||
21474 test "$enable_shared" = no; then
21475 # Fast installation is not necessary
21476 enable_fast_install=needless
21485 fi # test -n "$compiler"
21487 CC=$lt_save_CC
21488 LDCXX=$LD
21489 LD=$lt_save_LD
21490 GCC=$lt_save_GCC
21491 with_gnu_ld=$lt_save_with_gnu_ld
21492 lt_cv_path_LDCXX=$lt_cv_path_LD
21493 lt_cv_path_LD=$lt_save_path_LD
21494 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21495 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21496 fi # test "$_lt_caught_CXX_error" != yes
21498 ac_ext=c
21499 ac_cpp='$CPP $CPPFLAGS'
21500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21519 # Only expand once:
21525 # Identify the assembler which will work hand-in-glove with the newly
21526 # built GCC, so that we can examine its features. This is the assembler
21527 # which will be driven by the driver program.
21529 # If build != host, and we aren't building gas in-tree, we identify a
21530 # build->target assembler and hope that it will have the same features
21531 # as the host->target assembler we'll be using.
21532 gcc_cv_gas_major_version=
21533 gcc_cv_gas_minor_version=
21534 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21536 if test "${gcc_cv_as+set}" = set; then :
21538 else
21540 if test -x "$DEFAULT_ASSEMBLER"; then
21541 gcc_cv_as="$DEFAULT_ASSEMBLER"
21542 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21543 && test -f ../gas/Makefile \
21544 && test x$build = x$host; then
21545 gcc_cv_as=../gas/as-new$build_exeext
21546 elif test -x as$build_exeext; then
21547 # Build using assembler in the current directory.
21548 gcc_cv_as=./as$build_exeext
21549 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21550 gcc_cv_as="$AS_FOR_TARGET"
21551 else
21552 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21553 set dummy $AS_FOR_TARGET; ac_word=$2
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21555 $as_echo_n "checking for $ac_word... " >&6; }
21556 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21557 $as_echo_n "(cached) " >&6
21558 else
21559 case $gcc_cv_as in
21560 [\\/]* | ?:[\\/]*)
21561 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21565 for as_dir in $PATH
21567 IFS=$as_save_IFS
21568 test -z "$as_dir" && as_dir=.
21569 for ac_exec_ext in '' $ac_executable_extensions; do
21570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21571 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21573 break 2
21575 done
21576 done
21577 IFS=$as_save_IFS
21580 esac
21582 gcc_cv_as=$ac_cv_path_gcc_cv_as
21583 if test -n "$gcc_cv_as"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21585 $as_echo "$gcc_cv_as" >&6; }
21586 else
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21588 $as_echo "no" >&6; }
21595 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21597 case "$ORIGINAL_AS_FOR_TARGET" in
21598 ./as | ./as$build_exeext) ;;
21599 *) ac_config_files="$ac_config_files as:exec-tool.in"
21601 esac
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21604 $as_echo_n "checking what assembler to use... " >&6; }
21605 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21606 # Single tree build which includes gas. We want to prefer it
21607 # over whatever linker top-level may have detected, since
21608 # we'll use what we're building after installation anyway.
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21610 $as_echo "newly built gas" >&6; }
21611 in_tree_gas=yes
21612 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21613 for f in $gcc_cv_as_bfd_srcdir/configure \
21614 $gcc_cv_as_gas_srcdir/configure \
21615 $gcc_cv_as_gas_srcdir/configure.in \
21616 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21617 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21618 if test x$gcc_cv_gas_version != x; then
21619 break
21621 done
21622 case $gcc_cv_gas_version in
21623 VERSION=[0-9]*) ;;
21624 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21625 esac
21626 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21627 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21628 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21629 case $gcc_cv_gas_patch_version in
21630 "") gcc_cv_gas_patch_version="0" ;;
21631 esac
21632 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21633 + $gcc_cv_gas_minor_version \) \* 1000 \
21634 + $gcc_cv_gas_patch_version`
21636 in_tree_gas_is_elf=no
21637 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21638 || (grep 'obj_format = multi' ../gas/Makefile \
21639 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21640 then
21641 in_tree_gas_is_elf=yes
21643 else
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21645 $as_echo "$gcc_cv_as" >&6; }
21646 in_tree_gas=no
21649 default_ld=
21650 # Check whether --enable-ld was given.
21651 if test "${enable_ld+set}" = set; then :
21652 enableval=$enable_ld; case "${enableval}" in
21654 default_ld=ld.gold
21656 esac
21660 install_gold_as_default=no
21661 # Check whether --enable-gold was given.
21662 if test "${enable_gold+set}" = set; then :
21663 enableval=$enable_gold; case "${enableval}" in
21664 default)
21665 install_gold_as_default=yes
21667 yes)
21668 if test x${default_ld} != x; then
21669 install_gold_as_default=yes
21675 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21677 esac
21681 # Identify the linker which will work hand-in-glove with the newly
21682 # built GCC, so that we can examine its features. This is the linker
21683 # which will be driven by the driver program.
21685 # If build != host, and we aren't building gas in-tree, we identify a
21686 # build->target linker and hope that it will have the same features
21687 # as the host->target linker we'll be using.
21688 gcc_cv_gld_major_version=
21689 gcc_cv_gld_minor_version=
21690 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21691 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21692 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21694 if test "${gcc_cv_ld+set}" = set; then :
21696 else
21698 if test -x "$DEFAULT_LINKER"; then
21699 gcc_cv_ld="$DEFAULT_LINKER"
21700 elif test $install_gold_as_default = yes \
21701 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21702 && test -f ../gold/Makefile \
21703 && test x$build = x$host; then
21704 gcc_cv_ld=../gold/ld-new$build_exeext
21705 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21706 && test -f ../ld/Makefile \
21707 && test x$build = x$host; then
21708 gcc_cv_ld=../ld/ld-new$build_exeext
21709 elif test -x collect-ld$build_exeext; then
21710 # Build using linker in the current directory.
21711 gcc_cv_ld=./collect-ld$build_exeext
21712 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21713 gcc_cv_ld="$LD_FOR_TARGET"
21714 else
21715 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21716 set dummy $LD_FOR_TARGET; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 case $gcc_cv_ld in
21723 [\\/]* | ?:[\\/]*)
21724 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21730 IFS=$as_save_IFS
21731 test -z "$as_dir" && as_dir=.
21732 for ac_exec_ext in '' $ac_executable_extensions; do
21733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21734 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 break 2
21738 done
21739 done
21740 IFS=$as_save_IFS
21743 esac
21745 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21746 if test -n "$gcc_cv_ld"; then
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21748 $as_echo "$gcc_cv_ld" >&6; }
21749 else
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21751 $as_echo "no" >&6; }
21758 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21759 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21760 # if the PLUGIN_LD is set ld-new, just have it as ld
21761 # as that is the installed named.
21762 if test x$PLUGIN_LD_SUFFIX = xld-new \
21763 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21764 PLUGIN_LD_SUFFIX=ld
21767 # Check whether --with-plugin-ld was given.
21768 if test "${with_plugin_ld+set}" = set; then :
21769 withval=$with_plugin_ld; if test x"$withval" != x; then
21770 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21771 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21777 cat >>confdefs.h <<_ACEOF
21778 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21779 _ACEOF
21782 # Check to see if we are using gold instead of ld
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21784 $as_echo_n "checking whether we are using gold... " >&6; }
21785 ld_is_gold=no
21786 if test x$gcc_cv_ld != x; then
21787 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21788 | grep "GNU gold" > /dev/null; then
21789 ld_is_gold=yes
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21793 $as_echo "$ld_is_gold" >&6; }
21795 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21797 case "$ORIGINAL_LD_FOR_TARGET" in
21798 ./collect-ld | ./collect-ld$build_exeext) ;;
21799 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21801 esac
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21804 $as_echo_n "checking what linker to use... " >&6; }
21805 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21806 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21807 # Single tree build which includes ld. We want to prefer it
21808 # over whatever linker top-level may have detected, since
21809 # we'll use what we're building after installation anyway.
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21811 $as_echo "newly built ld" >&6; }
21812 in_tree_ld=yes
21813 in_tree_ld_is_elf=no
21814 if (grep 'EMUL = .*elf' ../ld/Makefile \
21815 || grep 'EMUL = .*linux' ../ld/Makefile \
21816 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21817 in_tree_ld_is_elf=yes
21818 elif test "$ld_is_gold" = yes; then
21819 in_tree_ld_is_elf=yes
21821 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
21823 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21824 if test x$gcc_cv_gld_version != x; then
21825 break
21827 done
21828 case $gcc_cv_gld_version in
21829 VERSION=[0-9]*) ;;
21830 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21831 esac
21832 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21833 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21834 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21835 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21836 else
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21838 $as_echo "$gcc_cv_ld" >&6; }
21839 in_tree_ld=no
21840 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21841 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21842 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21848 # Figure out what nm we will be using.
21849 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21850 if test "${gcc_cv_nm+set}" = set; then :
21852 else
21854 if test -f $gcc_cv_binutils_srcdir/configure.in \
21855 && test -f ../binutils/Makefile \
21856 && test x$build = x$host; then
21857 gcc_cv_nm=../binutils/nm-new$build_exeext
21858 elif test -x nm$build_exeext; then
21859 gcc_cv_nm=./nm$build_exeext
21860 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21861 gcc_cv_nm="$NM_FOR_TARGET"
21862 else
21863 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21864 set dummy $NM_FOR_TARGET; ac_word=$2
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21866 $as_echo_n "checking for $ac_word... " >&6; }
21867 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21868 $as_echo_n "(cached) " >&6
21869 else
21870 case $gcc_cv_nm in
21871 [\\/]* | ?:[\\/]*)
21872 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21876 for as_dir in $PATH
21878 IFS=$as_save_IFS
21879 test -z "$as_dir" && as_dir=.
21880 for ac_exec_ext in '' $ac_executable_extensions; do
21881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21882 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21884 break 2
21886 done
21887 done
21888 IFS=$as_save_IFS
21891 esac
21893 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21894 if test -n "$gcc_cv_nm"; then
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21896 $as_echo "$gcc_cv_nm" >&6; }
21897 else
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21899 $as_echo "no" >&6; }
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21907 $as_echo_n "checking what nm to use... " >&6; }
21908 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21909 # Single tree build which includes binutils.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21911 $as_echo "newly built nm" >&6; }
21912 in_tree_nm=yes
21913 else
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21915 $as_echo "$gcc_cv_nm" >&6; }
21916 in_tree_nm=no
21919 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21921 case "$ORIGINAL_NM_FOR_TARGET" in
21922 ./nm | ./nm$build_exeext) ;;
21923 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21925 esac
21928 # Figure out what objdump we will be using.
21929 if test "${gcc_cv_objdump+set}" = set; then :
21931 else
21933 if test -f $gcc_cv_binutils_srcdir/configure.in \
21934 && test -f ../binutils/Makefile \
21935 && test x$build = x$host; then
21936 # Single tree build which includes binutils.
21937 gcc_cv_objdump=../binutils/objdump$build_exeext
21938 elif test -x objdump$build_exeext; then
21939 gcc_cv_objdump=./objdump$build_exeext
21940 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21941 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21942 else
21943 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21944 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21946 $as_echo_n "checking for $ac_word... " >&6; }
21947 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21948 $as_echo_n "(cached) " >&6
21949 else
21950 case $gcc_cv_objdump in
21951 [\\/]* | ?:[\\/]*)
21952 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21956 for as_dir in $PATH
21958 IFS=$as_save_IFS
21959 test -z "$as_dir" && as_dir=.
21960 for ac_exec_ext in '' $ac_executable_extensions; do
21961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21962 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21964 break 2
21966 done
21967 done
21968 IFS=$as_save_IFS
21971 esac
21973 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21974 if test -n "$gcc_cv_objdump"; then
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21976 $as_echo "$gcc_cv_objdump" >&6; }
21977 else
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21979 $as_echo "no" >&6; }
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21987 $as_echo_n "checking what objdump to use... " >&6; }
21988 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21989 # Single tree build which includes binutils.
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21991 $as_echo "newly built objdump" >&6; }
21992 elif test x$gcc_cv_objdump = x; then
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21994 $as_echo "not found" >&6; }
21995 else
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21997 $as_echo "$gcc_cv_objdump" >&6; }
22000 # Figure out what readelf we will be using.
22001 if test "${gcc_cv_readelf+set}" = set; then :
22003 else
22005 if test -f $gcc_cv_binutils_srcdir/configure.in \
22006 && test -f ../binutils/Makefile \
22007 && test x$build = x$host; then
22008 # Single tree build which includes binutils.
22009 gcc_cv_readelf=../binutils/readelf$build_exeext
22010 elif test -x readelf$build_exeext; then
22011 gcc_cv_readelf=./readelf$build_exeext
22012 else
22013 # Extract the first word of "readelf", so it can be a program name with args.
22014 set dummy readelf; ac_word=$2
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22016 $as_echo_n "checking for $ac_word... " >&6; }
22017 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22018 $as_echo_n "(cached) " >&6
22019 else
22020 case $gcc_cv_readelf in
22021 [\\/]* | ?:[\\/]*)
22022 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22026 for as_dir in $PATH
22028 IFS=$as_save_IFS
22029 test -z "$as_dir" && as_dir=.
22030 for ac_exec_ext in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22034 break 2
22036 done
22037 done
22038 IFS=$as_save_IFS
22041 esac
22043 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22044 if test -n "$gcc_cv_readelf"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22046 $as_echo "$gcc_cv_readelf" >&6; }
22047 else
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22057 $as_echo_n "checking what readelf to use... " >&6; }
22058 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22059 # Single tree build which includes binutils.
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22061 $as_echo "newly built readelf" >&6; }
22062 elif test x$gcc_cv_readelf = x; then
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22064 $as_echo "not found" >&6; }
22065 else
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22067 $as_echo "$gcc_cv_readelf" >&6; }
22070 # Figure out what assembler alignment features are present.
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22072 $as_echo_n "checking assembler flags... " >&6; }
22073 if test "${gcc_cv_as_flags+set}" = set; then :
22074 $as_echo_n "(cached) " >&6
22075 else
22076 case "$target" in
22077 i[34567]86-*-linux*)
22078 gcc_cv_as_flags=--32
22080 x86_64-*-linux-gnux32)
22081 gcc_cv_as_flags=--x32
22083 x86_64-*-linux*)
22084 gcc_cv_as_flags=--64
22086 powerpc*-*-darwin*)
22087 gcc_cv_as_flags="-arch ppc"
22090 gcc_cv_as_flags=" "
22092 esac
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22095 $as_echo "$gcc_cv_as_flags" >&6; }
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22098 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22099 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22100 $as_echo_n "(cached) " >&6
22101 else
22102 gcc_cv_as_balign_and_p2align=no
22103 if test $in_tree_gas = yes; then
22104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22105 then gcc_cv_as_balign_and_p2align=yes
22107 elif test x$gcc_cv_as != x; then
22108 $as_echo '.balign 4
22109 .p2align 2' > conftest.s
22110 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115 test $ac_status = 0; }; }
22116 then
22117 gcc_cv_as_balign_and_p2align=yes
22118 else
22119 echo "configure: failed program was" >&5
22120 cat conftest.s >&5
22122 rm -f conftest.o conftest.s
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22126 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22127 if test $gcc_cv_as_balign_and_p2align = yes; then
22129 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22134 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22135 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22136 $as_echo_n "(cached) " >&6
22137 else
22138 gcc_cv_as_max_skip_p2align=no
22139 if test $in_tree_gas = yes; then
22140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22141 then gcc_cv_as_max_skip_p2align=yes
22143 elif test x$gcc_cv_as != x; then
22144 $as_echo '.p2align 4,,7' > conftest.s
22145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147 (eval $ac_try) 2>&5
22148 ac_status=$?
22149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150 test $ac_status = 0; }; }
22151 then
22152 gcc_cv_as_max_skip_p2align=yes
22153 else
22154 echo "configure: failed program was" >&5
22155 cat conftest.s >&5
22157 rm -f conftest.o conftest.s
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22161 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22162 if test $gcc_cv_as_max_skip_p2align = yes; then
22164 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22169 $as_echo_n "checking assembler for .literal16... " >&6; }
22170 if test "${gcc_cv_as_literal16+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 gcc_cv_as_literal16=no
22174 if test $in_tree_gas = yes; then
22175 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22176 then gcc_cv_as_literal16=yes
22178 elif test x$gcc_cv_as != x; then
22179 $as_echo '.literal16' > conftest.s
22180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22182 (eval $ac_try) 2>&5
22183 ac_status=$?
22184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22185 test $ac_status = 0; }; }
22186 then
22187 gcc_cv_as_literal16=yes
22188 else
22189 echo "configure: failed program was" >&5
22190 cat conftest.s >&5
22192 rm -f conftest.o conftest.s
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22196 $as_echo "$gcc_cv_as_literal16" >&6; }
22197 if test $gcc_cv_as_literal16 = yes; then
22199 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22204 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22205 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22206 $as_echo_n "(cached) " >&6
22207 else
22208 gcc_cv_as_subsection_m1=no
22209 if test $in_tree_gas = yes; then
22210 if test $in_tree_gas_is_elf = yes \
22211 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22212 then gcc_cv_as_subsection_m1=yes
22214 elif test x$gcc_cv_as != x; then
22215 $as_echo 'conftest_label1: .word 0
22216 .subsection -1
22217 conftest_label2: .word 0
22218 .previous' > conftest.s
22219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22224 test $ac_status = 0; }; }
22225 then
22226 if test x$gcc_cv_nm != x; then
22227 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22228 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22229 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22230 then :
22231 else gcc_cv_as_subsection_m1=yes
22233 rm -f conftest.nm1 conftest.nm2
22235 else
22236 echo "configure: failed program was" >&5
22237 cat conftest.s >&5
22239 rm -f conftest.o conftest.s
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22243 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22244 if test $gcc_cv_as_subsection_m1 = yes; then
22246 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22251 $as_echo_n "checking assembler for .weak... " >&6; }
22252 if test "${gcc_cv_as_weak+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 gcc_cv_as_weak=no
22256 if test $in_tree_gas = yes; then
22257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22258 then gcc_cv_as_weak=yes
22260 elif test x$gcc_cv_as != x; then
22261 $as_echo ' .weak foobar' > conftest.s
22262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22267 test $ac_status = 0; }; }
22268 then
22269 gcc_cv_as_weak=yes
22270 else
22271 echo "configure: failed program was" >&5
22272 cat conftest.s >&5
22274 rm -f conftest.o conftest.s
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22278 $as_echo "$gcc_cv_as_weak" >&6; }
22279 if test $gcc_cv_as_weak = yes; then
22281 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22286 $as_echo_n "checking assembler for .weakref... " >&6; }
22287 if test "${gcc_cv_as_weakref+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22289 else
22290 gcc_cv_as_weakref=no
22291 if test $in_tree_gas = yes; then
22292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22293 then gcc_cv_as_weakref=yes
22295 elif test x$gcc_cv_as != x; then
22296 $as_echo ' .weakref foobar, barfnot' > conftest.s
22297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22302 test $ac_status = 0; }; }
22303 then
22304 gcc_cv_as_weakref=yes
22305 else
22306 echo "configure: failed program was" >&5
22307 cat conftest.s >&5
22309 rm -f conftest.o conftest.s
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22313 $as_echo "$gcc_cv_as_weakref" >&6; }
22314 if test $gcc_cv_as_weakref = yes; then
22316 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22321 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22322 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 gcc_cv_as_nsubspa_comdat=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22328 then gcc_cv_as_nsubspa_comdat=yes
22330 elif test x$gcc_cv_as != x; then
22331 $as_echo ' .SPACE $TEXT$
22332 .NSUBSPA $CODE$,COMDAT' > conftest.s
22333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22338 test $ac_status = 0; }; }
22339 then
22340 gcc_cv_as_nsubspa_comdat=yes
22341 else
22342 echo "configure: failed program was" >&5
22343 cat conftest.s >&5
22345 rm -f conftest.o conftest.s
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22349 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22350 if test $gcc_cv_as_nsubspa_comdat = yes; then
22352 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22356 # .hidden needs to be supported in both the assembler and the linker,
22357 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22358 # This is irritatingly difficult to feature test for; we have to check the
22359 # date string after the version number. If we've got an in-tree
22360 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22361 # to be safe.
22362 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22364 $as_echo_n "checking assembler for .hidden... " >&6; }
22365 if test "${gcc_cv_as_hidden+set}" = set; then :
22366 $as_echo_n "(cached) " >&6
22367 else
22368 gcc_cv_as_hidden=no
22369 if test $in_tree_gas = yes; then
22370 if test $in_tree_gas_is_elf = yes \
22371 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22372 then gcc_cv_as_hidden=yes
22374 elif test x$gcc_cv_as != x; then
22375 $as_echo ' .hidden foobar
22376 foobar:' > conftest.s
22377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22382 test $ac_status = 0; }; }
22383 then
22384 gcc_cv_as_hidden=yes
22385 else
22386 echo "configure: failed program was" >&5
22387 cat conftest.s >&5
22389 rm -f conftest.o conftest.s
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22393 $as_echo "$gcc_cv_as_hidden" >&6; }
22395 case "${target}" in
22396 *-*-darwin*)
22397 # Darwin as has some visibility support, though with a different syntax.
22398 gcc_cv_as_hidden=yes
22400 esac
22402 # gnu_indirect_function type is an extension proposed at
22403 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22404 # selection of function implementation
22405 # Check whether --enable-gnu-indirect-function was given.
22406 if test "${enable_gnu_indirect_function+set}" = set; then :
22407 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22408 yes | no) ;;
22409 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22410 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22411 esac
22412 else
22413 enable_gnu_indirect_function="$default_gnu_indirect_function"
22417 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22421 _ACEOF
22425 if test $in_tree_ld != yes ; then
22426 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22427 if echo "$ld_ver" | grep GNU > /dev/null; then
22428 if test x"$ld_is_gold" = xyes; then
22429 # GNU gold --version looks like this:
22431 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22433 # We extract the binutils version which is more familiar and specific
22434 # than the gold version.
22435 ld_vers=`echo $ld_ver | sed -n \
22436 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22437 else
22438 # GNU ld --version looks like this:
22440 # GNU ld (GNU Binutils) 2.21.51.20110225
22441 ld_vers=`echo $ld_ver | sed -n \
22442 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22444 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'`
22445 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22446 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22447 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22448 else
22449 case "${target}" in
22450 *-*-solaris2*)
22451 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22452 # format.
22454 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22455 # /usr/ccs/bin/ld has been configured.
22456 ld_ver=`$gcc_cv_ld -V 2>&1`
22457 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22458 ld_vers=`echo $ld_ver | sed -n \
22459 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22460 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22461 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22464 esac
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22469 $as_echo_n "checking linker for .hidden support... " >&6; }
22470 if test "${gcc_cv_ld_hidden+set}" = set; then :
22471 $as_echo_n "(cached) " >&6
22472 else
22473 if test $in_tree_ld = yes ; then
22474 gcc_cv_ld_hidden=no
22475 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 \
22476 && test $in_tree_ld_is_elf = yes; then
22477 gcc_cv_ld_hidden=yes
22479 else
22480 gcc_cv_ld_hidden=yes
22481 if test x"$ld_is_gold" = xyes; then
22483 elif echo "$ld_ver" | grep GNU > /dev/null; then
22484 case "${target}" in
22485 mmix-knuth-mmixware)
22486 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22487 gcc_cv_ld_hidden=no
22489 esac
22490 if test 0"$ld_date" -lt 20020404; then
22491 if test -n "$ld_date"; then
22492 # If there was date string, but was earlier than 2002-04-04, fail
22493 gcc_cv_ld_hidden=no
22494 elif test -z "$ld_vers"; then
22495 # If there was no date string nor ld version number, something is wrong
22496 gcc_cv_ld_hidden=no
22497 else
22498 test -z "$ld_vers_patch" && ld_vers_patch=0
22499 if test "$ld_vers_major" -lt 2; then
22500 gcc_cv_ld_hidden=no
22501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22502 gcc_cv_ld_hidden="no"
22503 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22504 gcc_cv_ld_hidden=no
22508 else
22509 case "${target}" in
22510 *-*-darwin*)
22511 # Darwin ld has some visibility support.
22512 gcc_cv_ld_hidden=yes
22514 hppa64*-*-hpux* | ia64*-*-hpux*)
22515 gcc_cv_ld_hidden=yes
22517 *-*-solaris2.1[0-9]*)
22518 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22519 # .symbolic was only added in Solaris 9 12/02.
22520 gcc_cv_ld_hidden=yes
22523 gcc_cv_ld_hidden=no
22525 esac
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22530 $as_echo "$gcc_cv_ld_hidden" >&6; }
22531 libgcc_visibility=no
22534 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22535 libgcc_visibility=yes
22537 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22542 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22543 gcc_cv_ld_ro_rw_mix=unknown
22544 if test $in_tree_ld = yes ; then
22545 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 \
22546 && test $in_tree_ld_is_elf = yes; then
22547 gcc_cv_ld_ro_rw_mix=read-write
22549 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22550 echo '.section myfoosect, "a"' > conftest1.s
22551 echo '.section myfoosect, "aw"' > conftest2.s
22552 echo '.byte 1' >> conftest2.s
22553 echo '.section myfoosect, "a"' > conftest3.s
22554 echo '.byte 0' >> conftest3.s
22555 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22556 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22557 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22558 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22559 conftest2.o conftest3.o > /dev/null 2>&1; then
22560 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22561 | sed -e '/myfoosect/!d' -e N`
22562 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22563 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22564 gcc_cv_ld_ro_rw_mix=read-only
22565 else
22566 gcc_cv_ld_ro_rw_mix=read-write
22570 rm -f conftest.* conftest[123].*
22572 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22574 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22578 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22580 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22581 case "${target}" in
22582 *-*-solaris2*)
22584 # Solaris 2 ld -V output looks like this for a regular version:
22586 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22588 # but test versions add stuff at the end:
22590 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22592 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22593 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22594 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22595 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22596 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22597 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22600 esac
22603 # Check whether --enable-initfini-array was given.
22604 if test "${enable_initfini_array+set}" = set; then :
22605 enableval=$enable_initfini_array;
22606 else
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22609 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22610 if test "${gcc_cv_initfini_array+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22614 case "${target}" in
22615 ia64-*)
22616 if test "$cross_compiling" = yes; then :
22617 gcc_cv_initfini_array=no
22618 else
22619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22620 /* end confdefs.h. */
22622 #ifndef __ELF__
22623 #error Not an ELF OS
22624 #endif
22625 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22626 if it can be used. */
22627 static int x = -1;
22628 int main (void) { return x; }
22629 int foo (void) { x = 0; }
22630 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22632 _ACEOF
22633 if ac_fn_c_try_run "$LINENO"; then :
22634 gcc_cv_initfini_array=yes
22635 else
22636 gcc_cv_initfini_array=no
22638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22639 conftest.$ac_objext conftest.beam conftest.$ac_ext
22643 gcc_cv_initfini_array=no
22644 if test $in_tree_ld = yes ; then
22645 if test "$gcc_cv_gld_major_version" -eq 2 \
22646 -a "$gcc_cv_gld_minor_version" -ge 22 \
22647 -o "$gcc_cv_gld_major_version" -gt 2 \
22648 && test $in_tree_ld_is_elf = yes; then
22649 gcc_cv_initfini_array=yes
22651 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22652 cat > conftest.s <<\EOF
22653 .section .dtors,"a",%progbits
22654 .balign 4
22655 .byte 'A', 'A', 'A', 'A'
22656 .section .ctors,"a",%progbits
22657 .balign 4
22658 .byte 'B', 'B', 'B', 'B'
22659 .section .fini_array.65530,"a",%progbits
22660 .balign 4
22661 .byte 'C', 'C', 'C', 'C'
22662 .section .init_array.65530,"a",%progbits
22663 .balign 4
22664 .byte 'D', 'D', 'D', 'D'
22665 .section .dtors.64528,"a",%progbits
22666 .balign 4
22667 .byte 'E', 'E', 'E', 'E'
22668 .section .ctors.64528,"a",%progbits
22669 .balign 4
22670 .byte 'F', 'F', 'F', 'F'
22671 .section .fini_array.01005,"a",%progbits
22672 .balign 4
22673 .byte 'G', 'G', 'G', 'G'
22674 .section .init_array.01005,"a",%progbits
22675 .balign 4
22676 .byte 'H', 'H', 'H', 'H'
22677 .text
22678 .globl _start
22679 _start:
22681 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22682 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22683 && $gcc_cv_objdump -s -j .init_array conftest \
22684 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22685 && $gcc_cv_objdump -s -j .fini_array conftest \
22686 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22687 gcc_cv_initfini_array=yes
22689 rm -f conftest conftest.*
22691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22692 /* end confdefs.h. */
22694 #ifndef __ELF__
22695 # error Not an ELF OS
22696 #endif
22697 #include <stdlib.h>
22698 #if defined __GLIBC_PREREQ
22699 # if __GLIBC_PREREQ (2, 4)
22700 # else
22701 # error GLIBC 2.4 required
22702 # endif
22703 #else
22704 # if defined __sun__ && defined __svr4__
22705 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22706 # else
22707 # error The C library not known to support .init_array/.fini_array
22708 # endif
22709 #endif
22711 _ACEOF
22712 if ac_fn_c_try_cpp "$LINENO"; then :
22714 else
22715 gcc_cv_initfini_array=no
22717 rm -f conftest.err conftest.$ac_ext;;
22718 esac
22719 else
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22721 $as_echo_n "checking cross compile... guessing... " >&6; }
22722 gcc_cv_initfini_array=no
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22726 $as_echo "$gcc_cv_initfini_array" >&6; }
22727 enable_initfini_array=$gcc_cv_initfini_array
22731 if test $enable_initfini_array = yes; then
22733 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22737 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22739 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22740 if test "${gcc_cv_as_leb128+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22742 else
22743 gcc_cv_as_leb128=no
22744 if test $in_tree_gas = yes; then
22745 if test $in_tree_gas_is_elf = yes \
22746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22747 then gcc_cv_as_leb128=yes
22749 elif test x$gcc_cv_as != x; then
22750 $as_echo ' .data
22751 .uleb128 L2 - L1
22753 .uleb128 1280
22754 .sleb128 -1010
22755 L2:' > conftest.s
22756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22761 test $ac_status = 0; }; }
22762 then
22763 # GAS versions before 2.11 do not support uleb128,
22764 # despite appearing to.
22765 # ??? There exists an elf-specific test that will crash
22766 # the assembler. Perhaps it's better to figure out whether
22767 # arbitrary sections are supported and try the test.
22768 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22769 if echo "$as_ver" | grep GNU > /dev/null; then
22770 as_vers=`echo $as_ver | sed -n \
22771 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22772 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22773 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22774 if test $as_major -eq 2 && test $as_minor -lt 11
22775 then :
22776 else gcc_cv_as_leb128=yes
22779 else
22780 echo "configure: failed program was" >&5
22781 cat conftest.s >&5
22783 rm -f conftest.o conftest.s
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22787 $as_echo "$gcc_cv_as_leb128" >&6; }
22788 if test $gcc_cv_as_leb128 = yes; then
22790 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22794 # Check if we have assembler support for unwind directives.
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22796 $as_echo_n "checking assembler for cfi directives... " >&6; }
22797 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22798 $as_echo_n "(cached) " >&6
22799 else
22800 gcc_cv_as_cfi_directive=no
22801 if test x$gcc_cv_as != x; then
22802 $as_echo ' .text
22803 .cfi_startproc
22804 .cfi_offset 0, 0
22805 .cfi_same_value 1
22806 .cfi_def_cfa 1, 2
22807 .cfi_escape 1, 2, 3, 4, 5
22808 .cfi_endproc' > conftest.s
22809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22811 (eval $ac_try) 2>&5
22812 ac_status=$?
22813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22814 test $ac_status = 0; }; }
22815 then
22816 case "$target" in
22817 *-*-solaris*)
22818 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22819 # read-only and read-write sections, we need to make sure that the
22820 # assembler used emits read-write .eh_frame sections.
22821 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22822 if test "x$gcc_cv_objdump" != x; then
22823 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22824 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22825 gcc_cv_as_cfi_directive=no
22826 else
22827 case "$target" in
22828 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22829 # On Solaris/x86, make sure that GCC and assembler agree on using
22830 # read-only .eh_frame sections for 64-bit.
22831 if test x$gas = xyes; then
22832 as_ix86_64_opt="--64"
22833 else
22834 as_ix86_64_opt="-xarch=amd64"
22836 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22837 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22838 sed -e /.eh_frame/!d -e N | \
22839 grep READONLY > /dev/null; then
22840 gcc_cv_as_cfi_directive=yes
22841 else
22842 gcc_cv_as_cfi_directive=no
22846 gcc_cv_as_cfi_directive=yes
22848 esac
22850 else
22851 # no objdump, err on the side of caution
22852 gcc_cv_as_cfi_directive=no
22854 else
22855 gcc_cv_as_cfi_directive=yes
22858 *-*-*)
22859 gcc_cv_as_cfi_directive=yes
22861 esac
22862 else
22863 echo "configure: failed program was" >&5
22864 cat conftest.s >&5
22866 rm -f conftest.o conftest.s
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22870 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22872 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22874 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22875 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_cfi_advance_working=no
22879 if test x$gcc_cv_as != x; then
22880 $as_echo ' .text
22881 .cfi_startproc
22882 .cfi_adjust_cfa_offset 64
22883 .skip 75040, 0
22884 .cfi_adjust_cfa_offset 128
22885 .cfi_endproc' > conftest.s
22886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22891 test $ac_status = 0; }; }
22892 then
22894 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22895 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22896 gcc_cv_as_cfi_advance_working=yes
22899 else
22900 echo "configure: failed program was" >&5
22901 cat conftest.s >&5
22903 rm -f conftest.o conftest.s
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22907 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22909 else
22910 # no objdump, err on the side of caution
22911 gcc_cv_as_cfi_advance_working=no
22915 cat >>confdefs.h <<_ACEOF
22916 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22917 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22918 _ACEOF
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22923 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22924 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22926 else
22927 gcc_cv_as_cfi_personality_directive=no
22928 if test x$gcc_cv_as != x; then
22929 $as_echo ' .text
22930 .cfi_startproc
22931 .cfi_personality 0, symbol
22932 .cfi_endproc' > conftest.s
22933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; }
22939 then
22940 gcc_cv_as_cfi_personality_directive=yes
22941 else
22942 echo "configure: failed program was" >&5
22943 cat conftest.s >&5
22945 rm -f conftest.o conftest.s
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22949 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22952 cat >>confdefs.h <<_ACEOF
22953 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22954 then echo 1; else echo 0; fi`
22955 _ACEOF
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22959 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22960 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22962 else
22963 gcc_cv_as_cfi_sections_directive=no
22964 if test x$gcc_cv_as != x; then
22965 $as_echo ' .text
22966 .cfi_sections .debug_frame, .eh_frame
22967 .cfi_startproc
22968 .cfi_endproc' > conftest.s
22969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22971 (eval $ac_try) 2>&5
22972 ac_status=$?
22973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974 test $ac_status = 0; }; }
22975 then
22976 case $target_os in
22977 win32 | pe | cygwin* | mingw32* | uwin*)
22978 # Need to check that we generated the correct relocation for the
22979 # .debug_frame section. This was fixed for binutils 2.21.
22980 gcc_cv_as_cfi_sections_directive=no
22981 if test "x$gcc_cv_objdump" != x; then
22982 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22983 grep secrel > /dev/null; then
22984 gcc_cv_as_cfi_sections_directive=yes
22989 gcc_cv_as_cfi_sections_directive=yes
22991 esac
22992 else
22993 echo "configure: failed program was" >&5
22994 cat conftest.s >&5
22996 rm -f conftest.o conftest.s
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23000 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23004 cat >>confdefs.h <<_ACEOF
23005 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23006 then echo 1; else echo 0; fi`
23007 _ACEOF
23010 # GAS versions up to and including 2.11.0 may mis-optimize
23011 # .eh_frame data.
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23013 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23014 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23016 else
23017 gcc_cv_as_eh_frame=no
23018 if test $in_tree_gas = yes; then
23019 if test $in_tree_gas_is_elf = yes \
23020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23021 then gcc_cv_as_eh_frame=yes
23023 elif test x$gcc_cv_as != x; then
23024 $as_echo ' .text
23025 .LFB1:
23026 .4byte 0
23027 .L1:
23028 .4byte 0
23029 .LFE1:
23030 .section .eh_frame,"aw",@progbits
23031 __FRAME_BEGIN__:
23032 .4byte .LECIE1-.LSCIE1
23033 .LSCIE1:
23034 .4byte 0x0
23035 .byte 0x1
23036 .ascii "z\0"
23037 .byte 0x1
23038 .byte 0x78
23039 .byte 0x1a
23040 .byte 0x0
23041 .byte 0x4
23042 .4byte 1
23043 .p2align 1
23044 .LECIE1:
23045 .LSFDE1:
23046 .4byte .LEFDE1-.LASFDE1
23047 .LASFDE1:
23048 .4byte .LASFDE1-__FRAME_BEGIN__
23049 .4byte .LFB1
23050 .4byte .LFE1-.LFB1
23051 .byte 0x4
23052 .4byte .LFE1-.LFB1
23053 .byte 0x4
23054 .4byte .L1-.LFB1
23055 .LEFDE1:' > conftest.s
23056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23061 test $ac_status = 0; }; }
23062 then
23063 cat > conftest.lit <<EOF
23064 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23065 0010 01000000 12000000 18000000 00000000 ................
23066 0020 08000000 04080000 0044 .........D
23068 cat > conftest.big <<EOF
23069 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23070 0010 00000001 00000012 00000018 00000000 ................
23071 0020 00000008 04000000 0844 .........D
23073 # If the assembler didn't choke, and we can objdump,
23074 # and we got the correct data, then succeed.
23075 # The text in the here-document typically retains its unix-style line
23076 # endings, while the output of objdump will use host line endings.
23077 # Therefore, use diff -b for the comparisons.
23078 if test x$gcc_cv_objdump != x \
23079 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23080 | tail -3 > conftest.got \
23081 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23082 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23083 then
23084 gcc_cv_as_eh_frame=yes
23085 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }; then
23091 gcc_cv_as_eh_frame=buggy
23092 else
23093 # Uh oh, what do we do now?
23094 gcc_cv_as_eh_frame=no
23096 else
23097 echo "configure: failed program was" >&5
23098 cat conftest.s >&5
23100 rm -f conftest.o conftest.s
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23104 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23107 if test $gcc_cv_as_eh_frame = buggy; then
23109 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23114 $as_echo_n "checking assembler for section merging support... " >&6; }
23115 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23116 $as_echo_n "(cached) " >&6
23117 else
23118 gcc_cv_as_shf_merge=no
23119 if test $in_tree_gas = yes; then
23120 if test $in_tree_gas_is_elf = yes \
23121 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23122 then gcc_cv_as_shf_merge=yes
23124 elif test x$gcc_cv_as != x; then
23125 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23132 then
23133 gcc_cv_as_shf_merge=yes
23134 else
23135 echo "configure: failed program was" >&5
23136 cat conftest.s >&5
23138 rm -f conftest.o conftest.s
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23142 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23144 if test $gcc_cv_as_shf_merge = no; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23146 $as_echo_n "checking assembler for section merging support... " >&6; }
23147 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23150 gcc_cv_as_shf_merge=no
23151 if test $in_tree_gas = yes; then
23152 if test $in_tree_gas_is_elf = yes \
23153 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23154 then gcc_cv_as_shf_merge=yes
23156 elif test x$gcc_cv_as != x; then
23157 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; }
23164 then
23165 gcc_cv_as_shf_merge=yes
23166 else
23167 echo "configure: failed program was" >&5
23168 cat conftest.s >&5
23170 rm -f conftest.o conftest.s
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23174 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23178 cat >>confdefs.h <<_ACEOF
23179 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23180 _ACEOF
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23184 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23185 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 gcc_cv_as_comdat_group=no
23189 if test $in_tree_gas = yes; then
23190 if test $in_tree_gas_is_elf = yes \
23191 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23192 then gcc_cv_as_comdat_group=yes
23194 elif test x$gcc_cv_as != x; then
23195 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23201 test $ac_status = 0; }; }
23202 then
23203 gcc_cv_as_comdat_group=yes
23204 else
23205 echo "configure: failed program was" >&5
23206 cat conftest.s >&5
23208 rm -f conftest.o conftest.s
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23212 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23214 if test $gcc_cv_as_comdat_group = yes; then
23215 gcc_cv_as_comdat_group_percent=no
23216 gcc_cv_as_comdat_group_group=no
23217 else
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23219 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23220 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23221 $as_echo_n "(cached) " >&6
23222 else
23223 gcc_cv_as_comdat_group_percent=no
23224 if test $in_tree_gas = yes; then
23225 if test $in_tree_gas_is_elf = yes \
23226 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23227 then gcc_cv_as_comdat_group_percent=yes
23229 elif test x$gcc_cv_as != x; then
23230 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23236 test $ac_status = 0; }; }
23237 then
23238 gcc_cv_as_comdat_group_percent=yes
23239 else
23240 echo "configure: failed program was" >&5
23241 cat conftest.s >&5
23243 rm -f conftest.o conftest.s
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23247 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23249 if test $gcc_cv_as_comdat_group_percent = yes; then
23250 gcc_cv_as_comdat_group_group=no
23251 else
23252 case "${target}" in
23253 # Sun as uses a completely different syntax.
23254 *-*-solaris2*)
23255 case "${target}" in
23256 sparc*-*-solaris2*)
23257 conftest_s='
23258 .group foo,".text%foo",#comdat
23259 .section ".text%foo", #alloc,#execinstr,#progbits
23260 .globl foo
23261 foo:
23264 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23265 conftest_s='
23266 .group foo,.text%foo,#comdat
23267 .section .text%foo, "ax", @progbits
23268 .globl foo
23269 foo:
23272 esac
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23274 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23275 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23276 $as_echo_n "(cached) " >&6
23277 else
23278 gcc_cv_as_comdat_group_group=no
23279 if test x$gcc_cv_as != x; then
23280 $as_echo "$conftest_s" > conftest.s
23281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }
23287 then
23288 gcc_cv_as_comdat_group_group=yes
23289 else
23290 echo "configure: failed program was" >&5
23291 cat conftest.s >&5
23293 rm -f conftest.o conftest.s
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23297 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23300 esac
23301 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23302 gcc_cv_as_comdat_group_group=no
23306 if test x"$ld_is_gold" = xyes; then
23307 comdat_group=yes
23308 elif test $in_tree_ld = yes ; then
23309 comdat_group=no
23310 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 \
23311 && test $in_tree_ld_is_elf = yes; then
23312 comdat_group=yes
23314 elif echo "$ld_ver" | grep GNU > /dev/null; then
23315 comdat_group=yes
23316 if test 0"$ld_date" -lt 20050308; then
23317 if test -n "$ld_date"; then
23318 # If there was date string, but was earlier than 2005-03-08, fail
23319 comdat_group=no
23320 elif test "$ld_vers_major" -lt 2; then
23321 comdat_group=no
23322 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23323 comdat_group=no
23326 else
23327 case "${target}" in
23328 *-*-solaris2.1[1-9]*)
23329 comdat_group=no
23330 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23331 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23332 # version 1.688.
23334 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23335 # least ld version 1.2267.
23336 if test "$ld_vers_major" -gt 1; then
23337 comdat_group=yes
23338 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23339 comdat_group=yes
23340 elif test "$ld_vers_minor" -ge 2267; then
23341 comdat_group=yes
23345 # Assume linkers other than GNU ld don't support COMDAT group.
23346 comdat_group=no
23348 esac
23350 # Allow overriding the automatic COMDAT group tests above.
23351 # Check whether --enable-comdat was given.
23352 if test "${enable_comdat+set}" = set; then :
23353 enableval=$enable_comdat; comdat_group="$enable_comdat"
23356 if test $comdat_group = no; then
23357 gcc_cv_as_comdat_group=no
23358 gcc_cv_as_comdat_group_percent=no
23359 gcc_cv_as_comdat_group_group=no
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23364 || test $gcc_cv_as_comdat_group_percent = yes \
23365 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23366 _ACEOF
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23370 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23371 if test "${gcc_cv_as_discriminator+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23373 else
23374 gcc_cv_as_discriminator=no
23375 if test $in_tree_gas = yes; then
23376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23377 then gcc_cv_as_discriminator=yes
23379 elif test x$gcc_cv_as != x; then
23380 $as_echo ' .text
23381 .file 1 "conf.c"
23382 .loc 1 1 0 discriminator 1' > conftest.s
23383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23386 ac_status=$?
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }
23389 then
23390 gcc_cv_as_discriminator=yes
23391 else
23392 echo "configure: failed program was" >&5
23393 cat conftest.s >&5
23395 rm -f conftest.o conftest.s
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23399 $as_echo "$gcc_cv_as_discriminator" >&6; }
23400 if test $gcc_cv_as_discriminator = yes; then
23402 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23406 # Thread-local storage - the check is heavily parameterized.
23407 conftest_s=
23408 tls_first_major=
23409 tls_first_minor=
23410 tls_as_opt=
23411 case "$target" in
23412 alpha*-*-*)
23413 conftest_s='
23414 .section ".tdata","awT",@progbits
23415 foo: .long 25
23416 .text
23417 ldq $27,__tls_get_addr($29) !literal!1
23418 lda $16,foo($29) !tlsgd!1
23419 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23420 ldq $27,__tls_get_addr($29) !literal!2
23421 lda $16,foo($29) !tlsldm!2
23422 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23423 ldq $1,foo($29) !gotdtprel
23424 ldah $2,foo($29) !dtprelhi
23425 lda $3,foo($2) !dtprello
23426 lda $4,foo($29) !dtprel
23427 ldq $1,foo($29) !gottprel
23428 ldah $2,foo($29) !tprelhi
23429 lda $3,foo($2) !tprello
23430 lda $4,foo($29) !tprel'
23431 tls_first_major=2
23432 tls_first_minor=13
23433 tls_as_opt=--fatal-warnings
23435 cris-*-*|crisv32-*-*)
23436 conftest_s='
23437 .section ".tdata","awT",@progbits
23438 x: .long 25
23439 .text
23440 move.d x:IE,$r10
23441 nop'
23442 tls_first_major=2
23443 tls_first_minor=20
23444 tls_as_opt=--fatal-warnings
23446 frv*-*-*)
23447 conftest_s='
23448 .section ".tdata","awT",@progbits
23449 x: .long 25
23450 .text
23451 call #gettlsoff(x)'
23452 tls_first_major=2
23453 tls_first_minor=14
23455 hppa*-*-linux*)
23456 conftest_s='
23457 t1: .reg %r20
23458 t2: .reg %r21
23459 gp: .reg %r19
23460 .section ".tdata","awT",@progbits
23461 foo: .long 25
23462 .text
23463 .align 4
23464 addil LT%foo-$tls_gdidx$,gp
23465 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23466 b __tls_get_addr
23468 addil LT%foo-$tls_ldidx$,gp
23469 b __tls_get_addr
23470 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23471 addil LR%foo-$tls_dtpoff$,%ret0
23472 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23473 mfctl %cr27,%t1
23474 addil LT%foo-$tls_ieoff$,gp
23475 ldw RT%foo-$tls_ieoff$(%r1),%t2
23476 add %t1,%t2,%t3
23477 mfctl %cr27,%t1
23478 addil LR%foo-$tls_leoff$,%t1
23479 ldo RR%foo-$tls_leoff$(%r1),%t2'
23480 tls_first_major=2
23481 tls_first_minor=15
23482 tls_as_opt=--fatal-warnings
23484 arm*-*-*)
23485 conftest_s='
23486 .section ".tdata","awT",%progbits
23487 foo: .long 25
23488 .text
23489 .word foo(gottpoff)
23490 .word foo(tpoff)
23491 .word foo(tlsgd)
23492 .word foo(tlsldm)
23493 .word foo(tlsldo)'
23494 tls_first_major=2
23495 tls_first_minor=17
23497 i[34567]86-*-* | x86_64-*-*)
23498 case "$target" in
23499 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23500 on_solaris=yes
23503 on_solaris=no
23505 esac
23506 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23507 conftest_s='
23508 .section .tdata,"awt",@progbits'
23509 tls_first_major=0
23510 tls_first_minor=0
23511 tls_section_flag=t
23513 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23515 else
23516 conftest_s='
23517 .section ".tdata","awT",@progbits'
23518 tls_first_major=2
23519 tls_first_minor=14
23520 tls_section_flag=T
23521 tls_as_opt="--fatal-warnings"
23523 case "$target" in
23524 i[34567]86-*-*)
23525 conftest_s="$conftest_s
23526 foo: .long 25
23527 .text
23528 movl %gs:0, %eax
23529 leal foo@tlsgd(,%ebx,1), %eax
23530 leal foo@tlsldm(%ebx), %eax
23531 leal foo@dtpoff(%eax), %edx
23532 movl foo@gottpoff(%ebx), %eax
23533 subl foo@gottpoff(%ebx), %eax
23534 addl foo@gotntpoff(%ebx), %eax
23535 movl foo@indntpoff, %eax
23536 movl \$foo@tpoff, %eax
23537 subl \$foo@tpoff, %eax
23538 leal foo@ntpoff(%ecx), %eax"
23540 x86_64-*-*)
23541 if test x$on_solaris = xyes; then
23542 case $gas_flag in
23543 yes) tls_as_opt="$tls_as_opt --64" ;;
23544 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23545 esac
23547 conftest_s="$conftest_s
23548 foo: .long 25
23549 .text
23550 movq %fs:0, %rax
23551 leaq foo@tlsgd(%rip), %rdi
23552 leaq foo@tlsld(%rip), %rdi
23553 leaq foo@dtpoff(%rax), %rdx
23554 movq foo@gottpoff(%rip), %rax
23555 movq \$foo@tpoff, %rax"
23557 esac
23559 ia64-*-*)
23560 conftest_s='
23561 .section ".tdata","awT",@progbits
23562 foo: data8 25
23563 .text
23564 addl r16 = @ltoff(@dtpmod(foo#)), gp
23565 addl r17 = @ltoff(@dtprel(foo#)), gp
23566 addl r18 = @ltoff(@tprel(foo#)), gp
23567 addl r19 = @dtprel(foo#), gp
23568 adds r21 = @dtprel(foo#), r13
23569 movl r23 = @dtprel(foo#)
23570 addl r20 = @tprel(foo#), gp
23571 adds r22 = @tprel(foo#), r13
23572 movl r24 = @tprel(foo#)'
23573 tls_first_major=2
23574 tls_first_minor=13
23575 tls_as_opt=--fatal-warnings
23577 microblaze*-*-*)
23578 conftest_s='
23579 .section .tdata,"awT",@progbits
23581 .word 2
23582 .text
23583 addik r5,r20,x@TLSGD
23584 addik r5,r20,x@TLSLDM'
23585 tls_first_major=2
23586 tls_first_minor=20
23587 tls_as_opt='--fatal-warnings'
23589 mips*-*-*)
23590 conftest_s='
23591 .section .tdata,"awT",@progbits
23593 .word 2
23594 .text
23595 addiu $4, $28, %tlsgd(x)
23596 addiu $4, $28, %tlsldm(x)
23597 lui $4, %dtprel_hi(x)
23598 addiu $4, $4, %dtprel_lo(x)
23599 lw $4, %gottprel(x)($28)
23600 lui $4, %tprel_hi(x)
23601 addiu $4, $4, %tprel_lo(x)'
23602 tls_first_major=2
23603 tls_first_minor=16
23604 tls_as_opt='-32 --fatal-warnings'
23606 m68k-*-*)
23607 conftest_s='
23608 .section .tdata,"awT",@progbits
23610 .word 2
23611 .text
23612 foo:
23613 move.l x@TLSGD(%a5),%a0
23614 move.l x@TLSLDM(%a5),%a0
23615 move.l x@TLSLDO(%a5),%a0
23616 move.l x@TLSIE(%a5),%a0
23617 move.l x@TLSLE(%a5),%a0'
23618 tls_first_major=2
23619 tls_first_minor=19
23620 tls_as_opt='--fatal-warnings'
23622 nios2-*-*)
23623 conftest_s='
23624 .section ".tdata","awT",@progbits'
23625 tls_first_major=2
23626 tls_first_minor=23
23627 tls_as_opt="--fatal-warnings"
23629 aarch64*-*-*)
23630 conftest_s='
23631 .section ".tdata","awT",%progbits
23632 foo: .long 25
23633 .text
23634 adrp x0, :tlsgd:x
23635 add x0, x0, #:tlsgd_lo12:x
23636 bl __tls_get_addr
23637 nop'
23638 tls_first_major=2
23639 tls_first_minor=20
23640 tls_as_opt='--fatal-warnings'
23642 powerpc-ibm-aix*)
23643 conftest_s='
23644 .extern __get_tpointer
23645 .toc
23646 LC..1:
23647 .tc a[TC],a[TL]@le
23648 .csect .text[PR]
23649 .tlstest:
23650 lwz 9,LC..1(2)
23651 bla __get_tpointer
23652 lwzx 3,9,3
23653 .globl a
23654 .csect a[TL],4
23656 .space 4'
23657 tls_first_major=0
23658 tls_first_minor=0
23660 powerpc64*-*-*)
23661 conftest_s='
23662 .section ".tdata","awT",@progbits
23663 .align 3
23664 ld0: .space 8
23665 ld1: .space 8
23666 x1: .space 8
23667 x2: .space 8
23668 x3: .space 8
23669 .text
23670 addi 3,2,ld0@got@tlsgd
23671 bl .__tls_get_addr
23673 addi 3,2,ld1@toc
23674 bl .__tls_get_addr
23676 addi 3,2,x1@got@tlsld
23677 bl .__tls_get_addr
23679 addi 9,3,x1@dtprel
23680 bl .__tls_get_addr
23682 addis 9,3,x2@dtprel@ha
23683 addi 9,9,x2@dtprel@l
23684 bl .__tls_get_addr
23686 ld 9,x3@got@dtprel(2)
23687 add 9,9,3
23688 bl .__tls_get_addr
23689 nop'
23690 tls_first_major=2
23691 tls_first_minor=14
23692 tls_as_opt="-a64 --fatal-warnings"
23694 powerpc*-*-*)
23695 conftest_s='
23696 .section ".tdata","awT",@progbits
23697 .align 2
23698 ld0: .space 4
23699 ld1: .space 4
23700 x1: .space 4
23701 x2: .space 4
23702 x3: .space 4
23703 .text
23704 addi 3,31,ld0@got@tlsgd
23705 bl __tls_get_addr
23706 addi 3,31,x1@got@tlsld
23707 bl __tls_get_addr
23708 addi 9,3,x1@dtprel
23709 addis 9,3,x2@dtprel@ha
23710 addi 9,9,x2@dtprel@l
23711 lwz 9,x3@got@tprel(31)
23712 add 9,9,x@tls
23713 addi 9,2,x1@tprel
23714 addis 9,2,x2@tprel@ha
23715 addi 9,9,x2@tprel@l'
23716 tls_first_major=2
23717 tls_first_minor=14
23718 tls_as_opt="-a32 --fatal-warnings"
23720 s390-*-*)
23721 conftest_s='
23722 .section ".tdata","awT",@progbits
23723 foo: .long 25
23724 .text
23725 .long foo@TLSGD
23726 .long foo@TLSLDM
23727 .long foo@DTPOFF
23728 .long foo@NTPOFF
23729 .long foo@GOTNTPOFF
23730 .long foo@INDNTPOFF
23731 l %r1,foo@GOTNTPOFF(%r12)
23732 l %r1,0(%r1):tls_load:foo
23733 bas %r14,0(%r1,%r13):tls_gdcall:foo
23734 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23735 tls_first_major=2
23736 tls_first_minor=14
23737 tls_as_opt="-m31 --fatal-warnings"
23739 s390x-*-*)
23740 conftest_s='
23741 .section ".tdata","awT",@progbits
23742 foo: .long 25
23743 .text
23744 .quad foo@TLSGD
23745 .quad foo@TLSLDM
23746 .quad foo@DTPOFF
23747 .quad foo@NTPOFF
23748 .quad foo@GOTNTPOFF
23749 lg %r1,foo@GOTNTPOFF(%r12)
23750 larl %r1,foo@INDNTPOFF
23751 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23752 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23753 tls_first_major=2
23754 tls_first_minor=14
23755 tls_as_opt="-m64 -Aesame --fatal-warnings"
23757 sh-*-* | sh[34]-*-*)
23758 conftest_s='
23759 .section ".tdata","awT",@progbits
23760 foo: .long 25
23761 .text
23762 .long foo@TLSGD
23763 .long foo@TLSLDM
23764 .long foo@DTPOFF
23765 .long foo@GOTTPOFF
23766 .long foo@TPOFF'
23767 tls_first_major=2
23768 tls_first_minor=13
23769 tls_as_opt=--fatal-warnings
23771 sparc*-*-*)
23772 case "$target" in
23773 sparc*-sun-solaris2.*)
23774 on_solaris=yes
23777 on_solaris=no
23779 esac
23780 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23781 conftest_s='
23782 .section ".tdata",#alloc,#write,#tls'
23783 tls_first_major=0
23784 tls_first_minor=0
23785 else
23786 conftest_s='
23787 .section ".tdata","awT",@progbits'
23788 tls_first_major=2
23789 tls_first_minor=14
23790 tls_as_opt="-32 --fatal-warnings"
23792 conftest_s="$conftest_s
23793 foo: .long 25
23794 .text
23795 sethi %tgd_hi22(foo), %o0
23796 add %o0, %tgd_lo10(foo), %o1
23797 add %l7, %o1, %o0, %tgd_add(foo)
23798 call __tls_get_addr, %tgd_call(foo)
23799 sethi %tldm_hi22(foo), %l1
23800 add %l1, %tldm_lo10(foo), %l2
23801 add %l7, %l2, %o0, %tldm_add(foo)
23802 call __tls_get_addr, %tldm_call(foo)
23803 sethi %tldo_hix22(foo), %l3
23804 xor %l3, %tldo_lox10(foo), %l4
23805 add %o0, %l4, %l5, %tldo_add(foo)
23806 sethi %tie_hi22(foo), %o3
23807 add %o3, %tie_lo10(foo), %o3
23808 ld [%l7 + %o3], %o2, %tie_ld(foo)
23809 add %g7, %o2, %o4, %tie_add(foo)
23810 sethi %tle_hix22(foo), %l1
23811 xor %l1, %tle_lox10(foo), %o5
23812 ld [%g7 + %o5], %o1"
23814 tilepro*-*-*)
23815 conftest_s='
23816 .section ".tdata","awT",@progbits
23817 foo: .long 25
23818 .text
23819 addli r0, zero, tls_gd(foo)
23820 auli r0, zero, tls_gd_ha16(foo)
23821 addli r0, r0, tls_gd_lo16(foo)
23822 jal __tls_get_addr
23823 addli r0, zero, tls_ie(foo)
23824 auli r0, r0, tls_ie_ha16(foo)
23825 addli r0, r0, tls_ie_lo16(foo)'
23826 tls_first_major=2
23827 tls_first_minor=22
23828 tls_as_opt="--fatal-warnings"
23830 tilegx*-*-*)
23831 conftest_s='
23832 .section ".tdata","awT",@progbits
23833 foo: .long 25
23834 .text
23835 shl16insli r0, zero, hw0_last_tls_gd(foo)
23836 shl16insli r0, zero, hw1_last_tls_gd(foo)
23837 shl16insli r0, r0, hw0_tls_gd(foo)
23838 jal __tls_get_addr
23839 shl16insli r0, zero, hw1_last_tls_ie(foo)
23840 shl16insli r0, r0, hw0_tls_ie(foo)'
23841 tls_first_major=2
23842 tls_first_minor=22
23843 tls_as_opt="--fatal-warnings"
23845 xtensa*-*-*)
23846 conftest_s='
23847 .section ".tdata","awT",@progbits
23848 foo: .long 25
23849 .text
23850 movi a8, foo@TLSFUNC
23851 movi a10, foo@TLSARG
23852 callx8.tls a8, foo@TLSCALL'
23853 tls_first_major=2
23854 tls_first_minor=19
23856 esac
23857 set_have_as_tls=no
23858 if test "x$enable_tls" = xno ; then
23859 : # TLS explicitly disabled.
23860 elif test "x$enable_tls" = xyes ; then
23861 set_have_as_tls=yes # TLS explicitly enabled.
23862 elif test -z "$tls_first_major"; then
23863 : # If we don't have a check, assume no support.
23864 else
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23866 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23867 if test "${gcc_cv_as_tls+set}" = set; then :
23868 $as_echo_n "(cached) " >&6
23869 else
23870 gcc_cv_as_tls=no
23871 if test $in_tree_gas = yes; then
23872 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23873 then gcc_cv_as_tls=yes
23875 elif test x$gcc_cv_as != x; then
23876 $as_echo "$conftest_s" > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_tls=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23893 $as_echo "$gcc_cv_as_tls" >&6; }
23894 if test $gcc_cv_as_tls = yes; then
23895 set_have_as_tls=yes
23898 if test $set_have_as_tls = yes ; then
23900 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23904 # Target-specific assembler checks.
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23907 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23908 gcc_cv_ld_static_dynamic=no
23909 gcc_cv_ld_static_option='-Bstatic'
23910 gcc_cv_ld_dynamic_option='-Bdynamic'
23911 if test $in_tree_ld = yes ; then
23912 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
23913 gcc_cv_ld_static_dynamic=yes
23915 elif test x$gcc_cv_ld != x; then
23916 # Check if linker supports -Bstatic/-Bdynamic option
23917 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23918 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23919 gcc_cv_ld_static_dynamic=yes
23920 else
23921 case "$target" in
23922 # AIX ld uses -b flags
23923 *-*-aix4.[23]* | *-*-aix[5-9]*)
23924 gcc_cv_ld_static_dynamic=yes
23925 gcc_cv_ld_static_option="-bstatic"
23926 gcc_cv_ld_dynamic_option="-bdynamic"
23928 # HP-UX ld uses -a flags to select between shared and archive.
23929 *-*-hpux*)
23930 if test x"$gnu_ld" = xno; then
23931 gcc_cv_ld_static_dynamic=yes
23932 gcc_cv_ld_static_option="-aarchive_shared"
23933 gcc_cv_ld_dynamic_option="-adefault"
23936 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23937 *-*-solaris2*)
23938 gcc_cv_ld_static_dynamic=yes
23940 esac
23943 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23945 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23948 cat >>confdefs.h <<_ACEOF
23949 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23950 _ACEOF
23953 cat >>confdefs.h <<_ACEOF
23954 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23955 _ACEOF
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23959 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23961 if test x"$demangler_in_ld" = xyes; then
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23963 $as_echo_n "checking linker --demangle support... " >&6; }
23964 gcc_cv_ld_demangle=no
23965 if test $in_tree_ld = yes; then
23966 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 \
23967 gcc_cv_ld_demangle=yes
23969 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23970 # Check if the GNU linker supports --demangle option
23971 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23972 gcc_cv_ld_demangle=yes
23975 if test x"$gcc_cv_ld_demangle" = xyes; then
23977 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23981 $as_echo "$gcc_cv_ld_demangle" >&6; }
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23985 $as_echo_n "checking linker plugin support... " >&6; }
23986 gcc_cv_lto_plugin=0
23987 if test -f liblto_plugin.la; then
23988 save_ld_ver="$ld_ver"
23989 save_ld_vers_major="$ld_vers_major"
23990 save_ld_vers_minor="$ld_vers_minor"
23991 save_ld_is_gold="$ld_is_gold"
23993 ld_is_gold=no
23995 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23996 ld_ver="GNU ld"
23997 # FIXME: ld_is_gold?
23998 ld_vers_major="$gcc_cv_gld_major_version"
23999 ld_vers_minor="$gcc_cv_gld_minor_version"
24000 else
24001 # Determine plugin linker version.
24002 # FIXME: Partial duplicate from above, generalize.
24003 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24004 if echo "$ld_ver" | grep GNU > /dev/null; then
24005 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24006 ld_is_gold=yes
24007 ld_vers=`echo $ld_ver | sed -n \
24008 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24009 else
24010 ld_vers=`echo $ld_ver | sed -n \
24011 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24013 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24014 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24018 # Determine plugin support.
24019 if echo "$ld_ver" | grep GNU > /dev/null; then
24020 # Require GNU ld or gold 2.21+ for plugin support by default.
24021 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24022 gcc_cv_lto_plugin=2
24023 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24024 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24025 gcc_cv_lto_plugin=1
24029 ld_ver="$save_ld_ver"
24030 ld_vers_major="$save_ld_vers_major"
24031 ld_vers_minor="$save_ld_vers_minor"
24032 ld_is_gold="$save_ld_is_gold"
24035 cat >>confdefs.h <<_ACEOF
24036 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24037 _ACEOF
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24040 $as_echo "$gcc_cv_lto_plugin" >&6; }
24042 case "$target" in
24043 aarch64*-*-*)
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24045 $as_echo_n "checking assembler for -mabi option... " >&6; }
24046 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 gcc_cv_as_aarch64_mabi=no
24050 if test x$gcc_cv_as != x; then
24051 $as_echo '.text' > conftest.s
24052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057 test $ac_status = 0; }; }
24058 then
24059 gcc_cv_as_aarch64_mabi=yes
24060 else
24061 echo "configure: failed program was" >&5
24062 cat conftest.s >&5
24064 rm -f conftest.o conftest.s
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24068 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24070 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24072 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24074 else
24075 if test x$with_abi = xilp32; then
24076 as_fn_error "Assembler does not support -mabi=ilp32.\
24077 Upgrade the Assembler." "$LINENO" 5
24079 if test x"$with_multilib_list" = xdefault; then
24080 TM_MULTILIB_CONFIG=lp64
24081 else
24082 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24083 for aarch64_multilib in ${aarch64_multilibs}; do
24084 case ${aarch64_multilib} in
24085 ilp32)
24086 as_fn_error "Assembler does not support -mabi=ilp32.\
24087 Upgrade the Assembler." "$LINENO" 5
24091 esac
24092 done
24095 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24096 # Check whether --enable-fix-cortex-a53-835769 was given.
24097 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24098 enableval=$enable_fix_cortex_a53_835769;
24099 case $enableval in
24100 yes)
24101 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24106 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24107 Valid choices are 'yes' and 'no'." "$LINENO" 5
24110 esac
24114 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24115 # Check whether --enable-fix-cortex-a53-843419 was given.
24116 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24117 enableval=$enable_fix_cortex_a53_843419;
24118 case $enableval in
24119 yes)
24120 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24125 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24126 Valid choices are 'yes' and 'no'." "$LINENO" 5
24129 esac
24135 # All TARGET_ABI_OSF targets.
24136 alpha*-*-linux* | alpha*-*-*bsd*)
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24138 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24139 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24141 else
24142 gcc_cv_as_alpha_explicit_relocs=no
24143 if test $in_tree_gas = yes; then
24144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24145 then gcc_cv_as_alpha_explicit_relocs=yes
24147 elif test x$gcc_cv_as != x; then
24148 $as_echo ' .set nomacro
24149 .text
24150 extbl $3, $2, $3 !lituse_bytoff!1
24151 ldq $2, a($29) !literal!1
24152 ldq $4, b($29) !literal!2
24153 ldq_u $3, 0($2) !lituse_base!1
24154 ldq $27, f($29) !literal!5
24155 jsr $26, ($27), f !lituse_jsr!5
24156 ldah $29, 0($26) !gpdisp!3
24157 lda $0, c($29) !gprel
24158 ldah $1, d($29) !gprelhigh
24159 lda $1, d($1) !gprellow
24160 lda $29, 0($29) !gpdisp!3' > conftest.s
24161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24166 test $ac_status = 0; }; }
24167 then
24168 gcc_cv_as_alpha_explicit_relocs=yes
24169 else
24170 echo "configure: failed program was" >&5
24171 cat conftest.s >&5
24173 rm -f conftest.o conftest.s
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24177 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24178 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24180 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24184 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24185 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 gcc_cv_as_alpha_jsrdirect_relocs=no
24189 if test $in_tree_gas = yes; then
24190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24191 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24193 elif test x$gcc_cv_as != x; then
24194 $as_echo ' .set nomacro
24195 .text
24196 ldq $27, a($29) !literal!1
24197 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; }
24204 then
24205 gcc_cv_as_alpha_jsrdirect_relocs=yes
24206 else
24207 echo "configure: failed program was" >&5
24208 cat conftest.s >&5
24210 rm -f conftest.o conftest.s
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24214 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24215 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24217 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24222 avr-*-*)
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24224 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24225 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24227 else
24228 gcc_cv_as_avr_mlink_relax=no
24229 if test x$gcc_cv_as != x; then
24230 $as_echo '.text' > conftest.s
24231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24234 ac_status=$?
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; }
24237 then
24238 gcc_cv_as_avr_mlink_relax=yes
24239 else
24240 echo "configure: failed program was" >&5
24241 cat conftest.s >&5
24243 rm -f conftest.o conftest.s
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24247 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24248 if test $gcc_cv_as_avr_mlink_relax = yes; then
24250 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24255 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24256 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24257 $as_echo_n "(cached) " >&6
24258 else
24259 gcc_cv_as_avr_mrmw=no
24260 if test x$gcc_cv_as != x; then
24261 $as_echo '.text' > conftest.s
24262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24267 test $ac_status = 0; }; }
24268 then
24269 gcc_cv_as_avr_mrmw=yes
24270 else
24271 echo "configure: failed program was" >&5
24272 cat conftest.s >&5
24274 rm -f conftest.o conftest.s
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24278 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24279 if test $gcc_cv_as_avr_mrmw = yes; then
24281 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24286 cris-*-*)
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24288 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24289 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24290 $as_echo_n "(cached) " >&6
24291 else
24292 gcc_cv_as_cris_no_mul_bug=no
24293 if test $in_tree_gas = yes; then
24294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24295 then gcc_cv_as_cris_no_mul_bug=yes
24297 elif test x$gcc_cv_as != x; then
24298 $as_echo '.text' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_cris_no_mul_bug=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_cris_no_mul_bug" >&5
24315 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24316 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24318 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24323 sparc*-*-*)
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24325 $as_echo_n "checking assembler for .register... " >&6; }
24326 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329 gcc_cv_as_sparc_register_op=no
24330 if test x$gcc_cv_as != x; then
24331 $as_echo '.register %g2, #scratch' > conftest.s
24332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337 test $ac_status = 0; }; }
24338 then
24339 gcc_cv_as_sparc_register_op=yes
24340 else
24341 echo "configure: failed program was" >&5
24342 cat conftest.s >&5
24344 rm -f conftest.o conftest.s
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24348 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24349 if test $gcc_cv_as_sparc_register_op = yes; then
24351 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24356 $as_echo_n "checking assembler for #nobits... " >&6; }
24357 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24358 $as_echo_n "(cached) " >&6
24359 else
24360 gcc_cv_as_sparc_nobits=no
24361 if test x$gcc_cv_as != x; then
24362 $as_echo '.section "nobits",#alloc,#write,#nobits
24363 .section "progbits",#alloc,#write,#progbits' > conftest.s
24364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; }
24370 then
24371 gcc_cv_as_sparc_nobits=yes
24372 else
24373 echo "configure: failed program was" >&5
24374 cat conftest.s >&5
24376 rm -f conftest.o conftest.s
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24380 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24383 cat >>confdefs.h <<_ACEOF
24384 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24385 _ACEOF
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24389 $as_echo_n "checking assembler for -relax option... " >&6; }
24390 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24391 $as_echo_n "(cached) " >&6
24392 else
24393 gcc_cv_as_sparc_relax=no
24394 if test x$gcc_cv_as != x; then
24395 $as_echo '.text' > conftest.s
24396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24401 test $ac_status = 0; }; }
24402 then
24403 gcc_cv_as_sparc_relax=yes
24404 else
24405 echo "configure: failed program was" >&5
24406 cat conftest.s >&5
24408 rm -f conftest.o conftest.s
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24412 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24413 if test $gcc_cv_as_sparc_relax = yes; then
24415 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24420 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24421 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24422 $as_echo_n "(cached) " >&6
24423 else
24424 gcc_cv_as_sparc_gotdata_op=no
24425 if test x$gcc_cv_as != x; then
24426 $as_echo '.text
24427 .align 4
24428 foo:
24430 bar:
24431 sethi %gdop_hix22(foo), %g1
24432 xor %g1, %gdop_lox10(foo), %g1
24433 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439 test $ac_status = 0; }; }
24440 then
24441 if test x$gcc_cv_ld != x \
24442 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24443 if test x$gcc_cv_objdump != x; then
24444 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24445 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24446 gcc_cv_as_sparc_gotdata_op=no
24447 else
24448 gcc_cv_as_sparc_gotdata_op=yes
24452 rm -f conftest
24453 else
24454 echo "configure: failed program was" >&5
24455 cat conftest.s >&5
24457 rm -f conftest.o conftest.s
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24461 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24462 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24464 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24469 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24470 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24472 else
24473 gcc_cv_as_sparc_ua_pcrel=no
24474 if test x$gcc_cv_as != x; then
24475 $as_echo '.text
24476 foo:
24478 .data
24479 .align 4
24480 .byte 0
24481 .uaword %r_disp32(foo)' > conftest.s
24482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24487 test $ac_status = 0; }; }
24488 then
24489 if test x$gcc_cv_ld != x \
24490 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24491 gcc_cv_as_sparc_ua_pcrel=yes
24493 rm -f conftest
24494 else
24495 echo "configure: failed program was" >&5
24496 cat conftest.s >&5
24498 rm -f conftest.o conftest.s
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24502 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24503 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24505 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24509 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24510 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24512 else
24513 gcc_cv_as_sparc_ua_pcrel_hidden=no
24514 if test x$gcc_cv_as != x; then
24515 $as_echo '.data
24516 .align 4
24517 .byte 0x31
24518 .uaword %r_disp32(foo)
24519 .byte 0x32, 0x33, 0x34
24520 .global foo
24521 .hidden foo
24522 foo:
24523 .skip 4' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24532 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24533 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24534 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24535 if $gcc_cv_objdump -R conftest 2> /dev/null \
24536 | grep 'DISP32' > /dev/null 2>&1; then
24538 else
24539 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24542 rm -f conftest
24543 else
24544 echo "configure: failed program was" >&5
24545 cat conftest.s >&5
24547 rm -f conftest.o conftest.s
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24551 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24552 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24554 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24558 fi # unaligned pcrel relocs
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24561 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24562 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_sparc_offsetable_lo10=no
24566 if test x$gcc_cv_as != x; then
24567 $as_echo '.text
24568 or %g1, %lo(ab) + 12, %g1
24569 or %g1, %lo(ab + 12), %g1' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 if test x$gcc_cv_objdump != x \
24578 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24579 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24580 gcc_cv_as_sparc_offsetable_lo10=yes
24582 else
24583 echo "configure: failed program was" >&5
24584 cat conftest.s >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24590 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24591 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24593 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24598 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24599 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24601 else
24602 gcc_cv_as_sparc_fmaf=no
24603 if test x$gcc_cv_as != x; then
24604 $as_echo '.text
24605 .register %g2, #scratch
24606 .register %g3, #scratch
24607 .align 4
24608 fmaddd %f0, %f2, %f4, %f6
24609 addxccc %g1, %g2, %g3
24610 fsrl32 %f2, %f4, %f8
24611 fnaddd %f10, %f12, %f14' > conftest.s
24612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24618 then
24619 gcc_cv_as_sparc_fmaf=yes
24620 else
24621 echo "configure: failed program was" >&5
24622 cat conftest.s >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24628 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24629 if test $gcc_cv_as_sparc_fmaf = yes; then
24631 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24636 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24637 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24639 else
24640 gcc_cv_as_sparc_sparc4=no
24641 if test x$gcc_cv_as != x; then
24642 $as_echo '.text
24643 .register %g2, #scratch
24644 .register %g3, #scratch
24645 .align 4
24646 cxbe %g2, %g3, 1f
24647 1: cwbneg %g2, %g3, 1f
24648 1: sha1
24650 aes_kexpand0 %f4, %f6, %f8
24651 des_round %f38, %f40, %f42, %f44
24652 camellia_f %f54, %f56, %f58, %f60
24653 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24656 (eval $ac_try) 2>&5
24657 ac_status=$?
24658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24659 test $ac_status = 0; }; }
24660 then
24661 gcc_cv_as_sparc_sparc4=yes
24662 else
24663 echo "configure: failed program was" >&5
24664 cat conftest.s >&5
24666 rm -f conftest.o conftest.s
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24670 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24671 if test $gcc_cv_as_sparc_sparc4 = yes; then
24673 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24678 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24679 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gcc_cv_as_sparc_leon=no
24683 if test x$gcc_cv_as != x; then
24684 $as_echo '.text
24685 .register %g2, #scratch
24686 .register %g3, #scratch
24687 .align 4
24688 smac %g2, %g3, %g1
24689 umac %g2, %g3, %g1
24690 casa [%g2] 0xb, %g3, %g1' > conftest.s
24691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24696 test $ac_status = 0; }; }
24697 then
24698 gcc_cv_as_sparc_leon=yes
24699 else
24700 echo "configure: failed program was" >&5
24701 cat conftest.s >&5
24703 rm -f conftest.o conftest.s
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24707 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24708 if test $gcc_cv_as_sparc_leon = yes; then
24710 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24715 i[34567]86-*-* | x86_64-*-*)
24716 case $target_os in
24717 cygwin*)
24718 # Full C++ conformance when using a shared libstdc++-v3 requires some
24719 # support from the Cygwin DLL, which in more recent versions exports
24720 # wrappers to aid in interposing and redirecting operators new, delete,
24721 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24722 # are configuring for a version of Cygwin that exports the wrappers.
24723 if test x$host = x$target && test x$host_cpu = xi686; then
24724 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24725 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24726 gcc_ac_cygwin_dll_wrappers=yes
24727 else
24728 gcc_ac_cygwin_dll_wrappers=no
24731 else
24732 # Can't check presence of libc functions during cross-compile, so
24733 # we just have to assume we're building for an up-to-date target.
24734 gcc_ac_cygwin_dll_wrappers=yes
24737 cat >>confdefs.h <<_ACEOF
24738 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24739 _ACEOF
24741 esac
24742 case $target_os in
24743 cygwin* | pe | mingw32* | interix*)
24744 # Recent binutils allows the three-operand form of ".comm" on PE. This
24745 # definition is used unconditionally to initialise the default state of
24746 # the target option variable that governs usage of the feature.
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24748 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24749 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_comm_has_align=no
24753 if test $in_tree_gas = yes; then
24754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24755 then gcc_cv_as_comm_has_align=yes
24757 elif test x$gcc_cv_as != x; then
24758 $as_echo '.comm foo,1,32' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_comm_has_align=yes
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24775 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24778 cat >>confdefs.h <<_ACEOF
24779 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24780 _ACEOF
24782 # Used for DWARF 2 in PE
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24784 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24785 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24786 $as_echo_n "(cached) " >&6
24787 else
24788 gcc_cv_as_ix86_pe_secrel32=no
24789 if test $in_tree_gas = yes; then
24790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24791 then gcc_cv_as_ix86_pe_secrel32=yes
24793 elif test x$gcc_cv_as != x; then
24794 $as_echo '.text
24795 foo: nop
24796 .data
24797 .secrel32 foo' > conftest.s
24798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }
24804 then
24805 if test x$gcc_cv_ld != x \
24806 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24807 gcc_cv_as_ix86_pe_secrel32=yes
24809 rm -f conftest
24810 else
24811 echo "configure: failed program was" >&5
24812 cat conftest.s >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24818 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24819 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24821 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24824 # Test if the assembler supports the extended form of the .section
24825 # directive that specifies section alignment. LTO support uses this,
24826 # but normally only after installation, so we warn but don't fail the
24827 # configure if LTO is enabled but the assembler does not support it.
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24829 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24830 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24831 $as_echo_n "(cached) " >&6
24832 else
24833 gcc_cv_as_section_has_align=no
24834 if test $in_tree_gas = yes; then
24835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24836 then gcc_cv_as_section_has_align=yes
24838 elif test x$gcc_cv_as != x; then
24839 $as_echo '.section lto_test,"dr0"' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847 gcc_cv_as_section_has_align=yes
24848 else
24849 echo "configure: failed program was" >&5
24850 cat conftest.s >&5
24852 rm -f conftest.o conftest.s
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24856 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24858 if test x$gcc_cv_as_section_has_align != xyes; then
24859 case ",$enable_languages," in
24860 *,lto,*)
24861 { $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
24862 $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;}
24864 esac
24867 esac
24869 # Test if the assembler supports the section flag 'e' for specifying
24870 # an excluded section.
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24872 $as_echo_n "checking assembler for .section with e... " >&6; }
24873 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24874 $as_echo_n "(cached) " >&6
24875 else
24876 gcc_cv_as_section_has_e=no
24877 if test $in_tree_gas = yes; then
24878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24879 then gcc_cv_as_section_has_e=yes
24881 elif test x$gcc_cv_as != x; then
24882 $as_echo '.section foo1,"e"
24883 .byte 0,0,0,0' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 gcc_cv_as_section_has_e=yes
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24900 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24903 cat >>confdefs.h <<_ACEOF
24904 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24905 _ACEOF
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24909 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24910 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_ix86_filds=no
24914 if test x$gcc_cv_as != x; then
24915 $as_echo 'filds mem; fists mem' > conftest.s
24916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24921 test $ac_status = 0; }; }
24922 then
24923 gcc_cv_as_ix86_filds=yes
24924 else
24925 echo "configure: failed program was" >&5
24926 cat conftest.s >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24932 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24933 if test $gcc_cv_as_ix86_filds = yes; then
24935 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24940 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24941 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24942 $as_echo_n "(cached) " >&6
24943 else
24944 gcc_cv_as_ix86_fildq=no
24945 if test x$gcc_cv_as != x; then
24946 $as_echo 'fildq mem; fistpq mem' > conftest.s
24947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24950 ac_status=$?
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24953 then
24954 gcc_cv_as_ix86_fildq=yes
24955 else
24956 echo "configure: failed program was" >&5
24957 cat conftest.s >&5
24959 rm -f conftest.o conftest.s
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24963 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24964 if test $gcc_cv_as_ix86_fildq = yes; then
24966 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24971 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24972 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24974 else
24975 gcc_cv_as_ix86_cmov_sun_syntax=no
24976 if test x$gcc_cv_as != x; then
24977 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24983 test $ac_status = 0; }; }
24984 then
24985 gcc_cv_as_ix86_cmov_sun_syntax=yes
24986 else
24987 echo "configure: failed program was" >&5
24988 cat conftest.s >&5
24990 rm -f conftest.o conftest.s
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24994 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24995 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24997 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25002 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25003 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 gcc_cv_as_ix86_ffreep=no
25007 if test x$gcc_cv_as != x; then
25008 $as_echo 'ffreep %st(1)' > conftest.s
25009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25011 (eval $ac_try) 2>&5
25012 ac_status=$?
25013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25014 test $ac_status = 0; }; }
25015 then
25016 gcc_cv_as_ix86_ffreep=yes
25017 else
25018 echo "configure: failed program was" >&5
25019 cat conftest.s >&5
25021 rm -f conftest.o conftest.s
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25025 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25026 if test $gcc_cv_as_ix86_ffreep = yes; then
25028 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25033 $as_echo_n "checking assembler for .quad directive... " >&6; }
25034 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25036 else
25037 gcc_cv_as_ix86_quad=no
25038 if test x$gcc_cv_as != x; then
25039 $as_echo '.quad 0' > conftest.s
25040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }; }
25046 then
25047 gcc_cv_as_ix86_quad=yes
25048 else
25049 echo "configure: failed program was" >&5
25050 cat conftest.s >&5
25052 rm -f conftest.o conftest.s
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25056 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25057 if test $gcc_cv_as_ix86_quad = yes; then
25059 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25064 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25065 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25067 else
25068 gcc_cv_as_ix86_sahf=no
25069 if test x$gcc_cv_as != x; then
25070 $as_echo '.code64
25071 sahf' > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25078 then
25079 gcc_cv_as_ix86_sahf=yes
25080 else
25081 echo "configure: failed program was" >&5
25082 cat conftest.s >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25088 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25089 if test $gcc_cv_as_ix86_sahf = yes; then
25091 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25096 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25097 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25098 $as_echo_n "(cached) " >&6
25099 else
25100 gcc_cv_as_ix86_interunit_movq=no
25101 if test x$gcc_cv_as != x; then
25102 $as_echo '.code64
25103 movq %mm0, %rax
25104 movq %rax, %xmm0' > conftest.s
25105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25110 test $ac_status = 0; }; }
25111 then
25112 gcc_cv_as_ix86_interunit_movq=yes
25113 else
25114 echo "configure: failed program was" >&5
25115 cat conftest.s >&5
25117 rm -f conftest.o conftest.s
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25121 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25124 cat >>confdefs.h <<_ACEOF
25125 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25126 _ACEOF
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25130 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25131 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25133 else
25134 gcc_cv_as_ix86_hle=no
25135 if test x$gcc_cv_as != x; then
25136 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }
25143 then
25144 gcc_cv_as_ix86_hle=yes
25145 else
25146 echo "configure: failed program was" >&5
25147 cat conftest.s >&5
25149 rm -f conftest.o conftest.s
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25153 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25154 if test $gcc_cv_as_ix86_hle = yes; then
25156 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25161 $as_echo_n "checking assembler for swap suffix... " >&6; }
25162 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25165 gcc_cv_as_ix86_swap=no
25166 if test x$gcc_cv_as != x; then
25167 $as_echo 'movl.s %esp, %ebp' > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25174 then
25175 gcc_cv_as_ix86_swap=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25184 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25185 if test $gcc_cv_as_ix86_swap = yes; then
25187 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25192 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25193 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25194 $as_echo_n "(cached) " >&6
25195 else
25196 gcc_cv_as_ix86_diff_sect_delta=no
25197 if test x$gcc_cv_as != x; then
25198 $as_echo '.section .rodata
25199 .L1:
25200 .long .L2-.L1
25201 .long .L3-.L1
25202 .text
25203 .L3: nop
25204 .L2: nop' > conftest.s
25205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25211 then
25212 gcc_cv_as_ix86_diff_sect_delta=yes
25213 else
25214 echo "configure: failed program was" >&5
25215 cat conftest.s >&5
25217 rm -f conftest.o conftest.s
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25221 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25222 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25224 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25228 # These two are used unconditionally by i386.[ch]; it is to be defined
25229 # to 1 if the feature is present, 0 otherwise.
25230 as_ix86_gotoff_in_data_opt=
25231 if test x$gas = xyes; then
25232 as_ix86_gotoff_in_data_opt="--32"
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25235 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25236 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25237 $as_echo_n "(cached) " >&6
25238 else
25239 gcc_cv_as_ix86_gotoff_in_data=no
25240 if test $in_tree_gas = yes; then
25241 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25242 then gcc_cv_as_ix86_gotoff_in_data=yes
25244 elif test x$gcc_cv_as != x; then
25245 $as_echo ' .text
25246 .L0:
25248 .data
25249 .long .L0@GOTOFF' > conftest.s
25250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 then
25257 gcc_cv_as_ix86_gotoff_in_data=yes
25258 else
25259 echo "configure: failed program was" >&5
25260 cat conftest.s >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25266 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25269 cat >>confdefs.h <<_ACEOF
25270 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25271 _ACEOF
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25275 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25276 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25277 $as_echo_n "(cached) " >&6
25278 else
25279 gcc_cv_as_ix86_rep_lock_prefix=no
25280 if test x$gcc_cv_as != x; then
25281 $as_echo 'rep movsl
25282 rep ret
25283 rep nop
25284 rep bsf %ecx, %eax
25285 rep bsr %ecx, %eax
25286 lock addl %edi, (%eax,%esi)
25287 lock orl $0, (%esp)' > conftest.s
25288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25291 ac_status=$?
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25294 then
25295 gcc_cv_as_ix86_rep_lock_prefix=yes
25296 else
25297 echo "configure: failed program was" >&5
25298 cat conftest.s >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25304 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25305 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25307 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25312 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25313 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_ix86_ud2=no
25317 if test x$gcc_cv_as != x; then
25318 $as_echo 'ud2' > conftest.s
25319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }
25325 then
25326 gcc_cv_as_ix86_ud2=yes
25327 else
25328 echo "configure: failed program was" >&5
25329 cat conftest.s >&5
25331 rm -f conftest.o conftest.s
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25335 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25336 if test $gcc_cv_as_ix86_ud2 = yes; then
25338 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25343 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25344 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25347 gcc_cv_as_ix86_tlsgdplt=no
25348 if test x$gcc_cv_as != x; then
25349 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 if test x$gcc_cv_ld != x \
25358 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25359 gcc_cv_as_ix86_tlsgdplt=yes
25361 rm -f conftest
25362 else
25363 echo "configure: failed program was" >&5
25364 cat conftest.s >&5
25366 rm -f conftest.o conftest.s
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25370 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25371 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25373 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25377 conftest_s='
25378 .section .tdata,"aw'$tls_section_flag'",@progbits
25379 tls_ld:
25380 .section .text,"ax",@progbits
25381 call tls_ld@tlsldmplt'
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25383 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25384 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 gcc_cv_as_ix86_tlsldmplt=no
25388 if 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 if test x$gcc_cv_ld != x \
25398 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25399 gcc_cv_as_ix86_tlsldmplt=yes
25401 rm -f conftest
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25410 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25413 cat >>confdefs.h <<_ACEOF
25414 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25415 _ACEOF
25418 # Enforce 32-bit output with gas and gld.
25419 if test x$gas = xyes; then
25420 as_ix86_tls_ldm_opt="--32"
25422 if echo "$ld_ver" | grep GNU > /dev/null; then
25423 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25424 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25425 else
25426 ld_ix86_tls_ldm_opt="-melf_i386"
25429 conftest_s='
25430 .section .text,"ax",@progbits
25431 .globl _start
25432 .type _start, @function
25433 _start:
25434 leal value@tlsldm(%ebx), %eax
25435 call ___tls_get_addr@plt
25437 .section .tdata,"aw'$tls_section_flag'",@progbits
25438 .type value, @object
25439 value:'
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25441 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25442 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25444 else
25445 gcc_cv_as_ix86_tlsldm=no
25446 if test x$gcc_cv_as != x; then
25447 $as_echo "$conftest_s" > conftest.s
25448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25450 (eval $ac_try) 2>&5
25451 ac_status=$?
25452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25453 test $ac_status = 0; }; }
25454 then
25455 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25456 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25457 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25458 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25459 gcc_cv_as_ix86_tlsldm=yes
25462 rm -f conftest
25463 else
25464 echo "configure: failed program was" >&5
25465 cat conftest.s >&5
25467 rm -f conftest.o conftest.s
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25471 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25474 cat >>confdefs.h <<_ACEOF
25475 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25476 _ACEOF
25481 ia64*-*-*)
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25483 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25484 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25486 else
25487 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25488 if test $in_tree_gas = yes; then
25489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25490 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25492 elif test x$gcc_cv_as != x; then
25493 $as_echo ' .text
25494 addl r15 = @ltoffx(x#), gp
25496 ld8.mov r16 = [r15], x#' > conftest.s
25497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25503 then
25504 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25505 else
25506 echo "configure: failed program was" >&5
25507 cat conftest.s >&5
25509 rm -f conftest.o conftest.s
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25513 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25514 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25516 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25522 powerpc*-*-*)
25523 case $target in
25524 *-*-aix*) conftest_s=' .machine "pwr5"
25525 .csect .text[PR]
25526 mfcr 3,128';;
25527 *-*-darwin*)
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25529 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25530 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25533 gcc_cv_as_machine_directive=no
25534 if test x$gcc_cv_as != x; then
25535 $as_echo ' .machine ppc7400' > conftest.s
25536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25538 (eval $ac_try) 2>&5
25539 ac_status=$?
25540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25541 test $ac_status = 0; }; }
25542 then
25543 gcc_cv_as_machine_directive=yes
25544 else
25545 echo "configure: failed program was" >&5
25546 cat conftest.s >&5
25548 rm -f conftest.o conftest.s
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25552 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25554 if test x$gcc_cv_as_machine_directive != xyes; then
25555 echo "*** This target requires an assembler supporting \".machine\"" >&2
25556 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25557 test x$build = x$target && exit 1
25559 conftest_s=' .text
25560 mfcr r3,128';;
25561 *) conftest_s=' .machine power4
25562 .text
25563 mfcr 3,128';;
25564 esac
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25567 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25568 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25569 $as_echo_n "(cached) " >&6
25570 else
25571 gcc_cv_as_powerpc_mfcrf=no
25572 if test $in_tree_gas = yes; then
25573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25574 then gcc_cv_as_powerpc_mfcrf=yes
25576 elif test x$gcc_cv_as != x; then
25577 $as_echo "$conftest_s" > conftest.s
25578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25583 test $ac_status = 0; }; }
25584 then
25585 gcc_cv_as_powerpc_mfcrf=yes
25586 else
25587 echo "configure: failed program was" >&5
25588 cat conftest.s >&5
25590 rm -f conftest.o conftest.s
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25594 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25595 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25597 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25601 case $target in
25602 *-*-aix*) conftest_s=' .machine "pwr5"
25603 .csect .text[PR]
25604 popcntb 3,3';;
25605 *) conftest_s=' .machine power5
25606 .text
25607 popcntb 3,3';;
25608 esac
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25611 $as_echo_n "checking assembler for popcntb support... " >&6; }
25612 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_powerpc_popcntb=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25618 then gcc_cv_as_powerpc_popcntb=yes
25620 elif test x$gcc_cv_as != x; then
25621 $as_echo "$conftest_s" > conftest.s
25622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25628 then
25629 gcc_cv_as_powerpc_popcntb=yes
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25638 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25639 if test $gcc_cv_as_powerpc_popcntb = yes; then
25641 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25645 case $target in
25646 *-*-aix*) conftest_s=' .machine "pwr5x"
25647 .csect .text[PR]
25648 frin 1,1';;
25649 *) conftest_s=' .machine power5
25650 .text
25651 frin 1,1';;
25652 esac
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25655 $as_echo_n "checking assembler for fp round support... " >&6; }
25656 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25657 $as_echo_n "(cached) " >&6
25658 else
25659 gcc_cv_as_powerpc_fprnd=no
25660 if test $in_tree_gas = yes; then
25661 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25662 then gcc_cv_as_powerpc_fprnd=yes
25664 elif test x$gcc_cv_as != x; then
25665 $as_echo "$conftest_s" > conftest.s
25666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25668 (eval $ac_try) 2>&5
25669 ac_status=$?
25670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25671 test $ac_status = 0; }; }
25672 then
25673 gcc_cv_as_powerpc_fprnd=yes
25674 else
25675 echo "configure: failed program was" >&5
25676 cat conftest.s >&5
25678 rm -f conftest.o conftest.s
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25682 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25683 if test $gcc_cv_as_powerpc_fprnd = yes; then
25685 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25689 case $target in
25690 *-*-aix*) conftest_s=' .machine "pwr6"
25691 .csect .text[PR]
25692 mffgpr 1,3';;
25693 *) conftest_s=' .machine power6
25694 .text
25695 mffgpr 1,3';;
25696 esac
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25699 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25700 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25702 else
25703 gcc_cv_as_powerpc_mfpgpr=no
25704 if test $in_tree_gas = yes; then
25705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25706 then gcc_cv_as_powerpc_mfpgpr=yes
25708 elif test x$gcc_cv_as != x; then
25709 $as_echo "$conftest_s" > conftest.s
25710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25716 then
25717 gcc_cv_as_powerpc_mfpgpr=yes
25718 else
25719 echo "configure: failed program was" >&5
25720 cat conftest.s >&5
25722 rm -f conftest.o conftest.s
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25726 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25727 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25729 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25733 case $target in
25734 *-*-aix*) conftest_s=' .csect .text[PR]
25735 LCF..0:
25736 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25737 *-*-darwin*)
25738 conftest_s=' .text
25739 LCF0:
25740 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25741 *) conftest_s=' .text
25742 .LCF0:
25743 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25744 esac
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25747 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25748 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25749 $as_echo_n "(cached) " >&6
25750 else
25751 gcc_cv_as_powerpc_rel16=no
25752 if test $in_tree_gas = yes; then
25753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25754 then gcc_cv_as_powerpc_rel16=yes
25756 elif test x$gcc_cv_as != x; then
25757 $as_echo "$conftest_s" > conftest.s
25758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25763 test $ac_status = 0; }; }
25764 then
25765 gcc_cv_as_powerpc_rel16=yes
25766 else
25767 echo "configure: failed program was" >&5
25768 cat conftest.s >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25774 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25775 if test $gcc_cv_as_powerpc_rel16 = yes; then
25777 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25781 case $target in
25782 *-*-aix*) conftest_s=' .machine "pwr6"
25783 .csect .text[PR]
25784 cmpb 3,4,5';;
25785 *) conftest_s=' .machine power6
25786 .text
25787 cmpb 3,4,5';;
25788 esac
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25791 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25792 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_powerpc_cmpb=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25798 then gcc_cv_as_powerpc_cmpb=yes
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo "$conftest_s" > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 gcc_cv_as_powerpc_cmpb=yes
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25818 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25819 if test $gcc_cv_as_powerpc_cmpb = yes; then
25821 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25825 case $target in
25826 *-*-aix*) conftest_s=' .machine "pwr6"
25827 .csect .text[PR]
25828 dadd 1,2,3';;
25829 *) conftest_s=' .machine power6
25830 .text
25831 dadd 1,2,3';;
25832 esac
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25835 $as_echo_n "checking assembler for decimal float support... " >&6; }
25836 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 gcc_cv_as_powerpc_dfp=no
25840 if test $in_tree_gas = yes; then
25841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25842 then gcc_cv_as_powerpc_dfp=yes
25844 elif test x$gcc_cv_as != x; then
25845 $as_echo "$conftest_s" > conftest.s
25846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25851 test $ac_status = 0; }; }
25852 then
25853 gcc_cv_as_powerpc_dfp=yes
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25858 rm -f conftest.o conftest.s
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25862 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25863 if test $gcc_cv_as_powerpc_dfp = yes; then
25865 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25869 case $target in
25870 *-*-aix*) conftest_s=' .machine "pwr7"
25871 .csect .text[PR]
25872 lxvd2x 1,2,3';;
25873 *) conftest_s=' .machine power7
25874 .text
25875 lxvd2x 1,2,3';;
25876 esac
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25879 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25880 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25881 $as_echo_n "(cached) " >&6
25882 else
25883 gcc_cv_as_powerpc_vsx=no
25884 if test $in_tree_gas = yes; then
25885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25886 then gcc_cv_as_powerpc_vsx=yes
25888 elif test x$gcc_cv_as != x; then
25889 $as_echo "$conftest_s" > conftest.s
25890 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }; }
25896 then
25897 gcc_cv_as_powerpc_vsx=yes
25898 else
25899 echo "configure: failed program was" >&5
25900 cat conftest.s >&5
25902 rm -f conftest.o conftest.s
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25906 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25907 if test $gcc_cv_as_powerpc_vsx = yes; then
25909 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25913 case $target in
25914 *-*-aix*) conftest_s=' .machine "pwr7"
25915 .csect .text[PR]
25916 popcntd 3,3';;
25917 *) conftest_s=' .machine power7
25918 .text
25919 popcntd 3,3';;
25920 esac
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25923 $as_echo_n "checking assembler for popcntd support... " >&6; }
25924 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25925 $as_echo_n "(cached) " >&6
25926 else
25927 gcc_cv_as_powerpc_popcntd=no
25928 if test $in_tree_gas = yes; then
25929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25930 then gcc_cv_as_powerpc_popcntd=yes
25932 elif test x$gcc_cv_as != x; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 gcc_cv_as_powerpc_popcntd=yes
25942 else
25943 echo "configure: failed program was" >&5
25944 cat conftest.s >&5
25946 rm -f conftest.o conftest.s
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25950 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25951 if test $gcc_cv_as_powerpc_popcntd = yes; then
25953 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25957 case $target in
25958 *-*-aix*) conftest_s=' .machine "pwr8"
25959 .csect .text[PR]';;
25960 *) conftest_s=' .machine power8
25961 .text';;
25962 esac
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25965 $as_echo_n "checking assembler for power8 support... " >&6; }
25966 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25967 $as_echo_n "(cached) " >&6
25968 else
25969 gcc_cv_as_powerpc_power8=no
25970 if test $in_tree_gas = yes; then
25971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25972 then gcc_cv_as_powerpc_power8=yes
25974 elif test x$gcc_cv_as != x; then
25975 $as_echo "$conftest_s" > conftest.s
25976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25981 test $ac_status = 0; }; }
25982 then
25983 gcc_cv_as_powerpc_power8=yes
25984 else
25985 echo "configure: failed program was" >&5
25986 cat conftest.s >&5
25988 rm -f conftest.o conftest.s
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25992 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25993 if test $gcc_cv_as_powerpc_power8 = yes; then
25995 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25999 case $target in
26000 *-*-aix*) conftest_s=' .csect .text[PR]
26001 lwsync';;
26002 *) conftest_s=' .text
26003 lwsync';;
26004 esac
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26007 $as_echo_n "checking assembler for lwsync support... " >&6; }
26008 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_as_powerpc_lwsync=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26014 then gcc_cv_as_powerpc_lwsync=yes
26016 elif test x$gcc_cv_as != x; then
26017 $as_echo "$conftest_s" > conftest.s
26018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26024 then
26025 gcc_cv_as_powerpc_lwsync=yes
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26034 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26035 if test $gcc_cv_as_powerpc_lwsync = yes; then
26037 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26041 case $target in
26042 *-*-aix*) conftest_s=' .machine "476"
26043 .csect .text[PR]
26044 dci 0';;
26045 *) conftest_s=' .machine "476"
26046 .text
26047 dci 0';;
26048 esac
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26051 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26052 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26054 else
26055 gcc_cv_as_powerpc_dci=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26058 then gcc_cv_as_powerpc_dci=yes
26060 elif test x$gcc_cv_as != x; then
26061 $as_echo "$conftest_s" > conftest.s
26062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26068 then
26069 gcc_cv_as_powerpc_dci=yes
26070 else
26071 echo "configure: failed program was" >&5
26072 cat conftest.s >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26078 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26079 if test $gcc_cv_as_powerpc_dci = yes; then
26081 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26086 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26087 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26088 $as_echo_n "(cached) " >&6
26089 else
26090 gcc_cv_as_powerpc_gnu_attribute=no
26091 if test $in_tree_gas = yes; then
26092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26093 then gcc_cv_as_powerpc_gnu_attribute=yes
26095 elif test x$gcc_cv_as != x; then
26096 $as_echo '.gnu_attribute 4,1' > conftest.s
26097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26102 test $ac_status = 0; }; }
26103 then
26104 gcc_cv_as_powerpc_gnu_attribute=yes
26105 else
26106 echo "configure: failed program was" >&5
26107 cat conftest.s >&5
26109 rm -f conftest.o conftest.s
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26113 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26114 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26116 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26121 $as_echo_n "checking assembler for tls marker support... " >&6; }
26122 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26123 $as_echo_n "(cached) " >&6
26124 else
26125 gcc_cv_as_powerpc_tls_markers=no
26126 if test $in_tree_gas = yes; then
26127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26128 then gcc_cv_as_powerpc_tls_markers=yes
26130 elif test x$gcc_cv_as != x; then
26131 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26134 (eval $ac_try) 2>&5
26135 ac_status=$?
26136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26137 test $ac_status = 0; }; }
26138 then
26139 gcc_cv_as_powerpc_tls_markers=yes
26140 else
26141 echo "configure: failed program was" >&5
26142 cat conftest.s >&5
26144 rm -f conftest.o conftest.s
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26148 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26149 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26151 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26155 case $target in
26156 *-*-aix*)
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26158 $as_echo_n "checking assembler for .ref support... " >&6; }
26159 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26160 $as_echo_n "(cached) " >&6
26161 else
26162 gcc_cv_as_aix_ref=no
26163 if test $in_tree_gas = yes; then
26164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26165 then gcc_cv_as_aix_ref=yes
26167 elif test x$gcc_cv_as != x; then
26168 $as_echo ' .csect stuff[rw]
26169 stuff:
26170 .long 1
26171 .extern sym
26172 .ref sym
26173 ' > conftest.s
26174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; }
26180 then
26181 gcc_cv_as_aix_ref=yes
26182 else
26183 echo "configure: failed program was" >&5
26184 cat conftest.s >&5
26186 rm -f conftest.o conftest.s
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26190 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26191 if test $gcc_cv_as_aix_ref = yes; then
26193 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26197 esac
26200 mips*-*-*)
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26202 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26203 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26204 $as_echo_n "(cached) " >&6
26205 else
26206 gcc_cv_as_mips_explicit_relocs=no
26207 if test $in_tree_gas = yes; then
26208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26209 then gcc_cv_as_mips_explicit_relocs=yes
26211 elif test x$gcc_cv_as != x; then
26212 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26219 then
26220 gcc_cv_as_mips_explicit_relocs=yes
26221 else
26222 echo "configure: failed program was" >&5
26223 cat conftest.s >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26229 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26230 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26231 if test x$target_cpu_default = x
26232 then target_cpu_default=MASK_EXPLICIT_RELOCS
26233 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26237 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26238 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26239 $as_echo_n "(cached) " >&6
26240 else
26241 gcc_cv_as_mips_no_shared=no
26242 if test $in_tree_gas = yes; then
26243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26244 then gcc_cv_as_mips_no_shared=yes
26246 elif test x$gcc_cv_as != x; then
26247 $as_echo 'nop' > conftest.s
26248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26250 (eval $ac_try) 2>&5
26251 ac_status=$?
26252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26253 test $ac_status = 0; }; }
26254 then
26255 gcc_cv_as_mips_no_shared=yes
26256 else
26257 echo "configure: failed program was" >&5
26258 cat conftest.s >&5
26260 rm -f conftest.o conftest.s
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26264 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26265 if test $gcc_cv_as_mips_no_shared = yes; then
26267 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26272 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26273 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26274 $as_echo_n "(cached) " >&6
26275 else
26276 gcc_cv_as_mips_gnu_attribute=no
26277 if test $in_tree_gas = yes; then
26278 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26279 then gcc_cv_as_mips_gnu_attribute=yes
26281 elif test x$gcc_cv_as != x; then
26282 $as_echo '.gnu_attribute 4,1' > conftest.s
26283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26285 (eval $ac_try) 2>&5
26286 ac_status=$?
26287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26288 test $ac_status = 0; }; }
26289 then
26290 gcc_cv_as_mips_gnu_attribute=yes
26291 else
26292 echo "configure: failed program was" >&5
26293 cat conftest.s >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26299 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26300 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26302 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26307 $as_echo_n "checking assembler for .module support... " >&6; }
26308 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_mips_dot_module=no
26312 if test x$gcc_cv_as != x; then
26313 $as_echo '.module mips2
26314 .module fp=xx' > conftest.s
26315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317 (eval $ac_try) 2>&5
26318 ac_status=$?
26319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320 test $ac_status = 0; }; }
26321 then
26322 gcc_cv_as_mips_dot_module=yes
26323 else
26324 echo "configure: failed program was" >&5
26325 cat conftest.s >&5
26327 rm -f conftest.o conftest.s
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26331 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26332 if test $gcc_cv_as_mips_dot_module = yes; then
26334 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26337 if test x$gcc_cv_as_mips_dot_module = xno \
26338 && test x$with_fp_32 != x; then
26339 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26343 $as_echo_n "checking assembler for .micromips support... " >&6; }
26344 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 gcc_cv_as_micromips_support=no
26348 if test x$gcc_cv_as != x; then
26349 $as_echo '.set micromips' > conftest.s
26350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26356 then
26357 gcc_cv_as_micromips_support=yes
26358 else
26359 echo "configure: failed program was" >&5
26360 cat conftest.s >&5
26362 rm -f conftest.o conftest.s
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26366 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26367 if test $gcc_cv_as_micromips_support = yes; then
26369 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26374 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26375 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26376 $as_echo_n "(cached) " >&6
26377 else
26378 gcc_cv_as_mips_dtprelword=no
26379 if test $in_tree_gas = yes; then
26380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26381 then gcc_cv_as_mips_dtprelword=yes
26383 elif test x$gcc_cv_as != x; then
26384 $as_echo '.section .tdata,"awT",@progbits
26386 .word 2
26387 .text
26388 .dtprelword x+0x8000' > conftest.s
26389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26395 then
26396 gcc_cv_as_mips_dtprelword=yes
26397 else
26398 echo "configure: failed program was" >&5
26399 cat conftest.s >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26405 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26406 if test $gcc_cv_as_mips_dtprelword = yes; then
26408 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26413 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26414 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 gcc_cv_as_mips_dspr1_mult=no
26418 if test x$gcc_cv_as != x; then
26419 $as_echo ' .set mips32r2
26420 .set nodspr2
26421 .set dsp
26422 madd $ac3,$4,$5
26423 maddu $ac3,$4,$5
26424 msub $ac3,$4,$5
26425 msubu $ac3,$4,$5
26426 mult $ac3,$4,$5
26427 multu $ac3,$4,$5' > conftest.s
26428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26433 test $ac_status = 0; }; }
26434 then
26435 gcc_cv_as_mips_dspr1_mult=yes
26436 else
26437 echo "configure: failed program was" >&5
26438 cat conftest.s >&5
26440 rm -f conftest.o conftest.s
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26444 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26445 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26447 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26452 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26453 gcc_cv_as_ld_jalr_reloc=no
26454 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26455 if test $in_tree_ld = yes ; then
26456 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 \
26457 && test $in_tree_ld_is_elf = yes; then
26458 gcc_cv_as_ld_jalr_reloc=yes
26460 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26461 echo ' .ent x' > conftest.s
26462 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26463 echo ' lw $25,%call16(y)($28)' >> conftest.s
26464 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26465 echo '1: jalr $25' >> conftest.s
26466 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26467 echo '1: jalr $25' >> conftest.s
26468 echo ' .end x' >> conftest.s
26469 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26470 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26471 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26472 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26473 gcc_cv_as_ld_jalr_reloc=yes
26476 rm -f conftest.*
26479 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26480 if test x$target_cpu_default = x; then
26481 target_cpu_default=MASK_RELAX_PIC_CALLS
26482 else
26483 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26487 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26490 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26491 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494 gcc_cv_ld_mips_personality_relaxation=no
26495 if test $in_tree_ld = yes ; then
26496 if test "$gcc_cv_gld_major_version" -eq 2 \
26497 -a "$gcc_cv_gld_minor_version" -ge 21 \
26498 -o "$gcc_cv_gld_major_version" -gt 2; then
26499 gcc_cv_ld_mips_personality_relaxation=yes
26501 elif test x$gcc_cv_as != x \
26502 -a x$gcc_cv_ld != x \
26503 -a x$gcc_cv_readelf != x ; then
26504 cat > conftest.s <<EOF
26505 .cfi_startproc
26506 .cfi_personality 0x80,indirect_ptr
26507 .ent test
26508 test:
26510 .end test
26511 .cfi_endproc
26513 .section .data,"aw",@progbits
26514 indirect_ptr:
26515 .dc.a personality
26517 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26518 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26519 if $gcc_cv_readelf -d conftest 2>&1 \
26520 | grep TEXTREL > /dev/null 2>&1; then
26522 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26523 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26525 else
26526 gcc_cv_ld_mips_personality_relaxation=yes
26530 rm -f conftest.s conftest.o conftest
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26533 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26534 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26536 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26541 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26542 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26543 $as_echo_n "(cached) " >&6
26544 else
26545 gcc_cv_as_mips_nan=no
26546 if test x$gcc_cv_as != x; then
26547 $as_echo '' > conftest.s
26548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26550 (eval $ac_try) 2>&5
26551 ac_status=$?
26552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26553 test $ac_status = 0; }; }
26554 then
26555 gcc_cv_as_mips_nan=yes
26556 else
26557 echo "configure: failed program was" >&5
26558 cat conftest.s >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26564 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26565 if test $gcc_cv_as_mips_nan = yes; then
26567 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26570 if test x$gcc_cv_as_mips_nan = xno \
26571 && test x$with_nan != x; then
26572 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26575 esac
26577 # Mips and HP-UX need the GNU assembler.
26578 # Linux on IA64 might be able to use the Intel assembler.
26580 case "$target" in
26581 mips*-*-* | *-*-hpux* )
26582 if test x$gas_flag = xyes \
26583 || test x"$host" != x"$build" \
26584 || test ! -x "$gcc_cv_as" \
26585 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26587 else
26588 echo "*** This configuration requires the GNU assembler" >&2
26589 exit 1
26592 esac
26594 # ??? Not all targets support dwarf2 debug_line, even within a version
26595 # of gas. Moreover, we need to emit a valid instruction to trigger any
26596 # info to the output file. So, as supported targets are added to gas 2.11,
26597 # add some instruction here to (also) show we expect this might work.
26598 # ??? Once 2.11 is released, probably need to add first known working
26599 # version to the per-target configury.
26600 case "$cpu_type" in
26601 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26602 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26603 | visium | xstormy16 | xtensa)
26604 insn="nop"
26606 ia64 | s390)
26607 insn="nop 0"
26609 mmix)
26610 insn="swym 0"
26612 esac
26613 if test x"$insn" != x; then
26614 conftest_s="\
26615 .file 1 \"conftest.s\"
26616 .loc 1 3 0
26617 $insn"
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26619 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26620 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_dwarf2_debug_line=no
26624 if test $in_tree_gas = yes; then
26625 if test $in_tree_gas_is_elf = yes \
26626 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26627 then gcc_cv_as_dwarf2_debug_line=yes
26629 elif test x$gcc_cv_as != x; then
26630 $as_echo "$conftest_s" > conftest.s
26631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26633 (eval $ac_try) 2>&5
26634 ac_status=$?
26635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26636 test $ac_status = 0; }; }
26637 then
26638 if test x$gcc_cv_objdump != x \
26639 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26640 | grep debug_line > /dev/null 2>&1; then
26641 gcc_cv_as_dwarf2_debug_line=yes
26643 else
26644 echo "configure: failed program was" >&5
26645 cat conftest.s >&5
26647 rm -f conftest.o conftest.s
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26651 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26654 # The .debug_line file table must be in the exact order that
26655 # we specified the files, since these indices are also used
26656 # by DW_AT_decl_file. Approximate this test by testing if
26657 # the assembler bitches if the same index is assigned twice.
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26659 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26660 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26661 $as_echo_n "(cached) " >&6
26662 else
26663 gcc_cv_as_dwarf2_file_buggy=no
26664 if test x$gcc_cv_as != x; then
26665 $as_echo ' .file 1 "foo.s"
26666 .file 1 "bar.s"' > conftest.s
26667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26672 test $ac_status = 0; }; }
26673 then
26674 gcc_cv_as_dwarf2_file_buggy=yes
26675 else
26676 echo "configure: failed program was" >&5
26677 cat conftest.s >&5
26679 rm -f conftest.o conftest.s
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26683 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26686 if test $gcc_cv_as_dwarf2_debug_line = yes \
26687 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26689 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26694 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26695 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26696 $as_echo_n "(cached) " >&6
26697 else
26698 gcc_cv_as_gdwarf2_flag=no
26699 if test $in_tree_gas = yes; then
26700 if test $in_tree_gas_is_elf = yes \
26701 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26702 then gcc_cv_as_gdwarf2_flag=yes
26704 elif test x$gcc_cv_as != x; then
26705 $as_echo "$insn" > conftest.s
26706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }
26712 then
26713 gcc_cv_as_gdwarf2_flag=yes
26714 else
26715 echo "configure: failed program was" >&5
26716 cat conftest.s >&5
26718 rm -f conftest.o conftest.s
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26722 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26723 if test $gcc_cv_as_gdwarf2_flag = yes; then
26725 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26730 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26731 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 gcc_cv_as_gstabs_flag=no
26735 if test $in_tree_gas = yes; then
26736 if test $in_tree_gas_is_elf = yes \
26737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26738 then gcc_cv_as_gstabs_flag=yes
26740 elif test x$gcc_cv_as != x; then
26741 $as_echo "$insn" > conftest.s
26742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26748 then
26749 gcc_cv_as_gstabs_flag=yes
26750 else
26751 echo "configure: failed program was" >&5
26752 cat conftest.s >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26758 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26759 if test $gcc_cv_as_gstabs_flag = yes; then
26761 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26766 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26767 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26769 else
26770 gcc_cv_as_debug_prefix_map_flag=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26773 then gcc_cv_as_debug_prefix_map_flag=yes
26775 elif test x$gcc_cv_as != x; then
26776 $as_echo "$insn" > conftest.s
26777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26782 test $ac_status = 0; }; }
26783 then
26784 gcc_cv_as_debug_prefix_map_flag=yes
26785 else
26786 echo "configure: failed program was" >&5
26787 cat conftest.s >&5
26789 rm -f conftest.o conftest.s
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26793 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26794 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26796 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26802 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26803 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26804 $as_echo_n "(cached) " >&6
26805 else
26806 gcc_cv_as_compress_debug=no
26807 if test x$gcc_cv_as != x; then
26808 $as_echo '' > conftest.s
26809 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26811 (eval $ac_try) 2>&5
26812 ac_status=$?
26813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26814 test $ac_status = 0; }; }
26815 then
26816 # gas compiled without zlib cannot compress debug sections and warns
26817 # about it, but still exits successfully. So check for this, too.
26818 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26819 then
26820 gcc_cv_as_compress_debug=0
26821 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26822 then
26823 gcc_cv_as_compress_debug=1
26824 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26825 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26826 else
26827 gcc_cv_as_compress_debug=0
26828 # FIXME: Future gas versions will support ELF gABI style via
26829 # --compress-debug-sections[=type].
26831 else
26832 echo "configure: failed program was" >&5
26833 cat conftest.s >&5
26835 rm -f conftest.o conftest.s
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26839 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26842 cat >>confdefs.h <<_ACEOF
26843 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26844 _ACEOF
26847 cat >>confdefs.h <<_ACEOF
26848 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26849 _ACEOF
26852 cat >>confdefs.h <<_ACEOF
26853 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26854 _ACEOF
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26858 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26859 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_as_lcomm_with_alignment=no
26863 if test x$gcc_cv_as != x; then
26864 $as_echo '.lcomm bar,4,16' > conftest.s
26865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26871 then
26872 gcc_cv_as_lcomm_with_alignment=yes
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26877 rm -f conftest.o conftest.s
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26881 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26882 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26884 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26888 if test x$with_sysroot = x && test x$host = x$target \
26889 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26890 && test "$prefix" != "NONE"; then
26892 cat >>confdefs.h <<_ACEOF
26893 #define PREFIX_INCLUDE_DIR "$prefix/include"
26894 _ACEOF
26898 # Determine the version of glibc, if any, used on the target.
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26900 $as_echo_n "checking for target glibc version... " >&6; }
26902 # Check whether --with-glibc-version was given.
26903 if test "${with_glibc_version+set}" = set; then :
26904 withval=$with_glibc_version;
26905 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26906 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26907 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26908 else
26909 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26911 else
26913 glibc_version_major=0
26914 glibc_version_minor=0
26915 if test -f $target_header_dir/features.h \
26916 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26917 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26918 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26919 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26924 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26926 cat >>confdefs.h <<_ACEOF
26927 #define TARGET_GLIBC_MAJOR $glibc_version_major
26928 _ACEOF
26931 cat >>confdefs.h <<_ACEOF
26932 #define TARGET_GLIBC_MINOR $glibc_version_minor
26933 _ACEOF
26936 # Check whether --enable-gnu-unique-object was given.
26937 if test "${enable_gnu_unique_object+set}" = set; then :
26938 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26939 yes | no) ;;
26940 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26941 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26942 esac
26943 else
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26945 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26946 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26947 $as_echo_n "(cached) " >&6
26948 else
26949 gcc_cv_as_gnu_unique_object=no
26950 if test $in_tree_gas = yes; then
26951 if test $in_tree_gas_is_elf = yes \
26952 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26953 then gcc_cv_as_gnu_unique_object=yes
26955 elif test x$gcc_cv_as != x; then
26956 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }; }
26963 then
26964 gcc_cv_as_gnu_unique_object=yes
26965 else
26966 echo "configure: failed program was" >&5
26967 cat conftest.s >&5
26969 rm -f conftest.o conftest.s
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26973 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26974 if test $gcc_cv_as_gnu_unique_object = yes; then
26975 # We need to unquote above to to use the definition from config.gcc.
26976 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26978 if test $glibc_version_major -gt 2 \
26979 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26980 enable_gnu_unique_object=yes
26986 if test x$enable_gnu_unique_object = xyes; then
26988 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26993 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26994 if test "${gcc_cv_as_line_zero+set}" = set; then :
26995 $as_echo_n "(cached) " >&6
26996 else
26997 gcc_cv_as_line_zero=no
26998 if test $in_tree_gas = yes; then
26999 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27000 then gcc_cv_as_line_zero=yes
27002 elif test "x$gcc_cv_as" != x; then
27003 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27004 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27009 test $ac_status = 0; }; } &&
27010 test "x`cat conftest.out`" = x
27011 then
27012 gcc_cv_as_line_zero=yes
27013 else
27014 echo "configure: failed program was" >&5
27015 cat conftest.s >&5
27016 echo "configure: error output was" >&5
27017 cat conftest.out >&5
27019 rm -f conftest.o conftest.s conftest.out
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27023 $as_echo "$gcc_cv_as_line_zero" >&6; }
27024 if test "x$gcc_cv_as_line_zero" = xyes; then
27026 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27031 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27032 gcc_cv_ld_eh_frame_hdr=no
27033 if test $in_tree_ld = yes ; then
27034 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 \
27035 && test $in_tree_ld_is_elf = yes; then
27036 gcc_cv_ld_eh_frame_hdr=yes
27038 elif test x$gcc_cv_ld != x; then
27039 if echo "$ld_ver" | grep GNU > /dev/null; then
27040 # Check if linker supports --eh-frame-hdr option
27041 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27042 gcc_cv_ld_eh_frame_hdr=yes
27044 else
27045 case "$target" in
27046 *-*-solaris2*)
27047 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27048 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27049 gcc_cv_ld_eh_frame_hdr=yes
27052 esac
27056 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27058 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27062 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27065 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27066 gcc_cv_ld_eh_frame_ciev3=no
27067 if test $in_tree_ld = yes ; then
27068 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 \
27069 && test $in_tree_ld_is_elf = yes; then
27070 gcc_cv_ld_eh_frame_ciev3=yes
27072 elif test x$gcc_cv_ld != x; then
27073 if echo "$ld_ver" | grep GNU > /dev/null; then
27074 gcc_cv_ld_eh_frame_ciev3=yes
27075 if test 0"$ld_date" -lt 20040513; then
27076 if test -n "$ld_date"; then
27077 # If there was date string, but was earlier than 2004-05-13, fail
27078 gcc_cv_ld_eh_frame_ciev3=no
27079 elif test "$ld_vers_major" -lt 2; then
27080 gcc_cv_ld_eh_frame_ciev3=no
27081 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27082 gcc_cv_ld_eh_frame_ciev3=no
27085 else
27086 case "$target" in
27087 *-*-solaris2*)
27088 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27089 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27090 gcc_cv_ld_eh_frame_ciev3=yes
27093 esac
27097 cat >>confdefs.h <<_ACEOF
27098 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27099 _ACEOF
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27102 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27105 $as_echo_n "checking linker position independent executable support... " >&6; }
27106 gcc_cv_ld_pie=no
27107 if test $in_tree_ld = yes ; then
27108 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 \
27109 && test $in_tree_ld_is_elf = yes; then
27110 gcc_cv_ld_pie=yes
27112 elif test x$gcc_cv_ld != x; then
27113 # Check if linker supports -pie option
27114 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27115 gcc_cv_ld_pie=yes
27118 if test x"$gcc_cv_ld_pie" = xyes; then
27120 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27124 $as_echo "$gcc_cv_ld_pie" >&6; }
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27127 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27128 gcc_cv_ld_pie_copyreloc=no
27129 if test $gcc_cv_ld_pie = yes ; then
27130 if test $in_tree_ld = yes ; then
27131 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27132 gcc_cv_ld_pie_copyreloc=yes
27134 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27135 # Check if linker supports -pie option with copy reloc
27136 case "$target" in
27137 i?86-*-linux* | x86_64-*-linux*)
27138 cat > conftest1.s <<EOF
27139 .globl a_glob
27140 .data
27141 .type a_glob, @object
27142 .size a_glob, 4
27143 a_glob:
27144 .long 2
27146 cat > conftest2.s <<EOF
27147 .text
27148 .globl main
27149 .type main, @function
27150 main:
27151 movl %eax, a_glob(%rip)
27152 .size main, .-main
27153 .globl ptr
27154 .section .data.rel,"aw",@progbits
27155 .type ptr, @object
27156 ptr:
27157 .quad a_glob
27159 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27160 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27161 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27162 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27163 gcc_cv_ld_pie_copyreloc=yes
27165 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27167 esac
27171 cat >>confdefs.h <<_ACEOF
27172 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27173 _ACEOF
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27176 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27179 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27180 gcc_cv_ld_eh_gc_sections=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 17 -o "$gcc_cv_gld_major_version" -gt 2 \
27183 && test $in_tree_ld_is_elf = yes; then
27184 gcc_cv_ld_eh_gc_sections=yes
27186 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27187 cat > conftest.s <<EOF
27188 .section .text
27189 .globl _start
27190 .type _start, @function
27191 _start:
27192 .long foo
27193 .size _start, .-_start
27194 .section .text.foo,"ax",@progbits
27195 .type foo, @function
27196 foo:
27197 .long 0
27198 .size foo, .-foo
27199 .section .gcc_except_table.foo,"a",@progbits
27200 .L0:
27201 .long 0
27202 .section .eh_frame,"a",@progbits
27203 .long .L0
27205 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27206 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27207 | grep "gc-sections option ignored" > /dev/null; then
27208 gcc_cv_ld_eh_gc_sections=no
27209 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27210 | grep gcc_except_table > /dev/null; then
27211 gcc_cv_ld_eh_gc_sections=yes
27212 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27213 if test x$gcc_cv_as_comdat_group != xyes; then
27214 gcc_cv_ld_eh_gc_sections=no
27215 cat > conftest.s <<EOF
27216 .section .text
27217 .globl _start
27218 .type _start, @function
27219 _start:
27220 .long foo
27221 .size _start, .-_start
27222 .section .gnu.linkonce.t.foo,"ax",@progbits
27223 .type foo, @function
27224 foo:
27225 .long 0
27226 .size foo, .-foo
27227 .section .gcc_except_table.foo,"a",@progbits
27228 .L0:
27229 .long 0
27230 .section .eh_frame,"a",@progbits
27231 .long .L0
27233 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27234 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27235 | grep "gc-sections option ignored" > /dev/null; then
27236 gcc_cv_ld_eh_gc_sections=no
27237 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27238 | grep gcc_except_table > /dev/null; then
27239 gcc_cv_ld_eh_gc_sections=yes
27245 rm -f conftest.s conftest.o conftest
27247 case "$target" in
27248 hppa*-*-linux*)
27249 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27250 gcc_cv_ld_eh_gc_sections=no
27252 esac
27253 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27255 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27259 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27262 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27263 gcc_cv_ld_eh_gc_sections_bug=no
27264 if test $in_tree_ld = yes ; then
27265 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 \
27266 && test $in_tree_ld_is_elf = yes; then
27267 gcc_cv_ld_eh_gc_sections_bug=yes
27269 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
27270 gcc_cv_ld_eh_gc_sections_bug=yes
27271 cat > conftest.s <<EOF
27272 .section .text
27273 .globl _start
27274 .type _start, @function
27275 _start:
27276 .long foo
27277 .size _start, .-_start
27278 .section .text.startup.foo,"ax",@progbits
27279 .type foo, @function
27280 foo:
27281 .long 0
27282 .size foo, .-foo
27283 .section .gcc_except_table.foo,"a",@progbits
27284 .L0:
27285 .long 0
27286 .section .eh_frame,"a",@progbits
27287 .long .L0
27289 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27290 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27291 | grep "gc-sections option ignored" > /dev/null; then
27293 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27294 | grep gcc_except_table > /dev/null; then
27295 gcc_cv_ld_eh_gc_sections_bug=no
27298 rm -f conftest.s conftest.o conftest
27300 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27302 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27306 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27309 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27310 # gold/gld support compressed debug sections since binutils 2.19/2.21
27311 if test $in_tree_ld = yes ; then
27312 gcc_cv_ld_compress_debug=0
27313 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27314 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27315 gcc_cv_ld_compress_debug=2
27316 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27317 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27318 && test $in_tree_ld_is_elf = yes; then
27319 gcc_cv_ld_compress_debug=1
27321 elif echo "$ld_ver" | grep GNU > /dev/null; then
27322 gcc_cv_ld_compress_debug=1
27323 if test 0"$ld_date" -lt 20050308; then
27324 if test -n "$ld_date"; then
27325 # If there was date string, but was earlier than 2005-03-08, fail
27326 gcc_cv_ld_compress_debug=0
27327 elif test "$ld_vers_major" -lt 2; then
27328 gcc_cv_ld_compress_debug=0
27329 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27330 gcc_cv_ld_compress_debug=0
27333 if test $ld_is_gold = yes; then
27334 gcc_cv_ld_compress_debug=2
27335 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27337 else
27338 case "${target}" in
27339 *-*-solaris2*)
27340 # Introduced in Solaris 11.2.
27341 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27342 gcc_cv_ld_compress_debug=3
27343 gcc_cv_ld_compress_debug_option="-z compress-sections"
27344 else
27345 gcc_cv_ld_compress_debug=0
27349 # Assume linkers other than GNU ld don't support compessed debug
27350 # sections.
27351 gcc_cv_ld_compress_debug=0
27353 esac
27356 cat >>confdefs.h <<_ACEOF
27357 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27358 _ACEOF
27361 cat >>confdefs.h <<_ACEOF
27362 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27363 _ACEOF
27365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27366 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27368 # --------
27369 # UNSORTED
27370 # --------
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27373 $as_echo_n "checking linker --as-needed support... " >&6; }
27374 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_ld_as_needed=no
27378 gcc_cv_ld_as_needed_option='--as-needed'
27379 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27380 if test $in_tree_ld = yes ; then
27381 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 \
27382 && test $in_tree_ld_is_elf = yes; then
27383 gcc_cv_ld_as_needed=yes
27385 elif test x$gcc_cv_ld != x; then
27386 # Check if linker supports --as-needed and --no-as-needed options
27387 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27388 gcc_cv_ld_as_needed=yes
27389 else
27390 case "$target" in
27391 # Solaris 2 ld always supports -z ignore/-z record.
27392 *-*-solaris2*)
27393 gcc_cv_ld_as_needed=yes
27394 gcc_cv_ld_as_needed_option="-z ignore"
27395 gcc_cv_ld_no_as_needed_option="-z record"
27397 esac
27400 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27401 # dl_iterate_phdr, i.e. since Solaris 11.
27402 case "$target" in
27403 *-*-solaris2.1[1-9]*)
27404 case "$target" in
27405 i?86-*-* | x86_64-*-*)
27406 if echo "$ld_ver" | grep GNU > /dev/null; then
27407 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27408 gcc_cv_ld_as_needed=no
27411 esac
27413 *-*-solaris2*)
27414 gcc_cv_ld_as_needed=no
27416 esac
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27420 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27421 if test x"$gcc_cv_ld_as_needed" = xyes; then
27423 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27426 cat >>confdefs.h <<_ACEOF
27427 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27428 _ACEOF
27431 cat >>confdefs.h <<_ACEOF
27432 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27433 _ACEOF
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27438 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27439 saved_LDFLAGS="$LDFLAGS"
27440 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27441 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27443 /* end confdefs.h. */
27444 int main(void) {return 0;}
27445 _ACEOF
27446 if ac_fn_c_try_link "$LINENO"; then :
27447 gcc_cv_ld_clearcap=yes; break
27448 else
27449 gcc_cv_ld_clearcap=no
27451 rm -f core conftest.err conftest.$ac_objext \
27452 conftest$ac_exeext conftest.$ac_ext
27453 done
27454 LDFLAGS="$saved_LDFLAGS"
27455 if test "x$gcc_cv_ld_clearcap" = xyes; then
27457 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27459 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27463 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27465 case "$target:$tm_file" in
27466 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27467 case "$target" in
27468 *le-*-linux*)
27469 emul_name="-melf64lppc"
27471 *-*-linux*)
27472 emul_name="-melf64ppc"
27474 *-*-freebsd*)
27475 emul_name="-melf64ppc_fbsd"
27477 esac
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27479 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27480 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27481 $as_echo_n "(cached) " >&6
27482 else
27483 gcc_cv_ld_no_dot_syms=no
27484 if test x"$ld_is_gold" = xyes; then
27485 gcc_cv_ld_no_dot_syms=yes
27486 elif test $in_tree_ld = yes ; then
27487 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
27488 gcc_cv_ld_no_dot_syms=yes
27490 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27491 cat > conftest1.s <<EOF
27492 .text
27493 bl .foo
27495 cat > conftest2.s <<EOF
27496 .section ".opd","aw"
27497 .align 3
27498 .globl foo
27499 .type foo,@function
27500 foo:
27501 .quad .LEfoo,.TOC.@tocbase,0
27502 .text
27503 .LEfoo:
27505 .size foo,.-.LEfoo
27507 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27508 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27509 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27510 gcc_cv_ld_no_dot_syms=yes
27512 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27517 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27518 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27520 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27525 $as_echo_n "checking linker large toc support... " >&6; }
27526 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27527 $as_echo_n "(cached) " >&6
27528 else
27529 gcc_cv_ld_large_toc=no
27530 if test x"$ld_is_gold" = xyes; then
27531 gcc_cv_ld_large_toc=yes
27532 elif test $in_tree_ld = yes ; then
27533 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
27534 gcc_cv_ld_large_toc=yes
27536 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27537 cat > conftest.s <<EOF
27538 .section ".tbss","awT",@nobits
27539 .align 3
27540 ie0: .space 8
27541 .global _start
27542 .text
27543 _start:
27544 addis 9,13,ie0@got@tprel@ha
27545 ld 9,ie0@got@tprel@l(9)
27547 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27548 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27549 gcc_cv_ld_large_toc=yes
27551 rm -f conftest conftest.o conftest.s
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27556 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27557 if test x"$gcc_cv_ld_large_toc" = xyes; then
27559 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27564 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27565 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27566 $as_echo_n "(cached) " >&6
27567 else
27568 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27569 cat > conftest.s <<EOF
27570 .global _start
27571 .text
27572 _start:
27573 addis 9,2,x@got@ha
27574 .section .data.rel.ro,"aw",@progbits
27575 .p2align 16
27576 .space 32768
27577 x: .quad .TOC.
27579 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27580 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27581 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27583 rm -f conftest conftest.o conftest.s
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27588 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27589 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27591 cat >>confdefs.h <<_ACEOF
27592 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27593 _ACEOF
27597 esac
27599 case "$target" in
27600 *-*-aix*)
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27602 $as_echo_n "checking linker large toc support... " >&6; }
27603 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27604 $as_echo_n "(cached) " >&6
27605 else
27606 gcc_cv_ld_large_toc=no
27607 if test x$gcc_cv_as != x ; then
27608 cat > conftest.s <<EOF
27609 .toc
27610 LC..1:
27611 .tc a[TC],a[RW]
27612 .extern a[RW]
27613 .csect .text[PR]
27614 .largetoctest:
27615 addis 9,LC..1@u(2)
27616 ld 3,LC..1@l(9)
27618 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27619 gcc_cv_ld_large_toc=yes
27621 rm -f conftest conftest.o conftest.s
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27626 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27627 if test x"$gcc_cv_ld_large_toc" = xyes; then
27629 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27633 esac
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27636 $as_echo_n "checking linker --build-id support... " >&6; }
27637 if test "${gcc_cv_ld_buildid+set}" = set; then :
27638 $as_echo_n "(cached) " >&6
27639 else
27640 gcc_cv_ld_buildid=no
27641 if test $in_tree_ld = yes ; then
27642 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27643 "$gcc_cv_gld_minor_version" -ge 18 -o \
27644 "$gcc_cv_gld_major_version" -gt 2 \
27645 && test $in_tree_ld_is_elf = yes; then
27646 gcc_cv_ld_buildid=yes
27648 elif test x$gcc_cv_ld != x; then
27649 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27650 gcc_cv_ld_buildid=yes
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27655 $as_echo "$gcc_cv_ld_buildid" >&6; }
27656 if test x"$gcc_cv_ld_buildid" = xyes; then
27658 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27662 # Check whether --enable-linker-build-id was given.
27663 if test "${enable_linker_build_id+set}" = set; then :
27664 enableval=$enable_linker_build_id;
27665 else
27666 enable_linker_build_id=no
27670 if test x"$enable_linker_build_id" = xyes; then
27671 if test x"$gcc_cv_ld_buildid" = xyes; then
27673 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27675 else
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27677 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27681 # In binutils 2.21, GNU ld gained support for new emulations fully
27682 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27684 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27685 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27686 $as_echo_n "(cached) " >&6
27687 else
27688 gcc_cv_ld_sol2_emulation=no
27689 if test $in_tree_ld = yes ; then
27690 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27691 "$gcc_cv_gld_minor_version" -ge 21 -o \
27692 "$gcc_cv_gld_major_version" -gt 2 \
27693 && test $in_tree_ld_is_elf = yes; then
27694 gcc_cv_ld_sol2_emulation=yes
27696 elif test x$gcc_cv_ld != x; then
27697 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27698 grep _sol2 > /dev/null; then
27699 gcc_cv_ld_sol2_emulation=yes
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27704 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27705 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27707 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27712 $as_echo_n "checking linker --sysroot support... " >&6; }
27713 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27714 $as_echo_n "(cached) " >&6
27715 else
27716 gcc_cv_ld_sysroot=no
27717 if test $in_tree_ld = yes ; then
27718 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
27719 gcc_cv_ld_sysroot=yes
27721 elif test x$gcc_cv_ld != x; then
27722 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27723 gcc_cv_ld_sysroot=yes
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27728 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27729 if test x"$gcc_cv_ld_sysroot" = xyes; then
27731 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27735 # Test for stack protector support in target C library.
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27737 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27738 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27739 $as_echo_n "(cached) " >&6
27740 else
27741 gcc_cv_libc_provides_ssp=no
27742 case "$target" in
27743 *-*-musl*)
27744 # All versions of musl provide stack protector
27745 gcc_cv_libc_provides_ssp=yes;;
27746 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27747 # glibc 2.4 and later provides __stack_chk_fail and
27748 # either __stack_chk_guard, or TLS access to stack guard canary.
27750 if test $glibc_version_major -gt 2 \
27751 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27752 gcc_cv_libc_provides_ssp=yes
27753 else
27755 if test -f $target_header_dir/features.h \
27756 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27757 $target_header_dir/features.h > /dev/null; then
27758 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27759 $target_header_dir/features.h > /dev/null && \
27760 test -f $target_header_dir/bits/uClibc_config.h && \
27761 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27762 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27763 gcc_cv_libc_provides_ssp=yes
27765 # all versions of Bionic support stack protector
27766 elif test -f $target_header_dir/sys/cdefs.h \
27767 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27768 $target_header_dir/sys/cdefs.h > /dev/null; then
27769 gcc_cv_libc_provides_ssp=yes
27773 *-*-gnu*)
27774 # Avoid complicated tests (see
27775 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27776 # simply assert that glibc does provide this, which is true for all
27777 # realistically usable GNU/Hurd configurations.
27778 # All supported versions of musl provide it as well
27779 gcc_cv_libc_provides_ssp=yes;;
27780 *-*-darwin* | *-*-freebsd*)
27781 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27782 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27783 gcc_cv_libc_provides_ssp=yes
27784 else
27785 echo "no __stack_chk_fail on this target"
27789 *) gcc_cv_libc_provides_ssp=no ;;
27790 esac
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27793 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27795 if test x$gcc_cv_libc_provides_ssp = xyes; then
27797 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27801 # Test for <sys/sdt.h> on the target.
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27804 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27805 have_sys_sdt_h=no
27806 if test -f $target_header_dir/sys/sdt.h; then
27807 have_sys_sdt_h=yes
27809 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27813 $as_echo "$have_sys_sdt_h" >&6; }
27815 # Check if TFmode long double should be used by default or not.
27816 # Some glibc targets used DFmode long double, but with glibc 2.4
27817 # and later they can use TFmode.
27818 case "$target" in
27819 powerpc*-*-linux* | \
27820 sparc*-*-linux* | \
27821 s390*-*-linux* | \
27822 alpha*-*-linux*)
27824 # Check whether --with-long-double-128 was given.
27825 if test "${with_long_double_128+set}" = set; then :
27826 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27827 else
27829 if test $glibc_version_major -gt 2 \
27830 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27831 gcc_cv_target_ldbl128=yes
27832 else
27834 gcc_cv_target_ldbl128=no
27835 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27836 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27837 && gcc_cv_target_ldbl128=yes
27843 esac
27844 if test x$gcc_cv_target_ldbl128 = xyes; then
27846 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27851 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27852 gcc_cv_target_dl_iterate_phdr=unknown
27853 case "$target" in
27854 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27855 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27856 # libdl there, both complicating its use and breaking compatibility
27857 # between Solaris 10 updates.
27858 *-*-solaris2.1[1-9]*)
27859 # <link.h> needs both a dl_iterate_phdr declaration and support for
27860 # compilation with largefile support.
27861 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27862 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27863 gcc_cv_target_dl_iterate_phdr=yes
27864 else
27865 gcc_cv_target_dl_iterate_phdr=no
27868 *-*-dragonfly* | *-*-freebsd*)
27869 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27870 gcc_cv_target_dl_iterate_phdr=yes
27871 else
27872 gcc_cv_target_dl_iterate_phdr=no
27875 *-linux-musl*)
27876 gcc_cv_target_dl_iterate_phdr=yes
27878 esac
27880 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27882 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27886 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27888 # We no longer support different GC mechanisms. Emit an error if
27889 # the user configures with --with-gc.
27891 # Check whether --with-gc was given.
27892 if test "${with_gc+set}" = set; then :
27893 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27897 # Libraries to use on the host. This will normally be set by the top
27898 # level Makefile. Here we simply capture the value for our Makefile.
27899 if test -z "${HOST_LIBS+set}"; then
27900 HOST_LIBS=
27904 # Use the system's zlib library.
27905 zlibdir=-L../zlib
27906 zlibinc="-I\$(srcdir)/../zlib"
27908 # Check whether --with-system-zlib was given.
27909 if test "${with_system_zlib+set}" = set; then :
27910 withval=$with_system_zlib; zlibdir=
27911 zlibinc=
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27920 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27921 # Check whether --enable-maintainer-mode was given.
27922 if test "${enable_maintainer_mode+set}" = set; then :
27923 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27924 else
27925 maintainer_mode=no
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27930 $as_echo "$maintainer_mode" >&6; }
27932 if test "$maintainer_mode" = "yes"; then
27933 MAINT=''
27934 else
27935 MAINT='#'
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27940 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27941 # Check whether --enable-link-mutex was given.
27942 if test "${enable_link_mutex+set}" = set; then :
27943 enableval=$enable_link_mutex; do_link_mutex=$enableval
27944 else
27945 do_link_mutex=no
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27949 $as_echo "$do_link_mutex" >&6; }
27951 if test "$do_link_mutex" = "yes"; then
27952 DO_LINK_MUTEX=true
27953 else
27954 DO_LINK_MUTEX=false
27958 # --------------
27959 # Language hooks
27960 # --------------
27962 # Make empty files to contain the specs and options for each language.
27963 # Then add #include lines to for a compiler that has specs and/or options.
27965 subdirs=
27966 lang_opt_files=
27967 lang_specs_files=
27968 lang_tree_files=
27969 # These (without "all_") are set in each config-lang.in.
27970 # `language' must be a single word so is spelled singularly.
27971 all_languages=
27972 all_compilers=
27973 all_outputs='Makefile'
27974 # List of language makefile fragments.
27975 all_lang_makefrags=
27976 # Additional files for gengtype
27977 all_gtfiles="$target_gtfiles"
27979 # These are the languages that are set in --enable-languages,
27980 # and are available in the GCC tree.
27981 all_selected_languages=
27983 # Add the language fragments.
27984 # Languages are added via two mechanisms. Some information must be
27985 # recorded in makefile variables, these are defined in config-lang.in.
27986 # We accumulate them and plug them into the main Makefile.
27987 # The other mechanism is a set of hooks for each of the main targets
27988 # like `clean', `install', etc.
27990 language_hooks="Make-hooks"
27992 for lang in ${srcdir}/*/config-lang.in
27994 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27996 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27997 if test "x$lang_alias" = x
27998 then
27999 echo "$lang doesn't set \$language." 1>&2
28000 exit 1
28002 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28003 subdirs="$subdirs $subdir"
28005 # $gcc_subdir is where the gcc integration files are to be found
28006 # for a language, both for internal compiler purposes (compiler
28007 # sources implementing front-end to GCC tree converters), and for
28008 # build infrastructure purposes (Make-lang.in, etc.)
28010 # This will be <subdir> (relative to $srcdir) if a line like
28011 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28012 # is found in <langdir>/config-lang.in, and will remain <langdir>
28013 # otherwise.
28015 # Except for the language alias (fetched above), the regular
28016 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28017 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28018 # only this and the language alias.
28020 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28021 if [ "$gcc_subdir" = "" ]; then
28022 gcc_subdir="$subdir"
28025 case ",$enable_languages," in
28026 *,$lang_alias,*)
28027 all_selected_languages="$all_selected_languages $lang_alias"
28028 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28029 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28032 esac
28034 language=
28035 boot_language=
28036 compilers=
28037 outputs=
28038 gtfiles=
28039 subdir_requires=
28040 . ${srcdir}/$gcc_subdir/config-lang.in
28041 if test "x$language" = x
28042 then
28043 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28044 exit 1
28047 ok=:
28048 case ",$enable_languages," in
28049 *,$lang_alias,*) ;;
28051 for i in $subdir_requires; do
28052 test -f "${srcdir}/$i/config-lang.in" && continue
28053 ok=false
28054 break
28055 done
28057 esac
28058 $ok || continue
28060 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28061 if test -f $srcdir/$gcc_subdir/lang.opt; then
28062 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28063 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28065 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28066 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28068 all_languages="$all_languages $language"
28069 all_compilers="$all_compilers $compilers"
28070 all_outputs="$all_outputs $outputs"
28071 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28072 case ",$enable_languages," in
28073 *,lto,*)
28075 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28077 enable_lto=yes
28080 *) ;;
28081 esac
28082 done
28084 check_languages=
28085 for language in $all_selected_languages
28087 check_languages="$check_languages check-$language"
28088 done
28090 # We link each language in with a set of hooks, reached indirectly via
28091 # lang.${target}. Only do so for selected languages.
28093 rm -f Make-hooks
28094 touch Make-hooks
28095 target_list="all.cross start.encap rest.encap tags \
28096 install-common install-man install-info install-pdf install-html dvi \
28097 pdf html uninstall info man srcextra srcman srcinfo \
28098 mostlyclean clean distclean maintainer-clean install-plugin"
28100 for t in $target_list
28103 for lang in $all_selected_languages
28105 x="$x $lang.$t"
28106 done
28107 echo "lang.$t: $x" >> Make-hooks
28108 done
28110 # --------
28111 # Option include files
28112 # --------
28114 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28115 option_includes="option-includes.mk"
28118 # --------
28119 # UNSORTED
28120 # --------
28122 # Create .gdbinit.
28124 echo "dir ." > .gdbinit
28125 echo "dir ${srcdir}" >> .gdbinit
28126 if test x$gdb_needs_out_file_path = xyes
28127 then
28128 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28130 if test "x$subdirs" != x; then
28131 for s in $subdirs
28133 echo "dir ${srcdir}/$s" >> .gdbinit
28134 done
28136 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28137 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28139 # Put a breakpoint on __asan_report_error to help with debugging buffer
28140 # overflow.
28141 case "$CFLAGS" in
28142 *-fsanitize=address*)
28143 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28145 esac
28147 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28151 # Find a directory in which to install a shared libgcc.
28153 # Check whether --enable-version-specific-runtime-libs was given.
28154 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28155 enableval=$enable_version_specific_runtime_libs;
28159 # Substitute configuration variables
28222 # Echo link setup.
28223 if test x${build} = x${host} ; then
28224 if test x${host} = x${target} ; then
28225 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28226 else
28227 echo "Links are now set up to build a cross-compiler" 1>&2
28228 echo " from ${host} to ${target}." 1>&2
28230 else
28231 if test x${host} = x${target} ; then
28232 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28233 echo " for ${target}." 1>&2
28234 else
28235 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28236 echo " from ${host} to ${target}." 1>&2
28245 if test "x${ISLLIBS}" != "x" ; then
28247 $as_echo "#define HAVE_isl 1" >>confdefs.h
28251 # Check whether isl_schedule_constraints_compute_schedule is available;
28252 # it's new in ISL-0.13.
28253 if test "x${ISLLIBS}" != "x" ; then
28254 saved_CFLAGS="$CFLAGS"
28255 CFLAGS="$CFLAGS $ISLINC"
28256 saved_LIBS="$LIBS"
28257 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28260 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h. */
28263 #include <isl/schedule.h>
28265 main ()
28267 isl_schedule_constraints_compute_schedule (NULL);
28269 return 0;
28271 _ACEOF
28272 if ac_fn_c_try_link "$LINENO"; then :
28273 ac_has_isl_schedule_constraints_compute_schedule=yes
28274 else
28275 ac_has_isl_schedule_constraints_compute_schedule=no
28277 rm -f core conftest.err conftest.$ac_objext \
28278 conftest$ac_exeext conftest.$ac_ext
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28280 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28282 LIBS="$saved_LIBS"
28283 CFLAGS="$saved_CFLAGS"
28285 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28287 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28292 # Check for plugin support
28293 # Check whether --enable-plugin was given.
28294 if test "${enable_plugin+set}" = set; then :
28295 enableval=$enable_plugin; enable_plugin=$enableval
28296 else
28297 enable_plugin=yes; default_plugin=yes
28301 pluginlibs=
28303 case "${host}" in
28304 *-*-darwin*)
28305 if test x$build = x$host; then
28306 export_sym_check="nm${exeext} -g"
28307 elif test x$host = x$target; then
28308 export_sym_check="$gcc_cv_nm -g"
28309 else
28310 export_sym_check=
28314 if test x$build = x$host; then
28315 export_sym_check="objdump${exeext} -T"
28316 elif test x$host = x$target; then
28317 export_sym_check="$gcc_cv_objdump -T"
28318 else
28319 export_sym_check=
28322 esac
28324 if test x"$enable_plugin" = x"yes"; then
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28327 $as_echo_n "checking for exported symbols... " >&6; }
28328 if test "x$export_sym_check" != x; then
28329 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28330 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28331 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28332 : # No need to use a flag
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28334 $as_echo "yes" >&6; }
28335 else
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28337 $as_echo "yes" >&6; }
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28339 $as_echo_n "checking for -rdynamic... " >&6; }
28340 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28341 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28342 plugin_rdynamic=yes
28343 pluginlibs="-rdynamic"
28344 else
28345 plugin_rdynamic=no
28346 enable_plugin=no
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28349 $as_echo "$plugin_rdynamic" >&6; }
28351 else
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28353 $as_echo "unable to check" >&6; }
28356 # Check -ldl
28357 saved_LIBS="$LIBS"
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28359 $as_echo_n "checking for library containing dlopen... " >&6; }
28360 if test "${ac_cv_search_dlopen+set}" = set; then :
28361 $as_echo_n "(cached) " >&6
28362 else
28363 ac_func_search_save_LIBS=$LIBS
28364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h. */
28367 /* Override any GCC internal prototype to avoid an error.
28368 Use char because int might match the return type of a GCC
28369 builtin and then its argument prototype would still apply. */
28370 #ifdef __cplusplus
28371 extern "C"
28372 #endif
28373 char dlopen ();
28375 main ()
28377 return dlopen ();
28379 return 0;
28381 _ACEOF
28382 for ac_lib in '' dl; do
28383 if test -z "$ac_lib"; then
28384 ac_res="none required"
28385 else
28386 ac_res=-l$ac_lib
28387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28389 if ac_fn_c_try_link "$LINENO"; then :
28390 ac_cv_search_dlopen=$ac_res
28392 rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext
28394 if test "${ac_cv_search_dlopen+set}" = set; then :
28395 break
28397 done
28398 if test "${ac_cv_search_dlopen+set}" = set; then :
28400 else
28401 ac_cv_search_dlopen=no
28403 rm conftest.$ac_ext
28404 LIBS=$ac_func_search_save_LIBS
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28407 $as_echo "$ac_cv_search_dlopen" >&6; }
28408 ac_res=$ac_cv_search_dlopen
28409 if test "$ac_res" != no; then :
28410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28414 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28415 pluginlibs="$pluginlibs -ldl"
28417 LIBS="$saved_LIBS"
28419 # Check that we can build shared objects with -fPIC -shared
28420 saved_LDFLAGS="$LDFLAGS"
28421 saved_CFLAGS="$CFLAGS"
28422 case "${host}" in
28423 *-*-darwin*)
28424 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28425 CFLAGS="$CFLAGS -fPIC"
28426 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28429 CFLAGS="$CFLAGS -fPIC"
28430 LDFLAGS="$LDFLAGS -fPIC -shared"
28432 esac
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28434 $as_echo_n "checking for -fPIC -shared... " >&6; }
28435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436 /* end confdefs.h. */
28437 extern int X;
28439 main ()
28441 return X == 0;
28443 return 0;
28445 _ACEOF
28446 if ac_fn_c_try_link "$LINENO"; then :
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28448 $as_echo "yes" >&6; }; have_pic_shared=yes
28449 else
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28451 $as_echo "no" >&6; }; have_pic_shared=no
28453 rm -f core conftest.err conftest.$ac_objext \
28454 conftest$ac_exeext conftest.$ac_ext
28455 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28456 pluginlibs=
28457 enable_plugin=no
28459 LDFLAGS="$saved_LDFLAGS"
28460 CFLAGS="$saved_CFLAGS"
28462 # If plugin support had been requested but not available, fail.
28463 if test x"$enable_plugin" = x"no" ; then
28464 if test x"$default_plugin" != x"yes"; then
28465 as_fn_error "
28466 Building GCC with plugin support requires a host that supports
28467 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28474 if test x"$enable_plugin" = x"yes"; then
28476 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28481 # Enable --enable-host-shared
28482 # Check whether --enable-host-shared was given.
28483 if test "${enable_host_shared+set}" = set; then :
28484 enableval=$enable_host_shared; PICFLAG=-fPIC
28485 else
28486 PICFLAG=
28493 # Check whether --enable-libquadmath-support was given.
28494 if test "${enable_libquadmath_support+set}" = set; then :
28495 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28496 else
28497 ENABLE_LIBQUADMATH_SUPPORT=yes
28500 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28502 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28507 # Specify what hash style to use by default.
28509 # Check whether --with-linker-hash-style was given.
28510 if test "${with_linker_hash_style+set}" = set; then :
28511 withval=$with_linker_hash_style; case x"$withval" in
28512 xsysv)
28513 LINKER_HASH_STYLE=sysv
28515 xgnu)
28516 LINKER_HASH_STYLE=gnu
28518 xboth)
28519 LINKER_HASH_STYLE=both
28522 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28524 esac
28525 else
28526 LINKER_HASH_STYLE=''
28529 if test x"${LINKER_HASH_STYLE}" != x; then
28531 cat >>confdefs.h <<_ACEOF
28532 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28533 _ACEOF
28537 # Specify what should be the default of -fdiagnostics-color option.
28539 # Check whether --with-diagnostics-color was given.
28540 if test "${with_diagnostics_color+set}" = set; then :
28541 withval=$with_diagnostics_color; case x"$withval" in
28542 xnever)
28543 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28545 xauto)
28546 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28548 xauto-if-env)
28549 DIAGNOSTICS_COLOR_DEFAULT=-1
28551 xalways)
28552 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28555 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28557 esac
28558 else
28559 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28563 cat >>confdefs.h <<_ACEOF
28564 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28565 _ACEOF
28568 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28569 # of jit/jit-playback.c.
28570 cat > gcc-driver-name.h <<EOF
28571 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28574 # Configure the subdirectories
28575 # AC_CONFIG_SUBDIRS($subdirs)
28577 # Create the Makefile
28578 # and configure language subdirectories
28579 ac_config_files="$ac_config_files $all_outputs"
28582 ac_config_commands="$ac_config_commands default"
28584 cat >confcache <<\_ACEOF
28585 # This file is a shell script that caches the results of configure
28586 # tests run on this system so they can be shared between configure
28587 # scripts and configure runs, see configure's option --config-cache.
28588 # It is not useful on other systems. If it contains results you don't
28589 # want to keep, you may remove or edit it.
28591 # config.status only pays attention to the cache file if you give it
28592 # the --recheck option to rerun configure.
28594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28596 # following values.
28598 _ACEOF
28600 # The following way of writing the cache mishandles newlines in values,
28601 # but we know of no workaround that is simple, portable, and efficient.
28602 # So, we kill variables containing newlines.
28603 # Ultrix sh set writes to stderr and can't be redirected directly,
28604 # and sets the high bit in the cache file unless we assign to the vars.
28606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28607 eval ac_val=\$$ac_var
28608 case $ac_val in #(
28609 *${as_nl}*)
28610 case $ac_var in #(
28611 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28613 esac
28614 case $ac_var in #(
28615 _ | IFS | as_nl) ;; #(
28616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28617 *) { eval $ac_var=; unset $ac_var;} ;;
28618 esac ;;
28619 esac
28620 done
28622 (set) 2>&1 |
28623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28624 *${as_nl}ac_space=\ *)
28625 # `set' does not quote correctly, so add quotes: double-quote
28626 # substitution turns \\\\ into \\, and sed turns \\ into \.
28627 sed -n \
28628 "s/'/'\\\\''/g;
28629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28630 ;; #(
28632 # `set' quotes correctly as required by POSIX, so do not add quotes.
28633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28635 esac |
28636 sort
28638 sed '
28639 /^ac_cv_env_/b end
28640 t clear
28641 :clear
28642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28643 t end
28644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28645 :end' >>confcache
28646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28647 if test -w "$cache_file"; then
28648 test "x$cache_file" != "x/dev/null" &&
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28650 $as_echo "$as_me: updating cache $cache_file" >&6;}
28651 cat confcache >$cache_file
28652 else
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28654 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28657 rm -f confcache
28659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28660 # Let make expand exec_prefix.
28661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28663 DEFS=-DHAVE_CONFIG_H
28665 ac_libobjs=
28666 ac_ltlibobjs=
28667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28668 # 1. Remove the extension, and $U if already installed.
28669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28670 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28672 # will be set to the directory where LIBOBJS objects are built.
28673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28675 done
28676 LIBOBJS=$ac_libobjs
28678 LTLIBOBJS=$ac_ltlibobjs
28683 : ${CONFIG_STATUS=./config.status}
28684 ac_write_fail=0
28685 ac_clean_files_save=$ac_clean_files
28686 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28688 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28689 as_write_fail=0
28690 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28691 #! $SHELL
28692 # Generated by $as_me.
28693 # Run this file to recreate the current configuration.
28694 # Compiler output produced by configure, useful for debugging
28695 # configure, is in config.log if it exists.
28697 debug=false
28698 ac_cs_recheck=false
28699 ac_cs_silent=false
28701 SHELL=\${CONFIG_SHELL-$SHELL}
28702 export SHELL
28703 _ASEOF
28704 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28705 ## -------------------- ##
28706 ## M4sh Initialization. ##
28707 ## -------------------- ##
28709 # Be more Bourne compatible
28710 DUALCASE=1; export DUALCASE # for MKS sh
28711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28712 emulate sh
28713 NULLCMD=:
28714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28715 # is contrary to our usage. Disable this feature.
28716 alias -g '${1+"$@"}'='"$@"'
28717 setopt NO_GLOB_SUBST
28718 else
28719 case `(set -o) 2>/dev/null` in #(
28720 *posix*) :
28721 set -o posix ;; #(
28722 *) :
28724 esac
28728 as_nl='
28730 export as_nl
28731 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28732 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28735 # Prefer a ksh shell builtin over an external printf program on Solaris,
28736 # but without wasting forks for bash or zsh.
28737 if test -z "$BASH_VERSION$ZSH_VERSION" \
28738 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28739 as_echo='print -r --'
28740 as_echo_n='print -rn --'
28741 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28742 as_echo='printf %s\n'
28743 as_echo_n='printf %s'
28744 else
28745 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28746 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28747 as_echo_n='/usr/ucb/echo -n'
28748 else
28749 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28750 as_echo_n_body='eval
28751 arg=$1;
28752 case $arg in #(
28753 *"$as_nl"*)
28754 expr "X$arg" : "X\\(.*\\)$as_nl";
28755 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28756 esac;
28757 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28759 export as_echo_n_body
28760 as_echo_n='sh -c $as_echo_n_body as_echo'
28762 export as_echo_body
28763 as_echo='sh -c $as_echo_body as_echo'
28766 # The user is always right.
28767 if test "${PATH_SEPARATOR+set}" != set; then
28768 PATH_SEPARATOR=:
28769 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28770 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28771 PATH_SEPARATOR=';'
28776 # IFS
28777 # We need space, tab and new line, in precisely that order. Quoting is
28778 # there to prevent editors from complaining about space-tab.
28779 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28780 # splitting by setting IFS to empty value.)
28781 IFS=" "" $as_nl"
28783 # Find who we are. Look in the path if we contain no directory separator.
28784 case $0 in #((
28785 *[\\/]* ) as_myself=$0 ;;
28786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28787 for as_dir in $PATH
28789 IFS=$as_save_IFS
28790 test -z "$as_dir" && as_dir=.
28791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28792 done
28793 IFS=$as_save_IFS
28796 esac
28797 # We did not find ourselves, most probably we were run as `sh COMMAND'
28798 # in which case we are not to be found in the path.
28799 if test "x$as_myself" = x; then
28800 as_myself=$0
28802 if test ! -f "$as_myself"; then
28803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28804 exit 1
28807 # Unset variables that we do not need and which cause bugs (e.g. in
28808 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28809 # suppresses any "Segmentation fault" message there. '((' could
28810 # trigger a bug in pdksh 5.2.14.
28811 for as_var in BASH_ENV ENV MAIL MAILPATH
28812 do eval test x\${$as_var+set} = xset \
28813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28814 done
28815 PS1='$ '
28816 PS2='> '
28817 PS4='+ '
28819 # NLS nuisances.
28820 LC_ALL=C
28821 export LC_ALL
28822 LANGUAGE=C
28823 export LANGUAGE
28825 # CDPATH.
28826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28829 # as_fn_error ERROR [LINENO LOG_FD]
28830 # ---------------------------------
28831 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28832 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28833 # script with status $?, using 1 if that was 0.
28834 as_fn_error ()
28836 as_status=$?; test $as_status -eq 0 && as_status=1
28837 if test "$3"; then
28838 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28841 $as_echo "$as_me: error: $1" >&2
28842 as_fn_exit $as_status
28843 } # as_fn_error
28846 # as_fn_set_status STATUS
28847 # -----------------------
28848 # Set $? to STATUS, without forking.
28849 as_fn_set_status ()
28851 return $1
28852 } # as_fn_set_status
28854 # as_fn_exit STATUS
28855 # -----------------
28856 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28857 as_fn_exit ()
28859 set +e
28860 as_fn_set_status $1
28861 exit $1
28862 } # as_fn_exit
28864 # as_fn_unset VAR
28865 # ---------------
28866 # Portably unset VAR.
28867 as_fn_unset ()
28869 { eval $1=; unset $1;}
28871 as_unset=as_fn_unset
28872 # as_fn_append VAR VALUE
28873 # ----------------------
28874 # Append the text in VALUE to the end of the definition contained in VAR. Take
28875 # advantage of any shell optimizations that allow amortized linear growth over
28876 # repeated appends, instead of the typical quadratic growth present in naive
28877 # implementations.
28878 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28879 eval 'as_fn_append ()
28881 eval $1+=\$2
28883 else
28884 as_fn_append ()
28886 eval $1=\$$1\$2
28888 fi # as_fn_append
28890 # as_fn_arith ARG...
28891 # ------------------
28892 # Perform arithmetic evaluation on the ARGs, and store the result in the
28893 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28894 # must be portable across $(()) and expr.
28895 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28896 eval 'as_fn_arith ()
28898 as_val=$(( $* ))
28900 else
28901 as_fn_arith ()
28903 as_val=`expr "$@" || test $? -eq 1`
28905 fi # as_fn_arith
28908 if expr a : '\(a\)' >/dev/null 2>&1 &&
28909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28910 as_expr=expr
28911 else
28912 as_expr=false
28915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28916 as_basename=basename
28917 else
28918 as_basename=false
28921 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28922 as_dirname=dirname
28923 else
28924 as_dirname=false
28927 as_me=`$as_basename -- "$0" ||
28928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28929 X"$0" : 'X\(//\)$' \| \
28930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28931 $as_echo X/"$0" |
28932 sed '/^.*\/\([^/][^/]*\)\/*$/{
28933 s//\1/
28936 /^X\/\(\/\/\)$/{
28937 s//\1/
28940 /^X\/\(\/\).*/{
28941 s//\1/
28944 s/.*/./; q'`
28946 # Avoid depending upon Character Ranges.
28947 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28948 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28949 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28950 as_cr_digits='0123456789'
28951 as_cr_alnum=$as_cr_Letters$as_cr_digits
28953 ECHO_C= ECHO_N= ECHO_T=
28954 case `echo -n x` in #(((((
28955 -n*)
28956 case `echo 'xy\c'` in
28957 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28958 xy) ECHO_C='\c';;
28959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28960 ECHO_T=' ';;
28961 esac;;
28963 ECHO_N='-n';;
28964 esac
28966 rm -f conf$$ conf$$.exe conf$$.file
28967 if test -d conf$$.dir; then
28968 rm -f conf$$.dir/conf$$.file
28969 else
28970 rm -f conf$$.dir
28971 mkdir conf$$.dir 2>/dev/null
28973 if (echo >conf$$.file) 2>/dev/null; then
28974 if ln -s conf$$.file conf$$ 2>/dev/null; then
28975 as_ln_s='ln -s'
28976 # ... but there are two gotchas:
28977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28979 # In both cases, we have to default to `cp -p'.
28980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28981 as_ln_s='cp -p'
28982 elif ln conf$$.file conf$$ 2>/dev/null; then
28983 as_ln_s=ln
28984 else
28985 as_ln_s='cp -p'
28987 else
28988 as_ln_s='cp -p'
28990 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28991 rmdir conf$$.dir 2>/dev/null
28994 # as_fn_mkdir_p
28995 # -------------
28996 # Create "$as_dir" as a directory, including parents if necessary.
28997 as_fn_mkdir_p ()
29000 case $as_dir in #(
29001 -*) as_dir=./$as_dir;;
29002 esac
29003 test -d "$as_dir" || eval $as_mkdir_p || {
29004 as_dirs=
29005 while :; do
29006 case $as_dir in #(
29007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29008 *) as_qdir=$as_dir;;
29009 esac
29010 as_dirs="'$as_qdir' $as_dirs"
29011 as_dir=`$as_dirname -- "$as_dir" ||
29012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29013 X"$as_dir" : 'X\(//\)[^/]' \| \
29014 X"$as_dir" : 'X\(//\)$' \| \
29015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29016 $as_echo X"$as_dir" |
29017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29018 s//\1/
29021 /^X\(\/\/\)[^/].*/{
29022 s//\1/
29025 /^X\(\/\/\)$/{
29026 s//\1/
29029 /^X\(\/\).*/{
29030 s//\1/
29033 s/.*/./; q'`
29034 test -d "$as_dir" && break
29035 done
29036 test -z "$as_dirs" || eval "mkdir $as_dirs"
29037 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29040 } # as_fn_mkdir_p
29041 if mkdir -p . 2>/dev/null; then
29042 as_mkdir_p='mkdir -p "$as_dir"'
29043 else
29044 test -d ./-p && rmdir ./-p
29045 as_mkdir_p=false
29048 if test -x / >/dev/null 2>&1; then
29049 as_test_x='test -x'
29050 else
29051 if ls -dL / >/dev/null 2>&1; then
29052 as_ls_L_option=L
29053 else
29054 as_ls_L_option=
29056 as_test_x='
29057 eval sh -c '\''
29058 if test -d "$1"; then
29059 test -d "$1/.";
29060 else
29061 case $1 in #(
29062 -*)set "./$1";;
29063 esac;
29064 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29065 ???[sx]*):;;*)false;;esac;fi
29066 '\'' sh
29069 as_executable_p=$as_test_x
29071 # Sed expression to map a string onto a valid CPP name.
29072 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29074 # Sed expression to map a string onto a valid variable name.
29075 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29078 exec 6>&1
29079 ## ----------------------------------- ##
29080 ## Main body of $CONFIG_STATUS script. ##
29081 ## ----------------------------------- ##
29082 _ASEOF
29083 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29086 # Save the log message, to keep $0 and so on meaningful, and to
29087 # report actual input values of CONFIG_FILES etc. instead of their
29088 # values after options handling.
29089 ac_log="
29090 This file was extended by $as_me, which was
29091 generated by GNU Autoconf 2.64. Invocation command line was
29093 CONFIG_FILES = $CONFIG_FILES
29094 CONFIG_HEADERS = $CONFIG_HEADERS
29095 CONFIG_LINKS = $CONFIG_LINKS
29096 CONFIG_COMMANDS = $CONFIG_COMMANDS
29097 $ $0 $@
29099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29102 _ACEOF
29104 case $ac_config_files in *"
29105 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29106 esac
29108 case $ac_config_headers in *"
29109 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29110 esac
29113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29114 # Files that config.status was made for.
29115 config_files="$ac_config_files"
29116 config_headers="$ac_config_headers"
29117 config_links="$ac_config_links"
29118 config_commands="$ac_config_commands"
29120 _ACEOF
29122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29123 ac_cs_usage="\
29124 \`$as_me' instantiates files and other configuration actions
29125 from templates according to the current configuration. Unless the files
29126 and actions are specified as TAGs, all are instantiated by default.
29128 Usage: $0 [OPTION]... [TAG]...
29130 -h, --help print this help, then exit
29131 -V, --version print version number and configuration settings, then exit
29132 -q, --quiet, --silent
29133 do not print progress messages
29134 -d, --debug don't remove temporary files
29135 --recheck update $as_me by reconfiguring in the same conditions
29136 --file=FILE[:TEMPLATE]
29137 instantiate the configuration file FILE
29138 --header=FILE[:TEMPLATE]
29139 instantiate the configuration header FILE
29141 Configuration files:
29142 $config_files
29144 Configuration headers:
29145 $config_headers
29147 Configuration links:
29148 $config_links
29150 Configuration commands:
29151 $config_commands
29153 Report bugs to the package provider."
29155 _ACEOF
29156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29157 ac_cs_version="\\
29158 config.status
29159 configured by $0, generated by GNU Autoconf 2.64,
29160 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29162 Copyright (C) 2009 Free Software Foundation, Inc.
29163 This config.status script is free software; the Free Software Foundation
29164 gives unlimited permission to copy, distribute and modify it."
29166 ac_pwd='$ac_pwd'
29167 srcdir='$srcdir'
29168 AWK='$AWK'
29169 test -n "\$AWK" || AWK=awk
29170 _ACEOF
29172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29173 # The default lists apply if the user does not specify any file.
29174 ac_need_defaults=:
29175 while test $# != 0
29177 case $1 in
29178 --*=*)
29179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29181 ac_shift=:
29184 ac_option=$1
29185 ac_optarg=$2
29186 ac_shift=shift
29188 esac
29190 case $ac_option in
29191 # Handling of the options.
29192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29193 ac_cs_recheck=: ;;
29194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29195 $as_echo "$ac_cs_version"; exit ;;
29196 --debug | --debu | --deb | --de | --d | -d )
29197 debug=: ;;
29198 --file | --fil | --fi | --f )
29199 $ac_shift
29200 case $ac_optarg in
29201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29202 esac
29203 as_fn_append CONFIG_FILES " '$ac_optarg'"
29204 ac_need_defaults=false;;
29205 --header | --heade | --head | --hea )
29206 $ac_shift
29207 case $ac_optarg in
29208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29209 esac
29210 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29211 ac_need_defaults=false;;
29212 --he | --h)
29213 # Conflict between --help and --header
29214 as_fn_error "ambiguous option: \`$1'
29215 Try \`$0 --help' for more information.";;
29216 --help | --hel | -h )
29217 $as_echo "$ac_cs_usage"; exit ;;
29218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29220 ac_cs_silent=: ;;
29222 # This is an error.
29223 -*) as_fn_error "unrecognized option: \`$1'
29224 Try \`$0 --help' for more information." ;;
29226 *) as_fn_append ac_config_targets " $1"
29227 ac_need_defaults=false ;;
29229 esac
29230 shift
29231 done
29233 ac_configure_extra_args=
29235 if $ac_cs_silent; then
29236 exec 6>/dev/null
29237 ac_configure_extra_args="$ac_configure_extra_args --silent"
29240 _ACEOF
29241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29242 if \$ac_cs_recheck; then
29243 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29244 shift
29245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29246 CONFIG_SHELL='$SHELL'
29247 export CONFIG_SHELL
29248 exec "\$@"
29251 _ACEOF
29252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29253 exec 5>>config.log
29255 echo
29256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29257 ## Running $as_me. ##
29258 _ASBOX
29259 $as_echo "$ac_log"
29260 } >&5
29262 _ACEOF
29263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29265 # INIT-COMMANDS
29267 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29268 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29269 subdirs='$subdirs'
29271 _ACEOF
29273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29275 # Handling of arguments.
29276 for ac_config_target in $ac_config_targets
29278 case $ac_config_target in
29279 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29280 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29281 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29282 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29283 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29284 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29285 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29286 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29287 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29289 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29290 esac
29291 done
29294 # If the user did not use the arguments to specify the items to instantiate,
29295 # then the envvar interface is used. Set only those that are not.
29296 # We use the long form for the default assignment because of an extremely
29297 # bizarre bug on SunOS 4.1.3.
29298 if $ac_need_defaults; then
29299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29300 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29301 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29302 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29305 # Have a temporary directory for convenience. Make it in the build tree
29306 # simply because there is no reason against having it here, and in addition,
29307 # creating and moving files from /tmp can sometimes cause problems.
29308 # Hook for its removal unless debugging.
29309 # Note that there is a small window in which the directory will not be cleaned:
29310 # after its creation but before its name has been assigned to `$tmp'.
29311 $debug ||
29313 tmp=
29314 trap 'exit_status=$?
29315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29317 trap 'as_fn_exit 1' 1 2 13 15
29319 # Create a (secure) tmp directory for tmp files.
29322 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29323 test -n "$tmp" && test -d "$tmp"
29324 } ||
29326 tmp=./conf$$-$RANDOM
29327 (umask 077 && mkdir "$tmp")
29328 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29330 # Set up the scripts for CONFIG_FILES section.
29331 # No need to generate them if there are no CONFIG_FILES.
29332 # This happens for instance with `./config.status config.h'.
29333 if test -n "$CONFIG_FILES"; then
29335 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29336 ac_cs_awk_getline=:
29337 ac_cs_awk_pipe_init=
29338 ac_cs_awk_read_file='
29339 while ((getline aline < (F[key])) > 0)
29340 print(aline)
29341 close(F[key])'
29342 ac_cs_awk_pipe_fini=
29343 else
29344 ac_cs_awk_getline=false
29345 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29346 ac_cs_awk_read_file='
29347 print "|#_!!_#|"
29348 print "cat " F[key] " &&"
29349 '$ac_cs_awk_pipe_init
29350 # The final `:' finishes the AND list.
29351 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29353 ac_cr=`echo X | tr X '\015'`
29354 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29355 # But we know of no other shell where ac_cr would be empty at this
29356 # point, so we can use a bashism as a fallback.
29357 if test "x$ac_cr" = x; then
29358 eval ac_cr=\$\'\\r\'
29360 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29361 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29362 ac_cs_awk_cr='\r'
29363 else
29364 ac_cs_awk_cr=$ac_cr
29367 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29368 _ACEOF
29370 # Create commands to substitute file output variables.
29372 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29373 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29374 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29375 echo "_ACAWK" &&
29376 echo "_ACEOF"
29377 } >conf$$files.sh &&
29378 . ./conf$$files.sh ||
29379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29380 rm -f conf$$files.sh
29383 echo "cat >conf$$subs.awk <<_ACEOF" &&
29384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29385 echo "_ACEOF"
29386 } >conf$$subs.sh ||
29387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29389 ac_delim='%!_!# '
29390 for ac_last_try in false false false false false :; do
29391 . ./conf$$subs.sh ||
29392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29395 if test $ac_delim_n = $ac_delim_num; then
29396 break
29397 elif $ac_last_try; then
29398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29399 else
29400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29402 done
29403 rm -f conf$$subs.sh
29405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29406 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29407 _ACEOF
29408 sed -n '
29410 s/^/S["/; s/!.*/"]=/
29413 s/^[^!]*!//
29414 :repl
29415 t repl
29416 s/'"$ac_delim"'$//
29417 t delim
29420 s/\(.\{148\}\).*/\1/
29421 t more1
29422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29425 b repl
29426 :more1
29427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29430 s/.\{148\}//
29431 t nl
29432 :delim
29434 s/\(.\{148\}\).*/\1/
29435 t more2
29436 s/["\\]/\\&/g; s/^/"/; s/$/"/
29439 :more2
29440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29443 s/.\{148\}//
29444 t delim
29445 ' <conf$$subs.awk | sed '
29446 /^[^""]/{
29448 s/\n//
29450 ' >>$CONFIG_STATUS || ac_write_fail=1
29451 rm -f conf$$subs.awk
29452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29453 _ACAWK
29454 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29455 for (key in S) S_is_set[key] = 1
29456 FS = "\a"
29457 \$ac_cs_awk_pipe_init
29460 line = $ 0
29461 nfields = split(line, field, "@")
29462 substed = 0
29463 len = length(field[1])
29464 for (i = 2; i < nfields; i++) {
29465 key = field[i]
29466 keylen = length(key)
29467 if (S_is_set[key]) {
29468 value = S[key]
29469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29470 len += length(value) + length(field[++i])
29471 substed = 1
29472 } else
29473 len += 1 + keylen
29475 if (nfields == 3 && !substed) {
29476 key = field[2]
29477 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29478 \$ac_cs_awk_read_file
29479 next
29482 print line
29484 \$ac_cs_awk_pipe_fini
29485 _ACAWK
29486 _ACEOF
29487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29490 else
29492 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29493 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29494 _ACEOF
29496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29498 # trailing colons and then remove the whole line if VPATH becomes empty
29499 # (actually we leave an empty line to preserve line numbers).
29500 if test "x$srcdir" = x.; then
29501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29502 s/:*\$(srcdir):*/:/
29503 s/:*\${srcdir}:*/:/
29504 s/:*@srcdir@:*/:/
29505 s/^\([^=]*=[ ]*\):*/\1/
29506 s/:*$//
29507 s/^[^=]*=[ ]*$//
29511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29512 fi # test -n "$CONFIG_FILES"
29514 # Set up the scripts for CONFIG_HEADERS section.
29515 # No need to generate them if there are no CONFIG_HEADERS.
29516 # This happens for instance with `./config.status Makefile'.
29517 if test -n "$CONFIG_HEADERS"; then
29518 cat >"$tmp/defines.awk" <<\_ACAWK ||
29519 BEGIN {
29520 _ACEOF
29522 # Transform confdefs.h into an awk script `defines.awk', embedded as
29523 # here-document in config.status, that substitutes the proper values into
29524 # config.h.in to produce config.h.
29526 # Create a delimiter string that does not exist in confdefs.h, to ease
29527 # handling of long lines.
29528 ac_delim='%!_!# '
29529 for ac_last_try in false false :; do
29530 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29531 if test -z "$ac_t"; then
29532 break
29533 elif $ac_last_try; then
29534 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29535 else
29536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29538 done
29540 # For the awk script, D is an array of macro values keyed by name,
29541 # likewise P contains macro parameters if any. Preserve backslash
29542 # newline sequences.
29544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29545 sed -n '
29546 s/.\{148\}/&'"$ac_delim"'/g
29547 t rset
29548 :rset
29549 s/^[ ]*#[ ]*define[ ][ ]*/ /
29550 t def
29552 :def
29553 s/\\$//
29554 t bsnl
29555 s/["\\]/\\&/g
29556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29557 D["\1"]=" \3"/p
29558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29560 :bsnl
29561 s/["\\]/\\&/g
29562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29563 D["\1"]=" \3\\\\\\n"\\/p
29564 t cont
29565 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29566 t cont
29568 :cont
29570 s/.\{148\}/&'"$ac_delim"'/g
29571 t clear
29572 :clear
29573 s/\\$//
29574 t bsnlc
29575 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29577 :bsnlc
29578 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29579 b cont
29580 ' <confdefs.h | sed '
29581 s/'"$ac_delim"'/"\\\
29582 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29585 for (key in D) D_is_set[key] = 1
29586 FS = "\a"
29588 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29589 line = \$ 0
29590 split(line, arg, " ")
29591 if (arg[1] == "#") {
29592 defundef = arg[2]
29593 mac1 = arg[3]
29594 } else {
29595 defundef = substr(arg[1], 2)
29596 mac1 = arg[2]
29598 split(mac1, mac2, "(") #)
29599 macro = mac2[1]
29600 prefix = substr(line, 1, index(line, defundef) - 1)
29601 if (D_is_set[macro]) {
29602 # Preserve the white space surrounding the "#".
29603 print prefix "define", macro P[macro] D[macro]
29604 next
29605 } else {
29606 # Replace #undef with comments. This is necessary, for example,
29607 # in the case of _POSIX_SOURCE, which is predefined and required
29608 # on some systems where configure will not decide to define it.
29609 if (defundef == "undef") {
29610 print "/*", prefix defundef, macro, "*/"
29611 next
29615 { print }
29616 _ACAWK
29617 _ACEOF
29618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29619 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29620 fi # test -n "$CONFIG_HEADERS"
29623 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29624 shift
29625 for ac_tag
29627 case $ac_tag in
29628 :[FHLC]) ac_mode=$ac_tag; continue;;
29629 esac
29630 case $ac_mode$ac_tag in
29631 :[FHL]*:*);;
29632 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29633 :[FH]-) ac_tag=-:-;;
29634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29635 esac
29636 ac_save_IFS=$IFS
29637 IFS=:
29638 set x $ac_tag
29639 IFS=$ac_save_IFS
29640 shift
29641 ac_file=$1
29642 shift
29644 case $ac_mode in
29645 :L) ac_source=$1;;
29646 :[FH])
29647 ac_file_inputs=
29648 for ac_f
29650 case $ac_f in
29651 -) ac_f="$tmp/stdin";;
29652 *) # Look for the file first in the build tree, then in the source tree
29653 # (if the path is not absolute). The absolute path cannot be DOS-style,
29654 # because $ac_f cannot contain `:'.
29655 test -f "$ac_f" ||
29656 case $ac_f in
29657 [\\/$]*) false;;
29658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29659 esac ||
29660 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29661 esac
29662 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29663 as_fn_append ac_file_inputs " '$ac_f'"
29664 done
29666 # Let's still pretend it is `configure' which instantiates (i.e., don't
29667 # use $as_me), people would be surprised to read:
29668 # /* config.h. Generated by config.status. */
29669 configure_input='Generated from '`
29670 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29671 `' by configure.'
29672 if test x"$ac_file" != x-; then
29673 configure_input="$ac_file. $configure_input"
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29675 $as_echo "$as_me: creating $ac_file" >&6;}
29677 # Neutralize special characters interpreted by sed in replacement strings.
29678 case $configure_input in #(
29679 *\&* | *\|* | *\\* )
29680 ac_sed_conf_input=`$as_echo "$configure_input" |
29681 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29682 *) ac_sed_conf_input=$configure_input;;
29683 esac
29685 case $ac_tag in
29686 *:-:* | *:-) cat >"$tmp/stdin" \
29687 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29688 esac
29690 esac
29692 ac_dir=`$as_dirname -- "$ac_file" ||
29693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29694 X"$ac_file" : 'X\(//\)[^/]' \| \
29695 X"$ac_file" : 'X\(//\)$' \| \
29696 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29697 $as_echo X"$ac_file" |
29698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29699 s//\1/
29702 /^X\(\/\/\)[^/].*/{
29703 s//\1/
29706 /^X\(\/\/\)$/{
29707 s//\1/
29710 /^X\(\/\).*/{
29711 s//\1/
29714 s/.*/./; q'`
29715 as_dir="$ac_dir"; as_fn_mkdir_p
29716 ac_builddir=.
29718 case "$ac_dir" in
29719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29722 # A ".." for each directory in $ac_dir_suffix.
29723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29724 case $ac_top_builddir_sub in
29725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29727 esac ;;
29728 esac
29729 ac_abs_top_builddir=$ac_pwd
29730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29731 # for backward compatibility:
29732 ac_top_builddir=$ac_top_build_prefix
29734 case $srcdir in
29735 .) # We are building in place.
29736 ac_srcdir=.
29737 ac_top_srcdir=$ac_top_builddir_sub
29738 ac_abs_top_srcdir=$ac_pwd ;;
29739 [\\/]* | ?:[\\/]* ) # Absolute name.
29740 ac_srcdir=$srcdir$ac_dir_suffix;
29741 ac_top_srcdir=$srcdir
29742 ac_abs_top_srcdir=$srcdir ;;
29743 *) # Relative name.
29744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29745 ac_top_srcdir=$ac_top_build_prefix$srcdir
29746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29747 esac
29748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29751 case $ac_mode in
29754 # CONFIG_FILE
29757 _ACEOF
29759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29760 # If the template does not know about datarootdir, expand it.
29761 # FIXME: This hack should be removed a few years after 2.60.
29762 ac_datarootdir_hack=; ac_datarootdir_seen=
29763 ac_sed_dataroot='
29764 /datarootdir/ {
29768 /@datadir@/p
29769 /@docdir@/p
29770 /@infodir@/p
29771 /@localedir@/p
29772 /@mandir@/p'
29773 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29774 *datarootdir*) ac_datarootdir_seen=yes;;
29775 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29777 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29778 _ACEOF
29779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29780 ac_datarootdir_hack='
29781 s&@datadir@&$datadir&g
29782 s&@docdir@&$docdir&g
29783 s&@infodir@&$infodir&g
29784 s&@localedir@&$localedir&g
29785 s&@mandir@&$mandir&g
29786 s&\\\${datarootdir}&$datarootdir&g' ;;
29787 esac
29788 _ACEOF
29790 # Neutralize VPATH when `$srcdir' = `.'.
29791 # Shell code in configure.ac might set extrasub.
29792 # FIXME: do we really want to maintain this feature?
29793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29794 ac_sed_extra="$ac_vpsub
29795 $extrasub
29796 _ACEOF
29797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29800 s|@configure_input@|$ac_sed_conf_input|;t t
29801 s&@top_builddir@&$ac_top_builddir_sub&;t t
29802 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29803 s&@srcdir@&$ac_srcdir&;t t
29804 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29805 s&@top_srcdir@&$ac_top_srcdir&;t t
29806 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29807 s&@builddir@&$ac_builddir&;t t
29808 s&@abs_builddir@&$ac_abs_builddir&;t t
29809 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29810 $ac_datarootdir_hack
29812 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29813 if $ac_cs_awk_getline; then
29814 $AWK -f "$tmp/subs.awk"
29815 else
29816 $AWK -f "$tmp/subs.awk" | $SHELL
29817 fi >$tmp/out \
29818 || as_fn_error "could not create $ac_file" "$LINENO" 5
29820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29821 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29822 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29824 which seems to be undefined. Please make sure it is defined." >&5
29825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29826 which seems to be undefined. Please make sure it is defined." >&2;}
29828 rm -f "$tmp/stdin"
29829 case $ac_file in
29830 -) cat "$tmp/out" && rm -f "$tmp/out";;
29831 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29832 esac \
29833 || as_fn_error "could not create $ac_file" "$LINENO" 5
29837 # CONFIG_HEADER
29839 if test x"$ac_file" != x-; then
29841 $as_echo "/* $configure_input */" \
29842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29843 } >"$tmp/config.h" \
29844 || as_fn_error "could not create $ac_file" "$LINENO" 5
29845 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29847 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29848 else
29849 rm -f "$ac_file"
29850 mv "$tmp/config.h" "$ac_file" \
29851 || as_fn_error "could not create $ac_file" "$LINENO" 5
29853 else
29854 $as_echo "/* $configure_input */" \
29855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29856 || as_fn_error "could not create -" "$LINENO" 5
29861 # CONFIG_LINK
29864 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29866 else
29867 # Prefer the file from the source tree if names are identical.
29868 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29869 ac_source=$srcdir/$ac_source
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29873 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29875 if test ! -r "$ac_source"; then
29876 as_fn_error "$ac_source: file not found" "$LINENO" 5
29878 rm -f "$ac_file"
29880 # Try a relative symlink, then a hard link, then a copy.
29881 case $srcdir in
29882 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29883 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29884 esac
29885 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29886 ln "$ac_source" "$ac_file" 2>/dev/null ||
29887 cp -p "$ac_source" "$ac_file" ||
29888 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29891 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29892 $as_echo "$as_me: executing $ac_file commands" >&6;}
29894 esac
29897 case $ac_file$ac_mode in
29898 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29899 "gccdepdir":C)
29900 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29901 for lang in $subdirs c-family common
29903 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29904 done ;;
29905 "as":F) chmod +x as ;;
29906 "collect-ld":F) chmod +x collect-ld ;;
29907 "nm":F) chmod +x nm ;;
29908 "default":C)
29909 case ${CONFIG_HEADERS} in
29910 *auto-host.h:config.in*)
29911 echo > cstamp-h ;;
29912 esac
29913 # Make sure all the subdirs exist.
29914 for d in $subdirs doc build common c-family
29916 test -d $d || mkdir $d
29917 done
29920 esac
29921 done # for ac_tag
29924 as_fn_exit 0
29925 _ACEOF
29926 ac_clean_files=$ac_clean_files_save
29928 test $ac_write_fail = 0 ||
29929 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29932 # configure is writing to config.log, and then calls config.status.
29933 # config.status does its own redirection, appending to config.log.
29934 # Unfortunately, on DOS this fails, as config.log is still kept open
29935 # by configure, so config.status won't be able to write to it; its
29936 # output is simply discarded. So we exec the FD to /dev/null,
29937 # effectively closing config.log, so it can be properly (re)opened and
29938 # appended to by config.status. When coming back to configure, we
29939 # need to make the FD available again.
29940 if test "$no_create" != yes; then
29941 ac_cs_success=:
29942 ac_config_status_args=
29943 test "$silent" = yes &&
29944 ac_config_status_args="$ac_config_status_args --quiet"
29945 exec 5>/dev/null
29946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29947 exec 5>>config.log
29948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29949 # would make configure fail if this is the last instruction.
29950 $ac_cs_success || as_fn_exit $?
29952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}