re PR middle-end/91603 (Unaligned access in expand_assignment)
[official-gcc.git] / gcc / configure
blob8c9f7742ac7aa75be93c67ace664f608c7f11594
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 NO_PIE_FLAG
635 NO_PIE_CFLAGS
636 enable_default_pie
637 PICFLAG
638 enable_host_shared
639 enable_plugin
640 pluginlibs
641 ISLINC
642 ISLLIBS
643 GMPINC
644 GMPLIBS
645 target_cpu_default
646 d_target_objs
647 fortran_target_objs
648 cxx_target_objs
649 c_target_objs
650 use_gcc_stdint
651 xm_defines
652 xm_include_list
653 xm_file_list
654 tm_d_include_list
655 tm_d_file_list
656 tm_p_include_list
657 tm_p_file_list
658 tm_defines
659 tm_include_list
660 tm_file_list
661 common_out_object_file
662 common_out_file
663 out_object_file
664 out_file
665 objc_boehm_gc
666 md_file
667 local_prefix
668 lang_tree_files
669 lang_specs_files
670 lang_opt_files
671 install
672 out_host_hook_obj
673 host_xm_defines
674 host_xm_include_list
675 host_xm_file_list
676 host_exeext
677 gcc_gxx_include_dir_add_sysroot
678 gcc_gxx_include_dir
679 gcc_config_arguments
680 float_h_file
681 extra_programs
682 extra_objs
683 extra_headers_list
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
686 extra_gcc_objs
687 TM_MULTILIB_EXCEPTIONS_CONFIG
688 TM_MULTILIB_CONFIG
689 TM_ENDIAN_CONFIG
690 tmake_file
691 xmake_file
692 cpp_install_dir
693 selftest_languages
694 check_languages
695 build_file_translate
696 build_xm_defines
697 build_xm_include_list
698 build_xm_file_list
699 build_install_headers_dir
700 build_exeext
701 all_selected_languages
702 all_languages
703 all_lang_makefrags
704 all_gtfiles
705 all_compilers
706 srcdir
707 subdirs
708 dollar
709 gcc_tooldir
710 enable_lto
711 DO_LINK_MUTEX
712 MAINT
713 zlibinc
714 zlibdir
715 HOST_LIBS
716 enable_default_ssp
717 thin_archive_support
718 ld_soname_option
719 ld_version_script_option
720 libgcc_visibility
721 gcc_cv_otool
722 gcc_cv_readelf
723 gcc_cv_objdump
724 ORIGINAL_NM_FOR_TARGET
725 gcc_cv_nm
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
730 gcc_cv_ld
731 ORIGINAL_AS_FOR_TARGET
732 gcc_cv_as
733 enable_fast_install
734 objdir
735 OTOOL64
736 OTOOL
737 LIPO
738 NMEDIT
739 DSYMUTIL
740 STRIP
741 OBJDUMP
742 ac_ct_DUMPBIN
743 DUMPBIN
745 FGREP
747 LIBTOOL
748 collect2
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
751 BUILD_NO_PIE_FLAG
752 BUILD_NO_PIE_CFLAGS
753 STMP_FIXINC
754 BUILD_LDFLAGS
755 BUILD_CXXFLAGS
756 BUILD_CFLAGS
757 CXX_FOR_BUILD
758 CC_FOR_BUILD
759 inhibit_libc
760 BUILD_SYSTEM_HEADER_DIR
761 SYSTEM_HEADER_DIR
763 CROSS
764 CATOBJEXT
765 GENCAT
766 INSTOBJEXT
767 DATADIRNAME
768 CATALOGS
769 POSUB
770 GMSGFMT
771 XGETTEXT
772 INCINTL
773 LIBINTL_DEP
774 LIBINTL
775 USE_NLS
776 get_gcc_base_ver
777 extra_opt_files
778 extra_modes_file
779 NATIVE_SYSTEM_HEADER_DIR
780 objext
781 manext
782 LIBICONV_DEP
783 LTLIBICONV
784 LIBICONV
785 ZSTD_LIB
786 ZSTD_INCLUDE
787 DL_LIB
788 LDEXP_LIB
789 EXTRA_GCC_LIBS
790 GNAT_LIBEXC
791 COLLECT2_LIBS
792 CXXDEPMODE
793 DEPDIR
794 am__leading_dot
795 doc_build_sys
798 BISON
799 FLEX
800 GENERATED_MANPAGES
801 BUILD_INFO
802 MAKEINFO
803 have_mktemp_command
804 make_compare_target
805 INSTALL_DATA
806 INSTALL_PROGRAM
807 INSTALL
808 ranlib_flags
809 RANLIB
811 LN_S
813 SET_MAKE
814 accel_dir_suffix
815 real_target_noncanonical
816 enable_as_accelerator
817 REPORT_BUGS_TEXI
818 REPORT_BUGS_TO
819 PKGVERSION
820 CONFIGURE_SPECS
821 enable_gcov
822 enable_shared
823 enable_fixed_point
824 enable_decimal_float
825 with_float
826 with_cpu
827 enable_multiarch
828 enable_multilib
829 coverage_flags
830 valgrind_command
831 valgrind_path_defines
832 valgrind_path
833 TREECHECKING
834 nocommon_flag
835 noexception_flags
836 warn_cxxflags
837 warn_cflags
838 c_strict_warn
839 strict_warn
840 c_loose_warn
841 loose_warn
842 aliasing_flags
844 EGREP
845 GREP
846 CXXCPP
847 PICFLAG_FOR_TARGET
848 GNATMAKE
849 GNATBIND
850 ac_ct_CXX
851 CXXFLAGS
853 OBJEXT
854 EXEEXT
855 ac_ct_CC
856 CPPFLAGS
857 LDFLAGS
858 CFLAGS
860 GENINSRC
861 CROSS_SYSTEM_HEADER_DIR
862 TARGET_SYSTEM_ROOT_DEFINE
863 TARGET_SYSTEM_ROOT
864 SYSROOT_CFLAGS_FOR_TARGET
865 target_subdir
866 host_subdir
867 build_subdir
868 build_libsubdir
869 target_noncanonical
870 host_noncanonical
871 target_os
872 target_vendor
873 target_cpu
874 target
875 host_os
876 host_vendor
877 host_cpu
878 host
879 build_os
880 build_vendor
881 build_cpu
882 build
883 target_alias
884 host_alias
885 build_alias
886 LIBS
887 ECHO_T
888 ECHO_N
889 ECHO_C
890 DEFS
891 mandir
892 localedir
893 libdir
894 psdir
895 pdfdir
896 dvidir
897 htmldir
898 infodir
899 docdir
900 oldincludedir
901 includedir
902 localstatedir
903 sharedstatedir
904 sysconfdir
905 datadir
906 datarootdir
907 libexecdir
908 sbindir
909 bindir
910 program_transform_name
911 prefix
912 exec_prefix
913 PACKAGE_URL
914 PACKAGE_BUGREPORT
915 PACKAGE_STRING
916 PACKAGE_VERSION
917 PACKAGE_TARNAME
918 PACKAGE_NAME
919 PATH_SEPARATOR
920 SHELL'
921 ac_subst_files='option_includes
922 language_hooks'
923 ac_user_opts='
924 enable_option_checking
925 with_build_libsubdir
926 with_local_prefix
927 with_native_system_header_dir
928 with_build_sysroot
929 with_sysroot
930 with_gxx_include_dir
931 with_cpp_install_dir
932 enable_generated_files_in_srcdir
933 with_gnu_ld
934 with_ld
935 with_demangler_in_ld
936 with_gnu_as
937 with_as
938 enable_largefile
939 enable_build_format_warnings
940 enable_werror_always
941 enable_checking
942 enable_coverage
943 enable_gather_detailed_mem_stats
944 enable_valgrind_annotations
945 with_stabs
946 enable_multilib
947 enable_multiarch
948 with_stack_clash_protection_guard_size
949 enable___cxa_atexit
950 enable_decimal_float
951 enable_fixed_point
952 enable_threads
953 enable_tls
954 enable_vtable_verify
955 enable_objc_gc
956 with_dwarf2
957 enable_shared
958 enable_gcov
959 with_specs
960 with_pkgversion
961 with_bugurl
962 enable_languages
963 with_multilib_list
964 with_zstd
965 with_zstd_include
966 with_zstd_lib
967 enable_rpath
968 with_libiconv_prefix
969 enable_sjlj_exceptions
970 with_gcc_major_version_only
971 enable_secureplt
972 enable_mingw_wildcard
973 enable_large_address_aware
974 enable_leading_mingw64_underscores
975 enable_cld
976 enable_frame_pointer
977 enable_win32_registry
978 enable_static
979 with_pic
980 enable_fast_install
981 enable_libtool_lock
982 enable_ld
983 enable_gold
984 with_plugin_ld
985 enable_gnu_indirect_function
986 enable_initfini_array
987 enable_comdat
988 enable_standard_branch_protection
989 enable_fix_cortex_a53_835769
990 enable_fix_cortex_a53_843419
991 with_glibc_version
992 enable_gnu_unique_object
993 enable_linker_build_id
994 enable_libssp
995 enable_default_ssp
996 with_long_double_128
997 with_long_double_format
998 with_gc
999 with_system_zlib
1000 enable_maintainer_mode
1001 enable_link_mutex
1002 enable_version_specific_runtime_libs
1003 enable_plugin
1004 enable_host_shared
1005 enable_libquadmath_support
1006 with_linker_hash_style
1007 with_diagnostics_color
1008 enable_default_pie
1010 ac_precious_vars='build_alias
1011 host_alias
1012 target_alias
1014 CFLAGS
1015 LDFLAGS
1016 LIBS
1017 CPPFLAGS
1019 CXXFLAGS
1021 CXXCPP
1023 GMPLIBS
1024 GMPINC
1025 ISLLIBS
1026 ISLINC'
1029 # Initialize some variables set by options.
1030 ac_init_help=
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1037 exec_prefix=NONE
1038 no_create=
1039 no_recursion=
1040 prefix=NONE
1041 program_prefix=NONE
1042 program_suffix=NONE
1043 program_transform_name=s,x,x,
1044 silent=
1045 site=
1046 srcdir=
1047 verbose=
1048 x_includes=NONE
1049 x_libraries=NONE
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE}'
1068 infodir='${datarootdir}/info'
1069 htmldir='${docdir}'
1070 dvidir='${docdir}'
1071 pdfdir='${docdir}'
1072 psdir='${docdir}'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1077 ac_prev=
1078 ac_dashdash=
1079 for ac_option
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\$ac_option
1084 ac_prev=
1085 continue
1088 case $ac_option in
1089 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090 *=) ac_optarg= ;;
1091 *) ac_optarg=yes ;;
1092 esac
1094 # Accept the important Cygnus configure options, so we can diagnose typos.
1096 case $ac_dashdash$ac_option in
1098 ac_dashdash=yes ;;
1100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101 ac_prev=bindir ;;
1102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103 bindir=$ac_optarg ;;
1105 -build | --build | --buil | --bui | --bu)
1106 ac_prev=build_alias ;;
1107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108 build_alias=$ac_optarg ;;
1110 -cache-file | --cache-file | --cache-fil | --cache-fi \
1111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112 ac_prev=cache_file ;;
1113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115 cache_file=$ac_optarg ;;
1117 --config-cache | -C)
1118 cache_file=config.cache ;;
1120 -datadir | --datadir | --datadi | --datad)
1121 ac_prev=datadir ;;
1122 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123 datadir=$ac_optarg ;;
1125 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126 | --dataroo | --dataro | --datar)
1127 ac_prev=datarootdir ;;
1128 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130 datarootdir=$ac_optarg ;;
1132 -disable-* | --disable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval enable_$ac_useropt=no ;;
1148 -docdir | --docdir | --docdi | --doc | --do)
1149 ac_prev=docdir ;;
1150 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151 docdir=$ac_optarg ;;
1153 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154 ac_prev=dvidir ;;
1155 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156 dvidir=$ac_optarg ;;
1158 -enable-* | --enable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=\$ac_optarg ;;
1174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176 | --exec | --exe | --ex)
1177 ac_prev=exec_prefix ;;
1178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180 | --exec=* | --exe=* | --ex=*)
1181 exec_prefix=$ac_optarg ;;
1183 -gas | --gas | --ga | --g)
1184 # Obsolete; use --with-gas.
1185 with_gas=yes ;;
1187 -help | --help | --hel | --he | -h)
1188 ac_init_help=long ;;
1189 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190 ac_init_help=recursive ;;
1191 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192 ac_init_help=short ;;
1194 -host | --host | --hos | --ho)
1195 ac_prev=host_alias ;;
1196 -host=* | --host=* | --hos=* | --ho=*)
1197 host_alias=$ac_optarg ;;
1199 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200 ac_prev=htmldir ;;
1201 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202 | --ht=*)
1203 htmldir=$ac_optarg ;;
1205 -includedir | --includedir | --includedi | --included | --include \
1206 | --includ | --inclu | --incl | --inc)
1207 ac_prev=includedir ;;
1208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209 | --includ=* | --inclu=* | --incl=* | --inc=*)
1210 includedir=$ac_optarg ;;
1212 -infodir | --infodir | --infodi | --infod | --info | --inf)
1213 ac_prev=infodir ;;
1214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215 infodir=$ac_optarg ;;
1217 -libdir | --libdir | --libdi | --libd)
1218 ac_prev=libdir ;;
1219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220 libdir=$ac_optarg ;;
1222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223 | --libexe | --libex | --libe)
1224 ac_prev=libexecdir ;;
1225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226 | --libexe=* | --libex=* | --libe=*)
1227 libexecdir=$ac_optarg ;;
1229 -localedir | --localedir | --localedi | --localed | --locale)
1230 ac_prev=localedir ;;
1231 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232 localedir=$ac_optarg ;;
1234 -localstatedir | --localstatedir | --localstatedi | --localstated \
1235 | --localstate | --localstat | --localsta | --localst | --locals)
1236 ac_prev=localstatedir ;;
1237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239 localstatedir=$ac_optarg ;;
1241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242 ac_prev=mandir ;;
1243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244 mandir=$ac_optarg ;;
1246 -nfp | --nfp | --nf)
1247 # Obsolete; use --without-fp.
1248 with_fp=no ;;
1250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251 | --no-cr | --no-c | -n)
1252 no_create=yes ;;
1254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256 no_recursion=yes ;;
1258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260 | --oldin | --oldi | --old | --ol | --o)
1261 ac_prev=oldincludedir ;;
1262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265 oldincludedir=$ac_optarg ;;
1267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268 ac_prev=prefix ;;
1269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270 prefix=$ac_optarg ;;
1272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273 | --program-pre | --program-pr | --program-p)
1274 ac_prev=program_prefix ;;
1275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277 program_prefix=$ac_optarg ;;
1279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280 | --program-suf | --program-su | --program-s)
1281 ac_prev=program_suffix ;;
1282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284 program_suffix=$ac_optarg ;;
1286 -program-transform-name | --program-transform-name \
1287 | --program-transform-nam | --program-transform-na \
1288 | --program-transform-n | --program-transform- \
1289 | --program-transform | --program-transfor \
1290 | --program-transfo | --program-transf \
1291 | --program-trans | --program-tran \
1292 | --progr-tra | --program-tr | --program-t)
1293 ac_prev=program_transform_name ;;
1294 -program-transform-name=* | --program-transform-name=* \
1295 | --program-transform-nam=* | --program-transform-na=* \
1296 | --program-transform-n=* | --program-transform-=* \
1297 | --program-transform=* | --program-transfor=* \
1298 | --program-transfo=* | --program-transf=* \
1299 | --program-trans=* | --program-tran=* \
1300 | --progr-tra=* | --program-tr=* | --program-t=*)
1301 program_transform_name=$ac_optarg ;;
1303 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304 ac_prev=pdfdir ;;
1305 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306 pdfdir=$ac_optarg ;;
1308 -psdir | --psdir | --psdi | --psd | --ps)
1309 ac_prev=psdir ;;
1310 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311 psdir=$ac_optarg ;;
1313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314 | -silent | --silent | --silen | --sile | --sil)
1315 silent=yes ;;
1317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318 ac_prev=sbindir ;;
1319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320 | --sbi=* | --sb=*)
1321 sbindir=$ac_optarg ;;
1323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325 | --sharedst | --shareds | --shared | --share | --shar \
1326 | --sha | --sh)
1327 ac_prev=sharedstatedir ;;
1328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331 | --sha=* | --sh=*)
1332 sharedstatedir=$ac_optarg ;;
1334 -site | --site | --sit)
1335 ac_prev=site ;;
1336 -site=* | --site=* | --sit=*)
1337 site=$ac_optarg ;;
1339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340 ac_prev=srcdir ;;
1341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342 srcdir=$ac_optarg ;;
1344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345 | --syscon | --sysco | --sysc | --sys | --sy)
1346 ac_prev=sysconfdir ;;
1347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349 sysconfdir=$ac_optarg ;;
1351 -target | --target | --targe | --targ | --tar | --ta | --t)
1352 ac_prev=target_alias ;;
1353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354 target_alias=$ac_optarg ;;
1356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 verbose=yes ;;
1359 -version | --version | --versio | --versi | --vers | -V)
1360 ac_init_version=: ;;
1362 -with-* | --with-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1371 "with_$ac_useropt"
1372 "*) ;;
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1375 esac
1376 eval with_$ac_useropt=\$ac_optarg ;;
1378 -without-* | --without-*)
1379 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380 # Reject names that are not valid shell variable names.
1381 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382 as_fn_error $? "invalid package name: $ac_useropt"
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=no ;;
1394 --x)
1395 # Obsolete; use --with-x.
1396 with_x=yes ;;
1398 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399 | --x-incl | --x-inc | --x-in | --x-i)
1400 ac_prev=x_includes ;;
1401 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403 x_includes=$ac_optarg ;;
1405 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407 ac_prev=x_libraries ;;
1408 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410 x_libraries=$ac_optarg ;;
1412 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1416 *=*)
1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 case $ac_envvar in #(
1420 '' | [0-9]* | *[!_$as_cr_alnum]* )
1421 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422 esac
1423 eval $ac_envvar=\$ac_optarg
1424 export $ac_envvar ;;
1427 # FIXME: should be removed in autoconf 3.0.
1428 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1434 esac
1435 done
1437 if test -n "$ac_prev"; then
1438 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439 as_fn_error $? "missing argument to $ac_option"
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1444 no) ;;
1445 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447 esac
1450 # Check all directory arguments for consistency.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1457 # Remove trailing slashes.
1458 case $ac_val in
1459 */ )
1460 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461 eval $ac_var=\$ac_val;;
1462 esac
1463 # Be sure to have absolute directory names.
1464 case $ac_val in
1465 [\\/$]* | ?:[\\/]* ) continue;;
1466 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467 esac
1468 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 done
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1474 build=$build_alias
1475 host=$host_alias
1476 target=$target_alias
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480 if test "x$build_alias" = x; then
1481 cross_compiling=maybe
1482 elif test "x$build_alias" != "x$host_alias"; then
1483 cross_compiling=yes
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498 as_fn_error $? "pwd does not report name of working directory"
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503 ac_srcdir_defaulted=yes
1504 # Try the directory containing this script, then the parent directory.
1505 ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507 X"$as_myself" : 'X\(//\)[^/]' \| \
1508 X"$as_myself" : 'X\(//\)$' \| \
1509 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512 s//\1/
1515 /^X\(\/\/\)[^/].*/{
1516 s//\1/
1519 /^X\(\/\/\)$/{
1520 s//\1/
1523 /^X\(\/\).*/{
1524 s//\1/
1527 s/.*/./; q'`
1528 srcdir=$ac_confdir
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530 srcdir=..
1532 else
1533 ac_srcdir_defaulted=no
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542 pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545 srcdir=.
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1566 cat <<_ACEOF
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1576 Configuration:
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking ...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1591 [PREFIX]
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1620 _ACEOF
1622 cat <<\_ACEOF
1624 Program names:
1625 --program-prefix=PREFIX prepend PREFIX to installed program names
1626 --program-suffix=SUFFIX append SUFFIX to installed program names
1627 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1629 System types:
1630 --build=BUILD configure for building on BUILD [guessed]
1631 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1632 --target=TARGET configure for building compilers for TARGET [HOST]
1633 _ACEOF
1636 if test -n "$ac_init_help"; then
1638 cat <<\_ACEOF
1640 Optional Features:
1641 --disable-option-checking ignore unrecognized --enable/--with options
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-generated-files-in-srcdir
1645 put copies of generated files in source dir intended
1646 for creating source tarballs for users without
1647 texinfo bison or flex
1648 --disable-largefile omit support for large files
1649 --disable-build-format-warnings
1650 don't use -Wformat while building GCC
1651 --enable-werror-always enable -Werror despite compiler version
1652 --enable-checking[=LIST]
1653 enable expensive run-time checks. With LIST, enable
1654 only specific categories of checks. Categories are:
1655 yes,no,all,none,release. Flags are:
1656 assert,df,extra,fold,gc,gcac,gimple,misc,
1657 rtlflag,rtl,runtime,tree,valgrind,types
1658 --enable-coverage[=LEVEL]
1659 enable compiler's code coverage collection. Use to
1660 measure compiler performance and locate unused parts
1661 of the compiler. With LEVEL, specify optimization.
1662 Values are opt, noopt, default is noopt
1663 --enable-gather-detailed-mem-stats
1664 enable detailed memory allocation stats gathering
1665 --enable-valgrind-annotations
1666 enable valgrind runtime interaction
1667 --enable-multilib enable library support for multiple ABIs
1668 --enable-multiarch enable support for multiarch paths
1669 --enable-__cxa_atexit enable __cxa_atexit for C++
1670 --enable-decimal-float={no,yes,bid,dpd}
1671 enable decimal float extension to C. Selecting 'bid'
1672 or 'dpd' choses which decimal floating point format
1673 to use
1674 --enable-fixed-point enable fixed-point arithmetic extension to C
1675 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1676 package
1677 --enable-tls enable or disable generation of tls code overriding
1678 the assembler check for tls support
1679 --enable-vtable-verify enable vtable verification feature
1680 --enable-objc-gc enable the use of Boehm's garbage collector with the
1681 GNU Objective-C runtime
1682 --disable-shared don't provide a shared libgcc
1683 --disable-gcov don't provide libgcov and related host tools
1684 --enable-languages=LIST specify which front-ends to build
1685 --disable-rpath do not hardcode runtime library paths
1686 --enable-sjlj-exceptions
1687 arrange to use setjmp/longjmp exception handling
1688 --enable-secureplt enable -msecure-plt by default for PowerPC
1689 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1690 Default to platform configuration
1691 --enable-large-address-aware
1692 Link mingw executables with --large-address-aware
1693 --enable-leading-mingw64-underscores
1694 enable leading underscores on 64 bit mingw targets
1695 --enable-cld enable -mcld by default for 32bit x86
1696 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1697 --disable-win32-registry
1698 disable lookup of installation paths in the Registry
1699 on Windows hosts
1700 --enable-win32-registry enable registry lookup (default)
1701 --enable-win32-registry=KEY
1702 use KEY instead of GCC version as the last portion
1703 of the registry key
1704 --enable-shared[=PKGS] build shared libraries [default=yes]
1705 --enable-static[=PKGS] build static libraries [default=yes]
1706 --enable-fast-install[=PKGS]
1707 optimize for fast installation [default=yes]
1708 --disable-libtool-lock avoid locking (might break parallel builds)
1709 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1710 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1711 --enable-gnu-indirect-function
1712 enable the use of the @gnu_indirect_function to
1713 glibc systems
1714 --enable-initfini-array use .init_array/.fini_array sections
1715 --enable-comdat enable COMDAT group support
1717 --enable-standard-branch-protection
1718 enable Branch Target Identification Mechanism and
1719 Return Address Signing by default for AArch64
1720 --disable-standard-branch-protection
1721 disable Branch Target Identification Mechanism and
1722 Return Address Signing by default for AArch64
1725 --enable-fix-cortex-a53-835769
1726 enable workaround for AArch64 Cortex-A53 erratum
1727 835769 by default
1728 --disable-fix-cortex-a53-835769
1729 disable workaround for AArch64 Cortex-A53 erratum
1730 835769 by default
1733 --enable-fix-cortex-a53-843419
1734 enable workaround for AArch64 Cortex-A53 erratum
1735 843419 by default
1736 --disable-fix-cortex-a53-843419
1737 disable workaround for AArch64 Cortex-A53 erratum
1738 843419 by default
1740 --enable-gnu-unique-object
1741 enable the use of the @gnu_unique_object ELF
1742 extension on glibc systems
1743 --enable-linker-build-id
1744 compiler will always pass --build-id to linker
1745 --enable-libssp enable linking against libssp
1746 --enable-default-ssp enable Stack Smashing Protection as default
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful (and
1749 sometimes confusing) to the casual installer
1750 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1751 thrashing on the build machine
1752 --enable-version-specific-runtime-libs
1753 specify that runtime libraries should be installed
1754 in a compiler-specific directory
1755 --enable-plugin enable plugin support
1756 --enable-host-shared build host code as shared libraries
1757 --disable-libquadmath-support
1758 disable libquadmath support for Fortran
1759 --enable-default-pie enable Position Independent Executable as default
1761 Optional Packages:
1762 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1763 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1764 --with-build-libsubdir=DIR Directory where to find libraries for build system
1765 --with-local-prefix=DIR specifies directory to put local include
1766 --with-native-system-header-dir=dir
1767 use dir as the directory to look for standard
1768 system header files in. Defaults to /usr/include.
1769 --with-build-sysroot=sysroot
1770 use sysroot as the system root during the build
1771 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1772 --with-gxx-include-dir=DIR
1773 specifies directory to put g++ header files
1774 --with-cpp-install-dir=DIR
1775 install the user visible C preprocessor in DIR
1776 (relative to PREFIX) as well as PREFIX/bin
1777 --with-gnu-ld arrange to work with GNU ld
1778 --with-ld arrange to use the specified ld (full pathname)
1779 --with-demangler-in-ld try to use demangler in GNU ld
1780 --with-gnu-as arrange to work with GNU as
1781 --with-as arrange to use the specified as (full pathname)
1782 --with-stabs arrange to use stabs instead of host debug format
1783 --with-stack-clash-protection-guard-size=size
1784 Set the default stack clash protection guard size
1785 for specific targets as a power of two in bytes.
1786 --with-dwarf2 force the default debug format to be DWARF 2
1787 --with-specs=SPECS add SPECS to driver command-line processing
1788 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1789 --with-bugurl=URL Direct users to URL to report a bug
1790 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1791 --with-zstd=PATH specify prefix directory for installed zstd library.
1792 Equivalent to --with-zstd-include=PATH/include plus
1793 --with-zstd-lib=PATH/lib
1794 --with-zstd-include=PATH
1795 specify directory for installed zstd include files
1796 --with-zstd-lib=PATH specify directory for the installed zstd library
1797 --with-gnu-ld assume the C compiler uses GNU ld default=no
1798 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1799 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1800 --with-gcc-major-version-only
1801 use only GCC major number in filesystem paths
1802 --with-pic try to use only PIC/non-PIC objects [default=use
1803 both]
1804 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1805 --with-plugin-ld=[ARG] specify the plugin linker
1806 --with-glibc-version=M.N
1807 assume GCC used with glibc version M.N or later
1808 --with-long-double-128 use 128-bit long double by default
1809 --with-long-double-format={ieee,ibm}
1810 Specify whether PowerPC long double uses IEEE or IBM format
1812 --with-gc={page,zone} this option is not supported anymore. It used to
1813 choose the garbage collection mechanism to use with
1814 the compiler
1815 --with-system-zlib use installed libz
1816 --with-linker-hash-style={sysv,gnu,both}
1817 specify the linker hash style
1818 --with-diagnostics-color={never,auto,auto-if-env,always}
1819 specify the default of -fdiagnostics-color option
1820 auto-if-env stands for -fdiagnostics-color=auto if
1821 GCC_COLOR environment variable is present and
1822 -fdiagnostics-color=never otherwise
1824 Some influential environment variables:
1825 CC C compiler command
1826 CFLAGS C compiler flags
1827 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1828 nonstandard directory <lib dir>
1829 LIBS libraries to pass to the linker, e.g. -l<library>
1830 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1831 you have headers in a nonstandard directory <include dir>
1832 CXX C++ compiler command
1833 CXXFLAGS C++ compiler flags
1834 CXXCPP C++ preprocessor
1835 CPP C preprocessor
1836 GMPLIBS How to link GMP
1837 GMPINC How to find GMP include files
1838 ISLLIBS How to link isl
1839 ISLINC How to find isl include files
1841 Use these variables to override the choices made by `configure' or to help
1842 it to find libraries and programs with nonstandard names/locations.
1844 Report bugs to the package provider.
1845 _ACEOF
1846 ac_status=$?
1849 if test "$ac_init_help" = "recursive"; then
1850 # If there are subdirs, report their specific --help.
1851 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1852 test -d "$ac_dir" ||
1853 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1854 continue
1855 ac_builddir=.
1857 case "$ac_dir" in
1858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1860 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1861 # A ".." for each directory in $ac_dir_suffix.
1862 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1863 case $ac_top_builddir_sub in
1864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1866 esac ;;
1867 esac
1868 ac_abs_top_builddir=$ac_pwd
1869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1870 # for backward compatibility:
1871 ac_top_builddir=$ac_top_build_prefix
1873 case $srcdir in
1874 .) # We are building in place.
1875 ac_srcdir=.
1876 ac_top_srcdir=$ac_top_builddir_sub
1877 ac_abs_top_srcdir=$ac_pwd ;;
1878 [\\/]* | ?:[\\/]* ) # Absolute name.
1879 ac_srcdir=$srcdir$ac_dir_suffix;
1880 ac_top_srcdir=$srcdir
1881 ac_abs_top_srcdir=$srcdir ;;
1882 *) # Relative name.
1883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1884 ac_top_srcdir=$ac_top_build_prefix$srcdir
1885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1886 esac
1887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1889 cd "$ac_dir" || { ac_status=$?; continue; }
1890 # Check for guested configure.
1891 if test -f "$ac_srcdir/configure.gnu"; then
1892 echo &&
1893 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1894 elif test -f "$ac_srcdir/configure"; then
1895 echo &&
1896 $SHELL "$ac_srcdir/configure" --help=recursive
1897 else
1898 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1899 fi || ac_status=$?
1900 cd "$ac_pwd" || { ac_status=$?; break; }
1901 done
1904 test -n "$ac_init_help" && exit $ac_status
1905 if $ac_init_version; then
1906 cat <<\_ACEOF
1907 configure
1908 generated by GNU Autoconf 2.69
1910 Copyright (C) 2012 Free Software Foundation, Inc.
1911 This configure script is free software; the Free Software Foundation
1912 gives unlimited permission to copy, distribute and modify it.
1913 _ACEOF
1914 exit
1917 ## ------------------------ ##
1918 ## Autoconf initialization. ##
1919 ## ------------------------ ##
1921 # ac_fn_c_try_compile LINENO
1922 # --------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_c_try_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_compile
1959 # ac_fn_cxx_try_compile LINENO
1960 # ----------------------------
1961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_cxx_try_compile ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext
1966 if { { ac_try="$ac_compile"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_compile") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest.$ac_objext; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 ac_retval=1
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1995 } # ac_fn_cxx_try_compile
1997 # ac_fn_cxx_try_cpp LINENO
1998 # ------------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_cxx_try_cpp ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2004 case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } > conftest.i && {
2019 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2020 test ! -s conftest.err
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=1
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2032 } # ac_fn_cxx_try_cpp
2034 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2035 # ---------------------------------------------------------
2036 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2037 # the include files in INCLUDES and setting the cache variable VAR
2038 # accordingly.
2039 ac_fn_cxx_check_header_mongrel ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if eval \${$3+:} false; then :
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 else
2052 # Is the header compilable?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2054 $as_echo_n "checking $2 usability... " >&6; }
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2058 #include <$2>
2059 _ACEOF
2060 if ac_fn_cxx_try_compile "$LINENO"; then :
2061 ac_header_compiler=yes
2062 else
2063 ac_header_compiler=no
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2067 $as_echo "$ac_header_compiler" >&6; }
2069 # Is the header present?
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2071 $as_echo_n "checking $2 presence... " >&6; }
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_cxx_try_cpp "$LINENO"; then :
2077 ac_header_preproc=yes
2078 else
2079 ac_header_preproc=no
2081 rm -f conftest.err conftest.i conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2083 $as_echo "$ac_header_preproc" >&6; }
2085 # So? What about this header?
2086 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2087 yes:no: )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2089 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 no:yes:* )
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2095 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2097 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2099 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2101 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 esac
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 eval "$3=\$ac_header_compiler"
2113 eval ac_res=\$$3
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 } # ac_fn_cxx_check_header_mongrel
2121 # ac_fn_cxx_try_run LINENO
2122 # ------------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2124 # that executables *can* be run.
2125 ac_fn_cxx_try_run ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_link"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>&5
2136 ac_status=$?
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2139 { { case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_try") 2>&5
2146 ac_status=$?
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; }; }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: program exited with status $ac_status" >&5
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=$ac_status
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_cxx_try_run
2163 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2164 # ---------------------------------------------------------
2165 # Tests whether HEADER exists and can be compiled using the include files in
2166 # INCLUDES, setting the cache variable VAR accordingly.
2167 ac_fn_cxx_check_header_compile ()
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_cxx_try_compile "$LINENO"; then :
2181 eval "$3=yes"
2182 else
2183 eval "$3=no"
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 } # ac_fn_cxx_check_header_compile
2194 # ac_fn_c_try_cpp LINENO
2195 # ----------------------
2196 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_cpp ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 if { { ac_try="$ac_cpp conftest.$ac_ext"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } > conftest.i && {
2216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 }; then :
2219 ac_retval=0
2220 else
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 ac_retval=1
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status $ac_retval
2229 } # ac_fn_c_try_cpp
2231 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2232 # ----------------------------------------------
2233 # Tries to find the compile-time value of EXPR in a program that includes
2234 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2235 # computed
2236 ac_fn_cxx_compute_int ()
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 if test "$cross_compiling" = yes; then
2240 # Depending upon the size, compute the lo and hi bounds.
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) >= 0)];
2248 test_array [0] = 0;
2249 return test_array [0];
2252 return 0;
2254 _ACEOF
2255 if ac_fn_cxx_try_compile "$LINENO"; then :
2256 ac_lo=0 ac_mid=0
2257 while :; do
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 test_array [0] = 0;
2266 return test_array [0];
2269 return 0;
2271 _ACEOF
2272 if ac_fn_cxx_try_compile "$LINENO"; then :
2273 ac_hi=$ac_mid; break
2274 else
2275 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2276 if test $ac_lo -le $ac_mid; then
2277 ac_lo= ac_hi=
2278 break
2280 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 done
2284 else
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2289 main ()
2291 static int test_array [1 - 2 * !(($2) < 0)];
2292 test_array [0] = 0;
2293 return test_array [0];
2296 return 0;
2298 _ACEOF
2299 if ac_fn_cxx_try_compile "$LINENO"; then :
2300 ac_hi=-1 ac_mid=-1
2301 while :; do
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2306 main ()
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2309 test_array [0] = 0;
2310 return test_array [0];
2313 return 0;
2315 _ACEOF
2316 if ac_fn_cxx_try_compile "$LINENO"; then :
2317 ac_lo=$ac_mid; break
2318 else
2319 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320 if test $ac_mid -le $ac_hi; then
2321 ac_lo= ac_hi=
2322 break
2324 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 done
2328 else
2329 ac_lo= ac_hi=
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2344 test_array [0] = 0;
2345 return test_array [0];
2348 return 0;
2350 _ACEOF
2351 if ac_fn_cxx_try_compile "$LINENO"; then :
2352 ac_hi=$ac_mid
2353 else
2354 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 done
2358 case $ac_lo in #((
2359 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2360 '') ac_retval=1 ;;
2361 esac
2362 else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2366 static long int longval () { return $2; }
2367 static unsigned long int ulongval () { return $2; }
2368 #include <stdio.h>
2369 #include <stdlib.h>
2371 main ()
2374 FILE *f = fopen ("conftest.val", "w");
2375 if (! f)
2376 return 1;
2377 if (($2) < 0)
2379 long int i = longval ();
2380 if (i != ($2))
2381 return 1;
2382 fprintf (f, "%ld", i);
2384 else
2386 unsigned long int i = ulongval ();
2387 if (i != ($2))
2388 return 1;
2389 fprintf (f, "%lu", i);
2391 /* Do not output a trailing newline, as this causes \r\n confusion
2392 on some platforms. */
2393 return ferror (f) || fclose (f) != 0;
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_run "$LINENO"; then :
2400 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2401 else
2402 ac_retval=1
2404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2405 conftest.$ac_objext conftest.beam conftest.$ac_ext
2406 rm -f conftest.val
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_cxx_compute_int
2414 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2415 # ---------------------------------------------
2416 # Tests whether TYPE exists after having included INCLUDES, setting cache
2417 # variable VAR accordingly.
2418 ac_fn_cxx_check_type ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if eval \${$3+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 eval "$3=no"
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 main ()
2433 if (sizeof ($2))
2434 return 0;
2436 return 0;
2438 _ACEOF
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2444 main ()
2446 if (sizeof (($2)))
2447 return 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_cxx_try_compile "$LINENO"; then :
2454 else
2455 eval "$3=yes"
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval ac_res=\$$3
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 } # ac_fn_cxx_check_type
2468 # ac_fn_c_find_intX_t LINENO BITS VAR
2469 # -----------------------------------
2470 # Finds a signed integer type with width BITS, setting cache variable VAR
2471 # accordingly.
2472 ac_fn_c_find_intX_t ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2476 $as_echo_n "checking for int$2_t... " >&6; }
2477 if eval \${$3+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 eval "$3=no"
2481 # Order is important - never check a type that is potentially smaller
2482 # than half of the expected target width.
2483 for ac_type in int$2_t 'int' 'long int' \
2484 'long long int' 'short int' 'signed char'; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $ac_includes_default
2488 enum { N = $2 / 2 - 1 };
2490 main ()
2492 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2493 test_array [0] = 0;
2494 return test_array [0];
2497 return 0;
2499 _ACEOF
2500 if ac_fn_cxx_try_compile "$LINENO"; then :
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2503 $ac_includes_default
2504 enum { N = $2 / 2 - 1 };
2506 main ()
2508 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2509 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2510 test_array [0] = 0;
2511 return test_array [0];
2514 return 0;
2516 _ACEOF
2517 if ac_fn_cxx_try_compile "$LINENO"; then :
2519 else
2520 case $ac_type in #(
2521 int$2_t) :
2522 eval "$3=yes" ;; #(
2523 *) :
2524 eval "$3=\$ac_type" ;;
2525 esac
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 if eval test \"x\$"$3"\" = x"no"; then :
2532 else
2533 break
2535 done
2537 eval ac_res=\$$3
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_c_find_intX_t
2544 # ac_fn_cxx_try_link LINENO
2545 # -------------------------
2546 # Try to link conftest.$ac_ext, and return whether this succeeded.
2547 ac_fn_cxx_try_link ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 rm -f conftest.$ac_objext conftest$ac_exeext
2551 if { { ac_try="$ac_link"
2552 case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_link") 2>conftest.err
2559 ac_status=$?
2560 if test -s conftest.err; then
2561 grep -v '^ *+' conftest.err >conftest.er1
2562 cat conftest.er1 >&5
2563 mv -f conftest.er1 conftest.err
2565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2566 test $ac_status = 0; } && {
2567 test -z "$ac_cxx_werror_flag" ||
2568 test ! -s conftest.err
2569 } && test -s conftest$ac_exeext && {
2570 test "$cross_compiling" = yes ||
2571 test -x conftest$ac_exeext
2572 }; then :
2573 ac_retval=0
2574 else
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_retval=1
2580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2582 # interfere with the next link command; also delete a directory that is
2583 # left behind by Apple's compiler. We do this before executing the actions.
2584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586 as_fn_set_status $ac_retval
2588 } # ac_fn_cxx_try_link
2590 # ac_fn_c_find_uintX_t LINENO BITS VAR
2591 # ------------------------------------
2592 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2593 # accordingly.
2594 ac_fn_c_find_uintX_t ()
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2598 $as_echo_n "checking for uint$2_t... " >&6; }
2599 if eval \${$3+:} false; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 eval "$3=no"
2603 # Order is important - never check a type that is potentially smaller
2604 # than half of the expected target width.
2605 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2606 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $ac_includes_default
2611 main ()
2613 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2614 test_array [0] = 0;
2615 return test_array [0];
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_compile "$LINENO"; then :
2622 case $ac_type in #(
2623 uint$2_t) :
2624 eval "$3=yes" ;; #(
2625 *) :
2626 eval "$3=\$ac_type" ;;
2627 esac
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 if eval test \"x\$"$3"\" = x"no"; then :
2632 else
2633 break
2635 done
2637 eval ac_res=\$$3
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 } # ac_fn_c_find_uintX_t
2644 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2645 # ------------------------------------------------
2646 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2647 ac_fn_cxx_check_header_preproc ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2651 $as_echo_n "checking for $2... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2657 #include <$2>
2658 _ACEOF
2659 if ac_fn_cxx_try_cpp "$LINENO"; then :
2660 eval "$3=yes"
2661 else
2662 eval "$3=no"
2664 rm -f conftest.err conftest.i conftest.$ac_ext
2666 eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 } # ac_fn_cxx_check_header_preproc
2673 # ac_fn_cxx_check_func LINENO FUNC VAR
2674 # ------------------------------------
2675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2676 ac_fn_cxx_check_func ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 $as_echo_n "checking for $2... " >&6; }
2681 if eval \${$3+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2688 #define $2 innocuous_$2
2690 /* System header to define __stub macros and hopefully few prototypes,
2691 which can conflict with char $2 (); below.
2692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2693 <limits.h> exists even on freestanding compilers. */
2695 #ifdef __STDC__
2696 # include <limits.h>
2697 #else
2698 # include <assert.h>
2699 #endif
2701 #undef $2
2703 /* Override any GCC internal prototype to avoid an error.
2704 Use char because int might match the return type of a GCC
2705 builtin and then its argument prototype would still apply. */
2706 #ifdef __cplusplus
2707 extern "C"
2708 #endif
2709 char $2 ();
2710 /* The GNU C library defines this for functions which it implements
2711 to always fail with ENOSYS. Some functions are actually named
2712 something starting with __ and the normal name is an alias. */
2713 #if defined __stub_$2 || defined __stub___$2
2714 choke me
2715 #endif
2718 main ()
2720 return $2 ();
2722 return 0;
2724 _ACEOF
2725 if ac_fn_cxx_try_link "$LINENO"; then :
2726 eval "$3=yes"
2727 else
2728 eval "$3=no"
2730 rm -f core conftest.err conftest.$ac_objext \
2731 conftest$ac_exeext conftest.$ac_ext
2733 eval ac_res=\$$3
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2735 $as_echo "$ac_res" >&6; }
2736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738 } # ac_fn_cxx_check_func
2740 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2741 # -----------------------------------------------
2742 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2743 # accordingly.
2744 ac_fn_cxx_check_decl ()
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 as_decl_name=`echo $2|sed 's/ *(.*//'`
2748 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2750 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2751 if eval \${$3+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2758 main ()
2760 #ifndef $as_decl_name
2761 #ifdef __cplusplus
2762 (void) $as_decl_use;
2763 #else
2764 (void) $as_decl_name;
2765 #endif
2766 #endif
2769 return 0;
2771 _ACEOF
2772 if ac_fn_cxx_try_compile "$LINENO"; then :
2773 eval "$3=yes"
2774 else
2775 eval "$3=no"
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779 eval ac_res=\$$3
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781 $as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784 } # ac_fn_cxx_check_decl
2786 # ac_fn_c_try_link LINENO
2787 # -----------------------
2788 # Try to link conftest.$ac_ext, and return whether this succeeded.
2789 ac_fn_c_try_link ()
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 rm -f conftest.$ac_objext conftest$ac_exeext
2793 if { { ac_try="$ac_link"
2794 case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link") 2>conftest.err
2801 ac_status=$?
2802 if test -s conftest.err; then
2803 grep -v '^ *+' conftest.err >conftest.er1
2804 cat conftest.er1 >&5
2805 mv -f conftest.er1 conftest.err
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; } && {
2809 test -z "$ac_c_werror_flag" ||
2810 test ! -s conftest.err
2811 } && test -s conftest$ac_exeext && {
2812 test "$cross_compiling" = yes ||
2813 test -x conftest$ac_exeext
2814 }; then :
2815 ac_retval=0
2816 else
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_retval=1
2822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2824 # interfere with the next link command; also delete a directory that is
2825 # left behind by Apple's compiler. We do this before executing the actions.
2826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2828 as_fn_set_status $ac_retval
2830 } # ac_fn_c_try_link
2832 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2833 # ----------------------------------------------
2834 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2835 ac_fn_c_check_header_preproc ()
2837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2839 $as_echo_n "checking for $2... " >&6; }
2840 if eval \${$3+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2845 #include <$2>
2846 _ACEOF
2847 if ac_fn_c_try_cpp "$LINENO"; then :
2848 eval "$3=yes"
2849 else
2850 eval "$3=no"
2852 rm -f conftest.err conftest.i conftest.$ac_ext
2854 eval ac_res=\$$3
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2856 $as_echo "$ac_res" >&6; }
2857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2859 } # ac_fn_c_check_header_preproc
2861 # ac_fn_c_check_func LINENO FUNC VAR
2862 # ----------------------------------
2863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2864 ac_fn_c_check_func ()
2866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868 $as_echo_n "checking for $2... " >&6; }
2869 if eval \${$3+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2876 #define $2 innocuous_$2
2878 /* System header to define __stub macros and hopefully few prototypes,
2879 which can conflict with char $2 (); below.
2880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881 <limits.h> exists even on freestanding compilers. */
2883 #ifdef __STDC__
2884 # include <limits.h>
2885 #else
2886 # include <assert.h>
2887 #endif
2889 #undef $2
2891 /* Override any GCC internal prototype to avoid an error.
2892 Use char because int might match the return type of a GCC
2893 builtin and then its argument prototype would still apply. */
2894 #ifdef __cplusplus
2895 extern "C"
2896 #endif
2897 char $2 ();
2898 /* The GNU C library defines this for functions which it implements
2899 to always fail with ENOSYS. Some functions are actually named
2900 something starting with __ and the normal name is an alias. */
2901 #if defined __stub_$2 || defined __stub___$2
2902 choke me
2903 #endif
2906 main ()
2908 return $2 ();
2910 return 0;
2912 _ACEOF
2913 if ac_fn_c_try_link "$LINENO"; then :
2914 eval "$3=yes"
2915 else
2916 eval "$3=no"
2918 rm -f core conftest.err conftest.$ac_objext \
2919 conftest$ac_exeext conftest.$ac_ext
2921 eval ac_res=\$$3
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2923 $as_echo "$ac_res" >&6; }
2924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926 } # ac_fn_c_check_func
2927 cat >config.log <<_ACEOF
2928 This file contains any messages produced by compilers while
2929 running configure, to aid debugging if configure makes a mistake.
2931 It was created by $as_me, which was
2932 generated by GNU Autoconf 2.69. Invocation command line was
2934 $ $0 $@
2936 _ACEOF
2937 exec 5>>config.log
2939 cat <<_ASUNAME
2940 ## --------- ##
2941 ## Platform. ##
2942 ## --------- ##
2944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2951 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2953 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2954 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2956 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2957 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2958 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2959 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2961 _ASUNAME
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 $as_echo "PATH: $as_dir"
2969 done
2970 IFS=$as_save_IFS
2972 } >&5
2974 cat >&5 <<_ACEOF
2977 ## ----------- ##
2978 ## Core tests. ##
2979 ## ----------- ##
2981 _ACEOF
2984 # Keep a trace of the command line.
2985 # Strip out --no-create and --no-recursion so they do not pile up.
2986 # Strip out --silent because we don't want to record it for future runs.
2987 # Also quote any args containing shell meta-characters.
2988 # Make two passes to allow for proper duplicate-argument suppression.
2989 ac_configure_args=
2990 ac_configure_args0=
2991 ac_configure_args1=
2992 ac_must_keep_next=false
2993 for ac_pass in 1 2
2995 for ac_arg
2997 case $ac_arg in
2998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3000 | -silent | --silent | --silen | --sile | --sil)
3001 continue ;;
3002 *\'*)
3003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 esac
3005 case $ac_pass in
3006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3008 as_fn_append ac_configure_args1 " '$ac_arg'"
3009 if test $ac_must_keep_next = true; then
3010 ac_must_keep_next=false # Got value, back to normal.
3011 else
3012 case $ac_arg in
3013 *=* | --config-cache | -C | -disable-* | --disable-* \
3014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3016 | -with-* | --with-* | -without-* | --without-* | --x)
3017 case "$ac_configure_args0 " in
3018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3019 esac
3021 -* ) ac_must_keep_next=true ;;
3022 esac
3024 as_fn_append ac_configure_args " '$ac_arg'"
3026 esac
3027 done
3028 done
3029 { ac_configure_args0=; unset ac_configure_args0;}
3030 { ac_configure_args1=; unset ac_configure_args1;}
3032 # When interrupted or exit'd, cleanup temporary files, and complete
3033 # config.log. We remove comments because anyway the quotes in there
3034 # would cause problems or look ugly.
3035 # WARNING: Use '\'' to represent an apostrophe within the trap.
3036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3037 trap 'exit_status=$?
3038 # Save into config.log some information that might help in debugging.
3040 echo
3042 $as_echo "## ---------------- ##
3043 ## Cache variables. ##
3044 ## ---------------- ##"
3045 echo
3046 # The following way of writing the cache mishandles newlines in values,
3048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3049 eval ac_val=\$$ac_var
3050 case $ac_val in #(
3051 *${as_nl}*)
3052 case $ac_var in #(
3053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3055 esac
3056 case $ac_var in #(
3057 _ | IFS | as_nl) ;; #(
3058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3059 *) { eval $ac_var=; unset $ac_var;} ;;
3060 esac ;;
3061 esac
3062 done
3063 (set) 2>&1 |
3064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3065 *${as_nl}ac_space=\ *)
3066 sed -n \
3067 "s/'\''/'\''\\\\'\'''\''/g;
3068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3069 ;; #(
3071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3073 esac |
3074 sort
3076 echo
3078 $as_echo "## ----------------- ##
3079 ## Output variables. ##
3080 ## ----------------- ##"
3081 echo
3082 for ac_var in $ac_subst_vars
3084 eval ac_val=\$$ac_var
3085 case $ac_val in
3086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3087 esac
3088 $as_echo "$ac_var='\''$ac_val'\''"
3089 done | sort
3090 echo
3092 if test -n "$ac_subst_files"; then
3093 $as_echo "## ------------------- ##
3094 ## File substitutions. ##
3095 ## ------------------- ##"
3096 echo
3097 for ac_var in $ac_subst_files
3099 eval ac_val=\$$ac_var
3100 case $ac_val in
3101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3102 esac
3103 $as_echo "$ac_var='\''$ac_val'\''"
3104 done | sort
3105 echo
3108 if test -s confdefs.h; then
3109 $as_echo "## ----------- ##
3110 ## confdefs.h. ##
3111 ## ----------- ##"
3112 echo
3113 cat confdefs.h
3114 echo
3116 test "$ac_signal" != 0 &&
3117 $as_echo "$as_me: caught signal $ac_signal"
3118 $as_echo "$as_me: exit $exit_status"
3119 } >&5
3120 rm -f core *.core core.conftest.* &&
3121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3122 exit $exit_status
3124 for ac_signal in 1 2 13 15; do
3125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3126 done
3127 ac_signal=0
3129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3130 rm -f -r conftest* confdefs.h
3132 $as_echo "/* confdefs.h */" > confdefs.h
3134 # Predefined preprocessor variables.
3136 cat >>confdefs.h <<_ACEOF
3137 #define PACKAGE_NAME "$PACKAGE_NAME"
3138 _ACEOF
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3142 _ACEOF
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3146 _ACEOF
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_STRING "$PACKAGE_STRING"
3150 _ACEOF
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3154 _ACEOF
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_URL "$PACKAGE_URL"
3158 _ACEOF
3161 # Let the site file select an alternate cache file if it wants to.
3162 # Prefer an explicitly selected file to automatically selected ones.
3163 ac_site_file1=NONE
3164 ac_site_file2=NONE
3165 if test -n "$CONFIG_SITE"; then
3166 # We do not want a PATH search for config.site.
3167 case $CONFIG_SITE in #((
3168 -*) ac_site_file1=./$CONFIG_SITE;;
3169 */*) ac_site_file1=$CONFIG_SITE;;
3170 *) ac_site_file1=./$CONFIG_SITE;;
3171 esac
3172 elif test "x$prefix" != xNONE; then
3173 ac_site_file1=$prefix/share/config.site
3174 ac_site_file2=$prefix/etc/config.site
3175 else
3176 ac_site_file1=$ac_default_prefix/share/config.site
3177 ac_site_file2=$ac_default_prefix/etc/config.site
3179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3181 test "x$ac_site_file" = xNONE && continue
3182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3185 sed 's/^/| /' "$ac_site_file" >&5
3186 . "$ac_site_file" \
3187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "failed to load site script $ac_site_file
3190 See \`config.log' for more details" "$LINENO" 5; }
3192 done
3194 if test -r "$cache_file"; then
3195 # Some versions of bash will fail to source /dev/null (special files
3196 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3199 $as_echo "$as_me: loading cache $cache_file" >&6;}
3200 case $cache_file in
3201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3202 *) . "./$cache_file";;
3203 esac
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3207 $as_echo "$as_me: creating cache $cache_file" >&6;}
3208 >$cache_file
3211 # Check that the precious variables saved in the cache have kept the same
3212 # value.
3213 ac_cache_corrupted=false
3214 for ac_var in $ac_precious_vars; do
3215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3216 eval ac_new_set=\$ac_env_${ac_var}_set
3217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3218 eval ac_new_val=\$ac_env_${ac_var}_value
3219 case $ac_old_set,$ac_new_set in
3220 set,)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3223 ac_cache_corrupted=: ;;
3224 ,set)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3227 ac_cache_corrupted=: ;;
3228 ,);;
3230 if test "x$ac_old_val" != "x$ac_new_val"; then
3231 # differences in whitespace do not lead to failure.
3232 ac_old_val_w=`echo x $ac_old_val`
3233 ac_new_val_w=`echo x $ac_new_val`
3234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3237 ac_cache_corrupted=:
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3241 eval $ac_var=\$ac_old_val
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3247 fi;;
3248 esac
3249 # Pass precious variables to config.status.
3250 if test "$ac_new_set" = set; then
3251 case $ac_new_val in
3252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3253 *) ac_arg=$ac_var=$ac_new_val ;;
3254 esac
3255 case " $ac_configure_args " in
3256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3258 esac
3260 done
3261 if $ac_cache_corrupted; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3268 ## -------------------- ##
3269 ## Main body of script. ##
3270 ## -------------------- ##
3272 ac_ext=c
3273 ac_cpp='$CPP $CPPFLAGS'
3274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3286 gcc_version=`cat $srcdir/BASE-VER`
3288 # Determine the host, build, and target systems
3289 ac_aux_dir=
3290 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3291 if test -f "$ac_dir/install-sh"; then
3292 ac_aux_dir=$ac_dir
3293 ac_install_sh="$ac_aux_dir/install-sh -c"
3294 break
3295 elif test -f "$ac_dir/install.sh"; then
3296 ac_aux_dir=$ac_dir
3297 ac_install_sh="$ac_aux_dir/install.sh -c"
3298 break
3299 elif test -f "$ac_dir/shtool"; then
3300 ac_aux_dir=$ac_dir
3301 ac_install_sh="$ac_aux_dir/shtool install -c"
3302 break
3304 done
3305 if test -z "$ac_aux_dir"; then
3306 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3309 # These three variables are undocumented and unsupported,
3310 # and are intended to be withdrawn in a future Autoconf release.
3311 # They can cause serious problems if a builder's source tree is in a directory
3312 # whose full name contains unusual characters.
3313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3315 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3318 # Make sure we can run config.sub.
3319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3323 $as_echo_n "checking build system type... " >&6; }
3324 if ${ac_cv_build+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_build_alias=$build_alias
3328 test "x$ac_build_alias" = x &&
3329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3330 test "x$ac_build_alias" = x &&
3331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3337 $as_echo "$ac_cv_build" >&6; }
3338 case $ac_cv_build in
3339 *-*-*) ;;
3340 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3341 esac
3342 build=$ac_cv_build
3343 ac_save_IFS=$IFS; IFS='-'
3344 set x $ac_cv_build
3345 shift
3346 build_cpu=$1
3347 build_vendor=$2
3348 shift; shift
3349 # Remember, the first character of IFS is used to create $*,
3350 # except with old shells:
3351 build_os=$*
3352 IFS=$ac_save_IFS
3353 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3357 $as_echo_n "checking host system type... " >&6; }
3358 if ${ac_cv_host+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test "x$host_alias" = x; then
3362 ac_cv_host=$ac_cv_build
3363 else
3364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3370 $as_echo "$ac_cv_host" >&6; }
3371 case $ac_cv_host in
3372 *-*-*) ;;
3373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3374 esac
3375 host=$ac_cv_host
3376 ac_save_IFS=$IFS; IFS='-'
3377 set x $ac_cv_host
3378 shift
3379 host_cpu=$1
3380 host_vendor=$2
3381 shift; shift
3382 # Remember, the first character of IFS is used to create $*,
3383 # except with old shells:
3384 host_os=$*
3385 IFS=$ac_save_IFS
3386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3390 $as_echo_n "checking target system type... " >&6; }
3391 if ${ac_cv_target+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test "x$target_alias" = x; then
3395 ac_cv_target=$ac_cv_host
3396 else
3397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3403 $as_echo "$ac_cv_target" >&6; }
3404 case $ac_cv_target in
3405 *-*-*) ;;
3406 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3407 esac
3408 target=$ac_cv_target
3409 ac_save_IFS=$IFS; IFS='-'
3410 set x $ac_cv_target
3411 shift
3412 target_cpu=$1
3413 target_vendor=$2
3414 shift; shift
3415 # Remember, the first character of IFS is used to create $*,
3416 # except with old shells:
3417 target_os=$*
3418 IFS=$ac_save_IFS
3419 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3422 # The aliases save the names the user supplied, while $host etc.
3423 # will get canonicalized.
3424 test -n "$target_alias" &&
3425 test "$program_prefix$program_suffix$program_transform_name" = \
3426 NONENONEs,x,x, &&
3427 program_prefix=${target_alias}-
3429 # Determine the noncanonical host name, for Ada.
3430 case ${build_alias} in
3431 "") build_noncanonical=${build} ;;
3432 *) build_noncanonical=${build_alias} ;;
3433 esac
3435 case ${host_alias} in
3436 "") host_noncanonical=${build_noncanonical} ;;
3437 *) host_noncanonical=${host_alias} ;;
3438 esac
3443 # Determine the noncanonical target name, for directory use.
3444 case ${target_alias} in
3445 "") target_noncanonical=${host_noncanonical} ;;
3446 *) target_noncanonical=${target_alias} ;;
3447 esac
3452 # Used for constructing correct paths for offload compilers.
3453 real_target_noncanonical=${target_noncanonical}
3454 accel_dir_suffix=
3456 # Determine the target- and build-specific subdirectories
3458 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3459 # have matching libraries, they should use host libraries: Makefile.tpl
3460 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3461 # However, they still use the build modules, because the corresponding
3462 # host modules (e.g. bison) are only built for the host when bootstrap
3463 # finishes. So:
3464 # - build_subdir is where we find build modules, and never changes.
3465 # - build_libsubdir is where we find build libraries, and can be overridden.
3467 # Prefix 'build-' so this never conflicts with target_subdir.
3468 build_subdir="build-${build_noncanonical}"
3470 # Check whether --with-build-libsubdir was given.
3471 if test "${with_build_libsubdir+set}" = set; then :
3472 withval=$with_build_libsubdir; build_libsubdir="$withval"
3473 else
3474 build_libsubdir="$build_subdir"
3477 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3478 if ( test $srcdir = . && test -d gcc ) \
3479 || test -d $srcdir/../host-${host_noncanonical}; then
3480 host_subdir="host-${host_noncanonical}"
3481 else
3482 host_subdir=.
3484 # No prefix.
3485 target_subdir=${target_noncanonical}
3488 # Set program_transform_name
3489 test "$program_prefix" != NONE &&
3490 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3491 # Use a double $ so make ignores it.
3492 test "$program_suffix" != NONE &&
3493 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3494 # Double any \ or $.
3495 # By default was `s,x,x', remove it if useless.
3496 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3497 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3500 # Check for bogus environment variables.
3501 # Test if LIBRARY_PATH contains the notation for the current directory
3502 # since this would lead to problems installing/building glibc.
3503 # LIBRARY_PATH contains the current directory if one of the following
3504 # is true:
3505 # - one of the terminals (":" and ";") is the first or last sign
3506 # - two terminals occur directly after each other
3507 # - the path contains an element with a dot in it
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3509 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3510 case ${LIBRARY_PATH} in
3511 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3512 library_path_setting="contains current directory"
3515 library_path_setting="ok"
3517 esac
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3519 $as_echo "$library_path_setting" >&6; }
3520 if test "$library_path_setting" != "ok"; then
3521 as_fn_error $? "
3522 *** LIBRARY_PATH shouldn't contain the current directory when
3523 *** building gcc. Please change the environment variable
3524 *** and run configure again." "$LINENO" 5
3527 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3528 # since this would lead to problems installing/building glibc.
3529 # GCC_EXEC_PREFIX contains the current directory if one of the following
3530 # is true:
3531 # - one of the terminals (":" and ";") is the first or last sign
3532 # - two terminals occur directly after each other
3533 # - the path contains an element with a dot in it
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3535 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3536 case ${GCC_EXEC_PREFIX} in
3537 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3538 gcc_exec_prefix_setting="contains current directory"
3541 gcc_exec_prefix_setting="ok"
3543 esac
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3545 $as_echo "$gcc_exec_prefix_setting" >&6; }
3546 if test "$gcc_exec_prefix_setting" != "ok"; then
3547 as_fn_error $? "
3548 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3549 *** building gcc. Please change the environment variable
3550 *** and run configure again." "$LINENO" 5
3553 # -----------
3554 # Directories
3555 # -----------
3557 # Specify the local prefix
3558 local_prefix=
3560 # Check whether --with-local-prefix was given.
3561 if test "${with_local_prefix+set}" = set; then :
3562 withval=$with_local_prefix; case "${withval}" in
3563 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3564 no) ;;
3565 *) local_prefix=$with_local_prefix ;;
3566 esac
3570 # Default local prefix if it is empty
3571 if test x$local_prefix = x; then
3572 local_prefix=/usr/local
3576 # Check whether --with-native-system-header-dir was given.
3577 if test "${with_native_system_header_dir+set}" = set; then :
3578 withval=$with_native_system_header_dir;
3579 case ${with_native_system_header_dir} in
3580 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3581 /* | [A-Za-z]:[\\/]*) ;;
3582 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3583 esac
3584 configured_native_system_header_dir="${withval}"
3586 else
3587 configured_native_system_header_dir=
3592 # Check whether --with-build-sysroot was given.
3593 if test "${with_build_sysroot+set}" = set; then :
3594 withval=$with_build_sysroot; if test x"$withval" != x ; then
3595 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3597 else
3598 SYSROOT_CFLAGS_FOR_TARGET=
3603 if test "x$prefix" = xNONE; then
3604 test_prefix=/usr/local
3605 else
3606 test_prefix=$prefix
3608 if test "x$exec_prefix" = xNONE; then
3609 test_exec_prefix=$test_prefix
3610 else
3611 test_exec_prefix=$exec_prefix
3615 # Check whether --with-sysroot was given.
3616 if test "${with_sysroot+set}" = set; then :
3617 withval=$with_sysroot;
3618 case ${with_sysroot} in
3619 /) ;;
3620 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3621 esac
3622 case ${with_sysroot} in
3623 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3624 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3625 esac
3627 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3628 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3630 case ${TARGET_SYSTEM_ROOT} in
3631 "${test_prefix}"|"${test_prefix}/"*|\
3632 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3633 '${prefix}'|'${prefix}/'*|\
3634 '${exec_prefix}'|'${exec_prefix}/'*)
3635 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3636 TARGET_SYSTEM_ROOT_DEFINE="$t"
3638 esac
3640 else
3642 TARGET_SYSTEM_ROOT=
3643 TARGET_SYSTEM_ROOT_DEFINE=
3644 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3652 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3653 # passed in by the toplevel make and thus we'd get different behavior
3654 # depending on where we built the sources.
3655 gcc_gxx_include_dir=
3656 # Specify the g++ header file directory
3658 # Check whether --with-gxx-include-dir was given.
3659 if test "${with_gxx_include_dir+set}" = set; then :
3660 withval=$with_gxx_include_dir; case "${withval}" in
3661 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3662 no) ;;
3663 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3664 esac
3668 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3669 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3670 # relative to the sysroot.
3671 gcc_gxx_include_dir_add_sysroot=0
3673 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3674 if test x${gcc_gxx_include_dir} = x; then
3675 if test x${enable_version_specific_runtime_libs} = xyes; then
3676 gcc_gxx_include_dir='${libsubdir}/include/c++'
3677 else
3678 libstdcxx_incdir='include/c++/$(version)'
3679 if test x$host != x$target; then
3680 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3682 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3684 elif test "${with_sysroot+set}" = set; then
3685 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3686 if test "${gcc_gxx_without_sysroot}"; then
3687 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3688 gcc_gxx_include_dir_add_sysroot=1
3693 # Check whether --with-cpp_install_dir was given.
3694 if test "${with_cpp_install_dir+set}" = set; then :
3695 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3696 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3697 elif test x$withval != xno; then
3698 cpp_install_dir=$withval
3703 # We would like to our source tree to be readonly. However when releases or
3704 # pre-releases are generated, the flex/bison generated files as well as the
3705 # various formats of manuals need to be included along with the rest of the
3706 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3707 # just that.
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3710 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3711 # Check whether --enable-generated-files-in-srcdir was given.
3712 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3713 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3714 else
3715 generated_files_in_srcdir=no
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3720 $as_echo "$generated_files_in_srcdir" >&6; }
3722 if test "$generated_files_in_srcdir" = "yes"; then
3723 GENINSRC=''
3724 else
3725 GENINSRC='#'
3729 # -------------------
3730 # Find default linker
3731 # -------------------
3733 # With GNU ld
3735 # Check whether --with-gnu-ld was given.
3736 if test "${with_gnu_ld+set}" = set; then :
3737 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3738 else
3739 gnu_ld_flag=no
3743 case $target in
3744 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3745 *) ld64_flag=no;;
3746 esac
3748 # With pre-defined ld
3750 # Check whether --with-ld was given.
3751 if test "${with_ld+set}" = set; then :
3752 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3756 if test ! -x "$DEFAULT_LINKER"; then
3757 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3758 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3759 gnu_ld_flag=yes
3760 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3761 ld64_flag=yes
3764 cat >>confdefs.h <<_ACEOF
3765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3766 _ACEOF
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3771 $as_echo_n "checking whether a default linker was specified... " >&6; }
3772 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3773 if test x"$gnu_ld_flag" = x"no"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3775 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3776 else
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3778 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3785 # With demangler in GNU ld
3787 # Check whether --with-demangler-in-ld was given.
3788 if test "${with_demangler_in_ld+set}" = set; then :
3789 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3790 else
3791 demangler_in_ld=yes
3795 # ----------------------
3796 # Find default assembler
3797 # ----------------------
3799 # With GNU as
3801 # Check whether --with-gnu-as was given.
3802 if test "${with_gnu_as+set}" = set; then :
3803 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3804 else
3805 gas_flag=no
3810 # Check whether --with-as was given.
3811 if test "${with_as+set}" = set; then :
3812 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3815 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3816 if test ! -x "$DEFAULT_ASSEMBLER"; then
3817 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3818 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3819 gas_flag=yes
3822 cat >>confdefs.h <<_ACEOF
3823 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3824 _ACEOF
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3829 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3830 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3831 if test x"$gas_flag" = x"no"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3833 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3834 else
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3836 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3838 else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3843 # ---------------
3844 # Find C compiler
3845 # ---------------
3847 # If a non-executable a.out is present (e.g. created by GNU as above even if
3848 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3849 # file, even when creating an executable, so an execution test fails.
3850 # Remove possible default executable files to avoid this.
3852 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3853 # Autoconf includes it.
3854 rm -f a.out a.exe b.out
3856 # Find the native compiler
3857 ac_ext=c
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_prog_CC+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 CC=$ac_cv_prog_CC
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3901 if test -z "$ac_cv_prog_CC"; then
3902 ac_ct_CC=$CC
3903 # Extract the first word of "gcc", so it can be a program name with args.
3904 set dummy gcc; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$ac_ct_CC"; then
3911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_CC="gcc"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3926 IFS=$as_save_IFS
3930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3931 if test -n "$ac_ct_CC"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3933 $as_echo "$ac_ct_CC" >&6; }
3934 else
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3939 if test "x$ac_ct_CC" = x; then
3940 CC=""
3941 else
3942 case $cross_compiling:$ac_tool_warned in
3943 yes:)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3946 ac_tool_warned=yes ;;
3947 esac
3948 CC=$ac_ct_CC
3950 else
3951 CC="$ac_cv_prog_CC"
3954 if test -z "$CC"; then
3955 if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}cc; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_CC+:} false; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_CC="${ac_tool_prefix}cc"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3977 done
3978 done
3979 IFS=$as_save_IFS
3983 CC=$ac_cv_prog_CC
3984 if test -n "$CC"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3986 $as_echo "$CC" >&6; }
3987 else
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3995 if test -z "$CC"; then
3996 # Extract the first word of "cc", so it can be a program name with args.
3997 set dummy cc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_CC+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 ac_prog_rejected=no
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4015 ac_prog_rejected=yes
4016 continue
4018 ac_cv_prog_CC="cc"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 break 2
4022 done
4023 done
4024 IFS=$as_save_IFS
4026 if test $ac_prog_rejected = yes; then
4027 # We found a bogon in the path, so make sure we never use it.
4028 set dummy $ac_cv_prog_CC
4029 shift
4030 if test $# != 0; then
4031 # We chose a different compiler from the bogus one.
4032 # However, it has the same basename, so the bogon will be chosen
4033 # first if we set CC to just the basename; use the full file name.
4034 shift
4035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4040 CC=$ac_cv_prog_CC
4041 if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 for ac_prog in cl.exe
4055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_CC+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$CC"; then
4063 ac_cv_prog_CC="$CC" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4076 done
4077 done
4078 IFS=$as_save_IFS
4082 CC=$ac_cv_prog_CC
4083 if test -n "$CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085 $as_echo "$CC" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4092 test -n "$CC" && break
4093 done
4095 if test -z "$CC"; then
4096 ac_ct_CC=$CC
4097 for ac_prog in cl.exe
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_CC"; then
4107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_CC="$ac_prog"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4127 if test -n "$ac_ct_CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4129 $as_echo "$ac_ct_CC" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 test -n "$ac_ct_CC" && break
4137 done
4139 if test "x$ac_ct_CC" = x; then
4140 CC=""
4141 else
4142 case $cross_compiling:$ac_tool_warned in
4143 yes:)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned=yes ;;
4147 esac
4148 CC=$ac_ct_CC
4155 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $? "no acceptable C compiler found in \$PATH
4158 See \`config.log' for more details" "$LINENO" 5; }
4160 # Provide some information about the compiler.
4161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4162 set X $ac_compile
4163 ac_compiler=$2
4164 for ac_option in --version -v -V -qversion; do
4165 { { ac_try="$ac_compiler $ac_option >&5"
4166 case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169 esac
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4173 ac_status=$?
4174 if test -s conftest.err; then
4175 sed '10a\
4176 ... rest of stderr output deleted ...
4177 10q' conftest.err >conftest.er1
4178 cat conftest.er1 >&5
4180 rm -f conftest.er1 conftest.err
4181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182 test $ac_status = 0; }
4183 done
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4193 return 0;
4195 _ACEOF
4196 ac_clean_files_save=$ac_clean_files
4197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4198 # Try to create an executable without -o first, disregard a.out.
4199 # It will help us diagnose broken compilers, and finding out an intuition
4200 # of exeext.
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4202 $as_echo_n "checking whether the C compiler works... " >&6; }
4203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4205 # The possible output files:
4206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4208 ac_rmfiles=
4209 for ac_file in $ac_files
4211 case $ac_file in
4212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4214 esac
4215 done
4216 rm -f $ac_rmfiles
4218 if { { ac_try="$ac_link_default"
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225 (eval "$ac_link_default") 2>&5
4226 ac_status=$?
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }; then :
4229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4232 # so that the user can short-circuit this test for compilers unknown to
4233 # Autoconf.
4234 for ac_file in $ac_files ''
4236 test -f "$ac_file" || continue
4237 case $ac_file in
4238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4240 [ab].out )
4241 # We found the default executable, but exeext='' is most
4242 # certainly right.
4243 break;;
4244 *.* )
4245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4246 then :; else
4247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249 # We set ac_cv_exeext here because the later test for it is not
4250 # safe: cross compilers may not add the suffix if given an `-o'
4251 # argument, so we may need to know it at that point already.
4252 # Even if this section looks crufty: it has the advantage of
4253 # actually working.
4254 break;;
4256 break;;
4257 esac
4258 done
4259 test "$ac_cv_exeext" = no && ac_cv_exeext=
4261 else
4262 ac_file=''
4264 if test -z "$ac_file"; then :
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4272 as_fn_error 77 "C compiler cannot create executables
4273 See \`config.log' for more details" "$LINENO" 5; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276 $as_echo "yes" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4279 $as_echo_n "checking for C compiler default output file name... " >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4281 $as_echo "$ac_file" >&6; }
4282 ac_exeext=$ac_cv_exeext
4284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4285 ac_clean_files=$ac_clean_files_save
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4287 $as_echo_n "checking for suffix of executables... " >&6; }
4288 if { { ac_try="$ac_link"
4289 case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_link") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; then :
4299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4301 # work properly (i.e., refer to `conftest.exe'), while it won't with
4302 # `rm'.
4303 for ac_file in conftest.exe conftest conftest.*; do
4304 test -f "$ac_file" || continue
4305 case $ac_file in
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4308 break;;
4309 * ) break;;
4310 esac
4311 done
4312 else
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4316 See \`config.log' for more details" "$LINENO" 5; }
4318 rm -f conftest conftest$ac_cv_exeext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4320 $as_echo "$ac_cv_exeext" >&6; }
4322 rm -f conftest.$ac_ext
4323 EXEEXT=$ac_cv_exeext
4324 ac_exeext=$EXEEXT
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <stdio.h>
4329 main ()
4331 FILE *f = fopen ("conftest.out", "w");
4332 return ferror (f) || fclose (f) != 0;
4335 return 0;
4337 _ACEOF
4338 ac_clean_files="$ac_clean_files conftest.out"
4339 # Check that the compiler produces executables we can run. If not, either
4340 # the compiler is broken, or we cross compile.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4342 $as_echo_n "checking whether we are cross compiling... " >&6; }
4343 if test "$cross_compiling" != yes; then
4344 { { ac_try="$ac_link"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_link") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }
4355 if { ac_try='./conftest$ac_cv_exeext'
4356 { { case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361 $as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; }; then
4366 cross_compiling=no
4367 else
4368 if test "$cross_compiling" = maybe; then
4369 cross_compiling=yes
4370 else
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $? "cannot run C compiled programs.
4374 If you meant to cross compile, use \`--host'.
4375 See \`config.log' for more details" "$LINENO" 5; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4380 $as_echo "$cross_compiling" >&6; }
4382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4383 ac_clean_files=$ac_clean_files_save
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4385 $as_echo_n "checking for suffix of object files... " >&6; }
4386 if ${ac_cv_objext+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4393 main ()
4397 return 0;
4399 _ACEOF
4400 rm -f conftest.o conftest.obj
4401 if { { ac_try="$ac_compile"
4402 case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_compile") 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }; then :
4412 for ac_file in conftest.o conftest.obj conftest.*; do
4413 test -f "$ac_file" || continue;
4414 case $ac_file in
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4417 break;;
4418 esac
4419 done
4420 else
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 as_fn_error $? "cannot compute suffix of object files: cannot compile
4427 See \`config.log' for more details" "$LINENO" 5; }
4429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4432 $as_echo "$ac_cv_objext" >&6; }
4433 OBJEXT=$ac_cv_objext
4434 ac_objext=$OBJEXT
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4437 if ${ac_cv_c_compiler_gnu+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4444 main ()
4446 #ifndef __GNUC__
4447 choke me
4448 #endif
4451 return 0;
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 ac_compiler_gnu=yes
4456 else
4457 ac_compiler_gnu=no
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4465 if test $ac_compiler_gnu = yes; then
4466 GCC=yes
4467 else
4468 GCC=
4470 ac_test_CFLAGS=${CFLAGS+set}
4471 ac_save_CFLAGS=$CFLAGS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4474 if ${ac_cv_prog_cc_g+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_save_c_werror_flag=$ac_c_werror_flag
4478 ac_c_werror_flag=yes
4479 ac_cv_prog_cc_g=no
4480 CFLAGS="-g"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4489 return 0;
4491 _ACEOF
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_cv_prog_cc_g=yes
4494 else
4495 CFLAGS=""
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4500 main ()
4504 return 0;
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"; then :
4509 else
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4511 CFLAGS="-g"
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4516 main ()
4520 return 0;
4522 _ACEOF
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524 ac_cv_prog_cc_g=yes
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_c_werror_flag=$ac_save_c_werror_flag
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4534 $as_echo "$ac_cv_prog_cc_g" >&6; }
4535 if test "$ac_test_CFLAGS" = set; then
4536 CFLAGS=$ac_save_CFLAGS
4537 elif test $ac_cv_prog_cc_g = yes; then
4538 if test "$GCC" = yes; then
4539 CFLAGS="-g -O2"
4540 else
4541 CFLAGS="-g"
4543 else
4544 if test "$GCC" = yes; then
4545 CFLAGS="-O2"
4546 else
4547 CFLAGS=
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4551 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4552 if ${ac_cv_prog_cc_c89+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 ac_cv_prog_cc_c89=no
4556 ac_save_CC=$CC
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <stdarg.h>
4560 #include <stdio.h>
4561 struct stat;
4562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4563 struct buf { int x; };
4564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4565 static char *e (p, i)
4566 char **p;
4567 int i;
4569 return p[i];
4571 static char *f (char * (*g) (char **, int), char **p, ...)
4573 char *s;
4574 va_list v;
4575 va_start (v,p);
4576 s = g (p, va_arg (v,int));
4577 va_end (v);
4578 return s;
4581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4582 function prototypes and stuff, but not '\xHH' hex character constants.
4583 These don't provoke an error unfortunately, instead are silently treated
4584 as 'x'. The following induces an error, until -std is added to get
4585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4586 array size at least. It's necessary to write '\x00'==0 to get something
4587 that's true only with -std. */
4588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4591 inside strings and character constants. */
4592 #define FOO(x) 'x'
4593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4595 int test (int i, double x);
4596 struct s1 {int (*f) (int a);};
4597 struct s2 {int (*f) (double a);};
4598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4599 int argc;
4600 char **argv;
4602 main ()
4604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4606 return 0;
4608 _ACEOF
4609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4612 CC="$ac_save_CC $ac_arg"
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_c89=$ac_arg
4616 rm -f core conftest.err conftest.$ac_objext
4617 test "x$ac_cv_prog_cc_c89" != "xno" && break
4618 done
4619 rm -f conftest.$ac_ext
4620 CC=$ac_save_CC
4623 # AC_CACHE_VAL
4624 case "x$ac_cv_prog_cc_c89" in
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4627 $as_echo "none needed" >&6; } ;;
4628 xno)
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4630 $as_echo "unsupported" >&6; } ;;
4632 CC="$CC $ac_cv_prog_cc_c89"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4635 esac
4636 if test "x$ac_cv_prog_cc_c89" != xno; then :
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 ac_ext=cpp
4647 ac_cpp='$CXXCPP $CPPFLAGS'
4648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4651 if test -z "$CXX"; then
4652 if test -n "$CCC"; then
4653 CXX=$CCC
4654 else
4655 if test -n "$ac_tool_prefix"; then
4656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_prog_CXX+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$CXX"; then
4666 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 CXX=$ac_cv_prog_CXX
4686 if test -n "$CXX"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4688 $as_echo "$CXX" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$CXX" && break
4696 done
4698 if test -z "$CXX"; then
4699 ac_ct_CXX=$CXX
4700 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4702 # Extract the first word of "$ac_prog", so it can be a program name with args.
4703 set dummy $ac_prog; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 if test -n "$ac_ct_CXX"; then
4710 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_prog_ac_ct_CXX="$ac_prog"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
4723 done
4724 done
4725 IFS=$as_save_IFS
4729 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4730 if test -n "$ac_ct_CXX"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4732 $as_echo "$ac_ct_CXX" >&6; }
4733 else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4739 test -n "$ac_ct_CXX" && break
4740 done
4742 if test "x$ac_ct_CXX" = x; then
4743 CXX="g++"
4744 else
4745 case $cross_compiling:$ac_tool_warned in
4746 yes:)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4749 ac_tool_warned=yes ;;
4750 esac
4751 CXX=$ac_ct_CXX
4757 # Provide some information about the compiler.
4758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4759 set X $ac_compile
4760 ac_compiler=$2
4761 for ac_option in --version -v -V -qversion; do
4762 { { ac_try="$ac_compiler $ac_option >&5"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768 $as_echo "$ac_try_echo"; } >&5
4769 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4770 ac_status=$?
4771 if test -s conftest.err; then
4772 sed '10a\
4773 ... rest of stderr output deleted ...
4774 10q' conftest.err >conftest.er1
4775 cat conftest.er1 >&5
4777 rm -f conftest.er1 conftest.err
4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4779 test $ac_status = 0; }
4780 done
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4783 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4784 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4793 #ifndef __GNUC__
4794 choke me
4795 #endif
4798 return 0;
4800 _ACEOF
4801 if ac_fn_cxx_try_compile "$LINENO"; then :
4802 ac_compiler_gnu=yes
4803 else
4804 ac_compiler_gnu=no
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4811 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4812 if test $ac_compiler_gnu = yes; then
4813 GXX=yes
4814 else
4815 GXX=
4817 ac_test_CXXFLAGS=${CXXFLAGS+set}
4818 ac_save_CXXFLAGS=$CXXFLAGS
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4820 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4821 if ${ac_cv_prog_cxx_g+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4825 ac_cxx_werror_flag=yes
4826 ac_cv_prog_cxx_g=no
4827 CXXFLAGS="-g"
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4832 main ()
4836 return 0;
4838 _ACEOF
4839 if ac_fn_cxx_try_compile "$LINENO"; then :
4840 ac_cv_prog_cxx_g=yes
4841 else
4842 CXXFLAGS=""
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4847 main ()
4851 return 0;
4853 _ACEOF
4854 if ac_fn_cxx_try_compile "$LINENO"; then :
4856 else
4857 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4858 CXXFLAGS="-g"
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4863 main ()
4867 return 0;
4869 _ACEOF
4870 if ac_fn_cxx_try_compile "$LINENO"; then :
4871 ac_cv_prog_cxx_g=yes
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4881 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4882 if test "$ac_test_CXXFLAGS" = set; then
4883 CXXFLAGS=$ac_save_CXXFLAGS
4884 elif test $ac_cv_prog_cxx_g = yes; then
4885 if test "$GXX" = yes; then
4886 CXXFLAGS="-g -O2"
4887 else
4888 CXXFLAGS="-g"
4890 else
4891 if test "$GXX" = yes; then
4892 CXXFLAGS="-O2"
4893 else
4894 CXXFLAGS=
4897 ac_ext=c
4898 ac_cpp='$CPP $CPPFLAGS'
4899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_GNATBIND+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$GNATBIND"; then
4915 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 GNATBIND=$ac_cv_prog_GNATBIND
4935 if test -n "$GNATBIND"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4937 $as_echo "$GNATBIND" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4945 if test -z "$ac_cv_prog_GNATBIND"; then
4946 ac_ct_GNATBIND=$GNATBIND
4947 # Extract the first word of "gnatbind", so it can be a program name with args.
4948 set dummy gnatbind; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_GNATBIND"; then
4955 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4975 if test -n "$ac_ct_GNATBIND"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4977 $as_echo "$ac_ct_GNATBIND" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4983 if test "x$ac_ct_GNATBIND" = x; then
4984 GNATBIND="no"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987 yes:)
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned=yes ;;
4991 esac
4992 GNATBIND=$ac_ct_GNATBIND
4994 else
4995 GNATBIND="$ac_cv_prog_GNATBIND"
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5000 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_GNATMAKE+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$GNATMAKE"; then
5007 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 GNATMAKE=$ac_cv_prog_GNATMAKE
5027 if test -n "$GNATMAKE"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5029 $as_echo "$GNATMAKE" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5037 if test -z "$ac_cv_prog_GNATMAKE"; then
5038 ac_ct_GNATMAKE=$GNATMAKE
5039 # Extract the first word of "gnatmake", so it can be a program name with args.
5040 set dummy gnatmake; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$ac_ct_GNATMAKE"; then
5047 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5067 if test -n "$ac_ct_GNATMAKE"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5069 $as_echo "$ac_ct_GNATMAKE" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5075 if test "x$ac_ct_GNATMAKE" = x; then
5076 GNATMAKE="no"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079 yes:)
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5083 esac
5084 GNATMAKE=$ac_ct_GNATMAKE
5086 else
5087 GNATMAKE="$ac_cv_prog_GNATMAKE"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5091 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5092 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat >conftest.adb <<EOF
5096 procedure conftest is begin null; end conftest;
5098 acx_cv_cc_gcc_supports_ada=no
5099 # There is a bug in old released versions of GCC which causes the
5100 # driver to exit successfully when the appropriate language module
5101 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5102 # Therefore we must check for the error message as well as an
5103 # unsuccessful exit.
5104 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5105 # given a .adb file, but produce no object file. So we must check
5106 # if an object file was really produced to guard against this.
5107 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5108 if test x"$errors" = x && test -f conftest.$ac_objext; then
5109 acx_cv_cc_gcc_supports_ada=yes
5111 rm -f conftest.*
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5114 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5116 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5117 have_gnat=yes
5118 else
5119 have_gnat=no
5123 # Do configure tests with the C++ compiler, since that's what we build with.
5124 ac_ext=cpp
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5132 # optimizations to be activated explicitly by the toplevel.
5133 case "$CC" in
5134 */prev-gcc/xgcc*) ;;
5135 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5136 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5137 esac
5141 # Determine PICFLAG for target gnatlib.
5146 case "${target}" in
5147 # PIC is the default on some targets or must not be used.
5148 *-*-darwin*)
5149 # For darwin, common symbols are not allowed in MH_DYLIB files
5150 case "${CFLAGS}" in
5151 # If we are using a compiler supporting mdynamic-no-pic
5152 # and the option has been tested as safe to add, then cancel
5153 # it here, since the code generated is incompatible with shared
5154 # libs.
5155 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5156 *) PICFLAG_FOR_TARGET=-fno-common ;;
5157 esac
5159 alpha*-dec-osf5*)
5160 # PIC is the default.
5162 hppa*64*-*-hpux*)
5163 # PIC is the default for 64-bit PA HP-UX.
5165 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5167 i[34567]86-*-mingw* | x86_64-*-mingw*)
5169 i[34567]86-*-interix[3-9]*)
5170 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5171 # Instead, we relocate shared libraries at runtime.
5173 i[34567]86-*-nto-qnx*)
5174 # QNX uses GNU C++, but need to define -shared option too, otherwise
5175 # it will coredump.
5176 PICFLAG_FOR_TARGET='-fPIC -shared'
5178 i[34567]86-pc-msdosdjgpp*)
5179 # DJGPP does not support shared libraries at all.
5181 ia64*-*-hpux*)
5182 # On IA64 HP-UX, PIC is the default but the pic flag
5183 # sets the default TLS model and affects inlining.
5184 PICFLAG_FOR_TARGET=-fPIC
5186 mips-sgi-irix6*)
5187 # PIC is the default.
5189 rs6000-ibm-aix* | powerpc-ibm-aix*)
5190 # All AIX code is PIC.
5193 # Some targets support both -fPIC and -fpic, but prefer the latter.
5194 # FIXME: Why?
5195 i[34567]86-*-* | x86_64-*-*)
5196 PICFLAG_FOR_TARGET=-fpic
5198 # FIXME: Override -fPIC default in libgcc only?
5199 sh-*-linux* | sh[2346lbe]*-*-linux*)
5200 PICFLAG_FOR_TARGET=-fpic
5202 # FIXME: Simplify to sh*-*-netbsd*?
5203 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5204 sh64-*-netbsd* | sh64l*-*-netbsd*)
5205 PICFLAG_FOR_TARGET=-fpic
5207 # Default to -fPIC unless specified otherwise.
5209 PICFLAG_FOR_TARGET=-fPIC
5211 esac
5213 # If the user explicitly uses -fpic/-fPIC, keep that.
5214 case "${CFLAGS_FOR_TARGET}" in
5215 *-fpic*)
5216 PICFLAG_FOR_TARGET=-fpic
5218 *-fPIC*)
5219 PICFLAG_FOR_TARGET=-fPIC
5221 esac
5225 # -------------------------
5226 # Check C compiler features
5227 # -------------------------
5230 ac_ext=cpp
5231 ac_cpp='$CXXCPP $CPPFLAGS'
5232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5237 if test -z "$CXXCPP"; then
5238 if ${ac_cv_prog_CXXCPP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 # Double quotes because CXXCPP needs to be expanded
5242 for CXXCPP in "$CXX -E" "/lib/cpp"
5244 ac_preproc_ok=false
5245 for ac_cxx_preproc_warn_flag in '' yes
5247 # Use a header file that comes with gcc, so configuring glibc
5248 # with a fresh cross-compiler works.
5249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5250 # <limits.h> exists even on freestanding compilers.
5251 # On the NeXT, cc -E runs the code through the compiler's parser,
5252 # not just through cpp. "Syntax error" is here to catch this case.
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #ifdef __STDC__
5256 # include <limits.h>
5257 #else
5258 # include <assert.h>
5259 #endif
5260 Syntax error
5261 _ACEOF
5262 if ac_fn_cxx_try_cpp "$LINENO"; then :
5264 else
5265 # Broken: fails on valid input.
5266 continue
5268 rm -f conftest.err conftest.i conftest.$ac_ext
5270 # OK, works on sane cases. Now check whether nonexistent headers
5271 # can be detected and how.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <ac_nonexistent.h>
5275 _ACEOF
5276 if ac_fn_cxx_try_cpp "$LINENO"; then :
5277 # Broken: success on invalid input.
5278 continue
5279 else
5280 # Passes both tests.
5281 ac_preproc_ok=:
5282 break
5284 rm -f conftest.err conftest.i conftest.$ac_ext
5286 done
5287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5288 rm -f conftest.i conftest.err conftest.$ac_ext
5289 if $ac_preproc_ok; then :
5290 break
5293 done
5294 ac_cv_prog_CXXCPP=$CXXCPP
5297 CXXCPP=$ac_cv_prog_CXXCPP
5298 else
5299 ac_cv_prog_CXXCPP=$CXXCPP
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5302 $as_echo "$CXXCPP" >&6; }
5303 ac_preproc_ok=false
5304 for ac_cxx_preproc_warn_flag in '' yes
5306 # Use a header file that comes with gcc, so configuring glibc
5307 # with a fresh cross-compiler works.
5308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5309 # <limits.h> exists even on freestanding compilers.
5310 # On the NeXT, cc -E runs the code through the compiler's parser,
5311 # not just through cpp. "Syntax error" is here to catch this case.
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 #ifdef __STDC__
5315 # include <limits.h>
5316 #else
5317 # include <assert.h>
5318 #endif
5319 Syntax error
5320 _ACEOF
5321 if ac_fn_cxx_try_cpp "$LINENO"; then :
5323 else
5324 # Broken: fails on valid input.
5325 continue
5327 rm -f conftest.err conftest.i conftest.$ac_ext
5329 # OK, works on sane cases. Now check whether nonexistent headers
5330 # can be detected and how.
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <ac_nonexistent.h>
5334 _ACEOF
5335 if ac_fn_cxx_try_cpp "$LINENO"; then :
5336 # Broken: success on invalid input.
5337 continue
5338 else
5339 # Passes both tests.
5340 ac_preproc_ok=:
5341 break
5343 rm -f conftest.err conftest.i conftest.$ac_ext
5345 done
5346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5347 rm -f conftest.i conftest.err conftest.$ac_ext
5348 if $ac_preproc_ok; then :
5350 else
5351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5353 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5354 See \`config.log' for more details" "$LINENO" 5; }
5357 ac_ext=cpp
5358 ac_cpp='$CXXCPP $CPPFLAGS'
5359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5365 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5366 if ${ac_cv_path_GREP+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -z "$GREP"; then
5370 ac_path_GREP_found=false
5371 # Loop through the user's path and test for each of PROGNAME-LIST
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_prog in grep ggrep; do
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5380 as_fn_executable_p "$ac_path_GREP" || continue
5381 # Check for GNU ac_path_GREP and select it if it is found.
5382 # Check for GNU $ac_path_GREP
5383 case `"$ac_path_GREP" --version 2>&1` in
5384 *GNU*)
5385 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5387 ac_count=0
5388 $as_echo_n 0123456789 >"conftest.in"
5389 while :
5391 cat "conftest.in" "conftest.in" >"conftest.tmp"
5392 mv "conftest.tmp" "conftest.in"
5393 cp "conftest.in" "conftest.nl"
5394 $as_echo 'GREP' >> "conftest.nl"
5395 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5397 as_fn_arith $ac_count + 1 && ac_count=$as_val
5398 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5399 # Best one so far, save it but keep looking for a better one
5400 ac_cv_path_GREP="$ac_path_GREP"
5401 ac_path_GREP_max=$ac_count
5403 # 10*(2^10) chars as input seems more than enough
5404 test $ac_count -gt 10 && break
5405 done
5406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5407 esac
5409 $ac_path_GREP_found && break 3
5410 done
5411 done
5412 done
5413 IFS=$as_save_IFS
5414 if test -z "$ac_cv_path_GREP"; then
5415 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5417 else
5418 ac_cv_path_GREP=$GREP
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5423 $as_echo "$ac_cv_path_GREP" >&6; }
5424 GREP="$ac_cv_path_GREP"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5428 $as_echo_n "checking for egrep... " >&6; }
5429 if ${ac_cv_path_EGREP+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5433 then ac_cv_path_EGREP="$GREP -E"
5434 else
5435 if test -z "$EGREP"; then
5436 ac_path_EGREP_found=false
5437 # Loop through the user's path and test for each of PROGNAME-LIST
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_prog in egrep; do
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5446 as_fn_executable_p "$ac_path_EGREP" || continue
5447 # Check for GNU ac_path_EGREP and select it if it is found.
5448 # Check for GNU $ac_path_EGREP
5449 case `"$ac_path_EGREP" --version 2>&1` in
5450 *GNU*)
5451 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5453 ac_count=0
5454 $as_echo_n 0123456789 >"conftest.in"
5455 while :
5457 cat "conftest.in" "conftest.in" >"conftest.tmp"
5458 mv "conftest.tmp" "conftest.in"
5459 cp "conftest.in" "conftest.nl"
5460 $as_echo 'EGREP' >> "conftest.nl"
5461 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5463 as_fn_arith $ac_count + 1 && ac_count=$as_val
5464 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5465 # Best one so far, save it but keep looking for a better one
5466 ac_cv_path_EGREP="$ac_path_EGREP"
5467 ac_path_EGREP_max=$ac_count
5469 # 10*(2^10) chars as input seems more than enough
5470 test $ac_count -gt 10 && break
5471 done
5472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5473 esac
5475 $ac_path_EGREP_found && break 3
5476 done
5477 done
5478 done
5479 IFS=$as_save_IFS
5480 if test -z "$ac_cv_path_EGREP"; then
5481 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5483 else
5484 ac_cv_path_EGREP=$EGREP
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5490 $as_echo "$ac_cv_path_EGREP" >&6; }
5491 EGREP="$ac_cv_path_EGREP"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5495 $as_echo_n "checking for ANSI C header files... " >&6; }
5496 if ${ac_cv_header_stdc+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #include <stdlib.h>
5502 #include <stdarg.h>
5503 #include <string.h>
5504 #include <float.h>
5507 main ()
5511 return 0;
5513 _ACEOF
5514 if ac_fn_cxx_try_compile "$LINENO"; then :
5515 ac_cv_header_stdc=yes
5516 else
5517 ac_cv_header_stdc=no
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 if test $ac_cv_header_stdc = yes; then
5522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #include <string.h>
5527 _ACEOF
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "memchr" >/dev/null 2>&1; then :
5531 else
5532 ac_cv_header_stdc=no
5534 rm -f conftest*
5538 if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 #include <stdlib.h>
5544 _ACEOF
5545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5546 $EGREP "free" >/dev/null 2>&1; then :
5548 else
5549 ac_cv_header_stdc=no
5551 rm -f conftest*
5555 if test $ac_cv_header_stdc = yes; then
5556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5557 if test "$cross_compiling" = yes; then :
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <ctype.h>
5563 #include <stdlib.h>
5564 #if ((' ' & 0x0FF) == 0x020)
5565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5567 #else
5568 # define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5573 #endif
5575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5577 main ()
5579 int i;
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5583 return 2;
5584 return 0;
5586 _ACEOF
5587 if ac_fn_cxx_try_run "$LINENO"; then :
5589 else
5590 ac_cv_header_stdc=no
5592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5593 conftest.$ac_objext conftest.beam conftest.$ac_ext
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5599 $as_echo "$ac_cv_header_stdc" >&6; }
5600 if test $ac_cv_header_stdc = yes; then
5602 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5607 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5608 inttypes.h stdint.h unistd.h
5609 do :
5610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5611 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5614 cat >>confdefs.h <<_ACEOF
5615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5616 _ACEOF
5620 done
5624 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5626 MINIX=yes
5627 else
5628 MINIX=
5632 if test "$MINIX" = yes; then
5634 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5637 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5640 $as_echo "#define _MINIX 1" >>confdefs.h
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5646 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5647 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 # define __EXTENSIONS__ 1
5654 $ac_includes_default
5656 main ()
5660 return 0;
5662 _ACEOF
5663 if ac_fn_cxx_try_compile "$LINENO"; then :
5664 ac_cv_safe_to_define___extensions__=yes
5665 else
5666 ac_cv_safe_to_define___extensions__=no
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5671 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5672 test $ac_cv_safe_to_define___extensions__ = yes &&
5673 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5675 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5677 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5679 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5681 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5684 ac_ext=c
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5690 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5691 # On Suns, sometimes $CPP names a directory.
5692 if test -n "$CPP" && test -d "$CPP"; then
5693 CPP=
5695 if test -z "$CPP"; then
5696 if ${ac_cv_prog_CPP+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 # Double quotes because CPP needs to be expanded
5700 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5702 ac_preproc_ok=false
5703 for ac_c_preproc_warn_flag in '' yes
5705 # Use a header file that comes with gcc, so configuring glibc
5706 # with a fresh cross-compiler works.
5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708 # <limits.h> exists even on freestanding compilers.
5709 # On the NeXT, cc -E runs the code through the compiler's parser,
5710 # not just through cpp. "Syntax error" is here to catch this case.
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #ifdef __STDC__
5714 # include <limits.h>
5715 #else
5716 # include <assert.h>
5717 #endif
5718 Syntax error
5719 _ACEOF
5720 if ac_fn_c_try_cpp "$LINENO"; then :
5722 else
5723 # Broken: fails on valid input.
5724 continue
5726 rm -f conftest.err conftest.i conftest.$ac_ext
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <ac_nonexistent.h>
5733 _ACEOF
5734 if ac_fn_c_try_cpp "$LINENO"; then :
5735 # Broken: success on invalid input.
5736 continue
5737 else
5738 # Passes both tests.
5739 ac_preproc_ok=:
5740 break
5742 rm -f conftest.err conftest.i conftest.$ac_ext
5744 done
5745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5746 rm -f conftest.i conftest.err conftest.$ac_ext
5747 if $ac_preproc_ok; then :
5748 break
5751 done
5752 ac_cv_prog_CPP=$CPP
5755 CPP=$ac_cv_prog_CPP
5756 else
5757 ac_cv_prog_CPP=$CPP
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5760 $as_echo "$CPP" >&6; }
5761 ac_preproc_ok=false
5762 for ac_c_preproc_warn_flag in '' yes
5764 # Use a header file that comes with gcc, so configuring glibc
5765 # with a fresh cross-compiler works.
5766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5767 # <limits.h> exists even on freestanding compilers.
5768 # On the NeXT, cc -E runs the code through the compiler's parser,
5769 # not just through cpp. "Syntax error" is here to catch this case.
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #ifdef __STDC__
5773 # include <limits.h>
5774 #else
5775 # include <assert.h>
5776 #endif
5777 Syntax error
5778 _ACEOF
5779 if ac_fn_c_try_cpp "$LINENO"; then :
5781 else
5782 # Broken: fails on valid input.
5783 continue
5785 rm -f conftest.err conftest.i conftest.$ac_ext
5787 # OK, works on sane cases. Now check whether nonexistent headers
5788 # can be detected and how.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <ac_nonexistent.h>
5792 _ACEOF
5793 if ac_fn_c_try_cpp "$LINENO"; then :
5794 # Broken: success on invalid input.
5795 continue
5796 else
5797 # Passes both tests.
5798 ac_preproc_ok=:
5799 break
5801 rm -f conftest.err conftest.i conftest.$ac_ext
5803 done
5804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5805 rm -f conftest.i conftest.err conftest.$ac_ext
5806 if $ac_preproc_ok; then :
5808 else
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5812 See \`config.log' for more details" "$LINENO" 5; }
5815 ac_ext=cpp
5816 ac_cpp='$CXXCPP $CPPFLAGS'
5817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5822 $as_echo_n "checking for inline... " >&6; }
5823 if ${ac_cv_c_inline+:} false; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 ac_cv_c_inline=no
5827 for ac_kw in inline __inline__ __inline; do
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #ifndef __cplusplus
5831 typedef int foo_t;
5832 static $ac_kw foo_t static_foo () {return 0; }
5833 $ac_kw foo_t foo () {return 0; }
5834 #endif
5836 _ACEOF
5837 if ac_fn_cxx_try_compile "$LINENO"; then :
5838 ac_cv_c_inline=$ac_kw
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 test "$ac_cv_c_inline" != no && break
5842 done
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5846 $as_echo "$ac_cv_c_inline" >&6; }
5848 case $ac_cv_c_inline in
5849 inline | yes) ;;
5851 case $ac_cv_c_inline in
5852 no) ac_val=;;
5853 *) ac_val=$ac_cv_c_inline;;
5854 esac
5855 cat >>confdefs.h <<_ACEOF
5856 #ifndef __cplusplus
5857 #define inline $ac_val
5858 #endif
5859 _ACEOF
5861 esac
5864 # Check whether --enable-largefile was given.
5865 if test "${enable_largefile+set}" = set; then :
5866 enableval=$enable_largefile;
5869 if test "$enable_largefile" != no; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5872 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5873 if ${ac_cv_sys_largefile_CC+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 ac_cv_sys_largefile_CC=no
5877 if test "$GCC" != yes; then
5878 ac_save_CC=$CC
5879 while :; do
5880 # IRIX 6.2 and later do not support large files by default,
5881 # so use the C compiler's -n32 option if that helps.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 break
5904 rm -f core conftest.err conftest.$ac_objext
5905 CC="$CC -n32"
5906 if ac_fn_cxx_try_compile "$LINENO"; then :
5907 ac_cv_sys_largefile_CC=' -n32'; break
5909 rm -f core conftest.err conftest.$ac_objext
5910 break
5911 done
5912 CC=$ac_save_CC
5913 rm -f conftest.$ac_ext
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5917 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5918 if test "$ac_cv_sys_largefile_CC" != no; then
5919 CC=$CC$ac_cv_sys_largefile_CC
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5923 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5924 if ${ac_cv_sys_file_offset_bits+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 while :; do
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 #include <sys/types.h>
5931 /* Check that off_t can represent 2**63 - 1 correctly.
5932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5933 since some C++ compilers masquerading as C compilers
5934 incorrectly reject 9223372036854775807. */
5935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5937 && LARGE_OFF_T % 2147483647 == 1)
5938 ? 1 : -1];
5940 main ()
5944 return 0;
5946 _ACEOF
5947 if ac_fn_cxx_try_compile "$LINENO"; then :
5948 ac_cv_sys_file_offset_bits=no; break
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #define _FILE_OFFSET_BITS 64
5954 #include <sys/types.h>
5955 /* Check that off_t can represent 2**63 - 1 correctly.
5956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5957 since some C++ compilers masquerading as C compilers
5958 incorrectly reject 9223372036854775807. */
5959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5961 && LARGE_OFF_T % 2147483647 == 1)
5962 ? 1 : -1];
5964 main ()
5968 return 0;
5970 _ACEOF
5971 if ac_fn_cxx_try_compile "$LINENO"; then :
5972 ac_cv_sys_file_offset_bits=64; break
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 ac_cv_sys_file_offset_bits=unknown
5976 break
5977 done
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5980 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5981 case $ac_cv_sys_file_offset_bits in #(
5982 no | unknown) ;;
5984 cat >>confdefs.h <<_ACEOF
5985 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5986 _ACEOF
5988 esac
5989 rm -rf conftest*
5990 if test $ac_cv_sys_file_offset_bits = unknown; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5992 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5993 if ${ac_cv_sys_large_files+:} false; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 while :; do
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6000 /* Check that off_t can represent 2**63 - 1 correctly.
6001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6002 since some C++ compilers masquerading as C compilers
6003 incorrectly reject 9223372036854775807. */
6004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6006 && LARGE_OFF_T % 2147483647 == 1)
6007 ? 1 : -1];
6009 main ()
6013 return 0;
6015 _ACEOF
6016 if ac_fn_cxx_try_compile "$LINENO"; then :
6017 ac_cv_sys_large_files=no; break
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6031 ? 1 : -1];
6033 main ()
6037 return 0;
6039 _ACEOF
6040 if ac_fn_cxx_try_compile "$LINENO"; then :
6041 ac_cv_sys_large_files=1; break
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 ac_cv_sys_large_files=unknown
6045 break
6046 done
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6049 $as_echo "$ac_cv_sys_large_files" >&6; }
6050 case $ac_cv_sys_large_files in #(
6051 no | unknown) ;;
6053 cat >>confdefs.h <<_ACEOF
6054 #define _LARGE_FILES $ac_cv_sys_large_files
6055 _ACEOF
6057 esac
6058 rm -rf conftest*
6065 # sizeof(char) is 1 by definition.
6066 # The cast to long int works around a bug in the HP C Compiler
6067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6069 # This bug is HP SR number 8606223364.
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6071 $as_echo_n "checking size of void *... " >&6; }
6072 if ${ac_cv_sizeof_void_p+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6077 else
6078 if test "$ac_cv_type_void_p" = yes; then
6079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6081 as_fn_error 77 "cannot compute sizeof (void *)
6082 See \`config.log' for more details" "$LINENO" 5; }
6083 else
6084 ac_cv_sizeof_void_p=0
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6090 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6094 cat >>confdefs.h <<_ACEOF
6095 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6096 _ACEOF
6099 # The cast to long int works around a bug in the HP C Compiler
6100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6102 # This bug is HP SR number 8606223364.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6104 $as_echo_n "checking size of short... " >&6; }
6105 if ${ac_cv_sizeof_short+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6110 else
6111 if test "$ac_cv_type_short" = yes; then
6112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6114 as_fn_error 77 "cannot compute sizeof (short)
6115 See \`config.log' for more details" "$LINENO" 5; }
6116 else
6117 ac_cv_sizeof_short=0
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6123 $as_echo "$ac_cv_sizeof_short" >&6; }
6127 cat >>confdefs.h <<_ACEOF
6128 #define SIZEOF_SHORT $ac_cv_sizeof_short
6129 _ACEOF
6132 # The cast to long int works around a bug in the HP C Compiler
6133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6135 # This bug is HP SR number 8606223364.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6137 $as_echo_n "checking size of int... " >&6; }
6138 if ${ac_cv_sizeof_int+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6143 else
6144 if test "$ac_cv_type_int" = yes; then
6145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6147 as_fn_error 77 "cannot compute sizeof (int)
6148 See \`config.log' for more details" "$LINENO" 5; }
6149 else
6150 ac_cv_sizeof_int=0
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6156 $as_echo "$ac_cv_sizeof_int" >&6; }
6160 cat >>confdefs.h <<_ACEOF
6161 #define SIZEOF_INT $ac_cv_sizeof_int
6162 _ACEOF
6165 # The cast to long int works around a bug in the HP C Compiler
6166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6168 # This bug is HP SR number 8606223364.
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6170 $as_echo_n "checking size of long... " >&6; }
6171 if ${ac_cv_sizeof_long+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6176 else
6177 if test "$ac_cv_type_long" = yes; then
6178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6180 as_fn_error 77 "cannot compute sizeof (long)
6181 See \`config.log' for more details" "$LINENO" 5; }
6182 else
6183 ac_cv_sizeof_long=0
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6189 $as_echo "$ac_cv_sizeof_long" >&6; }
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_LONG $ac_cv_sizeof_long
6195 _ACEOF
6198 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6199 if test "x$ac_cv_type_long_long" = xyes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_LONG_LONG 1
6203 _ACEOF
6205 # The cast to long int works around a bug in the HP C Compiler
6206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6208 # This bug is HP SR number 8606223364.
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6210 $as_echo_n "checking size of long long... " >&6; }
6211 if ${ac_cv_sizeof_long_long+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6216 else
6217 if test "$ac_cv_type_long_long" = yes; then
6218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6220 as_fn_error 77 "cannot compute sizeof (long long)
6221 See \`config.log' for more details" "$LINENO" 5; }
6222 else
6223 ac_cv_sizeof_long_long=0
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6229 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6233 cat >>confdefs.h <<_ACEOF
6234 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6235 _ACEOF
6240 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6241 case $ac_cv_c_int8_t in #(
6242 no|yes) ;; #(
6245 cat >>confdefs.h <<_ACEOF
6246 #define int8_t $ac_cv_c_int8_t
6247 _ACEOF
6249 esac
6251 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6252 case $ac_cv_c_int16_t in #(
6253 no|yes) ;; #(
6256 cat >>confdefs.h <<_ACEOF
6257 #define int16_t $ac_cv_c_int16_t
6258 _ACEOF
6260 esac
6262 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6263 case $ac_cv_c_int32_t in #(
6264 no|yes) ;; #(
6267 cat >>confdefs.h <<_ACEOF
6268 #define int32_t $ac_cv_c_int32_t
6269 _ACEOF
6271 esac
6273 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6274 case $ac_cv_c_int64_t in #(
6275 no|yes) ;; #(
6278 cat >>confdefs.h <<_ACEOF
6279 #define int64_t $ac_cv_c_int64_t
6280 _ACEOF
6282 esac
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6286 $as_echo_n "checking for unsigned long long int... " >&6; }
6287 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 ac_cv_type_unsigned_long_long_int=yes
6291 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6295 /* For now, do not test the preprocessor; as of 2007 there are too many
6296 implementations with broken preprocessors. Perhaps this can
6297 be revisited in 2012. In the meantime, code should not expect
6298 #if to work with literals wider than 32 bits. */
6299 /* Test literals. */
6300 long long int ll = 9223372036854775807ll;
6301 long long int nll = -9223372036854775807LL;
6302 unsigned long long int ull = 18446744073709551615ULL;
6303 /* Test constant expressions. */
6304 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6305 ? 1 : -1)];
6306 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6307 ? 1 : -1)];
6308 int i = 63;
6310 main ()
6312 /* Test availability of runtime routines for shift and division. */
6313 long long int llmax = 9223372036854775807ll;
6314 unsigned long long int ullmax = 18446744073709551615ull;
6315 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6316 | (llmax / ll) | (llmax % ll)
6317 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6318 | (ullmax / ull) | (ullmax % ull));
6320 return 0;
6323 _ACEOF
6324 if ac_fn_cxx_try_link "$LINENO"; then :
6326 else
6327 ac_cv_type_unsigned_long_long_int=no
6329 rm -f core conftest.err conftest.$ac_objext \
6330 conftest$ac_exeext conftest.$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6334 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6335 if test $ac_cv_type_unsigned_long_long_int = yes; then
6337 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6344 $as_echo_n "checking for long long int... " >&6; }
6345 if ${ac_cv_type_long_long_int+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 ac_cv_type_long_long_int=yes
6349 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6350 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6351 if test $ac_cv_type_long_long_int = yes; then
6352 if test "$cross_compiling" = yes; then :
6354 else
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 #include <limits.h>
6358 #ifndef LLONG_MAX
6359 # define HALF \
6360 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6361 # define LLONG_MAX (HALF - 1 + HALF)
6362 #endif
6364 main ()
6366 long long int n = 1;
6367 int i;
6368 for (i = 0; ; i++)
6370 long long int m = n << i;
6371 if (m >> i != n)
6372 return 1;
6373 if (LLONG_MAX / 2 < m)
6374 break;
6376 return 0;
6378 return 0;
6380 _ACEOF
6381 if ac_fn_cxx_try_run "$LINENO"; then :
6383 else
6384 ac_cv_type_long_long_int=no
6386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387 conftest.$ac_objext conftest.beam conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6394 $as_echo "$ac_cv_type_long_long_int" >&6; }
6395 if test $ac_cv_type_long_long_int = yes; then
6397 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_intmax_t" = xyes; then :
6406 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6408 else
6409 test $ac_cv_type_long_long_int = yes \
6410 && ac_type='long long int' \
6411 || ac_type='long int'
6413 cat >>confdefs.h <<_ACEOF
6414 #define intmax_t $ac_type
6415 _ACEOF
6421 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_intptr_t" = xyes; then :
6424 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6426 else
6427 for ac_type in 'int' 'long int' 'long long int'; do
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 $ac_includes_default
6432 main ()
6434 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6435 test_array [0] = 0;
6436 return test_array [0];
6439 return 0;
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6444 cat >>confdefs.h <<_ACEOF
6445 #define intptr_t $ac_type
6446 _ACEOF
6448 ac_type=
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6456 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6457 case $ac_cv_c_uint8_t in #(
6458 no|yes) ;; #(
6461 $as_echo "#define _UINT8_T 1" >>confdefs.h
6464 cat >>confdefs.h <<_ACEOF
6465 #define uint8_t $ac_cv_c_uint8_t
6466 _ACEOF
6468 esac
6470 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6471 case $ac_cv_c_uint16_t in #(
6472 no|yes) ;; #(
6476 cat >>confdefs.h <<_ACEOF
6477 #define uint16_t $ac_cv_c_uint16_t
6478 _ACEOF
6480 esac
6482 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6483 case $ac_cv_c_uint32_t in #(
6484 no|yes) ;; #(
6487 $as_echo "#define _UINT32_T 1" >>confdefs.h
6490 cat >>confdefs.h <<_ACEOF
6491 #define uint32_t $ac_cv_c_uint32_t
6492 _ACEOF
6494 esac
6496 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6497 case $ac_cv_c_uint64_t in #(
6498 no|yes) ;; #(
6501 $as_echo "#define _UINT64_T 1" >>confdefs.h
6504 cat >>confdefs.h <<_ACEOF
6505 #define uint64_t $ac_cv_c_uint64_t
6506 _ACEOF
6508 esac
6512 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6513 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6515 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6517 else
6518 test $ac_cv_type_unsigned_long_long_int = yes \
6519 && ac_type='unsigned long long int' \
6520 || ac_type='unsigned long int'
6522 cat >>confdefs.h <<_ACEOF
6523 #define uintmax_t $ac_type
6524 _ACEOF
6530 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6531 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6533 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6535 else
6536 for ac_type in 'unsigned int' 'unsigned long int' \
6537 'unsigned long long int'; do
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 $ac_includes_default
6542 main ()
6544 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6545 test_array [0] = 0;
6546 return test_array [0];
6549 return 0;
6551 _ACEOF
6552 if ac_fn_cxx_try_compile "$LINENO"; then :
6554 cat >>confdefs.h <<_ACEOF
6555 #define uintptr_t $ac_type
6556 _ACEOF
6558 ac_type=
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 test -z "$ac_type" && break
6562 done
6578 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6579 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6582 # check what underlying integer type int64_t uses
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6584 $as_echo_n "checking for int64_t underlying type... " >&6; }
6585 if ${ac_cv_int64_t_type+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 #ifdef HAVE_STDINT_H
6593 #include <stdint.h>
6594 #endif
6595 template <typename T> struct X { };
6596 template <>
6597 struct X<long> { typedef long t; };
6600 main ()
6602 X<int64_t>::t x;
6604 return 0;
6606 _ACEOF
6607 if ac_fn_cxx_try_compile "$LINENO"; then :
6608 ac_cv_int64_t_type=long
6609 else
6610 ac_cv_int64_t_type="long long"
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6615 $as_echo "$ac_cv_int64_t_type" >&6; }
6616 if test "$ac_cv_int64_t_type" = "long"; then
6618 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 #ifdef HAVE_STDINT_H
6625 #include <stdint.h>
6626 #endif
6627 template <typename T> struct X { };
6628 template <>
6629 struct X<long long> { typedef long long t; };
6632 main ()
6634 X<int64_t>::t x;
6636 return 0;
6638 _ACEOF
6639 if ac_fn_cxx_try_compile "$LINENO"; then :
6641 else
6642 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6648 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6649 if ${ac_cv_std_swap_in_utility+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6656 #include <utility>
6659 main ()
6661 int a, b; std::swap(a,b);
6663 return 0;
6665 _ACEOF
6666 if ac_fn_cxx_try_compile "$LINENO"; then :
6667 ac_cv_std_swap_in_utility=yes
6668 else
6669 ac_cv_std_swap_in_utility=no
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6674 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6675 if test $ac_cv_std_swap_in_utility = yes; then
6677 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6681 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6682 # If the host compiler is affected by the bug, and we build with optimization
6683 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6684 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6685 # Since there is no reliable feature check for the presence of this bug,
6686 # we simply use a GCC version number check. (This should never trigger for
6687 # stages 2 or 3 of a native bootstrap.)
6688 aliasing_flags=
6689 if test "$GCC" = yes; then
6690 saved_CXXFLAGS="$CXXFLAGS"
6692 # The following test compilation will succeed if and only if $CXX accepts
6693 # -fno-strict-aliasing *and* is older than GCC 4.3.
6694 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6696 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6700 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6701 #error compiler not affected by placement new aliasing bug
6702 #endif
6704 _ACEOF
6705 if ac_fn_cxx_try_compile "$LINENO"; then :
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6707 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 CXXFLAGS="$saved_CXXFLAGS"
6720 # ---------------------
6721 # Warnings and checking
6722 # ---------------------
6724 # Check $CC warning features (if it's GCC).
6725 # We want to use -pedantic, but we don't want warnings about
6726 # * 'long long'
6727 # * variadic macros
6728 # * overlong strings
6729 # * C++11 narrowing conversions in { }
6730 # So, we only use -pedantic if we can disable those warnings.
6732 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6733 # Check whether --enable-build-format-warnings was given.
6734 if test "${enable_build_format_warnings+set}" = set; then :
6735 enableval=$enable_build_format_warnings;
6736 else
6737 enable_build_format_warnings=yes
6740 if test $enable_build_format_warnings = no; then :
6741 wf_opt=-Wno-format
6742 else
6743 wf_opt=
6745 ac_ext=cpp
6746 ac_cpp='$CXXCPP $CPPFLAGS'
6747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6751 loose_warn=
6752 save_CXXFLAGS="$CXXFLAGS"
6753 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6754 # Do the check with the no- prefix removed since gcc silently
6755 # accepts any -Wno-* option on purpose
6756 case $real_option in
6757 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6758 *) option=$real_option ;;
6759 esac
6760 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6763 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6764 if eval \${$as_acx_Woption+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 CXXFLAGS="$option"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6772 main ()
6776 return 0;
6778 _ACEOF
6779 if ac_fn_cxx_try_compile "$LINENO"; then :
6780 eval "$as_acx_Woption=yes"
6781 else
6782 eval "$as_acx_Woption=no"
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 eval ac_res=\$$as_acx_Woption
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6789 $as_echo "$ac_res" >&6; }
6790 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6791 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6793 done
6794 CXXFLAGS="$save_CXXFLAGS"
6795 ac_ext=cpp
6796 ac_cpp='$CXXCPP $CPPFLAGS'
6797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6803 ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809 c_loose_warn=
6810 save_CFLAGS="$CFLAGS"
6811 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6812 # Do the check with the no- prefix removed since gcc silently
6813 # accepts any -Wno-* option on purpose
6814 case $real_option in
6815 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6816 *) option=$real_option ;;
6817 esac
6818 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6821 $as_echo_n "checking whether $CC supports $option... " >&6; }
6822 if eval \${$as_acx_Woption+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 CFLAGS="$option"
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6830 main ()
6834 return 0;
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 eval "$as_acx_Woption=yes"
6839 else
6840 eval "$as_acx_Woption=no"
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 eval ac_res=\$$as_acx_Woption
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6849 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6851 done
6852 CFLAGS="$save_CFLAGS"
6853 ac_ext=cpp
6854 ac_cpp='$CXXCPP $CPPFLAGS'
6855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6860 ac_ext=cpp
6861 ac_cpp='$CXXCPP $CPPFLAGS'
6862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6866 strict_warn=
6867 save_CXXFLAGS="$CXXFLAGS"
6868 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6869 # Do the check with the no- prefix removed since gcc silently
6870 # accepts any -Wno-* option on purpose
6871 case $real_option in
6872 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6873 *) option=$real_option ;;
6874 esac
6875 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6878 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6879 if eval \${$as_acx_Woption+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 CXXFLAGS="$option"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6887 main ()
6891 return 0;
6893 _ACEOF
6894 if ac_fn_cxx_try_compile "$LINENO"; then :
6895 eval "$as_acx_Woption=yes"
6896 else
6897 eval "$as_acx_Woption=no"
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 eval ac_res=\$$as_acx_Woption
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6904 $as_echo "$ac_res" >&6; }
6905 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6906 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6908 done
6909 CXXFLAGS="$save_CXXFLAGS"
6910 ac_ext=cpp
6911 ac_cpp='$CXXCPP $CPPFLAGS'
6912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6917 ac_ext=c
6918 ac_cpp='$CPP $CPPFLAGS'
6919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 c_strict_warn=
6924 save_CFLAGS="$CFLAGS"
6925 for real_option in -Wold-style-definition -Wc++-compat; do
6926 # Do the check with the no- prefix removed since gcc silently
6927 # accepts any -Wno-* option on purpose
6928 case $real_option in
6929 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6930 *) option=$real_option ;;
6931 esac
6932 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6935 $as_echo_n "checking whether $CC supports $option... " >&6; }
6936 if eval \${$as_acx_Woption+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 CFLAGS="$option"
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6944 main ()
6948 return 0;
6950 _ACEOF
6951 if ac_fn_c_try_compile "$LINENO"; then :
6952 eval "$as_acx_Woption=yes"
6953 else
6954 eval "$as_acx_Woption=no"
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 eval ac_res=\$$as_acx_Woption
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6961 $as_echo "$ac_res" >&6; }
6962 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6963 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6965 done
6966 CFLAGS="$save_CFLAGS"
6967 ac_ext=cpp
6968 ac_cpp='$CXXCPP $CPPFLAGS'
6969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6974 ac_ext=cpp
6975 ac_cpp='$CXXCPP $CPPFLAGS'
6976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6980 # Do the check with the no- prefix removed from the warning options
6981 # since gcc silently accepts any -Wno-* option on purpose
6982 if test "$GXX" = yes; then :
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6984 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6985 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 save_CXXFLAGS="$CXXFLAGS"
6989 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6994 main ()
6998 return 0;
7000 _ACEOF
7001 if ac_fn_cxx_try_compile "$LINENO"; then :
7002 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7003 else
7004 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 CXXFLAGS="$save_CXXFLAGS"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7010 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7011 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7012 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7016 ac_ext=cpp
7017 ac_cpp='$CXXCPP $CPPFLAGS'
7018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7023 ac_ext=cpp
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7029 # Check whether --enable-werror-always was given.
7030 if test "${enable_werror_always+set}" = set; then :
7031 enableval=$enable_werror_always;
7032 else
7033 enable_werror_always=no
7036 if test $enable_werror_always = yes; then :
7037 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7040 ac_ext=cpp
7041 ac_cpp='$CXXCPP $CPPFLAGS'
7042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7048 # The above macros do nothing if the compiler is not GCC. However, the
7049 # Makefile has more goo to add other flags, so these variables are used
7050 # to enable warnings only for GCC.
7051 warn_cflags=
7052 warn_cxxflags=
7053 if test "x$GCC" = "xyes"; then
7054 warn_cflags='$(GCC_WARN_CFLAGS)'
7055 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7060 # Disable exceptions and RTTI if building with g++
7061 ac_ext=c
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067 noexception_flags=
7068 save_CFLAGS="$CFLAGS"
7069 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7070 # Do the check with the no- prefix removed since gcc silently
7071 # accepts any -Wno-* option on purpose
7072 case $real_option in
7073 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7074 *) option=$real_option ;;
7075 esac
7076 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7079 $as_echo_n "checking whether $CC supports $option... " >&6; }
7080 if eval \${$as_acx_Woption+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 CFLAGS="$option"
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7088 main ()
7092 return 0;
7094 _ACEOF
7095 if ac_fn_c_try_compile "$LINENO"; then :
7096 eval "$as_acx_Woption=yes"
7097 else
7098 eval "$as_acx_Woption=no"
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 eval ac_res=\$$as_acx_Woption
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7105 $as_echo "$ac_res" >&6; }
7106 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7107 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7109 done
7110 CFLAGS="$save_CFLAGS"
7111 ac_ext=cpp
7112 ac_cpp='$CXXCPP $CPPFLAGS'
7113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7119 # Enable expensive internal checks
7120 is_release=
7121 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7122 is_release=yes
7125 # Check whether --enable-checking was given.
7126 if test "${enable_checking+set}" = set; then :
7127 enableval=$enable_checking; ac_checking_flags="${enableval}"
7128 else
7130 # Determine the default checks.
7131 if test x$is_release = x ; then
7132 ac_checking_flags=yes,extra
7133 else
7134 ac_checking_flags=release
7138 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7139 for check in release $ac_checking_flags
7141 case $check in
7142 # these set all the flags to specific states
7143 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7144 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7145 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7146 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7147 ac_tree_checking=1 ; ac_valgrind_checking= ;
7148 ac_types_checking=1 ;;
7149 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7150 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7151 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7152 ac_rtlflag_checking= ; ac_runtime_checking= ;
7153 ac_tree_checking= ; ac_valgrind_checking= ;
7154 ac_types_checking= ;;
7155 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7156 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7157 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7158 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7159 ac_tree_checking=1 ; ac_valgrind_checking= ;
7160 ac_types_checking=1 ;;
7161 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7162 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7163 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7164 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7165 ac_tree_checking= ; ac_valgrind_checking= ;
7166 ac_types_checking= ;;
7167 # these enable particular checks
7168 assert) ac_assert_checking=1 ;;
7169 df) ac_df_checking=1 ;;
7170 extra) ac_extra_checking=1 ;;
7171 fold) ac_fold_checking=1 ;;
7172 gc) ac_gc_checking=1 ;;
7173 gcac) ac_gc_always_collect=1 ;;
7174 gimple) ac_gimple_checking=1 ;;
7175 misc) ac_checking=1 ;;
7176 rtl) ac_rtl_checking=1 ;;
7177 rtlflag) ac_rtlflag_checking=1 ;;
7178 runtime) ac_runtime_checking=1 ;;
7179 tree) ac_tree_checking=1 ;;
7180 types) ac_types_checking=1 ;;
7181 valgrind) ac_valgrind_checking=1 ;;
7182 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7183 esac
7184 done
7185 IFS="$ac_save_IFS"
7187 nocommon_flag=""
7188 if test x$ac_checking != x ; then
7190 $as_echo "#define CHECKING_P 1" >>confdefs.h
7192 nocommon_flag=-fno-common
7193 else
7194 $as_echo "#define CHECKING_P 0" >>confdefs.h
7198 if test x$ac_extra_checking != x ; then
7200 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7202 else
7203 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7206 if test x$ac_df_checking != x ; then
7208 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7211 if test x$ac_assert_checking != x ; then
7213 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7216 if test x$ac_gimple_checking != x ; then
7218 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7222 if test x$ac_runtime_checking != x ; then
7224 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7227 if test x$ac_tree_checking != x ; then
7229 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7231 TREECHECKING=yes
7233 if test x$ac_types_checking != x ; then
7235 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7239 if test x$ac_rtl_checking != x ; then
7241 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7244 if test x$ac_rtlflag_checking != x ; then
7246 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7249 if test x$ac_gc_checking != x ; then
7251 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7254 if test x$ac_gc_always_collect != x ; then
7256 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7259 if test x$ac_fold_checking != x ; then
7261 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7264 valgrind_path_defines=
7265 valgrind_command=
7267 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7268 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7269 have_valgrind_h=yes
7270 else
7271 have_valgrind_h=no
7276 # It is certainly possible that there's valgrind but no valgrind.h.
7277 # GCC relies on making annotations so we must have both.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7279 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7282 #include <valgrind/memcheck.h>
7283 #ifndef VALGRIND_DISCARD
7284 #error VALGRIND_DISCARD not defined
7285 #endif
7286 _ACEOF
7287 if ac_fn_cxx_try_cpp "$LINENO"; then :
7288 gcc_cv_header_valgrind_memcheck_h=yes
7289 else
7290 gcc_cv_header_valgrind_memcheck_h=no
7292 rm -f conftest.err conftest.i conftest.$ac_ext
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7294 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7296 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <memcheck.h>
7300 #ifndef VALGRIND_DISCARD
7301 #error VALGRIND_DISCARD not defined
7302 #endif
7303 _ACEOF
7304 if ac_fn_cxx_try_cpp "$LINENO"; then :
7305 gcc_cv_header_memcheck_h=yes
7306 else
7307 gcc_cv_header_memcheck_h=no
7309 rm -f conftest.err conftest.i conftest.$ac_ext
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7311 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7312 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7314 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7317 if test $gcc_cv_header_memcheck_h = yes; then
7319 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7323 if test x$ac_valgrind_checking != x ; then
7325 # Prepare PATH_SEPARATOR.
7326 # The user is always right.
7327 if test "${PATH_SEPARATOR+set}" != set; then
7328 echo "#! /bin/sh" >conf$$.sh
7329 echo "exit 0" >>conf$$.sh
7330 chmod +x conf$$.sh
7331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7332 PATH_SEPARATOR=';'
7333 else
7334 PATH_SEPARATOR=:
7336 rm -f conf$$.sh
7339 # Find out how to test for executable files. Don't use a zero-byte file,
7340 # as systems may use methods other than mode bits to determine executability.
7341 cat >conf$$.file <<_ASEOF
7342 #! /bin/sh
7343 exit 0
7344 _ASEOF
7345 chmod +x conf$$.file
7346 if test -x conf$$.file >/dev/null 2>&1; then
7347 ac_executable_p="test -x"
7348 else
7349 ac_executable_p="test -f"
7351 rm -f conf$$.file
7353 # Extract the first word of "valgrind", so it can be a program name with args.
7354 set dummy valgrind; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_path_valgrind_path+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 case "$valgrind_path" in
7361 [\\/]* | ?:[\\/]*)
7362 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7365 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7366 for ac_dir in $PATH; do
7367 IFS="$ac_save_IFS"
7368 test -z "$ac_dir" && ac_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7371 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7372 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7373 break 2
7376 done
7377 done
7378 IFS="$ac_save_IFS"
7380 esac
7382 valgrind_path="$ac_cv_path_valgrind_path"
7383 if test -n "$valgrind_path"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7385 $as_echo "$valgrind_path" >&6; }
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7391 if test "x$valgrind_path" = "x" \
7392 || (test $have_valgrind_h = no \
7393 && test $gcc_cv_header_memcheck_h = no \
7394 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7395 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7397 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7398 valgrind_command="$valgrind_path -q"
7400 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7406 # Enable code coverage collection
7407 # Check whether --enable-coverage was given.
7408 if test "${enable_coverage+set}" = set; then :
7409 enableval=$enable_coverage; case "${enableval}" in
7410 yes|noopt)
7411 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7413 opt)
7414 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7417 # a.k.a. --disable-coverage
7418 coverage_flags=""
7421 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7423 esac
7424 else
7425 coverage_flags=""
7430 # Check whether --enable-gather-detailed-mem-stats was given.
7431 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7432 enableval=$enable_gather_detailed_mem_stats;
7433 else
7434 enable_gather_detailed_mem_stats=no
7437 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7439 cat >>confdefs.h <<_ACEOF
7440 #define GATHER_STATISTICS $gather_stats
7441 _ACEOF
7444 # Check whether --enable-valgrind-annotations was given.
7445 if test "${enable_valgrind_annotations+set}" = set; then :
7446 enableval=$enable_valgrind_annotations;
7447 else
7448 enable_valgrind_annotations=no
7451 if test x$enable_valgrind_annotations != xno \
7452 || test x$ac_valgrind_checking != x; then
7453 if (test $have_valgrind_h = no \
7454 && test $gcc_cv_header_memcheck_h = no \
7455 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7456 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7459 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7463 # -------------------------------
7464 # Miscenalleous configure options
7465 # -------------------------------
7467 # With stabs
7469 # Check whether --with-stabs was given.
7470 if test "${with_stabs+set}" = set; then :
7471 withval=$with_stabs; stabs="$with_stabs"
7472 else
7473 stabs=no
7477 # Determine whether or not multilibs are enabled.
7478 # Check whether --enable-multilib was given.
7479 if test "${enable_multilib+set}" = set; then :
7480 enableval=$enable_multilib;
7481 else
7482 enable_multilib=yes
7487 # Determine whether or not multiarch is enabled.
7488 # Check whether --enable-multiarch was given.
7489 if test "${enable_multiarch+set}" = set; then :
7490 enableval=$enable_multiarch; case "${enableval}" in
7491 yes|no|auto) enable_multiarch=$enableval;;
7492 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7493 esac
7494 else
7495 enable_multiarch=auto
7498 if test x${enable_multiarch} = xauto; then
7499 if test x${with_native_system_header_dir} != x; then
7500 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7501 enable_multiarch=no
7503 if test x$host != x$target && test "x$with_sysroot" = x; then
7504 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7505 enable_multiarch=no
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7509 $as_echo_n "checking for multiarch configuration... " >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7512 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7514 # needed for setting the multiarch name for soft-float/hard-float ABIs
7518 # default stack clash protection guard size as power of twos in bytes.
7519 # Please keep these in sync with params.def.
7520 stk_clash_min=12
7521 stk_clash_max=30
7523 # Keep the default value when the option is not used to 0, this allows us to
7524 # distinguish between the cases where the user specifially set a value via
7525 # configure and when the normal default value is used.
7527 # Check whether --with-stack-clash-protection-guard-size was given.
7528 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7529 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7530 else
7531 DEFAULT_STK_CLASH_GUARD_SIZE=0
7534 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7535 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7536 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7537 as_fn_error $? "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7541 cat >>confdefs.h <<_ACEOF
7542 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7543 _ACEOF
7546 # Enable __cxa_atexit for C++.
7547 # Check whether --enable-__cxa_atexit was given.
7548 if test "${enable___cxa_atexit+set}" = set; then :
7549 enableval=$enable___cxa_atexit;
7553 # Enable C extension for decimal float if target supports it.
7555 # Check whether --enable-decimal-float was given.
7556 if test "${enable_decimal_float+set}" = set; then :
7557 enableval=$enable_decimal_float;
7558 case $enable_decimal_float in
7559 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7560 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7561 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7562 esac
7564 else
7566 case $target in
7567 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7568 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7569 i?86*-*-mingw* | x86_64*-*-mingw* | \
7570 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7571 enable_decimal_float=yes
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7575 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7576 enable_decimal_float=no
7578 esac
7583 # x86's use BID format instead of DPD
7584 case x$enable_decimal_float in
7585 xyes)
7586 case $target in
7587 i?86*-*-* | x86_64*-*-*)
7588 enable_decimal_float=bid
7591 enable_decimal_float=dpd
7593 esac
7594 default_decimal_float=$enable_decimal_float
7596 xno)
7597 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7598 # dependency on libdecnumber.
7599 default_decimal_float=dpd
7601 esac
7606 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7608 cat >>confdefs.h <<_ACEOF
7609 #define ENABLE_DECIMAL_FLOAT $dfp
7610 _ACEOF
7613 # Use default_decimal_float for dependency.
7614 enable_decimal_float=$default_decimal_float
7616 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7618 cat >>confdefs.h <<_ACEOF
7619 #define ENABLE_DECIMAL_BID_FORMAT $bid
7620 _ACEOF
7623 # Enable C extension for fixed-point arithmetic.
7624 # Check whether --enable-fixed-point was given.
7625 if test "${enable_fixed_point+set}" = set; then :
7626 enableval=$enable_fixed_point;
7627 else
7629 case $target in
7630 arm*)
7631 enable_fixed_point=yes
7634 mips*-*-*)
7635 enable_fixed_point=yes
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7639 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7640 enable_fixed_point=no
7642 esac
7648 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7650 cat >>confdefs.h <<_ACEOF
7651 #define ENABLE_FIXED_POINT $fixedpoint
7652 _ACEOF
7655 # Enable threads
7656 # Pass with no value to take the default
7657 # Pass with a value to specify a thread package
7658 # Check whether --enable-threads was given.
7659 if test "${enable_threads+set}" = set; then :
7660 enableval=$enable_threads;
7661 else
7662 enable_threads=''
7666 # Check whether --enable-tls was given.
7667 if test "${enable_tls+set}" = set; then :
7668 enableval=$enable_tls;
7669 case $enable_tls in
7670 yes | no) ;;
7671 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7672 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7673 esac
7675 else
7676 enable_tls=''
7680 # Check whether --enable-vtable-verify was given.
7681 if test "${enable_vtable_verify+set}" = set; then :
7682 enableval=$enable_vtable_verify;
7683 else
7684 enable_vtable_verify=no
7687 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7689 cat >>confdefs.h <<_ACEOF
7690 #define ENABLE_VTABLE_VERIFY $vtable_verify
7691 _ACEOF
7694 # Check whether --enable-objc-gc was given.
7695 if test "${enable_objc_gc+set}" = set; then :
7696 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7697 objc_boehm_gc=''
7698 else
7699 objc_boehm_gc=1
7701 else
7702 objc_boehm_gc=''
7707 # Check whether --with-dwarf2 was given.
7708 if test "${with_dwarf2+set}" = set; then :
7709 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7710 else
7711 dwarf2=no
7715 # Check whether --enable-shared was given.
7716 if test "${enable_shared+set}" = set; then :
7717 enableval=$enable_shared;
7718 case $enable_shared in
7719 yes | no) ;;
7721 enable_shared=no
7722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7723 for pkg in $enableval; do
7724 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7725 enable_shared=yes
7727 done
7728 IFS="$ac_save_ifs"
7730 esac
7732 else
7733 enable_shared=yes
7738 # Check whether --enable-gcov was given.
7739 if test "${enable_gcov+set}" = set; then :
7740 enableval=$enable_gcov;
7741 else
7742 enable_gcov=yes
7748 # Check whether --with-specs was given.
7749 if test "${with_specs+set}" = set; then :
7750 withval=$with_specs; CONFIGURE_SPECS=$withval
7751 else
7752 CONFIGURE_SPECS=
7760 # Check whether --with-pkgversion was given.
7761 if test "${with_pkgversion+set}" = set; then :
7762 withval=$with_pkgversion; case "$withval" in
7763 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7764 no) PKGVERSION= ;;
7765 *) PKGVERSION="($withval) " ;;
7766 esac
7767 else
7768 PKGVERSION="(GCC) "
7776 # Check whether --with-bugurl was given.
7777 if test "${with_bugurl+set}" = set; then :
7778 withval=$with_bugurl; case "$withval" in
7779 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7780 no) BUGURL=
7782 *) BUGURL="$withval"
7784 esac
7785 else
7786 BUGURL="https://gcc.gnu.org/bugs/"
7790 case ${BUGURL} in
7792 REPORT_BUGS_TO=
7793 REPORT_BUGS_TEXI=
7796 REPORT_BUGS_TO="<$BUGURL>"
7797 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7799 esac;
7804 # Sanity check enable_languages in case someone does not run the toplevel
7805 # configure # script.
7806 # Check whether --enable-languages was given.
7807 if test "${enable_languages+set}" = set; then :
7808 enableval=$enable_languages; case ,${enable_languages}, in
7809 ,,|,yes,)
7810 # go safe -- we cannot be much sure without the toplevel
7811 # configure's
7812 # analysis of which target libs are present and usable
7813 enable_languages=c
7815 *,all,*)
7816 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7818 *,c,*)
7821 enable_languages=c,${enable_languages}
7823 esac
7824 else
7825 enable_languages=c
7829 if test x"$enable_as_accelerator_for" != x; then
7831 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7833 enable_as_accelerator=yes
7834 case "${target}" in
7835 *-intelmicemul-*)
7836 # In this case we expect offload compiler to be built as native, so we
7837 # need to rename the driver to avoid clashes with host's drivers.
7838 program_transform_name="s&^&${target}-&" ;;
7839 esac
7840 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7841 program_transform_name=`echo $program_transform_name | sed $sedscript`
7842 accel_dir_suffix=/accel/${target_noncanonical}
7843 real_target_noncanonical=${enable_as_accelerator_for}
7849 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7850 tgt=`echo $tgt | sed 's/=.*//'`
7852 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7853 enable_hsa=1
7854 else
7855 enable_offloading=1
7858 if test x"$offload_targets" = x; then
7859 offload_targets=$tgt
7860 else
7861 offload_targets="$offload_targets,$tgt"
7863 done
7865 cat >>confdefs.h <<_ACEOF
7866 #define OFFLOAD_TARGETS "$offload_targets"
7867 _ACEOF
7869 if test x"$enable_offloading" != x; then
7871 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7873 else
7875 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7879 if test x"$enable_hsa" = x1 ; then
7881 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7886 # Check whether --with-multilib-list was given.
7887 if test "${with_multilib_list+set}" = set; then :
7888 withval=$with_multilib_list; :
7889 else
7890 with_multilib_list=default
7894 # -------------------------
7895 # Checks for other programs
7896 # -------------------------
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7900 set x ${MAKE-make}
7901 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7902 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 cat >conftest.make <<\_ACEOF
7906 SHELL = /bin/sh
7907 all:
7908 @echo '@@@%%%=$(MAKE)=@@@%%%'
7909 _ACEOF
7910 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7912 *@@@%%%=?*=@@@%%%*)
7913 eval ac_cv_prog_make_${ac_make}_set=yes;;
7915 eval ac_cv_prog_make_${ac_make}_set=no;;
7916 esac
7917 rm -f conftest.make
7919 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7921 $as_echo "yes" >&6; }
7922 SET_MAKE=
7923 else
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 SET_MAKE="MAKE=${MAKE-make}"
7930 # Find some useful tools
7931 for ac_prog in gawk mawk nawk awk
7933 # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy $ac_prog; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_AWK+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$AWK"; then
7941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_AWK="$ac_prog"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7960 AWK=$ac_cv_prog_AWK
7961 if test -n "$AWK"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7963 $as_echo "$AWK" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$AWK" && break
7971 done
7973 # We need awk to create options.c and options.h.
7974 # Bail out if it's missing.
7975 case ${AWK} in
7976 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
7977 esac
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7980 $as_echo_n "checking whether ln -s works... " >&6; }
7981 if ${gcc_cv_prog_LN_S+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 rm -f conftestdata_t
7985 echo >conftestdata_f
7986 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7987 then
7988 gcc_cv_prog_LN_S="ln -s"
7989 else
7990 if ln conftestdata_f conftestdata_t 2>/dev/null
7991 then
7992 gcc_cv_prog_LN_S=ln
7993 else
7994 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7995 then
7996 gcc_cv_prog_LN_S="cp -p"
7997 else
7998 gcc_cv_prog_LN_S=cp
8002 rm -f conftestdata_f conftestdata_t
8005 LN_S="$gcc_cv_prog_LN_S"
8006 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8009 else
8010 if test "$gcc_cv_prog_LN_S" = "ln"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8012 $as_echo "no, using ln" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8015 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8020 $as_echo_n "checking whether ln works... " >&6; }
8021 if ${acx_cv_prog_LN+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 rm -f conftestdata_t
8025 echo >conftestdata_f
8026 if ln conftestdata_f conftestdata_t 2>/dev/null
8027 then
8028 acx_cv_prog_LN=ln
8029 else
8030 acx_cv_prog_LN=no
8032 rm -f conftestdata_f conftestdata_t
8035 if test $acx_cv_prog_LN = no; then
8036 LN="$LN_S"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8038 $as_echo "no, using $LN" >&6; }
8039 else
8040 LN="$acx_cv_prog_LN"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8045 if test -n "$ac_tool_prefix"; then
8046 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_prog_RANLIB+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$RANLIB"; then
8054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8069 IFS=$as_save_IFS
8073 RANLIB=$ac_cv_prog_RANLIB
8074 if test -n "$RANLIB"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8076 $as_echo "$RANLIB" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8084 if test -z "$ac_cv_prog_RANLIB"; then
8085 ac_ct_RANLIB=$RANLIB
8086 # Extract the first word of "ranlib", so it can be a program name with args.
8087 set dummy ranlib; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$ac_ct_RANLIB"; then
8094 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8103 ac_cv_prog_ac_ct_RANLIB="ranlib"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8107 done
8108 done
8109 IFS=$as_save_IFS
8113 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8114 if test -n "$ac_ct_RANLIB"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8116 $as_echo "$ac_ct_RANLIB" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8122 if test "x$ac_ct_RANLIB" = x; then
8123 RANLIB=":"
8124 else
8125 case $cross_compiling:$ac_tool_warned in
8126 yes:)
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8129 ac_tool_warned=yes ;;
8130 esac
8131 RANLIB=$ac_ct_RANLIB
8133 else
8134 RANLIB="$ac_cv_prog_RANLIB"
8137 ranlib_flags=""
8140 # Find a good install program. We prefer a C program (faster),
8141 # so one script is as good as another. But avoid the broken or
8142 # incompatible versions:
8143 # SysV /etc/install, /usr/sbin/install
8144 # SunOS /usr/etc/install
8145 # IRIX /sbin/install
8146 # AIX /bin/install
8147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8149 # ./install, which can be erroneously created by make from ./install.sh.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8151 $as_echo_n "checking for a BSD compatible install... " >&6; }
8152 if test -z "$INSTALL"; then
8153 if ${ac_cv_path_install+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8157 for ac_dir in $PATH; do
8158 # Account for people who put trailing slashes in PATH elements.
8159 case "$ac_dir/" in
8160 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8162 # OSF1 and SCO ODT 3.0 have their own names for install.
8163 for ac_prog in ginstall scoinst install; do
8164 if test -f $ac_dir/$ac_prog; then
8165 if test $ac_prog = install &&
8166 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8167 # AIX install. It has an incompatible calling convention.
8168 # OSF/1 installbsd also uses dspmsg, but is usable.
8170 else
8171 ac_cv_path_install="$ac_dir/$ac_prog -c"
8172 break 2
8175 done
8177 esac
8178 done
8179 IFS="$ac_save_IFS"
8182 if test "${ac_cv_path_install+set}" = set; then
8183 INSTALL="$ac_cv_path_install"
8184 else
8185 # As a last resort, use the slow shell script. We don't cache a
8186 # path for INSTALL within a source directory, because that will
8187 # break other packages using the cache if that directory is
8188 # removed, or if the path is relative.
8189 INSTALL="$ac_install_sh"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8193 $as_echo "$INSTALL" >&6; }
8195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8196 # It thinks the first close brace ends the variable substitution.
8197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8202 # See if cmp has --ignore-initial.
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8204 $as_echo_n "checking for cmp's capabilities... " >&6; }
8205 if ${gcc_cv_prog_cmp_skip+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 echo abfoo >t1
8209 echo cdfoo >t2
8210 gcc_cv_prog_cmp_skip=slowcompare
8211 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8212 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8214 else
8215 gcc_cv_prog_cmp_skip=gnucompare
8218 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8219 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8220 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8222 else
8223 gcc_cv_prog_cmp_skip=fastcompare
8227 rm t1 t2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8231 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8232 make_compare_target=$gcc_cv_prog_cmp_skip
8236 # See if we have the mktemp command.
8237 # Extract the first word of "mktemp", so it can be a program name with args.
8238 set dummy mktemp; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$have_mktemp_command"; then
8245 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_have_mktemp_command="yes"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8262 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8265 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8266 if test -n "$have_mktemp_command"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8268 $as_echo "$have_mktemp_command" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8276 # See if makeinfo has been installed and is modern enough
8277 # that we can use it.
8279 # Extract the first word of "makeinfo", so it can be a program name with args.
8280 set dummy makeinfo; ac_word=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if ${ac_cv_prog_MAKEINFO+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 if test -n "$MAKEINFO"; then
8287 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_MAKEINFO="makeinfo"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8300 done
8301 done
8302 IFS=$as_save_IFS
8306 MAKEINFO=$ac_cv_prog_MAKEINFO
8307 if test -n "$MAKEINFO"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8309 $as_echo "$MAKEINFO" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8316 if test -n "$MAKEINFO"; then
8317 # Found it, now check the version.
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8319 $as_echo_n "checking for modern makeinfo... " >&6; }
8320 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8324 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8326 case $ac_prog_version in
8327 '') gcc_cv_prog_makeinfo_modern=no;;
8328 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8329 *) gcc_cv_prog_makeinfo_modern=no;;
8330 esac
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8334 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8335 else
8336 gcc_cv_prog_makeinfo_modern=no
8338 if test $gcc_cv_prog_makeinfo_modern = no; then
8339 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8342 if test $gcc_cv_prog_makeinfo_modern = no; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8344 *** Makeinfo is missing or too old.
8345 *** Info documentation will not be built." >&5
8346 $as_echo "$as_me: WARNING:
8347 *** Makeinfo is missing or too old.
8348 *** Info documentation will not be built." >&2;}
8349 BUILD_INFO=
8350 else
8351 BUILD_INFO=info
8355 # Is pod2man recent enough to regenerate manpages?
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8357 $as_echo_n "checking for recent Pod::Man... " >&6; }
8358 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8360 $as_echo "yes" >&6; }
8361 GENERATED_MANPAGES=generated-manpages
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 GENERATED_MANPAGES=
8369 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8371 # How about lex?
8372 for ac_prog in flex
8374 # Extract the first word of "$ac_prog", so it can be a program name with args.
8375 set dummy $ac_prog; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_FLEX+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 if test -n "$FLEX"; then
8382 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_FLEX="$ac_prog"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8395 done
8396 done
8397 IFS=$as_save_IFS
8401 FLEX=$ac_cv_prog_FLEX
8402 if test -n "$FLEX"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8404 $as_echo "$FLEX" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8411 test -n "$FLEX" && break
8412 done
8413 test -n "$FLEX" || FLEX="$MISSING flex"
8416 # Bison?
8417 for ac_prog in bison
8419 # Extract the first word of "$ac_prog", so it can be a program name with args.
8420 set dummy $ac_prog; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_BISON+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 if test -n "$BISON"; then
8427 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_BISON="$ac_prog"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8440 done
8441 done
8442 IFS=$as_save_IFS
8446 BISON=$ac_cv_prog_BISON
8447 if test -n "$BISON"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8449 $as_echo "$BISON" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8456 test -n "$BISON" && break
8457 done
8458 test -n "$BISON" || BISON="$MISSING bison"
8461 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8462 # check for build == host before using them.
8464 # NM
8465 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8466 && test -d ../binutils ; then
8467 NM='${objdir}/../binutils/nm-new'
8468 else
8469 # Extract the first word of "nm", so it can be a program name with args.
8470 set dummy nm; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_NM+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$NM"; then
8477 ac_cv_prog_NM="$NM" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_NM="nm"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8494 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8497 NM=$ac_cv_prog_NM
8498 if test -n "$NM"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8500 $as_echo "$NM" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8509 # AR
8510 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8511 && test -d ../binutils ; then
8512 AR='${objdir}/../binutils/ar'
8513 else
8514 # Extract the first word of "ar", so it can be a program name with args.
8515 set dummy ar; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_prog_AR+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 if test -n "$AR"; then
8522 ac_cv_prog_AR="$AR" # Let the user override the test.
8523 else
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531 ac_cv_prog_AR="ar"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8539 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8542 AR=$ac_cv_prog_AR
8543 if test -n "$AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545 $as_echo "$AR" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8554 # The jit documentation looks better if built with sphinx, but can be
8555 # built with texinfo if sphinx is not available.
8556 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8557 # Extract the first word of "sphinx-build", so it can be a program name with args.
8558 set dummy sphinx-build; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_doc_build_sys+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$doc_build_sys"; then
8565 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574 ac_cv_prog_doc_build_sys="sphinx"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8582 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8585 doc_build_sys=$ac_cv_prog_doc_build_sys
8586 if test -n "$doc_build_sys"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8588 $as_echo "$doc_build_sys" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 # --------------------
8597 # Checks for C headers
8598 # --------------------
8600 # Need to reject headers which give warnings, so that the -Werror bootstrap
8601 # works later. *sigh* This needs to come before all header checks.
8603 ac_c_preproc_warn_flag=yes
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8606 $as_echo_n "checking for ANSI C header files... " >&6; }
8607 if ${ac_cv_header_stdc+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #include <stdlib.h>
8613 #include <stdarg.h>
8614 #include <string.h>
8615 #include <float.h>
8618 main ()
8622 return 0;
8624 _ACEOF
8625 if ac_fn_cxx_try_compile "$LINENO"; then :
8626 ac_cv_header_stdc=yes
8627 else
8628 ac_cv_header_stdc=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 if test $ac_cv_header_stdc = yes; then
8633 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <string.h>
8638 _ACEOF
8639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8640 $EGREP "memchr" >/dev/null 2>&1; then :
8642 else
8643 ac_cv_header_stdc=no
8645 rm -f conftest*
8649 if test $ac_cv_header_stdc = yes; then
8650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <stdlib.h>
8655 _ACEOF
8656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8657 $EGREP "free" >/dev/null 2>&1; then :
8659 else
8660 ac_cv_header_stdc=no
8662 rm -f conftest*
8666 if test $ac_cv_header_stdc = yes; then
8667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8668 if test "$cross_compiling" = yes; then :
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <ctype.h>
8674 #include <stdlib.h>
8675 #if ((' ' & 0x0FF) == 0x020)
8676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8678 #else
8679 # define ISLOWER(c) \
8680 (('a' <= (c) && (c) <= 'i') \
8681 || ('j' <= (c) && (c) <= 'r') \
8682 || ('s' <= (c) && (c) <= 'z'))
8683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8684 #endif
8686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8688 main ()
8690 int i;
8691 for (i = 0; i < 256; i++)
8692 if (XOR (islower (i), ISLOWER (i))
8693 || toupper (i) != TOUPPER (i))
8694 return 2;
8695 return 0;
8697 _ACEOF
8698 if ac_fn_cxx_try_run "$LINENO"; then :
8700 else
8701 ac_cv_header_stdc=no
8703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8704 conftest.$ac_objext conftest.beam conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8710 $as_echo "$ac_cv_header_stdc" >&6; }
8711 if test $ac_cv_header_stdc = yes; then
8713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8718 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8719 if ${ac_cv_header_time+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 #include <sys/time.h>
8726 #include <time.h>
8729 main ()
8731 if ((struct tm *) 0)
8732 return 0;
8734 return 0;
8736 _ACEOF
8737 if ac_fn_cxx_try_compile "$LINENO"; then :
8738 ac_cv_header_time=yes
8739 else
8740 ac_cv_header_time=no
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8745 $as_echo "$ac_cv_header_time" >&6; }
8746 if test $ac_cv_header_time = yes; then
8748 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8753 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8754 if ${gcc_cv_header_string+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8759 #include <string.h>
8760 #include <strings.h>
8762 main ()
8766 return 0;
8768 _ACEOF
8769 if ac_fn_cxx_try_compile "$LINENO"; then :
8770 gcc_cv_header_string=yes
8771 else
8772 gcc_cv_header_string=no
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8777 $as_echo "$gcc_cv_header_string" >&6; }
8778 if test $gcc_cv_header_string = yes; then
8780 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8785 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8786 if ${ac_cv_header_sys_wait_h+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/types.h>
8792 #include <sys/wait.h>
8793 #ifndef WEXITSTATUS
8794 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8795 #endif
8796 #ifndef WIFEXITED
8797 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8798 #endif
8801 main ()
8803 int s;
8804 wait (&s);
8805 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8807 return 0;
8809 _ACEOF
8810 if ac_fn_cxx_try_compile "$LINENO"; then :
8811 ac_cv_header_sys_wait_h=yes
8812 else
8813 ac_cv_header_sys_wait_h=no
8815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8818 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8819 if test $ac_cv_header_sys_wait_h = yes; then
8821 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8826 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8827 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <sys/types.h>
8833 #include <termios.h>
8834 #ifdef TIOCGWINSZ
8836 #endif
8838 _ACEOF
8839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8840 $EGREP "yes" >/dev/null 2>&1; then :
8841 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8842 else
8843 ac_cv_sys_tiocgwinsz_in_termios_h=no
8845 rm -f conftest*
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8849 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8851 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8853 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8854 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 #include <sys/ioctl.h>
8861 #ifdef TIOCGWINSZ
8863 #endif
8865 _ACEOF
8866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8867 $EGREP "yes" >/dev/null 2>&1; then :
8868 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8869 else
8870 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8872 rm -f conftest*
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8876 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8878 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8880 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8885 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8886 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8887 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8888 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8889 do :
8890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8893 cat >>confdefs.h <<_ACEOF
8894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 _ACEOF
8898 done
8901 # Check for thread headers.
8902 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8903 if test "x$ac_cv_header_thread_h" = xyes; then :
8904 have_thread_h=yes
8905 else
8906 have_thread_h=
8909 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8910 if test "x$ac_cv_header_pthread_h" = xyes; then :
8911 have_pthread_h=yes
8912 else
8913 have_pthread_h=
8917 # These tests can't be done till we know if we have limits.h.
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8919 $as_echo_n "checking for CHAR_BIT... " >&6; }
8920 if ${gcc_cv_decl_char_bit+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #ifdef HAVE_LIMITS_H
8926 #include <limits.h>
8927 #endif
8928 #ifdef CHAR_BIT
8929 found
8930 #endif
8931 _ACEOF
8932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8933 $EGREP "found" >/dev/null 2>&1; then :
8934 gcc_cv_decl_char_bit=yes
8935 else
8936 gcc_cv_decl_char_bit=no
8938 rm -f conftest*
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8943 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8944 if test $gcc_cv_decl_char_bit = no; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8946 $as_echo_n "checking number of bits in a byte... " >&6; }
8947 if ${gcc_cv_c_nbby+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8951 gcc_cv_c_nbby=
8952 while test $i -lt 65; do
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8957 main ()
8959 switch(0) {
8960 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8961 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8964 return 0;
8966 _ACEOF
8967 if ac_fn_cxx_try_compile "$LINENO"; then :
8968 gcc_cv_c_nbby=$i; break
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 i=`expr $i + 1`
8972 done
8973 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8977 $as_echo "$gcc_cv_c_nbby" >&6; }
8978 if test $gcc_cv_c_nbby = failed; then
8979 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
8980 else
8982 cat >>confdefs.h <<_ACEOF
8983 #define CHAR_BIT $gcc_cv_c_nbby
8984 _ACEOF
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8989 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8990 if ${ac_cv_c_bigendian+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 ac_cv_c_bigendian=unknown
8994 # See if we're dealing with a universal compiler.
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 #ifndef __APPLE_CC__
8998 not a universal capable compiler
8999 #endif
9000 typedef int dummy;
9002 _ACEOF
9003 if ac_fn_cxx_try_compile "$LINENO"; then :
9005 # Check for potential -arch flags. It is not universal unless
9006 # there are at least two -arch flags with different values.
9007 ac_arch=
9008 ac_prev=
9009 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9010 if test -n "$ac_prev"; then
9011 case $ac_word in
9012 i?86 | x86_64 | ppc | ppc64)
9013 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9014 ac_arch=$ac_word
9015 else
9016 ac_cv_c_bigendian=universal
9017 break
9020 esac
9021 ac_prev=
9022 elif test "x$ac_word" = "x-arch"; then
9023 ac_prev=arch
9025 done
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 if test $ac_cv_c_bigendian = unknown; then
9029 # See if sys/param.h defines the BYTE_ORDER macro.
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include <sys/types.h>
9033 #include <sys/param.h>
9036 main ()
9038 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9039 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9040 && LITTLE_ENDIAN)
9041 bogus endian macros
9042 #endif
9045 return 0;
9047 _ACEOF
9048 if ac_fn_cxx_try_compile "$LINENO"; then :
9049 # It does; now see whether it defined to BIG_ENDIAN or not.
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #include <sys/param.h>
9056 main ()
9058 #if BYTE_ORDER != BIG_ENDIAN
9059 not big endian
9060 #endif
9063 return 0;
9065 _ACEOF
9066 if ac_fn_cxx_try_compile "$LINENO"; then :
9067 ac_cv_c_bigendian=yes
9068 else
9069 ac_cv_c_bigendian=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 if test $ac_cv_c_bigendian = unknown; then
9076 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <limits.h>
9082 main ()
9084 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9085 bogus endian macros
9086 #endif
9089 return 0;
9091 _ACEOF
9092 if ac_fn_cxx_try_compile "$LINENO"; then :
9093 # It does; now see whether it defined to _BIG_ENDIAN or not.
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 #include <limits.h>
9099 main ()
9101 #ifndef _BIG_ENDIAN
9102 not big endian
9103 #endif
9106 return 0;
9108 _ACEOF
9109 if ac_fn_cxx_try_compile "$LINENO"; then :
9110 ac_cv_c_bigendian=yes
9111 else
9112 ac_cv_c_bigendian=no
9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 if test $ac_cv_c_bigendian = unknown; then
9119 # Compile a test program.
9120 if test "$cross_compiling" = yes; then :
9121 # Try to guess by grepping values from an object file.
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 short int ascii_mm[] =
9125 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9126 short int ascii_ii[] =
9127 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9128 int use_ascii (int i) {
9129 return ascii_mm[i] + ascii_ii[i];
9131 short int ebcdic_ii[] =
9132 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9133 short int ebcdic_mm[] =
9134 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9135 int use_ebcdic (int i) {
9136 return ebcdic_mm[i] + ebcdic_ii[i];
9138 extern int foo;
9141 main ()
9143 return use_ascii (foo) == use_ebcdic (foo);
9145 return 0;
9147 _ACEOF
9148 if ac_fn_cxx_try_compile "$LINENO"; then :
9149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9150 ac_cv_c_bigendian=yes
9152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9153 if test "$ac_cv_c_bigendian" = unknown; then
9154 ac_cv_c_bigendian=no
9155 else
9156 # finding both strings is unlikely to happen, but who knows?
9157 ac_cv_c_bigendian=unknown
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 else
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 $ac_includes_default
9167 main ()
9170 /* Are we little or big endian? From Harbison&Steele. */
9171 union
9173 long int l;
9174 char c[sizeof (long int)];
9175 } u;
9176 u.l = 1;
9177 return u.c[sizeof (long int) - 1] == 1;
9180 return 0;
9182 _ACEOF
9183 if ac_fn_cxx_try_run "$LINENO"; then :
9184 ac_cv_c_bigendian=no
9185 else
9186 ac_cv_c_bigendian=yes
9188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9189 conftest.$ac_objext conftest.beam conftest.$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9195 $as_echo "$ac_cv_c_bigendian" >&6; }
9196 case $ac_cv_c_bigendian in #(
9197 yes)
9198 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9199 ;; #(
9201 ;; #(
9202 universal)
9204 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9206 ;; #(
9208 as_fn_error $? "unknown endianness
9209 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9210 esac
9213 # ----------------------
9214 # Checks for C++ headers
9215 # ----------------------
9217 ac_ext=cpp
9218 ac_cpp='$CXXCPP $CPPFLAGS'
9219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9223 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9224 if test -z "$CXXCPP"; then
9225 if ${ac_cv_prog_CXXCPP+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 # Double quotes because CXXCPP needs to be expanded
9229 for CXXCPP in "$CXX -E" "/lib/cpp"
9231 ac_preproc_ok=false
9232 for ac_cxx_preproc_warn_flag in '' yes
9234 # Use a header file that comes with gcc, so configuring glibc
9235 # with a fresh cross-compiler works.
9236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9237 # <limits.h> exists even on freestanding compilers.
9238 # On the NeXT, cc -E runs the code through the compiler's parser,
9239 # not just through cpp. "Syntax error" is here to catch this case.
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 #ifdef __STDC__
9243 # include <limits.h>
9244 #else
9245 # include <assert.h>
9246 #endif
9247 Syntax error
9248 _ACEOF
9249 if ac_fn_cxx_try_cpp "$LINENO"; then :
9251 else
9252 # Broken: fails on valid input.
9253 continue
9255 rm -f conftest.err conftest.i conftest.$ac_ext
9257 # OK, works on sane cases. Now check whether nonexistent headers
9258 # can be detected and how.
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <ac_nonexistent.h>
9262 _ACEOF
9263 if ac_fn_cxx_try_cpp "$LINENO"; then :
9264 # Broken: success on invalid input.
9265 continue
9266 else
9267 # Passes both tests.
9268 ac_preproc_ok=:
9269 break
9271 rm -f conftest.err conftest.i conftest.$ac_ext
9273 done
9274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9275 rm -f conftest.i conftest.err conftest.$ac_ext
9276 if $ac_preproc_ok; then :
9277 break
9280 done
9281 ac_cv_prog_CXXCPP=$CXXCPP
9284 CXXCPP=$ac_cv_prog_CXXCPP
9285 else
9286 ac_cv_prog_CXXCPP=$CXXCPP
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9289 $as_echo "$CXXCPP" >&6; }
9290 ac_preproc_ok=false
9291 for ac_cxx_preproc_warn_flag in '' yes
9293 # Use a header file that comes with gcc, so configuring glibc
9294 # with a fresh cross-compiler works.
9295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9296 # <limits.h> exists even on freestanding compilers.
9297 # On the NeXT, cc -E runs the code through the compiler's parser,
9298 # not just through cpp. "Syntax error" is here to catch this case.
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #ifdef __STDC__
9302 # include <limits.h>
9303 #else
9304 # include <assert.h>
9305 #endif
9306 Syntax error
9307 _ACEOF
9308 if ac_fn_cxx_try_cpp "$LINENO"; then :
9310 else
9311 # Broken: fails on valid input.
9312 continue
9314 rm -f conftest.err conftest.i conftest.$ac_ext
9316 # OK, works on sane cases. Now check whether nonexistent headers
9317 # can be detected and how.
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 #include <ac_nonexistent.h>
9321 _ACEOF
9322 if ac_fn_cxx_try_cpp "$LINENO"; then :
9323 # Broken: success on invalid input.
9324 continue
9325 else
9326 # Passes both tests.
9327 ac_preproc_ok=:
9328 break
9330 rm -f conftest.err conftest.i conftest.$ac_ext
9332 done
9333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9334 rm -f conftest.i conftest.err conftest.$ac_ext
9335 if $ac_preproc_ok; then :
9337 else
9338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9341 See \`config.log' for more details" >&5
9342 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9343 See \`config.log' for more details" >&2;}; }
9346 ac_ext=cpp
9347 ac_cpp='$CXXCPP $CPPFLAGS'
9348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9353 for ac_header in unordered_map
9354 do :
9355 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9356 if test "x$ac_cv_header_unordered_map" = xyes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_UNORDERED_MAP 1
9359 _ACEOF
9362 done
9364 for ac_header in tr1/unordered_map
9365 do :
9366 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9367 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_TR1_UNORDERED_MAP 1
9370 _ACEOF
9373 done
9375 for ac_header in ext/hash_map
9376 do :
9377 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9378 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_EXT_HASH_MAP 1
9381 _ACEOF
9384 done
9387 # --------
9388 # Dependency checking.
9389 # --------
9391 rm -rf .tst 2>/dev/null
9392 mkdir .tst 2>/dev/null
9393 if test -d .tst; then
9394 am__leading_dot=.
9395 else
9396 am__leading_dot=_
9398 rmdir .tst 2>/dev/null
9400 DEPDIR="${am__leading_dot}deps"
9402 ac_config_commands="$ac_config_commands depdir"
9405 ac_config_commands="$ac_config_commands gccdepdir"
9408 depcc="$CXX" am_compiler_list=
9410 am_depcomp=$ac_aux_dir/depcomp
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9412 $as_echo_n "checking dependency style of $depcc... " >&6; }
9413 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 if test -f "$am_depcomp"; then
9417 # We make a subdir and do the tests there. Otherwise we can end up
9418 # making bogus files that we don't know about and never remove. For
9419 # instance it was reported that on HP-UX the gcc test will end up
9420 # making a dummy file named `D' -- because `-MD' means `put the output
9421 # in D'.
9422 mkdir conftest.dir
9423 # Copy depcomp to subdir because otherwise we won't find it if we're
9424 # using a relative directory.
9425 cp "$am_depcomp" conftest.dir
9426 cd conftest.dir
9427 # We will build objects and dependencies in a subdirectory because
9428 # it helps to detect inapplicable dependency modes. For instance
9429 # both Tru64's cc and ICC support -MD to output dependencies as a
9430 # side effect of compilation, but ICC will put the dependencies in
9431 # the current directory while Tru64 will put them in the object
9432 # directory.
9433 mkdir sub
9435 am_cv_CXX_dependencies_compiler_type=none
9436 if test "$am_compiler_list" = ""; then
9437 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9439 for depmode in $am_compiler_list; do
9440 if test $depmode = none; then break; fi
9442 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9443 # Setup a source with many dependencies, because some compilers
9444 # like to wrap large dependency lists on column 80 (with \), and
9445 # we should not choose a depcomp mode which is confused by this.
9447 # We need to recreate these files for each test, as the compiler may
9448 # overwrite some of them when testing with obscure command lines.
9449 # This happens at least with the AIX C compiler.
9450 : > sub/conftest.c
9451 for i in 1 2 3 4 5 6; do
9452 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9453 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9454 # Solaris 8's {/usr,}/bin/sh.
9455 touch sub/conftst$i.h
9456 done
9457 echo "include sub/conftest.Po" > confmf
9459 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9460 # mode. It turns out that the SunPro C++ compiler does not properly
9461 # handle `-M -o', and we need to detect this.
9462 depcmd="depmode=$depmode \
9463 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9465 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9466 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9467 if env $depcmd > conftest.err 2>&1 &&
9468 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9469 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9470 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9471 # icc doesn't choke on unknown options, it will just issue warnings
9472 # or remarks (even with -Werror). So we grep stderr for any message
9473 # that says an option was ignored or not supported.
9474 # When given -MP, icc 7.0 and 7.1 complain thusly:
9475 # icc: Command line warning: ignoring option '-M'; no argument required
9476 # The diagnosis changed in icc 8.0:
9477 # icc: Command line remark: option '-MP' not supported
9478 if (grep 'ignoring option' conftest.err ||
9479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9480 am_cv_CXX_dependencies_compiler_type=$depmode
9481 $as_echo "$as_me:$LINENO: success" >&5
9482 break
9485 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9486 sed -e 's/^/| /' < conftest.err >&5
9487 done
9489 cd ..
9490 rm -rf conftest.dir
9491 else
9492 am_cv_CXX_dependencies_compiler_type=none
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9497 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9498 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9499 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9500 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9505 # --------
9506 # UNSORTED
9507 # --------
9510 # These libraries may be used by collect2.
9511 # We may need a special search path to get them linked.
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9513 $as_echo_n "checking for collect2 libraries... " >&6; }
9514 if ${gcc_cv_collect2_libs+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 save_LIBS="$LIBS"
9518 for libs in '' -lld -lmld \
9519 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9520 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9522 LIBS="$libs"
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char ldopen ();
9534 main ()
9536 return ldopen ();
9538 return 0;
9540 _ACEOF
9541 if ac_fn_cxx_try_link "$LINENO"; then :
9542 gcc_cv_collect2_libs="$libs"; break
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 done
9547 LIBS="$save_LIBS"
9548 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9551 $as_echo "$gcc_cv_collect2_libs" >&6; }
9552 case $gcc_cv_collect2_libs in
9553 "none required") ;;
9554 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9555 esac
9558 # When building Ada code on Alpha, we need exc_resume which is usually in
9559 # -lexc. So test for it.
9560 save_LIBS="$LIBS"
9561 LIBS=
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9563 $as_echo_n "checking for library containing exc_resume... " >&6; }
9564 if ${ac_cv_search_exc_resume+:} false; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 ac_func_search_save_LIBS=$LIBS
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char exc_resume ();
9579 main ()
9581 return exc_resume ();
9583 return 0;
9585 _ACEOF
9586 for ac_lib in '' exc; do
9587 if test -z "$ac_lib"; then
9588 ac_res="none required"
9589 else
9590 ac_res=-l$ac_lib
9591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9593 if ac_fn_cxx_try_link "$LINENO"; then :
9594 ac_cv_search_exc_resume=$ac_res
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext
9598 if ${ac_cv_search_exc_resume+:} false; then :
9599 break
9601 done
9602 if ${ac_cv_search_exc_resume+:} false; then :
9604 else
9605 ac_cv_search_exc_resume=no
9607 rm conftest.$ac_ext
9608 LIBS=$ac_func_search_save_LIBS
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9611 $as_echo "$ac_cv_search_exc_resume" >&6; }
9612 ac_res=$ac_cv_search_exc_resume
9613 if test "$ac_res" != no; then :
9614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9618 GNAT_LIBEXC="$LIBS"
9619 LIBS="$save_LIBS"
9622 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9623 save_LIBS="$LIBS"
9624 LIBS=
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9626 $as_echo_n "checking for library containing kstat_open... " >&6; }
9627 if ${ac_cv_search_kstat_open+:} false; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 ac_func_search_save_LIBS=$LIBS
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char kstat_open ();
9642 main ()
9644 return kstat_open ();
9646 return 0;
9648 _ACEOF
9649 for ac_lib in '' kstat; do
9650 if test -z "$ac_lib"; then
9651 ac_res="none required"
9652 else
9653 ac_res=-l$ac_lib
9654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9656 if ac_fn_cxx_try_link "$LINENO"; then :
9657 ac_cv_search_kstat_open=$ac_res
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext
9661 if ${ac_cv_search_kstat_open+:} false; then :
9662 break
9664 done
9665 if ${ac_cv_search_kstat_open+:} false; then :
9667 else
9668 ac_cv_search_kstat_open=no
9670 rm conftest.$ac_ext
9671 LIBS=$ac_func_search_save_LIBS
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9674 $as_echo "$ac_cv_search_kstat_open" >&6; }
9675 ac_res=$ac_cv_search_kstat_open
9676 if test "$ac_res" != no; then :
9677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9681 EXTRA_GCC_LIBS="$LIBS"
9682 LIBS="$save_LIBS"
9685 # Some systems put ldexp and frexp in libm instead of libc; assume
9686 # they're both in the same place. jcf-dump needs them.
9687 save_LIBS="$LIBS"
9688 LIBS=
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9690 $as_echo_n "checking for library containing ldexp... " >&6; }
9691 if ${ac_cv_search_ldexp+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 ac_func_search_save_LIBS=$LIBS
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char ldexp ();
9706 main ()
9708 return ldexp ();
9710 return 0;
9712 _ACEOF
9713 for ac_lib in '' m; do
9714 if test -z "$ac_lib"; then
9715 ac_res="none required"
9716 else
9717 ac_res=-l$ac_lib
9718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9720 if ac_fn_cxx_try_link "$LINENO"; then :
9721 ac_cv_search_ldexp=$ac_res
9723 rm -f core conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext
9725 if ${ac_cv_search_ldexp+:} false; then :
9726 break
9728 done
9729 if ${ac_cv_search_ldexp+:} false; then :
9731 else
9732 ac_cv_search_ldexp=no
9734 rm conftest.$ac_ext
9735 LIBS=$ac_func_search_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9738 $as_echo "$ac_cv_search_ldexp" >&6; }
9739 ac_res=$ac_cv_search_ldexp
9740 if test "$ac_res" != no; then :
9741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9745 LDEXP_LIB="$LIBS"
9746 LIBS="$save_LIBS"
9749 # Some systems need dlopen
9750 save_LIBS="$LIBS"
9751 LIBS=
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9753 $as_echo_n "checking for library containing dlopen... " >&6; }
9754 if ${ac_cv_search_dlopen+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 ac_func_search_save_LIBS=$LIBS
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 char dlopen ();
9769 main ()
9771 return dlopen ();
9773 return 0;
9775 _ACEOF
9776 for ac_lib in '' dl; do
9777 if test -z "$ac_lib"; then
9778 ac_res="none required"
9779 else
9780 ac_res=-l$ac_lib
9781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9783 if ac_fn_cxx_try_link "$LINENO"; then :
9784 ac_cv_search_dlopen=$ac_res
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext
9788 if ${ac_cv_search_dlopen+:} false; then :
9789 break
9791 done
9792 if ${ac_cv_search_dlopen+:} false; then :
9794 else
9795 ac_cv_search_dlopen=no
9797 rm conftest.$ac_ext
9798 LIBS=$ac_func_search_save_LIBS
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9801 $as_echo "$ac_cv_search_dlopen" >&6; }
9802 ac_res=$ac_cv_search_dlopen
9803 if test "$ac_res" != no; then :
9804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9808 DL_LIB="$LIBS"
9809 LIBS="$save_LIBS"
9812 # Use <inttypes.h> only if it exists,
9813 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9814 # PRId64
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9816 $as_echo_n "checking for inttypes.h... " >&6; }
9817 if ${gcc_cv_header_inttypes_h+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 #define __STDC_FORMAT_MACROS
9823 #include <sys/types.h>
9824 #include <inttypes.h>
9826 main ()
9828 intmax_t i = -1;
9829 #ifndef PRId64
9830 choke me
9831 #endif
9833 return 0;
9835 _ACEOF
9836 if ac_fn_cxx_try_compile "$LINENO"; then :
9837 gcc_cv_header_inttypes_h=yes
9838 else
9839 gcc_cv_header_inttypes_h=no
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9845 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9846 if test $gcc_cv_header_inttypes_h = yes; then
9848 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9852 # Look for the ZSTD package.
9853 ZSTD_INCLUDE=
9854 ZSTD_LIB=
9857 ZSTD_CPPFLAGS=
9858 ZSTD_LDFLAGS=
9860 # Check whether --with-zstd was given.
9861 if test "${with_zstd+set}" = set; then :
9862 withval=$with_zstd;
9866 # Check whether --with-zstd-include was given.
9867 if test "${with_zstd_include+set}" = set; then :
9868 withval=$with_zstd_include;
9872 # Check whether --with-zstd-lib was given.
9873 if test "${with_zstd_lib+set}" = set; then :
9874 withval=$with_zstd_lib;
9877 case "x$with_zstd" in
9878 x) ;;
9879 xno)
9880 ZSTD_INCLUDE=no
9881 ZSTD_LIB=no
9883 *) ZSTD_INCLUDE=$with_zstd/include
9884 ZSTD_LIB=$with_zstd/lib
9886 esac
9887 if test "x$with_zstd_include" != x; then
9888 ZSTD_INCLUDE=$with_zstd_include
9890 if test "x$with_zstd_lib" != x; then
9891 ZSTD_LIB=$with_zstd_lib
9893 if test "x$ZSTD_INCLUDE" != x \
9894 && test "x$ZSTD_INCLUDE" != xno; then
9895 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9897 if test "x$ZSTD_LIB" != x \
9898 && test "x$ZSTD_LIB" != xno; then
9899 ZSTD_LDFLAGS=-L$ZSTD_LIB
9902 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9903 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9906 $as_echo_n "checking for zstd.h... " >&6; }
9907 if ${gcc_cv_header_zstd_h+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 #include <zstd.h>
9914 main ()
9918 return 0;
9920 _ACEOF
9921 if ac_fn_cxx_try_compile "$LINENO"; then :
9922 gcc_cv_header_zstd_h=yes
9923 else
9924 gcc_cv_header_zstd_h=no
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9930 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9931 if test $gcc_cv_header_zstd_h = yes; then
9933 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9937 # LTO can use zstd compression algorithm
9938 save_LIBS="$LIBS"
9939 LIBS=
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9941 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9942 if ${ac_cv_search_ZSTD_compress+:} false; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 ac_func_search_save_LIBS=$LIBS
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char ZSTD_compress ();
9957 main ()
9959 return ZSTD_compress ();
9961 return 0;
9963 _ACEOF
9964 for ac_lib in '' zstd; do
9965 if test -z "$ac_lib"; then
9966 ac_res="none required"
9967 else
9968 ac_res=-l$ac_lib
9969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9971 if ac_fn_cxx_try_link "$LINENO"; then :
9972 ac_cv_search_ZSTD_compress=$ac_res
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext
9976 if ${ac_cv_search_ZSTD_compress+:} false; then :
9977 break
9979 done
9980 if ${ac_cv_search_ZSTD_compress+:} false; then :
9982 else
9983 ac_cv_search_ZSTD_compress=no
9985 rm conftest.$ac_ext
9986 LIBS=$ac_func_search_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
9989 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
9990 ac_res=$ac_cv_search_ZSTD_compress
9991 if test "$ac_res" != no; then :
9992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9996 ZSTD_LIB="$LIBS"
9997 LIBS="$save_LIBS"
10002 for ac_func in times clock kill getrlimit setrlimit atoq \
10003 popen sysconf strsignal getrusage nl_langinfo \
10004 gettimeofday mbstowcs wcswidth mmap setlocale \
10005 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
10006 do :
10007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10008 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10012 _ACEOF
10015 done
10018 if test x$ac_cv_func_mbstowcs = xyes; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10020 $as_echo_n "checking whether mbstowcs works... " >&6; }
10021 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test "$cross_compiling" = yes; then :
10025 gcc_cv_func_mbstowcs_works=yes
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 #include <stdlib.h>
10030 int main()
10032 mbstowcs(0, "", 0);
10033 return 0;
10035 _ACEOF
10036 if ac_fn_cxx_try_run "$LINENO"; then :
10037 gcc_cv_func_mbstowcs_works=yes
10038 else
10039 gcc_cv_func_mbstowcs_works=no
10041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10042 conftest.$ac_objext conftest.beam conftest.$ac_ext
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10047 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10048 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10050 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10055 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10056 if test "x$ac_cv_type_ssize_t" = xyes; then :
10058 else
10060 cat >>confdefs.h <<_ACEOF
10061 #define ssize_t int
10062 _ACEOF
10066 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10067 if test "x$ac_cv_type_caddr_t" = xyes; then :
10069 else
10071 cat >>confdefs.h <<_ACEOF
10072 #define caddr_t char *
10073 _ACEOF
10079 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10080 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10081 gcc_header_sys_mman_h=yes
10082 else
10083 gcc_header_sys_mman_h=no
10086 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10087 if test "x$ac_cv_func_mmap" = xyes; then :
10088 gcc_func_mmap=yes
10089 else
10090 gcc_func_mmap=no
10093 if test "$gcc_header_sys_mman_h" != yes \
10094 || test "$gcc_func_mmap" != yes; then
10095 gcc_cv_func_mmap_file=no
10096 gcc_cv_func_mmap_dev_zero=no
10097 gcc_cv_func_mmap_anon=no
10098 else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10100 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10101 if ${gcc_cv_func_mmap_file+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 # Add a system to this blacklist if
10105 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10106 # memory area containing the same data that you'd get if you applied
10107 # read() to the same fd. The only system known to have a problem here
10108 # is VMS, where text files have record structure.
10109 case "$host_os" in
10110 *vms* | ultrix*)
10111 gcc_cv_func_mmap_file=no ;;
10113 gcc_cv_func_mmap_file=yes;;
10114 esac
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10117 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10119 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10120 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 # Add a system to this blacklist if it has mmap() but /dev/zero
10124 # does not exist, or if mmapping /dev/zero does not give anonymous
10125 # zeroed pages with both the following properties:
10126 # 1. If you map N consecutive pages in with one call, and then
10127 # unmap any subset of those pages, the pages that were not
10128 # explicitly unmapped remain accessible.
10129 # 2. If you map two adjacent blocks of memory and then unmap them
10130 # both at once, they must both go away.
10131 # Systems known to be in this category are Windows (all variants),
10132 # VMS, and Darwin.
10133 case "$host_os" in
10134 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10135 gcc_cv_func_mmap_dev_zero=no ;;
10137 gcc_cv_func_mmap_dev_zero=yes;;
10138 esac
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10141 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10143 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10145 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10146 if ${gcc_cv_decl_map_anon+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 #include <sys/types.h>
10152 #include <sys/mman.h>
10153 #include <unistd.h>
10155 #ifndef MAP_ANONYMOUS
10156 #define MAP_ANONYMOUS MAP_ANON
10157 #endif
10160 main ()
10162 int n = MAP_ANONYMOUS;
10164 return 0;
10166 _ACEOF
10167 if ac_fn_cxx_try_compile "$LINENO"; then :
10168 gcc_cv_decl_map_anon=yes
10169 else
10170 gcc_cv_decl_map_anon=no
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10175 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10177 if test $gcc_cv_decl_map_anon = no; then
10178 gcc_cv_func_mmap_anon=no
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10181 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10182 if ${gcc_cv_func_mmap_anon+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10186 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10187 # doesn't give anonymous zeroed pages with the same properties listed
10188 # above for use of /dev/zero.
10189 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10190 case "$host_os" in
10191 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10192 gcc_cv_func_mmap_anon=no ;;
10194 gcc_cv_func_mmap_anon=yes;;
10195 esac
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10198 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10202 if test $gcc_cv_func_mmap_file = yes; then
10204 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10207 if test $gcc_cv_func_mmap_dev_zero = yes; then
10209 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10212 if test $gcc_cv_func_mmap_anon = yes; then
10214 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10219 case "${host}" in
10220 *-*-*vms*)
10221 # Under VMS, vfork works very differently than on Unix. The standard test
10222 # won't work, and it isn't easily adaptable. It makes more sense to
10223 # just force it.
10224 ac_cv_func_vfork_works=yes
10226 esac
10227 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10228 if test "x$ac_cv_type_pid_t" = xyes; then :
10230 else
10232 cat >>confdefs.h <<_ACEOF
10233 #define pid_t int
10234 _ACEOF
10238 for ac_header in vfork.h
10239 do :
10240 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10241 if test "x$ac_cv_header_vfork_h" = xyes; then :
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_VFORK_H 1
10244 _ACEOF
10247 done
10249 for ac_func in fork vfork
10250 do :
10251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10252 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10254 cat >>confdefs.h <<_ACEOF
10255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10256 _ACEOF
10259 done
10261 if test "x$ac_cv_func_fork" = xyes; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10263 $as_echo_n "checking for working fork... " >&6; }
10264 if ${ac_cv_func_fork_works+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 if test "$cross_compiling" = yes; then :
10268 ac_cv_func_fork_works=cross
10269 else
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 $ac_includes_default
10274 main ()
10277 /* By Ruediger Kuhlmann. */
10278 return fork () < 0;
10281 return 0;
10283 _ACEOF
10284 if ac_fn_cxx_try_run "$LINENO"; then :
10285 ac_cv_func_fork_works=yes
10286 else
10287 ac_cv_func_fork_works=no
10289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10290 conftest.$ac_objext conftest.beam conftest.$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10295 $as_echo "$ac_cv_func_fork_works" >&6; }
10297 else
10298 ac_cv_func_fork_works=$ac_cv_func_fork
10300 if test "x$ac_cv_func_fork_works" = xcross; then
10301 case $host in
10302 *-*-amigaos* | *-*-msdosdjgpp*)
10303 # Override, as these systems have only a dummy fork() stub
10304 ac_cv_func_fork_works=no
10307 ac_cv_func_fork_works=yes
10309 esac
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10311 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10313 ac_cv_func_vfork_works=$ac_cv_func_vfork
10314 if test "x$ac_cv_func_vfork" = xyes; then
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10316 $as_echo_n "checking for working vfork... " >&6; }
10317 if ${ac_cv_func_vfork_works+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 if test "$cross_compiling" = yes; then :
10321 ac_cv_func_vfork_works=cross
10322 else
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 /* Thanks to Paul Eggert for this test. */
10326 $ac_includes_default
10327 #include <sys/wait.h>
10328 #ifdef HAVE_VFORK_H
10329 # include <vfork.h>
10330 #endif
10331 /* On some sparc systems, changes by the child to local and incoming
10332 argument registers are propagated back to the parent. The compiler
10333 is told about this with #include <vfork.h>, but some compilers
10334 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10335 static variable whose address is put into a register that is
10336 clobbered by the vfork. */
10337 static void
10338 #ifdef __cplusplus
10339 sparc_address_test (int arg)
10340 # else
10341 sparc_address_test (arg) int arg;
10342 #endif
10344 static pid_t child;
10345 if (!child) {
10346 child = vfork ();
10347 if (child < 0) {
10348 perror ("vfork");
10349 _exit(2);
10351 if (!child) {
10352 arg = getpid();
10353 write(-1, "", 0);
10354 _exit (arg);
10360 main ()
10362 pid_t parent = getpid ();
10363 pid_t child;
10365 sparc_address_test (0);
10367 child = vfork ();
10369 if (child == 0) {
10370 /* Here is another test for sparc vfork register problems. This
10371 test uses lots of local variables, at least as many local
10372 variables as main has allocated so far including compiler
10373 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10374 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10375 reuse the register of parent for one of the local variables,
10376 since it will think that parent can't possibly be used any more
10377 in this routine. Assigning to the local variable will thus
10378 munge parent in the parent process. */
10379 pid_t
10380 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10381 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10382 /* Convince the compiler that p..p7 are live; otherwise, it might
10383 use the same hardware register for all 8 local variables. */
10384 if (p != p1 || p != p2 || p != p3 || p != p4
10385 || p != p5 || p != p6 || p != p7)
10386 _exit(1);
10388 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10389 from child file descriptors. If the child closes a descriptor
10390 before it execs or exits, this munges the parent's descriptor
10391 as well. Test for this by closing stdout in the child. */
10392 _exit(close(fileno(stdout)) != 0);
10393 } else {
10394 int status;
10395 struct stat st;
10397 while (wait(&status) != child)
10399 return (
10400 /* Was there some problem with vforking? */
10401 child < 0
10403 /* Did the child fail? (This shouldn't happen.) */
10404 || status
10406 /* Did the vfork/compiler bug occur? */
10407 || parent != getpid()
10409 /* Did the file descriptor bug occur? */
10410 || fstat(fileno(stdout), &st) != 0
10414 _ACEOF
10415 if ac_fn_cxx_try_run "$LINENO"; then :
10416 ac_cv_func_vfork_works=yes
10417 else
10418 ac_cv_func_vfork_works=no
10420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10421 conftest.$ac_objext conftest.beam conftest.$ac_ext
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10426 $as_echo "$ac_cv_func_vfork_works" >&6; }
10429 if test "x$ac_cv_func_fork_works" = xcross; then
10430 ac_cv_func_vfork_works=$ac_cv_func_vfork
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10432 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10435 if test "x$ac_cv_func_vfork_works" = xyes; then
10437 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10439 else
10441 $as_echo "#define vfork fork" >>confdefs.h
10444 if test "x$ac_cv_func_fork_works" = xyes; then
10446 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10452 if test "X$prefix" = "XNONE"; then
10453 acl_final_prefix="$ac_default_prefix"
10454 else
10455 acl_final_prefix="$prefix"
10457 if test "X$exec_prefix" = "XNONE"; then
10458 acl_final_exec_prefix='${prefix}'
10459 else
10460 acl_final_exec_prefix="$exec_prefix"
10462 acl_save_prefix="$prefix"
10463 prefix="$acl_final_prefix"
10464 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10465 prefix="$acl_save_prefix"
10468 # Check whether --with-gnu-ld was given.
10469 if test "${with_gnu_ld+set}" = set; then :
10470 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10471 else
10472 with_gnu_ld=no
10475 # Prepare PATH_SEPARATOR.
10476 # The user is always right.
10477 if test "${PATH_SEPARATOR+set}" != set; then
10478 echo "#! /bin/sh" >conf$$.sh
10479 echo "exit 0" >>conf$$.sh
10480 chmod +x conf$$.sh
10481 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10482 PATH_SEPARATOR=';'
10483 else
10484 PATH_SEPARATOR=:
10486 rm -f conf$$.sh
10488 ac_prog=ld
10489 if test "$GCC" = yes; then
10490 # Check if gcc -print-prog-name=ld gives a path.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10492 $as_echo_n "checking for ld used by GCC... " >&6; }
10493 case $host in
10494 *-*-mingw*)
10495 # gcc leaves a trailing carriage return which upsets mingw
10496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10499 esac
10500 case $ac_prog in
10501 # Accept absolute paths.
10502 [\\/]* | [A-Za-z]:[\\/]*)
10503 re_direlt='/[^/][^/]*/\.\./'
10504 # Canonicalize the path of ld
10505 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10506 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10507 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10508 done
10509 test -z "$LD" && LD="$ac_prog"
10512 # If it fails, then pretend we aren't using GCC.
10513 ac_prog=ld
10516 # If it is relative, then search for the first ld in PATH.
10517 with_gnu_ld=unknown
10519 esac
10520 elif test "$with_gnu_ld" = yes; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10522 $as_echo_n "checking for GNU ld... " >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10525 $as_echo_n "checking for non-GNU ld... " >&6; }
10527 if ${acl_cv_path_LD+:} false; then :
10528 $as_echo_n "(cached) " >&6
10529 else
10530 if test -z "$LD"; then
10531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10532 for ac_dir in $PATH; do
10533 test -z "$ac_dir" && ac_dir=.
10534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10535 acl_cv_path_LD="$ac_dir/$ac_prog"
10536 # Check to see if the program is GNU ld. I'd rather use --version,
10537 # but apparently some GNU ld's only accept -v.
10538 # Break only if it was the GNU/non-GNU ld that we prefer.
10539 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10540 test "$with_gnu_ld" != no && break
10541 else
10542 test "$with_gnu_ld" != yes && break
10545 done
10546 IFS="$ac_save_ifs"
10547 else
10548 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10552 LD="$acl_cv_path_LD"
10553 if test -n "$LD"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10555 $as_echo "$LD" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10560 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10562 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10563 if ${acl_cv_prog_gnu_ld+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10567 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10568 acl_cv_prog_gnu_ld=yes
10569 else
10570 acl_cv_prog_gnu_ld=no
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10574 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10575 with_gnu_ld=$acl_cv_prog_gnu_ld
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10580 $as_echo_n "checking for shared library run path origin... " >&6; }
10581 if ${acl_cv_rpath+:} false; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10585 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10586 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10587 . ./conftest.sh
10588 rm -f ./conftest.sh
10589 acl_cv_rpath=done
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10593 $as_echo "$acl_cv_rpath" >&6; }
10594 wl="$acl_cv_wl"
10595 libext="$acl_cv_libext"
10596 shlibext="$acl_cv_shlibext"
10597 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10598 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10599 hardcode_direct="$acl_cv_hardcode_direct"
10600 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10601 # Check whether --enable-rpath was given.
10602 if test "${enable_rpath+set}" = set; then :
10603 enableval=$enable_rpath; :
10604 else
10605 enable_rpath=yes
10615 use_additional=yes
10617 acl_save_prefix="$prefix"
10618 prefix="$acl_final_prefix"
10619 acl_save_exec_prefix="$exec_prefix"
10620 exec_prefix="$acl_final_exec_prefix"
10622 eval additional_includedir=\"$includedir\"
10623 eval additional_libdir=\"$libdir\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10629 # Check whether --with-libiconv-prefix was given.
10630 if test "${with_libiconv_prefix+set}" = set; then :
10631 withval=$with_libiconv_prefix;
10632 if test "X$withval" = "Xno"; then
10633 use_additional=no
10634 else
10635 if test "X$withval" = "X"; then
10637 acl_save_prefix="$prefix"
10638 prefix="$acl_final_prefix"
10639 acl_save_exec_prefix="$exec_prefix"
10640 exec_prefix="$acl_final_exec_prefix"
10642 eval additional_includedir=\"$includedir\"
10643 eval additional_libdir=\"$libdir\"
10645 exec_prefix="$acl_save_exec_prefix"
10646 prefix="$acl_save_prefix"
10648 else
10649 additional_includedir="$withval/include"
10650 additional_libdir="$withval/lib"
10656 LIBICONV=
10657 LTLIBICONV=
10658 INCICONV=
10659 rpathdirs=
10660 ltrpathdirs=
10661 names_already_handled=
10662 names_next_round='iconv '
10663 while test -n "$names_next_round"; do
10664 names_this_round="$names_next_round"
10665 names_next_round=
10666 for name in $names_this_round; do
10667 already_handled=
10668 for n in $names_already_handled; do
10669 if test "$n" = "$name"; then
10670 already_handled=yes
10671 break
10673 done
10674 if test -z "$already_handled"; then
10675 names_already_handled="$names_already_handled $name"
10676 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10677 eval value=\"\$HAVE_LIB$uppername\"
10678 if test -n "$value"; then
10679 if test "$value" = yes; then
10680 eval value=\"\$LIB$uppername\"
10681 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10682 eval value=\"\$LTLIB$uppername\"
10683 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10684 else
10687 else
10688 found_dir=
10689 found_la=
10690 found_so=
10691 found_a=
10692 if test $use_additional = yes; then
10693 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10694 found_dir="$additional_libdir"
10695 found_so="$additional_libdir/lib$name.$shlibext"
10696 if test -f "$additional_libdir/lib$name.la"; then
10697 found_la="$additional_libdir/lib$name.la"
10699 else
10700 if test -f "$additional_libdir/lib$name.$libext"; then
10701 found_dir="$additional_libdir"
10702 found_a="$additional_libdir/lib$name.$libext"
10703 if test -f "$additional_libdir/lib$name.la"; then
10704 found_la="$additional_libdir/lib$name.la"
10709 if test "X$found_dir" = "X"; then
10710 for x in $LDFLAGS $LTLIBICONV; do
10712 acl_save_prefix="$prefix"
10713 prefix="$acl_final_prefix"
10714 acl_save_exec_prefix="$exec_prefix"
10715 exec_prefix="$acl_final_exec_prefix"
10716 eval x=\"$x\"
10717 exec_prefix="$acl_save_exec_prefix"
10718 prefix="$acl_save_prefix"
10720 case "$x" in
10721 -L*)
10722 dir=`echo "X$x" | sed -e 's/^X-L//'`
10723 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10724 found_dir="$dir"
10725 found_so="$dir/lib$name.$shlibext"
10726 if test -f "$dir/lib$name.la"; then
10727 found_la="$dir/lib$name.la"
10729 else
10730 if test -f "$dir/lib$name.$libext"; then
10731 found_dir="$dir"
10732 found_a="$dir/lib$name.$libext"
10733 if test -f "$dir/lib$name.la"; then
10734 found_la="$dir/lib$name.la"
10739 esac
10740 if test "X$found_dir" != "X"; then
10741 break
10743 done
10745 if test "X$found_dir" != "X"; then
10746 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10747 if test "X$found_so" != "X"; then
10748 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10749 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10750 else
10751 haveit=
10752 for x in $ltrpathdirs; do
10753 if test "X$x" = "X$found_dir"; then
10754 haveit=yes
10755 break
10757 done
10758 if test -z "$haveit"; then
10759 ltrpathdirs="$ltrpathdirs $found_dir"
10761 if test "$hardcode_direct" = yes; then
10762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10763 else
10764 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10766 haveit=
10767 for x in $rpathdirs; do
10768 if test "X$x" = "X$found_dir"; then
10769 haveit=yes
10770 break
10772 done
10773 if test -z "$haveit"; then
10774 rpathdirs="$rpathdirs $found_dir"
10776 else
10777 haveit=
10778 for x in $LDFLAGS $LIBICONV; do
10780 acl_save_prefix="$prefix"
10781 prefix="$acl_final_prefix"
10782 acl_save_exec_prefix="$exec_prefix"
10783 exec_prefix="$acl_final_exec_prefix"
10784 eval x=\"$x\"
10785 exec_prefix="$acl_save_exec_prefix"
10786 prefix="$acl_save_prefix"
10788 if test "X$x" = "X-L$found_dir"; then
10789 haveit=yes
10790 break
10792 done
10793 if test -z "$haveit"; then
10794 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10796 if test "$hardcode_minus_L" != no; then
10797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10798 else
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10804 else
10805 if test "X$found_a" != "X"; then
10806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10807 else
10808 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10811 additional_includedir=
10812 case "$found_dir" in
10813 */lib | */lib/)
10814 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10815 additional_includedir="$basedir/include"
10817 esac
10818 if test "X$additional_includedir" != "X"; then
10819 if test "X$additional_includedir" != "X/usr/include"; then
10820 haveit=
10821 if test "X$additional_includedir" = "X/usr/local/include"; then
10822 if test -n "$GCC"; then
10823 case $host_os in
10824 linux*) haveit=yes;;
10825 esac
10828 if test -z "$haveit"; then
10829 for x in $CPPFLAGS $INCICONV; do
10831 acl_save_prefix="$prefix"
10832 prefix="$acl_final_prefix"
10833 acl_save_exec_prefix="$exec_prefix"
10834 exec_prefix="$acl_final_exec_prefix"
10835 eval x=\"$x\"
10836 exec_prefix="$acl_save_exec_prefix"
10837 prefix="$acl_save_prefix"
10839 if test "X$x" = "X-I$additional_includedir"; then
10840 haveit=yes
10841 break
10843 done
10844 if test -z "$haveit"; then
10845 if test -d "$additional_includedir"; then
10846 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10852 if test -n "$found_la"; then
10853 save_libdir="$libdir"
10854 case "$found_la" in
10855 */* | *\\*) . "$found_la" ;;
10856 *) . "./$found_la" ;;
10857 esac
10858 libdir="$save_libdir"
10859 for dep in $dependency_libs; do
10860 case "$dep" in
10861 -L*)
10862 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10863 if test "X$additional_libdir" != "X/usr/lib"; then
10864 haveit=
10865 if test "X$additional_libdir" = "X/usr/local/lib"; then
10866 if test -n "$GCC"; then
10867 case $host_os in
10868 linux*) haveit=yes;;
10869 esac
10872 if test -z "$haveit"; then
10873 haveit=
10874 for x in $LDFLAGS $LIBICONV; do
10876 acl_save_prefix="$prefix"
10877 prefix="$acl_final_prefix"
10878 acl_save_exec_prefix="$exec_prefix"
10879 exec_prefix="$acl_final_exec_prefix"
10880 eval x=\"$x\"
10881 exec_prefix="$acl_save_exec_prefix"
10882 prefix="$acl_save_prefix"
10884 if test "X$x" = "X-L$additional_libdir"; then
10885 haveit=yes
10886 break
10888 done
10889 if test -z "$haveit"; then
10890 if test -d "$additional_libdir"; then
10891 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10894 haveit=
10895 for x in $LDFLAGS $LTLIBICONV; do
10897 acl_save_prefix="$prefix"
10898 prefix="$acl_final_prefix"
10899 acl_save_exec_prefix="$exec_prefix"
10900 exec_prefix="$acl_final_exec_prefix"
10901 eval x=\"$x\"
10902 exec_prefix="$acl_save_exec_prefix"
10903 prefix="$acl_save_prefix"
10905 if test "X$x" = "X-L$additional_libdir"; then
10906 haveit=yes
10907 break
10909 done
10910 if test -z "$haveit"; then
10911 if test -d "$additional_libdir"; then
10912 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10918 -R*)
10919 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10920 if test "$enable_rpath" != no; then
10921 haveit=
10922 for x in $rpathdirs; do
10923 if test "X$x" = "X$dir"; then
10924 haveit=yes
10925 break
10927 done
10928 if test -z "$haveit"; then
10929 rpathdirs="$rpathdirs $dir"
10931 haveit=
10932 for x in $ltrpathdirs; do
10933 if test "X$x" = "X$dir"; then
10934 haveit=yes
10935 break
10937 done
10938 if test -z "$haveit"; then
10939 ltrpathdirs="$ltrpathdirs $dir"
10943 -l*)
10944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10946 *.la)
10947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10950 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10951 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10953 esac
10954 done
10956 else
10957 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10962 done
10963 done
10964 if test "X$rpathdirs" != "X"; then
10965 if test -n "$hardcode_libdir_separator"; then
10966 alldirs=
10967 for found_dir in $rpathdirs; do
10968 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10969 done
10970 acl_save_libdir="$libdir"
10971 libdir="$alldirs"
10972 eval flag=\"$hardcode_libdir_flag_spec\"
10973 libdir="$acl_save_libdir"
10974 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10975 else
10976 for found_dir in $rpathdirs; do
10977 acl_save_libdir="$libdir"
10978 libdir="$found_dir"
10979 eval flag=\"$hardcode_libdir_flag_spec\"
10980 libdir="$acl_save_libdir"
10981 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10982 done
10985 if test "X$ltrpathdirs" != "X"; then
10986 for found_dir in $ltrpathdirs; do
10987 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10988 done
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10998 $as_echo_n "checking for iconv... " >&6; }
10999 if ${am_cv_func_iconv+:} false; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11003 am_cv_func_iconv="no, consider installing GNU libiconv"
11004 am_cv_lib_iconv=no
11005 am_save_CPPFLAGS="$CPPFLAGS"
11006 CPPFLAGS="$CPPFLAGS $INCICONV"
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include <stdlib.h>
11010 #include <iconv.h>
11012 main ()
11014 iconv_t cd = iconv_open("","");
11015 iconv(cd,NULL,NULL,NULL,NULL);
11016 iconv_close(cd);
11018 return 0;
11020 _ACEOF
11021 if ac_fn_cxx_try_link "$LINENO"; then :
11022 am_cv_func_iconv=yes
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 CPPFLAGS="$am_save_CPPFLAGS"
11028 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11029 for _libs in .libs _libs; do
11030 am_save_CPPFLAGS="$CPPFLAGS"
11031 am_save_LIBS="$LIBS"
11032 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11033 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 #include <stdlib.h>
11037 #include <iconv.h>
11039 main ()
11041 iconv_t cd = iconv_open("","");
11042 iconv(cd,NULL,NULL,NULL,NULL);
11043 iconv_close(cd);
11045 return 0;
11047 _ACEOF
11048 if ac_fn_cxx_try_link "$LINENO"; then :
11049 INCICONV="-I../libiconv/include"
11050 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11051 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11052 am_cv_lib_iconv=yes
11053 am_cv_func_iconv=yes
11055 rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057 CPPFLAGS="$am_save_CPPFLAGS"
11058 LIBS="$am_save_LIBS"
11059 if test "$am_cv_func_iconv" = "yes"; then
11060 break
11062 done
11065 if test "$am_cv_func_iconv" != yes; then
11066 am_save_CPPFLAGS="$CPPFLAGS"
11067 am_save_LIBS="$LIBS"
11068 CPPFLAGS="$CPPFLAGS $INCICONV"
11069 LIBS="$LIBS $LIBICONV"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 #include <stdlib.h>
11073 #include <iconv.h>
11075 main ()
11077 iconv_t cd = iconv_open("","");
11078 iconv(cd,NULL,NULL,NULL,NULL);
11079 iconv_close(cd);
11081 return 0;
11083 _ACEOF
11084 if ac_fn_cxx_try_link "$LINENO"; then :
11085 am_cv_lib_iconv=yes
11086 am_cv_func_iconv=yes
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 CPPFLAGS="$am_save_CPPFLAGS"
11091 LIBS="$am_save_LIBS"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11096 $as_echo "$am_cv_func_iconv" >&6; }
11097 if test "$am_cv_func_iconv" = yes; then
11099 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11102 if test "$am_cv_lib_iconv" = yes; then
11104 for element in $INCICONV; do
11105 haveit=
11106 for x in $CPPFLAGS; do
11108 acl_save_prefix="$prefix"
11109 prefix="$acl_final_prefix"
11110 acl_save_exec_prefix="$exec_prefix"
11111 exec_prefix="$acl_final_exec_prefix"
11112 eval x=\"$x\"
11113 exec_prefix="$acl_save_exec_prefix"
11114 prefix="$acl_save_prefix"
11116 if test "X$x" = "X$element"; then
11117 haveit=yes
11118 break
11120 done
11121 if test -z "$haveit"; then
11122 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11124 done
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11127 $as_echo_n "checking how to link with libiconv... " >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11129 $as_echo "$LIBICONV" >&6; }
11130 else
11131 LIBICONV=
11132 LTLIBICONV=
11137 if test "$am_cv_func_iconv" = yes; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11139 $as_echo_n "checking for iconv declaration... " >&6; }
11140 if ${am_cv_proto_iconv+:} false; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <stdlib.h>
11148 #include <iconv.h>
11149 extern
11150 #ifdef __cplusplus
11152 #endif
11153 #if defined(__STDC__) || defined(__cplusplus)
11154 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11155 #else
11156 size_t iconv();
11157 #endif
11160 main ()
11164 return 0;
11166 _ACEOF
11167 if ac_fn_cxx_try_compile "$LINENO"; then :
11168 am_cv_proto_iconv_arg1=""
11169 else
11170 am_cv_proto_iconv_arg1="const"
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 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);"
11176 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11178 }$am_cv_proto_iconv" >&5
11179 $as_echo "${ac_t:-
11180 }$am_cv_proto_iconv" >&6; }
11182 cat >>confdefs.h <<_ACEOF
11183 #define ICONV_CONST $am_cv_proto_iconv_arg1
11184 _ACEOF
11189 # Until we have in-tree GNU iconv:
11190 LIBICONV_DEP=
11191 if test -f "$LTLIBICONV"; then
11192 LIBICONV_DEP=$LTLIBICONV
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11198 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11199 if ${am_cv_val_LC_MESSAGES+:} false; then :
11200 $as_echo_n "(cached) " >&6
11201 else
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 #include <locale.h>
11206 main ()
11208 return LC_MESSAGES
11210 return 0;
11212 _ACEOF
11213 if ac_fn_cxx_try_link "$LINENO"; then :
11214 am_cv_val_LC_MESSAGES=yes
11215 else
11216 am_cv_val_LC_MESSAGES=no
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11222 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11223 if test $am_cv_val_LC_MESSAGES = yes; then
11225 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11232 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11233 if ${am_cv_langinfo_codeset+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include <langinfo.h>
11240 main ()
11242 char* cs = nl_langinfo(CODESET);
11244 return 0;
11246 _ACEOF
11247 if ac_fn_cxx_try_link "$LINENO"; then :
11248 am_cv_langinfo_codeset=yes
11249 else
11250 am_cv_langinfo_codeset=no
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11257 $as_echo "$am_cv_langinfo_codeset" >&6; }
11258 if test $am_cv_langinfo_codeset = yes; then
11260 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11265 # We will need to find libiberty.h and ansidecl.h
11266 saved_CFLAGS="$CFLAGS"
11267 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11268 saved_CXXFLAGS="$CXXFLAGS"
11269 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11271 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11272 # normal autoconf function for these. But force definition of
11273 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11274 # basename handling in libiberty.h.
11275 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11276 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11277 #undef HAVE_DECL_BASENAME
11278 #define HAVE_DECL_BASENAME 1
11279 #include \"ansidecl.h\"
11280 #include \"system.h\"
11282 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11283 ac_have_decl=1
11284 else
11285 ac_have_decl=0
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE_DECL_BASENAME $ac_have_decl
11290 _ACEOF
11291 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11292 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11293 #undef HAVE_DECL_BASENAME
11294 #define HAVE_DECL_BASENAME 1
11295 #include \"ansidecl.h\"
11296 #include \"system.h\"
11298 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11299 ac_have_decl=1
11300 else
11301 ac_have_decl=0
11304 cat >>confdefs.h <<_ACEOF
11305 #define HAVE_DECL_STRSTR $ac_have_decl
11306 _ACEOF
11309 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11310 madvise stpcpy strnlen strsignal strverscmp \
11311 strtol strtoul strtoll strtoull setenv unsetenv \
11312 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11313 free 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
11315 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11317 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11318 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 #undef $ac_tr_decl
11324 #define $ac_tr_decl 1
11326 #include "ansidecl.h"
11327 #include "system.h"
11330 main ()
11332 #ifndef $ac_func
11333 char *(*pfn) = (char *(*)) $ac_func ;
11334 #endif
11336 return 0;
11338 _ACEOF
11339 if ac_fn_cxx_try_compile "$LINENO"; then :
11340 eval "gcc_cv_have_decl_$ac_func=yes"
11341 else
11342 eval "gcc_cv_have_decl_$ac_func=no"
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11350 #define $ac_tr_decl 1
11351 _ACEOF
11353 else
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11356 #define $ac_tr_decl 0
11357 _ACEOF
11361 done
11364 for ac_func in getrlimit setrlimit getrusage
11366 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11368 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11369 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #undef $ac_tr_decl
11375 #define $ac_tr_decl 1
11377 #include "ansidecl.h"
11378 #include "system.h"
11379 #ifdef HAVE_SYS_RESOURCE_H
11380 #include <sys/resource.h>
11381 #endif
11385 main ()
11387 #ifndef $ac_func
11388 char *(*pfn) = (char *(*)) $ac_func ;
11389 #endif
11391 return 0;
11393 _ACEOF
11394 if ac_fn_cxx_try_compile "$LINENO"; then :
11395 eval "gcc_cv_have_decl_$ac_func=yes"
11396 else
11397 eval "gcc_cv_have_decl_$ac_func=no"
11399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11402 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11405 #define $ac_tr_decl 1
11406 _ACEOF
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11411 #define $ac_tr_decl 0
11412 _ACEOF
11416 done
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11422 #include "ansidecl.h"
11423 #include "system.h"
11424 #ifdef HAVE_SYS_RESOURCE_H
11425 #include <sys/resource.h>
11426 #endif
11429 main ()
11431 rlim_t l = 0;
11433 return 0;
11435 _ACEOF
11436 if ac_fn_cxx_try_compile "$LINENO"; then :
11438 else
11440 $as_echo "#define rlim_t long" >>confdefs.h
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11446 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11447 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11448 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11449 for ac_func in ldgetname
11451 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11453 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11454 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #undef $ac_tr_decl
11460 #define $ac_tr_decl 1
11462 #include "ansidecl.h"
11463 #include "system.h"
11464 #ifdef HAVE_LDFCN_H
11465 #undef FREAD
11466 #undef FWRITE
11467 #include <ldfcn.h>
11468 #endif
11472 main ()
11474 #ifndef $ac_func
11475 char *(*pfn) = (char *(*)) $ac_func ;
11476 #endif
11478 return 0;
11480 _ACEOF
11481 if ac_fn_cxx_try_compile "$LINENO"; then :
11482 eval "gcc_cv_have_decl_$ac_func=yes"
11483 else
11484 eval "gcc_cv_have_decl_$ac_func=no"
11486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11491 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11492 #define $ac_tr_decl 1
11493 _ACEOF
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11498 #define $ac_tr_decl 0
11499 _ACEOF
11503 done
11506 for ac_func in times
11508 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11510 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11511 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #undef $ac_tr_decl
11517 #define $ac_tr_decl 1
11519 #include "ansidecl.h"
11520 #include "system.h"
11521 #ifdef HAVE_SYS_TIMES_H
11522 #include <sys/times.h>
11523 #endif
11527 main ()
11529 #ifndef $ac_func
11530 char *(*pfn) = (char *(*)) $ac_func ;
11531 #endif
11533 return 0;
11535 _ACEOF
11536 if ac_fn_cxx_try_compile "$LINENO"; then :
11537 eval "gcc_cv_have_decl_$ac_func=yes"
11538 else
11539 eval "gcc_cv_have_decl_$ac_func=no"
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11546 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11547 #define $ac_tr_decl 1
11548 _ACEOF
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11553 #define $ac_tr_decl 0
11554 _ACEOF
11558 done
11561 for ac_func in sigaltstack
11563 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11565 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11566 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571 #undef $ac_tr_decl
11572 #define $ac_tr_decl 1
11574 #include "ansidecl.h"
11575 #include "system.h"
11576 #include <signal.h>
11580 main ()
11582 #ifndef $ac_func
11583 char *(*pfn) = (char *(*)) $ac_func ;
11584 #endif
11586 return 0;
11588 _ACEOF
11589 if ac_fn_cxx_try_compile "$LINENO"; then :
11590 eval "gcc_cv_have_decl_$ac_func=yes"
11591 else
11592 eval "gcc_cv_have_decl_$ac_func=no"
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11600 #define $ac_tr_decl 1
11601 _ACEOF
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11606 #define $ac_tr_decl 0
11607 _ACEOF
11611 done
11614 # More time-related stuff.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11616 $as_echo_n "checking for struct tms... " >&6; }
11617 if ${ac_cv_struct_tms+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11624 #include "ansidecl.h"
11625 #include "system.h"
11626 #ifdef HAVE_SYS_TIMES_H
11627 #include <sys/times.h>
11628 #endif
11631 main ()
11633 struct tms tms;
11635 return 0;
11637 _ACEOF
11638 if ac_fn_cxx_try_compile "$LINENO"; then :
11639 ac_cv_struct_tms=yes
11640 else
11641 ac_cv_struct_tms=no
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11646 $as_echo "$ac_cv_struct_tms" >&6; }
11647 if test $ac_cv_struct_tms = yes; then
11649 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11653 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11654 # revisit after autoconf 2.50.
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11656 $as_echo_n "checking for clock_t... " >&6; }
11657 if ${gcc_cv_type_clock_t+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11664 #include "ansidecl.h"
11665 #include "system.h"
11668 main ()
11670 clock_t x;
11672 return 0;
11674 _ACEOF
11675 if ac_fn_cxx_try_compile "$LINENO"; then :
11676 gcc_cv_type_clock_t=yes
11677 else
11678 gcc_cv_type_clock_t=no
11680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11683 $as_echo "$gcc_cv_type_clock_t" >&6; }
11684 if test $gcc_cv_type_clock_t = yes; then
11686 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11690 # Check if F_SETLKW is supported by fcntl.
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11692 $as_echo_n "checking for F_SETLKW... " >&6; }
11693 if ${ac_cv_f_setlkw+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11700 #include <fcntl.h>
11702 main ()
11705 struct flock fl;
11706 fl.l_whence = 0;
11707 fl.l_start = 0;
11708 fl.l_len = 0;
11709 fl.l_pid = 0;
11710 return fcntl (1, F_SETLKW, &fl);
11712 return 0;
11714 _ACEOF
11715 if ac_fn_cxx_try_compile "$LINENO"; then :
11716 ac_cv_f_setlkw=yes
11717 else
11718 ac_cv_f_setlkw=no
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11723 $as_echo "$ac_cv_f_setlkw" >&6; }
11724 if test $ac_cv_f_setlkw = yes; then
11726 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11730 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11731 CFLAGS="$saved_CFLAGS"
11732 CXXFLAGS="$saved_CXXFLAGS"
11734 # mkdir takes a single argument on some systems.
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11736 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11737 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 #include <sys/types.h>
11744 #ifdef HAVE_SYS_STAT_H
11745 # include <sys/stat.h>
11746 #endif
11747 #ifdef HAVE_UNISTD_H
11748 # include <unistd.h>
11749 #endif
11750 #ifdef HAVE_DIRECT_H
11751 # include <direct.h>
11752 #endif
11754 main ()
11756 mkdir ("foo", 0);
11758 return 0;
11760 _ACEOF
11761 if ac_fn_cxx_try_compile "$LINENO"; then :
11762 gcc_cv_mkdir_takes_one_arg=no
11763 else
11764 gcc_cv_mkdir_takes_one_arg=yes
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11769 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11770 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11772 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11777 # File extensions
11778 manext='.1'
11779 objext='.o'
11783 # With Setjmp/Longjmp based exception handling.
11784 # Check whether --enable-sjlj-exceptions was given.
11785 if test "${enable_sjlj_exceptions+set}" = set; then :
11786 enableval=$enable_sjlj_exceptions; case $target in
11787 *-*-hpux10*)
11788 if test $enableval != yes; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11790 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11791 enableval=yes
11794 esac
11795 force_sjlj_exceptions=yes
11796 else
11797 case $target in
11798 *-*-hpux10*)
11799 force_sjlj_exceptions=yes
11800 enableval=yes
11802 lm32*-*-*)
11803 force_sjlj_exceptions=yes
11804 enableval=yes
11807 force_sjlj_exceptions=no
11809 esac
11812 if test $force_sjlj_exceptions = yes; then
11813 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11815 cat >>confdefs.h <<_ACEOF
11816 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11817 _ACEOF
11821 # --------------------------------------------------------
11822 # Build, host, and target specific configuration fragments
11823 # --------------------------------------------------------
11825 # Collect build-machine-specific information.
11826 . ${srcdir}/config.build || exit 1
11828 # Collect host-machine-specific information.
11829 . ${srcdir}/config.host || exit 1
11831 target_gtfiles=
11833 # Collect target-machine-specific information.
11834 . ${srcdir}/config.gcc || exit 1
11836 extra_objs="${host_extra_objs} ${extra_objs}"
11837 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11839 # Default the target-machine variables that were not explicitly set.
11840 if test x"$tm_file" = x
11841 then tm_file=$cpu_type/$cpu_type.h; fi
11843 if test x"$extra_headers" = x
11844 then extra_headers=; fi
11846 if test x$md_file = x
11847 then md_file=$cpu_type/$cpu_type.md; fi
11849 if test x$out_file = x
11850 then out_file=$cpu_type/$cpu_type.c; fi
11852 if test x"$tmake_file" = x
11853 then tmake_file=$cpu_type/t-$cpu_type
11856 # Support --enable-initfini-array.
11857 if test x$enable_initfini_array != xno; then
11858 tm_file="${tm_file} initfini-array.h"
11861 if test x"$dwarf2" = xyes
11862 then tm_file="$tm_file tm-dwarf2.h"
11865 # Say what files are being used for the output code and MD file.
11866 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11867 echo "Using \`$srcdir/config/$md_file' as machine description file."
11869 # If any of the xm_file variables contain nonexistent files, warn
11870 # about them and drop them.
11873 for x in $build_xm_file; do
11874 if test -f $srcdir/config/$x
11875 then bx="$bx $x"
11876 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11877 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11879 done
11880 build_xm_file="$bx"
11883 for x in $host_xm_file; do
11884 if test -f $srcdir/config/$x
11885 then hx="$hx $x"
11886 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11887 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11889 done
11890 host_xm_file="$hx"
11893 for x in $xm_file; do
11894 if test -f $srcdir/config/$x
11895 then tx="$tx $x"
11896 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11897 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11899 done
11900 xm_file="$tx"
11902 count=a
11903 for f in $tm_file; do
11904 count=${count}x
11905 done
11906 if test $count = ax; then
11907 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11908 else
11909 echo "Using the following target machine macro files:"
11910 for f in $tm_file; do
11911 echo " $srcdir/config/$f"
11912 done
11915 if test x$use_long_long_for_widest_fast_int = xyes; then
11917 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11921 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11923 cat >>confdefs.h <<_ACEOF
11924 #define HAVE_GNU_LD $gnu_ld_bool
11925 _ACEOF
11928 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_GNU_AS $gnu_as_bool
11932 _ACEOF
11935 count=a
11936 for f in $host_xm_file; do
11937 count=${count}x
11938 done
11939 if test $count = a; then
11941 elif test $count = ax; then
11942 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11943 else
11944 echo "Using the following host machine macro files:"
11945 for f in $host_xm_file; do
11946 echo " $srcdir/config/$f"
11947 done
11949 echo "Using ${out_host_hook_obj} for host machine hooks."
11951 if test "$host_xm_file" != "$build_xm_file"; then
11952 count=a
11953 for f in $build_xm_file; do
11954 count=${count}x
11955 done
11956 if test $count = a; then
11958 elif test $count = ax; then
11959 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11960 else
11961 echo "Using the following build machine macro files:"
11962 for f in $build_xm_file; do
11963 echo " $srcdir/config/$f"
11964 done
11968 if test -n "$configured_native_system_header_dir"; then
11969 native_system_header_dir=$configured_native_system_header_dir
11971 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11974 case ${host} in
11975 powerpc*-*-darwin*)
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11977 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11978 if ${gcc_cv_mcontext_underscores+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 #include <sys/cdefs.h>
11985 #include <sys/signal.h>
11986 #include <ucontext.h>
11987 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11989 _ACEOF
11990 if ac_fn_cxx_try_compile "$LINENO"; then :
11991 gcc_cv_mcontext_underscores=no
11992 else
11993 gcc_cv_mcontext_underscores=yes
11995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11998 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11999 if test $gcc_cv_mcontext_underscores = yes; then
12001 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12005 esac
12007 # ---------
12008 # Threading
12009 # ---------
12011 # Check if a valid thread package
12012 case ${enable_threads} in
12013 "" | no)
12014 # No threads
12015 target_thread_file='single'
12017 yes)
12018 # default
12019 target_thread_file='single'
12021 aix | dce | lynx | mipssde | posix | rtems | \
12022 single | tpf | vxworks | win32)
12023 target_thread_file=${enable_threads}
12026 echo "${enable_threads} is an unknown thread package" 1>&2
12027 exit 1
12029 esac
12031 if test x${thread_file} = x; then
12032 # No thread file set by target-specific clauses in config.gcc,
12033 # so use file chosen by default logic above
12034 thread_file=${target_thread_file}
12037 # --------
12038 # UNSORTED
12039 # --------
12041 use_cxa_atexit=no
12042 if test x$enable___cxa_atexit = xyes || \
12043 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12044 if test x$host = x$target; then
12045 case $host in
12046 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12047 # keyed to flag_use_cxa_atexit
12048 *-*-mingw32*)
12049 use_cxa_atexit=yes
12051 powerpc-ibm-aix*)
12052 use_cxa_atexit=yes
12055 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12056 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12057 use_cxa_atexit=yes
12058 else
12059 echo "__cxa_atexit can't be enabled on this target"
12063 esac
12064 else
12065 # We can't check for __cxa_atexit when building a cross, so assume
12066 # it is available
12067 use_cxa_atexit=yes
12069 if test x$use_cxa_atexit = xyes; then
12071 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12076 # Look for a file containing extra machine modes.
12077 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12078 extra_modes_file='$(srcdir)'/config/${extra_modes}
12081 cat >>confdefs.h <<_ACEOF
12082 #define EXTRA_MODES_FILE "config/$extra_modes"
12083 _ACEOF
12087 # Convert extra_options into a form suitable for Makefile use.
12088 extra_opt_files=
12089 all_opt_files=
12090 for f in $extra_options; do
12091 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12092 all_opt_files="$all_opt_files $srcdir/config/$f"
12093 done
12096 # auto-host.h is the file containing items generated by autoconf and is
12097 # the first file included by config.h.
12098 # If host=build, it is correct to have bconfig include auto-host.h
12099 # as well. If host!=build, we are in error and need to do more
12100 # work to find out the build config parameters.
12101 if test x$host = x$build
12102 then
12103 build_auto=auto-host.h
12104 else
12105 # We create a subdir, then run autoconf in the subdir.
12106 # To prevent recursion we set host and build for the new
12107 # invocation of configure to the build for this invocation
12108 # of configure.
12109 tempdir=build.$$
12110 rm -rf $tempdir
12111 mkdir $tempdir
12112 cd $tempdir
12113 case ${srcdir} in
12114 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12115 *) realsrcdir=../${srcdir};;
12116 esac
12117 # Clearing GMPINC is necessary to prevent host headers being
12118 # used by the build compiler. Defining GENERATOR_FILE stops
12119 # system.h from including gmp.h.
12120 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12121 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12122 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12123 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12124 ${realsrcdir}/configure \
12125 --enable-languages=${enable_languages-all} \
12126 --target=$target_alias --host=$build_alias --build=$build_alias
12128 # We just finished tests for the build machine, so rename
12129 # the file auto-build.h in the gcc directory.
12130 mv auto-host.h ../auto-build.h
12131 cd ..
12132 rm -rf $tempdir
12133 build_auto=auto-build.h
12137 tm_file="${tm_file} defaults.h"
12138 tm_p_file="${tm_p_file} tm-preds.h"
12139 tm_d_file="${tm_d_file} defaults.h"
12140 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12141 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12142 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12143 # put this back in temporarily.
12144 xm_file="auto-host.h ansidecl.h ${xm_file}"
12146 # --------
12147 # UNSORTED
12148 # --------
12150 # Compile in configure arguments.
12151 if test -f configargs.h ; then
12152 # Being re-configured.
12153 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12154 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12155 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12156 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12158 else
12159 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12162 # Double all backslashes and backslash all quotes to turn
12163 # gcc_config_arguments into a C string.
12164 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12165 $gcc_config_arguments
12167 gcc_config_arguments_str=`cat conftest.out`
12168 rm -f conftest.out
12170 cat > configargs.h <<EOF
12171 /* Generated automatically. */
12172 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12173 static const char thread_model[] = "$thread_file";
12175 static const struct {
12176 const char *name, *value;
12177 } configure_default_options[] = $configure_default_options;
12180 gcc_BASEVER=`cat $srcdir/BASE-VER`
12181 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12182 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12183 if test -f $srcdir/REVISION ; then
12184 gcc_REVISION=`cat $srcdir/REVISION`
12185 else
12186 gcc_REVISION=""
12188 cat > plugin-version.h <<EOF
12189 #include "configargs.h"
12191 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12192 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12193 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12194 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12196 static char basever[] = "$gcc_BASEVER";
12197 static char datestamp[] = "$gcc_DATESTAMP";
12198 static char devphase[] = "$gcc_DEVPHASE";
12199 static char revision[] = "$gcc_REVISION";
12201 /* FIXME plugins: We should make the version information more precise.
12202 One way to do is to add a checksum. */
12204 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12205 devphase, revision,
12206 configuration_arguments};
12209 # Determine what GCC version number to use in filesystem paths.
12211 get_gcc_base_ver="cat"
12213 # Check whether --with-gcc-major-version-only was given.
12214 if test "${with_gcc_major_version_only+set}" = set; then :
12215 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12216 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12224 # Internationalization
12225 # If we haven't got the data from the intl directory,
12226 # assume NLS is disabled.
12227 USE_NLS=no
12228 LIBINTL=
12229 LIBINTL_DEP=
12230 INCINTL=
12231 XGETTEXT=
12232 GMSGFMT=
12233 POSUB=
12235 if test -f ../intl/config.intl; then
12236 . ../intl/config.intl
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12239 $as_echo_n "checking whether NLS is requested... " >&6; }
12240 if test x"$USE_NLS" != xyes; then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12247 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12251 $as_echo_n "checking for catalogs to be installed... " >&6; }
12252 # Look for .po and .gmo files in the source directory.
12253 CATALOGS=
12254 XLINGUAS=
12255 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12256 # If there aren't any .gmo files the shell will give us the
12257 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12258 # weeded out.
12259 case "$cat" in *\**)
12260 continue;;
12261 esac
12262 # The quadruple backslash is collapsed to a double backslash
12263 # by the backticks, then collapsed again by the double quotes,
12264 # leaving us with one backslash in the sed expression (right
12265 # before the dot that mustn't act as a wildcard).
12266 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12267 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12268 # The user is allowed to set LINGUAS to a list of languages to
12269 # install catalogs for. If it's empty that means "all of them."
12270 if test "x$LINGUAS" = x; then
12271 CATALOGS="$CATALOGS $cat"
12272 XLINGUAS="$XLINGUAS $lang"
12273 else
12274 case "$LINGUAS" in *$lang*)
12275 CATALOGS="$CATALOGS $cat"
12276 XLINGUAS="$XLINGUAS $lang"
12278 esac
12280 done
12281 LINGUAS="$XLINGUAS"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12283 $as_echo "$LINGUAS" >&6; }
12286 DATADIRNAME=share
12288 INSTOBJEXT=.mo
12290 GENCAT=gencat
12292 CATOBJEXT=.gmo
12296 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12297 # -liconv on the link line twice.
12298 case "$LIBINTL" in *$LIBICONV*)
12299 LIBICONV= ;;
12300 esac
12302 # Check whether --enable-secureplt was given.
12303 if test "${enable_secureplt+set}" = set; then :
12304 enableval=$enable_secureplt;
12308 # Check whether --enable-mingw-wildcard was given.
12309 if test "${enable_mingw_wildcard+set}" = set; then :
12310 enableval=$enable_mingw_wildcard;
12311 else
12312 enable_mingw_wildcard=platform
12315 if test x"$enable_mingw_wildcard" != xplatform ; then :
12317 cat >>confdefs.h <<_ACEOF
12318 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12319 _ACEOF
12323 # Check whether --enable-large-address-aware was given.
12324 if test "${enable_large_address_aware+set}" = set; then :
12325 enableval=$enable_large_address_aware;
12328 if test x"$enable_large_address_aware" = xyes; then :
12330 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12334 # Check whether --enable-leading-mingw64-underscores was given.
12335 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12336 enableval=$enable_leading_mingw64_underscores;
12339 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12341 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12345 # Check whether --enable-cld was given.
12346 if test "${enable_cld+set}" = set; then :
12347 enableval=$enable_cld;
12348 else
12349 enable_cld=no
12353 # Check whether --enable-frame-pointer was given.
12354 if test "${enable_frame_pointer+set}" = set; then :
12355 enableval=$enable_frame_pointer;
12356 else
12358 case $target_os in
12359 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12360 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12361 enable_frame_pointer=no
12364 enable_frame_pointer=yes
12366 esac
12371 case $target in
12372 i[34567]86-*-* | x86_64-*-*)
12373 if test "x$enable_cld" = xyes; then
12374 tm_defines="${tm_defines} USE_IX86_CLD=1"
12376 if test "x$enable_frame_pointer" = xyes; then
12377 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12380 esac
12382 # Windows32 Registry support for specifying GCC installation paths.
12383 # Check whether --enable-win32-registry was given.
12384 if test "${enable_win32_registry+set}" = set; then :
12385 enableval=$enable_win32_registry;
12389 case $host_os in
12390 win32 | pe | cygwin* | mingw32*)
12391 if test "x$enable_win32_registry" != xno; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12393 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12394 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_func_search_save_LIBS=$LIBS
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char RegOpenKeyExA ();
12409 main ()
12411 return RegOpenKeyExA ();
12413 return 0;
12415 _ACEOF
12416 for ac_lib in '' advapi32; do
12417 if test -z "$ac_lib"; then
12418 ac_res="none required"
12419 else
12420 ac_res=-l$ac_lib
12421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12423 if ac_fn_cxx_try_link "$LINENO"; then :
12424 ac_cv_search_RegOpenKeyExA=$ac_res
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext
12428 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12429 break
12431 done
12432 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12434 else
12435 ac_cv_search_RegOpenKeyExA=no
12437 rm conftest.$ac_ext
12438 LIBS=$ac_func_search_save_LIBS
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12441 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12442 ac_res=$ac_cv_search_RegOpenKeyExA
12443 if test "$ac_res" != no; then :
12444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12446 else
12447 enable_win32_registry=no
12452 if test "x$enable_win32_registry" != xno; then
12454 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12457 if test "x$enable_win32_registry" != xyes \
12458 && test "x$enable_win32_registry" != x; then
12460 cat >>confdefs.h <<_ACEOF
12461 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12462 _ACEOF
12467 esac
12469 # Get an absolute path to the GCC top-level source directory
12470 holddir=`${PWDCMD-pwd}`
12471 cd $srcdir
12472 topdir=`${PWDCMD-pwd}`
12473 cd $holddir
12475 # Conditionalize the makefile for this host machine.
12476 xmake_file=
12477 for f in ${host_xmake_file}
12479 if test -f ${srcdir}/config/$f
12480 then
12481 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12483 done
12485 # Conditionalize the makefile for this target machine.
12486 tmake_file_=
12487 for f in ${tmake_file}
12489 if test -f ${srcdir}/config/$f
12490 then
12491 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12493 done
12494 tmake_file="${tmake_file_}"
12496 out_object_file=`basename $out_file .c`.o
12497 common_out_object_file=`basename $common_out_file .c`.o
12499 tm_file_list="options.h"
12500 tm_include_list="options.h insn-constants.h"
12501 for f in $tm_file; do
12502 case $f in
12503 ./* )
12504 f=`echo $f | sed 's/^..//'`
12505 tm_file_list="${tm_file_list} $f"
12506 tm_include_list="${tm_include_list} $f"
12508 defaults.h )
12509 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12510 tm_include_list="${tm_include_list} $f"
12513 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12514 tm_include_list="${tm_include_list} config/$f"
12516 esac
12517 done
12519 tm_p_file_list=
12520 tm_p_include_list=
12521 for f in $tm_p_file; do
12522 case $f in
12523 tm-preds.h )
12524 tm_p_file_list="${tm_p_file_list} $f"
12525 tm_p_include_list="${tm_p_include_list} $f"
12528 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12529 tm_p_include_list="${tm_p_include_list} config/$f"
12530 esac
12531 done
12533 tm_d_file_list=
12534 tm_d_include_list="options.h insn-constants.h"
12535 for f in $tm_d_file; do
12536 case $f in
12537 defaults.h )
12538 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12539 tm_d_include_list="${tm_d_include_list} $f"
12542 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12543 tm_d_include_list="${tm_d_include_list} config/$f"
12545 esac
12546 done
12548 xm_file_list=
12549 xm_include_list=
12550 for f in $xm_file; do
12551 case $f in
12552 ansidecl.h )
12553 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12554 xm_include_list="${xm_include_list} $f"
12556 auto-host.h )
12557 xm_file_list="${xm_file_list} $f"
12558 xm_include_list="${xm_include_list} $f"
12561 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12562 xm_include_list="${xm_include_list} config/$f"
12564 esac
12565 done
12567 host_xm_file_list=
12568 host_xm_include_list=
12569 for f in $host_xm_file; do
12570 case $f in
12571 ansidecl.h )
12572 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12573 host_xm_include_list="${host_xm_include_list} $f"
12575 auto-host.h )
12576 host_xm_file_list="${host_xm_file_list} $f"
12577 host_xm_include_list="${host_xm_include_list} $f"
12580 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12581 host_xm_include_list="${host_xm_include_list} config/$f"
12583 esac
12584 done
12586 build_xm_file_list=
12587 for f in $build_xm_file; do
12588 case $f in
12589 ansidecl.h )
12590 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12591 build_xm_include_list="${build_xm_include_list} $f"
12593 auto-build.h | auto-host.h )
12594 build_xm_file_list="${build_xm_file_list} $f"
12595 build_xm_include_list="${build_xm_include_list} $f"
12598 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12599 build_xm_include_list="${build_xm_include_list} config/$f"
12601 esac
12602 done
12604 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12605 # cross-compiler which does not use the native headers and libraries.
12606 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12607 CROSS=
12608 ALL=all.internal
12609 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12610 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12612 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12613 test x$build != x$host || test "x$with_build_sysroot" != x; then
12614 if test "x$with_build_sysroot" != x; then
12615 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12616 else
12617 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12620 if test x$host != x$target
12621 then
12622 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12623 ALL=all.cross
12624 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12625 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12626 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12629 if test "x$with_build_sysroot" != "x"; then
12630 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12631 elif test "x$with_sysroot" = x; then
12632 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12633 elif test "x$with_sysroot" = xyes; then
12634 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12635 else
12636 target_header_dir="${with_sysroot}${native_system_header_dir}"
12638 else
12639 target_header_dir=${native_system_header_dir}
12642 # If this is a cross-compiler that does not
12643 # have its own set of headers then define
12644 # inhibit_libc
12646 # If this is using newlib, without having the headers available now,
12647 # then define inhibit_libc in LIBGCC2_CFLAGS.
12648 # This prevents libgcc2 from containing any code which requires libc
12649 # support.
12650 : ${inhibit_libc=false}
12651 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12652 test x$with_newlib = xyes ; } &&
12653 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12654 inhibit_libc=true
12658 # When building gcc with a cross-compiler, we need to adjust things so
12659 # that the generator programs are still built with the native compiler.
12660 # Also, we cannot run fixincludes.
12662 # These are the normal (build=host) settings:
12663 CC_FOR_BUILD='$(CC)'
12664 CXX_FOR_BUILD='$(CXX)'
12665 BUILD_CFLAGS='$(ALL_CFLAGS)'
12666 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12667 BUILD_LDFLAGS='$(LDFLAGS)'
12668 STMP_FIXINC=stmp-fixinc
12670 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12671 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12673 # And these apply if build != host, or we are generating coverage data
12674 if test x$build != x$host || test "x$coverage_flags" != x
12675 then
12676 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12677 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12678 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12680 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12681 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12682 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12683 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12688 # Expand extra_headers to include complete path.
12689 # This substitutes for lots of t-* files.
12690 extra_headers_list=
12691 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12692 for file in ${extra_headers} ; do
12693 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12694 done
12696 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12697 if test x"$use_gcc_tgmath" = xyes
12698 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12701 # Define collect2 in Makefile.
12702 case $host_can_use_collect2 in
12703 no) collect2= ;;
12704 *) collect2='collect2$(exeext)' ;;
12705 esac
12708 # Add a definition of USE_COLLECT2 if system wants one.
12709 case $use_collect2 in
12710 no) use_collect2= ;;
12711 "") ;;
12713 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12714 xm_defines="${xm_defines} USE_COLLECT2"
12715 case $host_can_use_collect2 in
12717 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12719 esac
12721 esac
12724 cat >>confdefs.h <<_ACEOF
12725 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12726 _ACEOF
12729 # ---------------------------
12730 # Assembler & linker features
12731 # ---------------------------
12733 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12734 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12735 # However when ld-new is first executed from the build tree, libtool will
12736 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12737 # to the build tree. While doing this we need to use the previous-stage
12738 # linker, or we have an infinite loop. The presence of a shell script as
12739 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12740 # the gcc/collect-ld script. So we need to know how libtool works, or
12741 # exec-tool will fail.
12744 case `pwd` in
12745 *\ * | *\ *)
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12747 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12748 esac
12752 macro_version='2.2.7a'
12753 macro_revision='1.3134'
12767 ltmain="$ac_aux_dir/ltmain.sh"
12769 # Backslashify metacharacters that are still active within
12770 # double-quoted strings.
12771 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12773 # Same as above, but do not quote variable references.
12774 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12776 # Sed substitution to delay expansion of an escaped shell variable in a
12777 # double_quote_subst'ed string.
12778 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12780 # Sed substitution to delay expansion of an escaped single quote.
12781 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12783 # Sed substitution to avoid accidental globbing in evaled expressions
12784 no_glob_subst='s/\*/\\\*/g'
12786 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12787 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12788 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12791 $as_echo_n "checking how to print strings... " >&6; }
12792 # Test print first, because it will be a builtin if present.
12793 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12794 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12795 ECHO='print -r --'
12796 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12797 ECHO='printf %s\n'
12798 else
12799 # Use this function as a fallback that always works.
12800 func_fallback_echo ()
12802 eval 'cat <<_LTECHO_EOF
12804 _LTECHO_EOF'
12806 ECHO='func_fallback_echo'
12809 # func_echo_all arg...
12810 # Invoke $ECHO with all args, space-separated.
12811 func_echo_all ()
12813 $ECHO ""
12816 case "$ECHO" in
12817 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12818 $as_echo "printf" >&6; } ;;
12819 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12820 $as_echo "print -r" >&6; } ;;
12821 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12822 $as_echo "cat" >&6; } ;;
12823 esac
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12839 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12840 if ${ac_cv_path_SED+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12844 for ac_i in 1 2 3 4 5 6 7; do
12845 ac_script="$ac_script$as_nl$ac_script"
12846 done
12847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12848 { ac_script=; unset ac_script;}
12849 if test -z "$SED"; then
12850 ac_path_SED_found=false
12851 # Loop through the user's path and test for each of PROGNAME-LIST
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_prog in sed gsed; do
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12860 as_fn_executable_p "$ac_path_SED" || continue
12861 # Check for GNU ac_path_SED and select it if it is found.
12862 # Check for GNU $ac_path_SED
12863 case `"$ac_path_SED" --version 2>&1` in
12864 *GNU*)
12865 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12867 ac_count=0
12868 $as_echo_n 0123456789 >"conftest.in"
12869 while :
12871 cat "conftest.in" "conftest.in" >"conftest.tmp"
12872 mv "conftest.tmp" "conftest.in"
12873 cp "conftest.in" "conftest.nl"
12874 $as_echo '' >> "conftest.nl"
12875 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12877 as_fn_arith $ac_count + 1 && ac_count=$as_val
12878 if test $ac_count -gt ${ac_path_SED_max-0}; then
12879 # Best one so far, save it but keep looking for a better one
12880 ac_cv_path_SED="$ac_path_SED"
12881 ac_path_SED_max=$ac_count
12883 # 10*(2^10) chars as input seems more than enough
12884 test $ac_count -gt 10 && break
12885 done
12886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12887 esac
12889 $ac_path_SED_found && break 3
12890 done
12891 done
12892 done
12893 IFS=$as_save_IFS
12894 if test -z "$ac_cv_path_SED"; then
12895 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12897 else
12898 ac_cv_path_SED=$SED
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12903 $as_echo "$ac_cv_path_SED" >&6; }
12904 SED="$ac_cv_path_SED"
12905 rm -f conftest.sed
12907 test -z "$SED" && SED=sed
12908 Xsed="$SED -e 1s/^X//"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12921 $as_echo_n "checking for fgrep... " >&6; }
12922 if ${ac_cv_path_FGREP+:} false; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12926 then ac_cv_path_FGREP="$GREP -F"
12927 else
12928 if test -z "$FGREP"; then
12929 ac_path_FGREP_found=false
12930 # Loop through the user's path and test for each of PROGNAME-LIST
12931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12934 IFS=$as_save_IFS
12935 test -z "$as_dir" && as_dir=.
12936 for ac_prog in fgrep; do
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12939 as_fn_executable_p "$ac_path_FGREP" || continue
12940 # Check for GNU ac_path_FGREP and select it if it is found.
12941 # Check for GNU $ac_path_FGREP
12942 case `"$ac_path_FGREP" --version 2>&1` in
12943 *GNU*)
12944 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12946 ac_count=0
12947 $as_echo_n 0123456789 >"conftest.in"
12948 while :
12950 cat "conftest.in" "conftest.in" >"conftest.tmp"
12951 mv "conftest.tmp" "conftest.in"
12952 cp "conftest.in" "conftest.nl"
12953 $as_echo 'FGREP' >> "conftest.nl"
12954 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12956 as_fn_arith $ac_count + 1 && ac_count=$as_val
12957 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12958 # Best one so far, save it but keep looking for a better one
12959 ac_cv_path_FGREP="$ac_path_FGREP"
12960 ac_path_FGREP_max=$ac_count
12962 # 10*(2^10) chars as input seems more than enough
12963 test $ac_count -gt 10 && break
12964 done
12965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12966 esac
12968 $ac_path_FGREP_found && break 3
12969 done
12970 done
12971 done
12972 IFS=$as_save_IFS
12973 if test -z "$ac_cv_path_FGREP"; then
12974 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12976 else
12977 ac_cv_path_FGREP=$FGREP
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12983 $as_echo "$ac_cv_path_FGREP" >&6; }
12984 FGREP="$ac_cv_path_FGREP"
12987 test -z "$GREP" && GREP=grep
13007 # Check whether --with-gnu-ld was given.
13008 if test "${with_gnu_ld+set}" = set; then :
13009 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13010 else
13011 with_gnu_ld=no
13014 ac_prog=ld
13015 if test "$GCC" = yes; then
13016 # Check if gcc -print-prog-name=ld gives a path.
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13018 $as_echo_n "checking for ld used by $CC... " >&6; }
13019 case $host in
13020 *-*-mingw*)
13021 # gcc leaves a trailing carriage return which upsets mingw
13022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13025 esac
13026 case $ac_prog in
13027 # Accept absolute paths.
13028 [\\/]* | ?:[\\/]*)
13029 re_direlt='/[^/][^/]*/\.\./'
13030 # Canonicalize the pathname of ld
13031 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13032 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13033 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13034 done
13035 test -z "$LD" && LD="$ac_prog"
13038 # If it fails, then pretend we aren't using GCC.
13039 ac_prog=ld
13042 # If it is relative, then search for the first ld in PATH.
13043 with_gnu_ld=unknown
13045 esac
13046 elif test "$with_gnu_ld" = yes; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13048 $as_echo_n "checking for GNU ld... " >&6; }
13049 else
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13051 $as_echo_n "checking for non-GNU ld... " >&6; }
13053 if ${lt_cv_path_LD+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 if test -z "$LD"; then
13057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13058 for ac_dir in $PATH; do
13059 IFS="$lt_save_ifs"
13060 test -z "$ac_dir" && ac_dir=.
13061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13062 lt_cv_path_LD="$ac_dir/$ac_prog"
13063 # Check to see if the program is GNU ld. I'd rather use --version,
13064 # but apparently some variants of GNU ld only accept -v.
13065 # Break only if it was the GNU/non-GNU ld that we prefer.
13066 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13067 *GNU* | *'with BFD'*)
13068 test "$with_gnu_ld" != no && break
13071 test "$with_gnu_ld" != yes && break
13073 esac
13075 done
13076 IFS="$lt_save_ifs"
13077 else
13078 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13082 LD="$lt_cv_path_LD"
13083 if test -n "$LD"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13085 $as_echo "$LD" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13090 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13092 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13093 if ${lt_cv_prog_gnu_ld+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13096 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13097 case `$LD -v 2>&1 </dev/null` in
13098 *GNU* | *'with BFD'*)
13099 lt_cv_prog_gnu_ld=yes
13102 lt_cv_prog_gnu_ld=no
13104 esac
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13107 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13108 with_gnu_ld=$lt_cv_prog_gnu_ld
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13119 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13120 if ${lt_cv_path_NM+:} false; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 if test -n "$NM"; then
13124 # Let the user override the test.
13125 lt_cv_path_NM="$NM"
13126 else
13127 lt_nm_to_check="${ac_tool_prefix}nm"
13128 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13129 lt_nm_to_check="$lt_nm_to_check nm"
13131 for lt_tmp_nm in $lt_nm_to_check; do
13132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13133 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13134 IFS="$lt_save_ifs"
13135 test -z "$ac_dir" && ac_dir=.
13136 tmp_nm="$ac_dir/$lt_tmp_nm"
13137 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13138 # Check to see if the nm accepts a BSD-compat flag.
13139 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13140 # nm: unknown option "B" ignored
13141 # Tru64's nm complains that /dev/null is an invalid object file
13142 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13143 */dev/null* | *'Invalid file or object type'*)
13144 lt_cv_path_NM="$tmp_nm -B"
13145 break
13148 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13149 */dev/null*)
13150 lt_cv_path_NM="$tmp_nm -p"
13151 break
13154 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13155 continue # so that we can try to find one that supports BSD flags
13157 esac
13159 esac
13161 done
13162 IFS="$lt_save_ifs"
13163 done
13164 : ${lt_cv_path_NM=no}
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13168 $as_echo "$lt_cv_path_NM" >&6; }
13169 if test "$lt_cv_path_NM" != "no"; then
13170 NM="$lt_cv_path_NM"
13171 else
13172 # Didn't find any BSD compatible name lister, look for dumpbin.
13173 if test -n "$DUMPBIN"; then :
13174 # Let the user override the test.
13175 else
13176 if test -n "$ac_tool_prefix"; then
13177 for ac_prog in dumpbin "link -dump"
13179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if ${ac_cv_prog_DUMPBIN+:} false; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$DUMPBIN"; then
13187 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13206 DUMPBIN=$ac_cv_prog_DUMPBIN
13207 if test -n "$DUMPBIN"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13209 $as_echo "$DUMPBIN" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 test -n "$DUMPBIN" && break
13217 done
13219 if test -z "$DUMPBIN"; then
13220 ac_ct_DUMPBIN=$DUMPBIN
13221 for ac_prog in dumpbin "link -dump"
13223 # Extract the first word of "$ac_prog", so it can be a program name with args.
13224 set dummy $ac_prog; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$ac_ct_DUMPBIN"; then
13231 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13240 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13244 done
13245 done
13246 IFS=$as_save_IFS
13250 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13251 if test -n "$ac_ct_DUMPBIN"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13253 $as_echo "$ac_ct_DUMPBIN" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13260 test -n "$ac_ct_DUMPBIN" && break
13261 done
13263 if test "x$ac_ct_DUMPBIN" = x; then
13264 DUMPBIN=":"
13265 else
13266 case $cross_compiling:$ac_tool_warned in
13267 yes:)
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13270 ac_tool_warned=yes ;;
13271 esac
13272 DUMPBIN=$ac_ct_DUMPBIN
13276 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13277 *COFF*)
13278 DUMPBIN="$DUMPBIN -symbols"
13281 DUMPBIN=:
13283 esac
13286 if test "$DUMPBIN" != ":"; then
13287 NM="$DUMPBIN"
13290 test -z "$NM" && NM=nm
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13298 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13299 if ${lt_cv_nm_interface+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 lt_cv_nm_interface="BSD nm"
13303 echo "int some_variable = 0;" > conftest.$ac_ext
13304 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13305 (eval "$ac_compile" 2>conftest.err)
13306 cat conftest.err >&5
13307 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13308 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13309 cat conftest.err >&5
13310 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13311 cat conftest.out >&5
13312 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13313 lt_cv_nm_interface="MS dumpbin"
13315 rm -f conftest*
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13318 $as_echo "$lt_cv_nm_interface" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13321 $as_echo_n "checking whether ln -s works... " >&6; }
13322 LN_S=$as_ln_s
13323 if test "$LN_S" = "ln -s"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325 $as_echo "yes" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13328 $as_echo "no, using $LN_S" >&6; }
13331 # find the maximum length of command line arguments
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13333 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13334 if ${lt_cv_sys_max_cmd_len+:} false; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13338 teststring="ABCD"
13340 case $build_os in
13341 msdosdjgpp*)
13342 # On DJGPP, this test can blow up pretty badly due to problems in libc
13343 # (any single argument exceeding 2000 bytes causes a buffer overrun
13344 # during glob expansion). Even if it were fixed, the result of this
13345 # check would be larger than it should be.
13346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13349 gnu*)
13350 # Under GNU Hurd, this test is not required because there is
13351 # no limit to the length of command line arguments.
13352 # Libtool will interpret -1 as no limit whatsoever
13353 lt_cv_sys_max_cmd_len=-1;
13356 cygwin* | mingw* | cegcc*)
13357 # On Win9x/ME, this test blows up -- it succeeds, but takes
13358 # about 5 minutes as the teststring grows exponentially.
13359 # Worse, since 9x/ME are not pre-emptively multitasking,
13360 # you end up with a "frozen" computer, even though with patience
13361 # the test eventually succeeds (with a max line length of 256k).
13362 # Instead, let's just punt: use the minimum linelength reported by
13363 # all of the supported platforms: 8192 (on NT/2K/XP).
13364 lt_cv_sys_max_cmd_len=8192;
13367 mint*)
13368 # On MiNT this can take a long time and run out of memory.
13369 lt_cv_sys_max_cmd_len=8192;
13372 amigaos*)
13373 # On AmigaOS with pdksh, this test takes hours, literally.
13374 # So we just punt and use a minimum line length of 8192.
13375 lt_cv_sys_max_cmd_len=8192;
13378 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13379 # This has been around since 386BSD, at least. Likely further.
13380 if test -x /sbin/sysctl; then
13381 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13382 elif test -x /usr/sbin/sysctl; then
13383 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13384 else
13385 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13387 # And add a safety zone
13388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13392 interix*)
13393 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13394 lt_cv_sys_max_cmd_len=196608
13397 osf*)
13398 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13399 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13400 # nice to cause kernel panics so lets avoid the loop below.
13401 # First set a reasonable default.
13402 lt_cv_sys_max_cmd_len=16384
13404 if test -x /sbin/sysconfig; then
13405 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13406 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13407 esac
13410 sco3.2v5*)
13411 lt_cv_sys_max_cmd_len=102400
13413 sysv5* | sco5v6* | sysv4.2uw2*)
13414 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13415 if test -n "$kargmax"; then
13416 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13417 else
13418 lt_cv_sys_max_cmd_len=32768
13422 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13423 if test -n "$lt_cv_sys_max_cmd_len"; then
13424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13426 else
13427 # Make teststring a little bigger before we do anything with it.
13428 # a 1K string should be a reasonable start.
13429 for i in 1 2 3 4 5 6 7 8 ; do
13430 teststring=$teststring$teststring
13431 done
13432 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13433 # If test is not a shell built-in, we'll probably end up computing a
13434 # maximum length that is only half of the actual maximum length, but
13435 # we can't tell.
13436 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13437 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13438 test $i != 17 # 1/2 MB should be enough
13440 i=`expr $i + 1`
13441 teststring=$teststring$teststring
13442 done
13443 # Only check the string length outside the loop.
13444 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13445 teststring=
13446 # Add a significant safety factor because C++ compilers can tack on
13447 # massive amounts of additional arguments before passing them to the
13448 # linker. It appears as though 1/2 is a usable value.
13449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13452 esac
13456 if test -n $lt_cv_sys_max_cmd_len ; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13458 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13461 $as_echo "none" >&6; }
13463 max_cmd_len=$lt_cv_sys_max_cmd_len
13470 : ${CP="cp -f"}
13471 : ${MV="mv -f"}
13472 : ${RM="rm -f"}
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13475 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13476 # Try some XSI features
13477 xsi_shell=no
13478 ( _lt_dummy="a/b/c"
13479 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13480 = c,a/b,, \
13481 && eval 'test $(( 1 + 1 )) -eq 2 \
13482 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13483 && xsi_shell=yes
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13485 $as_echo "$xsi_shell" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13489 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13490 lt_shell_append=no
13491 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13492 >/dev/null 2>&1 \
13493 && lt_shell_append=yes
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13495 $as_echo "$lt_shell_append" >&6; }
13498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13499 lt_unset=unset
13500 else
13501 lt_unset=false
13508 # test EBCDIC or ASCII
13509 case `echo X|tr X '\101'` in
13510 A) # ASCII based system
13511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13512 lt_SP2NL='tr \040 \012'
13513 lt_NL2SP='tr \015\012 \040\040'
13515 *) # EBCDIC based system
13516 lt_SP2NL='tr \100 \n'
13517 lt_NL2SP='tr \r\n \100\100'
13519 esac
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13530 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13531 if ${lt_cv_ld_reload_flag+:} false; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 lt_cv_ld_reload_flag='-r'
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13537 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13538 reload_flag=$lt_cv_ld_reload_flag
13539 case $reload_flag in
13540 "" | " "*) ;;
13541 *) reload_flag=" $reload_flag" ;;
13542 esac
13543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13544 case $host_os in
13545 darwin*)
13546 if test "$GCC" = yes; then
13547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13548 else
13549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13552 esac
13562 if test -n "$ac_tool_prefix"; then
13563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13564 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13566 $as_echo_n "checking for $ac_word... " >&6; }
13567 if ${ac_cv_prog_OBJDUMP+:} false; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 if test -n "$OBJDUMP"; then
13571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13576 IFS=$as_save_IFS
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13582 break 2
13584 done
13585 done
13586 IFS=$as_save_IFS
13590 OBJDUMP=$ac_cv_prog_OBJDUMP
13591 if test -n "$OBJDUMP"; then
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13593 $as_echo "$OBJDUMP" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13601 if test -z "$ac_cv_prog_OBJDUMP"; then
13602 ac_ct_OBJDUMP=$OBJDUMP
13603 # Extract the first word of "objdump", so it can be a program name with args.
13604 set dummy objdump; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$ac_ct_OBJDUMP"; then
13611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13626 IFS=$as_save_IFS
13630 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13631 if test -n "$ac_ct_OBJDUMP"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13633 $as_echo "$ac_ct_OBJDUMP" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13639 if test "x$ac_ct_OBJDUMP" = x; then
13640 OBJDUMP="false"
13641 else
13642 case $cross_compiling:$ac_tool_warned in
13643 yes:)
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13646 ac_tool_warned=yes ;;
13647 esac
13648 OBJDUMP=$ac_ct_OBJDUMP
13650 else
13651 OBJDUMP="$ac_cv_prog_OBJDUMP"
13654 test -z "$OBJDUMP" && OBJDUMP=objdump
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13665 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13666 if ${lt_cv_deplibs_check_method+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 lt_cv_file_magic_cmd='$MAGIC_CMD'
13670 lt_cv_file_magic_test_file=
13671 lt_cv_deplibs_check_method='unknown'
13672 # Need to set the preceding variable on all platforms that support
13673 # interlibrary dependencies.
13674 # 'none' -- dependencies not supported.
13675 # `unknown' -- same as none, but documents that we really don't know.
13676 # 'pass_all' -- all dependencies passed with no checks.
13677 # 'test_compile' -- check by making test program.
13678 # 'file_magic [[regex]]' -- check by looking for files in library path
13679 # which responds to the $file_magic_cmd with a given extended regex.
13680 # If you have `file' or equivalent on your system and you're not sure
13681 # whether `pass_all' will *always* work, you probably want this one.
13683 case $host_os in
13684 aix[4-9]*)
13685 lt_cv_deplibs_check_method=pass_all
13688 beos*)
13689 lt_cv_deplibs_check_method=pass_all
13692 bsdi[45]*)
13693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13694 lt_cv_file_magic_cmd='/usr/bin/file -L'
13695 lt_cv_file_magic_test_file=/shlib/libc.so
13698 cygwin*)
13699 # func_win32_libid is a shell function defined in ltmain.sh
13700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13701 lt_cv_file_magic_cmd='func_win32_libid'
13704 mingw* | pw32*)
13705 # Base MSYS/MinGW do not provide the 'file' command needed by
13706 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13707 # unless we find 'file', for example because we are cross-compiling.
13708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13709 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13711 lt_cv_file_magic_cmd='func_win32_libid'
13712 else
13713 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13714 lt_cv_file_magic_cmd='$OBJDUMP -f'
13718 cegcc*)
13719 # use the weaker test based on 'objdump'. See mingw*.
13720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13721 lt_cv_file_magic_cmd='$OBJDUMP -f'
13724 darwin* | rhapsody*)
13725 lt_cv_deplibs_check_method=pass_all
13728 freebsd* | dragonfly*)
13729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13730 case $host_cpu in
13731 i*86 )
13732 # Not sure whether the presence of OpenBSD here was a mistake.
13733 # Let's accept both of them until this is cleared up.
13734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13735 lt_cv_file_magic_cmd=/usr/bin/file
13736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13738 esac
13739 else
13740 lt_cv_deplibs_check_method=pass_all
13744 gnu*)
13745 lt_cv_deplibs_check_method=pass_all
13748 haiku*)
13749 lt_cv_deplibs_check_method=pass_all
13752 hpux10.20* | hpux11*)
13753 lt_cv_file_magic_cmd=/usr/bin/file
13754 case $host_cpu in
13755 ia64*)
13756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13759 hppa*64*)
13760 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]'
13761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13767 esac
13770 interix[3-9]*)
13771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13775 irix5* | irix6* | nonstopux*)
13776 case $LD in
13777 *-32|*"-32 ") libmagic=32-bit;;
13778 *-n32|*"-n32 ") libmagic=N32;;
13779 *-64|*"-64 ") libmagic=64-bit;;
13780 *) libmagic=never-match;;
13781 esac
13782 lt_cv_deplibs_check_method=pass_all
13785 # This must be Linux ELF.
13786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13787 lt_cv_deplibs_check_method=pass_all
13790 netbsd*)
13791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13793 else
13794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13798 newos6*)
13799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13800 lt_cv_file_magic_cmd=/usr/bin/file
13801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13804 *nto* | *qnx*)
13805 lt_cv_deplibs_check_method=pass_all
13808 openbsd*)
13809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13811 else
13812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13816 osf3* | osf4* | osf5*)
13817 lt_cv_deplibs_check_method=pass_all
13820 rdos*)
13821 lt_cv_deplibs_check_method=pass_all
13824 solaris*)
13825 lt_cv_deplibs_check_method=pass_all
13828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13829 lt_cv_deplibs_check_method=pass_all
13832 sysv4 | sysv4.3*)
13833 case $host_vendor in
13834 motorola)
13835 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]'
13836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13838 ncr)
13839 lt_cv_deplibs_check_method=pass_all
13841 sequent)
13842 lt_cv_file_magic_cmd='/bin/file'
13843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13845 sni)
13846 lt_cv_file_magic_cmd='/bin/file'
13847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13848 lt_cv_file_magic_test_file=/lib/libc.so
13850 siemens)
13851 lt_cv_deplibs_check_method=pass_all
13854 lt_cv_deplibs_check_method=pass_all
13856 esac
13859 tpf*)
13860 lt_cv_deplibs_check_method=pass_all
13862 esac
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13867 file_magic_cmd=$lt_cv_file_magic_cmd
13868 deplibs_check_method=$lt_cv_deplibs_check_method
13869 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13882 if test -n "$ac_tool_prefix"; then
13883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13884 set dummy ${ac_tool_prefix}ar; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_prog_AR+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 if test -n "$AR"; then
13891 ac_cv_prog_AR="$AR" # Let the user override the test.
13892 else
13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13896 IFS=$as_save_IFS
13897 test -z "$as_dir" && as_dir=.
13898 for ac_exec_ext in '' $ac_executable_extensions; do
13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900 ac_cv_prog_AR="${ac_tool_prefix}ar"
13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902 break 2
13904 done
13905 done
13906 IFS=$as_save_IFS
13910 AR=$ac_cv_prog_AR
13911 if test -n "$AR"; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13913 $as_echo "$AR" >&6; }
13914 else
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916 $as_echo "no" >&6; }
13921 if test -z "$ac_cv_prog_AR"; then
13922 ac_ct_AR=$AR
13923 # Extract the first word of "ar", so it can be a program name with args.
13924 set dummy ar; ac_word=$2
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13926 $as_echo_n "checking for $ac_word... " >&6; }
13927 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 if test -n "$ac_ct_AR"; then
13931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13932 else
13933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934 for as_dir in $PATH
13936 IFS=$as_save_IFS
13937 test -z "$as_dir" && as_dir=.
13938 for ac_exec_ext in '' $ac_executable_extensions; do
13939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13940 ac_cv_prog_ac_ct_AR="ar"
13941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13942 break 2
13944 done
13945 done
13946 IFS=$as_save_IFS
13950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13951 if test -n "$ac_ct_AR"; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13953 $as_echo "$ac_ct_AR" >&6; }
13954 else
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956 $as_echo "no" >&6; }
13959 if test "x$ac_ct_AR" = x; then
13960 AR="false"
13961 else
13962 case $cross_compiling:$ac_tool_warned in
13963 yes:)
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13966 ac_tool_warned=yes ;;
13967 esac
13968 AR=$ac_ct_AR
13970 else
13971 AR="$ac_cv_prog_AR"
13974 test -z "$AR" && AR=ar
13975 test -z "$AR_FLAGS" && AR_FLAGS=cru
13987 if test -n "$ac_tool_prefix"; then
13988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13989 set dummy ${ac_tool_prefix}strip; ac_word=$2
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if ${ac_cv_prog_STRIP+:} false; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 if test -n "$STRIP"; then
13996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13997 else
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999 for as_dir in $PATH
14001 IFS=$as_save_IFS
14002 test -z "$as_dir" && as_dir=.
14003 for ac_exec_ext in '' $ac_executable_extensions; do
14004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14007 break 2
14009 done
14010 done
14011 IFS=$as_save_IFS
14015 STRIP=$ac_cv_prog_STRIP
14016 if test -n "$STRIP"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14018 $as_echo "$STRIP" >&6; }
14019 else
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14026 if test -z "$ac_cv_prog_STRIP"; then
14027 ac_ct_STRIP=$STRIP
14028 # Extract the first word of "strip", so it can be a program name with args.
14029 set dummy strip; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 if test -n "$ac_ct_STRIP"; then
14036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14041 IFS=$as_save_IFS
14042 test -z "$as_dir" && as_dir=.
14043 for ac_exec_ext in '' $ac_executable_extensions; do
14044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14045 ac_cv_prog_ac_ct_STRIP="strip"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14047 break 2
14049 done
14050 done
14051 IFS=$as_save_IFS
14055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14056 if test -n "$ac_ct_STRIP"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14058 $as_echo "$ac_ct_STRIP" >&6; }
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14064 if test "x$ac_ct_STRIP" = x; then
14065 STRIP=":"
14066 else
14067 case $cross_compiling:$ac_tool_warned in
14068 yes:)
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14071 ac_tool_warned=yes ;;
14072 esac
14073 STRIP=$ac_ct_STRIP
14075 else
14076 STRIP="$ac_cv_prog_STRIP"
14079 test -z "$STRIP" && STRIP=:
14086 if test -n "$ac_tool_prefix"; then
14087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14090 $as_echo_n "checking for $ac_word... " >&6; }
14091 if ${ac_cv_prog_RANLIB+:} false; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 if test -n "$RANLIB"; then
14095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14096 else
14097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098 for as_dir in $PATH
14100 IFS=$as_save_IFS
14101 test -z "$as_dir" && as_dir=.
14102 for ac_exec_ext in '' $ac_executable_extensions; do
14103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14106 break 2
14108 done
14109 done
14110 IFS=$as_save_IFS
14114 RANLIB=$ac_cv_prog_RANLIB
14115 if test -n "$RANLIB"; then
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14117 $as_echo "$RANLIB" >&6; }
14118 else
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120 $as_echo "no" >&6; }
14125 if test -z "$ac_cv_prog_RANLIB"; then
14126 ac_ct_RANLIB=$RANLIB
14127 # Extract the first word of "ranlib", so it can be a program name with args.
14128 set dummy ranlib; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test -n "$ac_ct_RANLIB"; then
14135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_ac_ct_RANLIB="ranlib"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14148 done
14149 done
14150 IFS=$as_save_IFS
14154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14155 if test -n "$ac_ct_RANLIB"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14157 $as_echo "$ac_ct_RANLIB" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14163 if test "x$ac_ct_RANLIB" = x; then
14164 RANLIB=":"
14165 else
14166 case $cross_compiling:$ac_tool_warned in
14167 yes:)
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14170 ac_tool_warned=yes ;;
14171 esac
14172 RANLIB=$ac_ct_RANLIB
14174 else
14175 RANLIB="$ac_cv_prog_RANLIB"
14178 test -z "$RANLIB" && RANLIB=:
14185 # Determine commands to create old-style static archives.
14186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14187 old_postinstall_cmds='chmod 644 $oldlib'
14188 old_postuninstall_cmds=
14190 if test -n "$RANLIB"; then
14191 case $host_os in
14192 openbsd*)
14193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14198 esac
14199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14202 case $host_os in
14203 darwin*)
14204 lock_old_archive_extraction=yes ;;
14206 lock_old_archive_extraction=no ;;
14207 esac
14247 # If no C compiler was specified, use CC.
14248 LTCC=${LTCC-"$CC"}
14250 # If no C compiler flags were specified, use CFLAGS.
14251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14253 # Allow CC to be a program name with arguments.
14254 compiler=$CC
14257 # Check for command to grab the raw symbol name followed by C symbol from nm.
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14259 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14260 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14264 # These are sane defaults that work on at least a few old systems.
14265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14267 # Character class describing NM global symbol codes.
14268 symcode='[BCDEGRST]'
14270 # Regexp to match symbols that can be accessed directly from C.
14271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14273 # Define system-specific variables.
14274 case $host_os in
14275 aix*)
14276 symcode='[BCDT]'
14278 cygwin* | mingw* | pw32* | cegcc*)
14279 symcode='[ABCDGISTW]'
14281 hpux*)
14282 if test "$host_cpu" = ia64; then
14283 symcode='[ABCDEGRST]'
14286 irix* | nonstopux*)
14287 symcode='[BCDEGRST]'
14289 osf*)
14290 symcode='[BCDEGQRST]'
14292 solaris*)
14293 symcode='[BDRT]'
14295 sco3.2v5*)
14296 symcode='[DT]'
14298 sysv4.2uw2*)
14299 symcode='[DT]'
14301 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14302 symcode='[ABDT]'
14304 sysv4)
14305 symcode='[DFNSTU]'
14307 esac
14309 # If we're using GNU nm, then use its standard symbol codes.
14310 case `$NM -V 2>&1` in
14311 *GNU* | *'with BFD'*)
14312 symcode='[ABCDGIRSTW]' ;;
14313 esac
14315 # Transform an extracted symbol line into a proper C declaration.
14316 # Some systems (esp. on ia64) link data and code symbols differently,
14317 # so use this general approach.
14318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14320 # Transform an extracted symbol line into symbol name and symbol address
14321 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14322 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'"
14324 # Handle CRLF in mingw tool chain
14325 opt_cr=
14326 case $build_os in
14327 mingw*)
14328 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14330 esac
14332 # Try without a prefix underscore, then with it.
14333 for ac_symprfx in "" "_"; do
14335 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14336 symxfrm="\\1 $ac_symprfx\\2 \\2"
14338 # Write the raw and C identifiers.
14339 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14340 # Fake it for dumpbin and say T for any non-static function
14341 # and D for any global variable.
14342 # Also find C++ and __fastcall symbols from MSVC++,
14343 # which start with @ or ?.
14344 lt_cv_sys_global_symbol_pipe="$AWK '"\
14345 " {last_section=section; section=\$ 3};"\
14346 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14347 " \$ 0!~/External *\|/{next};"\
14348 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14349 " {if(hide[section]) next};"\
14350 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14351 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14352 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14353 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14354 " ' prfx=^$ac_symprfx"
14355 else
14356 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14359 # Check to see that the pipe works correctly.
14360 pipe_works=no
14362 rm -f conftest*
14363 cat > conftest.$ac_ext <<_LT_EOF
14364 #ifdef __cplusplus
14365 extern "C" {
14366 #endif
14367 char nm_test_var;
14368 void nm_test_func(void);
14369 void nm_test_func(void){}
14370 #ifdef __cplusplus
14372 #endif
14373 int main(){nm_test_var='a';nm_test_func();return(0);}
14374 _LT_EOF
14376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14380 test $ac_status = 0; }; then
14381 # Now try to grab the symbols.
14382 nlist=conftest.nm
14383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14384 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14385 ac_status=$?
14386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14387 test $ac_status = 0; } && test -s "$nlist"; then
14388 # Try sorting and uniquifying the output.
14389 if sort "$nlist" | uniq > "$nlist"T; then
14390 mv -f "$nlist"T "$nlist"
14391 else
14392 rm -f "$nlist"T
14395 # Make sure that we snagged all the symbols we need.
14396 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14397 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14398 cat <<_LT_EOF > conftest.$ac_ext
14399 #ifdef __cplusplus
14400 extern "C" {
14401 #endif
14403 _LT_EOF
14404 # Now generate the symbol file.
14405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14407 cat <<_LT_EOF >> conftest.$ac_ext
14409 /* The mapping between symbol names and symbols. */
14410 const struct {
14411 const char *name;
14412 void *address;
14414 lt__PROGRAM__LTX_preloaded_symbols[] =
14416 { "@PROGRAM@", (void *) 0 },
14417 _LT_EOF
14418 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14419 cat <<\_LT_EOF >> conftest.$ac_ext
14420 {0, (void *) 0}
14423 /* This works around a problem in FreeBSD linker */
14424 #ifdef FREEBSD_WORKAROUND
14425 static const void *lt_preloaded_setup() {
14426 return lt__PROGRAM__LTX_preloaded_symbols;
14428 #endif
14430 #ifdef __cplusplus
14432 #endif
14433 _LT_EOF
14434 # Now try linking the two files.
14435 mv conftest.$ac_objext conftstm.$ac_objext
14436 lt_save_LIBS="$LIBS"
14437 lt_save_CFLAGS="$CFLAGS"
14438 LIBS="conftstm.$ac_objext"
14439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14441 (eval $ac_link) 2>&5
14442 ac_status=$?
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14445 pipe_works=yes
14447 LIBS="$lt_save_LIBS"
14448 CFLAGS="$lt_save_CFLAGS"
14449 else
14450 echo "cannot find nm_test_func in $nlist" >&5
14452 else
14453 echo "cannot find nm_test_var in $nlist" >&5
14455 else
14456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14458 else
14459 echo "$progname: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14462 rm -rf conftest* conftst*
14464 # Do not use the global_symbol_pipe unless it works.
14465 if test "$pipe_works" = yes; then
14466 break
14467 else
14468 lt_cv_sys_global_symbol_pipe=
14470 done
14474 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14475 lt_cv_sys_global_symbol_to_cdecl=
14477 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14479 $as_echo "failed" >&6; }
14480 else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14482 $as_echo "ok" >&6; }
14506 # Check whether --enable-libtool-lock was given.
14507 if test "${enable_libtool_lock+set}" = set; then :
14508 enableval=$enable_libtool_lock;
14511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14513 # Some flags need to be propagated to the compiler or linker for good
14514 # libtool support.
14515 case $host in
14516 ia64-*-hpux*)
14517 # Find out which ABI we are using.
14518 echo 'int i;' > conftest.$ac_ext
14519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14520 (eval $ac_compile) 2>&5
14521 ac_status=$?
14522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14523 test $ac_status = 0; }; then
14524 case `/usr/bin/file conftest.$ac_objext` in
14525 *ELF-32*)
14526 HPUX_IA64_MODE="32"
14528 *ELF-64*)
14529 HPUX_IA64_MODE="64"
14531 esac
14533 rm -rf conftest*
14535 *-*-irix6*)
14536 # Find out which ABI we are using.
14537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14539 (eval $ac_compile) 2>&5
14540 ac_status=$?
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; }; then
14543 if test "$lt_cv_prog_gnu_ld" = yes; then
14544 case `/usr/bin/file conftest.$ac_objext` in
14545 *32-bit*)
14546 LD="${LD-ld} -melf32bsmip"
14548 *N32*)
14549 LD="${LD-ld} -melf32bmipn32"
14551 *64-bit*)
14552 LD="${LD-ld} -melf64bmip"
14554 esac
14555 else
14556 case `/usr/bin/file conftest.$ac_objext` in
14557 *32-bit*)
14558 LD="${LD-ld} -32"
14560 *N32*)
14561 LD="${LD-ld} -n32"
14563 *64-bit*)
14564 LD="${LD-ld} -64"
14566 esac
14569 rm -rf conftest*
14572 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14573 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14574 # Find out which ABI we are using.
14575 echo 'int i;' > conftest.$ac_ext
14576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14577 (eval $ac_compile) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14580 test $ac_status = 0; }; then
14581 case `/usr/bin/file conftest.o` in
14582 *32-bit*)
14583 case $host in
14584 x86_64-*kfreebsd*-gnu)
14585 LD="${LD-ld} -m elf_i386_fbsd"
14587 x86_64-*linux*)
14588 case `/usr/bin/file conftest.o` in
14589 *x86-64*)
14590 LD="${LD-ld} -m elf32_x86_64"
14593 LD="${LD-ld} -m elf_i386"
14595 esac
14597 powerpc64le-*linux*)
14598 LD="${LD-ld} -m elf32lppclinux"
14600 powerpc64-*linux*)
14601 LD="${LD-ld} -m elf32ppclinux"
14603 s390x-*linux*)
14604 LD="${LD-ld} -m elf_s390"
14606 sparc64-*linux*)
14607 LD="${LD-ld} -m elf32_sparc"
14609 esac
14611 *64-bit*)
14612 case $host in
14613 x86_64-*kfreebsd*-gnu)
14614 LD="${LD-ld} -m elf_x86_64_fbsd"
14616 x86_64-*linux*)
14617 LD="${LD-ld} -m elf_x86_64"
14619 powerpcle-*linux*)
14620 LD="${LD-ld} -m elf64lppc"
14622 powerpc-*linux*)
14623 LD="${LD-ld} -m elf64ppc"
14625 s390*-*linux*|s390*-*tpf*)
14626 LD="${LD-ld} -m elf64_s390"
14628 sparc*-*linux*)
14629 LD="${LD-ld} -m elf64_sparc"
14631 esac
14633 esac
14635 rm -rf conftest*
14638 *-*-sco3.2v5*)
14639 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14640 SAVE_CFLAGS="$CFLAGS"
14641 CFLAGS="$CFLAGS -belf"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14643 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14644 if ${lt_cv_cc_needs_belf+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_ext=c
14648 ac_cpp='$CPP $CPPFLAGS'
14649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14657 main ()
14661 return 0;
14663 _ACEOF
14664 if ac_fn_c_try_link "$LINENO"; then :
14665 lt_cv_cc_needs_belf=yes
14666 else
14667 lt_cv_cc_needs_belf=no
14669 rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14671 ac_ext=c
14672 ac_cpp='$CPP $CPPFLAGS'
14673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14679 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14680 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14682 CFLAGS="$SAVE_CFLAGS"
14685 sparc*-*solaris*)
14686 # Find out which ABI we are using.
14687 echo 'int i;' > conftest.$ac_ext
14688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14689 (eval $ac_compile) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; }; then
14693 case `/usr/bin/file conftest.o` in
14694 *64-bit*)
14695 case $lt_cv_prog_gnu_ld in
14696 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14699 LD="${LD-ld} -64"
14702 esac
14704 esac
14706 rm -rf conftest*
14708 esac
14710 need_locks="$enable_libtool_lock"
14713 case $host_os in
14714 rhapsody* | darwin*)
14715 if test -n "$ac_tool_prefix"; then
14716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719 $as_echo_n "checking for $ac_word... " >&6; }
14720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 if test -n "$DSYMUTIL"; then
14724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14725 else
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 break 2
14737 done
14738 done
14739 IFS=$as_save_IFS
14743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14744 if test -n "$DSYMUTIL"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14746 $as_echo "$DSYMUTIL" >&6; }
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14754 if test -z "$ac_cv_prog_DSYMUTIL"; then
14755 ac_ct_DSYMUTIL=$DSYMUTIL
14756 # Extract the first word of "dsymutil", so it can be a program name with args.
14757 set dummy dsymutil; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759 $as_echo_n "checking for $ac_word... " >&6; }
14760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if test -n "$ac_ct_DSYMUTIL"; then
14764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14765 else
14766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767 for as_dir in $PATH
14769 IFS=$as_save_IFS
14770 test -z "$as_dir" && as_dir=.
14771 for ac_exec_ext in '' $ac_executable_extensions; do
14772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775 break 2
14777 done
14778 done
14779 IFS=$as_save_IFS
14783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14784 if test -n "$ac_ct_DSYMUTIL"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14787 else
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14792 if test "x$ac_ct_DSYMUTIL" = x; then
14793 DSYMUTIL=":"
14794 else
14795 case $cross_compiling:$ac_tool_warned in
14796 yes:)
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14799 ac_tool_warned=yes ;;
14800 esac
14801 DSYMUTIL=$ac_ct_DSYMUTIL
14803 else
14804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14807 if test -n "$ac_tool_prefix"; then
14808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14811 $as_echo_n "checking for $ac_word... " >&6; }
14812 if ${ac_cv_prog_NMEDIT+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 if test -n "$NMEDIT"; then
14816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14817 else
14818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 for ac_exec_ext in '' $ac_executable_extensions; do
14824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14827 break 2
14829 done
14830 done
14831 IFS=$as_save_IFS
14835 NMEDIT=$ac_cv_prog_NMEDIT
14836 if test -n "$NMEDIT"; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14838 $as_echo "$NMEDIT" >&6; }
14839 else
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841 $as_echo "no" >&6; }
14846 if test -z "$ac_cv_prog_NMEDIT"; then
14847 ac_ct_NMEDIT=$NMEDIT
14848 # Extract the first word of "nmedit", so it can be a program name with args.
14849 set dummy nmedit; ac_word=$2
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14851 $as_echo_n "checking for $ac_word... " >&6; }
14852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 if test -n "$ac_ct_NMEDIT"; then
14856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14857 else
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859 for as_dir in $PATH
14861 IFS=$as_save_IFS
14862 test -z "$as_dir" && as_dir=.
14863 for ac_exec_ext in '' $ac_executable_extensions; do
14864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14867 break 2
14869 done
14870 done
14871 IFS=$as_save_IFS
14875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14876 if test -n "$ac_ct_NMEDIT"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14878 $as_echo "$ac_ct_NMEDIT" >&6; }
14879 else
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14884 if test "x$ac_ct_NMEDIT" = x; then
14885 NMEDIT=":"
14886 else
14887 case $cross_compiling:$ac_tool_warned in
14888 yes:)
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14891 ac_tool_warned=yes ;;
14892 esac
14893 NMEDIT=$ac_ct_NMEDIT
14895 else
14896 NMEDIT="$ac_cv_prog_NMEDIT"
14899 if test -n "$ac_tool_prefix"; then
14900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14903 $as_echo_n "checking for $ac_word... " >&6; }
14904 if ${ac_cv_prog_LIPO+:} false; then :
14905 $as_echo_n "(cached) " >&6
14906 else
14907 if test -n "$LIPO"; then
14908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14909 else
14910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14911 for as_dir in $PATH
14913 IFS=$as_save_IFS
14914 test -z "$as_dir" && as_dir=.
14915 for ac_exec_ext in '' $ac_executable_extensions; do
14916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14919 break 2
14921 done
14922 done
14923 IFS=$as_save_IFS
14927 LIPO=$ac_cv_prog_LIPO
14928 if test -n "$LIPO"; then
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14930 $as_echo "$LIPO" >&6; }
14931 else
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14933 $as_echo "no" >&6; }
14938 if test -z "$ac_cv_prog_LIPO"; then
14939 ac_ct_LIPO=$LIPO
14940 # Extract the first word of "lipo", so it can be a program name with args.
14941 set dummy lipo; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943 $as_echo_n "checking for $ac_word... " >&6; }
14944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 if test -n "$ac_ct_LIPO"; then
14948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14949 else
14950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951 for as_dir in $PATH
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14957 ac_cv_prog_ac_ct_LIPO="lipo"
14958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14959 break 2
14961 done
14962 done
14963 IFS=$as_save_IFS
14967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14968 if test -n "$ac_ct_LIPO"; then
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14970 $as_echo "$ac_ct_LIPO" >&6; }
14971 else
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14973 $as_echo "no" >&6; }
14976 if test "x$ac_ct_LIPO" = x; then
14977 LIPO=":"
14978 else
14979 case $cross_compiling:$ac_tool_warned in
14980 yes:)
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14983 ac_tool_warned=yes ;;
14984 esac
14985 LIPO=$ac_ct_LIPO
14987 else
14988 LIPO="$ac_cv_prog_LIPO"
14991 if test -n "$ac_tool_prefix"; then
14992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14993 set dummy ${ac_tool_prefix}otool; ac_word=$2
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14995 $as_echo_n "checking for $ac_word... " >&6; }
14996 if ${ac_cv_prog_OTOOL+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 if test -n "$OTOOL"; then
15000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15001 else
15002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15003 for as_dir in $PATH
15005 IFS=$as_save_IFS
15006 test -z "$as_dir" && as_dir=.
15007 for ac_exec_ext in '' $ac_executable_extensions; do
15008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15011 break 2
15013 done
15014 done
15015 IFS=$as_save_IFS
15019 OTOOL=$ac_cv_prog_OTOOL
15020 if test -n "$OTOOL"; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15022 $as_echo "$OTOOL" >&6; }
15023 else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15030 if test -z "$ac_cv_prog_OTOOL"; then
15031 ac_ct_OTOOL=$OTOOL
15032 # Extract the first word of "otool", so it can be a program name with args.
15033 set dummy otool; ac_word=$2
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15035 $as_echo_n "checking for $ac_word... " >&6; }
15036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 if test -n "$ac_ct_OTOOL"; then
15040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15041 else
15042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15043 for as_dir in $PATH
15045 IFS=$as_save_IFS
15046 test -z "$as_dir" && as_dir=.
15047 for ac_exec_ext in '' $ac_executable_extensions; do
15048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15049 ac_cv_prog_ac_ct_OTOOL="otool"
15050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15051 break 2
15053 done
15054 done
15055 IFS=$as_save_IFS
15059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15060 if test -n "$ac_ct_OTOOL"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15062 $as_echo "$ac_ct_OTOOL" >&6; }
15063 else
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065 $as_echo "no" >&6; }
15068 if test "x$ac_ct_OTOOL" = x; then
15069 OTOOL=":"
15070 else
15071 case $cross_compiling:$ac_tool_warned in
15072 yes:)
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15075 ac_tool_warned=yes ;;
15076 esac
15077 OTOOL=$ac_ct_OTOOL
15079 else
15080 OTOOL="$ac_cv_prog_OTOOL"
15083 if test -n "$ac_tool_prefix"; then
15084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15087 $as_echo_n "checking for $ac_word... " >&6; }
15088 if ${ac_cv_prog_OTOOL64+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 if test -n "$OTOOL64"; then
15092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15093 else
15094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15095 for as_dir in $PATH
15097 IFS=$as_save_IFS
15098 test -z "$as_dir" && as_dir=.
15099 for ac_exec_ext in '' $ac_executable_extensions; do
15100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15103 break 2
15105 done
15106 done
15107 IFS=$as_save_IFS
15111 OTOOL64=$ac_cv_prog_OTOOL64
15112 if test -n "$OTOOL64"; then
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15114 $as_echo "$OTOOL64" >&6; }
15115 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117 $as_echo "no" >&6; }
15122 if test -z "$ac_cv_prog_OTOOL64"; then
15123 ac_ct_OTOOL64=$OTOOL64
15124 # Extract the first word of "otool64", so it can be a program name with args.
15125 set dummy otool64; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15127 $as_echo_n "checking for $ac_word... " >&6; }
15128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 if test -n "$ac_ct_OTOOL64"; then
15132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15133 else
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15137 IFS=$as_save_IFS
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_ac_ct_OTOOL64="otool64"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15143 break 2
15145 done
15146 done
15147 IFS=$as_save_IFS
15151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15152 if test -n "$ac_ct_OTOOL64"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15154 $as_echo "$ac_ct_OTOOL64" >&6; }
15155 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15157 $as_echo "no" >&6; }
15160 if test "x$ac_ct_OTOOL64" = x; then
15161 OTOOL64=":"
15162 else
15163 case $cross_compiling:$ac_tool_warned in
15164 yes:)
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15167 ac_tool_warned=yes ;;
15168 esac
15169 OTOOL64=$ac_ct_OTOOL64
15171 else
15172 OTOOL64="$ac_cv_prog_OTOOL64"
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15202 $as_echo_n "checking for -single_module linker flag... " >&6; }
15203 if ${lt_cv_apple_cc_single_mod+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 lt_cv_apple_cc_single_mod=no
15207 if test -z "${LT_MULTI_MODULE}"; then
15208 # By default we will add the -single_module flag. You can override
15209 # by either setting the environment variable LT_MULTI_MODULE
15210 # non-empty at configure time, or by adding -multi_module to the
15211 # link flags.
15212 rm -rf libconftest.dylib*
15213 echo "int foo(void){return 1;}" > conftest.c
15214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15215 -dynamiclib -Wl,-single_module conftest.c" >&5
15216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15218 _lt_result=$?
15219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15220 lt_cv_apple_cc_single_mod=yes
15221 else
15222 cat conftest.err >&5
15224 rm -rf libconftest.dylib*
15225 rm -f conftest.*
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 lt_cv_ld_exported_symbols_list=no
15236 save_LDFLAGS=$LDFLAGS
15237 echo "_main" > conftest.sym
15238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15243 main ()
15247 return 0;
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"; then :
15251 lt_cv_ld_exported_symbols_list=yes
15252 else
15253 lt_cv_ld_exported_symbols_list=no
15255 rm -f core conftest.err conftest.$ac_objext \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LDFLAGS="$save_LDFLAGS"
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15263 $as_echo_n "checking for -force_load linker flag... " >&6; }
15264 if ${lt_cv_ld_force_load+:} false; then :
15265 $as_echo_n "(cached) " >&6
15266 else
15267 lt_cv_ld_force_load=no
15268 cat > conftest.c << _LT_EOF
15269 int forced_loaded() { return 2;}
15270 _LT_EOF
15271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15273 echo "$AR cru libconftest.a conftest.o" >&5
15274 $AR cru libconftest.a conftest.o 2>&5
15275 cat > conftest.c << _LT_EOF
15276 int main() { return 0;}
15277 _LT_EOF
15278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15280 _lt_result=$?
15281 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15282 lt_cv_ld_force_load=yes
15283 else
15284 cat conftest.err >&5
15286 rm -f conftest.err libconftest.a conftest conftest.c
15287 rm -rf conftest.dSYM
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15291 $as_echo "$lt_cv_ld_force_load" >&6; }
15292 case $host_os in
15293 rhapsody* | darwin1.[012])
15294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15295 darwin1.*)
15296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15297 darwin*) # darwin 5.x on
15298 # if running on 10.5 or later, the deployment target defaults
15299 # to the OS version, if on x86, and 10.4, the deployment
15300 # target defaults to 10.4. Don't you love it?
15301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15304 10.[012][,.]*)
15305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15306 10.*)
15307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15308 esac
15310 esac
15311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15312 _lt_dar_single_mod='$single_module'
15314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15316 else
15317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15319 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15320 _lt_dsymutil='~$DSYMUTIL $lib || :'
15321 else
15322 _lt_dsymutil=
15325 esac
15328 for ac_header in dlfcn.h
15329 do :
15330 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15331 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15332 cat >>confdefs.h <<_ACEOF
15333 #define HAVE_DLFCN_H 1
15334 _ACEOF
15337 done
15343 # Set options
15347 enable_dlopen=no
15350 enable_win32_dll=no
15353 # Check whether --enable-shared was given.
15354 if test "${enable_shared+set}" = set; then :
15355 enableval=$enable_shared; p=${PACKAGE-default}
15356 case $enableval in
15357 yes) enable_shared=yes ;;
15358 no) enable_shared=no ;;
15360 enable_shared=no
15361 # Look at the argument we got. We use all the common list separators.
15362 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15363 for pkg in $enableval; do
15364 IFS="$lt_save_ifs"
15365 if test "X$pkg" = "X$p"; then
15366 enable_shared=yes
15368 done
15369 IFS="$lt_save_ifs"
15371 esac
15372 else
15373 enable_shared=yes
15384 # Check whether --enable-static was given.
15385 if test "${enable_static+set}" = set; then :
15386 enableval=$enable_static; p=${PACKAGE-default}
15387 case $enableval in
15388 yes) enable_static=yes ;;
15389 no) enable_static=no ;;
15391 enable_static=no
15392 # Look at the argument we got. We use all the common list separators.
15393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15394 for pkg in $enableval; do
15395 IFS="$lt_save_ifs"
15396 if test "X$pkg" = "X$p"; then
15397 enable_static=yes
15399 done
15400 IFS="$lt_save_ifs"
15402 esac
15403 else
15404 enable_static=yes
15416 # Check whether --with-pic was given.
15417 if test "${with_pic+set}" = set; then :
15418 withval=$with_pic; pic_mode="$withval"
15419 else
15420 pic_mode=default
15424 test -z "$pic_mode" && pic_mode=default
15432 # Check whether --enable-fast-install was given.
15433 if test "${enable_fast_install+set}" = set; then :
15434 enableval=$enable_fast_install; p=${PACKAGE-default}
15435 case $enableval in
15436 yes) enable_fast_install=yes ;;
15437 no) enable_fast_install=no ;;
15439 enable_fast_install=no
15440 # Look at the argument we got. We use all the common list separators.
15441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15442 for pkg in $enableval; do
15443 IFS="$lt_save_ifs"
15444 if test "X$pkg" = "X$p"; then
15445 enable_fast_install=yes
15447 done
15448 IFS="$lt_save_ifs"
15450 esac
15451 else
15452 enable_fast_install=yes
15465 # This can be used to rebuild libtool when needed
15466 LIBTOOL_DEPS="$ltmain"
15468 # Always use our own libtool.
15469 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15496 test -z "$LN_S" && LN_S="ln -s"
15511 if test -n "${ZSH_VERSION+set}" ; then
15512 setopt NO_GLOB_SUBST
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15516 $as_echo_n "checking for objdir... " >&6; }
15517 if ${lt_cv_objdir+:} false; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 rm -f .libs 2>/dev/null
15521 mkdir .libs 2>/dev/null
15522 if test -d .libs; then
15523 lt_cv_objdir=.libs
15524 else
15525 # MS-DOS does not allow filenames that begin with a dot.
15526 lt_cv_objdir=_libs
15528 rmdir .libs 2>/dev/null
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15531 $as_echo "$lt_cv_objdir" >&6; }
15532 objdir=$lt_cv_objdir
15538 cat >>confdefs.h <<_ACEOF
15539 #define LT_OBJDIR "$lt_cv_objdir/"
15540 _ACEOF
15545 case $host_os in
15546 aix3*)
15547 # AIX sometimes has problems with the GCC collect2 program. For some
15548 # reason, if we set the COLLECT_NAMES environment variable, the problems
15549 # vanish in a puff of smoke.
15550 if test "X${COLLECT_NAMES+set}" != Xset; then
15551 COLLECT_NAMES=
15552 export COLLECT_NAMES
15555 esac
15557 # Global variables:
15558 ofile=libtool
15559 can_build_shared=yes
15561 # All known linkers require a `.a' archive for static linking (except MSVC,
15562 # which needs '.lib').
15563 libext=a
15565 with_gnu_ld="$lt_cv_prog_gnu_ld"
15567 old_CC="$CC"
15568 old_CFLAGS="$CFLAGS"
15570 # Set sane defaults for various variables
15571 test -z "$CC" && CC=cc
15572 test -z "$LTCC" && LTCC=$CC
15573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15574 test -z "$LD" && LD=ld
15575 test -z "$ac_objext" && ac_objext=o
15577 for cc_temp in $compiler""; do
15578 case $cc_temp in
15579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15581 \-*) ;;
15582 *) break;;
15583 esac
15584 done
15585 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15588 # Only perform the check for file, if the check method requires it
15589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15590 case $deplibs_check_method in
15591 file_magic*)
15592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15594 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15595 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15596 $as_echo_n "(cached) " >&6
15597 else
15598 case $MAGIC_CMD in
15599 [\\/*] | ?:[\\/]*)
15600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15603 lt_save_MAGIC_CMD="$MAGIC_CMD"
15604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15606 for ac_dir in $ac_dummy; do
15607 IFS="$lt_save_ifs"
15608 test -z "$ac_dir" && ac_dir=.
15609 if test -f $ac_dir/${ac_tool_prefix}file; then
15610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15611 if test -n "$file_magic_test_file"; then
15612 case $deplibs_check_method in
15613 "file_magic "*)
15614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15617 $EGREP "$file_magic_regex" > /dev/null; then
15619 else
15620 cat <<_LT_EOF 1>&2
15622 *** Warning: the command libtool uses to detect shared libraries,
15623 *** $file_magic_cmd, produces output that libtool cannot recognize.
15624 *** The result is that libtool may fail to recognize shared libraries
15625 *** as such. This will affect the creation of libtool libraries that
15626 *** depend on shared libraries, but programs linked with such libtool
15627 *** libraries will work regardless of this problem. Nevertheless, you
15628 *** may want to report the problem to your system manager and/or to
15629 *** bug-libtool@gnu.org
15631 _LT_EOF
15632 fi ;;
15633 esac
15635 break
15637 done
15638 IFS="$lt_save_ifs"
15639 MAGIC_CMD="$lt_save_MAGIC_CMD"
15641 esac
15644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15645 if test -n "$MAGIC_CMD"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15647 $as_echo "$MAGIC_CMD" >&6; }
15648 else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15657 if test -z "$lt_cv_path_MAGIC_CMD"; then
15658 if test -n "$ac_tool_prefix"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15660 $as_echo_n "checking for file... " >&6; }
15661 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15662 $as_echo_n "(cached) " >&6
15663 else
15664 case $MAGIC_CMD in
15665 [\\/*] | ?:[\\/]*)
15666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15669 lt_save_MAGIC_CMD="$MAGIC_CMD"
15670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15672 for ac_dir in $ac_dummy; do
15673 IFS="$lt_save_ifs"
15674 test -z "$ac_dir" && ac_dir=.
15675 if test -f $ac_dir/file; then
15676 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15677 if test -n "$file_magic_test_file"; then
15678 case $deplibs_check_method in
15679 "file_magic "*)
15680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15683 $EGREP "$file_magic_regex" > /dev/null; then
15685 else
15686 cat <<_LT_EOF 1>&2
15688 *** Warning: the command libtool uses to detect shared libraries,
15689 *** $file_magic_cmd, produces output that libtool cannot recognize.
15690 *** The result is that libtool may fail to recognize shared libraries
15691 *** as such. This will affect the creation of libtool libraries that
15692 *** depend on shared libraries, but programs linked with such libtool
15693 *** libraries will work regardless of this problem. Nevertheless, you
15694 *** may want to report the problem to your system manager and/or to
15695 *** bug-libtool@gnu.org
15697 _LT_EOF
15698 fi ;;
15699 esac
15701 break
15703 done
15704 IFS="$lt_save_ifs"
15705 MAGIC_CMD="$lt_save_MAGIC_CMD"
15707 esac
15710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15711 if test -n "$MAGIC_CMD"; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15713 $as_echo "$MAGIC_CMD" >&6; }
15714 else
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15716 $as_echo "no" >&6; }
15720 else
15721 MAGIC_CMD=:
15727 esac
15729 # Use C for the default configuration in the libtool script
15731 lt_save_CC="$CC"
15732 ac_ext=c
15733 ac_cpp='$CPP $CPPFLAGS'
15734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739 # Source file extension for C test sources.
15740 ac_ext=c
15742 # Object file extension for compiled C test sources.
15743 objext=o
15744 objext=$objext
15746 # Code to be used in simple compile tests
15747 lt_simple_compile_test_code="int some_variable = 0;"
15749 # Code to be used in simple link tests
15750 lt_simple_link_test_code='int main(){return(0);}'
15758 # If no C compiler was specified, use CC.
15759 LTCC=${LTCC-"$CC"}
15761 # If no C compiler flags were specified, use CFLAGS.
15762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15764 # Allow CC to be a program name with arguments.
15765 compiler=$CC
15767 # Save the default compiler, since it gets overwritten when the other
15768 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15769 compiler_DEFAULT=$CC
15771 # save warnings/boilerplate of simple test code
15772 ac_outfile=conftest.$ac_objext
15773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15775 _lt_compiler_boilerplate=`cat conftest.err`
15776 $RM conftest*
15778 ac_outfile=conftest.$ac_objext
15779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15781 _lt_linker_boilerplate=`cat conftest.err`
15782 $RM -r conftest*
15785 ## CAVEAT EMPTOR:
15786 ## There is no encapsulation within the following macros, do not change
15787 ## the running order or otherwise move them around unless you know exactly
15788 ## what you are doing...
15789 if test -n "$compiler"; then
15791 lt_prog_compiler_no_builtin_flag=
15793 if test "$GCC" = yes; then
15794 case $cc_basename in
15795 nvcc*)
15796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15799 esac
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15802 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15803 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15804 $as_echo_n "(cached) " >&6
15805 else
15806 lt_cv_prog_compiler_rtti_exceptions=no
15807 ac_outfile=conftest.$ac_objext
15808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15809 lt_compiler_flag="-fno-rtti -fno-exceptions"
15810 # Insert the option either (1) after the last *FLAGS variable, or
15811 # (2) before a word containing "conftest.", or (3) at the end.
15812 # Note that $ac_compile itself does not contain backslashes and begins
15813 # with a dollar sign (not a hyphen), so the echo should work correctly.
15814 # The option is referenced via a variable to avoid confusing sed.
15815 lt_compile=`echo "$ac_compile" | $SED \
15816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15818 -e 's:$: $lt_compiler_flag:'`
15819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15820 (eval "$lt_compile" 2>conftest.err)
15821 ac_status=$?
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 if (exit $ac_status) && test -s "$ac_outfile"; then
15825 # The compiler can only warn and ignore the option if not recognized
15826 # So say no if there are warnings other than the usual output.
15827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15830 lt_cv_prog_compiler_rtti_exceptions=yes
15833 $RM conftest*
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15837 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15839 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15841 else
15852 lt_prog_compiler_wl=
15853 lt_prog_compiler_pic=
15854 lt_prog_compiler_static=
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15857 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15859 if test "$GCC" = yes; then
15860 lt_prog_compiler_wl='-Wl,'
15861 lt_prog_compiler_static='-static'
15863 case $host_os in
15864 aix*)
15865 # All AIX code is PIC.
15866 if test "$host_cpu" = ia64; then
15867 # AIX 5 now supports IA64 processor
15868 lt_prog_compiler_static='-Bstatic'
15870 lt_prog_compiler_pic='-fPIC'
15873 amigaos*)
15874 case $host_cpu in
15875 powerpc)
15876 # see comment about AmigaOS4 .so support
15877 lt_prog_compiler_pic='-fPIC'
15879 m68k)
15880 # FIXME: we need at least 68020 code to build shared libraries, but
15881 # adding the `-m68020' flag to GCC prevents building anything better,
15882 # like `-m68040'.
15883 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15885 esac
15888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15889 # PIC is the default for these OSes.
15892 mingw* | cygwin* | pw32* | os2* | cegcc*)
15893 # This hack is so that the source file can tell whether it is being
15894 # built for inclusion in a dll (and should export symbols for example).
15895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15896 # (--disable-auto-import) libraries
15897 lt_prog_compiler_pic='-DDLL_EXPORT'
15900 darwin* | rhapsody*)
15901 # PIC is the default on this platform
15902 # Common symbols not allowed in MH_DYLIB files
15903 lt_prog_compiler_pic='-fno-common'
15906 haiku*)
15907 # PIC is the default for Haiku.
15908 # The "-static" flag exists, but is broken.
15909 lt_prog_compiler_static=
15912 hpux*)
15913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15915 # sets the default TLS model and affects inlining.
15916 case $host_cpu in
15917 hppa*64*)
15918 # +Z the default
15921 lt_prog_compiler_pic='-fPIC'
15923 esac
15926 interix[3-9]*)
15927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15928 # Instead, we relocate shared libraries at runtime.
15931 msdosdjgpp*)
15932 # Just because we use GCC doesn't mean we suddenly get shared libraries
15933 # on systems that don't support them.
15934 lt_prog_compiler_can_build_shared=no
15935 enable_shared=no
15938 *nto* | *qnx*)
15939 # QNX uses GNU C++, but need to define -shared option too, otherwise
15940 # it will coredump.
15941 lt_prog_compiler_pic='-fPIC -shared'
15944 sysv4*MP*)
15945 if test -d /usr/nec; then
15946 lt_prog_compiler_pic=-Kconform_pic
15951 lt_prog_compiler_pic='-fPIC'
15953 esac
15955 case $cc_basename in
15956 nvcc*) # Cuda Compiler Driver 2.2
15957 lt_prog_compiler_wl='-Xlinker '
15958 lt_prog_compiler_pic='-Xcompiler -fPIC'
15960 esac
15961 else
15962 # PORTME Check for flag to pass linker flags through the system compiler.
15963 case $host_os in
15964 aix*)
15965 lt_prog_compiler_wl='-Wl,'
15966 if test "$host_cpu" = ia64; then
15967 # AIX 5 now supports IA64 processor
15968 lt_prog_compiler_static='-Bstatic'
15969 else
15970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15974 mingw* | cygwin* | pw32* | os2* | cegcc*)
15975 # This hack is so that the source file can tell whether it is being
15976 # built for inclusion in a dll (and should export symbols for example).
15977 lt_prog_compiler_pic='-DDLL_EXPORT'
15980 hpux9* | hpux10* | hpux11*)
15981 lt_prog_compiler_wl='-Wl,'
15982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15983 # not for PA HP-UX.
15984 case $host_cpu in
15985 hppa*64*|ia64*)
15986 # +Z the default
15989 lt_prog_compiler_pic='+Z'
15991 esac
15992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15993 lt_prog_compiler_static='${wl}-a ${wl}archive'
15996 irix5* | irix6* | nonstopux*)
15997 lt_prog_compiler_wl='-Wl,'
15998 # PIC (with -KPIC) is the default.
15999 lt_prog_compiler_static='-non_shared'
16002 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16003 case $cc_basename in
16004 # old Intel for x86_64 which still supported -KPIC.
16005 ecc*)
16006 lt_prog_compiler_wl='-Wl,'
16007 lt_prog_compiler_pic='-KPIC'
16008 lt_prog_compiler_static='-static'
16010 # icc used to be incompatible with GCC.
16011 # ICC 10 doesn't accept -KPIC any more.
16012 icc* | ifort*)
16013 lt_prog_compiler_wl='-Wl,'
16014 lt_prog_compiler_pic='-fPIC'
16015 lt_prog_compiler_static='-static'
16017 # Lahey Fortran 8.1.
16018 lf95*)
16019 lt_prog_compiler_wl='-Wl,'
16020 lt_prog_compiler_pic='--shared'
16021 lt_prog_compiler_static='--static'
16023 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16024 # Portland Group compilers (*not* the Pentium gcc compiler,
16025 # which looks to be a dead project)
16026 lt_prog_compiler_wl='-Wl,'
16027 lt_prog_compiler_pic='-fpic'
16028 lt_prog_compiler_static='-Bstatic'
16030 ccc*)
16031 lt_prog_compiler_wl='-Wl,'
16032 # All Alpha code is PIC.
16033 lt_prog_compiler_static='-non_shared'
16035 xl* | bgxl* | bgf* | mpixl*)
16036 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16037 lt_prog_compiler_wl='-Wl,'
16038 lt_prog_compiler_pic='-qpic'
16039 lt_prog_compiler_static='-qstaticlink'
16042 case `$CC -V 2>&1 | sed 5q` in
16043 *Sun\ F* | *Sun*Fortran*)
16044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16045 lt_prog_compiler_pic='-KPIC'
16046 lt_prog_compiler_static='-Bstatic'
16047 lt_prog_compiler_wl=''
16049 *Sun\ C*)
16050 # Sun C 5.9
16051 lt_prog_compiler_pic='-KPIC'
16052 lt_prog_compiler_static='-Bstatic'
16053 lt_prog_compiler_wl='-Wl,'
16055 esac
16057 esac
16060 newsos6)
16061 lt_prog_compiler_pic='-KPIC'
16062 lt_prog_compiler_static='-Bstatic'
16065 *nto* | *qnx*)
16066 # QNX uses GNU C++, but need to define -shared option too, otherwise
16067 # it will coredump.
16068 lt_prog_compiler_pic='-fPIC -shared'
16071 osf3* | osf4* | osf5*)
16072 lt_prog_compiler_wl='-Wl,'
16073 # All OSF/1 code is PIC.
16074 lt_prog_compiler_static='-non_shared'
16077 rdos*)
16078 lt_prog_compiler_static='-non_shared'
16081 solaris*)
16082 lt_prog_compiler_pic='-KPIC'
16083 lt_prog_compiler_static='-Bstatic'
16084 case $cc_basename in
16085 f77* | f90* | f95*)
16086 lt_prog_compiler_wl='-Qoption ld ';;
16088 lt_prog_compiler_wl='-Wl,';;
16089 esac
16092 sunos4*)
16093 lt_prog_compiler_wl='-Qoption ld '
16094 lt_prog_compiler_pic='-PIC'
16095 lt_prog_compiler_static='-Bstatic'
16098 sysv4 | sysv4.2uw2* | sysv4.3*)
16099 lt_prog_compiler_wl='-Wl,'
16100 lt_prog_compiler_pic='-KPIC'
16101 lt_prog_compiler_static='-Bstatic'
16104 sysv4*MP*)
16105 if test -d /usr/nec ;then
16106 lt_prog_compiler_pic='-Kconform_pic'
16107 lt_prog_compiler_static='-Bstatic'
16111 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16112 lt_prog_compiler_wl='-Wl,'
16113 lt_prog_compiler_pic='-KPIC'
16114 lt_prog_compiler_static='-Bstatic'
16117 unicos*)
16118 lt_prog_compiler_wl='-Wl,'
16119 lt_prog_compiler_can_build_shared=no
16122 uts4*)
16123 lt_prog_compiler_pic='-pic'
16124 lt_prog_compiler_static='-Bstatic'
16128 lt_prog_compiler_can_build_shared=no
16130 esac
16133 case $host_os in
16134 # For platforms which do not support PIC, -DPIC is meaningless:
16135 *djgpp*)
16136 lt_prog_compiler_pic=
16139 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16141 esac
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16143 $as_echo "$lt_prog_compiler_pic" >&6; }
16151 # Check to make sure the PIC flag actually works.
16153 if test -n "$lt_prog_compiler_pic"; then
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16156 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 lt_cv_prog_compiler_pic_works=no
16160 ac_outfile=conftest.$ac_objext
16161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16163 # Insert the option either (1) after the last *FLAGS variable, or
16164 # (2) before a word containing "conftest.", or (3) at the end.
16165 # Note that $ac_compile itself does not contain backslashes and begins
16166 # with a dollar sign (not a hyphen), so the echo should work correctly.
16167 # The option is referenced via a variable to avoid confusing sed.
16168 lt_compile=`echo "$ac_compile" | $SED \
16169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16171 -e 's:$: $lt_compiler_flag:'`
16172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16173 (eval "$lt_compile" 2>conftest.err)
16174 ac_status=$?
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 if (exit $ac_status) && test -s "$ac_outfile"; then
16178 # The compiler can only warn and ignore the option if not recognized
16179 # So say no if there are warnings other than the usual output.
16180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16183 lt_cv_prog_compiler_pic_works=yes
16186 $RM conftest*
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16193 case $lt_prog_compiler_pic in
16194 "" | " "*) ;;
16195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16196 esac
16197 else
16198 lt_prog_compiler_pic=
16199 lt_prog_compiler_can_build_shared=no
16210 # Check to make sure the static flag actually works.
16212 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16214 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16215 if ${lt_cv_prog_compiler_static_works+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 lt_cv_prog_compiler_static_works=no
16219 save_LDFLAGS="$LDFLAGS"
16220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16223 # The linker can only warn and ignore the option if not recognized
16224 # So say no if there are warnings
16225 if test -s conftest.err; then
16226 # Append any errors to the config.log.
16227 cat conftest.err 1>&5
16228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16230 if diff conftest.exp conftest.er2 >/dev/null; then
16231 lt_cv_prog_compiler_static_works=yes
16233 else
16234 lt_cv_prog_compiler_static_works=yes
16237 $RM -r conftest*
16238 LDFLAGS="$save_LDFLAGS"
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16242 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16244 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16246 else
16247 lt_prog_compiler_static=
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16258 if ${lt_cv_prog_compiler_c_o+:} false; then :
16259 $as_echo_n "(cached) " >&6
16260 else
16261 lt_cv_prog_compiler_c_o=no
16262 $RM -r conftest 2>/dev/null
16263 mkdir conftest
16264 cd conftest
16265 mkdir out
16266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16268 lt_compiler_flag="-o out/conftest2.$ac_objext"
16269 # Insert the option either (1) after the last *FLAGS variable, or
16270 # (2) before a word containing "conftest.", or (3) at the end.
16271 # Note that $ac_compile itself does not contain backslashes and begins
16272 # with a dollar sign (not a hyphen), so the echo should work correctly.
16273 lt_compile=`echo "$ac_compile" | $SED \
16274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16276 -e 's:$: $lt_compiler_flag:'`
16277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16278 (eval "$lt_compile" 2>out/conftest.err)
16279 ac_status=$?
16280 cat out/conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16283 then
16284 # The compiler can only warn and ignore the option if not recognized
16285 # So say no if there are warnings
16286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16289 lt_cv_prog_compiler_c_o=yes
16292 chmod u+w . 2>&5
16293 $RM conftest*
16294 # SGI C++ compiler will create directory out/ii_files/ for
16295 # template instantiation
16296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16297 $RM out/* && rmdir out
16298 cd ..
16299 $RM -r conftest
16300 $RM conftest*
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16304 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16313 if ${lt_cv_prog_compiler_c_o+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315 else
16316 lt_cv_prog_compiler_c_o=no
16317 $RM -r conftest 2>/dev/null
16318 mkdir conftest
16319 cd conftest
16320 mkdir out
16321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16323 lt_compiler_flag="-o out/conftest2.$ac_objext"
16324 # Insert the option either (1) after the last *FLAGS variable, or
16325 # (2) before a word containing "conftest.", or (3) at the end.
16326 # Note that $ac_compile itself does not contain backslashes and begins
16327 # with a dollar sign (not a hyphen), so the echo should work correctly.
16328 lt_compile=`echo "$ac_compile" | $SED \
16329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16331 -e 's:$: $lt_compiler_flag:'`
16332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16333 (eval "$lt_compile" 2>out/conftest.err)
16334 ac_status=$?
16335 cat out/conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16338 then
16339 # The compiler can only warn and ignore the option if not recognized
16340 # So say no if there are warnings
16341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16344 lt_cv_prog_compiler_c_o=yes
16347 chmod u+w . 2>&5
16348 $RM conftest*
16349 # SGI C++ compiler will create directory out/ii_files/ for
16350 # template instantiation
16351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16352 $RM out/* && rmdir out
16353 cd ..
16354 $RM -r conftest
16355 $RM conftest*
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16364 hard_links="nottested"
16365 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16366 # do not overwrite the value of need_locks provided by the user
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16368 $as_echo_n "checking if we can lock with hard links... " >&6; }
16369 hard_links=yes
16370 $RM conftest*
16371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16372 touch conftest.a
16373 ln conftest.a conftest.b 2>&5 || hard_links=no
16374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16376 $as_echo "$hard_links" >&6; }
16377 if test "$hard_links" = no; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16379 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16380 need_locks=warn
16382 else
16383 need_locks=no
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16392 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16394 runpath_var=
16395 allow_undefined_flag=
16396 always_export_symbols=no
16397 archive_cmds=
16398 archive_expsym_cmds=
16399 compiler_needs_object=no
16400 enable_shared_with_static_runtimes=no
16401 export_dynamic_flag_spec=
16402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16403 hardcode_automatic=no
16404 hardcode_direct=no
16405 hardcode_direct_absolute=no
16406 hardcode_libdir_flag_spec=
16407 hardcode_libdir_flag_spec_ld=
16408 hardcode_libdir_separator=
16409 hardcode_minus_L=no
16410 hardcode_shlibpath_var=unsupported
16411 inherit_rpath=no
16412 link_all_deplibs=unknown
16413 module_cmds=
16414 module_expsym_cmds=
16415 old_archive_from_new_cmds=
16416 old_archive_from_expsyms_cmds=
16417 thread_safe_flag_spec=
16418 whole_archive_flag_spec=
16419 # include_expsyms should be a list of space-separated symbols to be *always*
16420 # included in the symbol list
16421 include_expsyms=
16422 # exclude_expsyms can be an extended regexp of symbols to exclude
16423 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16425 # as well as any symbol that contains `d'.
16426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16428 # platforms (ab)use it in PIC code, but their linkers get confused if
16429 # the symbol is explicitly referenced. Since portable code cannot
16430 # rely on this symbol name, it's probably fine to never include it in
16431 # preloaded symbol tables.
16432 # Exclude shared library initialization/finalization symbols.
16433 extract_expsyms_cmds=
16435 case $host_os in
16436 cygwin* | mingw* | pw32* | cegcc*)
16437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16438 # When not using gcc, we currently assume that we are using
16439 # Microsoft Visual C++.
16440 if test "$GCC" != yes; then
16441 with_gnu_ld=no
16444 interix*)
16445 # we just hope/assume this is gcc and not c89 (= MSVC++)
16446 with_gnu_ld=yes
16448 openbsd*)
16449 with_gnu_ld=no
16451 esac
16453 ld_shlibs=yes
16455 # On some targets, GNU ld is compatible enough with the native linker
16456 # that we're better off using the native interface for both.
16457 lt_use_gnu_ld_interface=no
16458 if test "$with_gnu_ld" = yes; then
16459 case $host_os in
16460 aix*)
16461 # The AIX port of GNU ld has always aspired to compatibility
16462 # with the native linker. However, as the warning in the GNU ld
16463 # block says, versions before 2.19.5* couldn't really create working
16464 # shared libraries, regardless of the interface used.
16465 case `$LD -v 2>&1` in
16466 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16467 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16468 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16470 lt_use_gnu_ld_interface=yes
16472 esac
16475 lt_use_gnu_ld_interface=yes
16477 esac
16480 if test "$lt_use_gnu_ld_interface" = yes; then
16481 # If archive_cmds runs LD, not CC, wlarc should be empty
16482 wlarc='${wl}'
16484 # Set some defaults for GNU ld with shared library support. These
16485 # are reset later if shared libraries are not supported. Putting them
16486 # here allows them to be overridden if necessary.
16487 runpath_var=LD_RUN_PATH
16488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16489 export_dynamic_flag_spec='${wl}--export-dynamic'
16490 # ancient GNU ld didn't support --whole-archive et. al.
16491 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16492 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16493 else
16494 whole_archive_flag_spec=
16496 supports_anon_versioning=no
16497 case `$LD -v 2>&1` in
16498 *GNU\ gold*) supports_anon_versioning=yes ;;
16499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16502 *\ 2.11.*) ;; # other 2.11 versions
16503 *) supports_anon_versioning=yes ;;
16504 esac
16506 # See if GNU ld supports shared libraries.
16507 case $host_os in
16508 aix[3-9]*)
16509 # On AIX/PPC, the GNU linker is very broken
16510 if test "$host_cpu" != ia64; then
16511 ld_shlibs=no
16512 cat <<_LT_EOF 1>&2
16514 *** Warning: the GNU linker, at least up to release 2.19, is reported
16515 *** to be unable to reliably create shared libraries on AIX.
16516 *** Therefore, libtool is disabling shared libraries support. If you
16517 *** really care for shared libraries, you may want to install binutils
16518 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16519 *** You will then need to restart the configuration process.
16521 _LT_EOF
16525 amigaos*)
16526 case $host_cpu in
16527 powerpc)
16528 # see comment about AmigaOS4 .so support
16529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530 archive_expsym_cmds=''
16532 m68k)
16533 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)'
16534 hardcode_libdir_flag_spec='-L$libdir'
16535 hardcode_minus_L=yes
16537 esac
16540 beos*)
16541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16542 allow_undefined_flag=unsupported
16543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16544 # support --undefined. This deserves some investigation. FIXME
16545 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16546 else
16547 ld_shlibs=no
16551 cygwin* | mingw* | pw32* | cegcc*)
16552 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16553 # as there is no search path for DLLs.
16554 hardcode_libdir_flag_spec='-L$libdir'
16555 export_dynamic_flag_spec='${wl}--export-all-symbols'
16556 allow_undefined_flag=unsupported
16557 always_export_symbols=no
16558 enable_shared_with_static_runtimes=yes
16559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16561 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16563 # If the export-symbols file already is a .def file (1st line
16564 # is EXPORTS), use it as is; otherwise, prepend...
16565 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16566 cp $export_symbols $output_objdir/$soname.def;
16567 else
16568 echo EXPORTS > $output_objdir/$soname.def;
16569 cat $export_symbols >> $output_objdir/$soname.def;
16571 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16572 else
16573 ld_shlibs=no
16577 haiku*)
16578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579 link_all_deplibs=yes
16582 interix[3-9]*)
16583 hardcode_direct=no
16584 hardcode_shlibpath_var=no
16585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16586 export_dynamic_flag_spec='${wl}-E'
16587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16588 # Instead, shared libraries are loaded at an image base (0x10000000 by
16589 # default) and relocated if they conflict, which is a slow very memory
16590 # consuming and fragmenting process. To avoid this, we pick a random,
16591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16594 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'
16597 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16598 tmp_diet=no
16599 if test "$host_os" = linux-dietlibc; then
16600 case $cc_basename in
16601 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16602 esac
16604 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16605 && test "$tmp_diet" = no
16606 then
16607 tmp_addflag=' $pic_flag'
16608 tmp_sharedflag='-shared'
16609 case $cc_basename,$host_cpu in
16610 pgcc*) # Portland Group C compiler
16611 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'
16612 tmp_addflag=' $pic_flag'
16614 pgf77* | pgf90* | pgf95* | pgfortran*)
16615 # Portland Group f77 and f90 compilers
16616 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'
16617 tmp_addflag=' $pic_flag -Mnomain' ;;
16618 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16619 tmp_addflag=' -i_dynamic' ;;
16620 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16621 tmp_addflag=' -i_dynamic -nofor_main' ;;
16622 ifc* | ifort*) # Intel Fortran compiler
16623 tmp_addflag=' -nofor_main' ;;
16624 lf95*) # Lahey Fortran 8.1
16625 whole_archive_flag_spec=
16626 tmp_sharedflag='--shared' ;;
16627 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16628 tmp_sharedflag='-qmkshrobj'
16629 tmp_addflag= ;;
16630 nvcc*) # Cuda Compiler Driver 2.2
16631 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'
16632 compiler_needs_object=yes
16634 esac
16635 case `$CC -V 2>&1 | sed 5q` in
16636 *Sun\ C*) # Sun C 5.9
16637 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'
16638 compiler_needs_object=yes
16639 tmp_sharedflag='-G' ;;
16640 *Sun\ F*) # Sun Fortran 8.3
16641 tmp_sharedflag='-G' ;;
16642 esac
16643 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645 if test "x$supports_anon_versioning" = xyes; then
16646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16648 echo "local: *; };" >> $output_objdir/$libname.ver~
16649 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16652 case $cc_basename in
16653 xlf* | bgf* | bgxlf* | mpixlf*)
16654 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16655 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16656 hardcode_libdir_flag_spec=
16657 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16658 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16659 if test "x$supports_anon_versioning" = xyes; then
16660 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16661 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16662 echo "local: *; };" >> $output_objdir/$libname.ver~
16663 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16666 esac
16667 else
16668 ld_shlibs=no
16672 netbsd*)
16673 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16674 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16675 wlarc=
16676 else
16677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16682 solaris*)
16683 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16684 ld_shlibs=no
16685 cat <<_LT_EOF 1>&2
16687 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16688 *** create shared libraries on Solaris systems. Therefore, libtool
16689 *** is disabling shared libraries support. We urge you to upgrade GNU
16690 *** binutils to release 2.9.1 or newer. Another option is to modify
16691 *** your PATH or compiler configuration so that the native linker is
16692 *** used, and then restart.
16694 _LT_EOF
16695 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16698 else
16699 ld_shlibs=no
16703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16704 case `$LD -v 2>&1` in
16705 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16706 ld_shlibs=no
16707 cat <<_LT_EOF 1>&2
16709 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16710 *** reliably create shared libraries on SCO systems. Therefore, libtool
16711 *** is disabling shared libraries support. We urge you to upgrade GNU
16712 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16713 *** your PATH or compiler configuration so that the native linker is
16714 *** used, and then restart.
16716 _LT_EOF
16719 # For security reasons, it is highly recommended that you always
16720 # use absolute paths for naming shared libraries, and exclude the
16721 # DT_RUNPATH tag from executables and libraries. But doing so
16722 # requires that you compile everything twice, which is a pain.
16723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16727 else
16728 ld_shlibs=no
16731 esac
16734 sunos4*)
16735 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16736 wlarc=
16737 hardcode_direct=yes
16738 hardcode_shlibpath_var=no
16742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16744 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16745 else
16746 ld_shlibs=no
16749 esac
16751 if test "$ld_shlibs" = no; then
16752 runpath_var=
16753 hardcode_libdir_flag_spec=
16754 export_dynamic_flag_spec=
16755 whole_archive_flag_spec=
16757 else
16758 # PORTME fill in a description of your system's linker (not GNU ld)
16759 case $host_os in
16760 aix3*)
16761 allow_undefined_flag=unsupported
16762 always_export_symbols=yes
16763 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'
16764 # Note: this linker hardcodes the directories in LIBPATH if there
16765 # are no directories specified by -L.
16766 hardcode_minus_L=yes
16767 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16768 # Neither direct hardcoding nor static linking is supported with a
16769 # broken collect2.
16770 hardcode_direct=unsupported
16774 aix[4-9]*)
16775 if test "$host_cpu" = ia64; then
16776 # On IA64, the linker does run time linking by default, so we don't
16777 # have to do anything special.
16778 aix_use_runtimelinking=no
16779 exp_sym_flag='-Bexport'
16780 no_entry_flag=""
16781 else
16782 # If we're using GNU nm, then we don't want the "-C" option.
16783 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16784 # Also, AIX nm treats weak defined symbols like other global
16785 # defined symbols, whereas GNU nm marks them as "W".
16786 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16787 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'
16788 else
16789 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16791 aix_use_runtimelinking=no
16793 # Test if we are trying to use run time linking or normal
16794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16795 # need to do runtime linking.
16796 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16797 for ld_flag in $LDFLAGS; do
16798 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16799 aix_use_runtimelinking=yes
16800 break
16802 done
16804 esac
16806 exp_sym_flag='-bexport'
16807 no_entry_flag='-bnoentry'
16810 # When large executables or shared objects are built, AIX ld can
16811 # have problems creating the table of contents. If linking a library
16812 # or program results in "error TOC overflow" add -mminimal-toc to
16813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16816 archive_cmds=''
16817 hardcode_direct=yes
16818 hardcode_direct_absolute=yes
16819 hardcode_libdir_separator=':'
16820 link_all_deplibs=yes
16821 file_list_spec='${wl}-f,'
16823 if test "$GCC" = yes; then
16824 case $host_os in aix4.[012]|aix4.[012].*)
16825 # We only want to do this on AIX 4.2 and lower, the check
16826 # below for broken collect2 doesn't work under 4.3+
16827 collect2name=`${CC} -print-prog-name=collect2`
16828 if test -f "$collect2name" &&
16829 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16830 then
16831 # We have reworked collect2
16833 else
16834 # We have old collect2
16835 hardcode_direct=unsupported
16836 # It fails to find uninstalled libraries when the uninstalled
16837 # path is not listed in the libpath. Setting hardcode_minus_L
16838 # to unsupported forces relinking
16839 hardcode_minus_L=yes
16840 hardcode_libdir_flag_spec='-L$libdir'
16841 hardcode_libdir_separator=
16844 esac
16845 shared_flag='-shared'
16846 if test "$aix_use_runtimelinking" = yes; then
16847 shared_flag="$shared_flag "'${wl}-G'
16849 else
16850 # not using gcc
16851 if test "$host_cpu" = ia64; then
16852 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16853 # chokes on -Wl,-G. The following line is correct:
16854 shared_flag='-G'
16855 else
16856 if test "$aix_use_runtimelinking" = yes; then
16857 shared_flag='${wl}-G'
16858 else
16859 shared_flag='${wl}-bM:SRE'
16864 export_dynamic_flag_spec='${wl}-bexpall'
16865 # It seems that -bexpall does not export symbols beginning with
16866 # underscore (_), so it is better to generate a list of symbols to export.
16867 always_export_symbols=yes
16868 if test "$aix_use_runtimelinking" = yes; then
16869 # Warning - without using the other runtime loading flags (-brtl),
16870 # -berok will link without error, but may produce a broken library.
16871 allow_undefined_flag='-berok'
16872 # Determine the default libpath from the value encoded in an
16873 # empty executable.
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16878 main ()
16882 return 0;
16884 _ACEOF
16885 if ac_fn_c_try_link "$LINENO"; then :
16887 lt_aix_libpath_sed='
16888 /Import File Strings/,/^$/ {
16889 /^0/ {
16890 s/^0 *\(.*\)$/\1/
16894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16895 # Check for a 64-bit object if we didn't find anything.
16896 if test -z "$aix_libpath"; then
16897 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16900 rm -f core conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16905 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"
16906 else
16907 if test "$host_cpu" = ia64; then
16908 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16909 allow_undefined_flag="-z nodefs"
16910 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"
16911 else
16912 # Determine the default libpath from the value encoded in an
16913 # empty executable.
16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16915 /* end confdefs.h. */
16918 main ()
16922 return 0;
16924 _ACEOF
16925 if ac_fn_c_try_link "$LINENO"; then :
16927 lt_aix_libpath_sed='
16928 /Import File Strings/,/^$/ {
16929 /^0/ {
16930 s/^0 *\(.*\)$/\1/
16934 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16935 # Check for a 64-bit object if we didn't find anything.
16936 if test -z "$aix_libpath"; then
16937 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16940 rm -f core conftest.err conftest.$ac_objext \
16941 conftest$ac_exeext conftest.$ac_ext
16942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16944 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16945 # Warning - without using the other run time loading flags,
16946 # -berok will link without error, but may produce a broken library.
16947 no_undefined_flag=' ${wl}-bernotok'
16948 allow_undefined_flag=' ${wl}-berok'
16949 if test "$with_gnu_ld" = yes; then
16950 # We only use this code for GNU lds that support --whole-archive.
16951 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16952 else
16953 # Exported symbols can be pulled into shared objects from archives
16954 whole_archive_flag_spec='$convenience'
16956 archive_cmds_need_lc=yes
16957 # This is similar to how AIX traditionally builds its shared libraries.
16958 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'
16963 amigaos*)
16964 case $host_cpu in
16965 powerpc)
16966 # see comment about AmigaOS4 .so support
16967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16968 archive_expsym_cmds=''
16970 m68k)
16971 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)'
16972 hardcode_libdir_flag_spec='-L$libdir'
16973 hardcode_minus_L=yes
16975 esac
16978 bsdi[45]*)
16979 export_dynamic_flag_spec=-rdynamic
16982 cygwin* | mingw* | pw32* | cegcc*)
16983 # When not using gcc, we currently assume that we are using
16984 # Microsoft Visual C++.
16985 # hardcode_libdir_flag_spec is actually meaningless, as there is
16986 # no search path for DLLs.
16987 hardcode_libdir_flag_spec=' '
16988 allow_undefined_flag=unsupported
16989 # Tell ltmain to make .lib files, not .a files.
16990 libext=lib
16991 # Tell ltmain to make .dll files, not .so files.
16992 shrext_cmds=".dll"
16993 # FIXME: Setting linknames here is a bad hack.
16994 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16995 # The linker will automatically build a .lib file if we build a DLL.
16996 old_archive_from_new_cmds='true'
16997 # FIXME: Should let the user specify the lib program.
16998 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16999 fix_srcfile_path='`cygpath -w "$srcfile"`'
17000 enable_shared_with_static_runtimes=yes
17003 darwin* | rhapsody*)
17006 archive_cmds_need_lc=no
17007 hardcode_direct=no
17008 hardcode_automatic=yes
17009 hardcode_shlibpath_var=unsupported
17010 if test "$lt_cv_ld_force_load" = "yes"; then
17011 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\"`'
17012 else
17013 whole_archive_flag_spec=''
17015 link_all_deplibs=yes
17016 allow_undefined_flag="$_lt_dar_allow_undefined"
17017 case $cc_basename in
17018 ifort*) _lt_dar_can_shared=yes ;;
17019 *) _lt_dar_can_shared=$GCC ;;
17020 esac
17021 if test "$_lt_dar_can_shared" = "yes"; then
17022 output_verbose_link_cmd=func_echo_all
17023 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17024 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17025 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}"
17026 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}"
17028 else
17029 ld_shlibs=no
17034 dgux*)
17035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_libdir_flag_spec='-L$libdir'
17037 hardcode_shlibpath_var=no
17040 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17041 # support. Future versions do this automatically, but an explicit c++rt0.o
17042 # does not break anything, and helps significantly (at the cost of a little
17043 # extra space).
17044 freebsd2.2*)
17045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17046 hardcode_libdir_flag_spec='-R$libdir'
17047 hardcode_direct=yes
17048 hardcode_shlibpath_var=no
17051 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17052 freebsd2.*)
17053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054 hardcode_direct=yes
17055 hardcode_minus_L=yes
17056 hardcode_shlibpath_var=no
17059 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17060 freebsd* | dragonfly*)
17061 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17062 hardcode_libdir_flag_spec='-R$libdir'
17063 hardcode_direct=yes
17064 hardcode_shlibpath_var=no
17067 hpux9*)
17068 if test "$GCC" = yes; then
17069 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'
17070 else
17071 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'
17073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17074 hardcode_libdir_separator=:
17075 hardcode_direct=yes
17077 # hardcode_minus_L: Not really in the search PATH,
17078 # but as the default location of the library.
17079 hardcode_minus_L=yes
17080 export_dynamic_flag_spec='${wl}-E'
17083 hpux10*)
17084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17086 else
17087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17089 if test "$with_gnu_ld" = no; then
17090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17091 hardcode_libdir_flag_spec_ld='+b $libdir'
17092 hardcode_libdir_separator=:
17093 hardcode_direct=yes
17094 hardcode_direct_absolute=yes
17095 export_dynamic_flag_spec='${wl}-E'
17096 # hardcode_minus_L: Not really in the search PATH,
17097 # but as the default location of the library.
17098 hardcode_minus_L=yes
17102 hpux11*)
17103 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17104 case $host_cpu in
17105 hppa*64*)
17106 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17108 ia64*)
17109 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17112 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17114 esac
17115 else
17116 case $host_cpu in
17117 hppa*64*)
17118 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17120 ia64*)
17121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17125 # Older versions of the 11.00 compiler do not understand -b yet
17126 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17128 $as_echo_n "checking if $CC understands -b... " >&6; }
17129 if ${lt_cv_prog_compiler__b+:} false; then :
17130 $as_echo_n "(cached) " >&6
17131 else
17132 lt_cv_prog_compiler__b=no
17133 save_LDFLAGS="$LDFLAGS"
17134 LDFLAGS="$LDFLAGS -b"
17135 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17137 # The linker can only warn and ignore the option if not recognized
17138 # So say no if there are warnings
17139 if test -s conftest.err; then
17140 # Append any errors to the config.log.
17141 cat conftest.err 1>&5
17142 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17144 if diff conftest.exp conftest.er2 >/dev/null; then
17145 lt_cv_prog_compiler__b=yes
17147 else
17148 lt_cv_prog_compiler__b=yes
17151 $RM -r conftest*
17152 LDFLAGS="$save_LDFLAGS"
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17156 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17158 if test x"$lt_cv_prog_compiler__b" = xyes; then
17159 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17160 else
17161 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17165 esac
17167 if test "$with_gnu_ld" = no; then
17168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17169 hardcode_libdir_separator=:
17171 case $host_cpu in
17172 hppa*64*|ia64*)
17173 hardcode_direct=no
17174 hardcode_shlibpath_var=no
17177 hardcode_direct=yes
17178 hardcode_direct_absolute=yes
17179 export_dynamic_flag_spec='${wl}-E'
17181 # hardcode_minus_L: Not really in the search PATH,
17182 # but as the default location of the library.
17183 hardcode_minus_L=yes
17185 esac
17189 irix5* | irix6* | nonstopux*)
17190 if test "$GCC" = yes; then
17191 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'
17192 # Try to use the -exported_symbol ld option, if it does not
17193 # work, assume that -exports_file does not work either and
17194 # implicitly export all symbols.
17195 save_LDFLAGS="$LDFLAGS"
17196 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199 int foo(void) {}
17200 _ACEOF
17201 if ac_fn_c_try_link "$LINENO"; then :
17202 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'
17205 rm -f core conftest.err conftest.$ac_objext \
17206 conftest$ac_exeext conftest.$ac_ext
17207 LDFLAGS="$save_LDFLAGS"
17208 else
17209 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'
17210 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'
17212 archive_cmds_need_lc='no'
17213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17214 hardcode_libdir_separator=:
17215 inherit_rpath=yes
17216 link_all_deplibs=yes
17219 netbsd*)
17220 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17222 else
17223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17225 hardcode_libdir_flag_spec='-R$libdir'
17226 hardcode_direct=yes
17227 hardcode_shlibpath_var=no
17230 newsos6)
17231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17232 hardcode_direct=yes
17233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17234 hardcode_libdir_separator=:
17235 hardcode_shlibpath_var=no
17238 *nto* | *qnx*)
17241 openbsd*)
17242 if test -f /usr/libexec/ld.so; then
17243 hardcode_direct=yes
17244 hardcode_shlibpath_var=no
17245 hardcode_direct_absolute=yes
17246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17248 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17250 export_dynamic_flag_spec='${wl}-E'
17251 else
17252 case $host_os in
17253 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_libdir_flag_spec='-R$libdir'
17258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17261 esac
17263 else
17264 ld_shlibs=no
17268 os2*)
17269 hardcode_libdir_flag_spec='-L$libdir'
17270 hardcode_minus_L=yes
17271 allow_undefined_flag=unsupported
17272 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'
17273 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17276 osf3*)
17277 if test "$GCC" = yes; then
17278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17279 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'
17280 else
17281 allow_undefined_flag=' -expect_unresolved \*'
17282 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'
17284 archive_cmds_need_lc='no'
17285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17286 hardcode_libdir_separator=:
17289 osf4* | osf5*) # as osf3* with the addition of -msym flag
17290 if test "$GCC" = yes; then
17291 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17292 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'
17293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17294 else
17295 allow_undefined_flag=' -expect_unresolved \*'
17296 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'
17297 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~
17298 $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'
17300 # Both c and cxx compiler support -rpath directly
17301 hardcode_libdir_flag_spec='-rpath $libdir'
17303 archive_cmds_need_lc='no'
17304 hardcode_libdir_separator=:
17307 solaris*)
17308 no_undefined_flag=' -z defs'
17309 if test "$GCC" = yes; then
17310 wlarc='${wl}'
17311 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17313 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17314 else
17315 case `$CC -V 2>&1` in
17316 *"Compilers 5.0"*)
17317 wlarc=''
17318 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17320 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17323 wlarc='${wl}'
17324 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17326 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17328 esac
17330 hardcode_libdir_flag_spec='-R$libdir'
17331 hardcode_shlibpath_var=no
17332 case $host_os in
17333 solaris2.[0-5] | solaris2.[0-5].*) ;;
17335 # The compiler driver will combine and reorder linker options,
17336 # but understands `-z linker_flag'. GCC discards it without `$wl',
17337 # but is careful enough not to reorder.
17338 # Supported since Solaris 2.6 (maybe 2.5.1?)
17339 if test "$GCC" = yes; then
17340 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17341 else
17342 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17345 esac
17346 link_all_deplibs=yes
17349 sunos4*)
17350 if test "x$host_vendor" = xsequent; then
17351 # Use $CC to link under sequent, because it throws in some extra .o
17352 # files that make .init and .fini sections work.
17353 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17354 else
17355 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17357 hardcode_libdir_flag_spec='-L$libdir'
17358 hardcode_direct=yes
17359 hardcode_minus_L=yes
17360 hardcode_shlibpath_var=no
17363 sysv4)
17364 case $host_vendor in
17365 sni)
17366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_direct=yes # is this really true???
17369 siemens)
17370 ## LD is ld it makes a PLAMLIB
17371 ## CC just makes a GrossModule.
17372 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17373 reload_cmds='$CC -r -o $output$reload_objs'
17374 hardcode_direct=no
17376 motorola)
17377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17380 esac
17381 runpath_var='LD_RUN_PATH'
17382 hardcode_shlibpath_var=no
17385 sysv4.3*)
17386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_shlibpath_var=no
17388 export_dynamic_flag_spec='-Bexport'
17391 sysv4*MP*)
17392 if test -d /usr/nec; then
17393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17394 hardcode_shlibpath_var=no
17395 runpath_var=LD_RUN_PATH
17396 hardcode_runpath_var=yes
17397 ld_shlibs=yes
17401 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17402 no_undefined_flag='${wl}-z,text'
17403 archive_cmds_need_lc=no
17404 hardcode_shlibpath_var=no
17405 runpath_var='LD_RUN_PATH'
17407 if test "$GCC" = yes; then
17408 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17410 else
17411 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17412 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416 sysv5* | sco3.2v5* | sco5v6*)
17417 # Note: We can NOT use -z defs as we might desire, because we do not
17418 # link with -lc, and that would cause any symbols used from libc to
17419 # always be unresolved, which means just about no library would
17420 # ever link correctly. If we're not using GNU ld we use -z text
17421 # though, which does catch some bad symbols but isn't as heavy-handed
17422 # as -z defs.
17423 no_undefined_flag='${wl}-z,text'
17424 allow_undefined_flag='${wl}-z,nodefs'
17425 archive_cmds_need_lc=no
17426 hardcode_shlibpath_var=no
17427 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17428 hardcode_libdir_separator=':'
17429 link_all_deplibs=yes
17430 export_dynamic_flag_spec='${wl}-Bexport'
17431 runpath_var='LD_RUN_PATH'
17433 if test "$GCC" = yes; then
17434 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17435 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17436 else
17437 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17438 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17442 uts4*)
17443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_libdir_flag_spec='-L$libdir'
17445 hardcode_shlibpath_var=no
17449 ld_shlibs=no
17451 esac
17453 if test x$host_vendor = xsni; then
17454 case $host in
17455 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17456 export_dynamic_flag_spec='${wl}-Blargedynsym'
17458 esac
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17463 $as_echo "$ld_shlibs" >&6; }
17464 test "$ld_shlibs" = no && can_build_shared=no
17466 with_gnu_ld=$with_gnu_ld
17483 # Do we need to explicitly link libc?
17485 case "x$archive_cmds_need_lc" in
17486 x|xyes)
17487 # Assume -lc should be added
17488 archive_cmds_need_lc=yes
17490 if test "$enable_shared" = yes && test "$GCC" = yes; then
17491 case $archive_cmds in
17492 *'~'*)
17493 # FIXME: we may have to deal with multi-command sequences.
17495 '$CC '*)
17496 # Test whether the compiler implicitly links with -lc since on some
17497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17498 # to ld, don't add -lc before -lgcc.
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17500 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17501 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17502 $as_echo_n "(cached) " >&6
17503 else
17504 $RM conftest*
17505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17508 (eval $ac_compile) 2>&5
17509 ac_status=$?
17510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17511 test $ac_status = 0; } 2>conftest.err; then
17512 soname=conftest
17513 lib=conftest
17514 libobjs=conftest.$ac_objext
17515 deplibs=
17516 wl=$lt_prog_compiler_wl
17517 pic_flag=$lt_prog_compiler_pic
17518 compiler_flags=-v
17519 linker_flags=-v
17520 verstring=
17521 output_objdir=.
17522 libname=conftest
17523 lt_save_allow_undefined_flag=$allow_undefined_flag
17524 allow_undefined_flag=
17525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17526 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17527 ac_status=$?
17528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17529 test $ac_status = 0; }
17530 then
17531 lt_cv_archive_cmds_need_lc=no
17532 else
17533 lt_cv_archive_cmds_need_lc=yes
17535 allow_undefined_flag=$lt_save_allow_undefined_flag
17536 else
17537 cat conftest.err 1>&5
17539 $RM conftest*
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17543 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17544 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17546 esac
17549 esac
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17708 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17710 if test "$GCC" = yes; then
17711 case $host_os in
17712 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17713 *) lt_awk_arg="/^libraries:/" ;;
17714 esac
17715 case $host_os in
17716 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17717 *) lt_sed_strip_eq="s,=/,/,g" ;;
17718 esac
17719 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17720 case $lt_search_path_spec in
17721 *\;*)
17722 # if the path contains ";" then we assume it to be the separator
17723 # otherwise default to the standard path separator (i.e. ":") - it is
17724 # assumed that no part of a normal pathname contains ";" but that should
17725 # okay in the real world where ";" in dirpaths is itself problematic.
17726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17731 esac
17732 # Ok, now we have the path, separated by spaces, we can step through it
17733 # and add multilib dir if necessary.
17734 lt_tmp_lt_search_path_spec=
17735 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17736 for lt_sys_path in $lt_search_path_spec; do
17737 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17739 else
17740 test -d "$lt_sys_path" && \
17741 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17743 done
17744 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17745 BEGIN {RS=" "; FS="/|\n";} {
17746 lt_foo="";
17747 lt_count=0;
17748 for (lt_i = NF; lt_i > 0; lt_i--) {
17749 if ($lt_i != "" && $lt_i != ".") {
17750 if ($lt_i == "..") {
17751 lt_count++;
17752 } else {
17753 if (lt_count == 0) {
17754 lt_foo="/" $lt_i lt_foo;
17755 } else {
17756 lt_count--;
17761 if (lt_foo != "") { lt_freq[lt_foo]++; }
17762 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17764 # AWK program above erroneously prepends '/' to C:/dos/paths
17765 # for these hosts.
17766 case $host_os in
17767 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17768 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17769 esac
17770 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17771 else
17772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17774 library_names_spec=
17775 libname_spec='lib$name'
17776 soname_spec=
17777 shrext_cmds=".so"
17778 postinstall_cmds=
17779 postuninstall_cmds=
17780 finish_cmds=
17781 finish_eval=
17782 shlibpath_var=
17783 shlibpath_overrides_runpath=unknown
17784 version_type=none
17785 dynamic_linker="$host_os ld.so"
17786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17787 need_lib_prefix=unknown
17788 hardcode_into_libs=no
17790 # when you set need_version to no, make sure it does not cause -set_version
17791 # flags to be left without arguments
17792 need_version=unknown
17794 case $host_os in
17795 aix3*)
17796 version_type=linux
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17798 shlibpath_var=LIBPATH
17800 # AIX 3 has no versioning support, so we append a major version to the name.
17801 soname_spec='${libname}${release}${shared_ext}$major'
17804 aix[4-9]*)
17805 version_type=linux
17806 need_lib_prefix=no
17807 need_version=no
17808 hardcode_into_libs=yes
17809 if test "$host_cpu" = ia64; then
17810 # AIX 5 supports IA64
17811 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 else
17814 # With GCC up to 2.95.x, collect2 would create an import file
17815 # for dependence libraries. The import file would start with
17816 # the line `#! .'. This would cause the generated library to
17817 # depend on `.', always an invalid library. This was fixed in
17818 # development snapshots of GCC prior to 3.0.
17819 case $host_os in
17820 aix4 | aix4.[01] | aix4.[01].*)
17821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17822 echo ' yes '
17823 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17825 else
17826 can_build_shared=no
17829 esac
17830 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17831 # soname into executable. Probably we can add versioning support to
17832 # collect2, so additional links can be useful in future.
17833 if test "$aix_use_runtimelinking" = yes; then
17834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17835 # instead of lib<name>.a to let people know that these are not
17836 # typical AIX shared libraries.
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 else
17839 # We preserve .a as extension for shared libraries through AIX4.2
17840 # and later when we are not doing run time linking.
17841 library_names_spec='${libname}${release}.a $libname.a'
17842 soname_spec='${libname}${release}${shared_ext}$major'
17844 shlibpath_var=LIBPATH
17848 amigaos*)
17849 case $host_cpu in
17850 powerpc)
17851 # Since July 2007 AmigaOS4 officially supports .so libraries.
17852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 m68k)
17856 library_names_spec='$libname.ixlibrary $libname.a'
17857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17858 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'
17860 esac
17863 beos*)
17864 library_names_spec='${libname}${shared_ext}'
17865 dynamic_linker="$host_os ld.so"
17866 shlibpath_var=LIBRARY_PATH
17869 bsdi[45]*)
17870 version_type=linux
17871 need_version=no
17872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878 # the default ld.so.conf also contains /usr/contrib/lib and
17879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880 # libtool to hard-code these into programs
17883 cygwin* | mingw* | pw32* | cegcc*)
17884 version_type=windows
17885 shrext_cmds=".dll"
17886 need_version=no
17887 need_lib_prefix=no
17889 case $GCC,$host_os in
17890 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17891 library_names_spec='$libname.dll.a'
17892 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17893 postinstall_cmds='base_file=`basename \${file}`~
17894 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17895 dldir=$destdir/`dirname \$dlpath`~
17896 test -d \$dldir || mkdir -p \$dldir~
17897 $install_prog $dir/$dlname \$dldir/$dlname~
17898 chmod a+x \$dldir/$dlname~
17899 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17900 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17903 dlpath=$dir/\$dldll~
17904 $RM \$dlpath'
17905 shlibpath_overrides_runpath=yes
17907 case $host_os in
17908 cygwin*)
17909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17910 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17912 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17914 mingw* | cegcc*)
17915 # MinGW DLLs use traditional 'lib' prefix
17916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17918 pw32*)
17919 # pw32 DLLs use 'pw' prefix rather than 'lib'
17920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17922 esac
17926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17928 esac
17929 dynamic_linker='Win32 ld.exe'
17930 # FIXME: first we should search . and the directory the executable is in
17931 shlibpath_var=PATH
17934 darwin* | rhapsody*)
17935 dynamic_linker="$host_os dyld"
17936 version_type=darwin
17937 need_lib_prefix=no
17938 need_version=no
17939 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17940 soname_spec='${libname}${release}${major}$shared_ext'
17941 shlibpath_overrides_runpath=yes
17942 shlibpath_var=DYLD_LIBRARY_PATH
17943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17945 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17949 dgux*)
17950 version_type=linux
17951 need_lib_prefix=no
17952 need_version=no
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17954 soname_spec='${libname}${release}${shared_ext}$major'
17955 shlibpath_var=LD_LIBRARY_PATH
17958 freebsd* | dragonfly*)
17959 # DragonFly does not have aout. When/if they implement a new
17960 # versioning mechanism, adjust this.
17961 if test -x /usr/bin/objformat; then
17962 objformat=`/usr/bin/objformat`
17963 else
17964 case $host_os in
17965 freebsd[23].*) objformat=aout ;;
17966 *) objformat=elf ;;
17967 esac
17969 version_type=freebsd-$objformat
17970 case $version_type in
17971 freebsd-elf*)
17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17973 need_version=no
17974 need_lib_prefix=no
17976 freebsd-*)
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17978 need_version=yes
17980 esac
17981 shlibpath_var=LD_LIBRARY_PATH
17982 case $host_os in
17983 freebsd2.*)
17984 shlibpath_overrides_runpath=yes
17986 freebsd3.[01]* | freebsdelf3.[01]*)
17987 shlibpath_overrides_runpath=yes
17988 hardcode_into_libs=yes
17990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17992 shlibpath_overrides_runpath=no
17993 hardcode_into_libs=yes
17995 *) # from 4.6 on, and DragonFly
17996 shlibpath_overrides_runpath=yes
17997 hardcode_into_libs=yes
17999 esac
18002 gnu*)
18003 version_type=linux
18004 need_lib_prefix=no
18005 need_version=no
18006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18007 soname_spec='${libname}${release}${shared_ext}$major'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 hardcode_into_libs=yes
18012 haiku*)
18013 version_type=linux
18014 need_lib_prefix=no
18015 need_version=no
18016 dynamic_linker="$host_os runtime_loader"
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LIBRARY_PATH
18020 shlibpath_overrides_runpath=yes
18021 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18022 hardcode_into_libs=yes
18025 hpux9* | hpux10* | hpux11*)
18026 # Give a soname corresponding to the major version so that dld.sl refuses to
18027 # link against other versions.
18028 version_type=sunos
18029 need_lib_prefix=no
18030 need_version=no
18031 case $host_cpu in
18032 ia64*)
18033 shrext_cmds='.so'
18034 hardcode_into_libs=yes
18035 dynamic_linker="$host_os dld.so"
18036 shlibpath_var=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039 soname_spec='${libname}${release}${shared_ext}$major'
18040 if test "X$HPUX_IA64_MODE" = X32; then
18041 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18042 else
18043 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18047 hppa*64*)
18048 shrext_cmds='.sl'
18049 hardcode_into_libs=yes
18050 dynamic_linker="$host_os dld.sl"
18051 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18059 shrext_cmds='.sl'
18060 dynamic_linker="$host_os dld.sl"
18061 shlibpath_var=SHLIB_PATH
18062 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064 soname_spec='${libname}${release}${shared_ext}$major'
18066 esac
18067 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18068 postinstall_cmds='chmod 555 $lib'
18069 # or fails outright, so override atomically:
18070 install_override_mode=555
18073 interix[3-9]*)
18074 version_type=linux
18075 need_lib_prefix=no
18076 need_version=no
18077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 shlibpath_overrides_runpath=no
18082 hardcode_into_libs=yes
18085 irix5* | irix6* | nonstopux*)
18086 case $host_os in
18087 nonstopux*) version_type=nonstopux ;;
18089 if test "$lt_cv_prog_gnu_ld" = yes; then
18090 version_type=linux
18091 else
18092 version_type=irix
18093 fi ;;
18094 esac
18095 need_lib_prefix=no
18096 need_version=no
18097 soname_spec='${libname}${release}${shared_ext}$major'
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18099 case $host_os in
18100 irix5* | nonstopux*)
18101 libsuff= shlibsuff=
18104 case $LD in # libtool.m4 will add one of these switches to LD
18105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18106 libsuff= shlibsuff= libmagic=32-bit;;
18107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18108 libsuff=32 shlibsuff=N32 libmagic=N32;;
18109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18111 *) libsuff= shlibsuff= libmagic=never-match;;
18112 esac
18114 esac
18115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18116 shlibpath_overrides_runpath=no
18117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18119 hardcode_into_libs=yes
18122 # No shared lib support for Linux oldld, aout, or coff.
18123 linux*oldld* | linux*aout* | linux*coff*)
18124 dynamic_linker=no
18127 # This must be Linux ELF.
18128 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18129 version_type=linux
18130 need_lib_prefix=no
18131 need_version=no
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18135 shlibpath_var=LD_LIBRARY_PATH
18136 shlibpath_overrides_runpath=no
18138 # Some binutils ld are patched to set DT_RUNPATH
18139 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 lt_cv_shlibpath_overrides_runpath=no
18143 save_LDFLAGS=$LDFLAGS
18144 save_libdir=$libdir
18145 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18146 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18151 main ()
18155 return 0;
18157 _ACEOF
18158 if ac_fn_c_try_link "$LINENO"; then :
18159 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18160 lt_cv_shlibpath_overrides_runpath=yes
18163 rm -f core conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18165 LDFLAGS=$save_LDFLAGS
18166 libdir=$save_libdir
18170 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18172 # This implies no fast_install, which is unacceptable.
18173 # Some rework will be needed to allow for fast_install
18174 # before this can be enabled.
18175 hardcode_into_libs=yes
18177 # Append ld.so.conf contents to the search path
18178 if test -f /etc/ld.so.conf; then
18179 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' ' '`
18180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18183 # We used to test for /lib/ld.so.1 and disable shared libraries on
18184 # powerpc, because MkLinux only supported shared libraries with the
18185 # GNU dynamic linker. Since this was broken with cross compilers,
18186 # most powerpc-linux boxes support dynamic linking these days and
18187 # people can always --disable-shared, the test was removed, and we
18188 # assume the GNU/Linux dynamic linker is in use.
18189 dynamic_linker='GNU/Linux ld.so'
18192 netbsd*)
18193 version_type=sunos
18194 need_lib_prefix=no
18195 need_version=no
18196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18199 dynamic_linker='NetBSD (a.out) ld.so'
18200 else
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18202 soname_spec='${libname}${release}${shared_ext}$major'
18203 dynamic_linker='NetBSD ld.elf_so'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath=yes
18207 hardcode_into_libs=yes
18210 newsos6)
18211 version_type=linux
18212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 shlibpath_overrides_runpath=yes
18217 *nto* | *qnx*)
18218 version_type=qnx
18219 need_lib_prefix=no
18220 need_version=no
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18222 soname_spec='${libname}${release}${shared_ext}$major'
18223 shlibpath_var=LD_LIBRARY_PATH
18224 shlibpath_overrides_runpath=no
18225 hardcode_into_libs=yes
18226 dynamic_linker='ldqnx.so'
18229 openbsd*)
18230 version_type=sunos
18231 sys_lib_dlsearch_path_spec="/usr/lib"
18232 need_lib_prefix=no
18233 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18234 case $host_os in
18235 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18236 *) need_version=no ;;
18237 esac
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18242 case $host_os in
18243 openbsd2.[89] | openbsd2.[89].*)
18244 shlibpath_overrides_runpath=no
18247 shlibpath_overrides_runpath=yes
18249 esac
18250 else
18251 shlibpath_overrides_runpath=yes
18255 os2*)
18256 libname_spec='$name'
18257 shrext_cmds=".dll"
18258 need_lib_prefix=no
18259 library_names_spec='$libname${shared_ext} $libname.a'
18260 dynamic_linker='OS/2 ld.exe'
18261 shlibpath_var=LIBPATH
18264 osf3* | osf4* | osf5*)
18265 version_type=osf
18266 need_lib_prefix=no
18267 need_version=no
18268 soname_spec='${libname}${release}${shared_ext}$major'
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 shlibpath_var=LD_LIBRARY_PATH
18271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18272 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18275 rdos*)
18276 dynamic_linker=no
18279 solaris*)
18280 version_type=linux
18281 need_lib_prefix=no
18282 need_version=no
18283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18284 soname_spec='${libname}${release}${shared_ext}$major'
18285 shlibpath_var=LD_LIBRARY_PATH
18286 shlibpath_overrides_runpath=yes
18287 hardcode_into_libs=yes
18288 # ldd complains unless libraries are executable
18289 postinstall_cmds='chmod +x $lib'
18292 sunos4*)
18293 version_type=sunos
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18296 shlibpath_var=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath=yes
18298 if test "$with_gnu_ld" = yes; then
18299 need_lib_prefix=no
18301 need_version=yes
18304 sysv4 | sysv4.3*)
18305 version_type=linux
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec='${libname}${release}${shared_ext}$major'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 case $host_vendor in
18310 sni)
18311 shlibpath_overrides_runpath=no
18312 need_lib_prefix=no
18313 runpath_var=LD_RUN_PATH
18315 siemens)
18316 need_lib_prefix=no
18318 motorola)
18319 need_lib_prefix=no
18320 need_version=no
18321 shlibpath_overrides_runpath=no
18322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18324 esac
18327 sysv4*MP*)
18328 if test -d /usr/nec ;then
18329 version_type=linux
18330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18331 soname_spec='$libname${shared_ext}.$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18337 version_type=freebsd-elf
18338 need_lib_prefix=no
18339 need_version=no
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 hardcode_into_libs=yes
18345 if test "$with_gnu_ld" = yes; then
18346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18347 else
18348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18349 case $host_os in
18350 sco3.2v5*)
18351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18353 esac
18355 sys_lib_dlsearch_path_spec='/usr/lib'
18358 tpf*)
18359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18360 version_type=linux
18361 need_lib_prefix=no
18362 need_version=no
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 shlibpath_overrides_runpath=no
18366 hardcode_into_libs=yes
18369 uts4*)
18370 version_type=linux
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LD_LIBRARY_PATH
18377 dynamic_linker=no
18379 esac
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18381 $as_echo "$dynamic_linker" >&6; }
18382 test "$dynamic_linker" = no && can_build_shared=no
18384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18385 if test "$GCC" = yes; then
18386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18389 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18390 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18393 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18488 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18489 hardcode_action=
18490 if test -n "$hardcode_libdir_flag_spec" ||
18491 test -n "$runpath_var" ||
18492 test "X$hardcode_automatic" = "Xyes" ; then
18494 # We can hardcode non-existent directories.
18495 if test "$hardcode_direct" != no &&
18496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18497 # have to relink, otherwise we might link with an installed library
18498 # when we should be linking with a yet-to-be-installed one
18499 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18500 test "$hardcode_minus_L" != no; then
18501 # Linking always hardcodes the temporary library directory.
18502 hardcode_action=relink
18503 else
18504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18505 hardcode_action=immediate
18507 else
18508 # We cannot hardcode anything, or else we can only hardcode existing
18509 # directories.
18510 hardcode_action=unsupported
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18513 $as_echo "$hardcode_action" >&6; }
18515 if test "$hardcode_action" = relink ||
18516 test "$inherit_rpath" = yes; then
18517 # Fast installation is not supported
18518 enable_fast_install=no
18519 elif test "$shlibpath_overrides_runpath" = yes ||
18520 test "$enable_shared" = no; then
18521 # Fast installation is not necessary
18522 enable_fast_install=needless
18530 if test "x$enable_dlopen" != xyes; then
18531 enable_dlopen=unknown
18532 enable_dlopen_self=unknown
18533 enable_dlopen_self_static=unknown
18534 else
18535 lt_cv_dlopen=no
18536 lt_cv_dlopen_libs=
18538 case $host_os in
18539 beos*)
18540 lt_cv_dlopen="load_add_on"
18541 lt_cv_dlopen_libs=
18542 lt_cv_dlopen_self=yes
18545 mingw* | pw32* | cegcc*)
18546 lt_cv_dlopen="LoadLibrary"
18547 lt_cv_dlopen_libs=
18550 cygwin*)
18551 lt_cv_dlopen="dlopen"
18552 lt_cv_dlopen_libs=
18555 darwin*)
18556 # if libdl is installed we need to link against it
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18559 if ${ac_cv_lib_dl_dlopen+:} false; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 ac_check_lib_save_LIBS=$LIBS
18563 LIBS="-ldl $LIBS"
18564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18565 /* end confdefs.h. */
18567 /* Override any GCC internal prototype to avoid an error.
18568 Use char because int might match the return type of a GCC
18569 builtin and then its argument prototype would still apply. */
18570 #ifdef __cplusplus
18571 extern "C"
18572 #endif
18573 char dlopen ();
18575 main ()
18577 return dlopen ();
18579 return 0;
18581 _ACEOF
18582 if ac_fn_c_try_link "$LINENO"; then :
18583 ac_cv_lib_dl_dlopen=yes
18584 else
18585 ac_cv_lib_dl_dlopen=no
18587 rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18589 LIBS=$ac_check_lib_save_LIBS
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18593 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18595 else
18597 lt_cv_dlopen="dyld"
18598 lt_cv_dlopen_libs=
18599 lt_cv_dlopen_self=yes
18606 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18607 if test "x$ac_cv_func_shl_load" = xyes; then :
18608 lt_cv_dlopen="shl_load"
18609 else
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18611 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18612 if ${ac_cv_lib_dld_shl_load+:} false; then :
18613 $as_echo_n "(cached) " >&6
18614 else
18615 ac_check_lib_save_LIBS=$LIBS
18616 LIBS="-ldld $LIBS"
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char shl_load ();
18628 main ()
18630 return shl_load ();
18632 return 0;
18634 _ACEOF
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 ac_cv_lib_dld_shl_load=yes
18637 else
18638 ac_cv_lib_dld_shl_load=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18645 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18646 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18647 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18648 else
18649 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18650 if test "x$ac_cv_func_dlopen" = xyes; then :
18651 lt_cv_dlopen="dlopen"
18652 else
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18654 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18655 if ${ac_cv_lib_dl_dlopen+:} false; then :
18656 $as_echo_n "(cached) " >&6
18657 else
18658 ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-ldl $LIBS"
18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18663 /* Override any GCC internal prototype to avoid an error.
18664 Use char because int might match the return type of a GCC
18665 builtin and then its argument prototype would still apply. */
18666 #ifdef __cplusplus
18667 extern "C"
18668 #endif
18669 char dlopen ();
18671 main ()
18673 return dlopen ();
18675 return 0;
18677 _ACEOF
18678 if ac_fn_c_try_link "$LINENO"; then :
18679 ac_cv_lib_dl_dlopen=yes
18680 else
18681 ac_cv_lib_dl_dlopen=no
18683 rm -f core conftest.err conftest.$ac_objext \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18689 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18691 else
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18694 if ${ac_cv_lib_svld_dlopen+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18697 ac_check_lib_save_LIBS=$LIBS
18698 LIBS="-lsvld $LIBS"
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18705 #ifdef __cplusplus
18706 extern "C"
18707 #endif
18708 char dlopen ();
18710 main ()
18712 return dlopen ();
18714 return 0;
18716 _ACEOF
18717 if ac_fn_c_try_link "$LINENO"; then :
18718 ac_cv_lib_svld_dlopen=yes
18719 else
18720 ac_cv_lib_svld_dlopen=no
18722 rm -f core conftest.err conftest.$ac_objext \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18727 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18728 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18730 else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18732 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18733 if ${ac_cv_lib_dld_dld_link+:} false; then :
18734 $as_echo_n "(cached) " >&6
18735 else
18736 ac_check_lib_save_LIBS=$LIBS
18737 LIBS="-ldld $LIBS"
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18744 #ifdef __cplusplus
18745 extern "C"
18746 #endif
18747 char dld_link ();
18749 main ()
18751 return dld_link ();
18753 return 0;
18755 _ACEOF
18756 if ac_fn_c_try_link "$LINENO"; then :
18757 ac_cv_lib_dld_dld_link=yes
18758 else
18759 ac_cv_lib_dld_dld_link=no
18761 rm -f core conftest.err conftest.$ac_objext \
18762 conftest$ac_exeext conftest.$ac_ext
18763 LIBS=$ac_check_lib_save_LIBS
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18766 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18767 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18768 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18787 esac
18789 if test "x$lt_cv_dlopen" != xno; then
18790 enable_dlopen=yes
18791 else
18792 enable_dlopen=no
18795 case $lt_cv_dlopen in
18796 dlopen)
18797 save_CPPFLAGS="$CPPFLAGS"
18798 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18800 save_LDFLAGS="$LDFLAGS"
18801 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18803 save_LIBS="$LIBS"
18804 LIBS="$lt_cv_dlopen_libs $LIBS"
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18807 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18808 if ${lt_cv_dlopen_self+:} false; then :
18809 $as_echo_n "(cached) " >&6
18810 else
18811 if test "$cross_compiling" = yes; then :
18812 lt_cv_dlopen_self=cross
18813 else
18814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18815 lt_status=$lt_dlunknown
18816 cat > conftest.$ac_ext <<_LT_EOF
18817 #line 18817 "configure"
18818 #include "confdefs.h"
18820 #if HAVE_DLFCN_H
18821 #include <dlfcn.h>
18822 #endif
18824 #include <stdio.h>
18826 #ifdef RTLD_GLOBAL
18827 # define LT_DLGLOBAL RTLD_GLOBAL
18828 #else
18829 # ifdef DL_GLOBAL
18830 # define LT_DLGLOBAL DL_GLOBAL
18831 # else
18832 # define LT_DLGLOBAL 0
18833 # endif
18834 #endif
18836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18837 find out it does not work in some platform. */
18838 #ifndef LT_DLLAZY_OR_NOW
18839 # ifdef RTLD_LAZY
18840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18841 # else
18842 # ifdef DL_LAZY
18843 # define LT_DLLAZY_OR_NOW DL_LAZY
18844 # else
18845 # ifdef RTLD_NOW
18846 # define LT_DLLAZY_OR_NOW RTLD_NOW
18847 # else
18848 # ifdef DL_NOW
18849 # define LT_DLLAZY_OR_NOW DL_NOW
18850 # else
18851 # define LT_DLLAZY_OR_NOW 0
18852 # endif
18853 # endif
18854 # endif
18855 # endif
18856 #endif
18858 /* When -fvisbility=hidden is used, assume the code has been annotated
18859 correspondingly for the symbols needed. */
18860 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18861 void fnord () __attribute__((visibility("default")));
18862 #endif
18864 void fnord () { int i=42; }
18865 int main ()
18867 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18868 int status = $lt_dlunknown;
18870 if (self)
18872 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18873 else
18875 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18876 else puts (dlerror ());
18878 /* dlclose (self); */
18880 else
18881 puts (dlerror ());
18883 return status;
18885 _LT_EOF
18886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18887 (eval $ac_link) 2>&5
18888 ac_status=$?
18889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18890 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18891 (./conftest; exit; ) >&5 2>/dev/null
18892 lt_status=$?
18893 case x$lt_status in
18894 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18895 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18896 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18897 esac
18898 else :
18899 # compilation failed
18900 lt_cv_dlopen_self=no
18903 rm -fr conftest*
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18908 $as_echo "$lt_cv_dlopen_self" >&6; }
18910 if test "x$lt_cv_dlopen_self" = xyes; then
18911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18913 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18914 if ${lt_cv_dlopen_self_static+:} false; then :
18915 $as_echo_n "(cached) " >&6
18916 else
18917 if test "$cross_compiling" = yes; then :
18918 lt_cv_dlopen_self_static=cross
18919 else
18920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18921 lt_status=$lt_dlunknown
18922 cat > conftest.$ac_ext <<_LT_EOF
18923 #line 18923 "configure"
18924 #include "confdefs.h"
18926 #if HAVE_DLFCN_H
18927 #include <dlfcn.h>
18928 #endif
18930 #include <stdio.h>
18932 #ifdef RTLD_GLOBAL
18933 # define LT_DLGLOBAL RTLD_GLOBAL
18934 #else
18935 # ifdef DL_GLOBAL
18936 # define LT_DLGLOBAL DL_GLOBAL
18937 # else
18938 # define LT_DLGLOBAL 0
18939 # endif
18940 #endif
18942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18943 find out it does not work in some platform. */
18944 #ifndef LT_DLLAZY_OR_NOW
18945 # ifdef RTLD_LAZY
18946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18947 # else
18948 # ifdef DL_LAZY
18949 # define LT_DLLAZY_OR_NOW DL_LAZY
18950 # else
18951 # ifdef RTLD_NOW
18952 # define LT_DLLAZY_OR_NOW RTLD_NOW
18953 # else
18954 # ifdef DL_NOW
18955 # define LT_DLLAZY_OR_NOW DL_NOW
18956 # else
18957 # define LT_DLLAZY_OR_NOW 0
18958 # endif
18959 # endif
18960 # endif
18961 # endif
18962 #endif
18964 /* When -fvisbility=hidden is used, assume the code has been annotated
18965 correspondingly for the symbols needed. */
18966 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18967 void fnord () __attribute__((visibility("default")));
18968 #endif
18970 void fnord () { int i=42; }
18971 int main ()
18973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18974 int status = $lt_dlunknown;
18976 if (self)
18978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18979 else
18981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18982 else puts (dlerror ());
18984 /* dlclose (self); */
18986 else
18987 puts (dlerror ());
18989 return status;
18991 _LT_EOF
18992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18993 (eval $ac_link) 2>&5
18994 ac_status=$?
18995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18997 (./conftest; exit; ) >&5 2>/dev/null
18998 lt_status=$?
18999 case x$lt_status in
19000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19002 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19003 esac
19004 else :
19005 # compilation failed
19006 lt_cv_dlopen_self_static=no
19009 rm -fr conftest*
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19014 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19017 CPPFLAGS="$save_CPPFLAGS"
19018 LDFLAGS="$save_LDFLAGS"
19019 LIBS="$save_LIBS"
19021 esac
19023 case $lt_cv_dlopen_self in
19024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19025 *) enable_dlopen_self=unknown ;;
19026 esac
19028 case $lt_cv_dlopen_self_static in
19029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19030 *) enable_dlopen_self_static=unknown ;;
19031 esac
19050 striplib=
19051 old_striplib=
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19053 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19054 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19055 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19056 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19058 $as_echo "yes" >&6; }
19059 else
19060 # FIXME - insert some real tests, host_os isn't really good enough
19061 case $host_os in
19062 darwin*)
19063 if test -n "$STRIP" ; then
19064 striplib="$STRIP -x"
19065 old_striplib="$STRIP -S"
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19067 $as_echo "yes" >&6; }
19068 else
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 $as_echo "no" >&6; }
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075 $as_echo "no" >&6; }
19077 esac
19091 # Report which library types will actually be built
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19093 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19095 $as_echo "$can_build_shared" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19098 $as_echo_n "checking whether to build shared libraries... " >&6; }
19099 test "$can_build_shared" = "no" && enable_shared=no
19101 # On AIX, shared libraries and static libraries use the same namespace, and
19102 # are all built from PIC.
19103 case $host_os in
19104 aix3*)
19105 test "$enable_shared" = yes && enable_static=no
19106 if test -n "$RANLIB"; then
19107 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19108 postinstall_cmds='$RANLIB $lib'
19112 aix[4-9]*)
19113 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19114 test "$enable_shared" = yes && enable_static=no
19117 esac
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19119 $as_echo "$enable_shared" >&6; }
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19122 $as_echo_n "checking whether to build static libraries... " >&6; }
19123 # Make sure either enable_shared or enable_static is yes.
19124 test "$enable_shared" = yes || enable_static=yes
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19126 $as_echo "$enable_static" >&6; }
19132 ac_ext=cpp
19133 ac_cpp='$CXXCPP $CPPFLAGS'
19134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19138 CC="$lt_save_CC"
19140 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19141 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19142 (test "X$CXX" != "Xg++"))) ; then
19143 ac_ext=cpp
19144 ac_cpp='$CXXCPP $CPPFLAGS'
19145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19149 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19150 if test -z "$CXXCPP"; then
19151 if ${ac_cv_prog_CXXCPP+:} false; then :
19152 $as_echo_n "(cached) " >&6
19153 else
19154 # Double quotes because CXXCPP needs to be expanded
19155 for CXXCPP in "$CXX -E" "/lib/cpp"
19157 ac_preproc_ok=false
19158 for ac_cxx_preproc_warn_flag in '' yes
19160 # Use a header file that comes with gcc, so configuring glibc
19161 # with a fresh cross-compiler works.
19162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19163 # <limits.h> exists even on freestanding compilers.
19164 # On the NeXT, cc -E runs the code through the compiler's parser,
19165 # not just through cpp. "Syntax error" is here to catch this case.
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19168 #ifdef __STDC__
19169 # include <limits.h>
19170 #else
19171 # include <assert.h>
19172 #endif
19173 Syntax error
19174 _ACEOF
19175 if ac_fn_cxx_try_cpp "$LINENO"; then :
19177 else
19178 # Broken: fails on valid input.
19179 continue
19181 rm -f conftest.err conftest.i conftest.$ac_ext
19183 # OK, works on sane cases. Now check whether nonexistent headers
19184 # can be detected and how.
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19187 #include <ac_nonexistent.h>
19188 _ACEOF
19189 if ac_fn_cxx_try_cpp "$LINENO"; then :
19190 # Broken: success on invalid input.
19191 continue
19192 else
19193 # Passes both tests.
19194 ac_preproc_ok=:
19195 break
19197 rm -f conftest.err conftest.i conftest.$ac_ext
19199 done
19200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19201 rm -f conftest.i conftest.err conftest.$ac_ext
19202 if $ac_preproc_ok; then :
19203 break
19206 done
19207 ac_cv_prog_CXXCPP=$CXXCPP
19210 CXXCPP=$ac_cv_prog_CXXCPP
19211 else
19212 ac_cv_prog_CXXCPP=$CXXCPP
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19215 $as_echo "$CXXCPP" >&6; }
19216 ac_preproc_ok=false
19217 for ac_cxx_preproc_warn_flag in '' yes
19219 # Use a header file that comes with gcc, so configuring glibc
19220 # with a fresh cross-compiler works.
19221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19222 # <limits.h> exists even on freestanding compilers.
19223 # On the NeXT, cc -E runs the code through the compiler's parser,
19224 # not just through cpp. "Syntax error" is here to catch this case.
19225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19226 /* end confdefs.h. */
19227 #ifdef __STDC__
19228 # include <limits.h>
19229 #else
19230 # include <assert.h>
19231 #endif
19232 Syntax error
19233 _ACEOF
19234 if ac_fn_cxx_try_cpp "$LINENO"; then :
19236 else
19237 # Broken: fails on valid input.
19238 continue
19240 rm -f conftest.err conftest.i conftest.$ac_ext
19242 # OK, works on sane cases. Now check whether nonexistent headers
19243 # can be detected and how.
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19246 #include <ac_nonexistent.h>
19247 _ACEOF
19248 if ac_fn_cxx_try_cpp "$LINENO"; then :
19249 # Broken: success on invalid input.
19250 continue
19251 else
19252 # Passes both tests.
19253 ac_preproc_ok=:
19254 break
19256 rm -f conftest.err conftest.i conftest.$ac_ext
19258 done
19259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19260 rm -f conftest.i conftest.err conftest.$ac_ext
19261 if $ac_preproc_ok; then :
19263 else
19264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19266 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19267 See \`config.log' for more details" "$LINENO" 5; }
19270 ac_ext=cpp
19271 ac_cpp='$CXXCPP $CPPFLAGS'
19272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19276 else
19277 _lt_caught_CXX_error=yes
19280 ac_ext=cpp
19281 ac_cpp='$CXXCPP $CPPFLAGS'
19282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19286 archive_cmds_need_lc_CXX=no
19287 allow_undefined_flag_CXX=
19288 always_export_symbols_CXX=no
19289 archive_expsym_cmds_CXX=
19290 compiler_needs_object_CXX=no
19291 export_dynamic_flag_spec_CXX=
19292 hardcode_direct_CXX=no
19293 hardcode_direct_absolute_CXX=no
19294 hardcode_libdir_flag_spec_CXX=
19295 hardcode_libdir_flag_spec_ld_CXX=
19296 hardcode_libdir_separator_CXX=
19297 hardcode_minus_L_CXX=no
19298 hardcode_shlibpath_var_CXX=unsupported
19299 hardcode_automatic_CXX=no
19300 inherit_rpath_CXX=no
19301 module_cmds_CXX=
19302 module_expsym_cmds_CXX=
19303 link_all_deplibs_CXX=unknown
19304 old_archive_cmds_CXX=$old_archive_cmds
19305 reload_flag_CXX=$reload_flag
19306 reload_cmds_CXX=$reload_cmds
19307 no_undefined_flag_CXX=
19308 whole_archive_flag_spec_CXX=
19309 enable_shared_with_static_runtimes_CXX=no
19311 # Source file extension for C++ test sources.
19312 ac_ext=cpp
19314 # Object file extension for compiled C++ test sources.
19315 objext=o
19316 objext_CXX=$objext
19318 # No sense in running all these tests if we already determined that
19319 # the CXX compiler isn't working. Some variables (like enable_shared)
19320 # are currently assumed to apply to all compilers on this platform,
19321 # and will be corrupted by setting them based on a non-working compiler.
19322 if test "$_lt_caught_CXX_error" != yes; then
19323 # Code to be used in simple compile tests
19324 lt_simple_compile_test_code="int some_variable = 0;"
19326 # Code to be used in simple link tests
19327 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19336 # If no C compiler was specified, use CC.
19337 LTCC=${LTCC-"$CC"}
19339 # If no C compiler flags were specified, use CFLAGS.
19340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19342 # Allow CC to be a program name with arguments.
19343 compiler=$CC
19346 # save warnings/boilerplate of simple test code
19347 ac_outfile=conftest.$ac_objext
19348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19350 _lt_compiler_boilerplate=`cat conftest.err`
19351 $RM conftest*
19353 ac_outfile=conftest.$ac_objext
19354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19356 _lt_linker_boilerplate=`cat conftest.err`
19357 $RM -r conftest*
19360 # Allow CC to be a program name with arguments.
19361 lt_save_CC=$CC
19362 lt_save_LD=$LD
19363 lt_save_GCC=$GCC
19364 GCC=$GXX
19365 lt_save_with_gnu_ld=$with_gnu_ld
19366 lt_save_path_LD=$lt_cv_path_LD
19367 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19368 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19369 else
19370 $as_unset lt_cv_prog_gnu_ld
19372 if test -n "${lt_cv_path_LDCXX+set}"; then
19373 lt_cv_path_LD=$lt_cv_path_LDCXX
19374 else
19375 $as_unset lt_cv_path_LD
19377 test -z "${LDCXX+set}" || LD=$LDCXX
19378 CC=${CXX-"c++"}
19379 compiler=$CC
19380 compiler_CXX=$CC
19381 for cc_temp in $compiler""; do
19382 case $cc_temp in
19383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19385 \-*) ;;
19386 *) break;;
19387 esac
19388 done
19389 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19392 if test -n "$compiler"; then
19393 # We don't want -fno-exception when compiling C++ code, so set the
19394 # no_builtin_flag separately
19395 if test "$GXX" = yes; then
19396 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19397 else
19398 lt_prog_compiler_no_builtin_flag_CXX=
19401 if test "$GXX" = yes; then
19402 # Set up default GNU C++ configuration
19406 # Check whether --with-gnu-ld was given.
19407 if test "${with_gnu_ld+set}" = set; then :
19408 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19409 else
19410 with_gnu_ld=no
19413 ac_prog=ld
19414 if test "$GCC" = yes; then
19415 # Check if gcc -print-prog-name=ld gives a path.
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19417 $as_echo_n "checking for ld used by $CC... " >&6; }
19418 case $host in
19419 *-*-mingw*)
19420 # gcc leaves a trailing carriage return which upsets mingw
19421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19424 esac
19425 case $ac_prog in
19426 # Accept absolute paths.
19427 [\\/]* | ?:[\\/]*)
19428 re_direlt='/[^/][^/]*/\.\./'
19429 # Canonicalize the pathname of ld
19430 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19431 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19432 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19433 done
19434 test -z "$LD" && LD="$ac_prog"
19437 # If it fails, then pretend we aren't using GCC.
19438 ac_prog=ld
19441 # If it is relative, then search for the first ld in PATH.
19442 with_gnu_ld=unknown
19444 esac
19445 elif test "$with_gnu_ld" = yes; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19447 $as_echo_n "checking for GNU ld... " >&6; }
19448 else
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19450 $as_echo_n "checking for non-GNU ld... " >&6; }
19452 if ${lt_cv_path_LD+:} false; then :
19453 $as_echo_n "(cached) " >&6
19454 else
19455 if test -z "$LD"; then
19456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19457 for ac_dir in $PATH; do
19458 IFS="$lt_save_ifs"
19459 test -z "$ac_dir" && ac_dir=.
19460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19461 lt_cv_path_LD="$ac_dir/$ac_prog"
19462 # Check to see if the program is GNU ld. I'd rather use --version,
19463 # but apparently some variants of GNU ld only accept -v.
19464 # Break only if it was the GNU/non-GNU ld that we prefer.
19465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19466 *GNU* | *'with BFD'*)
19467 test "$with_gnu_ld" != no && break
19470 test "$with_gnu_ld" != yes && break
19472 esac
19474 done
19475 IFS="$lt_save_ifs"
19476 else
19477 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19481 LD="$lt_cv_path_LD"
19482 if test -n "$LD"; then
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19484 $as_echo "$LD" >&6; }
19485 else
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487 $as_echo "no" >&6; }
19489 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19491 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19492 if ${lt_cv_prog_gnu_ld+:} false; then :
19493 $as_echo_n "(cached) " >&6
19494 else
19495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19496 case `$LD -v 2>&1 </dev/null` in
19497 *GNU* | *'with BFD'*)
19498 lt_cv_prog_gnu_ld=yes
19501 lt_cv_prog_gnu_ld=no
19503 esac
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19506 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19507 with_gnu_ld=$lt_cv_prog_gnu_ld
19515 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19516 # archiving commands below assume that GNU ld is being used.
19517 if test "$with_gnu_ld" = yes; then
19518 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19519 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'
19521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19524 # If archive_cmds runs LD, not CC, wlarc should be empty
19525 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19526 # investigate it a little bit more. (MM)
19527 wlarc='${wl}'
19529 # ancient GNU ld didn't support --whole-archive et. al.
19530 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19531 $GREP 'no-whole-archive' > /dev/null; then
19532 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19533 else
19534 whole_archive_flag_spec_CXX=
19536 else
19537 with_gnu_ld=no
19538 wlarc=
19540 # A generic and very simple default shared library creation
19541 # command for GNU C++ for the case where it uses the native
19542 # linker, instead of GNU ld. If possible, this setting should
19543 # overridden to take advantage of the native linker features on
19544 # the platform it is being used on.
19545 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19548 # Commands to make compiler produce verbose output that lists
19549 # what "hidden" libraries, object files and flags are used when
19550 # linking a shared library.
19551 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19553 else
19554 GXX=no
19555 with_gnu_ld=no
19556 wlarc=
19559 # PORTME: fill in a description of your system's C++ link characteristics
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19562 ld_shlibs_CXX=yes
19563 case $host_os in
19564 aix3*)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19568 aix[4-9]*)
19569 if test "$host_cpu" = ia64; then
19570 # On IA64, the linker does run time linking by default, so we don't
19571 # have to do anything special.
19572 aix_use_runtimelinking=no
19573 exp_sym_flag='-Bexport'
19574 no_entry_flag=""
19575 else
19576 aix_use_runtimelinking=no
19578 # Test if we are trying to use run time linking or normal
19579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19580 # need to do runtime linking.
19581 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19582 for ld_flag in $LDFLAGS; do
19583 case $ld_flag in
19584 *-brtl*)
19585 aix_use_runtimelinking=yes
19586 break
19588 esac
19589 done
19591 esac
19593 exp_sym_flag='-bexport'
19594 no_entry_flag='-bnoentry'
19597 # When large executables or shared objects are built, AIX ld can
19598 # have problems creating the table of contents. If linking a library
19599 # or program results in "error TOC overflow" add -mminimal-toc to
19600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19603 archive_cmds_CXX=''
19604 hardcode_direct_CXX=yes
19605 hardcode_direct_absolute_CXX=yes
19606 hardcode_libdir_separator_CXX=':'
19607 link_all_deplibs_CXX=yes
19608 file_list_spec_CXX='${wl}-f,'
19610 if test "$GXX" = yes; then
19611 case $host_os in aix4.[012]|aix4.[012].*)
19612 # We only want to do this on AIX 4.2 and lower, the check
19613 # below for broken collect2 doesn't work under 4.3+
19614 collect2name=`${CC} -print-prog-name=collect2`
19615 if test -f "$collect2name" &&
19616 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19617 then
19618 # We have reworked collect2
19620 else
19621 # We have old collect2
19622 hardcode_direct_CXX=unsupported
19623 # It fails to find uninstalled libraries when the uninstalled
19624 # path is not listed in the libpath. Setting hardcode_minus_L
19625 # to unsupported forces relinking
19626 hardcode_minus_L_CXX=yes
19627 hardcode_libdir_flag_spec_CXX='-L$libdir'
19628 hardcode_libdir_separator_CXX=
19630 esac
19631 shared_flag='-shared'
19632 if test "$aix_use_runtimelinking" = yes; then
19633 shared_flag="$shared_flag "'${wl}-G'
19635 else
19636 # not using gcc
19637 if test "$host_cpu" = ia64; then
19638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19639 # chokes on -Wl,-G. The following line is correct:
19640 shared_flag='-G'
19641 else
19642 if test "$aix_use_runtimelinking" = yes; then
19643 shared_flag='${wl}-G'
19644 else
19645 shared_flag='${wl}-bM:SRE'
19650 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19651 # It seems that -bexpall does not export symbols beginning with
19652 # underscore (_), so it is better to generate a list of symbols to
19653 # export.
19654 always_export_symbols_CXX=yes
19655 if test "$aix_use_runtimelinking" = yes; then
19656 # Warning - without using the other runtime loading flags (-brtl),
19657 # -berok will link without error, but may produce a broken library.
19658 allow_undefined_flag_CXX='-berok'
19659 # Determine the default libpath from the value encoded in an empty
19660 # executable.
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19665 main ()
19669 return 0;
19671 _ACEOF
19672 if ac_fn_cxx_try_link "$LINENO"; then :
19674 lt_aix_libpath_sed='
19675 /Import File Strings/,/^$/ {
19676 /^0/ {
19677 s/^0 *\(.*\)$/\1/
19681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19682 # Check for a 64-bit object if we didn't find anything.
19683 if test -z "$aix_libpath"; then
19684 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19687 rm -f core conftest.err conftest.$ac_objext \
19688 conftest$ac_exeext conftest.$ac_ext
19689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19691 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19693 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"
19694 else
19695 if test "$host_cpu" = ia64; then
19696 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19697 allow_undefined_flag_CXX="-z nodefs"
19698 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"
19699 else
19700 # Determine the default libpath from the value encoded in an
19701 # empty executable.
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19706 main ()
19710 return 0;
19712 _ACEOF
19713 if ac_fn_cxx_try_link "$LINENO"; then :
19715 lt_aix_libpath_sed='
19716 /Import File Strings/,/^$/ {
19717 /^0/ {
19718 s/^0 *\(.*\)$/\1/
19722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19723 # Check for a 64-bit object if we didn't find anything.
19724 if test -z "$aix_libpath"; then
19725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19732 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19733 # Warning - without using the other run time loading flags,
19734 # -berok will link without error, but may produce a broken library.
19735 no_undefined_flag_CXX=' ${wl}-bernotok'
19736 allow_undefined_flag_CXX=' ${wl}-berok'
19737 if test "$with_gnu_ld" = yes; then
19738 # We only use this code for GNU lds that support --whole-archive.
19739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19740 else
19741 # Exported symbols can be pulled into shared objects from archives
19742 whole_archive_flag_spec_CXX='$convenience'
19744 archive_cmds_need_lc_CXX=yes
19745 # This is similar to how AIX traditionally builds its shared
19746 # libraries.
19747 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'
19752 beos*)
19753 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19754 allow_undefined_flag_CXX=unsupported
19755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19756 # support --undefined. This deserves some investigation. FIXME
19757 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19758 else
19759 ld_shlibs_CXX=no
19763 chorus*)
19764 case $cc_basename in
19766 # FIXME: insert proper C++ library support
19767 ld_shlibs_CXX=no
19769 esac
19772 cygwin* | mingw* | pw32* | cegcc*)
19773 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19774 # as there is no search path for DLLs.
19775 hardcode_libdir_flag_spec_CXX='-L$libdir'
19776 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19777 allow_undefined_flag_CXX=unsupported
19778 always_export_symbols_CXX=no
19779 enable_shared_with_static_runtimes_CXX=yes
19781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19782 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'
19783 # If the export-symbols file already is a .def file (1st line
19784 # is EXPORTS), use it as is; otherwise, prepend...
19785 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19786 cp $export_symbols $output_objdir/$soname.def;
19787 else
19788 echo EXPORTS > $output_objdir/$soname.def;
19789 cat $export_symbols >> $output_objdir/$soname.def;
19791 $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'
19792 else
19793 ld_shlibs_CXX=no
19796 darwin* | rhapsody*)
19799 archive_cmds_need_lc_CXX=no
19800 hardcode_direct_CXX=no
19801 hardcode_automatic_CXX=yes
19802 hardcode_shlibpath_var_CXX=unsupported
19803 if test "$lt_cv_ld_force_load" = "yes"; then
19804 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\"`'
19805 else
19806 whole_archive_flag_spec_CXX=''
19808 link_all_deplibs_CXX=yes
19809 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19810 case $cc_basename in
19811 ifort*) _lt_dar_can_shared=yes ;;
19812 *) _lt_dar_can_shared=$GCC ;;
19813 esac
19814 if test "$_lt_dar_can_shared" = "yes"; then
19815 output_verbose_link_cmd=func_echo_all
19816 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}"
19817 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19818 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}"
19819 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}"
19820 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19821 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}"
19822 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}"
19825 else
19826 ld_shlibs_CXX=no
19831 dgux*)
19832 case $cc_basename in
19833 ec++*)
19834 # FIXME: insert proper C++ library support
19835 ld_shlibs_CXX=no
19837 ghcx*)
19838 # Green Hills C++ Compiler
19839 # FIXME: insert proper C++ library support
19840 ld_shlibs_CXX=no
19843 # FIXME: insert proper C++ library support
19844 ld_shlibs_CXX=no
19846 esac
19849 freebsd2.*)
19850 # C++ shared libraries reported to be fairly broken before
19851 # switch to ELF
19852 ld_shlibs_CXX=no
19855 freebsd-elf*)
19856 archive_cmds_need_lc_CXX=no
19859 freebsd* | dragonfly*)
19860 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19861 # conventions
19862 ld_shlibs_CXX=yes
19865 gnu*)
19868 haiku*)
19869 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19870 link_all_deplibs_CXX=yes
19873 hpux9*)
19874 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19875 hardcode_libdir_separator_CXX=:
19876 export_dynamic_flag_spec_CXX='${wl}-E'
19877 hardcode_direct_CXX=yes
19878 hardcode_minus_L_CXX=yes # Not in the search PATH,
19879 # but as the default
19880 # location of the library.
19882 case $cc_basename in
19883 CC*)
19884 # FIXME: insert proper C++ library support
19885 ld_shlibs_CXX=no
19887 aCC*)
19888 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'
19889 # Commands to make compiler produce verbose output that lists
19890 # what "hidden" libraries, object files and flags are used when
19891 # linking a shared library.
19893 # There doesn't appear to be a way to prevent this compiler from
19894 # explicitly linking system object files so we need to strip them
19895 # from the output so that they don't get included in the library
19896 # dependencies.
19897 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"'
19900 if test "$GXX" = yes; then
19901 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'
19902 else
19903 # FIXME: insert proper C++ library support
19904 ld_shlibs_CXX=no
19907 esac
19910 hpux10*|hpux11*)
19911 if test $with_gnu_ld = no; then
19912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19913 hardcode_libdir_separator_CXX=:
19915 case $host_cpu in
19916 hppa*64*|ia64*)
19919 export_dynamic_flag_spec_CXX='${wl}-E'
19921 esac
19923 case $host_cpu in
19924 hppa*64*|ia64*)
19925 hardcode_direct_CXX=no
19926 hardcode_shlibpath_var_CXX=no
19929 hardcode_direct_CXX=yes
19930 hardcode_direct_absolute_CXX=yes
19931 hardcode_minus_L_CXX=yes # Not in the search PATH,
19932 # but as the default
19933 # location of the library.
19935 esac
19937 case $cc_basename in
19938 CC*)
19939 # FIXME: insert proper C++ library support
19940 ld_shlibs_CXX=no
19942 aCC*)
19943 case $host_cpu in
19944 hppa*64*)
19945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19947 ia64*)
19948 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19951 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19953 esac
19954 # Commands to make compiler produce verbose output that lists
19955 # what "hidden" libraries, object files and flags are used when
19956 # linking a shared library.
19958 # There doesn't appear to be a way to prevent this compiler from
19959 # explicitly linking system object files so we need to strip them
19960 # from the output so that they don't get included in the library
19961 # dependencies.
19962 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"'
19965 if test "$GXX" = yes; then
19966 if test $with_gnu_ld = no; then
19967 case $host_cpu in
19968 hppa*64*)
19969 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19971 ia64*)
19972 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19975 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'
19977 esac
19979 else
19980 # FIXME: insert proper C++ library support
19981 ld_shlibs_CXX=no
19984 esac
19987 interix[3-9]*)
19988 hardcode_direct_CXX=no
19989 hardcode_shlibpath_var_CXX=no
19990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19991 export_dynamic_flag_spec_CXX='${wl}-E'
19992 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19993 # Instead, shared libraries are loaded at an image base (0x10000000 by
19994 # default) and relocated if they conflict, which is a slow very memory
19995 # consuming and fragmenting process. To avoid this, we pick a random,
19996 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19997 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19998 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'
19999 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'
20001 irix5* | irix6*)
20002 case $cc_basename in
20003 CC*)
20004 # SGI C++
20005 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'
20007 # Archives containing C++ object files must be created using
20008 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20009 # necessary to make sure instantiated templates are included
20010 # in the archive.
20011 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20014 if test "$GXX" = yes; then
20015 if test "$with_gnu_ld" = no; then
20016 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'
20017 else
20018 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'
20021 link_all_deplibs_CXX=yes
20023 esac
20024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20025 hardcode_libdir_separator_CXX=:
20026 inherit_rpath_CXX=yes
20029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20030 case $cc_basename in
20031 KCC*)
20032 # Kuck and Associates, Inc. (KAI) C++ Compiler
20034 # KCC will only create a shared library if the output file
20035 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20036 # to its proper name (with version) after linking.
20037 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'
20038 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'
20039 # Commands to make compiler produce verbose output that lists
20040 # what "hidden" libraries, object files and flags are used when
20041 # linking a shared library.
20043 # There doesn't appear to be a way to prevent this compiler from
20044 # explicitly linking system object files so we need to strip them
20045 # from the output so that they don't get included in the library
20046 # dependencies.
20047 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"'
20049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20052 # Archives containing C++ object files must be created using
20053 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20054 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20056 icpc* | ecpc* )
20057 # Intel C++
20058 with_gnu_ld=yes
20059 # version 8.0 and above of icpc choke on multiply defined symbols
20060 # if we add $predep_objects and $postdep_objects, however 7.1 and
20061 # earlier do not add the objects themselves.
20062 case `$CC -V 2>&1` in
20063 *"Version 7."*)
20064 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20065 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'
20067 *) # Version 8.0 or newer
20068 tmp_idyn=
20069 case $host_cpu in
20070 ia64*) tmp_idyn=' -i_dynamic';;
20071 esac
20072 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20073 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'
20075 esac
20076 archive_cmds_need_lc_CXX=no
20077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20079 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20081 pgCC* | pgcpp*)
20082 # Portland Group C++ compiler
20083 case `$CC -V` in
20084 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20085 prelink_cmds_CXX='tpldir=Template.dir~
20086 rm -rf $tpldir~
20087 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20088 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20089 old_archive_cmds_CXX='tpldir=Template.dir~
20090 rm -rf $tpldir~
20091 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20092 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20093 $RANLIB $oldlib'
20094 archive_cmds_CXX='tpldir=Template.dir~
20095 rm -rf $tpldir~
20096 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20097 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20098 archive_expsym_cmds_CXX='tpldir=Template.dir~
20099 rm -rf $tpldir~
20100 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20101 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20103 *) # Version 6 and above use weak symbols
20104 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20105 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'
20107 esac
20109 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20111 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'
20113 cxx*)
20114 # Compaq C++
20115 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20116 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'
20118 runpath_var=LD_RUN_PATH
20119 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20120 hardcode_libdir_separator_CXX=:
20122 # Commands to make compiler produce verbose output that lists
20123 # what "hidden" libraries, object files and flags are used when
20124 # linking a shared library.
20126 # There doesn't appear to be a way to prevent this compiler from
20127 # explicitly linking system object files so we need to strip them
20128 # from the output so that they don't get included in the library
20129 # dependencies.
20130 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'
20132 xl* | mpixl* | bgxl*)
20133 # IBM XL 8.0 on PPC, with GNU ld
20134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20135 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20136 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20137 if test "x$supports_anon_versioning" = xyes; then
20138 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20139 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20140 echo "local: *; };" >> $output_objdir/$libname.ver~
20141 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20145 case `$CC -V 2>&1 | sed 5q` in
20146 *Sun\ C*)
20147 # Sun C++ 5.9
20148 no_undefined_flag_CXX=' -zdefs'
20149 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20150 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'
20151 hardcode_libdir_flag_spec_CXX='-R$libdir'
20152 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'
20153 compiler_needs_object_CXX=yes
20155 # Not sure whether something based on
20156 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20157 # would be better.
20158 output_verbose_link_cmd='func_echo_all'
20160 # Archives containing C++ object files must be created using
20161 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20162 # necessary to make sure instantiated templates are included
20163 # in the archive.
20164 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20166 esac
20168 esac
20171 lynxos*)
20172 # FIXME: insert proper C++ library support
20173 ld_shlibs_CXX=no
20176 m88k*)
20177 # FIXME: insert proper C++ library support
20178 ld_shlibs_CXX=no
20181 mvs*)
20182 case $cc_basename in
20183 cxx*)
20184 # FIXME: insert proper C++ library support
20185 ld_shlibs_CXX=no
20188 # FIXME: insert proper C++ library support
20189 ld_shlibs_CXX=no
20191 esac
20194 netbsd*)
20195 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20196 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20197 wlarc=
20198 hardcode_libdir_flag_spec_CXX='-R$libdir'
20199 hardcode_direct_CXX=yes
20200 hardcode_shlibpath_var_CXX=no
20202 # Workaround some broken pre-1.5 toolchains
20203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20206 *nto* | *qnx*)
20207 ld_shlibs_CXX=yes
20210 openbsd2*)
20211 # C++ shared libraries are fairly broken
20212 ld_shlibs_CXX=no
20215 openbsd*)
20216 if test -f /usr/libexec/ld.so; then
20217 hardcode_direct_CXX=yes
20218 hardcode_shlibpath_var_CXX=no
20219 hardcode_direct_absolute_CXX=yes
20220 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20221 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20222 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20223 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20224 export_dynamic_flag_spec_CXX='${wl}-E'
20225 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20227 output_verbose_link_cmd=func_echo_all
20228 else
20229 ld_shlibs_CXX=no
20233 osf3* | osf4* | osf5*)
20234 case $cc_basename in
20235 KCC*)
20236 # Kuck and Associates, Inc. (KAI) C++ Compiler
20238 # KCC will only create a shared library if the output file
20239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20240 # to its proper name (with version) after linking.
20241 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'
20243 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20244 hardcode_libdir_separator_CXX=:
20246 # Archives containing C++ object files must be created using
20247 # the KAI C++ compiler.
20248 case $host in
20249 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20250 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20251 esac
20253 RCC*)
20254 # Rational C++ 2.4.1
20255 # FIXME: insert proper C++ library support
20256 ld_shlibs_CXX=no
20258 cxx*)
20259 case $host in
20260 osf3*)
20261 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20262 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'
20263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20266 allow_undefined_flag_CXX=' -expect_unresolved \*'
20267 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'
20268 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20269 echo "-hidden">> $lib.exp~
20270 $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~
20271 $RM $lib.exp'
20272 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20274 esac
20276 hardcode_libdir_separator_CXX=:
20278 # Commands to make compiler produce verbose output that lists
20279 # what "hidden" libraries, object files and flags are used when
20280 # linking a shared library.
20282 # There doesn't appear to be a way to prevent this compiler from
20283 # explicitly linking system object files so we need to strip them
20284 # from the output so that they don't get included in the library
20285 # dependencies.
20286 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"'
20289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20290 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20291 case $host in
20292 osf3*)
20293 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'
20296 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'
20298 esac
20300 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20301 hardcode_libdir_separator_CXX=:
20303 # Commands to make compiler produce verbose output that lists
20304 # what "hidden" libraries, object files and flags are used when
20305 # linking a shared library.
20306 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20308 else
20309 # FIXME: insert proper C++ library support
20310 ld_shlibs_CXX=no
20313 esac
20316 psos*)
20317 # FIXME: insert proper C++ library support
20318 ld_shlibs_CXX=no
20321 sunos4*)
20322 case $cc_basename in
20323 CC*)
20324 # Sun C++ 4.x
20325 # FIXME: insert proper C++ library support
20326 ld_shlibs_CXX=no
20328 lcc*)
20329 # Lucid
20330 # FIXME: insert proper C++ library support
20331 ld_shlibs_CXX=no
20334 # FIXME: insert proper C++ library support
20335 ld_shlibs_CXX=no
20337 esac
20340 solaris*)
20341 case $cc_basename in
20342 CC*)
20343 # Sun C++ 4.2, 5.x and Centerline C++
20344 archive_cmds_need_lc_CXX=yes
20345 no_undefined_flag_CXX=' -zdefs'
20346 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20347 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20348 $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'
20350 hardcode_libdir_flag_spec_CXX='-R$libdir'
20351 hardcode_shlibpath_var_CXX=no
20352 case $host_os in
20353 solaris2.[0-5] | solaris2.[0-5].*) ;;
20355 # The compiler driver will combine and reorder linker options,
20356 # but understands `-z linker_flag'.
20357 # Supported since Solaris 2.6 (maybe 2.5.1?)
20358 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20360 esac
20361 link_all_deplibs_CXX=yes
20363 output_verbose_link_cmd='func_echo_all'
20365 # Archives containing C++ object files must be created using
20366 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20367 # necessary to make sure instantiated templates are included
20368 # in the archive.
20369 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20371 gcx*)
20372 # Green Hills C++ Compiler
20373 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20375 # The C++ compiler must be used to create the archive.
20376 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20379 # GNU C++ compiler with Solaris linker
20380 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20381 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20382 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20383 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20384 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20385 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20387 # Commands to make compiler produce verbose output that lists
20388 # what "hidden" libraries, object files and flags are used when
20389 # linking a shared library.
20390 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20391 else
20392 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20393 # platform.
20394 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20395 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20396 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20398 # Commands to make compiler produce verbose output that lists
20399 # what "hidden" libraries, object files and flags are used when
20400 # linking a shared library.
20401 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20404 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20405 case $host_os in
20406 solaris2.[0-5] | solaris2.[0-5].*) ;;
20408 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20410 esac
20413 esac
20416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20417 no_undefined_flag_CXX='${wl}-z,text'
20418 archive_cmds_need_lc_CXX=no
20419 hardcode_shlibpath_var_CXX=no
20420 runpath_var='LD_RUN_PATH'
20422 case $cc_basename in
20423 CC*)
20424 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20425 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20428 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20429 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20431 esac
20434 sysv5* | sco3.2v5* | sco5v6*)
20435 # Note: We can NOT use -z defs as we might desire, because we do not
20436 # link with -lc, and that would cause any symbols used from libc to
20437 # always be unresolved, which means just about no library would
20438 # ever link correctly. If we're not using GNU ld we use -z text
20439 # though, which does catch some bad symbols but isn't as heavy-handed
20440 # as -z defs.
20441 no_undefined_flag_CXX='${wl}-z,text'
20442 allow_undefined_flag_CXX='${wl}-z,nodefs'
20443 archive_cmds_need_lc_CXX=no
20444 hardcode_shlibpath_var_CXX=no
20445 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20446 hardcode_libdir_separator_CXX=':'
20447 link_all_deplibs_CXX=yes
20448 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20449 runpath_var='LD_RUN_PATH'
20451 case $cc_basename in
20452 CC*)
20453 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20454 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20455 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20456 '"$old_archive_cmds_CXX"
20457 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20458 '"$reload_cmds_CXX"
20461 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20462 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20464 esac
20467 tandem*)
20468 case $cc_basename in
20469 NCC*)
20470 # NonStop-UX NCC 3.20
20471 # FIXME: insert proper C++ library support
20472 ld_shlibs_CXX=no
20475 # FIXME: insert proper C++ library support
20476 ld_shlibs_CXX=no
20478 esac
20481 vxworks*)
20482 # FIXME: insert proper C++ library support
20483 ld_shlibs_CXX=no
20487 # FIXME: insert proper C++ library support
20488 ld_shlibs_CXX=no
20490 esac
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20493 $as_echo "$ld_shlibs_CXX" >&6; }
20494 test "$ld_shlibs_CXX" = no && can_build_shared=no
20496 GCC_CXX="$GXX"
20497 LD_CXX="$LD"
20499 ## CAVEAT EMPTOR:
20500 ## There is no encapsulation within the following macros, do not change
20501 ## the running order or otherwise move them around unless you know exactly
20502 ## what you are doing...
20503 # Dependencies to place before and after the object being linked:
20504 predep_objects_CXX=
20505 postdep_objects_CXX=
20506 predeps_CXX=
20507 postdeps_CXX=
20508 compiler_lib_search_path_CXX=
20510 cat > conftest.$ac_ext <<_LT_EOF
20511 class Foo
20513 public:
20514 Foo (void) { a = 0; }
20515 private:
20516 int a;
20518 _LT_EOF
20520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20521 (eval $ac_compile) 2>&5
20522 ac_status=$?
20523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20524 test $ac_status = 0; }; then
20525 # Parse the compiler output and extract the necessary
20526 # objects, libraries and library flags.
20528 # Sentinel used to keep track of whether or not we are before
20529 # the conftest object file.
20530 pre_test_object_deps_done=no
20532 for p in `eval "$output_verbose_link_cmd"`; do
20533 case $p in
20535 -L* | -R* | -l*)
20536 # Some compilers place space between "-{L,R}" and the path.
20537 # Remove the space.
20538 if test $p = "-L" ||
20539 test $p = "-R"; then
20540 prev=$p
20541 continue
20542 else
20543 prev=
20546 if test "$pre_test_object_deps_done" = no; then
20547 case $p in
20548 -L* | -R*)
20549 # Internal compiler library paths should come after those
20550 # provided the user. The postdeps already come after the
20551 # user supplied libs so there is no need to process them.
20552 if test -z "$compiler_lib_search_path_CXX"; then
20553 compiler_lib_search_path_CXX="${prev}${p}"
20554 else
20555 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20558 # The "-l" case would never come before the object being
20559 # linked, so don't bother handling this case.
20560 esac
20561 else
20562 if test -z "$postdeps_CXX"; then
20563 postdeps_CXX="${prev}${p}"
20564 else
20565 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20570 *.$objext)
20571 # This assumes that the test object file only shows up
20572 # once in the compiler output.
20573 if test "$p" = "conftest.$objext"; then
20574 pre_test_object_deps_done=yes
20575 continue
20578 if test "$pre_test_object_deps_done" = no; then
20579 if test -z "$predep_objects_CXX"; then
20580 predep_objects_CXX="$p"
20581 else
20582 predep_objects_CXX="$predep_objects_CXX $p"
20584 else
20585 if test -z "$postdep_objects_CXX"; then
20586 postdep_objects_CXX="$p"
20587 else
20588 postdep_objects_CXX="$postdep_objects_CXX $p"
20593 *) ;; # Ignore the rest.
20595 esac
20596 done
20598 # Clean up.
20599 rm -f a.out a.exe
20600 else
20601 echo "libtool.m4: error: problem compiling CXX test program"
20604 $RM -f confest.$objext
20606 # PORTME: override above test on systems where it is broken
20607 case $host_os in
20608 interix[3-9]*)
20609 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20610 # hack all around it, let's just trust "g++" to DTRT.
20611 predep_objects_CXX=
20612 postdep_objects_CXX=
20613 postdeps_CXX=
20616 linux*)
20617 case `$CC -V 2>&1 | sed 5q` in
20618 *Sun\ C*)
20619 # Sun C++ 5.9
20621 # The more standards-conforming stlport4 library is
20622 # incompatible with the Cstd library. Avoid specifying
20623 # it if it's in CXXFLAGS. Ignore libCrun as
20624 # -library=stlport4 depends on it.
20625 case " $CXX $CXXFLAGS " in
20626 *" -library=stlport4 "*)
20627 solaris_use_stlport4=yes
20629 esac
20631 if test "$solaris_use_stlport4" != yes; then
20632 postdeps_CXX='-library=Cstd -library=Crun'
20635 esac
20638 solaris*)
20639 case $cc_basename in
20640 CC*)
20641 # The more standards-conforming stlport4 library is
20642 # incompatible with the Cstd library. Avoid specifying
20643 # it if it's in CXXFLAGS. Ignore libCrun as
20644 # -library=stlport4 depends on it.
20645 case " $CXX $CXXFLAGS " in
20646 *" -library=stlport4 "*)
20647 solaris_use_stlport4=yes
20649 esac
20651 # Adding this requires a known-good setup of shared libraries for
20652 # Sun compiler versions before 5.6, else PIC objects from an old
20653 # archive will be linked into the output, leading to subtle bugs.
20654 if test "$solaris_use_stlport4" != yes; then
20655 postdeps_CXX='-library=Cstd -library=Crun'
20658 esac
20660 esac
20663 case " $postdeps_CXX " in
20664 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20665 esac
20666 compiler_lib_search_dirs_CXX=
20667 if test -n "${compiler_lib_search_path_CXX}"; then
20668 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20701 lt_prog_compiler_wl_CXX=
20702 lt_prog_compiler_pic_CXX=
20703 lt_prog_compiler_static_CXX=
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20706 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20708 # C++ specific cases for pic, static, wl, etc.
20709 if test "$GXX" = yes; then
20710 lt_prog_compiler_wl_CXX='-Wl,'
20711 lt_prog_compiler_static_CXX='-static'
20713 case $host_os in
20714 aix*)
20715 # All AIX code is PIC.
20716 if test "$host_cpu" = ia64; then
20717 # AIX 5 now supports IA64 processor
20718 lt_prog_compiler_static_CXX='-Bstatic'
20720 lt_prog_compiler_pic_CXX='-fPIC'
20723 amigaos*)
20724 case $host_cpu in
20725 powerpc)
20726 # see comment about AmigaOS4 .so support
20727 lt_prog_compiler_pic_CXX='-fPIC'
20729 m68k)
20730 # FIXME: we need at least 68020 code to build shared libraries, but
20731 # adding the `-m68020' flag to GCC prevents building anything better,
20732 # like `-m68040'.
20733 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20735 esac
20738 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20739 # PIC is the default for these OSes.
20741 mingw* | cygwin* | os2* | pw32* | cegcc*)
20742 # This hack is so that the source file can tell whether it is being
20743 # built for inclusion in a dll (and should export symbols for example).
20744 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20745 # (--disable-auto-import) libraries
20746 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20748 darwin* | rhapsody*)
20749 # PIC is the default on this platform
20750 # Common symbols not allowed in MH_DYLIB files
20751 lt_prog_compiler_pic_CXX='-fno-common'
20753 *djgpp*)
20754 # DJGPP does not support shared libraries at all
20755 lt_prog_compiler_pic_CXX=
20757 haiku*)
20758 # PIC is the default for Haiku.
20759 # The "-static" flag exists, but is broken.
20760 lt_prog_compiler_static_CXX=
20762 interix[3-9]*)
20763 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20764 # Instead, we relocate shared libraries at runtime.
20766 sysv4*MP*)
20767 if test -d /usr/nec; then
20768 lt_prog_compiler_pic_CXX=-Kconform_pic
20771 hpux*)
20772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20774 # sets the default TLS model and affects inlining.
20775 case $host_cpu in
20776 hppa*64*)
20779 lt_prog_compiler_pic_CXX='-fPIC'
20781 esac
20783 *qnx* | *nto*)
20784 # QNX uses GNU C++, but need to define -shared option too, otherwise
20785 # it will coredump.
20786 lt_prog_compiler_pic_CXX='-fPIC -shared'
20789 lt_prog_compiler_pic_CXX='-fPIC'
20791 esac
20792 else
20793 case $host_os in
20794 aix[4-9]*)
20795 # All AIX code is PIC.
20796 if test "$host_cpu" = ia64; then
20797 # AIX 5 now supports IA64 processor
20798 lt_prog_compiler_static_CXX='-Bstatic'
20799 else
20800 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20803 chorus*)
20804 case $cc_basename in
20805 cxch68*)
20806 # Green Hills C++ Compiler
20807 # _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"
20809 esac
20811 dgux*)
20812 case $cc_basename in
20813 ec++*)
20814 lt_prog_compiler_pic_CXX='-KPIC'
20816 ghcx*)
20817 # Green Hills C++ Compiler
20818 lt_prog_compiler_pic_CXX='-pic'
20822 esac
20824 freebsd* | dragonfly*)
20825 # FreeBSD uses GNU C++
20827 hpux9* | hpux10* | hpux11*)
20828 case $cc_basename in
20829 CC*)
20830 lt_prog_compiler_wl_CXX='-Wl,'
20831 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20832 if test "$host_cpu" != ia64; then
20833 lt_prog_compiler_pic_CXX='+Z'
20836 aCC*)
20837 lt_prog_compiler_wl_CXX='-Wl,'
20838 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20839 case $host_cpu in
20840 hppa*64*|ia64*)
20841 # +Z the default
20844 lt_prog_compiler_pic_CXX='+Z'
20846 esac
20850 esac
20852 interix*)
20853 # This is c89, which is MS Visual C++ (no shared libs)
20854 # Anyone wants to do a port?
20856 irix5* | irix6* | nonstopux*)
20857 case $cc_basename in
20858 CC*)
20859 lt_prog_compiler_wl_CXX='-Wl,'
20860 lt_prog_compiler_static_CXX='-non_shared'
20861 # CC pic flag -KPIC is the default.
20865 esac
20867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20868 case $cc_basename in
20869 KCC*)
20870 # KAI C++ Compiler
20871 lt_prog_compiler_wl_CXX='--backend -Wl,'
20872 lt_prog_compiler_pic_CXX='-fPIC'
20874 ecpc* )
20875 # old Intel C++ for x86_64 which still supported -KPIC.
20876 lt_prog_compiler_wl_CXX='-Wl,'
20877 lt_prog_compiler_pic_CXX='-KPIC'
20878 lt_prog_compiler_static_CXX='-static'
20880 icpc* )
20881 # Intel C++, used to be incompatible with GCC.
20882 # ICC 10 doesn't accept -KPIC any more.
20883 lt_prog_compiler_wl_CXX='-Wl,'
20884 lt_prog_compiler_pic_CXX='-fPIC'
20885 lt_prog_compiler_static_CXX='-static'
20887 pgCC* | pgcpp*)
20888 # Portland Group C++ compiler
20889 lt_prog_compiler_wl_CXX='-Wl,'
20890 lt_prog_compiler_pic_CXX='-fpic'
20891 lt_prog_compiler_static_CXX='-Bstatic'
20893 cxx*)
20894 # Compaq C++
20895 # Make sure the PIC flag is empty. It appears that all Alpha
20896 # Linux and Compaq Tru64 Unix objects are PIC.
20897 lt_prog_compiler_pic_CXX=
20898 lt_prog_compiler_static_CXX='-non_shared'
20900 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20901 # IBM XL 8.0, 9.0 on PPC and BlueGene
20902 lt_prog_compiler_wl_CXX='-Wl,'
20903 lt_prog_compiler_pic_CXX='-qpic'
20904 lt_prog_compiler_static_CXX='-qstaticlink'
20907 case `$CC -V 2>&1 | sed 5q` in
20908 *Sun\ C*)
20909 # Sun C++ 5.9
20910 lt_prog_compiler_pic_CXX='-KPIC'
20911 lt_prog_compiler_static_CXX='-Bstatic'
20912 lt_prog_compiler_wl_CXX='-Qoption ld '
20914 esac
20916 esac
20918 lynxos*)
20920 m88k*)
20922 mvs*)
20923 case $cc_basename in
20924 cxx*)
20925 lt_prog_compiler_pic_CXX='-W c,exportall'
20929 esac
20931 netbsd*)
20933 *qnx* | *nto*)
20934 # QNX uses GNU C++, but need to define -shared option too, otherwise
20935 # it will coredump.
20936 lt_prog_compiler_pic_CXX='-fPIC -shared'
20938 osf3* | osf4* | osf5*)
20939 case $cc_basename in
20940 KCC*)
20941 lt_prog_compiler_wl_CXX='--backend -Wl,'
20943 RCC*)
20944 # Rational C++ 2.4.1
20945 lt_prog_compiler_pic_CXX='-pic'
20947 cxx*)
20948 # Digital/Compaq C++
20949 lt_prog_compiler_wl_CXX='-Wl,'
20950 # Make sure the PIC flag is empty. It appears that all Alpha
20951 # Linux and Compaq Tru64 Unix objects are PIC.
20952 lt_prog_compiler_pic_CXX=
20953 lt_prog_compiler_static_CXX='-non_shared'
20957 esac
20959 psos*)
20961 solaris*)
20962 case $cc_basename in
20963 CC*)
20964 # Sun C++ 4.2, 5.x and Centerline C++
20965 lt_prog_compiler_pic_CXX='-KPIC'
20966 lt_prog_compiler_static_CXX='-Bstatic'
20967 lt_prog_compiler_wl_CXX='-Qoption ld '
20969 gcx*)
20970 # Green Hills C++ Compiler
20971 lt_prog_compiler_pic_CXX='-PIC'
20975 esac
20977 sunos4*)
20978 case $cc_basename in
20979 CC*)
20980 # Sun C++ 4.x
20981 lt_prog_compiler_pic_CXX='-pic'
20982 lt_prog_compiler_static_CXX='-Bstatic'
20984 lcc*)
20985 # Lucid
20986 lt_prog_compiler_pic_CXX='-pic'
20990 esac
20992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20993 case $cc_basename in
20994 CC*)
20995 lt_prog_compiler_wl_CXX='-Wl,'
20996 lt_prog_compiler_pic_CXX='-KPIC'
20997 lt_prog_compiler_static_CXX='-Bstatic'
20999 esac
21001 tandem*)
21002 case $cc_basename in
21003 NCC*)
21004 # NonStop-UX NCC 3.20
21005 lt_prog_compiler_pic_CXX='-KPIC'
21009 esac
21011 vxworks*)
21014 lt_prog_compiler_can_build_shared_CXX=no
21016 esac
21019 case $host_os in
21020 # For platforms which do not support PIC, -DPIC is meaningless:
21021 *djgpp*)
21022 lt_prog_compiler_pic_CXX=
21025 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21027 esac
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21029 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21034 # Check to make sure the PIC flag actually works.
21036 if test -n "$lt_prog_compiler_pic_CXX"; then
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21039 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21040 $as_echo_n "(cached) " >&6
21041 else
21042 lt_cv_prog_compiler_pic_works_CXX=no
21043 ac_outfile=conftest.$ac_objext
21044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21045 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21046 # Insert the option either (1) after the last *FLAGS variable, or
21047 # (2) before a word containing "conftest.", or (3) at the end.
21048 # Note that $ac_compile itself does not contain backslashes and begins
21049 # with a dollar sign (not a hyphen), so the echo should work correctly.
21050 # The option is referenced via a variable to avoid confusing sed.
21051 lt_compile=`echo "$ac_compile" | $SED \
21052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21054 -e 's:$: $lt_compiler_flag:'`
21055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21056 (eval "$lt_compile" 2>conftest.err)
21057 ac_status=$?
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 if (exit $ac_status) && test -s "$ac_outfile"; then
21061 # The compiler can only warn and ignore the option if not recognized
21062 # So say no if there are warnings other than the usual output.
21063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21066 lt_cv_prog_compiler_pic_works_CXX=yes
21069 $RM conftest*
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21073 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21075 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21076 case $lt_prog_compiler_pic_CXX in
21077 "" | " "*) ;;
21078 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21079 esac
21080 else
21081 lt_prog_compiler_pic_CXX=
21082 lt_prog_compiler_can_build_shared_CXX=no
21090 # Check to make sure the static flag actually works.
21092 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21095 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21096 $as_echo_n "(cached) " >&6
21097 else
21098 lt_cv_prog_compiler_static_works_CXX=no
21099 save_LDFLAGS="$LDFLAGS"
21100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21103 # The linker can only warn and ignore the option if not recognized
21104 # So say no if there are warnings
21105 if test -s conftest.err; then
21106 # Append any errors to the config.log.
21107 cat conftest.err 1>&5
21108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21110 if diff conftest.exp conftest.er2 >/dev/null; then
21111 lt_cv_prog_compiler_static_works_CXX=yes
21113 else
21114 lt_cv_prog_compiler_static_works_CXX=yes
21117 $RM -r conftest*
21118 LDFLAGS="$save_LDFLAGS"
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21122 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21124 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21126 else
21127 lt_prog_compiler_static_CXX=
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21135 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 lt_cv_prog_compiler_c_o_CXX=no
21139 $RM -r conftest 2>/dev/null
21140 mkdir conftest
21141 cd conftest
21142 mkdir out
21143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21145 lt_compiler_flag="-o out/conftest2.$ac_objext"
21146 # Insert the option either (1) after the last *FLAGS variable, or
21147 # (2) before a word containing "conftest.", or (3) at the end.
21148 # Note that $ac_compile itself does not contain backslashes and begins
21149 # with a dollar sign (not a hyphen), so the echo should work correctly.
21150 lt_compile=`echo "$ac_compile" | $SED \
21151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21153 -e 's:$: $lt_compiler_flag:'`
21154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21155 (eval "$lt_compile" 2>out/conftest.err)
21156 ac_status=$?
21157 cat out/conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21160 then
21161 # The compiler can only warn and ignore the option if not recognized
21162 # So say no if there are warnings
21163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21166 lt_cv_prog_compiler_c_o_CXX=yes
21169 chmod u+w . 2>&5
21170 $RM conftest*
21171 # SGI C++ compiler will create directory out/ii_files/ for
21172 # template instantiation
21173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21174 $RM out/* && rmdir out
21175 cd ..
21176 $RM -r conftest
21177 $RM conftest*
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21181 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21187 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21188 $as_echo_n "(cached) " >&6
21189 else
21190 lt_cv_prog_compiler_c_o_CXX=no
21191 $RM -r conftest 2>/dev/null
21192 mkdir conftest
21193 cd conftest
21194 mkdir out
21195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21197 lt_compiler_flag="-o out/conftest2.$ac_objext"
21198 # Insert the option either (1) after the last *FLAGS variable, or
21199 # (2) before a word containing "conftest.", or (3) at the end.
21200 # Note that $ac_compile itself does not contain backslashes and begins
21201 # with a dollar sign (not a hyphen), so the echo should work correctly.
21202 lt_compile=`echo "$ac_compile" | $SED \
21203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21205 -e 's:$: $lt_compiler_flag:'`
21206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21207 (eval "$lt_compile" 2>out/conftest.err)
21208 ac_status=$?
21209 cat out/conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21212 then
21213 # The compiler can only warn and ignore the option if not recognized
21214 # So say no if there are warnings
21215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21218 lt_cv_prog_compiler_c_o_CXX=yes
21221 chmod u+w . 2>&5
21222 $RM conftest*
21223 # SGI C++ compiler will create directory out/ii_files/ for
21224 # template instantiation
21225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21226 $RM out/* && rmdir out
21227 cd ..
21228 $RM -r conftest
21229 $RM conftest*
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21233 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21238 hard_links="nottested"
21239 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21240 # do not overwrite the value of need_locks provided by the user
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21242 $as_echo_n "checking if we can lock with hard links... " >&6; }
21243 hard_links=yes
21244 $RM conftest*
21245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21246 touch conftest.a
21247 ln conftest.a conftest.b 2>&5 || hard_links=no
21248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21250 $as_echo "$hard_links" >&6; }
21251 if test "$hard_links" = no; then
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21253 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21254 need_locks=warn
21256 else
21257 need_locks=no
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21266 case $host_os in
21267 aix[4-9]*)
21268 # If we're using GNU nm, then we don't want the "-C" option.
21269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21270 # Also, AIX nm treats weak defined symbols like other global defined
21271 # symbols, whereas GNU nm marks them as "W".
21272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21273 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'
21274 else
21275 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
21278 pw32*)
21279 export_symbols_cmds_CXX="$ltdll_cmds"
21281 cygwin* | mingw* | cegcc*)
21282 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'
21285 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21287 esac
21288 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21291 $as_echo "$ld_shlibs_CXX" >&6; }
21292 test "$ld_shlibs_CXX" = no && can_build_shared=no
21294 with_gnu_ld_CXX=$with_gnu_ld
21302 # Do we need to explicitly link libc?
21304 case "x$archive_cmds_need_lc_CXX" in
21305 x|xyes)
21306 # Assume -lc should be added
21307 archive_cmds_need_lc_CXX=yes
21309 if test "$enable_shared" = yes && test "$GCC" = yes; then
21310 case $archive_cmds_CXX in
21311 *'~'*)
21312 # FIXME: we may have to deal with multi-command sequences.
21314 '$CC '*)
21315 # Test whether the compiler implicitly links with -lc since on some
21316 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21317 # to ld, don't add -lc before -lgcc.
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21319 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21320 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21321 $as_echo_n "(cached) " >&6
21322 else
21323 $RM conftest*
21324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21327 (eval $ac_compile) 2>&5
21328 ac_status=$?
21329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21330 test $ac_status = 0; } 2>conftest.err; then
21331 soname=conftest
21332 lib=conftest
21333 libobjs=conftest.$ac_objext
21334 deplibs=
21335 wl=$lt_prog_compiler_wl_CXX
21336 pic_flag=$lt_prog_compiler_pic_CXX
21337 compiler_flags=-v
21338 linker_flags=-v
21339 verstring=
21340 output_objdir=.
21341 libname=conftest
21342 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21343 allow_undefined_flag_CXX=
21344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21345 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21346 ac_status=$?
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }
21349 then
21350 lt_cv_archive_cmds_need_lc_CXX=no
21351 else
21352 lt_cv_archive_cmds_need_lc_CXX=yes
21354 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21355 else
21356 cat conftest.err 1>&5
21358 $RM conftest*
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21362 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21363 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21365 esac
21368 esac
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21434 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21436 library_names_spec=
21437 libname_spec='lib$name'
21438 soname_spec=
21439 shrext_cmds=".so"
21440 postinstall_cmds=
21441 postuninstall_cmds=
21442 finish_cmds=
21443 finish_eval=
21444 shlibpath_var=
21445 shlibpath_overrides_runpath=unknown
21446 version_type=none
21447 dynamic_linker="$host_os ld.so"
21448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21449 need_lib_prefix=unknown
21450 hardcode_into_libs=no
21452 # when you set need_version to no, make sure it does not cause -set_version
21453 # flags to be left without arguments
21454 need_version=unknown
21456 case $host_os in
21457 aix3*)
21458 version_type=linux
21459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21460 shlibpath_var=LIBPATH
21462 # AIX 3 has no versioning support, so we append a major version to the name.
21463 soname_spec='${libname}${release}${shared_ext}$major'
21466 aix[4-9]*)
21467 version_type=linux
21468 need_lib_prefix=no
21469 need_version=no
21470 hardcode_into_libs=yes
21471 if test "$host_cpu" = ia64; then
21472 # AIX 5 supports IA64
21473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21474 shlibpath_var=LD_LIBRARY_PATH
21475 else
21476 # With GCC up to 2.95.x, collect2 would create an import file
21477 # for dependence libraries. The import file would start with
21478 # the line `#! .'. This would cause the generated library to
21479 # depend on `.', always an invalid library. This was fixed in
21480 # development snapshots of GCC prior to 3.0.
21481 case $host_os in
21482 aix4 | aix4.[01] | aix4.[01].*)
21483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21484 echo ' yes '
21485 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21487 else
21488 can_build_shared=no
21491 esac
21492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21493 # soname into executable. Probably we can add versioning support to
21494 # collect2, so additional links can be useful in future.
21495 if test "$aix_use_runtimelinking" = yes; then
21496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21497 # instead of lib<name>.a to let people know that these are not
21498 # typical AIX shared libraries.
21499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21500 else
21501 # We preserve .a as extension for shared libraries through AIX4.2
21502 # and later when we are not doing run time linking.
21503 library_names_spec='${libname}${release}.a $libname.a'
21504 soname_spec='${libname}${release}${shared_ext}$major'
21506 shlibpath_var=LIBPATH
21510 amigaos*)
21511 case $host_cpu in
21512 powerpc)
21513 # Since July 2007 AmigaOS4 officially supports .so libraries.
21514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21517 m68k)
21518 library_names_spec='$libname.ixlibrary $libname.a'
21519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21520 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'
21522 esac
21525 beos*)
21526 library_names_spec='${libname}${shared_ext}'
21527 dynamic_linker="$host_os ld.so"
21528 shlibpath_var=LIBRARY_PATH
21531 bsdi[45]*)
21532 version_type=linux
21533 need_version=no
21534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21535 soname_spec='${libname}${release}${shared_ext}$major'
21536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21537 shlibpath_var=LD_LIBRARY_PATH
21538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21540 # the default ld.so.conf also contains /usr/contrib/lib and
21541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21542 # libtool to hard-code these into programs
21545 cygwin* | mingw* | pw32* | cegcc*)
21546 version_type=windows
21547 shrext_cmds=".dll"
21548 need_version=no
21549 need_lib_prefix=no
21551 case $GCC,$host_os in
21552 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21553 library_names_spec='$libname.dll.a'
21554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21555 postinstall_cmds='base_file=`basename \${file}`~
21556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21557 dldir=$destdir/`dirname \$dlpath`~
21558 test -d \$dldir || mkdir -p \$dldir~
21559 $install_prog $dir/$dlname \$dldir/$dlname~
21560 chmod a+x \$dldir/$dlname~
21561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21565 dlpath=$dir/\$dldll~
21566 $RM \$dlpath'
21567 shlibpath_overrides_runpath=yes
21569 case $host_os in
21570 cygwin*)
21571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21575 mingw* | cegcc*)
21576 # MinGW DLLs use traditional 'lib' prefix
21577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21579 pw32*)
21580 # pw32 DLLs use 'pw' prefix rather than 'lib'
21581 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21583 esac
21587 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21589 esac
21590 dynamic_linker='Win32 ld.exe'
21591 # FIXME: first we should search . and the directory the executable is in
21592 shlibpath_var=PATH
21595 darwin* | rhapsody*)
21596 dynamic_linker="$host_os dyld"
21597 version_type=darwin
21598 need_lib_prefix=no
21599 need_version=no
21600 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21601 soname_spec='${libname}${release}${major}$shared_ext'
21602 shlibpath_overrides_runpath=yes
21603 shlibpath_var=DYLD_LIBRARY_PATH
21604 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21609 dgux*)
21610 version_type=linux
21611 need_lib_prefix=no
21612 need_version=no
21613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21614 soname_spec='${libname}${release}${shared_ext}$major'
21615 shlibpath_var=LD_LIBRARY_PATH
21618 freebsd* | dragonfly*)
21619 # DragonFly does not have aout. When/if they implement a new
21620 # versioning mechanism, adjust this.
21621 if test -x /usr/bin/objformat; then
21622 objformat=`/usr/bin/objformat`
21623 else
21624 case $host_os in
21625 freebsd[23].*) objformat=aout ;;
21626 *) objformat=elf ;;
21627 esac
21629 version_type=freebsd-$objformat
21630 case $version_type in
21631 freebsd-elf*)
21632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21633 need_version=no
21634 need_lib_prefix=no
21636 freebsd-*)
21637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21638 need_version=yes
21640 esac
21641 shlibpath_var=LD_LIBRARY_PATH
21642 case $host_os in
21643 freebsd2.*)
21644 shlibpath_overrides_runpath=yes
21646 freebsd3.[01]* | freebsdelf3.[01]*)
21647 shlibpath_overrides_runpath=yes
21648 hardcode_into_libs=yes
21650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21652 shlibpath_overrides_runpath=no
21653 hardcode_into_libs=yes
21655 *) # from 4.6 on, and DragonFly
21656 shlibpath_overrides_runpath=yes
21657 hardcode_into_libs=yes
21659 esac
21662 gnu*)
21663 version_type=linux
21664 need_lib_prefix=no
21665 need_version=no
21666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21667 soname_spec='${libname}${release}${shared_ext}$major'
21668 shlibpath_var=LD_LIBRARY_PATH
21669 hardcode_into_libs=yes
21672 haiku*)
21673 version_type=linux
21674 need_lib_prefix=no
21675 need_version=no
21676 dynamic_linker="$host_os runtime_loader"
21677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21678 soname_spec='${libname}${release}${shared_ext}$major'
21679 shlibpath_var=LIBRARY_PATH
21680 shlibpath_overrides_runpath=yes
21681 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21682 hardcode_into_libs=yes
21685 hpux9* | hpux10* | hpux11*)
21686 # Give a soname corresponding to the major version so that dld.sl refuses to
21687 # link against other versions.
21688 version_type=sunos
21689 need_lib_prefix=no
21690 need_version=no
21691 case $host_cpu in
21692 ia64*)
21693 shrext_cmds='.so'
21694 hardcode_into_libs=yes
21695 dynamic_linker="$host_os dld.so"
21696 shlibpath_var=LD_LIBRARY_PATH
21697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699 soname_spec='${libname}${release}${shared_ext}$major'
21700 if test "X$HPUX_IA64_MODE" = X32; then
21701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21702 else
21703 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21707 hppa*64*)
21708 shrext_cmds='.sl'
21709 hardcode_into_libs=yes
21710 dynamic_linker="$host_os dld.sl"
21711 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21712 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21714 soname_spec='${libname}${release}${shared_ext}$major'
21715 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21719 shrext_cmds='.sl'
21720 dynamic_linker="$host_os dld.sl"
21721 shlibpath_var=SHLIB_PATH
21722 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21724 soname_spec='${libname}${release}${shared_ext}$major'
21726 esac
21727 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21728 postinstall_cmds='chmod 555 $lib'
21729 # or fails outright, so override atomically:
21730 install_override_mode=555
21733 interix[3-9]*)
21734 version_type=linux
21735 need_lib_prefix=no
21736 need_version=no
21737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21738 soname_spec='${libname}${release}${shared_ext}$major'
21739 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21740 shlibpath_var=LD_LIBRARY_PATH
21741 shlibpath_overrides_runpath=no
21742 hardcode_into_libs=yes
21745 irix5* | irix6* | nonstopux*)
21746 case $host_os in
21747 nonstopux*) version_type=nonstopux ;;
21749 if test "$lt_cv_prog_gnu_ld" = yes; then
21750 version_type=linux
21751 else
21752 version_type=irix
21753 fi ;;
21754 esac
21755 need_lib_prefix=no
21756 need_version=no
21757 soname_spec='${libname}${release}${shared_ext}$major'
21758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21759 case $host_os in
21760 irix5* | nonstopux*)
21761 libsuff= shlibsuff=
21764 case $LD in # libtool.m4 will add one of these switches to LD
21765 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21766 libsuff= shlibsuff= libmagic=32-bit;;
21767 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21768 libsuff=32 shlibsuff=N32 libmagic=N32;;
21769 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21770 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21771 *) libsuff= shlibsuff= libmagic=never-match;;
21772 esac
21774 esac
21775 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21776 shlibpath_overrides_runpath=no
21777 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21778 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21779 hardcode_into_libs=yes
21782 # No shared lib support for Linux oldld, aout, or coff.
21783 linux*oldld* | linux*aout* | linux*coff*)
21784 dynamic_linker=no
21787 # This must be Linux ELF.
21788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21789 version_type=linux
21790 need_lib_prefix=no
21791 need_version=no
21792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21793 soname_spec='${libname}${release}${shared_ext}$major'
21794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21795 shlibpath_var=LD_LIBRARY_PATH
21796 shlibpath_overrides_runpath=no
21798 # Some binutils ld are patched to set DT_RUNPATH
21799 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21800 $as_echo_n "(cached) " >&6
21801 else
21802 lt_cv_shlibpath_overrides_runpath=no
21803 save_LDFLAGS=$LDFLAGS
21804 save_libdir=$libdir
21805 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21806 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21811 main ()
21815 return 0;
21817 _ACEOF
21818 if ac_fn_cxx_try_link "$LINENO"; then :
21819 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21820 lt_cv_shlibpath_overrides_runpath=yes
21823 rm -f core conftest.err conftest.$ac_objext \
21824 conftest$ac_exeext conftest.$ac_ext
21825 LDFLAGS=$save_LDFLAGS
21826 libdir=$save_libdir
21830 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21832 # This implies no fast_install, which is unacceptable.
21833 # Some rework will be needed to allow for fast_install
21834 # before this can be enabled.
21835 hardcode_into_libs=yes
21837 # Append ld.so.conf contents to the search path
21838 if test -f /etc/ld.so.conf; then
21839 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' ' '`
21840 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21843 # We used to test for /lib/ld.so.1 and disable shared libraries on
21844 # powerpc, because MkLinux only supported shared libraries with the
21845 # GNU dynamic linker. Since this was broken with cross compilers,
21846 # most powerpc-linux boxes support dynamic linking these days and
21847 # people can always --disable-shared, the test was removed, and we
21848 # assume the GNU/Linux dynamic linker is in use.
21849 dynamic_linker='GNU/Linux ld.so'
21852 netbsd*)
21853 version_type=sunos
21854 need_lib_prefix=no
21855 need_version=no
21856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21859 dynamic_linker='NetBSD (a.out) ld.so'
21860 else
21861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21862 soname_spec='${libname}${release}${shared_ext}$major'
21863 dynamic_linker='NetBSD ld.elf_so'
21865 shlibpath_var=LD_LIBRARY_PATH
21866 shlibpath_overrides_runpath=yes
21867 hardcode_into_libs=yes
21870 newsos6)
21871 version_type=linux
21872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 shlibpath_var=LD_LIBRARY_PATH
21874 shlibpath_overrides_runpath=yes
21877 *nto* | *qnx*)
21878 version_type=qnx
21879 need_lib_prefix=no
21880 need_version=no
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21882 soname_spec='${libname}${release}${shared_ext}$major'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 shlibpath_overrides_runpath=no
21885 hardcode_into_libs=yes
21886 dynamic_linker='ldqnx.so'
21889 openbsd*)
21890 version_type=sunos
21891 sys_lib_dlsearch_path_spec="/usr/lib"
21892 need_lib_prefix=no
21893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21894 case $host_os in
21895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21896 *) need_version=no ;;
21897 esac
21898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21900 shlibpath_var=LD_LIBRARY_PATH
21901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21902 case $host_os in
21903 openbsd2.[89] | openbsd2.[89].*)
21904 shlibpath_overrides_runpath=no
21907 shlibpath_overrides_runpath=yes
21909 esac
21910 else
21911 shlibpath_overrides_runpath=yes
21915 os2*)
21916 libname_spec='$name'
21917 shrext_cmds=".dll"
21918 need_lib_prefix=no
21919 library_names_spec='$libname${shared_ext} $libname.a'
21920 dynamic_linker='OS/2 ld.exe'
21921 shlibpath_var=LIBPATH
21924 osf3* | osf4* | osf5*)
21925 version_type=osf
21926 need_lib_prefix=no
21927 need_version=no
21928 soname_spec='${libname}${release}${shared_ext}$major'
21929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21930 shlibpath_var=LD_LIBRARY_PATH
21931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21935 rdos*)
21936 dynamic_linker=no
21939 solaris*)
21940 version_type=linux
21941 need_lib_prefix=no
21942 need_version=no
21943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21944 soname_spec='${libname}${release}${shared_ext}$major'
21945 shlibpath_var=LD_LIBRARY_PATH
21946 shlibpath_overrides_runpath=yes
21947 hardcode_into_libs=yes
21948 # ldd complains unless libraries are executable
21949 postinstall_cmds='chmod +x $lib'
21952 sunos4*)
21953 version_type=sunos
21954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 shlibpath_overrides_runpath=yes
21958 if test "$with_gnu_ld" = yes; then
21959 need_lib_prefix=no
21961 need_version=yes
21964 sysv4 | sysv4.3*)
21965 version_type=linux
21966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21967 soname_spec='${libname}${release}${shared_ext}$major'
21968 shlibpath_var=LD_LIBRARY_PATH
21969 case $host_vendor in
21970 sni)
21971 shlibpath_overrides_runpath=no
21972 need_lib_prefix=no
21973 runpath_var=LD_RUN_PATH
21975 siemens)
21976 need_lib_prefix=no
21978 motorola)
21979 need_lib_prefix=no
21980 need_version=no
21981 shlibpath_overrides_runpath=no
21982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21984 esac
21987 sysv4*MP*)
21988 if test -d /usr/nec ;then
21989 version_type=linux
21990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21991 soname_spec='$libname${shared_ext}.$major'
21992 shlibpath_var=LD_LIBRARY_PATH
21996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21997 version_type=freebsd-elf
21998 need_lib_prefix=no
21999 need_version=no
22000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22001 soname_spec='${libname}${release}${shared_ext}$major'
22002 shlibpath_var=LD_LIBRARY_PATH
22003 shlibpath_overrides_runpath=yes
22004 hardcode_into_libs=yes
22005 if test "$with_gnu_ld" = yes; then
22006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22007 else
22008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22009 case $host_os in
22010 sco3.2v5*)
22011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22013 esac
22015 sys_lib_dlsearch_path_spec='/usr/lib'
22018 tpf*)
22019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22020 version_type=linux
22021 need_lib_prefix=no
22022 need_version=no
22023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22024 shlibpath_var=LD_LIBRARY_PATH
22025 shlibpath_overrides_runpath=no
22026 hardcode_into_libs=yes
22029 uts4*)
22030 version_type=linux
22031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22032 soname_spec='${libname}${release}${shared_ext}$major'
22033 shlibpath_var=LD_LIBRARY_PATH
22037 dynamic_linker=no
22039 esac
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22041 $as_echo "$dynamic_linker" >&6; }
22042 test "$dynamic_linker" = no && can_build_shared=no
22044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22045 if test "$GCC" = yes; then
22046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22094 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22095 hardcode_action_CXX=
22096 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22097 test -n "$runpath_var_CXX" ||
22098 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22100 # We can hardcode non-existent directories.
22101 if test "$hardcode_direct_CXX" != no &&
22102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22103 # have to relink, otherwise we might link with an installed library
22104 # when we should be linking with a yet-to-be-installed one
22105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22106 test "$hardcode_minus_L_CXX" != no; then
22107 # Linking always hardcodes the temporary library directory.
22108 hardcode_action_CXX=relink
22109 else
22110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22111 hardcode_action_CXX=immediate
22113 else
22114 # We cannot hardcode anything, or else we can only hardcode existing
22115 # directories.
22116 hardcode_action_CXX=unsupported
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22119 $as_echo "$hardcode_action_CXX" >&6; }
22121 if test "$hardcode_action_CXX" = relink ||
22122 test "$inherit_rpath_CXX" = yes; then
22123 # Fast installation is not supported
22124 enable_fast_install=no
22125 elif test "$shlibpath_overrides_runpath" = yes ||
22126 test "$enable_shared" = no; then
22127 # Fast installation is not necessary
22128 enable_fast_install=needless
22137 fi # test -n "$compiler"
22139 CC=$lt_save_CC
22140 LDCXX=$LD
22141 LD=$lt_save_LD
22142 GCC=$lt_save_GCC
22143 with_gnu_ld=$lt_save_with_gnu_ld
22144 lt_cv_path_LDCXX=$lt_cv_path_LD
22145 lt_cv_path_LD=$lt_save_path_LD
22146 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22147 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22148 fi # test "$_lt_caught_CXX_error" != yes
22150 ac_ext=cpp
22151 ac_cpp='$CXXCPP $CPPFLAGS'
22152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22171 # Only expand once:
22177 # Identify the assembler which will work hand-in-glove with the newly
22178 # built GCC, so that we can examine its features. This is the assembler
22179 # which will be driven by the driver program.
22181 # If build != host, and we aren't building gas in-tree, we identify a
22182 # build->target assembler and hope that it will have the same features
22183 # as the host->target assembler we'll be using.
22184 gcc_cv_gas_major_version=
22185 gcc_cv_gas_minor_version=
22186 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22188 if ${gcc_cv_as+:} false; then :
22190 else
22192 if test -x "$DEFAULT_ASSEMBLER"; then
22193 gcc_cv_as="$DEFAULT_ASSEMBLER"
22194 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22195 && test -f ../gas/Makefile \
22196 && test x$build = x$host; then
22197 gcc_cv_as=../gas/as-new$build_exeext
22198 elif test -x as$build_exeext; then
22199 # Build using assembler in the current directory.
22200 gcc_cv_as=./as$build_exeext
22201 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22202 gcc_cv_as="$AS_FOR_TARGET"
22203 else
22204 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22205 set dummy $AS_FOR_TARGET; ac_word=$2
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22207 $as_echo_n "checking for $ac_word... " >&6; }
22208 if ${ac_cv_path_gcc_cv_as+:} false; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 case $gcc_cv_as in
22212 [\\/]* | ?:[\\/]*)
22213 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22217 for as_dir in $PATH
22219 IFS=$as_save_IFS
22220 test -z "$as_dir" && as_dir=.
22221 for ac_exec_ext in '' $ac_executable_extensions; do
22222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22223 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22225 break 2
22227 done
22228 done
22229 IFS=$as_save_IFS
22232 esac
22234 gcc_cv_as=$ac_cv_path_gcc_cv_as
22235 if test -n "$gcc_cv_as"; then
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22237 $as_echo "$gcc_cv_as" >&6; }
22238 else
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22240 $as_echo "no" >&6; }
22247 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22249 case "$ORIGINAL_AS_FOR_TARGET" in
22250 ./as | ./as$build_exeext) ;;
22251 *) ac_config_files="$ac_config_files as:exec-tool.in"
22253 esac
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22256 $as_echo_n "checking what assembler to use... " >&6; }
22257 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22258 # Single tree build which includes gas. We want to prefer it
22259 # over whatever linker top-level may have detected, since
22260 # we'll use what we're building after installation anyway.
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22262 $as_echo "newly built gas" >&6; }
22263 in_tree_gas=yes
22264 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22265 for f in $gcc_cv_as_bfd_srcdir/configure \
22266 $gcc_cv_as_gas_srcdir/configure \
22267 $gcc_cv_as_gas_srcdir/configure.ac \
22268 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22269 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22270 if test x$gcc_cv_gas_version != x; then
22271 break
22273 done
22274 case $gcc_cv_gas_version in
22275 VERSION=[0-9]*) ;;
22276 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22277 esac
22278 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22279 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22280 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22281 case $gcc_cv_gas_patch_version in
22282 "") gcc_cv_gas_patch_version="0" ;;
22283 esac
22284 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22285 + $gcc_cv_gas_minor_version \) \* 1000 \
22286 + $gcc_cv_gas_patch_version`
22288 in_tree_gas_is_elf=no
22289 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22290 || (grep 'obj_format = multi' ../gas/Makefile \
22291 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22292 then
22293 in_tree_gas_is_elf=yes
22295 else
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22297 $as_echo "$gcc_cv_as" >&6; }
22298 in_tree_gas=no
22301 default_ld=
22302 # Check whether --enable-ld was given.
22303 if test "${enable_ld+set}" = set; then :
22304 enableval=$enable_ld; case "${enableval}" in
22306 default_ld=ld.gold
22308 esac
22312 install_gold_as_default=no
22313 # Check whether --enable-gold was given.
22314 if test "${enable_gold+set}" = set; then :
22315 enableval=$enable_gold; case "${enableval}" in
22316 default)
22317 install_gold_as_default=yes
22319 yes)
22320 if test x${default_ld} != x; then
22321 install_gold_as_default=yes
22327 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22329 esac
22333 # Identify the linker which will work hand-in-glove with the newly
22334 # built GCC, so that we can examine its features. This is the linker
22335 # which will be driven by the driver program.
22337 # If build != host, and we aren't building gas in-tree, we identify a
22338 # build->target linker and hope that it will have the same features
22339 # as the host->target linker we'll be using.
22340 gcc_cv_gld_major_version=
22341 gcc_cv_gld_minor_version=
22342 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22343 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22344 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22346 if ${gcc_cv_ld+:} false; then :
22348 else
22350 if test -x "$DEFAULT_LINKER"; then
22351 gcc_cv_ld="$DEFAULT_LINKER"
22352 elif test $install_gold_as_default = yes \
22353 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22354 && test -f ../gold/Makefile \
22355 && test x$build = x$host; then
22356 gcc_cv_ld=../gold/ld-new$build_exeext
22357 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22358 && test -f ../ld/Makefile \
22359 && test x$build = x$host; then
22360 gcc_cv_ld=../ld/ld-new$build_exeext
22361 elif test -x collect-ld$build_exeext; then
22362 # Build using linker in the current directory.
22363 gcc_cv_ld=./collect-ld$build_exeext
22364 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22365 gcc_cv_ld="$LD_FOR_TARGET"
22366 else
22367 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22368 set dummy $LD_FOR_TARGET; ac_word=$2
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22370 $as_echo_n "checking for $ac_word... " >&6; }
22371 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 case $gcc_cv_ld in
22375 [\\/]* | ?:[\\/]*)
22376 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22380 for as_dir in $PATH
22382 IFS=$as_save_IFS
22383 test -z "$as_dir" && as_dir=.
22384 for ac_exec_ext in '' $ac_executable_extensions; do
22385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22386 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22388 break 2
22390 done
22391 done
22392 IFS=$as_save_IFS
22395 esac
22397 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22398 if test -n "$gcc_cv_ld"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22400 $as_echo "$gcc_cv_ld" >&6; }
22401 else
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22410 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22411 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22412 # if the PLUGIN_LD is set ld-new, just have it as ld
22413 # as that is the installed named.
22414 if test x$PLUGIN_LD_SUFFIX = xld-new \
22415 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22416 PLUGIN_LD_SUFFIX=ld
22419 # Check whether --with-plugin-ld was given.
22420 if test "${with_plugin_ld+set}" = set; then :
22421 withval=$with_plugin_ld; if test x"$withval" != x; then
22422 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22423 PLUGIN_LD_SUFFIX="$withval"
22429 cat >>confdefs.h <<_ACEOF
22430 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22431 _ACEOF
22434 # Check to see if we are using gold instead of ld
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22436 $as_echo_n "checking whether we are using gold... " >&6; }
22437 ld_is_gold=no
22438 if test x$gcc_cv_ld != x; then
22439 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22440 | grep "GNU gold" > /dev/null; then
22441 ld_is_gold=yes
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22445 $as_echo "$ld_is_gold" >&6; }
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22448 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22449 # Check to see if default ld is not gold, but gold is
22450 # available and has support for split stack. If gcc was configured
22451 # with gold then no checking is done.
22453 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22455 # For platforms other than powerpc64*, enable as appropriate.
22457 gold_non_default=no
22458 ld_gold=`which ${gcc_cv_ld}.gold`
22459 # Make sure this gold has minimal split stack support
22460 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22461 ld_vers=`$ld_gold --version | sed 1q`
22462 gold_vers=`echo $ld_vers | sed -n \
22463 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22464 case $target in
22465 # check that the gold version contains the complete split stack support
22466 # on powerpc64 big and little endian
22467 powerpc64*-*-*)
22468 case "$gold_vers" in
22469 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22471 *) gold_non_default=no
22473 esac
22475 esac
22477 if test $gold_non_default = yes; then
22479 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22484 $as_echo "$gold_non_default" >&6; }
22486 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22488 case "$ORIGINAL_LD_FOR_TARGET" in
22489 ./collect-ld | ./collect-ld$build_exeext) ;;
22490 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22492 esac
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22495 $as_echo_n "checking what linker to use... " >&6; }
22496 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22497 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22498 # Single tree build which includes ld. We want to prefer it
22499 # over whatever linker top-level may have detected, since
22500 # we'll use what we're building after installation anyway.
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22502 $as_echo "newly built ld" >&6; }
22503 in_tree_ld=yes
22504 in_tree_ld_is_elf=no
22505 if (grep 'EMUL = .*elf' ../ld/Makefile \
22506 || grep 'EMUL = .*linux' ../ld/Makefile \
22507 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22508 in_tree_ld_is_elf=yes
22509 elif test "$ld_is_gold" = yes; then
22510 in_tree_ld_is_elf=yes
22512 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22514 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22515 if test x$gcc_cv_gld_version != x; then
22516 break
22518 done
22519 case $gcc_cv_gld_version in
22520 VERSION=[0-9]*) ;;
22521 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22522 esac
22523 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22524 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22525 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22526 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22527 else
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22529 $as_echo "$gcc_cv_ld" >&6; }
22530 in_tree_ld=no
22531 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22532 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22533 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22539 # Figure out what nm we will be using.
22540 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22541 if ${gcc_cv_nm+:} false; then :
22543 else
22545 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22546 && test -f ../binutils/Makefile \
22547 && test x$build = x$host; then
22548 gcc_cv_nm=../binutils/nm-new$build_exeext
22549 elif test -x nm$build_exeext; then
22550 gcc_cv_nm=./nm$build_exeext
22551 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22552 gcc_cv_nm="$NM_FOR_TARGET"
22553 else
22554 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22555 set dummy $NM_FOR_TARGET; ac_word=$2
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22557 $as_echo_n "checking for $ac_word... " >&6; }
22558 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22559 $as_echo_n "(cached) " >&6
22560 else
22561 case $gcc_cv_nm in
22562 [\\/]* | ?:[\\/]*)
22563 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22567 for as_dir in $PATH
22569 IFS=$as_save_IFS
22570 test -z "$as_dir" && as_dir=.
22571 for ac_exec_ext in '' $ac_executable_extensions; do
22572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22573 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22575 break 2
22577 done
22578 done
22579 IFS=$as_save_IFS
22582 esac
22584 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22585 if test -n "$gcc_cv_nm"; then
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22587 $as_echo "$gcc_cv_nm" >&6; }
22588 else
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22590 $as_echo "no" >&6; }
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22598 $as_echo_n "checking what nm to use... " >&6; }
22599 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22600 # Single tree build which includes binutils.
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22602 $as_echo "newly built nm" >&6; }
22603 in_tree_nm=yes
22604 else
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22606 $as_echo "$gcc_cv_nm" >&6; }
22607 in_tree_nm=no
22610 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22612 case "$ORIGINAL_NM_FOR_TARGET" in
22613 ./nm | ./nm$build_exeext) ;;
22614 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22616 esac
22619 # Figure out what objdump we will be using.
22620 if ${gcc_cv_objdump+:} false; then :
22622 else
22624 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22625 && test -f ../binutils/Makefile \
22626 && test x$build = x$host; then
22627 # Single tree build which includes binutils.
22628 gcc_cv_objdump=../binutils/objdump$build_exeext
22629 elif test -x objdump$build_exeext; then
22630 gcc_cv_objdump=./objdump$build_exeext
22631 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22632 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22633 else
22634 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22635 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22637 $as_echo_n "checking for $ac_word... " >&6; }
22638 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22639 $as_echo_n "(cached) " >&6
22640 else
22641 case $gcc_cv_objdump in
22642 [\\/]* | ?:[\\/]*)
22643 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22647 for as_dir in $PATH
22649 IFS=$as_save_IFS
22650 test -z "$as_dir" && as_dir=.
22651 for ac_exec_ext in '' $ac_executable_extensions; do
22652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22653 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22655 break 2
22657 done
22658 done
22659 IFS=$as_save_IFS
22662 esac
22664 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22665 if test -n "$gcc_cv_objdump"; then
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22667 $as_echo "$gcc_cv_objdump" >&6; }
22668 else
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22670 $as_echo "no" >&6; }
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22678 $as_echo_n "checking what objdump to use... " >&6; }
22679 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22680 # Single tree build which includes binutils.
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22682 $as_echo "newly built objdump" >&6; }
22683 elif test x$gcc_cv_objdump = x; then
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22685 $as_echo "not found" >&6; }
22686 else
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22688 $as_echo "$gcc_cv_objdump" >&6; }
22691 # Figure out what readelf we will be using.
22692 if ${gcc_cv_readelf+:} false; then :
22694 else
22696 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22697 && test -f ../binutils/Makefile \
22698 && test x$build = x$host; then
22699 # Single tree build which includes binutils.
22700 gcc_cv_readelf=../binutils/readelf$build_exeext
22701 elif test -x readelf$build_exeext; then
22702 gcc_cv_readelf=./readelf$build_exeext
22703 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22704 gcc_cv_readelf="$READELF_FOR_TARGET"
22705 else
22706 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22707 set dummy $READELF_FOR_TARGET; ac_word=$2
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22709 $as_echo_n "checking for $ac_word... " >&6; }
22710 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22711 $as_echo_n "(cached) " >&6
22712 else
22713 case $gcc_cv_readelf in
22714 [\\/]* | ?:[\\/]*)
22715 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22719 for as_dir in $PATH
22721 IFS=$as_save_IFS
22722 test -z "$as_dir" && as_dir=.
22723 for ac_exec_ext in '' $ac_executable_extensions; do
22724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22725 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22727 break 2
22729 done
22730 done
22731 IFS=$as_save_IFS
22734 esac
22736 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22737 if test -n "$gcc_cv_readelf"; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22739 $as_echo "$gcc_cv_readelf" >&6; }
22740 else
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22742 $as_echo "no" >&6; }
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22750 $as_echo_n "checking what readelf to use... " >&6; }
22751 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22752 # Single tree build which includes binutils.
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22754 $as_echo "newly built readelf" >&6; }
22755 elif test x$gcc_cv_readelf = x; then
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22757 $as_echo "not found" >&6; }
22758 else
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22760 $as_echo "$gcc_cv_readelf" >&6; }
22763 # Figure out what otool we will be using.
22764 if ${gcc_cv_otool+:} false; then :
22766 else
22768 if test -x otool$build_exeext; then
22769 gcc_cv_otool=./otool$build_exeext
22770 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22771 gcc_cv_otool="$OTOOL_FOR_TARGET"
22772 else
22773 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22774 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22776 $as_echo_n "checking for $ac_word... " >&6; }
22777 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22778 $as_echo_n "(cached) " >&6
22779 else
22780 case $gcc_cv_otool in
22781 [\\/]* | ?:[\\/]*)
22782 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22786 for as_dir in $PATH
22788 IFS=$as_save_IFS
22789 test -z "$as_dir" && as_dir=.
22790 for ac_exec_ext in '' $ac_executable_extensions; do
22791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22792 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22794 break 2
22796 done
22797 done
22798 IFS=$as_save_IFS
22801 esac
22803 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22804 if test -n "$gcc_cv_otool"; then
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22806 $as_echo "$gcc_cv_otool" >&6; }
22807 else
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22817 $as_echo_n "checking what otool to use... " >&6; }
22818 if test x$gcc_cv_otool = x; then
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22820 $as_echo "not found" >&6; }
22821 else
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22823 $as_echo "$gcc_cv_otool" >&6; }
22826 # Figure out what assembler alignment features are present.
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22828 $as_echo_n "checking assembler flags... " >&6; }
22829 if ${gcc_cv_as_flags+:} false; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 case "$target" in
22833 i[34567]86-*-linux*)
22834 gcc_cv_as_flags=--32
22836 x86_64-*-linux-gnux32)
22837 gcc_cv_as_flags=--x32
22839 x86_64-*-linux*)
22840 gcc_cv_as_flags=--64
22842 powerpc*-*-darwin*)
22843 gcc_cv_as_flags="-arch ppc"
22846 gcc_cv_as_flags=" "
22848 esac
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22851 $as_echo "$gcc_cv_as_flags" >&6; }
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22854 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22855 if ${gcc_cv_as_balign_and_p2align+:} false; then :
22856 $as_echo_n "(cached) " >&6
22857 else
22858 gcc_cv_as_balign_and_p2align=no
22859 if test $in_tree_gas = yes; then
22860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22861 then gcc_cv_as_balign_and_p2align=yes
22863 elif test x$gcc_cv_as != x; then
22864 $as_echo '.balign 4
22865 .p2align 2' > conftest.s
22866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22872 then
22873 gcc_cv_as_balign_and_p2align=yes
22874 else
22875 echo "configure: failed program was" >&5
22876 cat conftest.s >&5
22878 rm -f conftest.o conftest.s
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22882 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22883 if test $gcc_cv_as_balign_and_p2align = yes; then
22885 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22891 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22892 if ${gcc_cv_as_max_skip_p2align+:} false; then :
22893 $as_echo_n "(cached) " >&6
22894 else
22895 gcc_cv_as_max_skip_p2align=no
22896 if test $in_tree_gas = yes; then
22897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22898 then gcc_cv_as_max_skip_p2align=yes
22900 elif test x$gcc_cv_as != x; then
22901 $as_echo '.p2align 4,,7' > conftest.s
22902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22904 (eval $ac_try) 2>&5
22905 ac_status=$?
22906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22907 test $ac_status = 0; }; }
22908 then
22909 gcc_cv_as_max_skip_p2align=yes
22910 else
22911 echo "configure: failed program was" >&5
22912 cat conftest.s >&5
22914 rm -f conftest.o conftest.s
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22918 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22919 if test $gcc_cv_as_max_skip_p2align = yes; then
22921 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22927 $as_echo_n "checking assembler for .literal16... " >&6; }
22928 if ${gcc_cv_as_literal16+:} false; then :
22929 $as_echo_n "(cached) " >&6
22930 else
22931 gcc_cv_as_literal16=no
22932 if test $in_tree_gas = yes; then
22933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22934 then gcc_cv_as_literal16=yes
22936 elif test x$gcc_cv_as != x; then
22937 $as_echo '.literal16' > conftest.s
22938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }
22944 then
22945 gcc_cv_as_literal16=yes
22946 else
22947 echo "configure: failed program was" >&5
22948 cat conftest.s >&5
22950 rm -f conftest.o conftest.s
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22954 $as_echo "$gcc_cv_as_literal16" >&6; }
22955 if test $gcc_cv_as_literal16 = yes; then
22957 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22963 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22964 if ${gcc_cv_as_subsection_m1+:} false; then :
22965 $as_echo_n "(cached) " >&6
22966 else
22967 gcc_cv_as_subsection_m1=no
22968 if test $in_tree_gas = yes; then
22969 if test $in_tree_gas_is_elf = yes \
22970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22971 then gcc_cv_as_subsection_m1=yes
22973 elif test x$gcc_cv_as != x; then
22974 $as_echo 'conftest_label1: .word 0
22975 .subsection -1
22976 conftest_label2: .word 0
22977 .previous' > conftest.s
22978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22980 (eval $ac_try) 2>&5
22981 ac_status=$?
22982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22983 test $ac_status = 0; }; }
22984 then
22985 if test x$gcc_cv_nm != x; then
22986 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22987 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22988 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22989 then :
22990 else gcc_cv_as_subsection_m1=yes
22992 rm -f conftest.nm1 conftest.nm2
22994 else
22995 echo "configure: failed program was" >&5
22996 cat conftest.s >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23002 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23003 if test $gcc_cv_as_subsection_m1 = yes; then
23005 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23011 $as_echo_n "checking assembler for .weak... " >&6; }
23012 if ${gcc_cv_as_weak+:} false; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 gcc_cv_as_weak=no
23016 if test $in_tree_gas = yes; then
23017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23018 then gcc_cv_as_weak=yes
23020 elif test x$gcc_cv_as != x; then
23021 $as_echo ' .weak foobar' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23029 gcc_cv_as_weak=yes
23030 else
23031 echo "configure: failed program was" >&5
23032 cat conftest.s >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23038 $as_echo "$gcc_cv_as_weak" >&6; }
23039 if test $gcc_cv_as_weak = yes; then
23041 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23047 $as_echo_n "checking assembler for .weakref... " >&6; }
23048 if ${gcc_cv_as_weakref+:} false; then :
23049 $as_echo_n "(cached) " >&6
23050 else
23051 gcc_cv_as_weakref=no
23052 if test $in_tree_gas = yes; then
23053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23054 then gcc_cv_as_weakref=yes
23056 elif test x$gcc_cv_as != x; then
23057 $as_echo ' .weakref foobar, barfnot' > conftest.s
23058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23064 then
23065 gcc_cv_as_weakref=yes
23066 else
23067 echo "configure: failed program was" >&5
23068 cat conftest.s >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23074 $as_echo "$gcc_cv_as_weakref" >&6; }
23075 if test $gcc_cv_as_weakref = yes; then
23077 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23083 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23084 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23085 $as_echo_n "(cached) " >&6
23086 else
23087 gcc_cv_as_nsubspa_comdat=no
23088 if test $in_tree_gas = yes; then
23089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23090 then gcc_cv_as_nsubspa_comdat=yes
23092 elif test x$gcc_cv_as != x; then
23093 $as_echo ' .SPACE $TEXT$
23094 .NSUBSPA $CODE$,COMDAT' > conftest.s
23095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23101 then
23102 gcc_cv_as_nsubspa_comdat=yes
23103 else
23104 echo "configure: failed program was" >&5
23105 cat conftest.s >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23111 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23112 if test $gcc_cv_as_nsubspa_comdat = yes; then
23114 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23119 # .hidden needs to be supported in both the assembler and the linker,
23120 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23121 # This is irritatingly difficult to feature test for; we have to check the
23122 # date string after the version number. If we've got an in-tree
23123 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23124 # to be safe.
23125 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23126 case "${target}" in
23127 *-*-aix*)
23128 conftest_s=' .globl foobar,hidden'
23131 conftest_s=' .hidden foobar
23132 foobar:'
23134 esac
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23136 $as_echo_n "checking assembler for .hidden... " >&6; }
23137 if ${gcc_cv_as_hidden+:} false; then :
23138 $as_echo_n "(cached) " >&6
23139 else
23140 gcc_cv_as_hidden=no
23141 if test $in_tree_gas = yes; then
23142 if test $in_tree_gas_is_elf = yes \
23143 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23144 then gcc_cv_as_hidden=yes
23146 elif test x$gcc_cv_as != x; then
23147 $as_echo "$conftest_s" > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 gcc_cv_as_hidden=yes
23156 else
23157 echo "configure: failed program was" >&5
23158 cat conftest.s >&5
23160 rm -f conftest.o conftest.s
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23164 $as_echo "$gcc_cv_as_hidden" >&6; }
23167 case "${target}" in
23168 *-*-darwin*)
23169 # Darwin as has some visibility support, though with a different syntax.
23170 gcc_cv_as_hidden=yes
23172 esac
23174 # gnu_indirect_function type is an extension proposed at
23175 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23176 # selection of function implementation
23177 # Check whether --enable-gnu-indirect-function was given.
23178 if test "${enable_gnu_indirect_function+set}" = set; then :
23179 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23180 yes | no) ;;
23181 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23182 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23183 esac
23184 else
23185 enable_gnu_indirect_function="$default_gnu_indirect_function"
23189 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23191 cat >>confdefs.h <<_ACEOF
23192 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23193 _ACEOF
23197 if test $in_tree_ld != yes ; then
23198 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23199 if echo "$ld_ver" | grep GNU > /dev/null; then
23200 if test x"$ld_is_gold" = xyes; then
23201 # GNU gold --version looks like this:
23203 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23205 # We extract the binutils version which is more familiar and specific
23206 # than the gold version.
23207 ld_vers=`echo $ld_ver | sed -n \
23208 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23209 else
23210 # GNU ld --version looks like this:
23212 # GNU ld (GNU Binutils) 2.21.51.20110225
23213 ld_vers=`echo $ld_ver | sed -n \
23214 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23216 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'`
23217 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23218 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23219 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23220 else
23221 case "${target}" in
23222 *-*-solaris2*)
23223 # Solaris 2 ld -V output looks like this for a regular version:
23225 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23227 # but test versions add stuff at the end:
23229 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23231 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23232 # numbers can be used in ld.so.1 feature checks even if a different
23233 # linker is configured.
23234 ld_ver=`$gcc_cv_ld -V 2>&1`
23235 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23236 ld_vers=`echo $ld_ver | sed -n \
23237 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23238 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23239 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23242 esac
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23247 $as_echo_n "checking linker for .hidden support... " >&6; }
23248 if ${gcc_cv_ld_hidden+:} false; then :
23249 $as_echo_n "(cached) " >&6
23250 else
23251 if test $in_tree_ld = yes ; then
23252 gcc_cv_ld_hidden=no
23253 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 \
23254 && test $in_tree_ld_is_elf = yes; then
23255 gcc_cv_ld_hidden=yes
23257 else
23258 gcc_cv_ld_hidden=yes
23259 if test x"$ld_is_gold" = xyes; then
23261 elif echo "$ld_ver" | grep GNU > /dev/null; then
23262 case "${target}" in
23263 mmix-knuth-mmixware)
23264 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23265 gcc_cv_ld_hidden=no
23267 esac
23268 if test 0"$ld_date" -lt 20020404; then
23269 if test -n "$ld_date"; then
23270 # If there was date string, but was earlier than 2002-04-04, fail
23271 gcc_cv_ld_hidden=no
23272 elif test -z "$ld_vers"; then
23273 # If there was no date string nor ld version number, something is wrong
23274 gcc_cv_ld_hidden=no
23275 else
23276 test -z "$ld_vers_patch" && ld_vers_patch=0
23277 if test "$ld_vers_major" -lt 2; then
23278 gcc_cv_ld_hidden=no
23279 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23280 gcc_cv_ld_hidden="no"
23281 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23282 gcc_cv_ld_hidden=no
23286 else
23287 case "${target}" in
23288 *-*-aix[789]*)
23289 gcc_cv_ld_hidden=yes
23291 *-*-darwin*)
23292 # Darwin ld has some visibility support.
23293 gcc_cv_ld_hidden=yes
23295 hppa64*-*-hpux* | ia64*-*-hpux*)
23296 gcc_cv_ld_hidden=yes
23298 *-*-solaris2*)
23299 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23300 # .symbolic was only added in Solaris 9 12/02.
23301 gcc_cv_ld_hidden=yes
23304 gcc_cv_ld_hidden=no
23306 esac
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23311 $as_echo "$gcc_cv_ld_hidden" >&6; }
23312 libgcc_visibility=no
23315 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23316 libgcc_visibility=yes
23318 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23323 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23324 gcc_cv_ld_ro_rw_mix=unknown
23325 if test $in_tree_ld = yes ; then
23326 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 \
23327 && test $in_tree_ld_is_elf = yes; then
23328 gcc_cv_ld_ro_rw_mix=read-write
23330 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23331 echo '.section myfoosect, "a"' > conftest1.s
23332 echo '.section myfoosect, "aw"' > conftest2.s
23333 echo '.byte 1' >> conftest2.s
23334 echo '.section myfoosect, "a"' > conftest3.s
23335 echo '.byte 0' >> conftest3.s
23336 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23337 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23338 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23339 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23340 conftest2.o conftest3.o > /dev/null 2>&1; then
23341 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23342 | sed -e '/myfoosect/!d' -e N`
23343 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23344 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23345 gcc_cv_ld_ro_rw_mix=read-only
23346 else
23347 gcc_cv_ld_ro_rw_mix=read-write
23351 rm -f conftest.* conftest[123].*
23353 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23355 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23359 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23361 # Check whether --enable-initfini-array was given.
23362 if test "${enable_initfini_array+set}" = set; then :
23363 enableval=$enable_initfini_array;
23364 else
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23367 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23368 if ${gcc_cv_initfini_array+:} false; then :
23369 $as_echo_n "(cached) " >&6
23370 else
23371 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23372 case "${target}" in
23373 ia64-*)
23374 if test "$cross_compiling" = yes; then :
23375 gcc_cv_initfini_array=no
23376 else
23377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23378 /* end confdefs.h. */
23380 #ifndef __ELF__
23381 #error Not an ELF OS
23382 #endif
23383 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23384 if it can be used. */
23385 static int x = -1;
23386 int main (void) { return x; }
23387 int foo (void) { x = 0; }
23388 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23390 _ACEOF
23391 if ac_fn_cxx_try_run "$LINENO"; then :
23392 gcc_cv_initfini_array=yes
23393 else
23394 gcc_cv_initfini_array=no
23396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23397 conftest.$ac_objext conftest.beam conftest.$ac_ext
23401 gcc_cv_initfini_array=no
23402 if test $in_tree_ld = yes ; then
23403 if test "$gcc_cv_gld_major_version" -eq 2 \
23404 -a "$gcc_cv_gld_minor_version" -ge 22 \
23405 -o "$gcc_cv_gld_major_version" -gt 2 \
23406 && test $in_tree_ld_is_elf = yes; then
23407 gcc_cv_initfini_array=yes
23409 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23410 case $target:$gas in
23411 *:yes)
23412 sh_flags='"a"'
23413 sh_type='%progbits'
23415 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23416 sh_flags='"a"'
23417 sh_type='@progbits'
23419 sparc*-*-solaris2*:no)
23420 sh_flags='#alloc'
23421 sh_type='#progbits'
23422 sh_quote='"'
23424 esac
23425 case "$target:$gnu_ld" in
23426 *:yes)
23427 cat > conftest.s <<EOF
23428 .section .dtors,$sh_flags,$sh_type
23429 .balign 4
23430 .byte 'A', 'A', 'A', 'A'
23431 .section .ctors,$sh_flags,$sh_type
23432 .balign 4
23433 .byte 'B', 'B', 'B', 'B'
23434 .section .fini_array.65530,$sh_flags,$sh_type
23435 .balign 4
23436 .byte 'C', 'C', 'C', 'C'
23437 .section .init_array.65530,$sh_flags,$sh_type
23438 .balign 4
23439 .byte 'D', 'D', 'D', 'D'
23440 .section .dtors.64528,$sh_flags,$sh_type
23441 .balign 4
23442 .byte 'E', 'E', 'E', 'E'
23443 .section .ctors.64528,$sh_flags,$sh_type
23444 .balign 4
23445 .byte 'F', 'F', 'F', 'F'
23446 .section .fini_array.01005,$sh_flags,$sh_type
23447 .balign 4
23448 .byte 'G', 'G', 'G', 'G'
23449 .section .init_array.01005,$sh_flags,$sh_type
23450 .balign 4
23451 .byte 'H', 'H', 'H', 'H'
23452 .text
23453 .globl _start
23454 _start:
23456 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23457 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23458 && $gcc_cv_objdump -s -j .init_array conftest \
23459 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23460 && $gcc_cv_objdump -s -j .fini_array conftest \
23461 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23462 gcc_cv_initfini_array=yes
23465 *-*-solaris2*:no)
23466 # When Solaris ld added constructor priority support, it was
23467 # decided to only handle .init_array.N/.fini_array.N since
23468 # there was no need for backwards compatibility with
23469 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23470 # sections with correct execution order resp. to
23471 # .init_array/.fini_array, while gld merges them into
23472 # .init_array/.fini_array.
23473 cat > conftest.s <<EOF
23474 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23475 .align 4
23476 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23477 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23478 .align 4
23479 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23480 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23481 .align 4
23482 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23483 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23484 .align 4
23485 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23486 .text
23487 .globl _start
23488 _start:
23490 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23491 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23492 && $gcc_cv_objdump -s -j .init_array conftest \
23493 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23494 && $gcc_cv_objdump -s -j .fini_array conftest \
23495 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23496 gcc_cv_initfini_array=yes
23499 esac
23500 rm -f conftest conftest.*
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23505 #ifndef __ELF__
23506 # error Not an ELF OS
23507 #endif
23508 #include <stdlib.h>
23509 #if defined __GLIBC_PREREQ
23510 # if __GLIBC_PREREQ (2, 4)
23511 # else
23512 # error GLIBC 2.4 required
23513 # endif
23514 #else
23515 # if defined __sun__ && defined __svr4__
23516 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23517 # else
23518 # error The C library not known to support .init_array/.fini_array
23519 # endif
23520 #endif
23522 _ACEOF
23523 if ac_fn_cxx_try_cpp "$LINENO"; then :
23525 else
23526 gcc_cv_initfini_array=no
23528 rm -f conftest.err conftest.i conftest.$ac_ext;;
23529 esac
23530 else
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23532 $as_echo_n "checking cross compile... guessing... " >&6; }
23533 gcc_cv_initfini_array=no
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23537 $as_echo "$gcc_cv_initfini_array" >&6; }
23538 enable_initfini_array=$gcc_cv_initfini_array
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23545 _ACEOF
23549 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23551 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23552 if ${gcc_cv_as_leb128+:} false; then :
23553 $as_echo_n "(cached) " >&6
23554 else
23555 gcc_cv_as_leb128=no
23556 if test $in_tree_gas = yes; then
23557 if test $in_tree_gas_is_elf = yes \
23558 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23559 then gcc_cv_as_leb128=yes
23561 elif test x$gcc_cv_as != x; then
23562 $as_echo ' .data
23563 .uleb128 L2 - L1
23565 .uleb128 1280
23566 .sleb128 -1010
23567 L2:' > conftest.s
23568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23573 test $ac_status = 0; }; }
23574 then
23575 # GAS versions before 2.11 do not support uleb128,
23576 # despite appearing to.
23577 # ??? There exists an elf-specific test that will crash
23578 # the assembler. Perhaps it's better to figure out whether
23579 # arbitrary sections are supported and try the test.
23580 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23581 if echo "$as_ver" | grep GNU > /dev/null; then
23582 as_vers=`echo $as_ver | sed -n \
23583 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23584 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23585 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23586 if test $as_major -eq 2 && test $as_minor -lt 11
23587 then :
23588 else gcc_cv_as_leb128=yes
23591 else
23592 echo "configure: failed program was" >&5
23593 cat conftest.s >&5
23595 rm -f conftest.o conftest.s
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23599 $as_echo "$gcc_cv_as_leb128" >&6; }
23600 if test $gcc_cv_as_leb128 = yes; then
23602 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23605 if test $gcc_cv_as_leb128 != yes; then
23607 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23611 # Determine if an .eh_frame section is read-only.
23612 gcc_fn_eh_frame_ro () {
23613 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23614 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23615 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23618 # Check if we have assembler support for unwind directives.
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23620 $as_echo_n "checking assembler for cfi directives... " >&6; }
23621 if ${gcc_cv_as_cfi_directive+:} false; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 gcc_cv_as_cfi_directive=no
23625 if test x$gcc_cv_as != x; then
23626 $as_echo ' .text
23627 .cfi_startproc
23628 .cfi_offset 0, 0
23629 .cfi_same_value 1
23630 .cfi_def_cfa 1, 2
23631 .cfi_escape 1, 2, 3, 4, 5
23632 .cfi_endproc' > conftest.s
23633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23635 (eval $ac_try) 2>&5
23636 ac_status=$?
23637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23638 test $ac_status = 0; }; }
23639 then
23640 case "$target" in
23641 *-*-solaris*)
23642 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23643 # read-only and read-write sections, we need to make sure that the
23644 # assembler used emits read-write .eh_frame sections.
23645 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23646 gcc_cv_as_cfi_directive=yes
23647 elif test "x$gcc_cv_objdump" = x; then
23648 # No objdump, err on the side of caution.
23649 gcc_cv_as_cfi_directive=no
23650 else
23651 if test x$gas = xyes; then
23652 as_32_opt="--32"
23653 as_64_opt="--64"
23654 else
23655 as_32_opt="-m32"
23656 as_64_opt="-m64"
23658 case "$target" in
23659 sparc*-*-solaris2.*)
23660 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23661 if gcc_fn_eh_frame_ro $as_32_opt \
23662 || gcc_fn_eh_frame_ro $as_64_opt; then
23663 gcc_cv_as_cfi_directive=no
23664 else
23665 gcc_cv_as_cfi_directive=yes
23668 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23669 # On Solaris/x86, make sure that GCC and assembler agree on using
23670 # read-only .eh_frame sections for 64-bit.
23671 if gcc_fn_eh_frame_ro $as_32_opt; then
23672 gcc_cv_as_cfi_directive=no
23673 elif gcc_fn_eh_frame_ro $as_64_opt; then
23674 gcc_cv_as_cfi_directive=yes
23675 else
23676 gcc_cv_as_cfi_directive=no
23679 esac
23682 *-*-*)
23683 gcc_cv_as_cfi_directive=yes
23685 esac
23686 else
23687 echo "configure: failed program was" >&5
23688 cat conftest.s >&5
23690 rm -f conftest.o conftest.s
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23694 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23697 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23699 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23700 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23701 $as_echo_n "(cached) " >&6
23702 else
23703 gcc_cv_as_cfi_advance_working=no
23704 if test x$gcc_cv_as != x; then
23705 $as_echo ' .text
23706 .cfi_startproc
23707 .cfi_adjust_cfa_offset 64
23708 .skip 75040, 0
23709 .cfi_adjust_cfa_offset 128
23710 .cfi_endproc' > conftest.s
23711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23717 then
23719 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23720 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23721 gcc_cv_as_cfi_advance_working=yes
23724 else
23725 echo "configure: failed program was" >&5
23726 cat conftest.s >&5
23728 rm -f conftest.o conftest.s
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23732 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23735 else
23736 # no objdump, err on the side of caution
23737 gcc_cv_as_cfi_advance_working=no
23741 cat >>confdefs.h <<_ACEOF
23742 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23743 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23744 _ACEOF
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23749 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23750 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23751 $as_echo_n "(cached) " >&6
23752 else
23753 gcc_cv_as_cfi_personality_directive=no
23754 if test x$gcc_cv_as != x; then
23755 $as_echo ' .text
23756 .cfi_startproc
23757 .cfi_personality 0, symbol
23758 .cfi_endproc' > conftest.s
23759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23761 (eval $ac_try) 2>&5
23762 ac_status=$?
23763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23764 test $ac_status = 0; }; }
23765 then
23766 gcc_cv_as_cfi_personality_directive=yes
23767 else
23768 echo "configure: failed program was" >&5
23769 cat conftest.s >&5
23771 rm -f conftest.o conftest.s
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23775 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23779 cat >>confdefs.h <<_ACEOF
23780 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23781 _ACEOF
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23785 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23786 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 gcc_cv_as_cfi_sections_directive=no
23790 if test x$gcc_cv_as != x; then
23791 $as_echo ' .text
23792 .cfi_sections .debug_frame, .eh_frame
23793 .cfi_startproc
23794 .cfi_endproc' > conftest.s
23795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }
23801 then
23802 case $target_os in
23803 win32 | pe | cygwin* | mingw32*)
23804 # Need to check that we generated the correct relocation for the
23805 # .debug_frame section. This was fixed for binutils 2.21.
23806 gcc_cv_as_cfi_sections_directive=no
23807 if test "x$gcc_cv_objdump" != x; then
23808 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23809 grep secrel > /dev/null; then
23810 gcc_cv_as_cfi_sections_directive=yes
23815 gcc_cv_as_cfi_sections_directive=yes
23817 esac
23818 else
23819 echo "configure: failed program was" >&5
23820 cat conftest.s >&5
23822 rm -f conftest.o conftest.s
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23826 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23831 cat >>confdefs.h <<_ACEOF
23832 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23833 _ACEOF
23836 # GAS versions up to and including 2.11.0 may mis-optimize
23837 # .eh_frame data.
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23839 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23840 if ${gcc_cv_as_eh_frame+:} false; then :
23841 $as_echo_n "(cached) " >&6
23842 else
23843 gcc_cv_as_eh_frame=no
23844 if test $in_tree_gas = yes; then
23845 if test $in_tree_gas_is_elf = yes \
23846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23847 then gcc_cv_as_eh_frame=yes
23849 elif test x$gcc_cv_as != x; then
23850 $as_echo ' .text
23851 .LFB1:
23852 .4byte 0
23853 .L1:
23854 .4byte 0
23855 .LFE1:
23856 .section .eh_frame,"aw",@progbits
23857 __FRAME_BEGIN__:
23858 .4byte .LECIE1-.LSCIE1
23859 .LSCIE1:
23860 .4byte 0x0
23861 .byte 0x1
23862 .ascii "z\0"
23863 .byte 0x1
23864 .byte 0x78
23865 .byte 0x1a
23866 .byte 0x0
23867 .byte 0x4
23868 .4byte 1
23869 .p2align 1
23870 .LECIE1:
23871 .LSFDE1:
23872 .4byte .LEFDE1-.LASFDE1
23873 .LASFDE1:
23874 .4byte .LASFDE1-__FRAME_BEGIN__
23875 .4byte .LFB1
23876 .4byte .LFE1-.LFB1
23877 .byte 0x4
23878 .4byte .LFE1-.LFB1
23879 .byte 0x4
23880 .4byte .L1-.LFB1
23881 .LEFDE1:' > conftest.s
23882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23885 ac_status=$?
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23888 then
23889 cat > conftest.lit <<EOF
23890 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23891 0010 01000000 12000000 18000000 00000000 ................
23892 0020 08000000 04080000 0044 .........D
23894 cat > conftest.big <<EOF
23895 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23896 0010 00000001 00000012 00000018 00000000 ................
23897 0020 00000008 04000000 0844 .........D
23899 # If the assembler didn't choke, and we can objdump,
23900 # and we got the correct data, then succeed.
23901 # The text in the here-document typically retains its unix-style line
23902 # endings, while the output of objdump will use host line endings.
23903 # Therefore, use diff -b for the comparisons.
23904 if test x$gcc_cv_objdump != x \
23905 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23906 | tail -3 > conftest.got \
23907 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23908 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23909 then
23910 gcc_cv_as_eh_frame=yes
23911 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23916 test $ac_status = 0; }; }; then
23917 gcc_cv_as_eh_frame=buggy
23918 else
23919 # Uh oh, what do we do now?
23920 gcc_cv_as_eh_frame=no
23922 else
23923 echo "configure: failed program was" >&5
23924 cat conftest.s >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23930 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23934 if test $gcc_cv_as_eh_frame = buggy; then
23936 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23940 # Test if the assembler supports the section flag 'e' or #exclude for
23941 # specifying an excluded section.
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23943 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23944 if ${gcc_cv_as_section_exclude_e+:} false; then :
23945 $as_echo_n "(cached) " >&6
23946 else
23947 gcc_cv_as_section_exclude_e=no
23948 if test $in_tree_gas = yes; then
23949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23950 then gcc_cv_as_section_exclude_e=yes
23952 elif test x$gcc_cv_as != x; then
23953 $as_echo '.section foo1,"e"
23954 .byte 0,0,0,0' > conftest.s
23955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }
23961 then
23962 gcc_cv_as_section_exclude_e=yes
23963 else
23964 echo "configure: failed program was" >&5
23965 cat conftest.s >&5
23967 rm -f conftest.o conftest.s
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23971 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23974 if test $gcc_cv_as_section_exclude_e = no; then
23975 case "${target}" in
23976 # Solaris as uses #exclude instead.
23977 *-*-solaris2*)
23978 case "${target}" in
23979 sparc*-*-solaris2*)
23980 conftest_s='.section "foo1", #exclude'
23982 i?86-*-solaris2* | x86_64-*-solaris2*)
23983 conftest_s='.section foo1, #exclude'
23985 esac
23987 esac
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23989 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23990 if ${gcc_cv_as_section_exclude_hash+:} false; then :
23991 $as_echo_n "(cached) " >&6
23992 else
23993 gcc_cv_as_section_exclude_hash=no
23994 if test x$gcc_cv_as != x; then
23995 $as_echo "$conftest_s
23996 .byte 0,0,0,0" > conftest.s
23997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24000 ac_status=$?
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; }
24003 then
24004 gcc_cv_as_section_exclude_hash=yes
24005 else
24006 echo "configure: failed program was" >&5
24007 cat conftest.s >&5
24009 rm -f conftest.o conftest.s
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24013 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24018 cat >>confdefs.h <<_ACEOF
24019 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24020 _ACEOF
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24024 $as_echo_n "checking assembler for section merging support... " >&6; }
24025 if ${gcc_cv_as_shf_merge+:} false; then :
24026 $as_echo_n "(cached) " >&6
24027 else
24028 gcc_cv_as_shf_merge=no
24029 if test $in_tree_gas = yes; then
24030 if test $in_tree_gas_is_elf = yes \
24031 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24032 then gcc_cv_as_shf_merge=yes
24034 elif test x$gcc_cv_as != x; then
24035 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 gcc_cv_as_shf_merge=yes
24044 else
24045 echo "configure: failed program was" >&5
24046 cat conftest.s >&5
24048 rm -f conftest.o conftest.s
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24052 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24055 if test $gcc_cv_as_shf_merge = no; then
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24057 $as_echo_n "checking assembler for section merging support... " >&6; }
24058 if ${gcc_cv_as_shf_merge+:} false; then :
24059 $as_echo_n "(cached) " >&6
24060 else
24061 gcc_cv_as_shf_merge=no
24062 if test $in_tree_gas = yes; then
24063 if test $in_tree_gas_is_elf = yes \
24064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24065 then gcc_cv_as_shf_merge=yes
24067 elif test x$gcc_cv_as != x; then
24068 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24075 then
24076 gcc_cv_as_shf_merge=yes
24077 else
24078 echo "configure: failed program was" >&5
24079 cat conftest.s >&5
24081 rm -f conftest.o conftest.s
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24085 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24092 _ACEOF
24095 gcc_cv_ld_aligned_shf_merge=yes
24096 case "$target" in
24097 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24098 # alignment > 1.
24099 sparc*-*-solaris2.11*)
24100 if test x"$gnu_ld" = xno \
24101 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24102 gcc_cv_ld_aligned_shf_merge=no
24105 esac
24107 cat >>confdefs.h <<_ACEOF
24108 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24109 _ACEOF
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24113 $as_echo_n "checking assembler for stabs directive... " >&6; }
24114 if ${gcc_cv_as_stabs_directive+:} false; then :
24115 $as_echo_n "(cached) " >&6
24116 else
24117 gcc_cv_as_stabs_directive=no
24118 if test x$gcc_cv_as != x; then
24119 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24122 (eval $ac_try) 2>&5
24123 ac_status=$?
24124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24125 test $ac_status = 0; }; }
24126 then
24127 gcc_cv_as_stabs_directive=yes
24128 else
24129 echo "configure: failed program was" >&5
24130 cat conftest.s >&5
24132 rm -f conftest.o conftest.s
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24136 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24137 if test $gcc_cv_as_stabs_directive = yes; then
24139 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24145 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24146 if ${gcc_cv_as_comdat_group+:} false; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 gcc_cv_as_comdat_group=no
24150 if test $in_tree_gas = yes; then
24151 if test $in_tree_gas_is_elf = yes \
24152 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24153 then gcc_cv_as_comdat_group=yes
24155 elif test x$gcc_cv_as != x; then
24156 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24159 (eval $ac_try) 2>&5
24160 ac_status=$?
24161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24162 test $ac_status = 0; }; }
24163 then
24164 gcc_cv_as_comdat_group=yes
24165 else
24166 echo "configure: failed program was" >&5
24167 cat conftest.s >&5
24169 rm -f conftest.o conftest.s
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24173 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24176 if test $gcc_cv_as_comdat_group = yes; then
24177 gcc_cv_as_comdat_group_percent=no
24178 gcc_cv_as_comdat_group_group=no
24179 else
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24181 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24182 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 gcc_cv_as_comdat_group_percent=no
24186 if test $in_tree_gas = yes; then
24187 if test $in_tree_gas_is_elf = yes \
24188 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24189 then gcc_cv_as_comdat_group_percent=yes
24191 elif test x$gcc_cv_as != x; then
24192 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24198 test $ac_status = 0; }; }
24199 then
24200 gcc_cv_as_comdat_group_percent=yes
24201 else
24202 echo "configure: failed program was" >&5
24203 cat conftest.s >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24209 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24212 if test $gcc_cv_as_comdat_group_percent = yes; then
24213 gcc_cv_as_comdat_group_group=no
24214 else
24215 case "${target}" in
24216 # Sun as uses a completely different syntax.
24217 *-*-solaris2*)
24218 case "${target}" in
24219 sparc*-*-solaris2*)
24220 conftest_s='
24221 .group foo,".text%foo",#comdat
24222 .section ".text%foo", #alloc,#execinstr,#progbits
24223 .globl foo
24224 foo:
24227 i?86-*-solaris2* | x86_64-*-solaris2*)
24228 conftest_s='
24229 .group foo,.text%foo,#comdat
24230 .section .text%foo, "ax", @progbits
24231 .globl foo
24232 foo:
24235 esac
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24237 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24238 if ${gcc_cv_as_comdat_group_group+:} false; then :
24239 $as_echo_n "(cached) " >&6
24240 else
24241 gcc_cv_as_comdat_group_group=no
24242 if test x$gcc_cv_as != x; then
24243 $as_echo "$conftest_s" > conftest.s
24244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24247 ac_status=$?
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }
24250 then
24251 gcc_cv_as_comdat_group_group=yes
24252 else
24253 echo "configure: failed program was" >&5
24254 cat conftest.s >&5
24256 rm -f conftest.o conftest.s
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24260 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24264 esac
24265 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24266 gcc_cv_as_comdat_group_group=no
24270 if test x"$ld_is_gold" = xyes; then
24271 comdat_group=yes
24272 elif test $in_tree_ld = yes ; then
24273 comdat_group=no
24274 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 \
24275 && test $in_tree_ld_is_elf = yes; then
24276 comdat_group=yes
24278 elif echo "$ld_ver" | grep GNU > /dev/null; then
24279 comdat_group=yes
24280 if test 0"$ld_date" -lt 20050308; then
24281 if test -n "$ld_date"; then
24282 # If there was date string, but was earlier than 2005-03-08, fail
24283 comdat_group=no
24284 elif test "$ld_vers_major" -lt 2; then
24285 comdat_group=no
24286 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24287 comdat_group=no
24290 else
24291 case "${target}" in
24292 *-*-solaris2.1[1-9]*)
24293 comdat_group=no
24294 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24295 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24296 # version 1.688.
24298 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24299 # least ld version 1.2267.
24300 if test "$ld_vers_major" -gt 1; then
24301 comdat_group=yes
24302 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24303 comdat_group=yes
24304 elif test "$ld_vers_minor" -ge 2267; then
24305 comdat_group=yes
24309 # Assume linkers other than GNU ld don't support COMDAT group.
24310 comdat_group=no
24312 esac
24314 # Allow overriding the automatic COMDAT group tests above.
24315 # Check whether --enable-comdat was given.
24316 if test "${enable_comdat+set}" = set; then :
24317 enableval=$enable_comdat; comdat_group="$enable_comdat"
24320 if test $comdat_group = no; then
24321 gcc_cv_as_comdat_group=no
24322 gcc_cv_as_comdat_group_percent=no
24323 gcc_cv_as_comdat_group_group=no
24326 cat >>confdefs.h <<_ACEOF
24327 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24328 || test $gcc_cv_as_comdat_group_percent = yes \
24329 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24330 _ACEOF
24333 # Restrict this test to Solaris/x86: other targets define this statically.
24334 case "${target}" in
24335 i?86-*-solaris2* | x86_64-*-solaris2*)
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24337 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24338 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24339 hidden_linkonce=yes
24340 else
24341 case "${target}" in
24342 # Full support for hidden thunks in linkonce sections only appeared in
24343 # Solaris 11/OpenSolaris.
24344 *-*-solaris2.1[1-9]*)
24345 hidden_linkonce=yes
24348 hidden_linkonce=no
24350 esac
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24353 $as_echo "$hidden_linkonce" >&6; }
24355 cat >>confdefs.h <<_ACEOF
24356 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24357 _ACEOF
24360 esac
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24363 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24364 if ${gcc_cv_as_is_stmt+:} false; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 gcc_cv_as_is_stmt=no
24368 if test $in_tree_gas = yes; then
24369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24370 then gcc_cv_as_is_stmt=yes
24372 elif test x$gcc_cv_as != x; then
24373 $as_echo ' .text
24374 .file 1 "conf.c"
24375 .loc 1 1 0 is_stmt 1' > conftest.s
24376 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24378 (eval $ac_try) 2>&5
24379 ac_status=$?
24380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24381 test $ac_status = 0; }; }
24382 then
24383 gcc_cv_as_is_stmt=yes
24384 else
24385 echo "configure: failed program was" >&5
24386 cat conftest.s >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24392 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24393 if test $gcc_cv_as_is_stmt = yes; then
24395 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24401 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24402 if ${gcc_cv_as_discriminator+:} false; then :
24403 $as_echo_n "(cached) " >&6
24404 else
24405 gcc_cv_as_discriminator=no
24406 if test $in_tree_gas = yes; then
24407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24408 then gcc_cv_as_discriminator=yes
24410 elif test x$gcc_cv_as != x; then
24411 $as_echo ' .text
24412 .file 1 "conf.c"
24413 .loc 1 1 0 discriminator 1' > conftest.s
24414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24417 ac_status=$?
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24420 then
24421 gcc_cv_as_discriminator=yes
24422 else
24423 echo "configure: failed program was" >&5
24424 cat conftest.s >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24430 $as_echo "$gcc_cv_as_discriminator" >&6; }
24431 if test $gcc_cv_as_discriminator = yes; then
24433 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24438 # Thread-local storage - the check is heavily parameterized.
24439 conftest_s=
24440 tls_first_major=
24441 tls_first_minor=
24442 tls_as_opt=
24443 case "$target" in
24444 alpha*-*-*)
24445 conftest_s='
24446 .section ".tdata","awT",@progbits
24447 foo: .long 25
24448 .text
24449 ldq $27,__tls_get_addr($29) !literal!1
24450 lda $16,foo($29) !tlsgd!1
24451 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24452 ldq $27,__tls_get_addr($29) !literal!2
24453 lda $16,foo($29) !tlsldm!2
24454 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24455 ldq $1,foo($29) !gotdtprel
24456 ldah $2,foo($29) !dtprelhi
24457 lda $3,foo($2) !dtprello
24458 lda $4,foo($29) !dtprel
24459 ldq $1,foo($29) !gottprel
24460 ldah $2,foo($29) !tprelhi
24461 lda $3,foo($2) !tprello
24462 lda $4,foo($29) !tprel'
24463 tls_first_major=2
24464 tls_first_minor=13
24465 tls_as_opt=--fatal-warnings
24467 arc*-*-*)
24468 conftest_s='
24469 add_s r0,r0, @foo@tpoff'
24470 tls_first_major=2
24471 tls_first_minor=23
24473 cris-*-*|crisv32-*-*)
24474 conftest_s='
24475 .section ".tdata","awT",@progbits
24476 x: .long 25
24477 .text
24478 move.d x:IE,$r10
24479 nop'
24480 tls_first_major=2
24481 tls_first_minor=20
24482 tls_as_opt=--fatal-warnings
24484 frv*-*-*)
24485 conftest_s='
24486 .section ".tdata","awT",@progbits
24487 x: .long 25
24488 .text
24489 call #gettlsoff(x)'
24490 tls_first_major=2
24491 tls_first_minor=14
24493 hppa*-*-linux*)
24494 conftest_s='
24495 t1: .reg %r20
24496 t2: .reg %r21
24497 gp: .reg %r19
24498 .section ".tdata","awT",@progbits
24499 foo: .long 25
24500 .text
24501 .align 4
24502 addil LT%foo-$tls_gdidx$,gp
24503 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24504 b __tls_get_addr
24506 addil LT%foo-$tls_ldidx$,gp
24507 b __tls_get_addr
24508 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24509 addil LR%foo-$tls_dtpoff$,%ret0
24510 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24511 mfctl %cr27,%t1
24512 addil LT%foo-$tls_ieoff$,gp
24513 ldw RT%foo-$tls_ieoff$(%r1),%t2
24514 add %t1,%t2,%t3
24515 mfctl %cr27,%t1
24516 addil LR%foo-$tls_leoff$,%t1
24517 ldo RR%foo-$tls_leoff$(%r1),%t2'
24518 tls_first_major=2
24519 tls_first_minor=15
24520 tls_as_opt=--fatal-warnings
24522 arm*-*-*)
24523 conftest_s='
24524 .section ".tdata","awT",%progbits
24525 foo: .long 25
24526 .text
24527 .word foo(gottpoff)
24528 .word foo(tpoff)
24529 .word foo(tlsgd)
24530 .word foo(tlsldm)
24531 .word foo(tlsldo)'
24532 tls_first_major=2
24533 tls_first_minor=17
24535 i[34567]86-*-* | x86_64-*-*)
24536 case "$target" in
24537 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24538 on_solaris=yes
24541 on_solaris=no
24543 esac
24544 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24545 conftest_s='
24546 .section .tdata,"awt",@progbits'
24547 tls_first_major=0
24548 tls_first_minor=0
24549 tls_section_flag=t
24551 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24553 else
24554 conftest_s='
24555 .section ".tdata","awT",@progbits'
24556 tls_first_major=2
24557 tls_first_minor=14
24558 tls_section_flag=T
24559 tls_as_opt="--fatal-warnings"
24561 case "$target" in
24562 i[34567]86-*-*)
24563 conftest_s="$conftest_s
24564 foo: .long 25
24565 .text
24566 movl %gs:0, %eax
24567 leal foo@tlsgd(,%ebx,1), %eax
24568 leal foo@tlsldm(%ebx), %eax
24569 leal foo@dtpoff(%eax), %edx
24570 movl foo@gottpoff(%ebx), %eax
24571 subl foo@gottpoff(%ebx), %eax
24572 addl foo@gotntpoff(%ebx), %eax
24573 movl foo@indntpoff, %eax
24574 movl \$foo@tpoff, %eax
24575 subl \$foo@tpoff, %eax
24576 leal foo@ntpoff(%ecx), %eax"
24578 x86_64-*-*)
24579 if test x$on_solaris = xyes; then
24580 case $gas_flag in
24581 yes) tls_as_opt="$tls_as_opt --64" ;;
24582 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24583 esac
24585 conftest_s="$conftest_s
24586 foo: .long 25
24587 .text
24588 movq %fs:0, %rax
24589 leaq foo@tlsgd(%rip), %rdi
24590 leaq foo@tlsld(%rip), %rdi
24591 leaq foo@dtpoff(%rax), %rdx
24592 movq foo@gottpoff(%rip), %rax
24593 movq \$foo@tpoff, %rax"
24595 esac
24597 ia64-*-*)
24598 conftest_s='
24599 .section ".tdata","awT",@progbits
24600 foo: data8 25
24601 .text
24602 addl r16 = @ltoff(@dtpmod(foo#)), gp
24603 addl r17 = @ltoff(@dtprel(foo#)), gp
24604 addl r18 = @ltoff(@tprel(foo#)), gp
24605 addl r19 = @dtprel(foo#), gp
24606 adds r21 = @dtprel(foo#), r13
24607 movl r23 = @dtprel(foo#)
24608 addl r20 = @tprel(foo#), gp
24609 adds r22 = @tprel(foo#), r13
24610 movl r24 = @tprel(foo#)'
24611 tls_first_major=2
24612 tls_first_minor=13
24613 tls_as_opt=--fatal-warnings
24615 microblaze*-*-*)
24616 conftest_s='
24617 .section .tdata,"awT",@progbits
24619 .word 2
24620 .text
24621 addik r5,r20,x@TLSGD
24622 addik r5,r20,x@TLSLDM'
24623 tls_first_major=2
24624 tls_first_minor=20
24625 tls_as_opt='--fatal-warnings'
24627 mips*-*-*)
24628 conftest_s='
24629 .section .tdata,"awT",@progbits
24631 .word 2
24632 .text
24633 addiu $4, $28, %tlsgd(x)
24634 addiu $4, $28, %tlsldm(x)
24635 lui $4, %dtprel_hi(x)
24636 addiu $4, $4, %dtprel_lo(x)
24637 lw $4, %gottprel(x)($28)
24638 lui $4, %tprel_hi(x)
24639 addiu $4, $4, %tprel_lo(x)'
24640 tls_first_major=2
24641 tls_first_minor=16
24642 tls_as_opt='-32 --fatal-warnings'
24644 m68k-*-*)
24645 conftest_s='
24646 .section .tdata,"awT",@progbits
24648 .word 2
24649 .text
24650 foo:
24651 move.l x@TLSGD(%a5),%a0
24652 move.l x@TLSLDM(%a5),%a0
24653 move.l x@TLSLDO(%a5),%a0
24654 move.l x@TLSIE(%a5),%a0
24655 move.l x@TLSLE(%a5),%a0'
24656 tls_first_major=2
24657 tls_first_minor=19
24658 tls_as_opt='--fatal-warnings'
24660 nios2-*-*)
24661 conftest_s='
24662 .section ".tdata","awT",@progbits'
24663 tls_first_major=2
24664 tls_first_minor=23
24665 tls_as_opt="--fatal-warnings"
24667 aarch64*-*-*)
24668 conftest_s='
24669 .section ".tdata","awT",%progbits
24670 foo: .long 25
24671 .text
24672 adrp x0, :tlsgd:x
24673 add x0, x0, #:tlsgd_lo12:x
24674 bl __tls_get_addr
24675 nop'
24676 tls_first_major=2
24677 tls_first_minor=20
24678 tls_as_opt='--fatal-warnings'
24680 or1k*-*-*)
24681 conftest_s='
24682 .section ".tdata","awT",@progbits
24683 foo: .long 25
24684 .text
24685 l.movhi r3, tpoffha(foo)
24686 l.add r3, r3, r10
24687 l.lwz r4, tpofflo(foo)(r3)'
24688 tls_first_major=2
24689 tls_first_minor=30
24690 tls_as_opt=--fatal-warnings
24692 powerpc-ibm-aix*)
24693 conftest_s='
24694 .extern __get_tpointer
24695 .toc
24696 LC..1:
24697 .tc a[TC],a[TL]@le
24698 .csect .text[PR]
24699 .tlstest:
24700 lwz 9,LC..1(2)
24701 bla __get_tpointer
24702 lwzx 3,9,3
24703 .globl a
24704 .csect a[TL],4
24706 .space 4'
24707 tls_first_major=0
24708 tls_first_minor=0
24710 powerpc64*-*-*)
24711 conftest_s='
24712 .section ".tdata","awT",@progbits
24713 .align 3
24714 ld0: .space 8
24715 ld1: .space 8
24716 x1: .space 8
24717 x2: .space 8
24718 x3: .space 8
24719 .text
24720 addi 3,2,ld0@got@tlsgd
24721 bl .__tls_get_addr
24723 addi 3,2,ld1@toc
24724 bl .__tls_get_addr
24726 addi 3,2,x1@got@tlsld
24727 bl .__tls_get_addr
24729 addi 9,3,x1@dtprel
24730 bl .__tls_get_addr
24732 addis 9,3,x2@dtprel@ha
24733 addi 9,9,x2@dtprel@l
24734 bl .__tls_get_addr
24736 ld 9,x3@got@dtprel(2)
24737 add 9,9,3
24738 bl .__tls_get_addr
24739 nop'
24740 tls_first_major=2
24741 tls_first_minor=14
24742 tls_as_opt="-a64 --fatal-warnings"
24744 powerpc*-*-*)
24745 conftest_s='
24746 .section ".tdata","awT",@progbits
24747 .align 2
24748 ld0: .space 4
24749 ld1: .space 4
24750 x1: .space 4
24751 x2: .space 4
24752 x3: .space 4
24753 .text
24754 addi 3,31,ld0@got@tlsgd
24755 bl __tls_get_addr
24756 addi 3,31,x1@got@tlsld
24757 bl __tls_get_addr
24758 addi 9,3,x1@dtprel
24759 addis 9,3,x2@dtprel@ha
24760 addi 9,9,x2@dtprel@l
24761 lwz 9,x3@got@tprel(31)
24762 add 9,9,x@tls
24763 addi 9,2,x1@tprel
24764 addis 9,2,x2@tprel@ha
24765 addi 9,9,x2@tprel@l'
24766 tls_first_major=2
24767 tls_first_minor=14
24768 tls_as_opt="-a32 --fatal-warnings"
24770 riscv*-*-*)
24771 conftest_s='
24772 .section .tdata,"awT",@progbits
24773 x: .word 2
24774 .text
24775 la.tls.gd a0,x
24776 call __tls_get_addr'
24777 tls_first_major=2
24778 tls_first_minor=21
24779 tls_as_opt='--fatal-warnings'
24781 s390-*-*)
24782 conftest_s='
24783 .section ".tdata","awT",@progbits
24784 foo: .long 25
24785 .text
24786 .long foo@TLSGD
24787 .long foo@TLSLDM
24788 .long foo@DTPOFF
24789 .long foo@NTPOFF
24790 .long foo@GOTNTPOFF
24791 .long foo@INDNTPOFF
24792 l %r1,foo@GOTNTPOFF(%r12)
24793 l %r1,0(%r1):tls_load:foo
24794 bas %r14,0(%r1,%r13):tls_gdcall:foo
24795 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24796 tls_first_major=2
24797 tls_first_minor=14
24798 tls_as_opt="-m31 --fatal-warnings"
24800 s390x-*-*)
24801 conftest_s='
24802 .section ".tdata","awT",@progbits
24803 foo: .long 25
24804 .text
24805 .quad foo@TLSGD
24806 .quad foo@TLSLDM
24807 .quad foo@DTPOFF
24808 .quad foo@NTPOFF
24809 .quad foo@GOTNTPOFF
24810 lg %r1,foo@GOTNTPOFF(%r12)
24811 larl %r1,foo@INDNTPOFF
24812 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24813 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24814 tls_first_major=2
24815 tls_first_minor=14
24816 tls_as_opt="-m64 -Aesame --fatal-warnings"
24818 sh-*-* | sh[123456789lbe]*-*-*)
24819 conftest_s='
24820 .section ".tdata","awT",@progbits
24821 foo: .long 25
24822 .text
24823 .long foo@TLSGD
24824 .long foo@TLSLDM
24825 .long foo@DTPOFF
24826 .long foo@GOTTPOFF
24827 .long foo@TPOFF'
24828 tls_first_major=2
24829 tls_first_minor=13
24830 tls_as_opt=--fatal-warnings
24832 sparc*-*-*)
24833 case "$target" in
24834 sparc*-sun-solaris2.*)
24835 on_solaris=yes
24838 on_solaris=no
24840 esac
24841 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24842 conftest_s='
24843 .section ".tdata",#alloc,#write,#tls'
24844 tls_first_major=0
24845 tls_first_minor=0
24846 else
24847 conftest_s='
24848 .section ".tdata","awT",@progbits'
24849 tls_first_major=2
24850 tls_first_minor=14
24851 tls_as_opt="-32 --fatal-warnings"
24853 conftest_s="$conftest_s
24854 foo: .long 25
24855 .text
24856 sethi %tgd_hi22(foo), %o0
24857 add %o0, %tgd_lo10(foo), %o1
24858 add %l7, %o1, %o0, %tgd_add(foo)
24859 call __tls_get_addr, %tgd_call(foo)
24860 sethi %tldm_hi22(foo), %l1
24861 add %l1, %tldm_lo10(foo), %l2
24862 add %l7, %l2, %o0, %tldm_add(foo)
24863 call __tls_get_addr, %tldm_call(foo)
24864 sethi %tldo_hix22(foo), %l3
24865 xor %l3, %tldo_lox10(foo), %l4
24866 add %o0, %l4, %l5, %tldo_add(foo)
24867 sethi %tie_hi22(foo), %o3
24868 add %o3, %tie_lo10(foo), %o3
24869 ld [%l7 + %o3], %o2, %tie_ld(foo)
24870 add %g7, %o2, %o4, %tie_add(foo)
24871 sethi %tle_hix22(foo), %l1
24872 xor %l1, %tle_lox10(foo), %o5
24873 ld [%g7 + %o5], %o1"
24875 tilepro*-*-*)
24876 conftest_s='
24877 .section ".tdata","awT",@progbits
24878 foo: .long 25
24879 .text
24880 addli r0, zero, tls_gd(foo)
24881 auli r0, zero, tls_gd_ha16(foo)
24882 addli r0, r0, tls_gd_lo16(foo)
24883 jal __tls_get_addr
24884 addli r0, zero, tls_ie(foo)
24885 auli r0, r0, tls_ie_ha16(foo)
24886 addli r0, r0, tls_ie_lo16(foo)'
24887 tls_first_major=2
24888 tls_first_minor=22
24889 tls_as_opt="--fatal-warnings"
24891 tilegx*-*-*)
24892 conftest_s='
24893 .section ".tdata","awT",@progbits
24894 foo: .long 25
24895 .text
24896 shl16insli r0, zero, hw0_last_tls_gd(foo)
24897 shl16insli r0, zero, hw1_last_tls_gd(foo)
24898 shl16insli r0, r0, hw0_tls_gd(foo)
24899 jal __tls_get_addr
24900 shl16insli r0, zero, hw1_last_tls_ie(foo)
24901 shl16insli r0, r0, hw0_tls_ie(foo)'
24902 tls_first_major=2
24903 tls_first_minor=22
24904 tls_as_opt="--fatal-warnings"
24906 xtensa*-*-*)
24907 conftest_s='
24908 .section ".tdata","awT",@progbits
24909 foo: .long 25
24910 .text
24911 movi a8, foo@TLSFUNC
24912 movi a10, foo@TLSARG
24913 callx8.tls a8, foo@TLSCALL'
24914 tls_first_major=2
24915 tls_first_minor=19
24917 esac
24918 set_have_as_tls=no
24919 if test "x$enable_tls" = xno ; then
24920 : # TLS explicitly disabled.
24921 elif test "x$enable_tls" = xyes ; then
24922 set_have_as_tls=yes # TLS explicitly enabled.
24923 elif test -z "$tls_first_major"; then
24924 : # If we don't have a check, assume no support.
24925 else
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24927 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24928 if ${gcc_cv_as_tls+:} false; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 gcc_cv_as_tls=no
24932 if test $in_tree_gas = yes; then
24933 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24934 then gcc_cv_as_tls=yes
24936 elif test x$gcc_cv_as != x; then
24937 $as_echo "$conftest_s" > conftest.s
24938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }
24944 then
24945 gcc_cv_as_tls=yes
24946 else
24947 echo "configure: failed program was" >&5
24948 cat conftest.s >&5
24950 rm -f conftest.o conftest.s
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24954 $as_echo "$gcc_cv_as_tls" >&6; }
24955 if test $gcc_cv_as_tls = yes; then
24956 set_have_as_tls=yes
24960 if test $set_have_as_tls = yes ; then
24962 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24966 # Target-specific assembler checks.
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24969 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24970 gcc_cv_ld_static_dynamic=no
24971 gcc_cv_ld_static_option='-Bstatic'
24972 gcc_cv_ld_dynamic_option='-Bdynamic'
24973 if test $in_tree_ld = yes ; then
24974 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
24975 gcc_cv_ld_static_dynamic=yes
24977 elif test x$gcc_cv_ld != x; then
24978 # Check if linker supports -Bstatic/-Bdynamic option
24979 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24980 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24981 gcc_cv_ld_static_dynamic=yes
24982 else
24983 case "$target" in
24984 # AIX ld uses -b flags
24985 *-*-aix4.[23]* | *-*-aix[5-9]*)
24986 gcc_cv_ld_static_dynamic=yes
24987 gcc_cv_ld_static_option="-bstatic"
24988 gcc_cv_ld_dynamic_option="-bdynamic"
24990 # HP-UX ld uses -a flags to select between shared and archive.
24991 *-*-hpux*)
24992 if test x"$gnu_ld" = xno; then
24993 gcc_cv_ld_static_dynamic=yes
24994 gcc_cv_ld_static_option="-aarchive_shared"
24995 gcc_cv_ld_dynamic_option="-adefault"
24998 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24999 *-*-solaris2*)
25000 gcc_cv_ld_static_dynamic=yes
25002 esac
25005 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25007 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25010 cat >>confdefs.h <<_ACEOF
25011 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25012 _ACEOF
25015 cat >>confdefs.h <<_ACEOF
25016 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25017 _ACEOF
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25021 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25024 $as_echo_n "checking linker --version-script option... " >&6; }
25025 gcc_cv_ld_version_script=no
25026 ld_version_script_option=''
25027 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25028 gcc_cv_ld_version_script=yes
25029 ld_version_script_option='--version-script'
25030 elif test x$gcc_cv_ld != x; then
25031 case "$target" in
25032 # Solaris 2 ld always supports -M. It also supports a subset of
25033 # --version-script since Solaris 11.4, but requires
25034 # -z gnu-version-script-compat to activate.
25035 *-*-solaris2*)
25036 gcc_cv_ld_version_script=yes
25037 ld_version_script_option='-M'
25039 esac
25041 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25043 $as_echo "$gcc_cv_ld_version_script" >&6; }
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25047 $as_echo_n "checking linker soname option... " >&6; }
25048 gcc_cv_ld_soname=no
25049 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25050 gcc_cv_ld_soname=yes
25051 ld_soname_option='-soname'
25052 elif test x$gcc_cv_ld != x; then
25053 case "$target" in
25054 *-*-darwin*)
25055 gcc_cv_ld_soname=yes
25056 ld_soname_option='-install_name'
25058 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25059 # ld compatiblity since some Solaris 10 update.
25060 *-*-solaris2*)
25061 gcc_cv_ld_soname=yes
25062 ld_soname_option='-h'
25064 esac
25066 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25068 $as_echo "$gcc_cv_ld_soname" >&6; }
25071 if test x"$demangler_in_ld" = xyes; then
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25073 $as_echo_n "checking linker --demangle support... " >&6; }
25074 gcc_cv_ld_demangle=no
25075 if test $in_tree_ld = yes; then
25076 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 \
25077 gcc_cv_ld_demangle=yes
25079 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25080 # Check if the GNU linker supports --demangle option
25081 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25082 gcc_cv_ld_demangle=yes
25085 if test x"$gcc_cv_ld_demangle" = xyes; then
25087 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25091 $as_echo "$gcc_cv_ld_demangle" >&6; }
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25095 $as_echo_n "checking linker plugin support... " >&6; }
25096 gcc_cv_lto_plugin=0
25097 if test -f liblto_plugin.la; then
25098 save_ld_ver="$ld_ver"
25099 save_ld_vers_major="$ld_vers_major"
25100 save_ld_vers_minor="$ld_vers_minor"
25101 save_ld_is_gold="$ld_is_gold"
25103 ld_is_gold=no
25105 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25106 ld_ver="GNU ld"
25107 # FIXME: ld_is_gold?
25108 ld_vers_major="$gcc_cv_gld_major_version"
25109 ld_vers_minor="$gcc_cv_gld_minor_version"
25110 else
25111 # Determine plugin linker version.
25112 # FIXME: Partial duplicate from above, generalize.
25113 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25114 if echo "$ld_ver" | grep GNU > /dev/null; then
25115 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25116 ld_is_gold=yes
25117 ld_vers=`echo $ld_ver | sed -n \
25118 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25119 else
25120 ld_vers=`echo $ld_ver | sed -n \
25121 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25123 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25124 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25128 # Determine plugin support.
25129 if echo "$ld_ver" | grep GNU > /dev/null; then
25130 # Require GNU ld or gold 2.21+ for plugin support by default.
25131 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25132 gcc_cv_lto_plugin=2
25133 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25134 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25135 gcc_cv_lto_plugin=1
25139 ld_ver="$save_ld_ver"
25140 ld_vers_major="$save_ld_vers_major"
25141 ld_vers_minor="$save_ld_vers_minor"
25142 ld_is_gold="$save_ld_is_gold"
25145 cat >>confdefs.h <<_ACEOF
25146 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25147 _ACEOF
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25150 $as_echo "$gcc_cv_lto_plugin" >&6; }
25152 # Target OS-specific assembler checks.
25154 case "$target_os" in
25155 darwin*)
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25157 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25158 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25159 $as_echo_n "(cached) " >&6
25160 else
25161 gcc_cv_as_mmacosx_version_min=no
25162 if test x$gcc_cv_as != x; then
25163 $as_echo '.text' > conftest.s
25164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25166 (eval $ac_try) 2>&5
25167 ac_status=$?
25168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25169 test $ac_status = 0; }; }
25170 then
25171 gcc_cv_as_mmacosx_version_min=yes
25172 else
25173 echo "configure: failed program was" >&5
25174 cat conftest.s >&5
25176 rm -f conftest.o conftest.s
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25180 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25181 if test $gcc_cv_as_mmacosx_version_min = yes; then
25183 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25188 esac
25190 # Target CPU-specific assembler checks.
25192 case "$target" in
25193 aarch64*-*-*)
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25195 $as_echo_n "checking assembler for -mabi option... " >&6; }
25196 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 gcc_cv_as_aarch64_mabi=no
25200 if test x$gcc_cv_as != x; then
25201 $as_echo '.text' > conftest.s
25202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204 (eval $ac_try) 2>&5
25205 ac_status=$?
25206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207 test $ac_status = 0; }; }
25208 then
25209 gcc_cv_as_aarch64_mabi=yes
25210 else
25211 echo "configure: failed program was" >&5
25212 cat conftest.s >&5
25214 rm -f conftest.o conftest.s
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25218 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25221 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25223 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25225 else
25226 if test x$with_abi = xilp32; then
25227 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25228 Upgrade the Assembler." "$LINENO" 5
25230 if test x"$with_multilib_list" = xdefault; then
25231 TM_MULTILIB_CONFIG=lp64
25232 else
25233 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25234 for aarch64_multilib in ${aarch64_multilibs}; do
25235 case ${aarch64_multilib} in
25236 ilp32)
25237 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25238 Upgrade the Assembler." "$LINENO" 5
25242 esac
25243 done
25246 # Check if we have binutils support for relocations types needed by -fpic
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25248 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25249 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25252 gcc_cv_as_aarch64_picreloc=no
25253 if test x$gcc_cv_as != x; then
25254 $as_echo '
25255 .text
25256 ldr x0, [x2, #:gotpage_lo15:globalsym]
25257 ' > conftest.s
25258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25264 then
25265 gcc_cv_as_aarch64_picreloc=yes
25266 else
25267 echo "configure: failed program was" >&5
25268 cat conftest.s >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25274 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25275 if test $gcc_cv_as_aarch64_picreloc = yes; then
25277 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25281 # Enable Branch Target Identification Mechanism and Return Address
25282 # Signing by default.
25283 # Check whether --enable-standard-branch-protection was given.
25284 if test "${enable_standard_branch_protection+set}" = set; then :
25285 enableval=$enable_standard_branch_protection;
25286 case $enableval in
25287 yes)
25288 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25293 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25294 Valid choices are 'yes' and 'no'." "$LINENO" 5
25296 esac
25300 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25301 # Check whether --enable-fix-cortex-a53-835769 was given.
25302 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25303 enableval=$enable_fix_cortex_a53_835769;
25304 case $enableval in
25305 yes)
25306 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25311 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25312 Valid choices are 'yes' and 'no'." "$LINENO" 5
25315 esac
25319 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25320 # Check whether --enable-fix-cortex-a53-843419 was given.
25321 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25322 enableval=$enable_fix_cortex_a53_843419;
25323 case $enableval in
25324 yes)
25325 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25330 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25331 Valid choices are 'yes' and 'no'." "$LINENO" 5
25334 esac
25340 # All TARGET_ABI_OSF targets.
25341 alpha*-*-linux* | alpha*-*-*bsd*)
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25343 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25344 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25347 gcc_cv_as_alpha_explicit_relocs=no
25348 if test $in_tree_gas = yes; then
25349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25350 then gcc_cv_as_alpha_explicit_relocs=yes
25352 elif test x$gcc_cv_as != x; then
25353 $as_echo ' .set nomacro
25354 .text
25355 extbl $3, $2, $3 !lituse_bytoff!1
25356 ldq $2, a($29) !literal!1
25357 ldq $4, b($29) !literal!2
25358 ldq_u $3, 0($2) !lituse_base!1
25359 ldq $27, f($29) !literal!5
25360 jsr $26, ($27), f !lituse_jsr!5
25361 ldah $29, 0($26) !gpdisp!3
25362 lda $0, c($29) !gprel
25363 ldah $1, d($29) !gprelhigh
25364 lda $1, d($1) !gprellow
25365 lda $29, 0($29) !gpdisp!3' > conftest.s
25366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25372 then
25373 gcc_cv_as_alpha_explicit_relocs=yes
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25382 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25383 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25385 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25390 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25391 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_alpha_jsrdirect_relocs=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25397 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo ' .set nomacro
25401 .text
25402 ldq $27, a($29) !literal!1
25403 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25409 test $ac_status = 0; }; }
25410 then
25411 gcc_cv_as_alpha_jsrdirect_relocs=yes
25412 else
25413 echo "configure: failed program was" >&5
25414 cat conftest.s >&5
25416 rm -f conftest.o conftest.s
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25420 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25421 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25423 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25429 avr-*-*)
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25431 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25432 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25433 $as_echo_n "(cached) " >&6
25434 else
25435 gcc_cv_as_avr_mlink_relax=no
25436 if test x$gcc_cv_as != x; then
25437 $as_echo '.text' > conftest.s
25438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25443 test $ac_status = 0; }; }
25444 then
25445 gcc_cv_as_avr_mlink_relax=yes
25446 else
25447 echo "configure: failed program was" >&5
25448 cat conftest.s >&5
25450 rm -f conftest.o conftest.s
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25454 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25455 if test $gcc_cv_as_avr_mlink_relax = yes; then
25457 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25463 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25464 if ${gcc_cv_as_avr_mrmw+:} false; then :
25465 $as_echo_n "(cached) " >&6
25466 else
25467 gcc_cv_as_avr_mrmw=no
25468 if test x$gcc_cv_as != x; then
25469 $as_echo '.text' > conftest.s
25470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25476 then
25477 gcc_cv_as_avr_mrmw=yes
25478 else
25479 echo "configure: failed program was" >&5
25480 cat conftest.s >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25486 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25487 if test $gcc_cv_as_avr_mrmw = yes; then
25489 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25495 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25496 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_avr_mgccisr=no
25500 if test x$gcc_cv_as != x; then
25501 $as_echo '.text
25502 __gcc_isr 1
25503 __gcc_isr 2
25504 __gcc_isr 0,r24
25505 ' > conftest.s
25506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508 (eval $ac_try) 2>&5
25509 ac_status=$?
25510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511 test $ac_status = 0; }; }
25512 then
25513 gcc_cv_as_avr_mgccisr=yes
25514 else
25515 echo "configure: failed program was" >&5
25516 cat conftest.s >&5
25518 rm -f conftest.o conftest.s
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25522 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25523 if test $gcc_cv_as_avr_mgccisr = yes; then
25525 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25530 # Check how default linker description file implements .rodata for
25531 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25532 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25534 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25535 cat > conftest.s <<EOF
25536 .section .rodata,"a",@progbits
25537 .global xxvaryy
25538 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25539 xxvaryy:
25540 .word 1
25542 rm -f conftest.nm
25543 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25548 test $ac_status = 0; }; }
25549 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25551 (eval $ac_try) 2>&5
25552 ac_status=$?
25553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25554 test $ac_status = 0; }; }
25555 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 if test -s conftest.nm
25562 then
25563 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25565 $as_echo "yes" >&6; }
25567 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25569 else
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25571 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25572 echo "$as_me: nm output was" >&5
25573 cat conftest.nm >&5
25574 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25576 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25578 else
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25580 $as_echo "test failed" >&6; }
25581 echo "$as_me: failed program was" >&5
25582 cat conftest.s >&5
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25584 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25586 rm -f conftest.s conftest.o conftest.elf conftest.nm
25589 cris-*-*)
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25591 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25592 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25593 $as_echo_n "(cached) " >&6
25594 else
25595 gcc_cv_as_cris_no_mul_bug=no
25596 if test $in_tree_gas = yes; then
25597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25598 then gcc_cv_as_cris_no_mul_bug=yes
25600 elif test x$gcc_cv_as != x; then
25601 $as_echo '.text' > conftest.s
25602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25604 (eval $ac_try) 2>&5
25605 ac_status=$?
25606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25607 test $ac_status = 0; }; }
25608 then
25609 gcc_cv_as_cris_no_mul_bug=yes
25610 else
25611 echo "configure: failed program was" >&5
25612 cat conftest.s >&5
25614 rm -f conftest.o conftest.s
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25618 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25619 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25621 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25627 sparc*-*-*)
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25629 $as_echo_n "checking assembler for -relax option... " >&6; }
25630 if ${gcc_cv_as_sparc_relax+:} false; then :
25631 $as_echo_n "(cached) " >&6
25632 else
25633 gcc_cv_as_sparc_relax=no
25634 if test x$gcc_cv_as != x; then
25635 $as_echo '.text' > conftest.s
25636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25638 (eval $ac_try) 2>&5
25639 ac_status=$?
25640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25641 test $ac_status = 0; }; }
25642 then
25643 gcc_cv_as_sparc_relax=yes
25644 else
25645 echo "configure: failed program was" >&5
25646 cat conftest.s >&5
25648 rm -f conftest.o conftest.s
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25652 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25653 if test $gcc_cv_as_sparc_relax = yes; then
25655 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25661 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25662 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25663 $as_echo_n "(cached) " >&6
25664 else
25665 gcc_cv_as_sparc_gotdata_op=no
25666 if test x$gcc_cv_as != x; then
25667 $as_echo '.text
25668 .align 4
25669 foo:
25671 bar:
25672 sethi %gdop_hix22(foo), %g1
25673 xor %g1, %gdop_lox10(foo), %g1
25674 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25677 (eval $ac_try) 2>&5
25678 ac_status=$?
25679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25680 test $ac_status = 0; }; }
25681 then
25682 if test x$gcc_cv_ld != x \
25683 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25684 if test x$gcc_cv_objdump != x; then
25685 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25686 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25687 gcc_cv_as_sparc_gotdata_op=no
25688 else
25689 gcc_cv_as_sparc_gotdata_op=yes
25693 rm -f conftest
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25702 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25703 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25705 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25711 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25712 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_sparc_ua_pcrel=no
25716 if test x$gcc_cv_as != x; then
25717 $as_echo '.text
25718 foo:
25720 .data
25721 .align 4
25722 .byte 0
25723 .uaword %r_disp32(foo)' > conftest.s
25724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25729 test $ac_status = 0; }; }
25730 then
25731 if test x$gcc_cv_ld != x \
25732 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25733 gcc_cv_as_sparc_ua_pcrel=yes
25735 rm -f conftest
25736 else
25737 echo "configure: failed program was" >&5
25738 cat conftest.s >&5
25740 rm -f conftest.o conftest.s
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25744 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25745 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25747 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25751 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25752 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25753 $as_echo_n "(cached) " >&6
25754 else
25755 gcc_cv_as_sparc_ua_pcrel_hidden=no
25756 if test x$gcc_cv_as != x; then
25757 $as_echo '.data
25758 .align 4
25759 .byte 0x31
25760 .uaword %r_disp32(foo)
25761 .byte 0x32, 0x33, 0x34
25762 .global foo
25763 .hidden foo
25764 foo:
25765 .skip 4' > conftest.s
25766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25768 (eval $ac_try) 2>&5
25769 ac_status=$?
25770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25771 test $ac_status = 0; }; }
25772 then
25773 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25774 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25775 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25776 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25777 if $gcc_cv_objdump -R conftest 2> /dev/null \
25778 | grep 'DISP32' > /dev/null 2>&1; then
25780 else
25781 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25784 rm -f conftest
25785 else
25786 echo "configure: failed program was" >&5
25787 cat conftest.s >&5
25789 rm -f conftest.o conftest.s
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25793 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25794 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25796 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25802 # unaligned pcrel relocs
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25805 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25806 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25807 $as_echo_n "(cached) " >&6
25808 else
25809 gcc_cv_as_sparc_offsetable_lo10=no
25810 if test x$gcc_cv_as != x; then
25811 $as_echo '.text
25812 or %g1, %lo(ab) + 12, %g1
25813 or %g1, %lo(ab + 12), %g1' > conftest.s
25814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25819 test $ac_status = 0; }; }
25820 then
25821 if test x$gcc_cv_objdump != x \
25822 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25823 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25824 gcc_cv_as_sparc_offsetable_lo10=yes
25826 else
25827 echo "configure: failed program was" >&5
25828 cat conftest.s >&5
25830 rm -f conftest.o conftest.s
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25834 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25835 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25837 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25843 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25844 if ${gcc_cv_as_sparc_fmaf+:} false; then :
25845 $as_echo_n "(cached) " >&6
25846 else
25847 gcc_cv_as_sparc_fmaf=no
25848 if test x$gcc_cv_as != x; then
25849 $as_echo '.text
25850 .register %g2, #scratch
25851 .register %g3, #scratch
25852 .align 4
25853 fmaddd %f0, %f2, %f4, %f6
25854 addxccc %g1, %g2, %g3
25855 fsrl32 %f2, %f4, %f8
25856 fnaddd %f10, %f12, %f14' > conftest.s
25857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25862 test $ac_status = 0; }; }
25863 then
25864 gcc_cv_as_sparc_fmaf=yes
25865 else
25866 echo "configure: failed program was" >&5
25867 cat conftest.s >&5
25869 rm -f conftest.o conftest.s
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25873 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25874 if test $gcc_cv_as_sparc_fmaf = yes; then
25876 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25882 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25883 if ${gcc_cv_as_sparc_sparc4+:} false; then :
25884 $as_echo_n "(cached) " >&6
25885 else
25886 gcc_cv_as_sparc_sparc4=no
25887 if test x$gcc_cv_as != x; then
25888 $as_echo '.text
25889 .register %g2, #scratch
25890 .register %g3, #scratch
25891 .align 4
25892 cxbe %g2, %g3, 1f
25893 1: cwbneg %g2, %g3, 1f
25894 1: sha1
25896 aes_kexpand0 %f4, %f6, %f8
25897 des_round %f38, %f40, %f42, %f44
25898 camellia_f %f54, %f56, %f58, %f60
25899 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25906 then
25907 gcc_cv_as_sparc_sparc4=yes
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25912 rm -f conftest.o conftest.s
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25916 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25917 if test $gcc_cv_as_sparc_sparc4 = yes; then
25919 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25925 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25926 if ${gcc_cv_as_sparc_sparc5+:} false; then :
25927 $as_echo_n "(cached) " >&6
25928 else
25929 gcc_cv_as_sparc_sparc5=no
25930 if test x$gcc_cv_as != x; then
25931 $as_echo '.text
25932 .register %g2, #scratch
25933 .register %g3, #scratch
25934 .align 4
25935 subxc %g1, %g2, %g3
25936 fpadd8 %f0, %f2, %f4' > conftest.s
25937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25942 test $ac_status = 0; }; }
25943 then
25944 gcc_cv_as_sparc_sparc5=yes
25945 else
25946 echo "configure: failed program was" >&5
25947 cat conftest.s >&5
25949 rm -f conftest.o conftest.s
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25953 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25954 if test $gcc_cv_as_sparc_sparc5 = yes; then
25956 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25962 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25963 if ${gcc_cv_as_sparc_sparc6+:} false; then :
25964 $as_echo_n "(cached) " >&6
25965 else
25966 gcc_cv_as_sparc_sparc6=no
25967 if test x$gcc_cv_as != x; then
25968 $as_echo '.text
25969 .register %g2, #scratch
25970 .register %g3, #scratch
25971 .align 4
25972 rd %entropy, %g1
25973 fpsll64x %f0, %f2, %f4' > conftest.s
25974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25977 ac_status=$?
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25980 then
25981 gcc_cv_as_sparc_sparc6=yes
25982 else
25983 echo "configure: failed program was" >&5
25984 cat conftest.s >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25990 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25991 if test $gcc_cv_as_sparc_sparc6 = yes; then
25993 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25999 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26000 if ${gcc_cv_as_sparc_leon+:} false; then :
26001 $as_echo_n "(cached) " >&6
26002 else
26003 gcc_cv_as_sparc_leon=no
26004 if test x$gcc_cv_as != x; then
26005 $as_echo '.text
26006 .register %g2, #scratch
26007 .register %g3, #scratch
26008 .align 4
26009 smac %g2, %g3, %g1
26010 umac %g2, %g3, %g1
26011 casa [%g2] 0xb, %g3, %g1' > conftest.s
26012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26018 then
26019 gcc_cv_as_sparc_leon=yes
26020 else
26021 echo "configure: failed program was" >&5
26022 cat conftest.s >&5
26024 rm -f conftest.o conftest.s
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26028 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26029 if test $gcc_cv_as_sparc_leon = yes; then
26031 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26037 i[34567]86-*-* | x86_64-*-*)
26038 case $target_os in
26039 cygwin*)
26040 # Full C++ conformance when using a shared libstdc++-v3 requires some
26041 # support from the Cygwin DLL, which in more recent versions exports
26042 # wrappers to aid in interposing and redirecting operators new, delete,
26043 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26044 # are configuring for a version of Cygwin that exports the wrappers.
26045 if test x$host = x$target && test x$host_cpu = xi686; then
26046 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26047 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26048 gcc_ac_cygwin_dll_wrappers=yes
26049 else
26050 gcc_ac_cygwin_dll_wrappers=no
26053 else
26054 # Can't check presence of libc functions during cross-compile, so
26055 # we just have to assume we're building for an up-to-date target.
26056 gcc_ac_cygwin_dll_wrappers=yes
26059 cat >>confdefs.h <<_ACEOF
26060 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26061 _ACEOF
26063 esac
26064 case $target_os in
26065 cygwin* | pe | mingw32*)
26066 # Recent binutils allows the three-operand form of ".comm" on PE. This
26067 # definition is used unconditionally to initialise the default state of
26068 # the target option variable that governs usage of the feature.
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26070 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26071 if ${gcc_cv_as_comm_has_align+:} false; then :
26072 $as_echo_n "(cached) " >&6
26073 else
26074 gcc_cv_as_comm_has_align=no
26075 if test $in_tree_gas = yes; then
26076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26077 then gcc_cv_as_comm_has_align=yes
26079 elif test x$gcc_cv_as != x; then
26080 $as_echo '.comm foo,1,32' > conftest.s
26081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26084 ac_status=$?
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; }
26087 then
26088 gcc_cv_as_comm_has_align=yes
26089 else
26090 echo "configure: failed program was" >&5
26091 cat conftest.s >&5
26093 rm -f conftest.o conftest.s
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26097 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26101 cat >>confdefs.h <<_ACEOF
26102 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26103 _ACEOF
26105 # Used for DWARF 2 in PE
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26107 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26108 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26109 $as_echo_n "(cached) " >&6
26110 else
26111 gcc_cv_as_ix86_pe_secrel32=no
26112 if test $in_tree_gas = yes; then
26113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26114 then gcc_cv_as_ix86_pe_secrel32=yes
26116 elif test x$gcc_cv_as != x; then
26117 $as_echo '.text
26118 foo: nop
26119 .data
26120 .secrel32 foo' > conftest.s
26121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26127 then
26128 if test x$gcc_cv_ld != x \
26129 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26130 gcc_cv_as_ix86_pe_secrel32=yes
26132 rm -f conftest
26133 else
26134 echo "configure: failed program was" >&5
26135 cat conftest.s >&5
26137 rm -f conftest.o conftest.s
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26141 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26142 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26144 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26148 # Test if the assembler supports the extended form of the .section
26149 # directive that specifies section alignment. LTO support uses this,
26150 # but normally only after installation, so we warn but don't fail the
26151 # configure if LTO is enabled but the assembler does not support it.
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26153 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26154 if ${gcc_cv_as_section_has_align+:} false; then :
26155 $as_echo_n "(cached) " >&6
26156 else
26157 gcc_cv_as_section_has_align=no
26158 if test $in_tree_gas = yes; then
26159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26160 then gcc_cv_as_section_has_align=yes
26162 elif test x$gcc_cv_as != x; then
26163 $as_echo '.section lto_test,"dr0"' > conftest.s
26164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26169 test $ac_status = 0; }; }
26170 then
26171 gcc_cv_as_section_has_align=yes
26172 else
26173 echo "configure: failed program was" >&5
26174 cat conftest.s >&5
26176 rm -f conftest.o conftest.s
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26180 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26183 if test x$gcc_cv_as_section_has_align != xyes; then
26184 case ",$enable_languages," in
26185 *,lto,*)
26186 { $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
26187 $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;}
26189 esac
26192 esac
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26195 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26196 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26197 $as_echo_n "(cached) " >&6
26198 else
26199 gcc_cv_as_ix86_xbrace_comment=no
26200 if test x$gcc_cv_as != x; then
26201 $as_echo '.text' > conftest.s
26202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26207 test $ac_status = 0; }; }
26208 then
26209 gcc_cv_as_ix86_xbrace_comment=yes
26210 else
26211 echo "configure: failed program was" >&5
26212 cat conftest.s >&5
26214 rm -f conftest.o conftest.s
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26218 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26219 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26221 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26227 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26228 if ${gcc_cv_as_ix86_filds+:} false; then :
26229 $as_echo_n "(cached) " >&6
26230 else
26231 gcc_cv_as_ix86_filds=no
26232 if test x$gcc_cv_as != x; then
26233 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26240 then
26241 gcc_cv_as_ix86_filds=yes
26242 else
26243 echo "configure: failed program was" >&5
26244 cat conftest.s >&5
26246 rm -f conftest.o conftest.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26250 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26251 if test $gcc_cv_as_ix86_filds = yes; then
26253 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26259 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26260 if ${gcc_cv_as_ix86_fildq+:} false; then :
26261 $as_echo_n "(cached) " >&6
26262 else
26263 gcc_cv_as_ix86_fildq=no
26264 if test x$gcc_cv_as != x; then
26265 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26268 (eval $ac_try) 2>&5
26269 ac_status=$?
26270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271 test $ac_status = 0; }; }
26272 then
26273 gcc_cv_as_ix86_fildq=yes
26274 else
26275 echo "configure: failed program was" >&5
26276 cat conftest.s >&5
26278 rm -f conftest.o conftest.s
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26282 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26283 if test $gcc_cv_as_ix86_fildq = yes; then
26285 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26291 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26292 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26293 $as_echo_n "(cached) " >&6
26294 else
26295 gcc_cv_as_ix86_cmov_sun_syntax=no
26296 if test x$gcc_cv_as != x; then
26297 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; }
26304 then
26305 gcc_cv_as_ix86_cmov_sun_syntax=yes
26306 else
26307 echo "configure: failed program was" >&5
26308 cat conftest.s >&5
26310 rm -f conftest.o conftest.s
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26314 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26315 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26317 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26323 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26324 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26325 $as_echo_n "(cached) " >&6
26326 else
26327 gcc_cv_as_ix86_ffreep=no
26328 if test x$gcc_cv_as != x; then
26329 $as_echo 'ffreep %st(1)' > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 gcc_cv_as_ix86_ffreep=yes
26338 else
26339 echo "configure: failed program was" >&5
26340 cat conftest.s >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26346 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26347 if test $gcc_cv_as_ix86_ffreep = yes; then
26349 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26355 $as_echo_n "checking assembler for .quad directive... " >&6; }
26356 if ${gcc_cv_as_ix86_quad+:} false; then :
26357 $as_echo_n "(cached) " >&6
26358 else
26359 gcc_cv_as_ix86_quad=no
26360 if test x$gcc_cv_as != x; then
26361 $as_echo '.quad 0' > conftest.s
26362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; }
26368 then
26369 gcc_cv_as_ix86_quad=yes
26370 else
26371 echo "configure: failed program was" >&5
26372 cat conftest.s >&5
26374 rm -f conftest.o conftest.s
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26378 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26379 if test $gcc_cv_as_ix86_quad = yes; then
26381 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26387 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26388 if ${gcc_cv_as_ix86_sahf+:} false; then :
26389 $as_echo_n "(cached) " >&6
26390 else
26391 gcc_cv_as_ix86_sahf=no
26392 if test x$gcc_cv_as != x; then
26393 $as_echo '.code64
26394 sahf' > conftest.s
26395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26401 then
26402 gcc_cv_as_ix86_sahf=yes
26403 else
26404 echo "configure: failed program was" >&5
26405 cat conftest.s >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26411 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26412 if test $gcc_cv_as_ix86_sahf = yes; then
26414 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26420 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26421 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26422 $as_echo_n "(cached) " >&6
26423 else
26424 gcc_cv_as_ix86_interunit_movq=no
26425 if test x$gcc_cv_as != x; then
26426 $as_echo '.code64
26427 movq %mm0, %rax
26428 movq %rax, %xmm0' > conftest.s
26429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434 test $ac_status = 0; }; }
26435 then
26436 gcc_cv_as_ix86_interunit_movq=yes
26437 else
26438 echo "configure: failed program was" >&5
26439 cat conftest.s >&5
26441 rm -f conftest.o conftest.s
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26445 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26449 cat >>confdefs.h <<_ACEOF
26450 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26451 _ACEOF
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26455 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26456 if ${gcc_cv_as_ix86_hle+:} false; then :
26457 $as_echo_n "(cached) " >&6
26458 else
26459 gcc_cv_as_ix86_hle=no
26460 if test x$gcc_cv_as != x; then
26461 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 then
26469 gcc_cv_as_ix86_hle=yes
26470 else
26471 echo "configure: failed program was" >&5
26472 cat conftest.s >&5
26474 rm -f conftest.o conftest.s
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26478 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26479 if test $gcc_cv_as_ix86_hle = yes; then
26481 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26487 $as_echo_n "checking assembler for swap suffix... " >&6; }
26488 if ${gcc_cv_as_ix86_swap+:} false; then :
26489 $as_echo_n "(cached) " >&6
26490 else
26491 gcc_cv_as_ix86_swap=no
26492 if test x$gcc_cv_as != x; then
26493 $as_echo 'movl.s %esp, %ebp' > conftest.s
26494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26496 (eval $ac_try) 2>&5
26497 ac_status=$?
26498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26499 test $ac_status = 0; }; }
26500 then
26501 gcc_cv_as_ix86_swap=yes
26502 else
26503 echo "configure: failed program was" >&5
26504 cat conftest.s >&5
26506 rm -f conftest.o conftest.s
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26510 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26511 if test $gcc_cv_as_ix86_swap = yes; then
26513 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26519 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26520 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_ix86_diff_sect_delta=no
26524 if test x$gcc_cv_as != x; then
26525 $as_echo '.section .rodata
26526 .L1:
26527 .long .L2-.L1
26528 .long .L3-.L1
26529 .text
26530 .L3: nop
26531 .L2: nop' > conftest.s
26532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26537 test $ac_status = 0; }; }
26538 then
26539 gcc_cv_as_ix86_diff_sect_delta=yes
26540 else
26541 echo "configure: failed program was" >&5
26542 cat conftest.s >&5
26544 rm -f conftest.o conftest.s
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26548 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26549 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26551 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26557 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26558 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26559 $as_echo_n "(cached) " >&6
26560 else
26561 gcc_cv_as_ix86_rep_lock_prefix=no
26562 if test x$gcc_cv_as != x; then
26563 $as_echo 'rep movsl
26564 rep ret
26565 rep nop
26566 rep bsf %ecx, %eax
26567 rep bsr %ecx, %eax
26568 lock addl %edi, (%eax,%esi)
26569 lock orl $0, (%esp)' > conftest.s
26570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26572 (eval $ac_try) 2>&5
26573 ac_status=$?
26574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26575 test $ac_status = 0; }; }
26576 then
26577 gcc_cv_as_ix86_rep_lock_prefix=yes
26578 else
26579 echo "configure: failed program was" >&5
26580 cat conftest.s >&5
26582 rm -f conftest.o conftest.s
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26586 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26587 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26589 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26595 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26596 if ${gcc_cv_as_ix86_ud2+:} false; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599 gcc_cv_as_ix86_ud2=no
26600 if test x$gcc_cv_as != x; then
26601 $as_echo 'ud2' > conftest.s
26602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26605 ac_status=$?
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26608 then
26609 gcc_cv_as_ix86_ud2=yes
26610 else
26611 echo "configure: failed program was" >&5
26612 cat conftest.s >&5
26614 rm -f conftest.o conftest.s
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26618 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26619 if test $gcc_cv_as_ix86_ud2 = yes; then
26621 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26626 # Enforce 32-bit output with gas and gld.
26627 if test x$gas = xyes; then
26628 as_ix86_gas_32_opt="--32"
26630 if echo "$ld_ver" | grep GNU > /dev/null; then
26631 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26632 ld_ix86_gld_32_opt="-melf_i386_sol2"
26633 else
26634 ld_ix86_gld_32_opt="-melf_i386"
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26639 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26640 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26641 $as_echo_n "(cached) " >&6
26642 else
26643 gcc_cv_as_ix86_tlsgdplt=no
26644 if test x$gcc_cv_as != x; then
26645 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26648 (eval $ac_try) 2>&5
26649 ac_status=$?
26650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26651 test $ac_status = 0; }; }
26652 then
26653 if test x$gcc_cv_ld != x \
26654 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26655 gcc_cv_as_ix86_tlsgdplt=yes
26657 rm -f conftest
26658 else
26659 echo "configure: failed program was" >&5
26660 cat conftest.s >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26666 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26667 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26669 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26674 conftest_s='
26675 .section .tdata,"aw'$tls_section_flag'",@progbits
26676 tls_ld:
26677 .section .text,"ax",@progbits
26678 call tls_ld@tlsldmplt'
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26681 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26682 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26683 $as_echo_n "(cached) " >&6
26684 else
26685 gcc_cv_as_ix86_tlsldmplt=no
26686 if test x$gcc_cv_as != x; then
26687 $as_echo "$conftest_s" > conftest.s
26688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26690 (eval $ac_try) 2>&5
26691 ac_status=$?
26692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26693 test $ac_status = 0; }; }
26694 then
26695 if test x$gcc_cv_ld != x \
26696 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26697 gcc_cv_as_ix86_tlsldmplt=yes
26699 rm -f conftest
26700 else
26701 echo "configure: failed program was" >&5
26702 cat conftest.s >&5
26704 rm -f conftest.o conftest.s
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26708 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26712 cat >>confdefs.h <<_ACEOF
26713 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26714 _ACEOF
26717 conftest_s='
26718 .section .text,"ax",@progbits
26719 .globl _start
26720 .type _start, @function
26721 _start:
26722 leal value@tlsldm(%ebx), %eax
26723 call ___tls_get_addr@plt
26725 .section .tdata,"aw'$tls_section_flag'",@progbits
26726 .type value, @object
26727 value:'
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26729 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26730 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26731 $as_echo_n "(cached) " >&6
26732 else
26733 gcc_cv_as_ix86_tlsldm=no
26734 if test x$gcc_cv_as != x; then
26735 $as_echo "$conftest_s" > conftest.s
26736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26738 (eval $ac_try) 2>&5
26739 ac_status=$?
26740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26741 test $ac_status = 0; }; }
26742 then
26743 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26744 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26745 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26746 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26747 gcc_cv_as_ix86_tlsldm=yes
26750 rm -f conftest
26751 else
26752 echo "configure: failed program was" >&5
26753 cat conftest.s >&5
26755 rm -f conftest.o conftest.s
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26759 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26763 cat >>confdefs.h <<_ACEOF
26764 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26765 _ACEOF
26768 conftest_s='
26769 .data
26770 bar:
26771 .byte 1
26772 .text
26773 .global _start
26774 _start:
26775 cmpl $0, bar@GOT
26776 jmp *_start@GOT'
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26778 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26779 if ${gcc_cv_as_ix86_got32x+:} false; then :
26780 $as_echo_n "(cached) " >&6
26781 else
26782 gcc_cv_as_ix86_got32x=no
26783 if test x$gcc_cv_as != x; then
26784 $as_echo "$conftest_s" > conftest.s
26785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26787 (eval $ac_try) 2>&5
26788 ac_status=$?
26789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26790 test $ac_status = 0; }; }
26791 then
26792 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26793 && test x$gcc_cv_readelf != x \
26794 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26795 | grep R_386_GOT32X > /dev/null 2>&1 \
26796 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26797 if $gcc_cv_objdump -dw conftest 2>&1 \
26798 | grep 0xffffff > /dev/null 2>&1; then
26799 gcc_cv_as_ix86_got32x=no
26800 else
26801 gcc_cv_as_ix86_got32x=yes
26804 rm -f conftest
26805 else
26806 echo "configure: failed program was" >&5
26807 cat conftest.s >&5
26809 rm -f conftest.o conftest.s
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26813 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26817 cat >>confdefs.h <<_ACEOF
26818 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26819 _ACEOF
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26823 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26824 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
26825 $as_echo_n "(cached) " >&6
26826 else
26827 gcc_cv_as_ix86_gotoff_in_data=no
26828 if test $in_tree_gas = yes; then
26829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26830 then gcc_cv_as_ix86_gotoff_in_data=yes
26832 elif test x$gcc_cv_as != x; then
26833 $as_echo ' .text
26834 .L0:
26836 .data
26837 .long .L0@GOTOFF' > conftest.s
26838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }
26844 then
26845 gcc_cv_as_ix86_gotoff_in_data=yes
26846 else
26847 echo "configure: failed program was" >&5
26848 cat conftest.s >&5
26850 rm -f conftest.o conftest.s
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26854 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26858 cat >>confdefs.h <<_ACEOF
26859 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26860 _ACEOF
26863 conftest_s='
26864 .section .text,"ax",@progbits
26865 .globl _start
26866 .type _start, @function
26867 _start:
26868 leal ld@tlsldm(%ecx), %eax
26869 call *___tls_get_addr@GOT(%ecx)
26870 leal gd@tlsgd(%ecx), %eax
26871 call *___tls_get_addr@GOT(%ecx)
26873 .section .tdata,"aw'$tls_section_flag'",@progbits
26874 .type ld, @object
26876 .byte 0
26877 .globl gd
26878 .type gd, @object
26880 .byte 0'
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26882 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26883 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_ix86_tls_get_addr_via_got=no
26887 if test x$gcc_cv_as != x; then
26888 $as_echo "$conftest_s" > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 if test x$gcc_cv_ld != x \
26897 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26898 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26900 rm -f conftest
26901 else
26902 echo "configure: failed program was" >&5
26903 cat conftest.s >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26909 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26913 cat >>confdefs.h <<_ACEOF
26914 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26915 _ACEOF
26919 ia64*-*-*)
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26921 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26922 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
26923 $as_echo_n "(cached) " >&6
26924 else
26925 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26926 if test $in_tree_gas = yes; then
26927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26928 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26930 elif test x$gcc_cv_as != x; then
26931 $as_echo ' .text
26932 addl r15 = @ltoffx(x#), gp
26934 ld8.mov r16 = [r15], x#
26935 ' > conftest.s
26936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26941 test $ac_status = 0; }; }
26942 then
26943 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26944 else
26945 echo "configure: failed program was" >&5
26946 cat conftest.s >&5
26948 rm -f conftest.o conftest.s
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26952 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26953 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26955 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26962 powerpc*-*-*)
26964 case $target in
26965 *-*-darwin*)
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26967 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26968 if ${gcc_cv_as_machine_directive+:} false; then :
26969 $as_echo_n "(cached) " >&6
26970 else
26971 gcc_cv_as_machine_directive=no
26972 if test x$gcc_cv_as != x; then
26973 $as_echo ' .machine ppc7400' > conftest.s
26974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26976 (eval $ac_try) 2>&5
26977 ac_status=$?
26978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26979 test $ac_status = 0; }; }
26980 then
26981 gcc_cv_as_machine_directive=yes
26982 else
26983 echo "configure: failed program was" >&5
26984 cat conftest.s >&5
26986 rm -f conftest.o conftest.s
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26990 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26993 if test x$gcc_cv_as_machine_directive != xyes; then
26994 echo "*** This target requires an assembler supporting \".machine\"" >&2
26995 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26996 test x$build = x$target && exit 1
26999 esac
27001 case $target in
27002 *-*-aix*) conftest_s=' .machine "pwr5"
27003 .csect .text[PR]
27004 mfcr 3,128';;
27005 *-*-darwin*) conftest_s=' .text
27006 mfcr r3,128';;
27007 *) conftest_s=' .machine power4
27008 .text
27009 mfcr 3,128';;
27010 esac
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27013 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27014 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_powerpc_mfcrf=no
27018 if test $in_tree_gas = yes; then
27019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27020 then gcc_cv_as_powerpc_mfcrf=yes
27022 elif test x$gcc_cv_as != x; then
27023 $as_echo "$conftest_s" > conftest.s
27024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27029 test $ac_status = 0; }; }
27030 then
27031 gcc_cv_as_powerpc_mfcrf=yes
27032 else
27033 echo "configure: failed program was" >&5
27034 cat conftest.s >&5
27036 rm -f conftest.o conftest.s
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27040 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27041 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27043 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27048 case $target in
27049 *-*-aix*) conftest_s=' .csect .text[PR]
27050 LCF..0:
27051 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27052 *-*-darwin*)
27053 conftest_s=' .text
27054 LCF0:
27055 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27056 *) conftest_s=' .text
27057 .LCF0:
27058 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27059 esac
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27062 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27063 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27064 $as_echo_n "(cached) " >&6
27065 else
27066 gcc_cv_as_powerpc_rel16=no
27067 if test $in_tree_gas = yes; then
27068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27069 then gcc_cv_as_powerpc_rel16=yes
27071 elif test x$gcc_cv_as != x; then
27072 $as_echo "$conftest_s" > conftest.s
27073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27075 (eval $ac_try) 2>&5
27076 ac_status=$?
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; }
27079 then
27080 gcc_cv_as_powerpc_rel16=yes
27081 else
27082 echo "configure: failed program was" >&5
27083 cat conftest.s >&5
27085 rm -f conftest.o conftest.s
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27089 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27090 if test $gcc_cv_as_powerpc_rel16 = yes; then
27092 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27097 case $target in
27098 *-*-aix*) conftest_s=' .machine "pwr7"
27099 .csect .text[PR]
27100 lxvd2x 1,2,3';;
27101 *) conftest_s=' .machine power7
27102 .text
27103 lxvd2x 1,2,3';;
27104 esac
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27107 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27108 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27109 $as_echo_n "(cached) " >&6
27110 else
27111 gcc_cv_as_powerpc_vsx=no
27112 if test $in_tree_gas = yes; then
27113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27114 then gcc_cv_as_powerpc_vsx=yes
27116 elif test x$gcc_cv_as != x; then
27117 $as_echo "$conftest_s" > conftest.s
27118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27120 (eval $ac_try) 2>&5
27121 ac_status=$?
27122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27123 test $ac_status = 0; }; }
27124 then
27125 gcc_cv_as_powerpc_vsx=yes
27126 else
27127 echo "configure: failed program was" >&5
27128 cat conftest.s >&5
27130 rm -f conftest.o conftest.s
27133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27134 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27135 if test $gcc_cv_as_powerpc_vsx = yes; then
27137 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27143 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27144 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27145 $as_echo_n "(cached) " >&6
27146 else
27147 gcc_cv_as_powerpc_gnu_attribute=no
27148 if test $in_tree_gas = yes; then
27149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27150 then gcc_cv_as_powerpc_gnu_attribute=yes
27152 elif test x$gcc_cv_as != x; then
27153 $as_echo '.gnu_attribute 4,1' > conftest.s
27154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27156 (eval $ac_try) 2>&5
27157 ac_status=$?
27158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27159 test $ac_status = 0; }; }
27160 then
27161 gcc_cv_as_powerpc_gnu_attribute=yes
27162 else
27163 echo "configure: failed program was" >&5
27164 cat conftest.s >&5
27166 rm -f conftest.o conftest.s
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27170 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27171 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27173 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27179 $as_echo_n "checking assembler for tls marker support... " >&6; }
27180 if ${gcc_cv_as_powerpc_tls_markers+:} false; then :
27181 $as_echo_n "(cached) " >&6
27182 else
27183 gcc_cv_as_powerpc_tls_markers=no
27184 if test $in_tree_gas = yes; then
27185 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27186 then gcc_cv_as_powerpc_tls_markers=yes
27188 elif test x$gcc_cv_as != x; then
27189 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; }
27196 then
27197 gcc_cv_as_powerpc_tls_markers=yes
27198 else
27199 echo "configure: failed program was" >&5
27200 cat conftest.s >&5
27202 rm -f conftest.o conftest.s
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27206 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27207 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27209 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27215 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27216 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27217 $as_echo_n "(cached) " >&6
27218 else
27219 gcc_cv_as_powerpc_entry_markers=no
27220 if test $in_tree_gas = yes; then
27221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27222 then gcc_cv_as_powerpc_entry_markers=yes
27224 elif test x$gcc_cv_as != x; then
27225 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27228 (eval $ac_try) 2>&5
27229 ac_status=$?
27230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27231 test $ac_status = 0; }; }
27232 then
27233 gcc_cv_as_powerpc_entry_markers=yes
27234 else
27235 echo "configure: failed program was" >&5
27236 cat conftest.s >&5
27238 rm -f conftest.o conftest.s
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27242 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27243 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27245 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27251 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27252 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27253 $as_echo_n "(cached) " >&6
27254 else
27255 gcc_cv_as_powerpc_pltseq_markers=no
27256 if test $in_tree_gas = yes; then
27257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27258 then gcc_cv_as_powerpc_pltseq_markers=yes
27260 elif test x$gcc_cv_as != x; then
27261 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27265 ac_status=$?
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; }
27268 then
27269 gcc_cv_as_powerpc_pltseq_markers=yes
27270 else
27271 echo "configure: failed program was" >&5
27272 cat conftest.s >&5
27274 rm -f conftest.o conftest.s
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27278 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27279 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27281 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27286 case $target in
27287 *-*-aix*)
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27289 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27290 if ${gcc_cv_as_aix_ref+:} false; then :
27291 $as_echo_n "(cached) " >&6
27292 else
27293 gcc_cv_as_aix_ref=no
27294 if test $in_tree_gas = yes; then
27295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27296 then gcc_cv_as_aix_ref=yes
27298 elif test x$gcc_cv_as != x; then
27299 $as_echo ' .csect stuff[rw]
27300 stuff:
27301 .long 1
27302 .extern sym
27303 .ref sym
27304 ' > conftest.s
27305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27310 test $ac_status = 0; }; }
27311 then
27312 gcc_cv_as_aix_ref=yes
27313 else
27314 echo "configure: failed program was" >&5
27315 cat conftest.s >&5
27317 rm -f conftest.o conftest.s
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27321 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27322 if test $gcc_cv_as_aix_ref = yes; then
27324 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27330 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27331 if ${gcc_cv_as_aix_dwloc+:} false; then :
27332 $as_echo_n "(cached) " >&6
27333 else
27334 gcc_cv_as_aix_dwloc=no
27335 if test $in_tree_gas = yes; then
27336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27337 then gcc_cv_as_aix_dwloc=yes
27339 elif test x$gcc_cv_as != x; then
27340 $as_echo ' .dwsect 0xA0000
27341 Lframe..0:
27342 .vbyte 4,Lframe..0
27343 ' > conftest.s
27344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27346 (eval $ac_try) 2>&5
27347 ac_status=$?
27348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27349 test $ac_status = 0; }; }
27350 then
27351 gcc_cv_as_aix_dwloc=yes
27352 else
27353 echo "configure: failed program was" >&5
27354 cat conftest.s >&5
27356 rm -f conftest.o conftest.s
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27360 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27361 if test $gcc_cv_as_aix_dwloc = yes; then
27363 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27368 esac
27371 mips*-*-*)
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27373 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27374 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_as_mips_explicit_relocs=no
27378 if test $in_tree_gas = yes; then
27379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27380 then gcc_cv_as_mips_explicit_relocs=yes
27382 elif test x$gcc_cv_as != x; then
27383 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27387 ac_status=$?
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; }
27390 then
27391 gcc_cv_as_mips_explicit_relocs=yes
27392 else
27393 echo "configure: failed program was" >&5
27394 cat conftest.s >&5
27396 rm -f conftest.o conftest.s
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27400 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27401 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27402 if test x$target_cpu_default = x
27403 then target_cpu_default=MASK_EXPLICIT_RELOCS
27404 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27410 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27411 if ${gcc_cv_as_mips_no_shared+:} false; then :
27412 $as_echo_n "(cached) " >&6
27413 else
27414 gcc_cv_as_mips_no_shared=no
27415 if test $in_tree_gas = yes; then
27416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27417 then gcc_cv_as_mips_no_shared=yes
27419 elif test x$gcc_cv_as != x; then
27420 $as_echo 'nop' > conftest.s
27421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27423 (eval $ac_try) 2>&5
27424 ac_status=$?
27425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27426 test $ac_status = 0; }; }
27427 then
27428 gcc_cv_as_mips_no_shared=yes
27429 else
27430 echo "configure: failed program was" >&5
27431 cat conftest.s >&5
27433 rm -f conftest.o conftest.s
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27437 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27438 if test $gcc_cv_as_mips_no_shared = yes; then
27440 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27446 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27447 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27448 $as_echo_n "(cached) " >&6
27449 else
27450 gcc_cv_as_mips_gnu_attribute=no
27451 if test $in_tree_gas = yes; then
27452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27453 then gcc_cv_as_mips_gnu_attribute=yes
27455 elif test x$gcc_cv_as != x; then
27456 $as_echo '.gnu_attribute 4,1' > conftest.s
27457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27459 (eval $ac_try) 2>&5
27460 ac_status=$?
27461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27462 test $ac_status = 0; }; }
27463 then
27464 gcc_cv_as_mips_gnu_attribute=yes
27465 else
27466 echo "configure: failed program was" >&5
27467 cat conftest.s >&5
27469 rm -f conftest.o conftest.s
27472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27473 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27474 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27476 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27482 $as_echo_n "checking assembler for .module support... " >&6; }
27483 if ${gcc_cv_as_mips_dot_module+:} false; then :
27484 $as_echo_n "(cached) " >&6
27485 else
27486 gcc_cv_as_mips_dot_module=no
27487 if test x$gcc_cv_as != x; then
27488 $as_echo '.module mips2
27489 .module fp=xx' > conftest.s
27490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27492 (eval $ac_try) 2>&5
27493 ac_status=$?
27494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27495 test $ac_status = 0; }; }
27496 then
27497 gcc_cv_as_mips_dot_module=yes
27498 else
27499 echo "configure: failed program was" >&5
27500 cat conftest.s >&5
27502 rm -f conftest.o conftest.s
27505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27506 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27507 if test $gcc_cv_as_mips_dot_module = yes; then
27509 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27513 if test x$gcc_cv_as_mips_dot_module = xno \
27514 && test x$with_fp_32 != x; then
27515 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27519 $as_echo_n "checking assembler for .micromips support... " >&6; }
27520 if ${gcc_cv_as_micromips_support+:} false; then :
27521 $as_echo_n "(cached) " >&6
27522 else
27523 gcc_cv_as_micromips_support=no
27524 if test x$gcc_cv_as != x; then
27525 $as_echo '.set micromips' > conftest.s
27526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27531 test $ac_status = 0; }; }
27532 then
27533 gcc_cv_as_micromips_support=yes
27534 else
27535 echo "configure: failed program was" >&5
27536 cat conftest.s >&5
27538 rm -f conftest.o conftest.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27542 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27543 if test $gcc_cv_as_micromips_support = yes; then
27545 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27551 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27552 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27553 $as_echo_n "(cached) " >&6
27554 else
27555 gcc_cv_as_mips_dtprelword=no
27556 if test $in_tree_gas = yes; then
27557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27558 then gcc_cv_as_mips_dtprelword=yes
27560 elif test x$gcc_cv_as != x; then
27561 $as_echo '.section .tdata,"awT",@progbits
27563 .word 2
27564 .text
27565 .dtprelword x+0x8000' > conftest.s
27566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27571 test $ac_status = 0; }; }
27572 then
27573 gcc_cv_as_mips_dtprelword=yes
27574 else
27575 echo "configure: failed program was" >&5
27576 cat conftest.s >&5
27578 rm -f conftest.o conftest.s
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27582 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27583 if test $gcc_cv_as_mips_dtprelword = yes; then
27585 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27591 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27592 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27593 $as_echo_n "(cached) " >&6
27594 else
27595 gcc_cv_as_mips_dspr1_mult=no
27596 if test x$gcc_cv_as != x; then
27597 $as_echo ' .set mips32r2
27598 .set nodspr2
27599 .set dsp
27600 madd $ac3,$4,$5
27601 maddu $ac3,$4,$5
27602 msub $ac3,$4,$5
27603 msubu $ac3,$4,$5
27604 mult $ac3,$4,$5
27605 multu $ac3,$4,$5' > conftest.s
27606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27608 (eval $ac_try) 2>&5
27609 ac_status=$?
27610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27611 test $ac_status = 0; }; }
27612 then
27613 gcc_cv_as_mips_dspr1_mult=yes
27614 else
27615 echo "configure: failed program was" >&5
27616 cat conftest.s >&5
27618 rm -f conftest.o conftest.s
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27622 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27623 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27625 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27631 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27632 gcc_cv_as_ld_jalr_reloc=no
27633 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27634 if test $in_tree_ld = yes ; then
27635 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 \
27636 && test $in_tree_ld_is_elf = yes; then
27637 gcc_cv_as_ld_jalr_reloc=yes
27639 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27640 echo ' .ent x' > conftest.s
27641 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27642 echo ' lw $25,%call16(y)($28)' >> conftest.s
27643 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27644 echo '1: jalr $25' >> conftest.s
27645 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27646 echo '1: jalr $25' >> conftest.s
27647 echo ' .end x' >> conftest.s
27648 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27649 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27650 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27651 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27652 gcc_cv_as_ld_jalr_reloc=yes
27655 rm -f conftest.*
27658 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27659 if test x$target_cpu_default = x; then
27660 target_cpu_default=MASK_RELAX_PIC_CALLS
27661 else
27662 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27666 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27669 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27670 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27671 $as_echo_n "(cached) " >&6
27672 else
27673 gcc_cv_ld_mips_personality_relaxation=no
27674 if test $in_tree_ld = yes ; then
27675 if test "$gcc_cv_gld_major_version" -eq 2 \
27676 -a "$gcc_cv_gld_minor_version" -ge 21 \
27677 -o "$gcc_cv_gld_major_version" -gt 2; then
27678 gcc_cv_ld_mips_personality_relaxation=yes
27680 elif test x$gcc_cv_as != x \
27681 -a x$gcc_cv_ld != x \
27682 -a x$gcc_cv_readelf != x ; then
27683 cat > conftest.s <<EOF
27684 .cfi_startproc
27685 .cfi_personality 0x80,indirect_ptr
27686 .ent test
27687 test:
27689 .end test
27690 .cfi_endproc
27692 .section .data,"aw",@progbits
27693 indirect_ptr:
27694 .dc.a personality
27696 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27697 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27698 if $gcc_cv_readelf -d conftest 2>&1 \
27699 | grep TEXTREL > /dev/null 2>&1; then
27701 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27702 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27704 else
27705 gcc_cv_ld_mips_personality_relaxation=yes
27709 rm -f conftest.s conftest.o conftest
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27712 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27713 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27715 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27720 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27721 if ${gcc_cv_as_mips_nan+:} false; then :
27722 $as_echo_n "(cached) " >&6
27723 else
27724 gcc_cv_as_mips_nan=no
27725 if test x$gcc_cv_as != x; then
27726 $as_echo '' > conftest.s
27727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27732 test $ac_status = 0; }; }
27733 then
27734 gcc_cv_as_mips_nan=yes
27735 else
27736 echo "configure: failed program was" >&5
27737 cat conftest.s >&5
27739 rm -f conftest.o conftest.s
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27743 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27744 if test $gcc_cv_as_mips_nan = yes; then
27746 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27750 if test x$gcc_cv_as_mips_nan = xno \
27751 && test x$with_nan != x; then
27752 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27755 riscv*-*-*)
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27757 $as_echo_n "checking assembler for .attribute support... " >&6; }
27758 if ${gcc_cv_as_riscv_attribute+:} false; then :
27759 $as_echo_n "(cached) " >&6
27760 else
27761 gcc_cv_as_riscv_attribute=no
27762 if test $in_tree_gas = yes; then
27763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27764 then gcc_cv_as_riscv_attribute=yes
27766 elif test x$gcc_cv_as != x; then
27767 $as_echo '.attribute stack_align,4' > conftest.s
27768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27770 (eval $ac_try) 2>&5
27771 ac_status=$?
27772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27773 test $ac_status = 0; }; }
27774 then
27775 gcc_cv_as_riscv_attribute=yes
27776 else
27777 echo "configure: failed program was" >&5
27778 cat conftest.s >&5
27780 rm -f conftest.o conftest.s
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27784 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27785 if test $gcc_cv_as_riscv_attribute = yes; then
27787 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27792 s390*-*-*)
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27794 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27795 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
27796 $as_echo_n "(cached) " >&6
27797 else
27798 gcc_cv_as_s390_gnu_attribute=no
27799 if test $in_tree_gas = yes; then
27800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27801 then gcc_cv_as_s390_gnu_attribute=yes
27803 elif test x$gcc_cv_as != x; then
27804 $as_echo '.gnu_attribute 8,1' > conftest.s
27805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27807 (eval $ac_try) 2>&5
27808 ac_status=$?
27809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27810 test $ac_status = 0; }; }
27811 then
27812 gcc_cv_as_s390_gnu_attribute=yes
27813 else
27814 echo "configure: failed program was" >&5
27815 cat conftest.s >&5
27817 rm -f conftest.o conftest.s
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27821 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27822 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27824 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27829 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27830 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
27831 $as_echo_n "(cached) " >&6
27832 else
27833 gcc_cv_as_s390_machine_machinemode=no
27834 if test $in_tree_gas = yes; then
27835 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27836 then gcc_cv_as_s390_machine_machinemode=yes
27838 elif test x$gcc_cv_as != x; then
27839 $as_echo ' .machinemode push
27840 .machinemode pop
27841 .machine push
27842 .machine pop' > conftest.s
27843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27845 (eval $ac_try) 2>&5
27846 ac_status=$?
27847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27848 test $ac_status = 0; }; }
27849 then
27850 gcc_cv_as_s390_machine_machinemode=yes
27851 else
27852 echo "configure: failed program was" >&5
27853 cat conftest.s >&5
27855 rm -f conftest.o conftest.s
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27859 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27860 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27862 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27867 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27868 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
27869 $as_echo_n "(cached) " >&6
27870 else
27871 gcc_cv_as_s390_architecture_modifiers=no
27872 if test $in_tree_gas = yes; then
27873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27874 then gcc_cv_as_s390_architecture_modifiers=yes
27876 elif test x$gcc_cv_as != x; then
27877 $as_echo ' .machine z13+vx ' > conftest.s
27878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27880 (eval $ac_try) 2>&5
27881 ac_status=$?
27882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27883 test $ac_status = 0; }; }
27884 then
27885 gcc_cv_as_s390_architecture_modifiers=yes
27886 else
27887 echo "configure: failed program was" >&5
27888 cat conftest.s >&5
27890 rm -f conftest.o conftest.s
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27894 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27895 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27897 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
27902 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
27903 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
27904 $as_echo_n "(cached) " >&6
27905 else
27906 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
27907 if test $in_tree_gas = yes; then
27908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27909 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27911 elif test x$gcc_cv_as != x; then
27912 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
27913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27915 (eval $ac_try) 2>&5
27916 ac_status=$?
27917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27918 test $ac_status = 0; }; }
27919 then
27920 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
27921 else
27922 echo "configure: failed program was" >&5
27923 cat conftest.s >&5
27925 rm -f conftest.o conftest.s
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
27929 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
27930 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
27932 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
27938 esac
27940 # Mips and HP-UX need the GNU assembler.
27941 # Linux on IA64 might be able to use the Intel assembler.
27943 case "$target" in
27944 mips*-*-* | *-*-hpux* )
27945 if test x$gas_flag = xyes \
27946 || test x"$host" != x"$build" \
27947 || test ! -x "$gcc_cv_as" \
27948 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27950 else
27951 echo "*** This configuration requires the GNU assembler" >&2
27952 exit 1
27955 esac
27957 # ??? Not all targets support dwarf2 debug_line, even within a version
27958 # of gas. Moreover, we need to emit a valid instruction to trigger any
27959 # info to the output file. So, as supported targets are added to gas 2.11,
27960 # add some instruction here to (also) show we expect this might work.
27961 # ??? Once 2.11 is released, probably need to add first known working
27962 # version to the per-target configury.
27963 case "$cpu_type" in
27964 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27965 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27966 | tilegx | tilepro | visium | xstormy16 | xtensa)
27967 insn="nop"
27969 ia64 | s390)
27970 insn="nop 0"
27972 mmix)
27973 insn="swym 0"
27975 esac
27976 if test x"$insn" != x; then
27977 conftest_s="\
27978 .file 1 \"conftest.s\"
27979 .loc 1 3 0
27980 $insn"
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27982 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27983 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 gcc_cv_as_dwarf2_debug_line=no
27987 if test $in_tree_gas = yes; then
27988 if test $in_tree_gas_is_elf = yes \
27989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27990 then gcc_cv_as_dwarf2_debug_line=yes
27992 elif test x$gcc_cv_as != x; then
27993 $as_echo "$conftest_s" > conftest.s
27994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27996 (eval $ac_try) 2>&5
27997 ac_status=$?
27998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27999 test $ac_status = 0; }; }
28000 then
28001 if test x$gcc_cv_objdump != x \
28002 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28003 | grep debug_line > /dev/null 2>&1; then
28004 gcc_cv_as_dwarf2_debug_line=yes
28005 elif test x$gcc_cv_otool != x \
28006 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28007 | grep debug_line > /dev/null 2>&1; then
28008 gcc_cv_as_dwarf2_debug_line=yes
28010 else
28011 echo "configure: failed program was" >&5
28012 cat conftest.s >&5
28014 rm -f conftest.o conftest.s
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28018 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28022 # The .debug_line file table must be in the exact order that
28023 # we specified the files, since these indices are also used
28024 # by DW_AT_decl_file. Approximate this test by testing if
28025 # the assembler bitches if the same index is assigned twice.
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28027 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28028 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28029 $as_echo_n "(cached) " >&6
28030 else
28031 gcc_cv_as_dwarf2_file_buggy=no
28032 if test x$gcc_cv_as != x; then
28033 $as_echo ' .file 1 "foo.s"
28034 .file 1 "bar.s"' > conftest.s
28035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28037 (eval $ac_try) 2>&5
28038 ac_status=$?
28039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28040 test $ac_status = 0; }; }
28041 then
28042 gcc_cv_as_dwarf2_file_buggy=yes
28043 else
28044 echo "configure: failed program was" >&5
28045 cat conftest.s >&5
28047 rm -f conftest.o conftest.s
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28051 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28055 if test $gcc_cv_as_dwarf2_debug_line = yes \
28056 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28058 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28061 if test $gcc_cv_as_leb128 = yes; then
28062 conftest_s="\
28063 .file 1 \"conftest.s\"
28064 .loc 1 3 0 view .LVU1
28065 $insn
28066 .data
28067 .uleb128 .LVU1
28068 .uleb128 .LVU1
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28071 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28072 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28073 $as_echo_n "(cached) " >&6
28074 else
28075 gcc_cv_as_dwarf2_debug_view=no
28076 if test $in_tree_gas = yes; then
28077 if test $in_tree_gas_is_elf = yes \
28078 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28079 then gcc_cv_as_dwarf2_debug_view=yes
28081 elif test x$gcc_cv_as != x; then
28082 $as_echo "$conftest_s" > conftest.s
28083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28085 (eval $ac_try) 2>&5
28086 ac_status=$?
28087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28088 test $ac_status = 0; }; }
28089 then
28090 gcc_cv_as_dwarf2_debug_view=yes
28091 else
28092 echo "configure: failed program was" >&5
28093 cat conftest.s >&5
28095 rm -f conftest.o conftest.s
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28099 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28100 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28102 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28110 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28111 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28112 $as_echo_n "(cached) " >&6
28113 else
28114 gcc_cv_as_gdwarf2_flag=no
28115 if test $in_tree_gas = yes; then
28116 if test $in_tree_gas_is_elf = yes \
28117 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28118 then gcc_cv_as_gdwarf2_flag=yes
28120 elif test x$gcc_cv_as != x; then
28121 $as_echo "$insn" > conftest.s
28122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28127 test $ac_status = 0; }; }
28128 then
28129 gcc_cv_as_gdwarf2_flag=yes
28130 else
28131 echo "configure: failed program was" >&5
28132 cat conftest.s >&5
28134 rm -f conftest.o conftest.s
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28138 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28139 if test $gcc_cv_as_gdwarf2_flag = yes; then
28141 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28147 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28148 if ${gcc_cv_as_gstabs_flag+:} false; then :
28149 $as_echo_n "(cached) " >&6
28150 else
28151 gcc_cv_as_gstabs_flag=no
28152 if test $in_tree_gas = yes; then
28153 if test $in_tree_gas_is_elf = yes \
28154 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28155 then gcc_cv_as_gstabs_flag=yes
28157 elif test x$gcc_cv_as != x; then
28158 $as_echo "$insn" > conftest.s
28159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28161 (eval $ac_try) 2>&5
28162 ac_status=$?
28163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28164 test $ac_status = 0; }; }
28165 then
28166 gcc_cv_as_gstabs_flag=yes
28167 else
28168 echo "configure: failed program was" >&5
28169 cat conftest.s >&5
28171 rm -f conftest.o conftest.s
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28175 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28176 if test $gcc_cv_as_gstabs_flag = yes; then
28178 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28184 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28185 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28186 $as_echo_n "(cached) " >&6
28187 else
28188 gcc_cv_as_debug_prefix_map_flag=no
28189 if test $in_tree_gas = yes; then
28190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28191 then gcc_cv_as_debug_prefix_map_flag=yes
28193 elif test x$gcc_cv_as != x; then
28194 $as_echo "$insn" > conftest.s
28195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28197 (eval $ac_try) 2>&5
28198 ac_status=$?
28199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28200 test $ac_status = 0; }; }
28201 then
28202 gcc_cv_as_debug_prefix_map_flag=yes
28203 else
28204 echo "configure: failed program was" >&5
28205 cat conftest.s >&5
28207 rm -f conftest.o conftest.s
28210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28211 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28212 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28214 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28221 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28222 if ${gcc_cv_as_compress_debug+:} false; then :
28223 $as_echo_n "(cached) " >&6
28224 else
28225 gcc_cv_as_compress_debug=no
28226 if test x$gcc_cv_as != x; then
28227 $as_echo '' > conftest.s
28228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28233 test $ac_status = 0; }; }
28234 then
28235 # gas compiled without zlib cannot compress debug sections and warns
28236 # about it, but still exits successfully. So check for this, too.
28237 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28238 then
28239 gcc_cv_as_compress_debug=0
28240 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28241 # defaulting to the ELF gABI format.
28242 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28243 then
28244 gcc_cv_as_compress_debug=2
28245 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28246 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28247 # Before binutils 2.26, gas only supported --compress-debug-options and
28248 # emitted the traditional GNU format.
28249 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28250 then
28251 gcc_cv_as_compress_debug=1
28252 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28253 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28254 else
28255 gcc_cv_as_compress_debug=0
28257 else
28258 echo "configure: failed program was" >&5
28259 cat conftest.s >&5
28261 rm -f conftest.o conftest.s
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28265 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28269 cat >>confdefs.h <<_ACEOF
28270 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28271 _ACEOF
28274 cat >>confdefs.h <<_ACEOF
28275 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28276 _ACEOF
28279 cat >>confdefs.h <<_ACEOF
28280 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28281 _ACEOF
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28285 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28286 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28287 $as_echo_n "(cached) " >&6
28288 else
28289 gcc_cv_as_lcomm_with_alignment=no
28290 if test x$gcc_cv_as != x; then
28291 $as_echo '.lcomm bar,4,16' > conftest.s
28292 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28294 (eval $ac_try) 2>&5
28295 ac_status=$?
28296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28297 test $ac_status = 0; }; }
28298 then
28299 gcc_cv_as_lcomm_with_alignment=yes
28300 else
28301 echo "configure: failed program was" >&5
28302 cat conftest.s >&5
28304 rm -f conftest.o conftest.s
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28308 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28309 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28311 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28316 if test x$with_sysroot = x && test x$host = x$target \
28317 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28318 && test "$prefix" != "NONE"; then
28320 cat >>confdefs.h <<_ACEOF
28321 #define PREFIX_INCLUDE_DIR "$prefix/include"
28322 _ACEOF
28326 # Determine the version of glibc, if any, used on the target.
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28328 $as_echo_n "checking for target glibc version... " >&6; }
28330 # Check whether --with-glibc-version was given.
28331 if test "${with_glibc_version+set}" = set; then :
28332 withval=$with_glibc_version;
28333 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28334 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28335 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28336 else
28337 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28339 else
28341 glibc_version_major=0
28342 glibc_version_minor=0
28343 if test -f $target_header_dir/features.h \
28344 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28345 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28346 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28347 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28352 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28354 cat >>confdefs.h <<_ACEOF
28355 #define TARGET_GLIBC_MAJOR $glibc_version_major
28356 _ACEOF
28359 cat >>confdefs.h <<_ACEOF
28360 #define TARGET_GLIBC_MINOR $glibc_version_minor
28361 _ACEOF
28364 # Check whether --enable-gnu-unique-object was given.
28365 if test "${enable_gnu_unique_object+set}" = set; then :
28366 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28367 yes | no) ;;
28368 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28369 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28370 esac
28371 else
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28373 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28374 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28375 $as_echo_n "(cached) " >&6
28376 else
28377 gcc_cv_as_gnu_unique_object=no
28378 if test $in_tree_gas = yes; then
28379 if test $in_tree_gas_is_elf = yes \
28380 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28381 then gcc_cv_as_gnu_unique_object=yes
28383 elif test x$gcc_cv_as != x; then
28384 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28390 test $ac_status = 0; }; }
28391 then
28392 gcc_cv_as_gnu_unique_object=yes
28393 else
28394 echo "configure: failed program was" >&5
28395 cat conftest.s >&5
28397 rm -f conftest.o conftest.s
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28401 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28402 if test $gcc_cv_as_gnu_unique_object = yes; then
28403 # We need to unquote above to to use the definition from config.gcc.
28404 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28406 if test $glibc_version_major -gt 2 \
28407 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28408 enable_gnu_unique_object=yes
28415 if test x$enable_gnu_unique_object = xyes; then
28417 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28422 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28423 if ${gcc_cv_as_line_zero+:} false; then :
28424 $as_echo_n "(cached) " >&6
28425 else
28426 gcc_cv_as_line_zero=no
28427 if test $in_tree_gas = yes; then
28428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28429 then gcc_cv_as_line_zero=yes
28431 elif test "x$gcc_cv_as" != x; then
28432 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28433 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28435 (eval $ac_try) 2>&5
28436 ac_status=$?
28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28438 test $ac_status = 0; }; } &&
28439 test "x`cat conftest.out`" = x
28440 then
28441 gcc_cv_as_line_zero=yes
28442 else
28443 echo "configure: failed program was" >&5
28444 cat conftest.s >&5
28445 echo "configure: error output was" >&5
28446 cat conftest.out >&5
28448 rm -f conftest.o conftest.s conftest.out
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28452 $as_echo "$gcc_cv_as_line_zero" >&6; }
28453 if test "x$gcc_cv_as_line_zero" = xyes; then
28455 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28460 $as_echo_n "checking support for thin archives... " >&6; }
28461 thin_archive_support=no
28462 echo 'int main (void) { return 0; }' > conftest.c
28463 if ($AR --version | sed 1q | grep "GNU ar" \
28464 && $CC $CFLAGS -c conftest.c \
28465 && $AR rcT conftest.a conftest.o \
28466 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28467 thin_archive_support=yes
28469 rm -f conftest.c conftest.o conftest.a conftest
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28471 $as_echo "$thin_archive_support" >&6; }
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28475 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28476 gcc_cv_ld_eh_frame_hdr=no
28477 if test $in_tree_ld = yes ; then
28478 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 \
28479 && test $in_tree_ld_is_elf = yes; then
28480 gcc_cv_ld_eh_frame_hdr=yes
28482 elif test x$gcc_cv_ld != x; then
28483 if echo "$ld_ver" | grep GNU > /dev/null; then
28484 # Check if linker supports --eh-frame-hdr option
28485 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28486 gcc_cv_ld_eh_frame_hdr=yes
28488 else
28489 case "$target" in
28490 *-*-solaris2*)
28491 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28492 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28493 gcc_cv_ld_eh_frame_hdr=yes
28496 esac
28500 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28502 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28506 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28509 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28510 gcc_cv_ld_eh_frame_ciev3=no
28511 if test $in_tree_ld = yes ; then
28512 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 \
28513 && test $in_tree_ld_is_elf = yes; then
28514 gcc_cv_ld_eh_frame_ciev3=yes
28516 elif test x$gcc_cv_ld != x; then
28517 if echo "$ld_ver" | grep GNU > /dev/null; then
28518 gcc_cv_ld_eh_frame_ciev3=yes
28519 if test 0"$ld_date" -lt 20040513; then
28520 if test -n "$ld_date"; then
28521 # If there was date string, but was earlier than 2004-05-13, fail
28522 gcc_cv_ld_eh_frame_ciev3=no
28523 elif test "$ld_vers_major" -lt 2; then
28524 gcc_cv_ld_eh_frame_ciev3=no
28525 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28526 gcc_cv_ld_eh_frame_ciev3=no
28529 else
28530 case "$target" in
28531 *-*-solaris2*)
28532 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28533 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28534 gcc_cv_ld_eh_frame_ciev3=yes
28537 esac
28541 cat >>confdefs.h <<_ACEOF
28542 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28543 _ACEOF
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28546 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28549 $as_echo_n "checking linker position independent executable support... " >&6; }
28550 gcc_cv_ld_pie=no
28551 if test $in_tree_ld = yes ; then
28552 case "$target" in
28553 # Full PIE support on Solaris was only introduced in gld 2.26.
28554 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28555 *) gcc_gld_pie_min_version=15 ;;
28556 esac
28557 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28558 && test $in_tree_ld_is_elf = yes; then
28559 gcc_cv_ld_pie=yes
28561 elif test x$gcc_cv_ld != x; then
28562 # Check if linker supports -pie option
28563 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28564 gcc_cv_ld_pie=yes
28565 case "$target" in
28566 *-*-solaris2*)
28567 if echo "$ld_ver" | grep GNU > /dev/null \
28568 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28569 gcc_cv_ld_pie=no
28572 esac
28573 else
28574 case "$target" in
28575 *-*-solaris2.1[1-9]*)
28576 # Solaris 11.3 added PIE support.
28577 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28578 gcc_cv_ld_pie=yes
28581 esac
28584 if test x"$gcc_cv_ld_pie" = xyes; then
28586 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28590 $as_echo "$gcc_cv_ld_pie" >&6; }
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28593 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28594 gcc_cv_ld_pie_copyreloc=no
28595 if test $gcc_cv_ld_pie = yes ; then
28596 if test $in_tree_ld = yes ; then
28597 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
28598 gcc_cv_ld_pie_copyreloc=yes
28600 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28601 # Check if linker supports -pie option with copy reloc
28602 case "$target" in
28603 i?86-*-linux* | x86_64-*-linux*)
28604 cat > conftest1.s <<EOF
28605 .globl a_glob
28606 .data
28607 .type a_glob, @object
28608 .size a_glob, 4
28609 a_glob:
28610 .long 2
28612 cat > conftest2.s <<EOF
28613 .text
28614 .globl main
28615 .type main, @function
28616 main:
28617 movl %eax, a_glob(%rip)
28618 .size main, .-main
28619 .globl ptr
28620 .section .data.rel,"aw",@progbits
28621 .type ptr, @object
28622 ptr:
28623 .quad a_glob
28625 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28626 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28627 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28628 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28629 gcc_cv_ld_pie_copyreloc=yes
28631 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28633 esac
28637 cat >>confdefs.h <<_ACEOF
28638 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28639 _ACEOF
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28642 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28645 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28646 gcc_cv_ld_eh_gc_sections=no
28647 if test $in_tree_ld = yes ; then
28648 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 \
28649 && test $in_tree_ld_is_elf = yes; then
28650 gcc_cv_ld_eh_gc_sections=yes
28652 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28653 cat > conftest.s <<EOF
28654 .section .text
28655 .globl _start
28656 .type _start, @function
28657 _start:
28658 .long foo
28659 .size _start, .-_start
28660 .section .text.foo,"ax",@progbits
28661 .type foo, @function
28662 foo:
28663 .long 0
28664 .size foo, .-foo
28665 .section .gcc_except_table.foo,"a",@progbits
28666 .L0:
28667 .long 0
28668 .section .eh_frame,"a",@progbits
28669 .long .L0
28671 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28672 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28673 | grep "gc-sections option ignored" > /dev/null; then
28674 gcc_cv_ld_eh_gc_sections=no
28675 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28676 | grep gcc_except_table > /dev/null; then
28677 gcc_cv_ld_eh_gc_sections=yes
28678 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28679 if test x$gcc_cv_as_comdat_group != xyes; then
28680 gcc_cv_ld_eh_gc_sections=no
28681 cat > conftest.s <<EOF
28682 .section .text
28683 .globl _start
28684 .type _start, @function
28685 _start:
28686 .long foo
28687 .size _start, .-_start
28688 .section .gnu.linkonce.t.foo,"ax",@progbits
28689 .type foo, @function
28690 foo:
28691 .long 0
28692 .size foo, .-foo
28693 .section .gcc_except_table.foo,"a",@progbits
28694 .L0:
28695 .long 0
28696 .section .eh_frame,"a",@progbits
28697 .long .L0
28699 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28700 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28701 | grep "gc-sections option ignored" > /dev/null; then
28702 gcc_cv_ld_eh_gc_sections=no
28703 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28704 | grep gcc_except_table > /dev/null; then
28705 gcc_cv_ld_eh_gc_sections=yes
28711 rm -f conftest.s conftest.o conftest
28713 case "$target" in
28714 hppa*-*-linux*)
28715 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28716 gcc_cv_ld_eh_gc_sections=no
28718 esac
28719 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28721 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28725 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28728 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28729 gcc_cv_ld_eh_gc_sections_bug=no
28730 if test $in_tree_ld = yes ; then
28731 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 \
28732 && test $in_tree_ld_is_elf = yes; then
28733 gcc_cv_ld_eh_gc_sections_bug=yes
28735 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
28736 gcc_cv_ld_eh_gc_sections_bug=yes
28737 cat > conftest.s <<EOF
28738 .section .text
28739 .globl _start
28740 .type _start, @function
28741 _start:
28742 .long foo
28743 .size _start, .-_start
28744 .section .text.startup.foo,"ax",@progbits
28745 .type foo, @function
28746 foo:
28747 .long 0
28748 .size foo, .-foo
28749 .section .gcc_except_table.foo,"a",@progbits
28750 .L0:
28751 .long 0
28752 .section .eh_frame,"a",@progbits
28753 .long .L0
28755 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28756 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28757 | grep "gc-sections option ignored" > /dev/null; then
28759 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28760 | grep gcc_except_table > /dev/null; then
28761 gcc_cv_ld_eh_gc_sections_bug=no
28764 rm -f conftest.s conftest.o conftest
28766 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28768 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28772 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28775 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28776 # gold/gld support compressed debug sections since binutils 2.19/2.21
28777 # In binutils 2.26, gld gained support for the ELF gABI format.
28778 if test $in_tree_ld = yes ; then
28779 gcc_cv_ld_compress_debug=0
28780 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 \
28781 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28782 gcc_cv_ld_compress_debug=2
28783 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28784 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28785 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28786 gcc_cv_ld_compress_debug=3
28787 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28788 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 \
28789 && test $in_tree_ld_is_elf = yes; then
28790 gcc_cv_ld_compress_debug=1
28792 elif echo "$ld_ver" | grep GNU > /dev/null; then
28793 if test "$ld_vers_major" -lt 2 \
28794 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28795 gcc_cv_ld_compress_debug=0
28796 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28797 gcc_cv_ld_compress_debug=1
28798 else
28799 gcc_cv_ld_compress_debug=3
28800 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28802 if test $ld_is_gold = yes; then
28803 gcc_cv_ld_compress_debug=2
28804 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28806 else
28807 case "${target}" in
28808 *-*-solaris2*)
28809 # Introduced in Solaris 11.2.
28810 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28811 gcc_cv_ld_compress_debug=3
28812 gcc_cv_ld_compress_debug_option="-z compress-sections"
28813 else
28814 gcc_cv_ld_compress_debug=0
28818 # Assume linkers other than GNU ld don't support compessed debug
28819 # sections.
28820 gcc_cv_ld_compress_debug=0
28822 esac
28825 cat >>confdefs.h <<_ACEOF
28826 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28827 _ACEOF
28830 cat >>confdefs.h <<_ACEOF
28831 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28832 _ACEOF
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28835 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28837 if test x"$ld64_flag" = x"yes"; then
28839 # Set defaults for possibly untestable items.
28840 gcc_cv_ld64_export_dynamic=0
28842 if test "$build" = "$host"; then
28843 darwin_try_test=1
28844 else
28845 darwin_try_test=0
28848 # On Darwin, because of FAT library support, it is often possible to execute
28849 # exes from compatible archs even when the host differs from the build system.
28850 case "$build","$host" in
28851 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28852 darwin_try_test=1;;
28853 *) ;;
28854 esac
28856 # If the configurer specified a minimum ld64 version to be supported, then use
28857 # that to determine feature support.
28858 if test x"${gcc_cv_ld64_version}" != x; then
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28860 $as_echo_n "checking ld64 specified version... " >&6; }
28861 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28863 $as_echo "$gcc_cv_ld64_major" >&6; }
28864 if test "$gcc_cv_ld64_major" -ge 236; then
28865 gcc_cv_ld64_export_dynamic=1
28867 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28868 # If the version was not specified, try to find it.
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28870 $as_echo_n "checking linker version... " >&6; }
28871 if test x"${gcc_cv_ld64_version}" = x; then
28872 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28875 $as_echo "$gcc_cv_ld64_version" >&6; }
28877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28878 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28879 gcc_cv_ld64_export_dynamic=1
28880 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28881 gcc_cv_ld64_export_dynamic=0
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28884 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28887 if test x"${gcc_cv_ld64_version}" != x; then
28889 cat >>confdefs.h <<_ACEOF
28890 #define LD64_VERSION "${gcc_cv_ld64_version}"
28891 _ACEOF
28896 cat >>confdefs.h <<_ACEOF
28897 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28898 _ACEOF
28902 # --------
28903 # UNSORTED
28904 # --------
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28907 $as_echo_n "checking linker --as-needed support... " >&6; }
28908 if ${gcc_cv_ld_as_needed+:} false; then :
28909 $as_echo_n "(cached) " >&6
28910 else
28911 gcc_cv_ld_as_needed=no
28912 gcc_cv_ld_as_needed_option='--as-needed'
28913 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28914 if test $in_tree_ld = yes ; then
28915 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 \
28916 && test $in_tree_ld_is_elf = yes; then
28917 gcc_cv_ld_as_needed=yes
28918 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28919 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28920 gcc_cv_ld_no_as_needed_option='--pop-state'
28923 elif test x$gcc_cv_ld != x; then
28924 # Check if linker supports --as-needed and --no-as-needed options
28925 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28926 gcc_cv_ld_as_needed=yes
28927 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28928 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28929 && echo "$ld_ver" | grep GNU > /dev/null \
28930 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28931 # Use these options only when both ld.bfd and ld.gold support
28932 # --push-state/--pop-state, which unfortunately wasn't added
28933 # at the same time.
28934 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28935 gcc_cv_ld_no_as_needed_option='--pop-state'
28938 case "$target:$gnu_ld" in
28939 *-*-solaris2*:no)
28940 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28941 # forms.
28942 gcc_cv_ld_as_needed=yes
28943 gcc_cv_ld_as_needed_option="-z ignore"
28944 gcc_cv_ld_no_as_needed_option="-z record"
28946 esac
28948 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28949 # dl_iterate_phdr, i.e. since Solaris 11.
28950 case "$target" in
28951 *-*-solaris2.1[1-9]*)
28952 case "$target" in
28953 i?86-*-* | x86_64-*-*)
28954 if echo "$ld_ver" | grep GNU > /dev/null; then
28955 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28956 gcc_cv_ld_as_needed=no
28959 esac
28961 *-*-solaris2*)
28962 gcc_cv_ld_as_needed=no
28964 esac
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28968 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28969 if test x"$gcc_cv_ld_as_needed" = xyes; then
28971 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28974 cat >>confdefs.h <<_ACEOF
28975 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28976 _ACEOF
28979 cat >>confdefs.h <<_ACEOF
28980 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28981 _ACEOF
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28986 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28987 saved_LDFLAGS="$LDFLAGS"
28988 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28989 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28991 /* end confdefs.h. */
28992 int main(void) {return 0;}
28993 _ACEOF
28994 if ac_fn_cxx_try_link "$LINENO"; then :
28995 gcc_cv_ld_clearcap=yes; break
28996 else
28997 gcc_cv_ld_clearcap=no
28999 rm -f core conftest.err conftest.$ac_objext \
29000 conftest$ac_exeext conftest.$ac_ext
29001 done
29002 LDFLAGS="$saved_LDFLAGS"
29003 if test "x$gcc_cv_ld_clearcap" = xyes; then
29005 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29007 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29011 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29013 case "$target" in
29014 powerpc*-*-*)
29015 case "$target" in
29016 *le-*-linux*)
29017 emul_name="-melf32lppc"
29020 emul_name="-melf32ppc"
29022 esac
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29024 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29025 if ${gcc_cv_ld_ppc_attr+:} false; then :
29026 $as_echo_n "(cached) " >&6
29027 else
29028 gcc_cv_ld_ppc_attr=no
29029 if test x"$ld_is_gold" = xyes; then
29030 gcc_cv_ld_ppc_attr=yes
29031 elif test $in_tree_ld = yes ; then
29032 if test "$gcc_cv_gld_major_version" -eq 2 \
29033 -a "$gcc_cv_gld_minor_version" -ge 28 \
29034 -o "$gcc_cv_gld_major_version" -gt 2; then
29035 gcc_cv_ld_ppc_attr=yes
29037 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29038 # check that merging the long double .gnu_attribute doesn't warn
29039 cat > conftest1.s <<EOF
29040 .gnu_attribute 4,1
29042 cat > conftest2.s <<EOF
29043 .gnu_attribute 4,9
29045 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29046 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29047 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29048 && test ! -s conftest.err; then
29049 gcc_cv_ld_ppc_attr=yes
29051 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29056 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29057 if test x$gcc_cv_ld_ppc_attr = xyes; then
29059 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29063 esac
29065 case "$target:$tm_file" in
29066 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29067 case "$target" in
29068 *le-*-linux*)
29069 emul_name="-melf64lppc"
29071 *-*-linux*)
29072 emul_name="-melf64ppc"
29074 *-*-freebsd*)
29075 emul_name="-melf64ppc_fbsd"
29077 esac
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29079 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29080 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29081 $as_echo_n "(cached) " >&6
29082 else
29083 gcc_cv_ld_no_dot_syms=no
29084 if test x"$ld_is_gold" = xyes; then
29085 gcc_cv_ld_no_dot_syms=yes
29086 elif test $in_tree_ld = yes ; then
29087 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
29088 gcc_cv_ld_no_dot_syms=yes
29090 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29091 cat > conftest1.s <<EOF
29092 .text
29093 bl .foo
29095 cat > conftest2.s <<EOF
29096 .section ".opd","aw"
29097 .align 3
29098 .globl foo
29099 .type foo,@function
29100 foo:
29101 .quad .LEfoo,.TOC.@tocbase,0
29102 .text
29103 .LEfoo:
29105 .size foo,.-.LEfoo
29107 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29108 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29109 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29110 gcc_cv_ld_no_dot_syms=yes
29112 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29117 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29118 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29120 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29125 $as_echo_n "checking linker large toc support... " >&6; }
29126 if ${gcc_cv_ld_large_toc+:} false; then :
29127 $as_echo_n "(cached) " >&6
29128 else
29129 gcc_cv_ld_large_toc=no
29130 if test x"$ld_is_gold" = xyes; then
29131 gcc_cv_ld_large_toc=yes
29132 elif test $in_tree_ld = yes ; then
29133 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
29134 gcc_cv_ld_large_toc=yes
29136 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29137 cat > conftest.s <<EOF
29138 .section ".tbss","awT",@nobits
29139 .align 3
29140 ie0: .space 8
29141 .global _start
29142 .text
29143 _start:
29144 addis 9,13,ie0@got@tprel@ha
29145 ld 9,ie0@got@tprel@l(9)
29147 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29148 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29149 gcc_cv_ld_large_toc=yes
29151 rm -f conftest conftest.o conftest.s
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29156 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29157 if test x"$gcc_cv_ld_large_toc" = xyes; then
29159 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29164 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29165 if ${gcc_cv_ld_toc_align+:} false; then :
29166 $as_echo_n "(cached) " >&6
29167 else
29168 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29169 cat > conftest.s <<EOF
29170 .global _start
29171 .text
29172 _start:
29173 addis 9,2,x@got@ha
29174 .section .data.rel.ro,"aw",@progbits
29175 .p2align 16
29176 .space 32768
29177 x: .quad .TOC.
29179 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29180 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29181 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)) }'`
29183 rm -f conftest conftest.o conftest.s
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29188 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29189 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29191 cat >>confdefs.h <<_ACEOF
29192 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29193 _ACEOF
29197 esac
29199 case "$target" in
29200 *-*-aix*)
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29202 $as_echo_n "checking linker large toc support... " >&6; }
29203 if ${gcc_cv_ld_large_toc+:} false; then :
29204 $as_echo_n "(cached) " >&6
29205 else
29206 gcc_cv_ld_large_toc=no
29207 if test x$gcc_cv_as != x ; then
29208 cat > conftest.s <<EOF
29209 .toc
29210 LC..1:
29211 .tc a[TC],a[RW]
29212 .extern a[RW]
29213 .csect .text[PR]
29214 .largetoctest:
29215 addis 9,LC..1@u(2)
29216 ld 3,LC..1@l(9)
29218 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29219 gcc_cv_ld_large_toc=yes
29221 rm -f conftest conftest.o conftest.s
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29226 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29227 if test x"$gcc_cv_ld_large_toc" = xyes; then
29229 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29233 esac
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29236 $as_echo_n "checking linker --build-id support... " >&6; }
29237 if ${gcc_cv_ld_buildid+:} false; then :
29238 $as_echo_n "(cached) " >&6
29239 else
29240 gcc_cv_ld_buildid=no
29241 if test $in_tree_ld = yes ; then
29242 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29243 "$gcc_cv_gld_minor_version" -ge 18 -o \
29244 "$gcc_cv_gld_major_version" -gt 2 \
29245 && test $in_tree_ld_is_elf = yes; then
29246 gcc_cv_ld_buildid=yes
29248 elif test x$gcc_cv_ld != x; then
29249 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29250 gcc_cv_ld_buildid=yes
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29255 $as_echo "$gcc_cv_ld_buildid" >&6; }
29256 if test x"$gcc_cv_ld_buildid" = xyes; then
29258 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29262 # Check whether --enable-linker-build-id was given.
29263 if test "${enable_linker_build_id+set}" = set; then :
29264 enableval=$enable_linker_build_id;
29265 else
29266 enable_linker_build_id=no
29270 if test x"$enable_linker_build_id" = xyes; then
29271 if test x"$gcc_cv_ld_buildid" = xyes; then
29273 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29275 else
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29277 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29281 # In binutils 2.21, GNU ld gained support for new emulations fully
29282 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29284 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29285 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29286 $as_echo_n "(cached) " >&6
29287 else
29288 gcc_cv_ld_sol2_emulation=no
29289 if test $in_tree_ld = yes ; then
29290 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29291 "$gcc_cv_gld_minor_version" -ge 21 -o \
29292 "$gcc_cv_gld_major_version" -gt 2 \
29293 && test $in_tree_ld_is_elf = yes; then
29294 gcc_cv_ld_sol2_emulation=yes
29296 elif test x$gcc_cv_ld != x; then
29297 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29298 grep _sol2 > /dev/null; then
29299 gcc_cv_ld_sol2_emulation=yes
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29304 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29305 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29307 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29312 $as_echo_n "checking linker --sysroot support... " >&6; }
29313 if ${gcc_cv_ld_sysroot+:} false; then :
29314 $as_echo_n "(cached) " >&6
29315 else
29316 gcc_cv_ld_sysroot=no
29317 if test $in_tree_ld = yes ; then
29318 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
29319 gcc_cv_ld_sysroot=yes
29321 elif test x$gcc_cv_ld != x; then
29322 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29323 gcc_cv_ld_sysroot=yes
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29328 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29329 if test x"$gcc_cv_ld_sysroot" = xyes; then
29331 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29335 case $target in
29336 *-*-solaris2*)
29337 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29339 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29340 if ${gcc_cv_solaris_crts+:} false; then :
29341 $as_echo_n "(cached) " >&6
29342 else
29343 gcc_cv_solaris_crts=no
29344 if test x$host != x$target; then
29345 if test "x$with_sysroot" = xyes; then
29346 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29347 else
29348 target_sysroot="${with_sysroot}"
29351 target_libdir="$target_sysroot/usr/lib"
29352 # At the time they were added, gcrt1.o became a symlink for backwards
29353 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29354 case $target in
29355 i?86-*-solaris2* | x86_64-*-solaris2*)
29356 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29358 sparc*-*-solaris2*)
29359 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29361 esac
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29364 $as_echo "$gcc_cv_solaris_crts" >&6; }
29366 esac
29367 if test x$gcc_cv_solaris_crts = xyes; then
29369 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29373 # Check whether --enable-libssp was given.
29374 if test "${enable_libssp+set}" = set; then :
29375 enableval=$enable_libssp; case "${enableval}" in
29376 yes|no)
29379 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29381 esac
29385 # Test for stack protector support in target C library.
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29387 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29388 if ${gcc_cv_libc_provides_ssp+:} false; then :
29389 $as_echo_n "(cached) " >&6
29390 else
29391 gcc_cv_libc_provides_ssp=no
29392 if test "x$enable_libssp" = "xno"; then
29393 gcc_cv_libc_provides_ssp=yes
29394 elif test "x$enable_libssp" = "xyes"; then
29395 gcc_cv_libc_provides_ssp=no
29396 else
29397 case "$target" in
29398 *-*-musl*)
29399 # All versions of musl provide stack protector
29400 gcc_cv_libc_provides_ssp=yes;;
29401 *-*-linux* | *-*-kfreebsd*-gnu)
29402 # glibc 2.4 and later provides __stack_chk_fail and
29403 # either __stack_chk_guard, or TLS access to stack guard canary.
29405 if test $glibc_version_major -gt 2 \
29406 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29407 gcc_cv_libc_provides_ssp=yes
29408 else
29410 if test -f $target_header_dir/features.h \
29411 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29412 $target_header_dir/features.h > /dev/null; then
29413 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29414 $target_header_dir/features.h > /dev/null && \
29415 test -f $target_header_dir/bits/uClibc_config.h && \
29416 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29417 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29418 gcc_cv_libc_provides_ssp=yes
29420 # all versions of Bionic support stack protector
29421 elif test -f $target_header_dir/sys/cdefs.h \
29422 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29423 $target_header_dir/sys/cdefs.h > /dev/null; then
29424 gcc_cv_libc_provides_ssp=yes
29428 *-*-gnu*)
29429 # Avoid complicated tests (see
29430 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29431 # simply assert that glibc does provide this, which is true for all
29432 # realistically usable GNU/Hurd configurations.
29433 # All supported versions of musl provide it as well
29434 gcc_cv_libc_provides_ssp=yes;;
29435 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29436 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29437 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29438 gcc_cv_libc_provides_ssp=yes
29439 else
29440 echo "no __stack_chk_fail on this target"
29444 *) gcc_cv_libc_provides_ssp=no ;;
29445 esac
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29449 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29451 if test x$gcc_cv_libc_provides_ssp = xyes; then
29453 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29457 # Check whether --enable-default-ssp was given.
29458 # Check whether --enable-default-ssp was given.
29459 if test "${enable_default_ssp+set}" = set; then :
29460 enableval=$enable_default_ssp;
29461 if test x$gcc_cv_libc_provides_ssp = xyes; then
29462 case "$target" in
29463 ia64*-*-*) enable_default_ssp=no ;;
29464 *) enable_default_ssp=$enableval ;;
29465 esac
29466 else
29467 enable_default_ssp=no
29469 else
29470 enable_default_ssp=no
29473 if test x$enable_default_ssp = xyes ; then
29475 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29480 # Test for <sys/sdt.h> on the target.
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29483 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29484 have_sys_sdt_h=no
29485 if test -f $target_header_dir/sys/sdt.h; then
29486 have_sys_sdt_h=yes
29488 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29492 $as_echo "$have_sys_sdt_h" >&6; }
29494 # Check if TFmode long double should be used by default or not.
29495 # Some glibc targets used DFmode long double, but with glibc 2.4
29496 # and later they can use TFmode.
29497 case "$target" in
29498 powerpc*-*-linux* | \
29499 sparc*-*-linux* | \
29500 s390*-*-linux* | \
29501 alpha*-*-linux*)
29503 # Check whether --with-long-double-128 was given.
29504 if test "${with_long_double_128+set}" = set; then :
29505 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29506 else
29508 if test $glibc_version_major -gt 2 \
29509 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29510 gcc_cv_target_ldbl128=yes
29511 else
29513 gcc_cv_target_ldbl128=no
29514 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29515 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29516 && gcc_cv_target_ldbl128=yes
29522 esac
29523 if test x$gcc_cv_target_ldbl128 = xyes; then
29525 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29529 # Check if TFmode long double target should use the IBM extended double or IEEE
29530 # 128-bit floating point formats if long doubles are 128-bits long. The long
29531 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29532 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29533 # libgcc.
29535 # Check whether --with-long-double-format was given.
29536 if test "${with_long_double_format+set}" = set; then :
29537 withval=$with_long_double_format;
29538 case "$target:$with_long_double_format" in
29539 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29542 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29543 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29544 case "$with_cpu" in
29545 power7 | power8 | power9 | power1*)
29549 as_fn_error $? "Configuration option --with-long-double-format is only \
29550 supported if the default cpu is power7 or newer" "$LINENO" 5
29551 with_long_double_format=""
29553 esac
29555 xpowerpc64*-*-linux*:*)
29556 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29557 with_long_double_format=""
29560 as_fn_error $? "Configure option --with-long-double-format is only supported \
29561 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29562 with_long_double_format=""
29564 esac
29568 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29569 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29570 gcc_cv_libc_provides_hwcap_in_tcb=no
29571 case "$target" in
29572 powerpc*-*-linux*)
29574 if test $glibc_version_major -gt 2 \
29575 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29576 gcc_cv_libc_provides_hwcap_in_tcb=yes
29579 esac
29580 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29582 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29587 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29588 gcc_cv_target_dl_iterate_phdr=unknown
29589 case "$target" in
29590 *-*-solaris2*)
29591 # <link.h> needs both a dl_iterate_phdr declaration and support for
29592 # compilation with largefile support.
29593 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29594 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29595 gcc_cv_target_dl_iterate_phdr=yes
29596 else
29597 gcc_cv_target_dl_iterate_phdr=no
29600 *-*-dragonfly* | *-*-freebsd*)
29601 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29602 gcc_cv_target_dl_iterate_phdr=yes
29603 else
29604 gcc_cv_target_dl_iterate_phdr=no
29607 *-linux-musl*)
29608 gcc_cv_target_dl_iterate_phdr=yes
29610 esac
29612 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29614 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29618 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29620 # We no longer support different GC mechanisms. Emit an error if
29621 # the user configures with --with-gc.
29623 # Check whether --with-gc was given.
29624 if test "${with_gc+set}" = set; then :
29625 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29629 # Libraries to use on the host. This will normally be set by the top
29630 # level Makefile. Here we simply capture the value for our Makefile.
29631 if test -z "${HOST_LIBS+set}"; then
29632 HOST_LIBS=
29636 # Use the system's zlib library.
29638 # Use the system's zlib library.
29639 zlibdir="-L\$(top_builddir)/../zlib"
29640 zlibinc="-I\$(top_srcdir)/../zlib"
29642 # Check whether --with-system-zlib was given.
29643 if test "${with_system_zlib+set}" = set; then :
29644 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29645 zlibdir=
29646 zlibinc=
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29658 # Check whether --enable-maintainer-mode was given.
29659 if test "${enable_maintainer_mode+set}" = set; then :
29660 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29661 else
29662 maintainer_mode=no
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29667 $as_echo "$maintainer_mode" >&6; }
29669 if test "$maintainer_mode" = "yes"; then
29670 MAINT=''
29671 else
29672 MAINT='#'
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29677 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29678 # Check whether --enable-link-mutex was given.
29679 if test "${enable_link_mutex+set}" = set; then :
29680 enableval=$enable_link_mutex; do_link_mutex=$enableval
29681 else
29682 do_link_mutex=no
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29686 $as_echo "$do_link_mutex" >&6; }
29688 if test "$do_link_mutex" = "yes"; then
29689 DO_LINK_MUTEX=true
29690 else
29691 DO_LINK_MUTEX=false
29695 # --------------
29696 # Language hooks
29697 # --------------
29699 # Make empty files to contain the specs and options for each language.
29700 # Then add #include lines to for a compiler that has specs and/or options.
29702 subdirs=
29703 lang_opt_files=
29704 lang_specs_files=
29705 lang_tree_files=
29706 # These (without "all_") are set in each config-lang.in.
29707 # `language' must be a single word so is spelled singularly.
29708 all_languages=
29709 all_compilers=
29710 all_outputs='Makefile'
29711 # List of language makefile fragments.
29712 all_lang_makefrags=
29713 # Additional files for gengtype
29714 all_gtfiles="$target_gtfiles"
29716 # These are the languages that are set in --enable-languages,
29717 # and are available in the GCC tree.
29718 all_selected_languages=
29720 # Add the language fragments.
29721 # Languages are added via two mechanisms. Some information must be
29722 # recorded in makefile variables, these are defined in config-lang.in.
29723 # We accumulate them and plug them into the main Makefile.
29724 # The other mechanism is a set of hooks for each of the main targets
29725 # like `clean', `install', etc.
29727 language_hooks="Make-hooks"
29729 for lang in ${srcdir}/*/config-lang.in
29731 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29733 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29734 if test "x$lang_alias" = x
29735 then
29736 echo "$lang doesn't set \$language." 1>&2
29737 exit 1
29739 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29740 subdirs="$subdirs $subdir"
29742 # $gcc_subdir is where the gcc integration files are to be found
29743 # for a language, both for internal compiler purposes (compiler
29744 # sources implementing front-end to GCC tree converters), and for
29745 # build infrastructure purposes (Make-lang.in, etc.)
29747 # This will be <subdir> (relative to $srcdir) if a line like
29748 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29749 # is found in <langdir>/config-lang.in, and will remain <langdir>
29750 # otherwise.
29752 # Except for the language alias (fetched above), the regular
29753 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29754 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29755 # only this and the language alias.
29757 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29758 if [ "$gcc_subdir" = "" ]; then
29759 gcc_subdir="$subdir"
29762 case ",$enable_languages," in
29763 *,$lang_alias,*)
29764 all_selected_languages="$all_selected_languages $lang_alias"
29765 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29766 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29769 esac
29771 language=
29772 boot_language=
29773 compilers=
29774 outputs=
29775 gtfiles=
29776 subdir_requires=
29777 . ${srcdir}/$gcc_subdir/config-lang.in
29778 if test "x$language" = x
29779 then
29780 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29781 exit 1
29784 ok=:
29785 case ",$enable_languages," in
29786 *,$lang_alias,*) ;;
29788 for i in $subdir_requires; do
29789 test -f "${srcdir}/$i/config-lang.in" && continue
29790 ok=false
29791 break
29792 done
29794 esac
29795 $ok || continue
29797 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29798 if test -f $srcdir/$gcc_subdir/lang.opt; then
29799 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29800 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29802 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29803 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29805 all_languages="$all_languages $language"
29806 all_compilers="$all_compilers $compilers"
29807 all_outputs="$all_outputs $outputs"
29808 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29809 case ",$enable_languages," in
29810 *,lto,*)
29812 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29814 enable_lto=yes
29817 *) ;;
29818 esac
29819 done
29821 check_languages=
29822 for language in $all_selected_languages
29824 check_languages="$check_languages check-$language"
29825 done
29827 selftest_languages=
29828 for language in $all_selected_languages
29830 selftest_languages="$selftest_languages selftest-$language"
29831 done
29833 # We link each language in with a set of hooks, reached indirectly via
29834 # lang.${target}. Only do so for selected languages.
29836 rm -f Make-hooks
29837 touch Make-hooks
29838 target_list="all.cross start.encap rest.encap tags \
29839 install-common install-man install-info install-pdf install-html dvi \
29840 pdf html uninstall info man srcextra srcman srcinfo \
29841 mostlyclean clean distclean maintainer-clean install-plugin"
29843 for t in $target_list
29846 for lang in $all_selected_languages
29848 x="$x $lang.$t"
29849 done
29850 echo "lang.$t: $x" >> Make-hooks
29851 done
29853 # --------
29854 # Option include files
29855 # --------
29857 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29858 option_includes="option-includes.mk"
29861 # --------
29862 # UNSORTED
29863 # --------
29865 # Create .gdbinit.
29867 echo "dir ." > .gdbinit
29868 echo "dir ${srcdir}" >> .gdbinit
29869 if test x$gdb_needs_out_file_path = xyes
29870 then
29871 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29873 if test "x$subdirs" != x; then
29874 for s in $subdirs
29876 echo "dir ${srcdir}/$s" >> .gdbinit
29877 done
29879 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29880 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29882 # Put a breakpoint on __asan_report_error to help with debugging buffer
29883 # overflow.
29884 case "$CFLAGS" in
29885 *-fsanitize=address*)
29886 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29888 esac
29890 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29894 # Find a directory in which to install a shared libgcc.
29896 # Check whether --enable-version-specific-runtime-libs was given.
29897 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29898 enableval=$enable_version_specific_runtime_libs;
29902 # Substitute configuration variables
29969 # Echo link setup.
29970 if test x${build} = x${host} ; then
29971 if test x${host} = x${target} ; then
29972 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29973 else
29974 echo "Links are now set up to build a cross-compiler" 1>&2
29975 echo " from ${host} to ${target}." 1>&2
29977 else
29978 if test x${host} = x${target} ; then
29979 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29980 echo " for ${target}." 1>&2
29981 else
29982 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29983 echo " from ${host} to ${target}." 1>&2
29992 if test "x${ISLLIBS}" != "x" ; then
29994 $as_echo "#define HAVE_isl 1" >>confdefs.h
29998 # Check for plugin support
29999 # Check whether --enable-plugin was given.
30000 if test "${enable_plugin+set}" = set; then :
30001 enableval=$enable_plugin; enable_plugin=$enableval
30002 else
30003 enable_plugin=yes; default_plugin=yes
30007 pluginlibs=
30008 plugin_check=yes
30010 case "${host}" in
30011 *-*-mingw*)
30012 # Since plugin support under MinGW is not as straightforward as on
30013 # other platforms (e.g., we have to link import library, etc), we
30014 # only enable it if explicitly requested.
30015 if test x"$default_plugin" = x"yes"; then
30016 enable_plugin=no
30017 elif test x"$enable_plugin" = x"yes"; then
30018 # Use make's target variable to derive import library name.
30019 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30020 plugin_check=no
30023 *-*-darwin*)
30024 if test x$build = x$host; then
30025 export_sym_check="nm${exeext} -g"
30026 elif test x$host = x$target; then
30027 export_sym_check="$gcc_cv_nm -g"
30028 else
30029 export_sym_check=
30033 if test x$build = x$host; then
30034 export_sym_check="objdump${exeext} -T"
30035 elif test x$host = x$target; then
30036 export_sym_check="$gcc_cv_objdump -T"
30037 else
30038 export_sym_check=
30041 esac
30043 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30046 $as_echo_n "checking for exported symbols... " >&6; }
30047 if test "x$export_sym_check" != x; then
30048 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30049 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30050 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30051 : # No need to use a flag
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30053 $as_echo "yes" >&6; }
30054 else
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 $as_echo "yes" >&6; }
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30058 $as_echo_n "checking for -rdynamic... " >&6; }
30059 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30060 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30061 plugin_rdynamic=yes
30062 pluginlibs="-rdynamic"
30063 else
30064 plugin_rdynamic=no
30065 enable_plugin=no
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30068 $as_echo "$plugin_rdynamic" >&6; }
30070 else
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30072 $as_echo "unable to check" >&6; }
30075 # Check -ldl
30076 saved_LIBS="$LIBS"
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30078 $as_echo_n "checking for library containing dlopen... " >&6; }
30079 if ${ac_cv_search_dlopen+:} false; then :
30080 $as_echo_n "(cached) " >&6
30081 else
30082 ac_func_search_save_LIBS=$LIBS
30083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30084 /* end confdefs.h. */
30086 /* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30089 #ifdef __cplusplus
30090 extern "C"
30091 #endif
30092 char dlopen ();
30094 main ()
30096 return dlopen ();
30098 return 0;
30100 _ACEOF
30101 for ac_lib in '' dl; do
30102 if test -z "$ac_lib"; then
30103 ac_res="none required"
30104 else
30105 ac_res=-l$ac_lib
30106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30108 if ac_fn_cxx_try_link "$LINENO"; then :
30109 ac_cv_search_dlopen=$ac_res
30111 rm -f core conftest.err conftest.$ac_objext \
30112 conftest$ac_exeext
30113 if ${ac_cv_search_dlopen+:} false; then :
30114 break
30116 done
30117 if ${ac_cv_search_dlopen+:} false; then :
30119 else
30120 ac_cv_search_dlopen=no
30122 rm conftest.$ac_ext
30123 LIBS=$ac_func_search_save_LIBS
30125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30126 $as_echo "$ac_cv_search_dlopen" >&6; }
30127 ac_res=$ac_cv_search_dlopen
30128 if test "$ac_res" != no; then :
30129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30133 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30134 pluginlibs="$pluginlibs -ldl"
30136 LIBS="$saved_LIBS"
30138 # Check that we can build shared objects with -fPIC -shared
30139 saved_LDFLAGS="$LDFLAGS"
30140 saved_CFLAGS="$CFLAGS"
30141 case "${host}" in
30142 *-*-darwin*)
30143 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30144 CFLAGS="$CFLAGS -fPIC"
30145 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30148 CFLAGS="$CFLAGS -fPIC"
30149 LDFLAGS="$LDFLAGS -fPIC -shared"
30151 esac
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30153 $as_echo_n "checking for -fPIC -shared... " >&6; }
30154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30155 /* end confdefs.h. */
30156 extern int X;
30158 main ()
30160 return X == 0;
30162 return 0;
30164 _ACEOF
30165 if ac_fn_cxx_try_link "$LINENO"; then :
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30167 $as_echo "yes" >&6; }; have_pic_shared=yes
30168 else
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30170 $as_echo "no" >&6; }; have_pic_shared=no
30172 rm -f core conftest.err conftest.$ac_objext \
30173 conftest$ac_exeext conftest.$ac_ext
30174 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30175 pluginlibs=
30176 enable_plugin=no
30178 LDFLAGS="$saved_LDFLAGS"
30179 CFLAGS="$saved_CFLAGS"
30181 # If plugin support had been requested but not available, fail.
30182 if test x"$enable_plugin" = x"no" ; then
30183 if test x"$default_plugin" != x"yes"; then
30184 as_fn_error $? "
30185 Building GCC with plugin support requires a host that supports
30186 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30193 if test x"$enable_plugin" = x"yes"; then
30195 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30200 # Enable --enable-host-shared
30201 # Check whether --enable-host-shared was given.
30202 if test "${enable_host_shared+set}" = set; then :
30203 enableval=$enable_host_shared; PICFLAG=-fPIC
30204 else
30205 PICFLAG=
30212 # Check whether --enable-libquadmath-support was given.
30213 if test "${enable_libquadmath_support+set}" = set; then :
30214 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30215 else
30216 ENABLE_LIBQUADMATH_SUPPORT=yes
30219 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30221 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30226 # Specify what hash style to use by default.
30228 # Check whether --with-linker-hash-style was given.
30229 if test "${with_linker_hash_style+set}" = set; then :
30230 withval=$with_linker_hash_style; case x"$withval" in
30231 xsysv)
30232 LINKER_HASH_STYLE=sysv
30234 xgnu)
30235 LINKER_HASH_STYLE=gnu
30237 xboth)
30238 LINKER_HASH_STYLE=both
30241 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30243 esac
30244 else
30245 LINKER_HASH_STYLE=''
30248 if test x"${LINKER_HASH_STYLE}" != x; then
30250 cat >>confdefs.h <<_ACEOF
30251 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30252 _ACEOF
30256 # Specify what should be the default of -fdiagnostics-color option.
30258 # Check whether --with-diagnostics-color was given.
30259 if test "${with_diagnostics_color+set}" = set; then :
30260 withval=$with_diagnostics_color; case x"$withval" in
30261 xnever)
30262 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30264 xauto)
30265 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30267 xauto-if-env)
30268 DIAGNOSTICS_COLOR_DEFAULT=-1
30270 xalways)
30271 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30274 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30276 esac
30277 else
30278 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30282 cat >>confdefs.h <<_ACEOF
30283 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30284 _ACEOF
30287 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30288 # of jit/jit-playback.c.
30289 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30290 echo "gcc_driver_version: ${gcc_driver_version}"
30291 cat > gcc-driver-name.h <<EOF
30292 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30295 # Check whether --enable-default-pie was given.
30296 # Check whether --enable-default-pie was given.
30297 if test "${enable_default_pie+set}" = set; then :
30298 enableval=$enable_default_pie; enable_default_pie=$enableval
30299 else
30300 enable_default_pie=no
30303 if test x$enable_default_pie = xyes ; then
30305 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30310 # Check if -fno-PIE works.
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30312 $as_echo_n "checking for -fno-PIE option... " >&6; }
30313 if ${gcc_cv_c_no_fpie+:} false; then :
30314 $as_echo_n "(cached) " >&6
30315 else
30316 saved_CXXFLAGS="$CXXFLAGS"
30317 CXXFLAGS="$CXXFLAGS -fno-PIE"
30318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30319 /* end confdefs.h. */
30320 int main(void) {return 0;}
30321 _ACEOF
30322 if ac_fn_cxx_try_compile "$LINENO"; then :
30323 gcc_cv_c_no_fpie=yes
30324 else
30325 gcc_cv_c_no_fpie=no
30327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30328 CXXFLAGS="$saved_CXXFLAGS"
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30331 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30332 if test "$gcc_cv_c_no_fpie" = "yes"; then
30333 NO_PIE_CFLAGS="-fno-PIE"
30337 # Check if -no-pie works.
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30339 $as_echo_n "checking for -no-pie option... " >&6; }
30340 if ${gcc_cv_no_pie+:} false; then :
30341 $as_echo_n "(cached) " >&6
30342 else
30343 saved_LDFLAGS="$LDFLAGS"
30344 LDFLAGS="$LDFLAGS -no-pie"
30345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30346 /* end confdefs.h. */
30347 int main(void) {return 0;}
30348 _ACEOF
30349 if ac_fn_cxx_try_link "$LINENO"; then :
30350 gcc_cv_no_pie=yes
30351 else
30352 gcc_cv_no_pie=no
30354 rm -f core conftest.err conftest.$ac_objext \
30355 conftest$ac_exeext conftest.$ac_ext
30356 LDFLAGS="$saved_LDFLAGS"
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30359 $as_echo "$gcc_cv_no_pie" >&6; }
30360 if test "$gcc_cv_no_pie" = "yes"; then
30361 NO_PIE_FLAG="-no-pie"
30365 # Check linker supports '-z bndplt'
30366 ld_bndplt_support=no
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30368 $as_echo_n "checking linker -z bndplt option... " >&6; }
30369 if test x"$ld_is_gold" = xno; then
30370 if test $in_tree_ld = yes ; then
30371 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
30372 ld_bndplt_support=yes
30374 elif test x$gcc_cv_ld != x; then
30375 # Check if linker supports -a bndplt option
30376 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30377 ld_bndplt_support=yes
30381 if test x"$ld_bndplt_support" = xyes; then
30383 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30387 $as_echo "$ld_bndplt_support" >&6; }
30389 # Check linker supports '--push-state'/'--pop-state'
30390 ld_pushpopstate_support=no
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30392 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30393 if test x"$ld_is_gold" = xno; then
30394 if test $in_tree_ld = yes ; then
30395 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
30396 ld_pushpopstate_support=yes
30398 elif test x$gcc_cv_ld != x; then
30399 # Check if linker supports --push-state/--pop-state options
30400 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30401 ld_pushpopstate_support=yes
30405 if test x"$ld_pushpopstate_support" = xyes; then
30407 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30411 $as_echo "$ld_pushpopstate_support" >&6; }
30413 # Configure the subdirectories
30414 # AC_CONFIG_SUBDIRS($subdirs)
30416 # Create the Makefile
30417 # and configure language subdirectories
30418 ac_config_files="$ac_config_files $all_outputs"
30421 ac_config_commands="$ac_config_commands default"
30423 cat >confcache <<\_ACEOF
30424 # This file is a shell script that caches the results of configure
30425 # tests run on this system so they can be shared between configure
30426 # scripts and configure runs, see configure's option --config-cache.
30427 # It is not useful on other systems. If it contains results you don't
30428 # want to keep, you may remove or edit it.
30430 # config.status only pays attention to the cache file if you give it
30431 # the --recheck option to rerun configure.
30433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30435 # following values.
30437 _ACEOF
30439 # The following way of writing the cache mishandles newlines in values,
30440 # but we know of no workaround that is simple, portable, and efficient.
30441 # So, we kill variables containing newlines.
30442 # Ultrix sh set writes to stderr and can't be redirected directly,
30443 # and sets the high bit in the cache file unless we assign to the vars.
30445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30446 eval ac_val=\$$ac_var
30447 case $ac_val in #(
30448 *${as_nl}*)
30449 case $ac_var in #(
30450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30452 esac
30453 case $ac_var in #(
30454 _ | IFS | as_nl) ;; #(
30455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30456 *) { eval $ac_var=; unset $ac_var;} ;;
30457 esac ;;
30458 esac
30459 done
30461 (set) 2>&1 |
30462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30463 *${as_nl}ac_space=\ *)
30464 # `set' does not quote correctly, so add quotes: double-quote
30465 # substitution turns \\\\ into \\, and sed turns \\ into \.
30466 sed -n \
30467 "s/'/'\\\\''/g;
30468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30469 ;; #(
30471 # `set' quotes correctly as required by POSIX, so do not add quotes.
30472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30474 esac |
30475 sort
30477 sed '
30478 /^ac_cv_env_/b end
30479 t clear
30480 :clear
30481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30482 t end
30483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30484 :end' >>confcache
30485 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30486 if test -w "$cache_file"; then
30487 if test "x$cache_file" != "x/dev/null"; then
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30489 $as_echo "$as_me: updating cache $cache_file" >&6;}
30490 if test ! -f "$cache_file" || test -h "$cache_file"; then
30491 cat confcache >"$cache_file"
30492 else
30493 case $cache_file in #(
30494 */* | ?:*)
30495 mv -f confcache "$cache_file"$$ &&
30496 mv -f "$cache_file"$$ "$cache_file" ;; #(
30498 mv -f confcache "$cache_file" ;;
30499 esac
30502 else
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30504 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30507 rm -f confcache
30509 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30510 # Let make expand exec_prefix.
30511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30513 DEFS=-DHAVE_CONFIG_H
30515 ac_libobjs=
30516 ac_ltlibobjs=
30518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30519 # 1. Remove the extension, and $U if already installed.
30520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30523 # will be set to the directory where LIBOBJS objects are built.
30524 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30525 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30526 done
30527 LIBOBJS=$ac_libobjs
30529 LTLIBOBJS=$ac_ltlibobjs
30534 : "${CONFIG_STATUS=./config.status}"
30535 ac_write_fail=0
30536 ac_clean_files_save=$ac_clean_files
30537 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30539 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30540 as_write_fail=0
30541 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30542 #! $SHELL
30543 # Generated by $as_me.
30544 # Run this file to recreate the current configuration.
30545 # Compiler output produced by configure, useful for debugging
30546 # configure, is in config.log if it exists.
30548 debug=false
30549 ac_cs_recheck=false
30550 ac_cs_silent=false
30552 SHELL=\${CONFIG_SHELL-$SHELL}
30553 export SHELL
30554 _ASEOF
30555 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30556 ## -------------------- ##
30557 ## M4sh Initialization. ##
30558 ## -------------------- ##
30560 # Be more Bourne compatible
30561 DUALCASE=1; export DUALCASE # for MKS sh
30562 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30563 emulate sh
30564 NULLCMD=:
30565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30566 # is contrary to our usage. Disable this feature.
30567 alias -g '${1+"$@"}'='"$@"'
30568 setopt NO_GLOB_SUBST
30569 else
30570 case `(set -o) 2>/dev/null` in #(
30571 *posix*) :
30572 set -o posix ;; #(
30573 *) :
30575 esac
30579 as_nl='
30581 export as_nl
30582 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30583 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30584 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30586 # Prefer a ksh shell builtin over an external printf program on Solaris,
30587 # but without wasting forks for bash or zsh.
30588 if test -z "$BASH_VERSION$ZSH_VERSION" \
30589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30590 as_echo='print -r --'
30591 as_echo_n='print -rn --'
30592 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30593 as_echo='printf %s\n'
30594 as_echo_n='printf %s'
30595 else
30596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30598 as_echo_n='/usr/ucb/echo -n'
30599 else
30600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30601 as_echo_n_body='eval
30602 arg=$1;
30603 case $arg in #(
30604 *"$as_nl"*)
30605 expr "X$arg" : "X\\(.*\\)$as_nl";
30606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30607 esac;
30608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30610 export as_echo_n_body
30611 as_echo_n='sh -c $as_echo_n_body as_echo'
30613 export as_echo_body
30614 as_echo='sh -c $as_echo_body as_echo'
30617 # The user is always right.
30618 if test "${PATH_SEPARATOR+set}" != set; then
30619 PATH_SEPARATOR=:
30620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30622 PATH_SEPARATOR=';'
30627 # IFS
30628 # We need space, tab and new line, in precisely that order. Quoting is
30629 # there to prevent editors from complaining about space-tab.
30630 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30631 # splitting by setting IFS to empty value.)
30632 IFS=" "" $as_nl"
30634 # Find who we are. Look in the path if we contain no directory separator.
30635 as_myself=
30636 case $0 in #((
30637 *[\\/]* ) as_myself=$0 ;;
30638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30639 for as_dir in $PATH
30641 IFS=$as_save_IFS
30642 test -z "$as_dir" && as_dir=.
30643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30644 done
30645 IFS=$as_save_IFS
30648 esac
30649 # We did not find ourselves, most probably we were run as `sh COMMAND'
30650 # in which case we are not to be found in the path.
30651 if test "x$as_myself" = x; then
30652 as_myself=$0
30654 if test ! -f "$as_myself"; then
30655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30656 exit 1
30659 # Unset variables that we do not need and which cause bugs (e.g. in
30660 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30661 # suppresses any "Segmentation fault" message there. '((' could
30662 # trigger a bug in pdksh 5.2.14.
30663 for as_var in BASH_ENV ENV MAIL MAILPATH
30664 do eval test x\${$as_var+set} = xset \
30665 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30666 done
30667 PS1='$ '
30668 PS2='> '
30669 PS4='+ '
30671 # NLS nuisances.
30672 LC_ALL=C
30673 export LC_ALL
30674 LANGUAGE=C
30675 export LANGUAGE
30677 # CDPATH.
30678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30681 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30682 # ----------------------------------------
30683 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30684 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30685 # script with STATUS, using 1 if that was 0.
30686 as_fn_error ()
30688 as_status=$1; test $as_status -eq 0 && as_status=1
30689 if test "$4"; then
30690 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30693 $as_echo "$as_me: error: $2" >&2
30694 as_fn_exit $as_status
30695 } # as_fn_error
30698 # as_fn_set_status STATUS
30699 # -----------------------
30700 # Set $? to STATUS, without forking.
30701 as_fn_set_status ()
30703 return $1
30704 } # as_fn_set_status
30706 # as_fn_exit STATUS
30707 # -----------------
30708 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30709 as_fn_exit ()
30711 set +e
30712 as_fn_set_status $1
30713 exit $1
30714 } # as_fn_exit
30716 # as_fn_unset VAR
30717 # ---------------
30718 # Portably unset VAR.
30719 as_fn_unset ()
30721 { eval $1=; unset $1;}
30723 as_unset=as_fn_unset
30724 # as_fn_append VAR VALUE
30725 # ----------------------
30726 # Append the text in VALUE to the end of the definition contained in VAR. Take
30727 # advantage of any shell optimizations that allow amortized linear growth over
30728 # repeated appends, instead of the typical quadratic growth present in naive
30729 # implementations.
30730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30731 eval 'as_fn_append ()
30733 eval $1+=\$2
30735 else
30736 as_fn_append ()
30738 eval $1=\$$1\$2
30740 fi # as_fn_append
30742 # as_fn_arith ARG...
30743 # ------------------
30744 # Perform arithmetic evaluation on the ARGs, and store the result in the
30745 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30746 # must be portable across $(()) and expr.
30747 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30748 eval 'as_fn_arith ()
30750 as_val=$(( $* ))
30752 else
30753 as_fn_arith ()
30755 as_val=`expr "$@" || test $? -eq 1`
30757 fi # as_fn_arith
30760 if expr a : '\(a\)' >/dev/null 2>&1 &&
30761 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30762 as_expr=expr
30763 else
30764 as_expr=false
30767 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30768 as_basename=basename
30769 else
30770 as_basename=false
30773 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30774 as_dirname=dirname
30775 else
30776 as_dirname=false
30779 as_me=`$as_basename -- "$0" ||
30780 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30781 X"$0" : 'X\(//\)$' \| \
30782 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30783 $as_echo X/"$0" |
30784 sed '/^.*\/\([^/][^/]*\)\/*$/{
30785 s//\1/
30788 /^X\/\(\/\/\)$/{
30789 s//\1/
30792 /^X\/\(\/\).*/{
30793 s//\1/
30796 s/.*/./; q'`
30798 # Avoid depending upon Character Ranges.
30799 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30800 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30801 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30802 as_cr_digits='0123456789'
30803 as_cr_alnum=$as_cr_Letters$as_cr_digits
30805 ECHO_C= ECHO_N= ECHO_T=
30806 case `echo -n x` in #(((((
30807 -n*)
30808 case `echo 'xy\c'` in
30809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30810 xy) ECHO_C='\c';;
30811 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30812 ECHO_T=' ';;
30813 esac;;
30815 ECHO_N='-n';;
30816 esac
30818 rm -f conf$$ conf$$.exe conf$$.file
30819 if test -d conf$$.dir; then
30820 rm -f conf$$.dir/conf$$.file
30821 else
30822 rm -f conf$$.dir
30823 mkdir conf$$.dir 2>/dev/null
30825 if (echo >conf$$.file) 2>/dev/null; then
30826 if ln -s conf$$.file conf$$ 2>/dev/null; then
30827 as_ln_s='ln -s'
30828 # ... but there are two gotchas:
30829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30831 # In both cases, we have to default to `cp -pR'.
30832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30833 as_ln_s='cp -pR'
30834 elif ln conf$$.file conf$$ 2>/dev/null; then
30835 as_ln_s=ln
30836 else
30837 as_ln_s='cp -pR'
30839 else
30840 as_ln_s='cp -pR'
30842 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30843 rmdir conf$$.dir 2>/dev/null
30846 # as_fn_mkdir_p
30847 # -------------
30848 # Create "$as_dir" as a directory, including parents if necessary.
30849 as_fn_mkdir_p ()
30852 case $as_dir in #(
30853 -*) as_dir=./$as_dir;;
30854 esac
30855 test -d "$as_dir" || eval $as_mkdir_p || {
30856 as_dirs=
30857 while :; do
30858 case $as_dir in #(
30859 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30860 *) as_qdir=$as_dir;;
30861 esac
30862 as_dirs="'$as_qdir' $as_dirs"
30863 as_dir=`$as_dirname -- "$as_dir" ||
30864 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30865 X"$as_dir" : 'X\(//\)[^/]' \| \
30866 X"$as_dir" : 'X\(//\)$' \| \
30867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30868 $as_echo X"$as_dir" |
30869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30870 s//\1/
30873 /^X\(\/\/\)[^/].*/{
30874 s//\1/
30877 /^X\(\/\/\)$/{
30878 s//\1/
30881 /^X\(\/\).*/{
30882 s//\1/
30885 s/.*/./; q'`
30886 test -d "$as_dir" && break
30887 done
30888 test -z "$as_dirs" || eval "mkdir $as_dirs"
30889 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30892 } # as_fn_mkdir_p
30893 if mkdir -p . 2>/dev/null; then
30894 as_mkdir_p='mkdir -p "$as_dir"'
30895 else
30896 test -d ./-p && rmdir ./-p
30897 as_mkdir_p=false
30901 # as_fn_executable_p FILE
30902 # -----------------------
30903 # Test if FILE is an executable regular file.
30904 as_fn_executable_p ()
30906 test -f "$1" && test -x "$1"
30907 } # as_fn_executable_p
30908 as_test_x='test -x'
30909 as_executable_p=as_fn_executable_p
30911 # Sed expression to map a string onto a valid CPP name.
30912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30914 # Sed expression to map a string onto a valid variable name.
30915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30918 exec 6>&1
30919 ## ----------------------------------- ##
30920 ## Main body of $CONFIG_STATUS script. ##
30921 ## ----------------------------------- ##
30922 _ASEOF
30923 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30926 # Save the log message, to keep $0 and so on meaningful, and to
30927 # report actual input values of CONFIG_FILES etc. instead of their
30928 # values after options handling.
30929 ac_log="
30930 This file was extended by $as_me, which was
30931 generated by GNU Autoconf 2.69. Invocation command line was
30933 CONFIG_FILES = $CONFIG_FILES
30934 CONFIG_HEADERS = $CONFIG_HEADERS
30935 CONFIG_LINKS = $CONFIG_LINKS
30936 CONFIG_COMMANDS = $CONFIG_COMMANDS
30937 $ $0 $@
30939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30942 _ACEOF
30944 case $ac_config_files in *"
30945 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30946 esac
30948 case $ac_config_headers in *"
30949 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30950 esac
30953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30954 # Files that config.status was made for.
30955 config_files="$ac_config_files"
30956 config_headers="$ac_config_headers"
30957 config_links="$ac_config_links"
30958 config_commands="$ac_config_commands"
30960 _ACEOF
30962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30963 ac_cs_usage="\
30964 \`$as_me' instantiates files and other configuration actions
30965 from templates according to the current configuration. Unless the files
30966 and actions are specified as TAGs, all are instantiated by default.
30968 Usage: $0 [OPTION]... [TAG]...
30970 -h, --help print this help, then exit
30971 -V, --version print version number and configuration settings, then exit
30972 --config print configuration, then exit
30973 -q, --quiet, --silent
30974 do not print progress messages
30975 -d, --debug don't remove temporary files
30976 --recheck update $as_me by reconfiguring in the same conditions
30977 --file=FILE[:TEMPLATE]
30978 instantiate the configuration file FILE
30979 --header=FILE[:TEMPLATE]
30980 instantiate the configuration header FILE
30982 Configuration files:
30983 $config_files
30985 Configuration headers:
30986 $config_headers
30988 Configuration links:
30989 $config_links
30991 Configuration commands:
30992 $config_commands
30994 Report bugs to the package provider."
30996 _ACEOF
30997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30999 ac_cs_version="\\
31000 config.status
31001 configured by $0, generated by GNU Autoconf 2.69,
31002 with options \\"\$ac_cs_config\\"
31004 Copyright (C) 2012 Free Software Foundation, Inc.
31005 This config.status script is free software; the Free Software Foundation
31006 gives unlimited permission to copy, distribute and modify it."
31008 ac_pwd='$ac_pwd'
31009 srcdir='$srcdir'
31010 AWK='$AWK'
31011 test -n "\$AWK" || AWK=awk
31012 _ACEOF
31014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31015 # The default lists apply if the user does not specify any file.
31016 ac_need_defaults=:
31017 while test $# != 0
31019 case $1 in
31020 --*=?*)
31021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31022 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31023 ac_shift=:
31025 --*=)
31026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31027 ac_optarg=
31028 ac_shift=:
31031 ac_option=$1
31032 ac_optarg=$2
31033 ac_shift=shift
31035 esac
31037 case $ac_option in
31038 # Handling of the options.
31039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31040 ac_cs_recheck=: ;;
31041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31042 $as_echo "$ac_cs_version"; exit ;;
31043 --config | --confi | --conf | --con | --co | --c )
31044 $as_echo "$ac_cs_config"; exit ;;
31045 --debug | --debu | --deb | --de | --d | -d )
31046 debug=: ;;
31047 --file | --fil | --fi | --f )
31048 $ac_shift
31049 case $ac_optarg in
31050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31051 '') as_fn_error $? "missing file argument" ;;
31052 esac
31053 as_fn_append CONFIG_FILES " '$ac_optarg'"
31054 ac_need_defaults=false;;
31055 --header | --heade | --head | --hea )
31056 $ac_shift
31057 case $ac_optarg in
31058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31059 esac
31060 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31061 ac_need_defaults=false;;
31062 --he | --h)
31063 # Conflict between --help and --header
31064 as_fn_error $? "ambiguous option: \`$1'
31065 Try \`$0 --help' for more information.";;
31066 --help | --hel | -h )
31067 $as_echo "$ac_cs_usage"; exit ;;
31068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31070 ac_cs_silent=: ;;
31072 # This is an error.
31073 -*) as_fn_error $? "unrecognized option: \`$1'
31074 Try \`$0 --help' for more information." ;;
31076 *) as_fn_append ac_config_targets " $1"
31077 ac_need_defaults=false ;;
31079 esac
31080 shift
31081 done
31083 ac_configure_extra_args=
31085 if $ac_cs_silent; then
31086 exec 6>/dev/null
31087 ac_configure_extra_args="$ac_configure_extra_args --silent"
31090 _ACEOF
31091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31092 if \$ac_cs_recheck; then
31093 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31094 shift
31095 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31096 CONFIG_SHELL='$SHELL'
31097 export CONFIG_SHELL
31098 exec "\$@"
31101 _ACEOF
31102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31103 exec 5>>config.log
31105 echo
31106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31107 ## Running $as_me. ##
31108 _ASBOX
31109 $as_echo "$ac_log"
31110 } >&5
31112 _ACEOF
31113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31115 # INIT-COMMANDS
31117 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31118 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31119 subdirs='$subdirs'
31121 _ACEOF
31123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31125 # Handling of arguments.
31126 for ac_config_target in $ac_config_targets
31128 case $ac_config_target in
31129 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31130 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31131 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31132 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31133 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31134 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31135 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31136 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31137 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31139 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31140 esac
31141 done
31144 # If the user did not use the arguments to specify the items to instantiate,
31145 # then the envvar interface is used. Set only those that are not.
31146 # We use the long form for the default assignment because of an extremely
31147 # bizarre bug on SunOS 4.1.3.
31148 if $ac_need_defaults; then
31149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31155 # Have a temporary directory for convenience. Make it in the build tree
31156 # simply because there is no reason against having it here, and in addition,
31157 # creating and moving files from /tmp can sometimes cause problems.
31158 # Hook for its removal unless debugging.
31159 # Note that there is a small window in which the directory will not be cleaned:
31160 # after its creation but before its name has been assigned to `$tmp'.
31161 $debug ||
31163 tmp= ac_tmp=
31164 trap 'exit_status=$?
31165 : "${ac_tmp:=$tmp}"
31166 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31168 trap 'as_fn_exit 1' 1 2 13 15
31170 # Create a (secure) tmp directory for tmp files.
31173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31174 test -d "$tmp"
31175 } ||
31177 tmp=./conf$$-$RANDOM
31178 (umask 077 && mkdir "$tmp")
31179 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31180 ac_tmp=$tmp
31182 # Set up the scripts for CONFIG_FILES section.
31183 # No need to generate them if there are no CONFIG_FILES.
31184 # This happens for instance with `./config.status config.h'.
31185 if test -n "$CONFIG_FILES"; then
31187 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31188 ac_cs_awk_getline=:
31189 ac_cs_awk_pipe_init=
31190 ac_cs_awk_read_file='
31191 while ((getline aline < (F[key])) > 0)
31192 print(aline)
31193 close(F[key])'
31194 ac_cs_awk_pipe_fini=
31195 else
31196 ac_cs_awk_getline=false
31197 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31198 ac_cs_awk_read_file='
31199 print "|#_!!_#|"
31200 print "cat " F[key] " &&"
31201 '$ac_cs_awk_pipe_init
31202 # The final `:' finishes the AND list.
31203 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31205 ac_cr=`echo X | tr X '\015'`
31206 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31207 # But we know of no other shell where ac_cr would be empty at this
31208 # point, so we can use a bashism as a fallback.
31209 if test "x$ac_cr" = x; then
31210 eval ac_cr=\$\'\\r\'
31212 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31213 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31214 ac_cs_awk_cr='\\r'
31215 else
31216 ac_cs_awk_cr=$ac_cr
31219 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31220 _ACEOF
31222 # Create commands to substitute file output variables.
31224 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31225 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31226 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31227 echo "_ACAWK" &&
31228 echo "_ACEOF"
31229 } >conf$$files.sh &&
31230 . ./conf$$files.sh ||
31231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31232 rm -f conf$$files.sh
31235 echo "cat >conf$$subs.awk <<_ACEOF" &&
31236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31237 echo "_ACEOF"
31238 } >conf$$subs.sh ||
31239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31241 ac_delim='%!_!# '
31242 for ac_last_try in false false false false false :; do
31243 . ./conf$$subs.sh ||
31244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31246 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31247 if test $ac_delim_n = $ac_delim_num; then
31248 break
31249 elif $ac_last_try; then
31250 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31251 else
31252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31254 done
31255 rm -f conf$$subs.sh
31257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31258 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31259 _ACEOF
31260 sed -n '
31262 s/^/S["/; s/!.*/"]=/
31265 s/^[^!]*!//
31266 :repl
31267 t repl
31268 s/'"$ac_delim"'$//
31269 t delim
31272 s/\(.\{148\}\)..*/\1/
31273 t more1
31274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31277 b repl
31278 :more1
31279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31282 s/.\{148\}//
31283 t nl
31284 :delim
31286 s/\(.\{148\}\)..*/\1/
31287 t more2
31288 s/["\\]/\\&/g; s/^/"/; s/$/"/
31291 :more2
31292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31295 s/.\{148\}//
31296 t delim
31297 ' <conf$$subs.awk | sed '
31298 /^[^""]/{
31300 s/\n//
31302 ' >>$CONFIG_STATUS || ac_write_fail=1
31303 rm -f conf$$subs.awk
31304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31305 _ACAWK
31306 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31307 for (key in S) S_is_set[key] = 1
31308 FS = "\a"
31309 \$ac_cs_awk_pipe_init
31312 line = $ 0
31313 nfields = split(line, field, "@")
31314 substed = 0
31315 len = length(field[1])
31316 for (i = 2; i < nfields; i++) {
31317 key = field[i]
31318 keylen = length(key)
31319 if (S_is_set[key]) {
31320 value = S[key]
31321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31322 len += length(value) + length(field[++i])
31323 substed = 1
31324 } else
31325 len += 1 + keylen
31327 if (nfields == 3 && !substed) {
31328 key = field[2]
31329 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31330 \$ac_cs_awk_read_file
31331 next
31334 print line
31336 \$ac_cs_awk_pipe_fini
31337 _ACAWK
31338 _ACEOF
31339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31340 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31341 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31342 else
31344 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31345 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31346 _ACEOF
31348 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31349 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31350 # trailing colons and then remove the whole line if VPATH becomes empty
31351 # (actually we leave an empty line to preserve line numbers).
31352 if test "x$srcdir" = x.; then
31353 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31355 s///
31356 s/^/:/
31357 s/[ ]*$/:/
31358 s/:\$(srcdir):/:/g
31359 s/:\${srcdir}:/:/g
31360 s/:@srcdir@:/:/g
31361 s/^:*//
31362 s/:*$//
31364 s/\(=[ ]*\).*/\1/
31366 s/\n//
31367 s/^[^=]*=[ ]*$//
31371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31372 fi # test -n "$CONFIG_FILES"
31374 # Set up the scripts for CONFIG_HEADERS section.
31375 # No need to generate them if there are no CONFIG_HEADERS.
31376 # This happens for instance with `./config.status Makefile'.
31377 if test -n "$CONFIG_HEADERS"; then
31378 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31379 BEGIN {
31380 _ACEOF
31382 # Transform confdefs.h into an awk script `defines.awk', embedded as
31383 # here-document in config.status, that substitutes the proper values into
31384 # config.h.in to produce config.h.
31386 # Create a delimiter string that does not exist in confdefs.h, to ease
31387 # handling of long lines.
31388 ac_delim='%!_!# '
31389 for ac_last_try in false false :; do
31390 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31391 if test -z "$ac_tt"; then
31392 break
31393 elif $ac_last_try; then
31394 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31395 else
31396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31398 done
31400 # For the awk script, D is an array of macro values keyed by name,
31401 # likewise P contains macro parameters if any. Preserve backslash
31402 # newline sequences.
31404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31405 sed -n '
31406 s/.\{148\}/&'"$ac_delim"'/g
31407 t rset
31408 :rset
31409 s/^[ ]*#[ ]*define[ ][ ]*/ /
31410 t def
31412 :def
31413 s/\\$//
31414 t bsnl
31415 s/["\\]/\\&/g
31416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31417 D["\1"]=" \3"/p
31418 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31420 :bsnl
31421 s/["\\]/\\&/g
31422 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31423 D["\1"]=" \3\\\\\\n"\\/p
31424 t cont
31425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31426 t cont
31428 :cont
31430 s/.\{148\}/&'"$ac_delim"'/g
31431 t clear
31432 :clear
31433 s/\\$//
31434 t bsnlc
31435 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31437 :bsnlc
31438 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31439 b cont
31440 ' <confdefs.h | sed '
31441 s/'"$ac_delim"'/"\\\
31442 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31445 for (key in D) D_is_set[key] = 1
31446 FS = "\a"
31448 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31449 line = \$ 0
31450 split(line, arg, " ")
31451 if (arg[1] == "#") {
31452 defundef = arg[2]
31453 mac1 = arg[3]
31454 } else {
31455 defundef = substr(arg[1], 2)
31456 mac1 = arg[2]
31458 split(mac1, mac2, "(") #)
31459 macro = mac2[1]
31460 prefix = substr(line, 1, index(line, defundef) - 1)
31461 if (D_is_set[macro]) {
31462 # Preserve the white space surrounding the "#".
31463 print prefix "define", macro P[macro] D[macro]
31464 next
31465 } else {
31466 # Replace #undef with comments. This is necessary, for example,
31467 # in the case of _POSIX_SOURCE, which is predefined and required
31468 # on some systems where configure will not decide to define it.
31469 if (defundef == "undef") {
31470 print "/*", prefix defundef, macro, "*/"
31471 next
31475 { print }
31476 _ACAWK
31477 _ACEOF
31478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31479 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31480 fi # test -n "$CONFIG_HEADERS"
31483 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31484 shift
31485 for ac_tag
31487 case $ac_tag in
31488 :[FHLC]) ac_mode=$ac_tag; continue;;
31489 esac
31490 case $ac_mode$ac_tag in
31491 :[FHL]*:*);;
31492 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31493 :[FH]-) ac_tag=-:-;;
31494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31495 esac
31496 ac_save_IFS=$IFS
31497 IFS=:
31498 set x $ac_tag
31499 IFS=$ac_save_IFS
31500 shift
31501 ac_file=$1
31502 shift
31504 case $ac_mode in
31505 :L) ac_source=$1;;
31506 :[FH])
31507 ac_file_inputs=
31508 for ac_f
31510 case $ac_f in
31511 -) ac_f="$ac_tmp/stdin";;
31512 *) # Look for the file first in the build tree, then in the source tree
31513 # (if the path is not absolute). The absolute path cannot be DOS-style,
31514 # because $ac_f cannot contain `:'.
31515 test -f "$ac_f" ||
31516 case $ac_f in
31517 [\\/$]*) false;;
31518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31519 esac ||
31520 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31521 esac
31522 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31523 as_fn_append ac_file_inputs " '$ac_f'"
31524 done
31526 # Let's still pretend it is `configure' which instantiates (i.e., don't
31527 # use $as_me), people would be surprised to read:
31528 # /* config.h. Generated by config.status. */
31529 configure_input='Generated from '`
31530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31531 `' by configure.'
31532 if test x"$ac_file" != x-; then
31533 configure_input="$ac_file. $configure_input"
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31535 $as_echo "$as_me: creating $ac_file" >&6;}
31537 # Neutralize special characters interpreted by sed in replacement strings.
31538 case $configure_input in #(
31539 *\&* | *\|* | *\\* )
31540 ac_sed_conf_input=`$as_echo "$configure_input" |
31541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31542 *) ac_sed_conf_input=$configure_input;;
31543 esac
31545 case $ac_tag in
31546 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31548 esac
31550 esac
31552 ac_dir=`$as_dirname -- "$ac_file" ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554 X"$ac_file" : 'X\(//\)[^/]' \| \
31555 X"$ac_file" : 'X\(//\)$' \| \
31556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31557 $as_echo X"$ac_file" |
31558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31559 s//\1/
31562 /^X\(\/\/\)[^/].*/{
31563 s//\1/
31566 /^X\(\/\/\)$/{
31567 s//\1/
31570 /^X\(\/\).*/{
31571 s//\1/
31574 s/.*/./; q'`
31575 as_dir="$ac_dir"; as_fn_mkdir_p
31576 ac_builddir=.
31578 case "$ac_dir" in
31579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31582 # A ".." for each directory in $ac_dir_suffix.
31583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31584 case $ac_top_builddir_sub in
31585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31587 esac ;;
31588 esac
31589 ac_abs_top_builddir=$ac_pwd
31590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31591 # for backward compatibility:
31592 ac_top_builddir=$ac_top_build_prefix
31594 case $srcdir in
31595 .) # We are building in place.
31596 ac_srcdir=.
31597 ac_top_srcdir=$ac_top_builddir_sub
31598 ac_abs_top_srcdir=$ac_pwd ;;
31599 [\\/]* | ?:[\\/]* ) # Absolute name.
31600 ac_srcdir=$srcdir$ac_dir_suffix;
31601 ac_top_srcdir=$srcdir
31602 ac_abs_top_srcdir=$srcdir ;;
31603 *) # Relative name.
31604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31605 ac_top_srcdir=$ac_top_build_prefix$srcdir
31606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31607 esac
31608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31611 case $ac_mode in
31614 # CONFIG_FILE
31617 _ACEOF
31619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31620 # If the template does not know about datarootdir, expand it.
31621 # FIXME: This hack should be removed a few years after 2.60.
31622 ac_datarootdir_hack=; ac_datarootdir_seen=
31623 ac_sed_dataroot='
31624 /datarootdir/ {
31628 /@datadir@/p
31629 /@docdir@/p
31630 /@infodir@/p
31631 /@localedir@/p
31632 /@mandir@/p'
31633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31634 *datarootdir*) ac_datarootdir_seen=yes;;
31635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31638 _ACEOF
31639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31640 ac_datarootdir_hack='
31641 s&@datadir@&$datadir&g
31642 s&@docdir@&$docdir&g
31643 s&@infodir@&$infodir&g
31644 s&@localedir@&$localedir&g
31645 s&@mandir@&$mandir&g
31646 s&\\\${datarootdir}&$datarootdir&g' ;;
31647 esac
31648 _ACEOF
31650 # Neutralize VPATH when `$srcdir' = `.'.
31651 # Shell code in configure.ac might set extrasub.
31652 # FIXME: do we really want to maintain this feature?
31653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31654 ac_sed_extra="$ac_vpsub
31655 $extrasub
31656 _ACEOF
31657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31660 s|@configure_input@|$ac_sed_conf_input|;t t
31661 s&@top_builddir@&$ac_top_builddir_sub&;t t
31662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31663 s&@srcdir@&$ac_srcdir&;t t
31664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31665 s&@top_srcdir@&$ac_top_srcdir&;t t
31666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31667 s&@builddir@&$ac_builddir&;t t
31668 s&@abs_builddir@&$ac_abs_builddir&;t t
31669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31670 $ac_datarootdir_hack
31672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31673 if $ac_cs_awk_getline; then
31674 $AWK -f "$ac_tmp/subs.awk"
31675 else
31676 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31677 fi \
31678 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31681 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31683 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31685 which seems to be undefined. Please make sure it is defined" >&5
31686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31687 which seems to be undefined. Please make sure it is defined" >&2;}
31689 rm -f "$ac_tmp/stdin"
31690 case $ac_file in
31691 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31692 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31693 esac \
31694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31698 # CONFIG_HEADER
31700 if test x"$ac_file" != x-; then
31702 $as_echo "/* $configure_input */" \
31703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31704 } >"$ac_tmp/config.h" \
31705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31706 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31709 else
31710 rm -f "$ac_file"
31711 mv "$ac_tmp/config.h" "$ac_file" \
31712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31714 else
31715 $as_echo "/* $configure_input */" \
31716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31717 || as_fn_error $? "could not create -" "$LINENO" 5
31722 # CONFIG_LINK
31725 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31727 else
31728 # Prefer the file from the source tree if names are identical.
31729 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31730 ac_source=$srcdir/$ac_source
31733 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31734 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31736 if test ! -r "$ac_source"; then
31737 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31739 rm -f "$ac_file"
31741 # Try a relative symlink, then a hard link, then a copy.
31742 case $ac_source in
31743 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31744 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31745 esac
31746 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31747 ln "$ac_source" "$ac_file" 2>/dev/null ||
31748 cp -p "$ac_source" "$ac_file" ||
31749 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31753 $as_echo "$as_me: executing $ac_file commands" >&6;}
31755 esac
31758 case $ac_file$ac_mode in
31759 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31760 "gccdepdir":C)
31761 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31762 for lang in $subdirs c-family common
31764 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31765 done ;;
31766 "as":F) chmod +x as ;;
31767 "collect-ld":F) chmod +x collect-ld ;;
31768 "nm":F) chmod +x nm ;;
31769 "default":C)
31770 case ${CONFIG_HEADERS} in
31771 *auto-host.h:config.in*)
31772 echo > cstamp-h ;;
31773 esac
31774 # Make sure all the subdirs exist.
31775 for d in $subdirs doc build common c-family
31777 test -d $d || mkdir $d
31778 done
31781 esac
31782 done # for ac_tag
31785 as_fn_exit 0
31786 _ACEOF
31787 ac_clean_files=$ac_clean_files_save
31789 test $ac_write_fail = 0 ||
31790 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31793 # configure is writing to config.log, and then calls config.status.
31794 # config.status does its own redirection, appending to config.log.
31795 # Unfortunately, on DOS this fails, as config.log is still kept open
31796 # by configure, so config.status won't be able to write to it; its
31797 # output is simply discarded. So we exec the FD to /dev/null,
31798 # effectively closing config.log, so it can be properly (re)opened and
31799 # appended to by config.status. When coming back to configure, we
31800 # need to make the FD available again.
31801 if test "$no_create" != yes; then
31802 ac_cs_success=:
31803 ac_config_status_args=
31804 test "$silent" = yes &&
31805 ac_config_status_args="$ac_config_status_args --quiet"
31806 exec 5>/dev/null
31807 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31808 exec 5>>config.log
31809 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31810 # would make configure fail if this is the last instruction.
31811 $ac_cs_success || as_fn_exit 1
31813 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31815 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}