Adjust how variable vector extraction is done.
[official-gcc.git] / gcc / configure
blob5fa565a40a4bdd83e0edbbab61c1b37e7308f58c
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_lang_configurefrags
705 all_gtfiles
706 all_compilers
707 srcdir
708 subdirs
709 dollar
710 gcc_tooldir
711 enable_lto
712 DO_LINK_MUTEX
713 MAINT
714 zlibinc
715 zlibdir
716 HOST_LIBS
717 enable_default_ssp
718 thin_archive_support
719 ld_soname_option
720 ld_version_script_option
721 libgcc_visibility
722 gcc_cv_otool
723 gcc_cv_readelf
724 gcc_cv_objdump
725 ORIGINAL_NM_FOR_TARGET
726 gcc_cv_nm
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 gcc_cv_ld
732 ORIGINAL_AS_FOR_TARGET
733 gcc_cv_as
734 enable_fast_install
735 objdir
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 STRIP
742 OBJDUMP
743 ac_ct_DUMPBIN
744 DUMPBIN
746 FGREP
748 LIBTOOL
749 collect2
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
752 BUILD_NO_PIE_FLAG
753 BUILD_NO_PIE_CFLAGS
754 STMP_FIXINC
755 BUILD_LDFLAGS
756 BUILD_CXXFLAGS
757 BUILD_CFLAGS
758 CXX_FOR_BUILD
759 CC_FOR_BUILD
760 inhibit_libc
761 BUILD_SYSTEM_HEADER_DIR
762 SYSTEM_HEADER_DIR
764 CROSS
765 CATOBJEXT
766 GENCAT
767 INSTOBJEXT
768 DATADIRNAME
769 CATALOGS
770 POSUB
771 GMSGFMT
772 XGETTEXT
773 INCINTL
774 LIBINTL_DEP
775 LIBINTL
776 USE_NLS
777 get_gcc_base_ver
778 HAVE_AUTO_BUILD
779 extra_opt_files
780 extra_modes_file
781 NATIVE_SYSTEM_HEADER_DIR
782 objext
783 manext
784 LIBICONV_DEP
785 LTLIBICONV
786 LIBICONV
787 ZSTD_LIB
788 ZSTD_INCLUDE
789 DL_LIB
790 LDEXP_LIB
791 EXTRA_GCC_LIBS
792 GNAT_LIBEXC
793 COLLECT2_LIBS
794 CXXDEPMODE
795 DEPDIR
796 am__leading_dot
797 doc_build_sys
800 BISON
801 FLEX
802 GENERATED_MANPAGES
803 BUILD_INFO
804 MAKEINFO
805 have_mktemp_command
806 make_compare_target
807 INSTALL_DATA
808 INSTALL_PROGRAM
809 INSTALL
810 ranlib_flags
811 RANLIB
813 LN_S
815 SET_MAKE
816 omp_device_property_deps
817 omp_device_properties
818 accel_dir_suffix
819 real_target_noncanonical
820 enable_as_accelerator
821 gnat_install_lib
822 DOCUMENTATION_ROOT_URL
823 REPORT_BUGS_TEXI
824 REPORT_BUGS_TO
825 PKGVERSION
826 CONFIGURE_SPECS
827 enable_gcov
828 enable_shared
829 enable_fixed_point
830 enable_decimal_float
831 with_float
832 with_cpu
833 enable_multiarch
834 enable_multilib
835 coverage_flags
836 valgrind_command
837 valgrind_path_defines
838 valgrind_path
839 TREECHECKING
840 nocommon_flag
841 noexception_flags
842 warn_cxxflags
843 warn_cflags
844 c_strict_warn
845 strict_warn
846 c_loose_warn
847 loose_warn
848 aliasing_flags
850 EGREP
851 GREP
852 CXXCPP
853 PICFLAG_FOR_TARGET
854 GNATMAKE
855 GNATBIND
856 ac_ct_CXX
857 CXXFLAGS
859 OBJEXT
860 EXEEXT
861 ac_ct_CC
862 CPPFLAGS
863 LDFLAGS
864 CFLAGS
866 GENINSRC
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
869 TARGET_SYSTEM_ROOT
870 SYSROOT_CFLAGS_FOR_TARGET
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 target_noncanonical
876 host_noncanonical
877 target_os
878 target_vendor
879 target_cpu
880 target
881 host_os
882 host_vendor
883 host_cpu
884 host
885 build_os
886 build_vendor
887 build_cpu
888 build
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files='option_includes
928 language_hooks'
929 ac_user_opts='
930 enable_option_checking
931 with_build_libsubdir
932 with_local_prefix
933 with_native_system_header_dir
934 with_build_sysroot
935 with_sysroot
936 with_gxx_include_dir
937 with_cpp_install_dir
938 enable_generated_files_in_srcdir
939 with_gnu_ld
940 with_ld
941 with_demangler_in_ld
942 with_gnu_as
943 with_as
944 enable_largefile
945 enable_build_format_warnings
946 enable_werror_always
947 enable_checking
948 enable_coverage
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
951 with_stabs
952 enable_multilib
953 enable_multiarch
954 with_stack_clash_protection_guard_size
955 enable___cxa_atexit
956 enable_decimal_float
957 enable_fixed_point
958 enable_threads
959 enable_tls
960 enable_vtable_verify
961 enable_analyzer
962 enable_objc_gc
963 with_dwarf2
964 enable_shared
965 enable_gcov
966 with_specs
967 with_pkgversion
968 with_bugurl
969 with_documentation_root_url
970 enable_languages
971 with_multilib_list
972 with_zstd
973 with_zstd_include
974 with_zstd_lib
975 enable_rpath
976 with_libiconv_prefix
977 with_libiconv_type
978 enable_sjlj_exceptions
979 with_gcc_major_version_only
980 enable_secureplt
981 enable_mingw_wildcard
982 enable_large_address_aware
983 enable_leading_mingw64_underscores
984 enable_cld
985 enable_frame_pointer
986 enable_win32_registry
987 enable_static
988 with_pic
989 enable_fast_install
990 enable_libtool_lock
991 enable_ld
992 enable_gold
993 with_plugin_ld
994 enable_gnu_indirect_function
995 enable_initfini_array
996 enable_comdat
997 enable_newlib_nano_formatted_io
998 enable_standard_branch_protection
999 enable_fix_cortex_a53_835769
1000 enable_fix_cortex_a53_843419
1001 with_glibc_version
1002 enable_gnu_unique_object
1003 enable_linker_build_id
1004 enable_libssp
1005 enable_default_ssp
1006 with_long_double_128
1007 with_long_double_format
1008 with_gc
1009 with_system_zlib
1010 enable_maintainer_mode
1011 enable_link_mutex
1012 enable_version_specific_runtime_libs
1013 enable_plugin
1014 enable_host_shared
1015 enable_libquadmath_support
1016 with_linker_hash_style
1017 with_diagnostics_color
1018 enable_default_pie
1020 ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1029 CXXFLAGS
1031 CXXCPP
1033 GMPLIBS
1034 GMPINC
1035 ISLLIBS
1036 ISLINC'
1039 # Initialize some variables set by options.
1040 ac_init_help=
1041 ac_init_version=false
1042 ac_unrecognized_opts=
1043 ac_unrecognized_sep=
1044 # The variables have the same names as the options, with
1045 # dashes changed to underlines.
1046 cache_file=/dev/null
1047 exec_prefix=NONE
1048 no_create=
1049 no_recursion=
1050 prefix=NONE
1051 program_prefix=NONE
1052 program_suffix=NONE
1053 program_transform_name=s,x,x,
1054 silent=
1055 site=
1056 srcdir=
1057 verbose=
1058 x_includes=NONE
1059 x_libraries=NONE
1061 # Installation directory options.
1062 # These are left unexpanded so users can "make install exec_prefix=/foo"
1063 # and all the variables that are supposed to be based on exec_prefix
1064 # by default will actually change.
1065 # Use braces instead of parens because sh, perl, etc. also accept them.
1066 # (The list follows the same order as the GNU Coding Standards.)
1067 bindir='${exec_prefix}/bin'
1068 sbindir='${exec_prefix}/sbin'
1069 libexecdir='${exec_prefix}/libexec'
1070 datarootdir='${prefix}/share'
1071 datadir='${datarootdir}'
1072 sysconfdir='${prefix}/etc'
1073 sharedstatedir='${prefix}/com'
1074 localstatedir='${prefix}/var'
1075 includedir='${prefix}/include'
1076 oldincludedir='/usr/include'
1077 docdir='${datarootdir}/doc/${PACKAGE}'
1078 infodir='${datarootdir}/info'
1079 htmldir='${docdir}'
1080 dvidir='${docdir}'
1081 pdfdir='${docdir}'
1082 psdir='${docdir}'
1083 libdir='${exec_prefix}/lib'
1084 localedir='${datarootdir}/locale'
1085 mandir='${datarootdir}/man'
1087 ac_prev=
1088 ac_dashdash=
1089 for ac_option
1091 # If the previous option needs an argument, assign it.
1092 if test -n "$ac_prev"; then
1093 eval $ac_prev=\$ac_option
1094 ac_prev=
1095 continue
1098 case $ac_option in
1099 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1100 *=) ac_optarg= ;;
1101 *) ac_optarg=yes ;;
1102 esac
1104 # Accept the important Cygnus configure options, so we can diagnose typos.
1106 case $ac_dashdash$ac_option in
1108 ac_dashdash=yes ;;
1110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1111 ac_prev=bindir ;;
1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1113 bindir=$ac_optarg ;;
1115 -build | --build | --buil | --bui | --bu)
1116 ac_prev=build_alias ;;
1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1118 build_alias=$ac_optarg ;;
1120 -cache-file | --cache-file | --cache-fil | --cache-fi \
1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1122 ac_prev=cache_file ;;
1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1125 cache_file=$ac_optarg ;;
1127 --config-cache | -C)
1128 cache_file=config.cache ;;
1130 -datadir | --datadir | --datadi | --datad)
1131 ac_prev=datadir ;;
1132 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1133 datadir=$ac_optarg ;;
1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1136 | --dataroo | --dataro | --datar)
1137 ac_prev=datarootdir ;;
1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1140 datarootdir=$ac_optarg ;;
1142 -disable-* | --disable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval enable_$ac_useropt=no ;;
1158 -docdir | --docdir | --docdi | --doc | --do)
1159 ac_prev=docdir ;;
1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161 docdir=$ac_optarg ;;
1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1164 ac_prev=dvidir ;;
1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166 dvidir=$ac_optarg ;;
1168 -enable-* | --enable-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid feature name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "enable_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval enable_$ac_useropt=\$ac_optarg ;;
1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186 | --exec | --exe | --ex)
1187 ac_prev=exec_prefix ;;
1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190 | --exec=* | --exe=* | --ex=*)
1191 exec_prefix=$ac_optarg ;;
1193 -gas | --gas | --ga | --g)
1194 # Obsolete; use --with-gas.
1195 with_gas=yes ;;
1197 -help | --help | --hel | --he | -h)
1198 ac_init_help=long ;;
1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200 ac_init_help=recursive ;;
1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202 ac_init_help=short ;;
1204 -host | --host | --hos | --ho)
1205 ac_prev=host_alias ;;
1206 -host=* | --host=* | --hos=* | --ho=*)
1207 host_alias=$ac_optarg ;;
1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1210 ac_prev=htmldir ;;
1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1212 | --ht=*)
1213 htmldir=$ac_optarg ;;
1215 -includedir | --includedir | --includedi | --included | --include \
1216 | --includ | --inclu | --incl | --inc)
1217 ac_prev=includedir ;;
1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219 | --includ=* | --inclu=* | --incl=* | --inc=*)
1220 includedir=$ac_optarg ;;
1222 -infodir | --infodir | --infodi | --infod | --info | --inf)
1223 ac_prev=infodir ;;
1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225 infodir=$ac_optarg ;;
1227 -libdir | --libdir | --libdi | --libd)
1228 ac_prev=libdir ;;
1229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230 libdir=$ac_optarg ;;
1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233 | --libexe | --libex | --libe)
1234 ac_prev=libexecdir ;;
1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236 | --libexe=* | --libex=* | --libe=*)
1237 libexecdir=$ac_optarg ;;
1239 -localedir | --localedir | --localedi | --localed | --locale)
1240 ac_prev=localedir ;;
1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242 localedir=$ac_optarg ;;
1244 -localstatedir | --localstatedir | --localstatedi | --localstated \
1245 | --localstate | --localstat | --localsta | --localst | --locals)
1246 ac_prev=localstatedir ;;
1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249 localstatedir=$ac_optarg ;;
1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1252 ac_prev=mandir ;;
1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254 mandir=$ac_optarg ;;
1256 -nfp | --nfp | --nf)
1257 # Obsolete; use --without-fp.
1258 with_fp=no ;;
1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261 | --no-cr | --no-c | -n)
1262 no_create=yes ;;
1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1266 no_recursion=yes ;;
1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270 | --oldin | --oldi | --old | --ol | --o)
1271 ac_prev=oldincludedir ;;
1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275 oldincludedir=$ac_optarg ;;
1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1278 ac_prev=prefix ;;
1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280 prefix=$ac_optarg ;;
1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283 | --program-pre | --program-pr | --program-p)
1284 ac_prev=program_prefix ;;
1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287 program_prefix=$ac_optarg ;;
1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290 | --program-suf | --program-su | --program-s)
1291 ac_prev=program_suffix ;;
1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294 program_suffix=$ac_optarg ;;
1296 -program-transform-name | --program-transform-name \
1297 | --program-transform-nam | --program-transform-na \
1298 | --program-transform-n | --program-transform- \
1299 | --program-transform | --program-transfor \
1300 | --program-transfo | --program-transf \
1301 | --program-trans | --program-tran \
1302 | --progr-tra | --program-tr | --program-t)
1303 ac_prev=program_transform_name ;;
1304 -program-transform-name=* | --program-transform-name=* \
1305 | --program-transform-nam=* | --program-transform-na=* \
1306 | --program-transform-n=* | --program-transform-=* \
1307 | --program-transform=* | --program-transfor=* \
1308 | --program-transfo=* | --program-transf=* \
1309 | --program-trans=* | --program-tran=* \
1310 | --progr-tra=* | --program-tr=* | --program-t=*)
1311 program_transform_name=$ac_optarg ;;
1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1314 ac_prev=pdfdir ;;
1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316 pdfdir=$ac_optarg ;;
1318 -psdir | --psdir | --psdi | --psd | --ps)
1319 ac_prev=psdir ;;
1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1321 psdir=$ac_optarg ;;
1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324 | -silent | --silent | --silen | --sile | --sil)
1325 silent=yes ;;
1327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1328 ac_prev=sbindir ;;
1329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1330 | --sbi=* | --sb=*)
1331 sbindir=$ac_optarg ;;
1333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1335 | --sharedst | --shareds | --shared | --share | --shar \
1336 | --sha | --sh)
1337 ac_prev=sharedstatedir ;;
1338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1341 | --sha=* | --sh=*)
1342 sharedstatedir=$ac_optarg ;;
1344 -site | --site | --sit)
1345 ac_prev=site ;;
1346 -site=* | --site=* | --sit=*)
1347 site=$ac_optarg ;;
1349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1350 ac_prev=srcdir ;;
1351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1352 srcdir=$ac_optarg ;;
1354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1355 | --syscon | --sysco | --sysc | --sys | --sy)
1356 ac_prev=sysconfdir ;;
1357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1359 sysconfdir=$ac_optarg ;;
1361 -target | --target | --targe | --targ | --tar | --ta | --t)
1362 ac_prev=target_alias ;;
1363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1364 target_alias=$ac_optarg ;;
1366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1367 verbose=yes ;;
1369 -version | --version | --versio | --versi | --vers | -V)
1370 ac_init_version=: ;;
1372 -with-* | --with-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1381 "with_$ac_useropt"
1382 "*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval with_$ac_useropt=\$ac_optarg ;;
1388 -without-* | --without-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1397 "with_$ac_useropt"
1398 "*) ;;
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=no ;;
1404 --x)
1405 # Obsolete; use --with-x.
1406 with_x=yes ;;
1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1409 | --x-incl | --x-inc | --x-in | --x-i)
1410 ac_prev=x_includes ;;
1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1413 x_includes=$ac_optarg ;;
1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1417 ac_prev=x_libraries ;;
1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1420 x_libraries=$ac_optarg ;;
1422 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1423 Try \`$0 --help' for more information"
1426 *=*)
1427 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1428 # Reject names that are not valid shell variable names.
1429 case $ac_envvar in #(
1430 '' | [0-9]* | *[!_$as_cr_alnum]* )
1431 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1432 esac
1433 eval $ac_envvar=\$ac_optarg
1434 export $ac_envvar ;;
1437 # FIXME: should be removed in autoconf 3.0.
1438 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1440 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1441 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1444 esac
1445 done
1447 if test -n "$ac_prev"; then
1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1449 as_fn_error $? "missing argument to $ac_option"
1452 if test -n "$ac_unrecognized_opts"; then
1453 case $enable_option_checking in
1454 no) ;;
1455 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1456 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1457 esac
1460 # Check all directory arguments for consistency.
1461 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1462 datadir sysconfdir sharedstatedir localstatedir includedir \
1463 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1464 libdir localedir mandir
1466 eval ac_val=\$$ac_var
1467 # Remove trailing slashes.
1468 case $ac_val in
1469 */ )
1470 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1471 eval $ac_var=\$ac_val;;
1472 esac
1473 # Be sure to have absolute directory names.
1474 case $ac_val in
1475 [\\/$]* | ?:[\\/]* ) continue;;
1476 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1477 esac
1478 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1479 done
1481 # There might be people who depend on the old broken behavior: `$host'
1482 # used to hold the argument of --host etc.
1483 # FIXME: To remove some day.
1484 build=$build_alias
1485 host=$host_alias
1486 target=$target_alias
1488 # FIXME: To remove some day.
1489 if test "x$host_alias" != x; then
1490 if test "x$build_alias" = x; then
1491 cross_compiling=maybe
1492 elif test "x$build_alias" != "x$host_alias"; then
1493 cross_compiling=yes
1497 ac_tool_prefix=
1498 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500 test "$silent" = yes && exec 6>/dev/null
1503 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1504 ac_ls_di=`ls -di .` &&
1505 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1506 as_fn_error $? "working directory cannot be determined"
1507 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1508 as_fn_error $? "pwd does not report name of working directory"
1511 # Find the source files, if location was not specified.
1512 if test -z "$srcdir"; then
1513 ac_srcdir_defaulted=yes
1514 # Try the directory containing this script, then the parent directory.
1515 ac_confdir=`$as_dirname -- "$as_myself" ||
1516 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1517 X"$as_myself" : 'X\(//\)[^/]' \| \
1518 X"$as_myself" : 'X\(//\)$' \| \
1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1520 $as_echo X"$as_myself" |
1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 s//\1/
1525 /^X\(\/\/\)[^/].*/{
1526 s//\1/
1529 /^X\(\/\/\)$/{
1530 s//\1/
1533 /^X\(\/\).*/{
1534 s//\1/
1537 s/.*/./; q'`
1538 srcdir=$ac_confdir
1539 if test ! -r "$srcdir/$ac_unique_file"; then
1540 srcdir=..
1542 else
1543 ac_srcdir_defaulted=no
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1547 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1549 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1550 ac_abs_confdir=`(
1551 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1552 pwd)`
1553 # When building in place, set srcdir=.
1554 if test "$ac_abs_confdir" = "$ac_pwd"; then
1555 srcdir=.
1557 # Remove unnecessary trailing slashes from srcdir.
1558 # Double slashes in file names in object file debugging info
1559 # mess up M-x gdb in Emacs.
1560 case $srcdir in
1561 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1562 esac
1563 for ac_var in $ac_precious_vars; do
1564 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1565 eval ac_env_${ac_var}_value=\$${ac_var}
1566 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1568 done
1571 # Report the --help message.
1573 if test "$ac_init_help" = "long"; then
1574 # Omit some internal or obsolete options to make the list less imposing.
1575 # This message is too long to be a string in the A/UX 3.1 sh.
1576 cat <<_ACEOF
1577 \`configure' configures this package to adapt to many kinds of systems.
1579 Usage: $0 [OPTION]... [VAR=VALUE]...
1581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1582 VAR=VALUE. See below for descriptions of some of the useful variables.
1584 Defaults for the options are specified in brackets.
1586 Configuration:
1587 -h, --help display this help and exit
1588 --help=short display options specific to this package
1589 --help=recursive display the short help of all the included packages
1590 -V, --version display version information and exit
1591 -q, --quiet, --silent do not print \`checking ...' messages
1592 --cache-file=FILE cache test results in FILE [disabled]
1593 -C, --config-cache alias for \`--cache-file=config.cache'
1594 -n, --no-create do not create output files
1595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1597 Installation directories:
1598 --prefix=PREFIX install architecture-independent files in PREFIX
1599 [$ac_default_prefix]
1600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1601 [PREFIX]
1603 By default, \`make install' will install all the files in
1604 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1605 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1606 for instance \`--prefix=\$HOME'.
1608 For better control, use the options below.
1610 Fine tuning of the installation directories:
1611 --bindir=DIR user executables [EPREFIX/bin]
1612 --sbindir=DIR system admin executables [EPREFIX/sbin]
1613 --libexecdir=DIR program executables [EPREFIX/libexec]
1614 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1615 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1616 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1617 --libdir=DIR object code libraries [EPREFIX/lib]
1618 --includedir=DIR C header files [PREFIX/include]
1619 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1620 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1621 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1622 --infodir=DIR info documentation [DATAROOTDIR/info]
1623 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1624 --mandir=DIR man documentation [DATAROOTDIR/man]
1625 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1626 --htmldir=DIR html documentation [DOCDIR]
1627 --dvidir=DIR dvi documentation [DOCDIR]
1628 --pdfdir=DIR pdf documentation [DOCDIR]
1629 --psdir=DIR ps documentation [DOCDIR]
1630 _ACEOF
1632 cat <<\_ACEOF
1634 Program names:
1635 --program-prefix=PREFIX prepend PREFIX to installed program names
1636 --program-suffix=SUFFIX append SUFFIX to installed program names
1637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1639 System types:
1640 --build=BUILD configure for building on BUILD [guessed]
1641 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1642 --target=TARGET configure for building compilers for TARGET [HOST]
1643 _ACEOF
1646 if test -n "$ac_init_help"; then
1648 cat <<\_ACEOF
1650 Optional Features:
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-generated-files-in-srcdir
1655 put copies of generated files in source dir intended
1656 for creating source tarballs for users without
1657 texinfo bison or flex
1658 --disable-largefile omit support for large files
1659 --disable-build-format-warnings
1660 don't use -Wformat while building GCC
1661 --enable-werror-always enable -Werror despite compiler version
1662 --enable-checking[=LIST]
1663 enable expensive run-time checks. With LIST, enable
1664 only specific categories of checks. Categories are:
1665 yes,no,all,none,release. Flags are:
1666 assert,df,extra,fold,gc,gcac,gimple,misc,
1667 rtlflag,rtl,runtime,tree,valgrind,types
1668 --enable-coverage[=LEVEL]
1669 enable compiler's code coverage collection. Use to
1670 measure compiler performance and locate unused parts
1671 of the compiler. With LEVEL, specify optimization.
1672 Values are opt, noopt, default is noopt
1673 --enable-gather-detailed-mem-stats
1674 enable detailed memory allocation stats gathering
1675 --enable-valgrind-annotations
1676 enable valgrind runtime interaction
1677 --enable-multilib enable library support for multiple ABIs
1678 --enable-multiarch enable support for multiarch paths
1679 --enable-__cxa_atexit enable __cxa_atexit for C++
1680 --enable-decimal-float={no,yes,bid,dpd}
1681 enable decimal float extension to C. Selecting 'bid'
1682 or 'dpd' choses which decimal floating point format
1683 to use
1684 --enable-fixed-point enable fixed-point arithmetic extension to C
1685 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1686 package
1687 --enable-tls enable or disable generation of tls code overriding
1688 the assembler check for tls support
1689 --enable-vtable-verify enable vtable verification feature
1690 --disable-analyzer disable -fanalyzer static analyzer
1691 --enable-objc-gc enable the use of Boehm's garbage collector with the
1692 GNU Objective-C runtime
1693 --disable-shared don't provide a shared libgcc
1694 --disable-gcov don't provide libgcov and related host tools
1695 --enable-languages=LIST specify which front-ends to build
1696 --disable-rpath do not hardcode runtime library paths
1697 --enable-sjlj-exceptions
1698 arrange to use setjmp/longjmp exception handling
1699 --enable-secureplt enable -msecure-plt by default for PowerPC
1700 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1701 Default to platform configuration
1702 --enable-large-address-aware
1703 Link mingw executables with --large-address-aware
1704 --enable-leading-mingw64-underscores
1705 enable leading underscores on 64 bit mingw targets
1706 --enable-cld enable -mcld by default for 32bit x86
1707 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1708 --disable-win32-registry
1709 disable lookup of installation paths in the Registry
1710 on Windows hosts
1711 --enable-win32-registry enable registry lookup (default)
1712 --enable-win32-registry=KEY
1713 use KEY instead of GCC version as the last portion
1714 of the registry key
1715 --enable-shared[=PKGS] build shared libraries [default=yes]
1716 --enable-static[=PKGS] build static libraries [default=yes]
1717 --enable-fast-install[=PKGS]
1718 optimize for fast installation [default=yes]
1719 --disable-libtool-lock avoid locking (might break parallel builds)
1720 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1721 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1722 --enable-gnu-indirect-function
1723 enable the use of the @gnu_indirect_function to
1724 glibc systems
1725 --enable-initfini-array use .init_array/.fini_array sections
1726 --enable-comdat enable COMDAT group support
1727 --enable-newlib-nano-formatted-io
1728 Use nano version formatted IO
1730 --enable-standard-branch-protection
1731 enable Branch Target Identification Mechanism and
1732 Return Address Signing by default for AArch64
1733 --disable-standard-branch-protection
1734 disable Branch Target Identification Mechanism and
1735 Return Address Signing by default for AArch64
1738 --enable-fix-cortex-a53-835769
1739 enable workaround for AArch64 Cortex-A53 erratum
1740 835769 by default
1741 --disable-fix-cortex-a53-835769
1742 disable workaround for AArch64 Cortex-A53 erratum
1743 835769 by default
1746 --enable-fix-cortex-a53-843419
1747 enable workaround for AArch64 Cortex-A53 erratum
1748 843419 by default
1749 --disable-fix-cortex-a53-843419
1750 disable workaround for AArch64 Cortex-A53 erratum
1751 843419 by default
1753 --enable-gnu-unique-object
1754 enable the use of the @gnu_unique_object ELF
1755 extension on glibc systems
1756 --enable-linker-build-id
1757 compiler will always pass --build-id to linker
1758 --enable-libssp enable linking against libssp
1759 --enable-default-ssp enable Stack Smashing Protection as default
1760 --enable-maintainer-mode
1761 enable make rules and dependencies not useful (and
1762 sometimes confusing) to the casual installer
1763 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1764 thrashing on the build machine
1765 --enable-version-specific-runtime-libs
1766 specify that runtime libraries should be installed
1767 in a compiler-specific directory
1768 --enable-plugin enable plugin support
1769 --enable-host-shared build host code as shared libraries
1770 --disable-libquadmath-support
1771 disable libquadmath support for Fortran
1772 --enable-default-pie enable Position Independent Executable as default
1774 Optional Packages:
1775 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1776 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1777 --with-build-libsubdir=DIR Directory where to find libraries for build system
1778 --with-local-prefix=DIR specifies directory to put local include
1779 --with-native-system-header-dir=dir
1780 use dir as the directory to look for standard
1781 system header files in. Defaults to /usr/include.
1782 --with-build-sysroot=sysroot
1783 use sysroot as the system root during the build
1784 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1785 --with-gxx-include-dir=DIR
1786 specifies directory to put g++ header files
1787 --with-cpp-install-dir=DIR
1788 install the user visible C preprocessor in DIR
1789 (relative to PREFIX) as well as PREFIX/bin
1790 --with-gnu-ld arrange to work with GNU ld
1791 --with-ld arrange to use the specified ld (full pathname)
1792 --with-demangler-in-ld try to use demangler in GNU ld
1793 --with-gnu-as arrange to work with GNU as
1794 --with-as arrange to use the specified as (full pathname)
1795 --with-stabs arrange to use stabs instead of host debug format
1796 --with-stack-clash-protection-guard-size=size
1797 Set the default stack clash protection guard size
1798 for specific targets as a power of two in bytes.
1799 --with-dwarf2 force the default debug format to be DWARF 2
1800 --with-specs=SPECS add SPECS to driver command-line processing
1801 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1802 --with-bugurl=URL Direct users to URL to report a bug
1803 --with-documentation-root-url=URL
1804 Root for documentation URLs
1805 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1806 --with-zstd=PATH specify prefix directory for installed zstd library.
1807 Equivalent to --with-zstd-include=PATH/include plus
1808 --with-zstd-lib=PATH/lib
1809 --with-zstd-include=PATH
1810 specify directory for installed zstd include files
1811 --with-zstd-lib=PATH specify directory for the installed zstd library
1812 --with-gnu-ld assume the C compiler uses GNU ld default=no
1813 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1814 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1815 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1816 --with-gcc-major-version-only
1817 use only GCC major number in filesystem paths
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1819 both]
1820 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1821 --with-plugin-ld=[ARG] specify the plugin linker
1822 --with-glibc-version=M.N
1823 assume GCC used with glibc version M.N or later
1824 --with-long-double-128 use 128-bit long double by default
1825 --with-long-double-format={ieee,ibm}
1826 Specify whether PowerPC long double uses IEEE or IBM format
1828 --with-gc={page,zone} this option is not supported anymore. It used to
1829 choose the garbage collection mechanism to use with
1830 the compiler
1831 --with-system-zlib use installed libz
1832 --with-linker-hash-style={sysv,gnu,both}
1833 specify the linker hash style
1834 --with-diagnostics-color={never,auto,auto-if-env,always}
1835 specify the default of -fdiagnostics-color option
1836 auto-if-env stands for -fdiagnostics-color=auto if
1837 GCC_COLOR environment variable is present and
1838 -fdiagnostics-color=never otherwise
1840 Some influential environment variables:
1841 CC C compiler command
1842 CFLAGS C compiler flags
1843 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1844 nonstandard directory <lib dir>
1845 LIBS libraries to pass to the linker, e.g. -l<library>
1846 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1847 you have headers in a nonstandard directory <include dir>
1848 CXX C++ compiler command
1849 CXXFLAGS C++ compiler flags
1850 CXXCPP C++ preprocessor
1851 CPP C preprocessor
1852 GMPLIBS How to link GMP
1853 GMPINC How to find GMP include files
1854 ISLLIBS How to link isl
1855 ISLINC How to find isl include files
1857 Use these variables to override the choices made by `configure' or to help
1858 it to find libraries and programs with nonstandard names/locations.
1860 Report bugs to the package provider.
1861 _ACEOF
1862 ac_status=$?
1865 if test "$ac_init_help" = "recursive"; then
1866 # If there are subdirs, report their specific --help.
1867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1868 test -d "$ac_dir" ||
1869 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1870 continue
1871 ac_builddir=.
1873 case "$ac_dir" in
1874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1877 # A ".." for each directory in $ac_dir_suffix.
1878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1879 case $ac_top_builddir_sub in
1880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1882 esac ;;
1883 esac
1884 ac_abs_top_builddir=$ac_pwd
1885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1886 # for backward compatibility:
1887 ac_top_builddir=$ac_top_build_prefix
1889 case $srcdir in
1890 .) # We are building in place.
1891 ac_srcdir=.
1892 ac_top_srcdir=$ac_top_builddir_sub
1893 ac_abs_top_srcdir=$ac_pwd ;;
1894 [\\/]* | ?:[\\/]* ) # Absolute name.
1895 ac_srcdir=$srcdir$ac_dir_suffix;
1896 ac_top_srcdir=$srcdir
1897 ac_abs_top_srcdir=$srcdir ;;
1898 *) # Relative name.
1899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1900 ac_top_srcdir=$ac_top_build_prefix$srcdir
1901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1902 esac
1903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1905 cd "$ac_dir" || { ac_status=$?; continue; }
1906 # Check for guested configure.
1907 if test -f "$ac_srcdir/configure.gnu"; then
1908 echo &&
1909 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1910 elif test -f "$ac_srcdir/configure"; then
1911 echo &&
1912 $SHELL "$ac_srcdir/configure" --help=recursive
1913 else
1914 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1915 fi || ac_status=$?
1916 cd "$ac_pwd" || { ac_status=$?; break; }
1917 done
1920 test -n "$ac_init_help" && exit $ac_status
1921 if $ac_init_version; then
1922 cat <<\_ACEOF
1923 configure
1924 generated by GNU Autoconf 2.69
1926 Copyright (C) 2012 Free Software Foundation, Inc.
1927 This configure script is free software; the Free Software Foundation
1928 gives unlimited permission to copy, distribute and modify it.
1929 _ACEOF
1930 exit
1933 ## ------------------------ ##
1934 ## Autoconf initialization. ##
1935 ## ------------------------ ##
1937 # ac_fn_c_try_compile LINENO
1938 # --------------------------
1939 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1940 ac_fn_c_try_compile ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext
1944 if { { ac_try="$ac_compile"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_compile") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest.$ac_objext; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_compile
1975 # ac_fn_cxx_try_compile LINENO
1976 # ----------------------------
1977 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_compile ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext
1982 if { { ac_try="$ac_compile"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_compile") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest.$ac_objext; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=1
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 as_fn_set_status $ac_retval
2011 } # ac_fn_cxx_try_compile
2013 # ac_fn_cxx_try_cpp LINENO
2014 # ------------------------
2015 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2016 ac_fn_cxx_try_cpp ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_cpp conftest.$ac_ext"
2020 case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2027 ac_status=$?
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } > conftest.i && {
2035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 }; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_retval=1
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_cpp
2050 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2051 # ---------------------------------------------------------
2052 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2053 # the include files in INCLUDES and setting the cache variable VAR
2054 # accordingly.
2055 ac_fn_cxx_check_header_mongrel ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if eval \${$3+:} false; then :
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 else
2068 # Is the header compilable?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2070 $as_echo_n "checking $2 usability... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_cxx_try_compile "$LINENO"; then :
2077 ac_header_compiler=yes
2078 else
2079 ac_header_compiler=no
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2083 $as_echo "$ac_header_compiler" >&6; }
2085 # Is the header present?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2087 $as_echo_n "checking $2 presence... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_cxx_try_cpp "$LINENO"; then :
2093 ac_header_preproc=yes
2094 else
2095 ac_header_preproc=no
2097 rm -f conftest.err conftest.i conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2099 $as_echo "$ac_header_preproc" >&6; }
2101 # So? What about this header?
2102 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2103 yes:no: )
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2105 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2109 no:yes:* )
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2111 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2113 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2115 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2117 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121 esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123 $as_echo_n "checking for $2... " >&6; }
2124 if eval \${$3+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 eval "$3=\$ac_header_compiler"
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 } # ac_fn_cxx_check_header_mongrel
2137 # ac_fn_cxx_try_run LINENO
2138 # ------------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2140 # that executables *can* be run.
2141 ac_fn_cxx_try_run ()
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>&5
2152 ac_status=$?
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2155 { { case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_try") 2>&5
2162 ac_status=$?
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; }; }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: program exited with status $ac_status" >&5
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2171 ac_retval=$ac_status
2173 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2177 } # ac_fn_cxx_try_run
2179 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2180 # ---------------------------------------------------------
2181 # Tests whether HEADER exists and can be compiled using the include files in
2182 # INCLUDES, setting the cache variable VAR accordingly.
2183 ac_fn_cxx_check_header_compile ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_cxx_try_compile "$LINENO"; then :
2197 eval "$3=yes"
2198 else
2199 eval "$3=no"
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 eval ac_res=\$$3
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 } # ac_fn_cxx_check_header_compile
2210 # ac_fn_c_try_cpp LINENO
2211 # ----------------------
2212 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2213 ac_fn_c_try_cpp ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if { { ac_try="$ac_cpp conftest.$ac_ext"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2224 ac_status=$?
2225 if test -s conftest.err; then
2226 grep -v '^ *+' conftest.err >conftest.er1
2227 cat conftest.er1 >&5
2228 mv -f conftest.er1 conftest.err
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } > conftest.i && {
2232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2233 test ! -s conftest.err
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=1
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 as_fn_set_status $ac_retval
2245 } # ac_fn_c_try_cpp
2247 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2248 # ----------------------------------------------
2249 # Tries to find the compile-time value of EXPR in a program that includes
2250 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2251 # computed
2252 ac_fn_cxx_compute_int ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 if test "$cross_compiling" = yes; then
2256 # Depending upon the size, compute the lo and hi bounds.
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2261 main ()
2263 static int test_array [1 - 2 * !(($2) >= 0)];
2264 test_array [0] = 0;
2265 return test_array [0];
2268 return 0;
2270 _ACEOF
2271 if ac_fn_cxx_try_compile "$LINENO"; then :
2272 ac_lo=0 ac_mid=0
2273 while :; do
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2278 main ()
2280 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2281 test_array [0] = 0;
2282 return test_array [0];
2285 return 0;
2287 _ACEOF
2288 if ac_fn_cxx_try_compile "$LINENO"; then :
2289 ac_hi=$ac_mid; break
2290 else
2291 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2292 if test $ac_lo -le $ac_mid; then
2293 ac_lo= ac_hi=
2294 break
2296 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 done
2300 else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2305 main ()
2307 static int test_array [1 - 2 * !(($2) < 0)];
2308 test_array [0] = 0;
2309 return test_array [0];
2312 return 0;
2314 _ACEOF
2315 if ac_fn_cxx_try_compile "$LINENO"; then :
2316 ac_hi=-1 ac_mid=-1
2317 while :; do
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2322 main ()
2324 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2325 test_array [0] = 0;
2326 return test_array [0];
2329 return 0;
2331 _ACEOF
2332 if ac_fn_cxx_try_compile "$LINENO"; then :
2333 ac_lo=$ac_mid; break
2334 else
2335 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2336 if test $ac_mid -le $ac_hi; then
2337 ac_lo= ac_hi=
2338 break
2340 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 else
2345 ac_lo= ac_hi=
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 # Binary search between lo and hi bounds.
2351 while test "x$ac_lo" != "x$ac_hi"; do
2352 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2360 test_array [0] = 0;
2361 return test_array [0];
2364 return 0;
2366 _ACEOF
2367 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 ac_hi=$ac_mid
2369 else
2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378 else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2387 main ()
2390 FILE *f = fopen ("conftest.val", "w");
2391 if (! f)
2392 return 1;
2393 if (($2) < 0)
2395 long int i = longval ();
2396 if (i != ($2))
2397 return 1;
2398 fprintf (f, "%ld", i);
2400 else
2402 unsigned long int i = ulongval ();
2403 if (i != ($2))
2404 return 1;
2405 fprintf (f, "%lu", i);
2407 /* Do not output a trailing newline, as this causes \r\n confusion
2408 on some platforms. */
2409 return ferror (f) || fclose (f) != 0;
2412 return 0;
2414 _ACEOF
2415 if ac_fn_cxx_try_run "$LINENO"; then :
2416 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2417 else
2418 ac_retval=1
2420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2421 conftest.$ac_objext conftest.beam conftest.$ac_ext
2422 rm -f conftest.val
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status $ac_retval
2428 } # ac_fn_cxx_compute_int
2430 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2431 # ---------------------------------------------
2432 # Tests whether TYPE exists after having included INCLUDES, setting cache
2433 # variable VAR accordingly.
2434 ac_fn_cxx_check_type ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2438 $as_echo_n "checking for $2... " >&6; }
2439 if eval \${$3+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441 else
2442 eval "$3=no"
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 main ()
2449 if (sizeof ($2))
2450 return 0;
2452 return 0;
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2460 main ()
2462 if (sizeof (($2)))
2463 return 0;
2465 return 0;
2467 _ACEOF
2468 if ac_fn_cxx_try_compile "$LINENO"; then :
2470 else
2471 eval "$3=yes"
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 eval ac_res=\$$3
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482 } # ac_fn_cxx_check_type
2484 # ac_fn_c_find_intX_t LINENO BITS VAR
2485 # -----------------------------------
2486 # Finds a signed integer type with width BITS, setting cache variable VAR
2487 # accordingly.
2488 ac_fn_c_find_intX_t ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2492 $as_echo_n "checking for int$2_t... " >&6; }
2493 if eval \${$3+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 eval "$3=no"
2497 # Order is important - never check a type that is potentially smaller
2498 # than half of the expected target width.
2499 for ac_type in int$2_t 'int' 'long int' \
2500 'long long int' 'short int' 'signed char'; do
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 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2509 test_array [0] = 0;
2510 return test_array [0];
2513 return 0;
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2519 $ac_includes_default
2520 enum { N = $2 / 2 - 1 };
2522 main ()
2524 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2525 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2526 test_array [0] = 0;
2527 return test_array [0];
2530 return 0;
2532 _ACEOF
2533 if ac_fn_cxx_try_compile "$LINENO"; then :
2535 else
2536 case $ac_type in #(
2537 int$2_t) :
2538 eval "$3=yes" ;; #(
2539 *) :
2540 eval "$3=\$ac_type" ;;
2541 esac
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 if eval test \"x\$"$3"\" = x"no"; then :
2548 else
2549 break
2551 done
2553 eval ac_res=\$$3
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 } # ac_fn_c_find_intX_t
2560 # ac_fn_cxx_try_link LINENO
2561 # -------------------------
2562 # Try to link conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_link ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 rm -f conftest.$ac_objext conftest$ac_exeext
2567 if { { ac_try="$ac_link"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_link") 2>conftest.err
2575 ac_status=$?
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && {
2583 test -z "$ac_cxx_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest$ac_exeext && {
2586 test "$cross_compiling" = yes ||
2587 test -x conftest$ac_exeext
2588 }; then :
2589 ac_retval=0
2590 else
2591 $as_echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_retval=1
2596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2598 # interfere with the next link command; also delete a directory that is
2599 # left behind by Apple's compiler. We do this before executing the actions.
2600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 as_fn_set_status $ac_retval
2604 } # ac_fn_cxx_try_link
2606 # ac_fn_c_find_uintX_t LINENO BITS VAR
2607 # ------------------------------------
2608 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2609 # accordingly.
2610 ac_fn_c_find_uintX_t ()
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2614 $as_echo_n "checking for uint$2_t... " >&6; }
2615 if eval \${$3+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 eval "$3=no"
2619 # Order is important - never check a type that is potentially smaller
2620 # than half of the expected target width.
2621 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2622 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 $ac_includes_default
2627 main ()
2629 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2630 test_array [0] = 0;
2631 return test_array [0];
2634 return 0;
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638 case $ac_type in #(
2639 uint$2_t) :
2640 eval "$3=yes" ;; #(
2641 *) :
2642 eval "$3=\$ac_type" ;;
2643 esac
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 if eval test \"x\$"$3"\" = x"no"; then :
2648 else
2649 break
2651 done
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2658 } # ac_fn_c_find_uintX_t
2660 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2661 # ------------------------------------------------
2662 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2663 ac_fn_cxx_check_header_preproc ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if eval \${$3+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2673 #include <$2>
2674 _ACEOF
2675 if ac_fn_cxx_try_cpp "$LINENO"; then :
2676 eval "$3=yes"
2677 else
2678 eval "$3=no"
2680 rm -f conftest.err conftest.i conftest.$ac_ext
2682 eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 } # ac_fn_cxx_check_header_preproc
2689 # ac_fn_cxx_check_func LINENO FUNC VAR
2690 # ------------------------------------
2691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2692 ac_fn_cxx_check_func ()
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2696 $as_echo_n "checking for $2... " >&6; }
2697 if eval \${$3+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2704 #define $2 innocuous_$2
2706 /* System header to define __stub macros and hopefully few prototypes,
2707 which can conflict with char $2 (); below.
2708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709 <limits.h> exists even on freestanding compilers. */
2711 #ifdef __STDC__
2712 # include <limits.h>
2713 #else
2714 # include <assert.h>
2715 #endif
2717 #undef $2
2719 /* Override any GCC internal prototype to avoid an error.
2720 Use char because int might match the return type of a GCC
2721 builtin and then its argument prototype would still apply. */
2722 #ifdef __cplusplus
2723 extern "C"
2724 #endif
2725 char $2 ();
2726 /* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729 #if defined __stub_$2 || defined __stub___$2
2730 choke me
2731 #endif
2734 main ()
2736 return $2 ();
2738 return 0;
2740 _ACEOF
2741 if ac_fn_cxx_try_link "$LINENO"; then :
2742 eval "$3=yes"
2743 else
2744 eval "$3=no"
2746 rm -f core conftest.err conftest.$ac_objext \
2747 conftest$ac_exeext conftest.$ac_ext
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2754 } # ac_fn_cxx_check_func
2756 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2757 # -----------------------------------------------
2758 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2759 # accordingly.
2760 ac_fn_cxx_check_decl ()
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 as_decl_name=`echo $2|sed 's/ *(.*//'`
2764 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2766 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2767 if eval \${$3+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2774 main ()
2776 #ifndef $as_decl_name
2777 #ifdef __cplusplus
2778 (void) $as_decl_use;
2779 #else
2780 (void) $as_decl_name;
2781 #endif
2782 #endif
2785 return 0;
2787 _ACEOF
2788 if ac_fn_cxx_try_compile "$LINENO"; then :
2789 eval "$3=yes"
2790 else
2791 eval "$3=no"
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2795 eval ac_res=\$$3
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797 $as_echo "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800 } # ac_fn_cxx_check_decl
2802 # ac_fn_c_try_link LINENO
2803 # -----------------------
2804 # Try to link conftest.$ac_ext, and return whether this succeeded.
2805 ac_fn_c_try_link ()
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 rm -f conftest.$ac_objext conftest$ac_exeext
2809 if { { ac_try="$ac_link"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link") 2>conftest.err
2817 ac_status=$?
2818 if test -s conftest.err; then
2819 grep -v '^ *+' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 mv -f conftest.er1 conftest.err
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest$ac_exeext && {
2828 test "$cross_compiling" = yes ||
2829 test -x conftest$ac_exeext
2830 }; then :
2831 ac_retval=0
2832 else
2833 $as_echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2836 ac_retval=1
2838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2840 # interfere with the next link command; also delete a directory that is
2841 # left behind by Apple's compiler. We do this before executing the actions.
2842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 as_fn_set_status $ac_retval
2846 } # ac_fn_c_try_link
2848 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2849 # ----------------------------------------------
2850 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2851 ac_fn_c_check_header_preproc ()
2853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2855 $as_echo_n "checking for $2... " >&6; }
2856 if eval \${$3+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2861 #include <$2>
2862 _ACEOF
2863 if ac_fn_c_try_cpp "$LINENO"; then :
2864 eval "$3=yes"
2865 else
2866 eval "$3=no"
2868 rm -f conftest.err conftest.i conftest.$ac_ext
2870 eval ac_res=\$$3
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2872 $as_echo "$ac_res" >&6; }
2873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2875 } # ac_fn_c_check_header_preproc
2877 # ac_fn_c_check_func LINENO FUNC VAR
2878 # ----------------------------------
2879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2880 ac_fn_c_check_func ()
2882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2884 $as_echo_n "checking for $2... " >&6; }
2885 if eval \${$3+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2892 #define $2 innocuous_$2
2894 /* System header to define __stub macros and hopefully few prototypes,
2895 which can conflict with char $2 (); below.
2896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 <limits.h> exists even on freestanding compilers. */
2899 #ifdef __STDC__
2900 # include <limits.h>
2901 #else
2902 # include <assert.h>
2903 #endif
2905 #undef $2
2907 /* Override any GCC internal prototype to avoid an error.
2908 Use char because int might match the return type of a GCC
2909 builtin and then its argument prototype would still apply. */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 char $2 ();
2914 /* The GNU C library defines this for functions which it implements
2915 to always fail with ENOSYS. Some functions are actually named
2916 something starting with __ and the normal name is an alias. */
2917 #if defined __stub_$2 || defined __stub___$2
2918 choke me
2919 #endif
2922 main ()
2924 return $2 ();
2926 return 0;
2928 _ACEOF
2929 if ac_fn_c_try_link "$LINENO"; then :
2930 eval "$3=yes"
2931 else
2932 eval "$3=no"
2934 rm -f core conftest.err conftest.$ac_objext \
2935 conftest$ac_exeext conftest.$ac_ext
2937 eval ac_res=\$$3
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2939 $as_echo "$ac_res" >&6; }
2940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2942 } # ac_fn_c_check_func
2943 cat >config.log <<_ACEOF
2944 This file contains any messages produced by compilers while
2945 running configure, to aid debugging if configure makes a mistake.
2947 It was created by $as_me, which was
2948 generated by GNU Autoconf 2.69. Invocation command line was
2950 $ $0 $@
2952 _ACEOF
2953 exec 5>>config.log
2955 cat <<_ASUNAME
2956 ## --------- ##
2957 ## Platform. ##
2958 ## --------- ##
2960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2972 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2977 _ASUNAME
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 $as_echo "PATH: $as_dir"
2985 done
2986 IFS=$as_save_IFS
2988 } >&5
2990 cat >&5 <<_ACEOF
2993 ## ----------- ##
2994 ## Core tests. ##
2995 ## ----------- ##
2997 _ACEOF
3000 # Keep a trace of the command line.
3001 # Strip out --no-create and --no-recursion so they do not pile up.
3002 # Strip out --silent because we don't want to record it for future runs.
3003 # Also quote any args containing shell meta-characters.
3004 # Make two passes to allow for proper duplicate-argument suppression.
3005 ac_configure_args=
3006 ac_configure_args0=
3007 ac_configure_args1=
3008 ac_must_keep_next=false
3009 for ac_pass in 1 2
3011 for ac_arg
3013 case $ac_arg in
3014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3016 | -silent | --silent | --silen | --sile | --sil)
3017 continue ;;
3018 *\'*)
3019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3020 esac
3021 case $ac_pass in
3022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3024 as_fn_append ac_configure_args1 " '$ac_arg'"
3025 if test $ac_must_keep_next = true; then
3026 ac_must_keep_next=false # Got value, back to normal.
3027 else
3028 case $ac_arg in
3029 *=* | --config-cache | -C | -disable-* | --disable-* \
3030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3032 | -with-* | --with-* | -without-* | --without-* | --x)
3033 case "$ac_configure_args0 " in
3034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3035 esac
3037 -* ) ac_must_keep_next=true ;;
3038 esac
3040 as_fn_append ac_configure_args " '$ac_arg'"
3042 esac
3043 done
3044 done
3045 { ac_configure_args0=; unset ac_configure_args0;}
3046 { ac_configure_args1=; unset ac_configure_args1;}
3048 # When interrupted or exit'd, cleanup temporary files, and complete
3049 # config.log. We remove comments because anyway the quotes in there
3050 # would cause problems or look ugly.
3051 # WARNING: Use '\'' to represent an apostrophe within the trap.
3052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3053 trap 'exit_status=$?
3054 # Save into config.log some information that might help in debugging.
3056 echo
3058 $as_echo "## ---------------- ##
3059 ## Cache variables. ##
3060 ## ---------------- ##"
3061 echo
3062 # The following way of writing the cache mishandles newlines in values,
3064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3065 eval ac_val=\$$ac_var
3066 case $ac_val in #(
3067 *${as_nl}*)
3068 case $ac_var in #(
3069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3070 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3071 esac
3072 case $ac_var in #(
3073 _ | IFS | as_nl) ;; #(
3074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3075 *) { eval $ac_var=; unset $ac_var;} ;;
3076 esac ;;
3077 esac
3078 done
3079 (set) 2>&1 |
3080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3081 *${as_nl}ac_space=\ *)
3082 sed -n \
3083 "s/'\''/'\''\\\\'\'''\''/g;
3084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3085 ;; #(
3087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3089 esac |
3090 sort
3092 echo
3094 $as_echo "## ----------------- ##
3095 ## Output variables. ##
3096 ## ----------------- ##"
3097 echo
3098 for ac_var in $ac_subst_vars
3100 eval ac_val=\$$ac_var
3101 case $ac_val in
3102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3103 esac
3104 $as_echo "$ac_var='\''$ac_val'\''"
3105 done | sort
3106 echo
3108 if test -n "$ac_subst_files"; then
3109 $as_echo "## ------------------- ##
3110 ## File substitutions. ##
3111 ## ------------------- ##"
3112 echo
3113 for ac_var in $ac_subst_files
3115 eval ac_val=\$$ac_var
3116 case $ac_val in
3117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3118 esac
3119 $as_echo "$ac_var='\''$ac_val'\''"
3120 done | sort
3121 echo
3124 if test -s confdefs.h; then
3125 $as_echo "## ----------- ##
3126 ## confdefs.h. ##
3127 ## ----------- ##"
3128 echo
3129 cat confdefs.h
3130 echo
3132 test "$ac_signal" != 0 &&
3133 $as_echo "$as_me: caught signal $ac_signal"
3134 $as_echo "$as_me: exit $exit_status"
3135 } >&5
3136 rm -f core *.core core.conftest.* &&
3137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3138 exit $exit_status
3140 for ac_signal in 1 2 13 15; do
3141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3142 done
3143 ac_signal=0
3145 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3146 rm -f -r conftest* confdefs.h
3148 $as_echo "/* confdefs.h */" > confdefs.h
3150 # Predefined preprocessor variables.
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_NAME "$PACKAGE_NAME"
3154 _ACEOF
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3158 _ACEOF
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3162 _ACEOF
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_STRING "$PACKAGE_STRING"
3166 _ACEOF
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3170 _ACEOF
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_URL "$PACKAGE_URL"
3174 _ACEOF
3177 # Let the site file select an alternate cache file if it wants to.
3178 # Prefer an explicitly selected file to automatically selected ones.
3179 ac_site_file1=NONE
3180 ac_site_file2=NONE
3181 if test -n "$CONFIG_SITE"; then
3182 # We do not want a PATH search for config.site.
3183 case $CONFIG_SITE in #((
3184 -*) ac_site_file1=./$CONFIG_SITE;;
3185 */*) ac_site_file1=$CONFIG_SITE;;
3186 *) ac_site_file1=./$CONFIG_SITE;;
3187 esac
3188 elif test "x$prefix" != xNONE; then
3189 ac_site_file1=$prefix/share/config.site
3190 ac_site_file2=$prefix/etc/config.site
3191 else
3192 ac_site_file1=$ac_default_prefix/share/config.site
3193 ac_site_file2=$ac_default_prefix/etc/config.site
3195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3197 test "x$ac_site_file" = xNONE && continue
3198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3201 sed 's/^/| /' "$ac_site_file" >&5
3202 . "$ac_site_file" \
3203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "failed to load site script $ac_site_file
3206 See \`config.log' for more details" "$LINENO" 5; }
3208 done
3210 if test -r "$cache_file"; then
3211 # Some versions of bash will fail to source /dev/null (special files
3212 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3215 $as_echo "$as_me: loading cache $cache_file" >&6;}
3216 case $cache_file in
3217 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3218 *) . "./$cache_file";;
3219 esac
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3223 $as_echo "$as_me: creating cache $cache_file" >&6;}
3224 >$cache_file
3227 # Check that the precious variables saved in the cache have kept the same
3228 # value.
3229 ac_cache_corrupted=false
3230 for ac_var in $ac_precious_vars; do
3231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3232 eval ac_new_set=\$ac_env_${ac_var}_set
3233 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3234 eval ac_new_val=\$ac_env_${ac_var}_value
3235 case $ac_old_set,$ac_new_set in
3236 set,)
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3238 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3239 ac_cache_corrupted=: ;;
3240 ,set)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3242 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3243 ac_cache_corrupted=: ;;
3244 ,);;
3246 if test "x$ac_old_val" != "x$ac_new_val"; then
3247 # differences in whitespace do not lead to failure.
3248 ac_old_val_w=`echo x $ac_old_val`
3249 ac_new_val_w=`echo x $ac_new_val`
3250 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3252 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3253 ac_cache_corrupted=:
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3256 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3257 eval $ac_var=\$ac_old_val
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3260 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3262 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3263 fi;;
3264 esac
3265 # Pass precious variables to config.status.
3266 if test "$ac_new_set" = set; then
3267 case $ac_new_val in
3268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3269 *) ac_arg=$ac_var=$ac_new_val ;;
3270 esac
3271 case " $ac_configure_args " in
3272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3273 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3274 esac
3276 done
3277 if $ac_cache_corrupted; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3281 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3284 ## -------------------- ##
3285 ## Main body of script. ##
3286 ## -------------------- ##
3288 ac_ext=c
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3302 gcc_version=`cat $srcdir/BASE-VER`
3304 # Determine the host, build, and target systems
3305 ac_aux_dir=
3306 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3307 if test -f "$ac_dir/install-sh"; then
3308 ac_aux_dir=$ac_dir
3309 ac_install_sh="$ac_aux_dir/install-sh -c"
3310 break
3311 elif test -f "$ac_dir/install.sh"; then
3312 ac_aux_dir=$ac_dir
3313 ac_install_sh="$ac_aux_dir/install.sh -c"
3314 break
3315 elif test -f "$ac_dir/shtool"; then
3316 ac_aux_dir=$ac_dir
3317 ac_install_sh="$ac_aux_dir/shtool install -c"
3318 break
3320 done
3321 if test -z "$ac_aux_dir"; then
3322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3325 # These three variables are undocumented and unsupported,
3326 # and are intended to be withdrawn in a future Autoconf release.
3327 # They can cause serious problems if a builder's source tree is in a directory
3328 # whose full name contains unusual characters.
3329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3334 # Make sure we can run config.sub.
3335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3336 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3339 $as_echo_n "checking build system type... " >&6; }
3340 if ${ac_cv_build+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 ac_build_alias=$build_alias
3344 test "x$ac_build_alias" = x &&
3345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3346 test "x$ac_build_alias" = x &&
3347 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3349 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3353 $as_echo "$ac_cv_build" >&6; }
3354 case $ac_cv_build in
3355 *-*-*) ;;
3356 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3357 esac
3358 build=$ac_cv_build
3359 ac_save_IFS=$IFS; IFS='-'
3360 set x $ac_cv_build
3361 shift
3362 build_cpu=$1
3363 build_vendor=$2
3364 shift; shift
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3367 build_os=$*
3368 IFS=$ac_save_IFS
3369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3373 $as_echo_n "checking host system type... " >&6; }
3374 if ${ac_cv_host+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test "x$host_alias" = x; then
3378 ac_cv_host=$ac_cv_build
3379 else
3380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3386 $as_echo "$ac_cv_host" >&6; }
3387 case $ac_cv_host in
3388 *-*-*) ;;
3389 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3390 esac
3391 host=$ac_cv_host
3392 ac_save_IFS=$IFS; IFS='-'
3393 set x $ac_cv_host
3394 shift
3395 host_cpu=$1
3396 host_vendor=$2
3397 shift; shift
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3400 host_os=$*
3401 IFS=$ac_save_IFS
3402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3406 $as_echo_n "checking target system type... " >&6; }
3407 if ${ac_cv_target+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test "x$target_alias" = x; then
3411 ac_cv_target=$ac_cv_host
3412 else
3413 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3419 $as_echo "$ac_cv_target" >&6; }
3420 case $ac_cv_target in
3421 *-*-*) ;;
3422 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3423 esac
3424 target=$ac_cv_target
3425 ac_save_IFS=$IFS; IFS='-'
3426 set x $ac_cv_target
3427 shift
3428 target_cpu=$1
3429 target_vendor=$2
3430 shift; shift
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3433 target_os=$*
3434 IFS=$ac_save_IFS
3435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3438 # The aliases save the names the user supplied, while $host etc.
3439 # will get canonicalized.
3440 test -n "$target_alias" &&
3441 test "$program_prefix$program_suffix$program_transform_name" = \
3442 NONENONEs,x,x, &&
3443 program_prefix=${target_alias}-
3445 # Determine the noncanonical host name, for Ada.
3446 case ${build_alias} in
3447 "") build_noncanonical=${build} ;;
3448 *) build_noncanonical=${build_alias} ;;
3449 esac
3451 case ${host_alias} in
3452 "") host_noncanonical=${build_noncanonical} ;;
3453 *) host_noncanonical=${host_alias} ;;
3454 esac
3459 # Determine the noncanonical target name, for directory use.
3460 case ${target_alias} in
3461 "") target_noncanonical=${host_noncanonical} ;;
3462 *) target_noncanonical=${target_alias} ;;
3463 esac
3468 # Used for constructing correct paths for offload compilers.
3469 real_target_noncanonical=${target_noncanonical}
3470 accel_dir_suffix=
3472 # Determine the target- and build-specific subdirectories
3474 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3475 # have matching libraries, they should use host libraries: Makefile.tpl
3476 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3477 # However, they still use the build modules, because the corresponding
3478 # host modules (e.g. bison) are only built for the host when bootstrap
3479 # finishes. So:
3480 # - build_subdir is where we find build modules, and never changes.
3481 # - build_libsubdir is where we find build libraries, and can be overridden.
3483 # Prefix 'build-' so this never conflicts with target_subdir.
3484 build_subdir="build-${build_noncanonical}"
3486 # Check whether --with-build-libsubdir was given.
3487 if test "${with_build_libsubdir+set}" = set; then :
3488 withval=$with_build_libsubdir; build_libsubdir="$withval"
3489 else
3490 build_libsubdir="$build_subdir"
3493 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3494 if ( test $srcdir = . && test -d gcc ) \
3495 || test -d $srcdir/../host-${host_noncanonical}; then
3496 host_subdir="host-${host_noncanonical}"
3497 else
3498 host_subdir=.
3500 # No prefix.
3501 target_subdir=${target_noncanonical}
3504 # Set program_transform_name
3505 test "$program_prefix" != NONE &&
3506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3516 # Check for bogus environment variables.
3517 # Test if LIBRARY_PATH contains the notation for the current directory
3518 # since this would lead to problems installing/building glibc.
3519 # LIBRARY_PATH contains the current directory if one of the following
3520 # is true:
3521 # - one of the terminals (":" and ";") is the first or last sign
3522 # - two terminals occur directly after each other
3523 # - the path contains an element with a dot in it
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3525 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3526 case ${LIBRARY_PATH} in
3527 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3528 library_path_setting="contains current directory"
3531 library_path_setting="ok"
3533 esac
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3535 $as_echo "$library_path_setting" >&6; }
3536 if test "$library_path_setting" != "ok"; then
3537 as_fn_error $? "
3538 *** LIBRARY_PATH shouldn't contain the current directory when
3539 *** building gcc. Please change the environment variable
3540 *** and run configure again." "$LINENO" 5
3543 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3544 # since this would lead to problems installing/building glibc.
3545 # GCC_EXEC_PREFIX contains the current directory if one of the following
3546 # is true:
3547 # - one of the terminals (":" and ";") is the first or last sign
3548 # - two terminals occur directly after each other
3549 # - the path contains an element with a dot in it
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3551 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3552 case ${GCC_EXEC_PREFIX} in
3553 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3554 gcc_exec_prefix_setting="contains current directory"
3557 gcc_exec_prefix_setting="ok"
3559 esac
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3561 $as_echo "$gcc_exec_prefix_setting" >&6; }
3562 if test "$gcc_exec_prefix_setting" != "ok"; then
3563 as_fn_error $? "
3564 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3565 *** building gcc. Please change the environment variable
3566 *** and run configure again." "$LINENO" 5
3569 # -----------
3570 # Directories
3571 # -----------
3573 # Specify the local prefix
3574 local_prefix=
3576 # Check whether --with-local-prefix was given.
3577 if test "${with_local_prefix+set}" = set; then :
3578 withval=$with_local_prefix; case "${withval}" in
3579 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3580 no) ;;
3581 *) local_prefix=$with_local_prefix ;;
3582 esac
3586 # Default local prefix if it is empty
3587 if test x$local_prefix = x; then
3588 local_prefix=/usr/local
3592 # Check whether --with-native-system-header-dir was given.
3593 if test "${with_native_system_header_dir+set}" = set; then :
3594 withval=$with_native_system_header_dir;
3595 case ${with_native_system_header_dir} in
3596 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3597 /* | [A-Za-z]:[\\/]*) ;;
3598 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3599 esac
3600 configured_native_system_header_dir="${withval}"
3602 else
3603 configured_native_system_header_dir=
3608 # Check whether --with-build-sysroot was given.
3609 if test "${with_build_sysroot+set}" = set; then :
3610 withval=$with_build_sysroot; if test x"$withval" != x ; then
3611 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3613 else
3614 SYSROOT_CFLAGS_FOR_TARGET=
3619 if test "x$prefix" = xNONE; then
3620 test_prefix=/usr/local
3621 else
3622 test_prefix=$prefix
3624 if test "x$exec_prefix" = xNONE; then
3625 test_exec_prefix=$test_prefix
3626 else
3627 test_exec_prefix=$exec_prefix
3631 # Check whether --with-sysroot was given.
3632 if test "${with_sysroot+set}" = set; then :
3633 withval=$with_sysroot;
3634 case ${with_sysroot} in
3635 /) ;;
3636 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3637 esac
3638 case ${with_sysroot} in
3639 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3640 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3641 esac
3643 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3644 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3646 case ${TARGET_SYSTEM_ROOT} in
3647 "${test_prefix}"|"${test_prefix}/"*|\
3648 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3649 '${prefix}'|'${prefix}/'*|\
3650 '${exec_prefix}'|'${exec_prefix}/'*)
3651 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3652 TARGET_SYSTEM_ROOT_DEFINE="$t"
3654 esac
3656 else
3658 TARGET_SYSTEM_ROOT=
3659 TARGET_SYSTEM_ROOT_DEFINE=
3660 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3668 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3669 # passed in by the toplevel make and thus we'd get different behavior
3670 # depending on where we built the sources.
3671 gcc_gxx_include_dir=
3672 # Specify the g++ header file directory
3674 # Check whether --with-gxx-include-dir was given.
3675 if test "${with_gxx_include_dir+set}" = set; then :
3676 withval=$with_gxx_include_dir; case "${withval}" in
3677 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3678 no) ;;
3679 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3680 esac
3684 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3685 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3686 # relative to the sysroot.
3687 gcc_gxx_include_dir_add_sysroot=0
3689 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3690 if test x${gcc_gxx_include_dir} = x; then
3691 if test x${enable_version_specific_runtime_libs} = xyes; then
3692 gcc_gxx_include_dir='${libsubdir}/include/c++'
3693 else
3694 libstdcxx_incdir='include/c++/$(version)'
3695 if test x$host != x$target; then
3696 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3698 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3700 elif test "${with_sysroot+set}" = set; then
3701 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3702 if test "${gcc_gxx_without_sysroot}"; then
3703 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3704 gcc_gxx_include_dir_add_sysroot=1
3709 # Check whether --with-cpp_install_dir was given.
3710 if test "${with_cpp_install_dir+set}" = set; then :
3711 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3712 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3713 elif test x$withval != xno; then
3714 cpp_install_dir=$withval
3719 # We would like to our source tree to be readonly. However when releases or
3720 # pre-releases are generated, the flex/bison generated files as well as the
3721 # various formats of manuals need to be included along with the rest of the
3722 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3723 # just that.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3726 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3727 # Check whether --enable-generated-files-in-srcdir was given.
3728 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3729 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3730 else
3731 generated_files_in_srcdir=no
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3736 $as_echo "$generated_files_in_srcdir" >&6; }
3738 if test "$generated_files_in_srcdir" = "yes"; then
3739 GENINSRC=''
3740 else
3741 GENINSRC='#'
3745 # -------------------
3746 # Find default linker
3747 # -------------------
3749 # With GNU ld
3751 # Check whether --with-gnu-ld was given.
3752 if test "${with_gnu_ld+set}" = set; then :
3753 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3754 else
3755 gnu_ld_flag=no
3759 case $target in
3760 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3761 *) ld64_flag=no;;
3762 esac
3764 # With pre-defined ld
3766 # Check whether --with-ld was given.
3767 if test "${with_ld+set}" = set; then :
3768 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3771 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3772 if test ! -x "$DEFAULT_LINKER"; then
3773 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3774 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3775 gnu_ld_flag=yes
3776 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3777 ld64_flag=yes
3780 cat >>confdefs.h <<_ACEOF
3781 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3782 _ACEOF
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3787 $as_echo_n "checking whether a default linker was specified... " >&6; }
3788 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3789 if test x"$gnu_ld_flag" = x"no"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3791 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3792 else
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3794 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3796 else
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3801 # With demangler in GNU ld
3803 # Check whether --with-demangler-in-ld was given.
3804 if test "${with_demangler_in_ld+set}" = set; then :
3805 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3806 else
3807 demangler_in_ld=yes
3811 # ----------------------
3812 # Find default assembler
3813 # ----------------------
3815 # With GNU as
3817 # Check whether --with-gnu-as was given.
3818 if test "${with_gnu_as+set}" = set; then :
3819 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3820 else
3821 gas_flag=no
3826 # Check whether --with-as was given.
3827 if test "${with_as+set}" = set; then :
3828 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3831 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3832 if test ! -x "$DEFAULT_ASSEMBLER"; then
3833 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3834 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3835 gas_flag=yes
3838 cat >>confdefs.h <<_ACEOF
3839 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3840 _ACEOF
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3845 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3846 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3847 if test x"$gas_flag" = x"no"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3849 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3850 else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3852 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3854 else
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3859 # ---------------
3860 # Find C compiler
3861 # ---------------
3863 # If a non-executable a.out is present (e.g. created by GNU as above even if
3864 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3865 # file, even when creating an executable, so an execution test fails.
3866 # Remove possible default executable files to avoid this.
3868 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3869 # Autoconf includes it.
3870 rm -f a.out a.exe b.out
3872 # Find the native compiler
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3902 IFS=$as_save_IFS
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3917 if test -z "$ac_cv_prog_CC"; then
3918 ac_ct_CC=$CC
3919 # Extract the first word of "gcc", so it can be a program name with args.
3920 set dummy gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CC="gcc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949 $as_echo "$ac_ct_CC" >&6; }
3950 else
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3955 if test "x$ac_ct_CC" = x; then
3956 CC=""
3957 else
3958 case $cross_compiling:$ac_tool_warned in
3959 yes:)
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3963 esac
3964 CC=$ac_ct_CC
3966 else
3967 CC="$ac_cv_prog_CC"
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CC+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4011 if test -z "$CC"; then
4012 # Extract the first word of "cc", so it can be a program name with args.
4013 set dummy cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 else
4022 ac_prog_rejected=no
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031 ac_prog_rejected=yes
4032 continue
4034 ac_cv_prog_CC="cc"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4040 IFS=$as_save_IFS
4042 if test $ac_prog_rejected = yes; then
4043 # We found a bogon in the path, so make sure we never use it.
4044 set dummy $ac_cv_prog_CC
4045 shift
4046 if test $# != 0; then
4047 # We chose a different compiler from the bogus one.
4048 # However, it has the same basename, so the bogon will be chosen
4049 # first if we set CC to just the basename; use the full file name.
4050 shift
4051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4056 CC=$ac_cv_prog_CC
4057 if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in cl.exe
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 CC=$ac_cv_prog_CC
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4108 test -n "$CC" && break
4109 done
4111 if test -z "$CC"; then
4112 ac_ct_CC=$CC
4113 for ac_prog in cl.exe
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 $as_echo "$ac_ct_CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$ac_ct_CC" && break
4153 done
4155 if test "x$ac_ct_CC" = x; then
4156 CC=""
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 CC=$ac_ct_CC
4171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "no acceptable C compiler found in \$PATH
4174 See \`config.log' for more details" "$LINENO" 5; }
4176 # Provide some information about the compiler.
4177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4178 set X $ac_compile
4179 ac_compiler=$2
4180 for ac_option in --version -v -V -qversion; do
4181 { { ac_try="$ac_compiler $ac_option >&5"
4182 case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4189 ac_status=$?
4190 if test -s conftest.err; then
4191 sed '10a\
4192 ... rest of stderr output deleted ...
4193 10q' conftest.err >conftest.er1
4194 cat conftest.er1 >&5
4196 rm -f conftest.er1 conftest.err
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }
4199 done
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 ac_clean_files_save=$ac_clean_files
4213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4214 # Try to create an executable without -o first, disregard a.out.
4215 # It will help us diagnose broken compilers, and finding out an intuition
4216 # of exeext.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4218 $as_echo_n "checking whether the C compiler works... " >&6; }
4219 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4221 # The possible output files:
4222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224 ac_rmfiles=
4225 for ac_file in $ac_files
4227 case $ac_file in
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4230 esac
4231 done
4232 rm -f $ac_rmfiles
4234 if { { ac_try="$ac_link_default"
4235 case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238 esac
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_link_default") 2>&5
4242 ac_status=$?
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }; then :
4245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4246 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4248 # so that the user can short-circuit this test for compilers unknown to
4249 # Autoconf.
4250 for ac_file in $ac_files ''
4252 test -f "$ac_file" || continue
4253 case $ac_file in
4254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4256 [ab].out )
4257 # We found the default executable, but exeext='' is most
4258 # certainly right.
4259 break;;
4260 *.* )
4261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4262 then :; else
4263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4265 # We set ac_cv_exeext here because the later test for it is not
4266 # safe: cross compilers may not add the suffix if given an `-o'
4267 # argument, so we may need to know it at that point already.
4268 # Even if this section looks crufty: it has the advantage of
4269 # actually working.
4270 break;;
4272 break;;
4273 esac
4274 done
4275 test "$ac_cv_exeext" = no && ac_cv_exeext=
4277 else
4278 ac_file=''
4280 if test -z "$ac_file"; then :
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283 $as_echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4288 as_fn_error 77 "C compiler cannot create executables
4289 See \`config.log' for more details" "$LINENO" 5; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4295 $as_echo_n "checking for C compiler default output file name... " >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4297 $as_echo "$ac_file" >&6; }
4298 ac_exeext=$ac_cv_exeext
4300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4301 ac_clean_files=$ac_clean_files_save
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4303 $as_echo_n "checking for suffix of executables... " >&6; }
4304 if { { ac_try="$ac_link"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; then :
4315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4317 # work properly (i.e., refer to `conftest.exe'), while it won't with
4318 # `rm'.
4319 for ac_file in conftest.exe conftest conftest.*; do
4320 test -f "$ac_file" || continue
4321 case $ac_file in
4322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 break;;
4325 * ) break;;
4326 esac
4327 done
4328 else
4329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4331 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4332 See \`config.log' for more details" "$LINENO" 5; }
4334 rm -f conftest conftest$ac_cv_exeext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4336 $as_echo "$ac_cv_exeext" >&6; }
4338 rm -f conftest.$ac_ext
4339 EXEEXT=$ac_cv_exeext
4340 ac_exeext=$EXEEXT
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <stdio.h>
4345 main ()
4347 FILE *f = fopen ("conftest.out", "w");
4348 return ferror (f) || fclose (f) != 0;
4351 return 0;
4353 _ACEOF
4354 ac_clean_files="$ac_clean_files conftest.out"
4355 # Check that the compiler produces executables we can run. If not, either
4356 # the compiler is broken, or we cross compile.
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4358 $as_echo_n "checking whether we are cross compiling... " >&6; }
4359 if test "$cross_compiling" != yes; then
4360 { { ac_try="$ac_link"
4361 case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364 esac
4365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4366 $as_echo "$ac_try_echo"; } >&5
4367 (eval "$ac_link") 2>&5
4368 ac_status=$?
4369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4370 test $ac_status = 0; }
4371 if { ac_try='./conftest$ac_cv_exeext'
4372 { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }; }; then
4382 cross_compiling=no
4383 else
4384 if test "$cross_compiling" = maybe; then
4385 cross_compiling=yes
4386 else
4387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4389 as_fn_error $? "cannot run C compiled programs.
4390 If you meant to cross compile, use \`--host'.
4391 See \`config.log' for more details" "$LINENO" 5; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4396 $as_echo "$cross_compiling" >&6; }
4398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4399 ac_clean_files=$ac_clean_files_save
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4401 $as_echo_n "checking for suffix of object files... " >&6; }
4402 if ${ac_cv_objext+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4409 main ()
4413 return 0;
4415 _ACEOF
4416 rm -f conftest.o conftest.obj
4417 if { { ac_try="$ac_compile"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_compile") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; then :
4428 for ac_file in conftest.o conftest.obj conftest.*; do
4429 test -f "$ac_file" || continue;
4430 case $ac_file in
4431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4433 break;;
4434 esac
4435 done
4436 else
4437 $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4442 as_fn_error $? "cannot compute suffix of object files: cannot compile
4443 See \`config.log' for more details" "$LINENO" 5; }
4445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4448 $as_echo "$ac_cv_objext" >&6; }
4449 OBJEXT=$ac_cv_objext
4450 ac_objext=$OBJEXT
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4453 if ${ac_cv_c_compiler_gnu+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4460 main ()
4462 #ifndef __GNUC__
4463 choke me
4464 #endif
4467 return 0;
4469 _ACEOF
4470 if ac_fn_c_try_compile "$LINENO"; then :
4471 ac_compiler_gnu=yes
4472 else
4473 ac_compiler_gnu=no
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4481 if test $ac_compiler_gnu = yes; then
4482 GCC=yes
4483 else
4484 GCC=
4486 ac_test_CFLAGS=${CFLAGS+set}
4487 ac_save_CFLAGS=$CFLAGS
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4490 if ${ac_cv_prog_cc_g+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 ac_save_c_werror_flag=$ac_c_werror_flag
4494 ac_c_werror_flag=yes
4495 ac_cv_prog_cc_g=no
4496 CFLAGS="-g"
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4501 main ()
4505 return 0;
4507 _ACEOF
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_prog_cc_g=yes
4510 else
4511 CFLAGS=""
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 :
4525 else
4526 ac_c_werror_flag=$ac_save_c_werror_flag
4527 CFLAGS="-g"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4536 return 0;
4538 _ACEOF
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 ac_cv_prog_cc_g=yes
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_c_werror_flag=$ac_save_c_werror_flag
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4550 $as_echo "$ac_cv_prog_cc_g" >&6; }
4551 if test "$ac_test_CFLAGS" = set; then
4552 CFLAGS=$ac_save_CFLAGS
4553 elif test $ac_cv_prog_cc_g = yes; then
4554 if test "$GCC" = yes; then
4555 CFLAGS="-g -O2"
4556 else
4557 CFLAGS="-g"
4559 else
4560 if test "$GCC" = yes; then
4561 CFLAGS="-O2"
4562 else
4563 CFLAGS=
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4568 if ${ac_cv_prog_cc_c89+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_cv_prog_cc_c89=no
4572 ac_save_CC=$CC
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdarg.h>
4576 #include <stdio.h>
4577 struct stat;
4578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4579 struct buf { int x; };
4580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4581 static char *e (p, i)
4582 char **p;
4583 int i;
4585 return p[i];
4587 static char *f (char * (*g) (char **, int), char **p, ...)
4589 char *s;
4590 va_list v;
4591 va_start (v,p);
4592 s = g (p, va_arg (v,int));
4593 va_end (v);
4594 return s;
4597 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4598 function prototypes and stuff, but not '\xHH' hex character constants.
4599 These don't provoke an error unfortunately, instead are silently treated
4600 as 'x'. The following induces an error, until -std is added to get
4601 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4602 array size at least. It's necessary to write '\x00'==0 to get something
4603 that's true only with -std. */
4604 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4606 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4607 inside strings and character constants. */
4608 #define FOO(x) 'x'
4609 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4611 int test (int i, double x);
4612 struct s1 {int (*f) (int a);};
4613 struct s2 {int (*f) (double a);};
4614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4615 int argc;
4616 char **argv;
4618 main ()
4620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4622 return 0;
4624 _ACEOF
4625 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4626 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4628 CC="$ac_save_CC $ac_arg"
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 ac_cv_prog_cc_c89=$ac_arg
4632 rm -f core conftest.err conftest.$ac_objext
4633 test "x$ac_cv_prog_cc_c89" != "xno" && break
4634 done
4635 rm -f conftest.$ac_ext
4636 CC=$ac_save_CC
4639 # AC_CACHE_VAL
4640 case "x$ac_cv_prog_cc_c89" in
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4643 $as_echo "none needed" >&6; } ;;
4644 xno)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4646 $as_echo "unsupported" >&6; } ;;
4648 CC="$CC $ac_cv_prog_cc_c89"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4650 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4651 esac
4652 if test "x$ac_cv_prog_cc_c89" != xno; then :
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 ac_ext=cpp
4663 ac_cpp='$CXXCPP $CPPFLAGS'
4664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4667 if test -z "$CXX"; then
4668 if test -n "$CCC"; then
4669 CXX=$CCC
4670 else
4671 if test -n "$ac_tool_prefix"; then
4672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_prog_CXX+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if test -n "$CXX"; then
4682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4697 IFS=$as_save_IFS
4701 CXX=$ac_cv_prog_CXX
4702 if test -n "$CXX"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4704 $as_echo "$CXX" >&6; }
4705 else
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4711 test -n "$CXX" && break
4712 done
4714 if test -z "$CXX"; then
4715 ac_ct_CXX=$CXX
4716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4718 # Extract the first word of "$ac_prog", so it can be a program name with args.
4719 set dummy $ac_prog; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$ac_ct_CXX"; then
4726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_ac_ct_CXX="$ac_prog"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4746 if test -n "$ac_ct_CXX"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4748 $as_echo "$ac_ct_CXX" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4755 test -n "$ac_ct_CXX" && break
4756 done
4758 if test "x$ac_ct_CXX" = x; then
4759 CXX="g++"
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762 yes:)
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4766 esac
4767 CXX=$ac_ct_CXX
4773 # Provide some information about the compiler.
4774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4775 set X $ac_compile
4776 ac_compiler=$2
4777 for ac_option in --version -v -V -qversion; do
4778 { { ac_try="$ac_compiler $ac_option >&5"
4779 case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4782 esac
4783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4784 $as_echo "$ac_try_echo"; } >&5
4785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4786 ac_status=$?
4787 if test -s conftest.err; then
4788 sed '10a\
4789 ... rest of stderr output deleted ...
4790 10q' conftest.err >conftest.er1
4791 cat conftest.er1 >&5
4793 rm -f conftest.er1 conftest.err
4794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4795 test $ac_status = 0; }
4796 done
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4800 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4807 main ()
4809 #ifndef __GNUC__
4810 choke me
4811 #endif
4814 return 0;
4816 _ACEOF
4817 if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_compiler_gnu=yes
4819 else
4820 ac_compiler_gnu=no
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4828 if test $ac_compiler_gnu = yes; then
4829 GXX=yes
4830 else
4831 GXX=
4833 ac_test_CXXFLAGS=${CXXFLAGS+set}
4834 ac_save_CXXFLAGS=$CXXFLAGS
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4837 if ${ac_cv_prog_cxx_g+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4841 ac_cxx_werror_flag=yes
4842 ac_cv_prog_cxx_g=no
4843 CXXFLAGS="-g"
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4848 main ()
4852 return 0;
4854 _ACEOF
4855 if ac_fn_cxx_try_compile "$LINENO"; then :
4856 ac_cv_prog_cxx_g=yes
4857 else
4858 CXXFLAGS=""
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 :
4872 else
4873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4874 CXXFLAGS="-g"
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4879 main ()
4883 return 0;
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887 ac_cv_prog_cxx_g=yes
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4898 if test "$ac_test_CXXFLAGS" = set; then
4899 CXXFLAGS=$ac_save_CXXFLAGS
4900 elif test $ac_cv_prog_cxx_g = yes; then
4901 if test "$GXX" = yes; then
4902 CXXFLAGS="-g -O2"
4903 else
4904 CXXFLAGS="-g"
4906 else
4907 if test "$GXX" = yes; then
4908 CXXFLAGS="-O2"
4909 else
4910 CXXFLAGS=
4913 ac_ext=c
4914 ac_cpp='$CPP $CPPFLAGS'
4915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 if test -n "$ac_tool_prefix"; then
4923 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4924 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_GNATBIND+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$GNATBIND"; then
4931 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 GNATBIND=$ac_cv_prog_GNATBIND
4951 if test -n "$GNATBIND"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4953 $as_echo "$GNATBIND" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4961 if test -z "$ac_cv_prog_GNATBIND"; then
4962 ac_ct_GNATBIND=$GNATBIND
4963 # Extract the first word of "gnatbind", so it can be a program name with args.
4964 set dummy gnatbind; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$ac_ct_GNATBIND"; then
4971 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4984 done
4985 done
4986 IFS=$as_save_IFS
4990 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4991 if test -n "$ac_ct_GNATBIND"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4993 $as_echo "$ac_ct_GNATBIND" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4999 if test "x$ac_ct_GNATBIND" = x; then
5000 GNATBIND="no"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008 GNATBIND=$ac_ct_GNATBIND
5010 else
5011 GNATBIND="$ac_cv_prog_GNATBIND"
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_GNATMAKE+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$GNATMAKE"; then
5023 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 GNATMAKE=$ac_cv_prog_GNATMAKE
5043 if test -n "$GNATMAKE"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5045 $as_echo "$GNATMAKE" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5053 if test -z "$ac_cv_prog_GNATMAKE"; then
5054 ac_ct_GNATMAKE=$GNATMAKE
5055 # Extract the first word of "gnatmake", so it can be a program name with args.
5056 set dummy gnatmake; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$ac_ct_GNATMAKE"; then
5063 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5083 if test -n "$ac_ct_GNATMAKE"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5085 $as_echo "$ac_ct_GNATMAKE" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5091 if test "x$ac_ct_GNATMAKE" = x; then
5092 GNATMAKE="no"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 GNATMAKE=$ac_ct_GNATMAKE
5102 else
5103 GNATMAKE="$ac_cv_prog_GNATMAKE"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5107 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5108 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 cat >conftest.adb <<EOF
5112 procedure conftest is begin null; end conftest;
5114 acx_cv_cc_gcc_supports_ada=no
5115 # There is a bug in old released versions of GCC which causes the
5116 # driver to exit successfully when the appropriate language module
5117 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5118 # Therefore we must check for the error message as well as an
5119 # unsuccessful exit.
5120 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5121 # given a .adb file, but produce no object file. So we must check
5122 # if an object file was really produced to guard against this.
5123 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5124 if test x"$errors" = x && test -f conftest.$ac_objext; then
5125 acx_cv_cc_gcc_supports_ada=yes
5127 rm -f conftest.*
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5130 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5132 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5133 have_gnat=yes
5134 else
5135 have_gnat=no
5139 # Do configure tests with the C++ compiler, since that's what we build with.
5140 ac_ext=cpp
5141 ac_cpp='$CXXCPP $CPPFLAGS'
5142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5147 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5148 # optimizations to be activated explicitly by the toplevel.
5149 case "$CC" in
5150 */prev-gcc/xgcc*) ;;
5151 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5152 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5153 esac
5157 # Determine PICFLAG for target gnatlib.
5162 case "${target}" in
5163 # PIC is the default on some targets or must not be used.
5164 *-*-darwin*)
5165 # For darwin, common symbols are not allowed in MH_DYLIB files
5166 case "${CFLAGS}" in
5167 # If we are using a compiler supporting mdynamic-no-pic
5168 # and the option has been tested as safe to add, then cancel
5169 # it here, since the code generated is incompatible with shared
5170 # libs.
5171 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5172 *) PICFLAG_FOR_TARGET=-fno-common ;;
5173 esac
5175 alpha*-dec-osf5*)
5176 # PIC is the default.
5178 hppa*64*-*-hpux*)
5179 # PIC is the default for 64-bit PA HP-UX.
5181 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5183 i[34567]86-*-mingw* | x86_64-*-mingw*)
5185 i[34567]86-*-interix[3-9]*)
5186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5187 # Instead, we relocate shared libraries at runtime.
5189 i[34567]86-*-nto-qnx*)
5190 # QNX uses GNU C++, but need to define -shared option too, otherwise
5191 # it will coredump.
5192 PICFLAG_FOR_TARGET='-fPIC -shared'
5194 i[34567]86-pc-msdosdjgpp*)
5195 # DJGPP does not support shared libraries at all.
5197 ia64*-*-hpux*)
5198 # On IA64 HP-UX, PIC is the default but the pic flag
5199 # sets the default TLS model and affects inlining.
5200 PICFLAG_FOR_TARGET=-fPIC
5202 mips-sgi-irix6*)
5203 # PIC is the default.
5205 rs6000-ibm-aix* | powerpc-ibm-aix*)
5206 # All AIX code is PIC.
5209 # Some targets support both -fPIC and -fpic, but prefer the latter.
5210 # FIXME: Why?
5211 i[34567]86-*-* | x86_64-*-*)
5212 PICFLAG_FOR_TARGET=-fpic
5214 # FIXME: Override -fPIC default in libgcc only?
5215 sh-*-linux* | sh[2346lbe]*-*-linux*)
5216 PICFLAG_FOR_TARGET=-fpic
5218 # FIXME: Simplify to sh*-*-netbsd*?
5219 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5220 sh64-*-netbsd* | sh64l*-*-netbsd*)
5221 PICFLAG_FOR_TARGET=-fpic
5223 # Default to -fPIC unless specified otherwise.
5225 PICFLAG_FOR_TARGET=-fPIC
5227 esac
5229 # If the user explicitly uses -fpic/-fPIC, keep that.
5230 case "${CFLAGS_FOR_TARGET}" in
5231 *-fpic*)
5232 PICFLAG_FOR_TARGET=-fpic
5234 *-fPIC*)
5235 PICFLAG_FOR_TARGET=-fPIC
5237 esac
5241 # -------------------------
5242 # Check C compiler features
5243 # -------------------------
5246 ac_ext=cpp
5247 ac_cpp='$CXXCPP $CPPFLAGS'
5248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5252 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5253 if test -z "$CXXCPP"; then
5254 if ${ac_cv_prog_CXXCPP+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 # Double quotes because CXXCPP needs to be expanded
5258 for CXXCPP in "$CXX -E" "/lib/cpp"
5260 ac_preproc_ok=false
5261 for ac_cxx_preproc_warn_flag in '' yes
5263 # Use a header file that comes with gcc, so configuring glibc
5264 # with a fresh cross-compiler works.
5265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5266 # <limits.h> exists even on freestanding compilers.
5267 # On the NeXT, cc -E runs the code through the compiler's parser,
5268 # not just through cpp. "Syntax error" is here to catch this case.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276 Syntax error
5277 _ACEOF
5278 if ac_fn_cxx_try_cpp "$LINENO"; then :
5280 else
5281 # Broken: fails on valid input.
5282 continue
5284 rm -f conftest.err conftest.i conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether nonexistent headers
5287 # can be detected and how.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <ac_nonexistent.h>
5291 _ACEOF
5292 if ac_fn_cxx_try_cpp "$LINENO"; then :
5293 # Broken: success on invalid input.
5294 continue
5295 else
5296 # Passes both tests.
5297 ac_preproc_ok=:
5298 break
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5302 done
5303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5304 rm -f conftest.i conftest.err conftest.$ac_ext
5305 if $ac_preproc_ok; then :
5306 break
5309 done
5310 ac_cv_prog_CXXCPP=$CXXCPP
5313 CXXCPP=$ac_cv_prog_CXXCPP
5314 else
5315 ac_cv_prog_CXXCPP=$CXXCPP
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5318 $as_echo "$CXXCPP" >&6; }
5319 ac_preproc_ok=false
5320 for ac_cxx_preproc_warn_flag in '' yes
5322 # Use a header file that comes with gcc, so configuring glibc
5323 # with a fresh cross-compiler works.
5324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5325 # <limits.h> exists even on freestanding compilers.
5326 # On the NeXT, cc -E runs the code through the compiler's parser,
5327 # not just through cpp. "Syntax error" is here to catch this case.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #ifdef __STDC__
5331 # include <limits.h>
5332 #else
5333 # include <assert.h>
5334 #endif
5335 Syntax error
5336 _ACEOF
5337 if ac_fn_cxx_try_cpp "$LINENO"; then :
5339 else
5340 # Broken: fails on valid input.
5341 continue
5343 rm -f conftest.err conftest.i conftest.$ac_ext
5345 # OK, works on sane cases. Now check whether nonexistent headers
5346 # can be detected and how.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #include <ac_nonexistent.h>
5350 _ACEOF
5351 if ac_fn_cxx_try_cpp "$LINENO"; then :
5352 # Broken: success on invalid input.
5353 continue
5354 else
5355 # Passes both tests.
5356 ac_preproc_ok=:
5357 break
5359 rm -f conftest.err conftest.i conftest.$ac_ext
5361 done
5362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5363 rm -f conftest.i conftest.err conftest.$ac_ext
5364 if $ac_preproc_ok; then :
5366 else
5367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5369 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5370 See \`config.log' for more details" "$LINENO" 5; }
5373 ac_ext=cpp
5374 ac_cpp='$CXXCPP $CPPFLAGS'
5375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5381 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5382 if ${ac_cv_path_GREP+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -z "$GREP"; then
5386 ac_path_GREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in grep ggrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_GREP" || continue
5397 # Check for GNU ac_path_GREP and select it if it is found.
5398 # Check for GNU $ac_path_GREP
5399 case `"$ac_path_GREP" --version 2>&1` in
5400 *GNU*)
5401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5403 ac_count=0
5404 $as_echo_n 0123456789 >"conftest.in"
5405 while :
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo 'GREP' >> "conftest.nl"
5411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_GREP="$ac_path_GREP"
5417 ac_path_GREP_max=$ac_count
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5421 done
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5425 $ac_path_GREP_found && break 3
5426 done
5427 done
5428 done
5429 IFS=$as_save_IFS
5430 if test -z "$ac_cv_path_GREP"; then
5431 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433 else
5434 ac_cv_path_GREP=$GREP
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5439 $as_echo "$ac_cv_path_GREP" >&6; }
5440 GREP="$ac_cv_path_GREP"
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5444 $as_echo_n "checking for egrep... " >&6; }
5445 if ${ac_cv_path_EGREP+:} false; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5449 then ac_cv_path_EGREP="$GREP -E"
5450 else
5451 if test -z "$EGREP"; then
5452 ac_path_EGREP_found=false
5453 # Loop through the user's path and test for each of PROGNAME-LIST
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in egrep; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5462 as_fn_executable_p "$ac_path_EGREP" || continue
5463 # Check for GNU ac_path_EGREP and select it if it is found.
5464 # Check for GNU $ac_path_EGREP
5465 case `"$ac_path_EGREP" --version 2>&1` in
5466 *GNU*)
5467 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5469 ac_count=0
5470 $as_echo_n 0123456789 >"conftest.in"
5471 while :
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 $as_echo 'EGREP' >> "conftest.nl"
5477 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 as_fn_arith $ac_count + 1 && ac_count=$as_val
5480 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_EGREP="$ac_path_EGREP"
5483 ac_path_EGREP_max=$ac_count
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5487 done
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5491 $ac_path_EGREP_found && break 3
5492 done
5493 done
5494 done
5495 IFS=$as_save_IFS
5496 if test -z "$ac_cv_path_EGREP"; then
5497 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5499 else
5500 ac_cv_path_EGREP=$EGREP
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5506 $as_echo "$ac_cv_path_EGREP" >&6; }
5507 EGREP="$ac_cv_path_EGREP"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5511 $as_echo_n "checking for ANSI C header files... " >&6; }
5512 if ${ac_cv_header_stdc+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <stdlib.h>
5518 #include <stdarg.h>
5519 #include <string.h>
5520 #include <float.h>
5523 main ()
5527 return 0;
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_header_stdc=yes
5532 else
5533 ac_cv_header_stdc=no
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 if test $ac_cv_header_stdc = yes; then
5538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <string.h>
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "memchr" >/dev/null 2>&1; then :
5547 else
5548 ac_cv_header_stdc=no
5550 rm -f conftest*
5554 if test $ac_cv_header_stdc = yes; then
5555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5558 #include <stdlib.h>
5560 _ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "free" >/dev/null 2>&1; then :
5564 else
5565 ac_cv_header_stdc=no
5567 rm -f conftest*
5571 if test $ac_cv_header_stdc = yes; then
5572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5573 if test "$cross_compiling" = yes; then :
5575 else
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #include <ctype.h>
5579 #include <stdlib.h>
5580 #if ((' ' & 0x0FF) == 0x020)
5581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5583 #else
5584 # define ISLOWER(c) \
5585 (('a' <= (c) && (c) <= 'i') \
5586 || ('j' <= (c) && (c) <= 'r') \
5587 || ('s' <= (c) && (c) <= 'z'))
5588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5589 #endif
5591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5593 main ()
5595 int i;
5596 for (i = 0; i < 256; i++)
5597 if (XOR (islower (i), ISLOWER (i))
5598 || toupper (i) != TOUPPER (i))
5599 return 2;
5600 return 0;
5602 _ACEOF
5603 if ac_fn_cxx_try_run "$LINENO"; then :
5605 else
5606 ac_cv_header_stdc=no
5608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5609 conftest.$ac_objext conftest.beam conftest.$ac_ext
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5615 $as_echo "$ac_cv_header_stdc" >&6; }
5616 if test $ac_cv_header_stdc = yes; then
5618 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5623 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5624 inttypes.h stdint.h unistd.h
5625 do :
5626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5627 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5630 cat >>confdefs.h <<_ACEOF
5631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5632 _ACEOF
5636 done
5640 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5641 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5642 MINIX=yes
5643 else
5644 MINIX=
5648 if test "$MINIX" = yes; then
5650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5656 $as_echo "#define _MINIX 1" >>confdefs.h
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5662 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5663 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5669 # define __EXTENSIONS__ 1
5670 $ac_includes_default
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_cxx_try_compile "$LINENO"; then :
5680 ac_cv_safe_to_define___extensions__=yes
5681 else
5682 ac_cv_safe_to_define___extensions__=no
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5687 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5688 test $ac_cv_safe_to_define___extensions__ = yes &&
5689 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5691 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5693 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5695 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5697 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5700 ac_ext=c
5701 ac_cpp='$CPP $CPPFLAGS'
5702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5707 # On Suns, sometimes $CPP names a directory.
5708 if test -n "$CPP" && test -d "$CPP"; then
5709 CPP=
5711 if test -z "$CPP"; then
5712 if ${ac_cv_prog_CPP+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 # Double quotes because CPP needs to be expanded
5716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5718 ac_preproc_ok=false
5719 for ac_c_preproc_warn_flag in '' yes
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #ifdef __STDC__
5730 # include <limits.h>
5731 #else
5732 # include <assert.h>
5733 #endif
5734 Syntax error
5735 _ACEOF
5736 if ac_fn_c_try_cpp "$LINENO"; then :
5738 else
5739 # Broken: fails on valid input.
5740 continue
5742 rm -f conftest.err conftest.i conftest.$ac_ext
5744 # OK, works on sane cases. Now check whether nonexistent headers
5745 # can be detected and how.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <ac_nonexistent.h>
5749 _ACEOF
5750 if ac_fn_c_try_cpp "$LINENO"; then :
5751 # Broken: success on invalid input.
5752 continue
5753 else
5754 # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5758 rm -f conftest.err conftest.i conftest.$ac_ext
5760 done
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.i conftest.err conftest.$ac_ext
5763 if $ac_preproc_ok; then :
5764 break
5767 done
5768 ac_cv_prog_CPP=$CPP
5771 CPP=$ac_cv_prog_CPP
5772 else
5773 ac_cv_prog_CPP=$CPP
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5776 $as_echo "$CPP" >&6; }
5777 ac_preproc_ok=false
5778 for ac_c_preproc_warn_flag in '' yes
5780 # Use a header file that comes with gcc, so configuring glibc
5781 # with a fresh cross-compiler works.
5782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5783 # <limits.h> exists even on freestanding compilers.
5784 # On the NeXT, cc -E runs the code through the compiler's parser,
5785 # not just through cpp. "Syntax error" is here to catch this case.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #ifdef __STDC__
5789 # include <limits.h>
5790 #else
5791 # include <assert.h>
5792 #endif
5793 Syntax error
5794 _ACEOF
5795 if ac_fn_c_try_cpp "$LINENO"; then :
5797 else
5798 # Broken: fails on valid input.
5799 continue
5801 rm -f conftest.err conftest.i conftest.$ac_ext
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #include <ac_nonexistent.h>
5808 _ACEOF
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5810 # Broken: success on invalid input.
5811 continue
5812 else
5813 # Passes both tests.
5814 ac_preproc_ok=:
5815 break
5817 rm -f conftest.err conftest.i conftest.$ac_ext
5819 done
5820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5821 rm -f conftest.i conftest.err conftest.$ac_ext
5822 if $ac_preproc_ok; then :
5824 else
5825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5827 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5828 See \`config.log' for more details" "$LINENO" 5; }
5831 ac_ext=cpp
5832 ac_cpp='$CXXCPP $CPPFLAGS'
5833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5838 $as_echo_n "checking for inline... " >&6; }
5839 if ${ac_cv_c_inline+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 ac_cv_c_inline=no
5843 for ac_kw in inline __inline__ __inline; do
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #ifndef __cplusplus
5847 typedef int foo_t;
5848 static $ac_kw foo_t static_foo () {return 0; }
5849 $ac_kw foo_t foo () {return 0; }
5850 #endif
5852 _ACEOF
5853 if ac_fn_cxx_try_compile "$LINENO"; then :
5854 ac_cv_c_inline=$ac_kw
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 test "$ac_cv_c_inline" != no && break
5858 done
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5862 $as_echo "$ac_cv_c_inline" >&6; }
5864 case $ac_cv_c_inline in
5865 inline | yes) ;;
5867 case $ac_cv_c_inline in
5868 no) ac_val=;;
5869 *) ac_val=$ac_cv_c_inline;;
5870 esac
5871 cat >>confdefs.h <<_ACEOF
5872 #ifndef __cplusplus
5873 #define inline $ac_val
5874 #endif
5875 _ACEOF
5877 esac
5880 # Check whether --enable-largefile was given.
5881 if test "${enable_largefile+set}" = set; then :
5882 enableval=$enable_largefile;
5885 if test "$enable_largefile" != no; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5888 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5889 if ${ac_cv_sys_largefile_CC+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_cv_sys_largefile_CC=no
5893 if test "$GCC" != yes; then
5894 ac_save_CC=$CC
5895 while :; do
5896 # IRIX 6.2 and later do not support large files by default,
5897 # so use the C compiler's -n32 option if that helps.
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5900 #include <sys/types.h>
5901 /* Check that off_t can represent 2**63 - 1 correctly.
5902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5903 since some C++ compilers masquerading as C compilers
5904 incorrectly reject 9223372036854775807. */
5905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5907 && LARGE_OFF_T % 2147483647 == 1)
5908 ? 1 : -1];
5910 main ()
5914 return 0;
5916 _ACEOF
5917 if ac_fn_cxx_try_compile "$LINENO"; then :
5918 break
5920 rm -f core conftest.err conftest.$ac_objext
5921 CC="$CC -n32"
5922 if ac_fn_cxx_try_compile "$LINENO"; then :
5923 ac_cv_sys_largefile_CC=' -n32'; break
5925 rm -f core conftest.err conftest.$ac_objext
5926 break
5927 done
5928 CC=$ac_save_CC
5929 rm -f conftest.$ac_ext
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5933 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5934 if test "$ac_cv_sys_largefile_CC" != no; then
5935 CC=$CC$ac_cv_sys_largefile_CC
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5939 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5940 if ${ac_cv_sys_file_offset_bits+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 while :; do
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5947 /* Check that off_t can represent 2**63 - 1 correctly.
5948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5949 since some C++ compilers masquerading as C compilers
5950 incorrectly reject 9223372036854775807. */
5951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5953 && LARGE_OFF_T % 2147483647 == 1)
5954 ? 1 : -1];
5956 main ()
5960 return 0;
5962 _ACEOF
5963 if ac_fn_cxx_try_compile "$LINENO"; then :
5964 ac_cv_sys_file_offset_bits=no; break
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #define _FILE_OFFSET_BITS 64
5970 #include <sys/types.h>
5971 /* Check that off_t can represent 2**63 - 1 correctly.
5972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5973 since some C++ compilers masquerading as C compilers
5974 incorrectly reject 9223372036854775807. */
5975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5977 && LARGE_OFF_T % 2147483647 == 1)
5978 ? 1 : -1];
5980 main ()
5984 return 0;
5986 _ACEOF
5987 if ac_fn_cxx_try_compile "$LINENO"; then :
5988 ac_cv_sys_file_offset_bits=64; break
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 ac_cv_sys_file_offset_bits=unknown
5992 break
5993 done
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5996 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5997 case $ac_cv_sys_file_offset_bits in #(
5998 no | unknown) ;;
6000 cat >>confdefs.h <<_ACEOF
6001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6002 _ACEOF
6004 esac
6005 rm -rf conftest*
6006 if test $ac_cv_sys_file_offset_bits = unknown; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6008 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6009 if ${ac_cv_sys_large_files+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 while :; do
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <sys/types.h>
6016 /* Check that off_t can represent 2**63 - 1 correctly.
6017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6018 since some C++ compilers masquerading as C compilers
6019 incorrectly reject 9223372036854775807. */
6020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6022 && LARGE_OFF_T % 2147483647 == 1)
6023 ? 1 : -1];
6025 main ()
6029 return 0;
6031 _ACEOF
6032 if ac_fn_cxx_try_compile "$LINENO"; then :
6033 ac_cv_sys_large_files=no; break
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #define _LARGE_FILES 1
6039 #include <sys/types.h>
6040 /* Check that off_t can represent 2**63 - 1 correctly.
6041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6042 since some C++ compilers masquerading as C compilers
6043 incorrectly reject 9223372036854775807. */
6044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6046 && LARGE_OFF_T % 2147483647 == 1)
6047 ? 1 : -1];
6049 main ()
6053 return 0;
6055 _ACEOF
6056 if ac_fn_cxx_try_compile "$LINENO"; then :
6057 ac_cv_sys_large_files=1; break
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 ac_cv_sys_large_files=unknown
6061 break
6062 done
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6065 $as_echo "$ac_cv_sys_large_files" >&6; }
6066 case $ac_cv_sys_large_files in #(
6067 no | unknown) ;;
6069 cat >>confdefs.h <<_ACEOF
6070 #define _LARGE_FILES $ac_cv_sys_large_files
6071 _ACEOF
6073 esac
6074 rm -rf conftest*
6081 # sizeof(char) is 1 by definition.
6082 # The cast to long int works around a bug in the HP C Compiler
6083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6085 # This bug is HP SR number 8606223364.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6087 $as_echo_n "checking size of void *... " >&6; }
6088 if ${ac_cv_sizeof_void_p+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6093 else
6094 if test "$ac_cv_type_void_p" = yes; then
6095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6097 as_fn_error 77 "cannot compute sizeof (void *)
6098 See \`config.log' for more details" "$LINENO" 5; }
6099 else
6100 ac_cv_sizeof_void_p=0
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6106 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6110 cat >>confdefs.h <<_ACEOF
6111 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6112 _ACEOF
6115 # The cast to long int works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6120 $as_echo_n "checking size of short... " >&6; }
6121 if ${ac_cv_sizeof_short+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6126 else
6127 if test "$ac_cv_type_short" = yes; then
6128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6130 as_fn_error 77 "cannot compute sizeof (short)
6131 See \`config.log' for more details" "$LINENO" 5; }
6132 else
6133 ac_cv_sizeof_short=0
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6139 $as_echo "$ac_cv_sizeof_short" >&6; }
6143 cat >>confdefs.h <<_ACEOF
6144 #define SIZEOF_SHORT $ac_cv_sizeof_short
6145 _ACEOF
6148 # The cast to long int works around a bug in the HP C Compiler
6149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6151 # This bug is HP SR number 8606223364.
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6153 $as_echo_n "checking size of int... " >&6; }
6154 if ${ac_cv_sizeof_int+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6159 else
6160 if test "$ac_cv_type_int" = yes; then
6161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6163 as_fn_error 77 "cannot compute sizeof (int)
6164 See \`config.log' for more details" "$LINENO" 5; }
6165 else
6166 ac_cv_sizeof_int=0
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6172 $as_echo "$ac_cv_sizeof_int" >&6; }
6176 cat >>confdefs.h <<_ACEOF
6177 #define SIZEOF_INT $ac_cv_sizeof_int
6178 _ACEOF
6181 # The cast to long int works around a bug in the HP C Compiler
6182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6184 # This bug is HP SR number 8606223364.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6186 $as_echo_n "checking size of long... " >&6; }
6187 if ${ac_cv_sizeof_long+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6192 else
6193 if test "$ac_cv_type_long" = yes; then
6194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6196 as_fn_error 77 "cannot compute sizeof (long)
6197 See \`config.log' for more details" "$LINENO" 5; }
6198 else
6199 ac_cv_sizeof_long=0
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6205 $as_echo "$ac_cv_sizeof_long" >&6; }
6209 cat >>confdefs.h <<_ACEOF
6210 #define SIZEOF_LONG $ac_cv_sizeof_long
6211 _ACEOF
6214 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6215 if test "x$ac_cv_type_long_long" = xyes; then :
6217 cat >>confdefs.h <<_ACEOF
6218 #define HAVE_LONG_LONG 1
6219 _ACEOF
6221 # The cast to long int works around a bug in the HP C Compiler
6222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6224 # This bug is HP SR number 8606223364.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6226 $as_echo_n "checking size of long long... " >&6; }
6227 if ${ac_cv_sizeof_long_long+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6232 else
6233 if test "$ac_cv_type_long_long" = yes; then
6234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6236 as_fn_error 77 "cannot compute sizeof (long long)
6237 See \`config.log' for more details" "$LINENO" 5; }
6238 else
6239 ac_cv_sizeof_long_long=0
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6245 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6249 cat >>confdefs.h <<_ACEOF
6250 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6251 _ACEOF
6256 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6257 case $ac_cv_c_int8_t in #(
6258 no|yes) ;; #(
6261 cat >>confdefs.h <<_ACEOF
6262 #define int8_t $ac_cv_c_int8_t
6263 _ACEOF
6265 esac
6267 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6268 case $ac_cv_c_int16_t in #(
6269 no|yes) ;; #(
6272 cat >>confdefs.h <<_ACEOF
6273 #define int16_t $ac_cv_c_int16_t
6274 _ACEOF
6276 esac
6278 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6279 case $ac_cv_c_int32_t in #(
6280 no|yes) ;; #(
6283 cat >>confdefs.h <<_ACEOF
6284 #define int32_t $ac_cv_c_int32_t
6285 _ACEOF
6287 esac
6289 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6290 case $ac_cv_c_int64_t in #(
6291 no|yes) ;; #(
6294 cat >>confdefs.h <<_ACEOF
6295 #define int64_t $ac_cv_c_int64_t
6296 _ACEOF
6298 esac
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6302 $as_echo_n "checking for unsigned long long int... " >&6; }
6303 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 ac_cv_type_unsigned_long_long_int=yes
6307 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6311 /* For now, do not test the preprocessor; as of 2007 there are too many
6312 implementations with broken preprocessors. Perhaps this can
6313 be revisited in 2012. In the meantime, code should not expect
6314 #if to work with literals wider than 32 bits. */
6315 /* Test literals. */
6316 long long int ll = 9223372036854775807ll;
6317 long long int nll = -9223372036854775807LL;
6318 unsigned long long int ull = 18446744073709551615ULL;
6319 /* Test constant expressions. */
6320 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6321 ? 1 : -1)];
6322 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6323 ? 1 : -1)];
6324 int i = 63;
6326 main ()
6328 /* Test availability of runtime routines for shift and division. */
6329 long long int llmax = 9223372036854775807ll;
6330 unsigned long long int ullmax = 18446744073709551615ull;
6331 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6332 | (llmax / ll) | (llmax % ll)
6333 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6334 | (ullmax / ull) | (ullmax % ull));
6336 return 0;
6339 _ACEOF
6340 if ac_fn_cxx_try_link "$LINENO"; then :
6342 else
6343 ac_cv_type_unsigned_long_long_int=no
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6350 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6351 if test $ac_cv_type_unsigned_long_long_int = yes; then
6353 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6360 $as_echo_n "checking for long long int... " >&6; }
6361 if ${ac_cv_type_long_long_int+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_cv_type_long_long_int=yes
6365 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6366 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6367 if test $ac_cv_type_long_long_int = yes; then
6368 if test "$cross_compiling" = yes; then :
6370 else
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 #include <limits.h>
6374 #ifndef LLONG_MAX
6375 # define HALF \
6376 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6377 # define LLONG_MAX (HALF - 1 + HALF)
6378 #endif
6380 main ()
6382 long long int n = 1;
6383 int i;
6384 for (i = 0; ; i++)
6386 long long int m = n << i;
6387 if (m >> i != n)
6388 return 1;
6389 if (LLONG_MAX / 2 < m)
6390 break;
6392 return 0;
6394 return 0;
6396 _ACEOF
6397 if ac_fn_cxx_try_run "$LINENO"; then :
6399 else
6400 ac_cv_type_long_long_int=no
6402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403 conftest.$ac_objext conftest.beam conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6410 $as_echo "$ac_cv_type_long_long_int" >&6; }
6411 if test $ac_cv_type_long_long_int = yes; then
6413 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6419 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6420 if test "x$ac_cv_type_intmax_t" = xyes; then :
6422 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6424 else
6425 test $ac_cv_type_long_long_int = yes \
6426 && ac_type='long long int' \
6427 || ac_type='long int'
6429 cat >>confdefs.h <<_ACEOF
6430 #define intmax_t $ac_type
6431 _ACEOF
6437 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6438 if test "x$ac_cv_type_intptr_t" = xyes; then :
6440 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6442 else
6443 for ac_type in 'int' 'long int' 'long long int'; do
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 $ac_includes_default
6448 main ()
6450 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6451 test_array [0] = 0;
6452 return test_array [0];
6455 return 0;
6457 _ACEOF
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6460 cat >>confdefs.h <<_ACEOF
6461 #define intptr_t $ac_type
6462 _ACEOF
6464 ac_type=
6466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467 test -z "$ac_type" && break
6468 done
6472 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6473 case $ac_cv_c_uint8_t in #(
6474 no|yes) ;; #(
6477 $as_echo "#define _UINT8_T 1" >>confdefs.h
6480 cat >>confdefs.h <<_ACEOF
6481 #define uint8_t $ac_cv_c_uint8_t
6482 _ACEOF
6484 esac
6486 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6487 case $ac_cv_c_uint16_t in #(
6488 no|yes) ;; #(
6492 cat >>confdefs.h <<_ACEOF
6493 #define uint16_t $ac_cv_c_uint16_t
6494 _ACEOF
6496 esac
6498 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6499 case $ac_cv_c_uint32_t in #(
6500 no|yes) ;; #(
6503 $as_echo "#define _UINT32_T 1" >>confdefs.h
6506 cat >>confdefs.h <<_ACEOF
6507 #define uint32_t $ac_cv_c_uint32_t
6508 _ACEOF
6510 esac
6512 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6513 case $ac_cv_c_uint64_t in #(
6514 no|yes) ;; #(
6517 $as_echo "#define _UINT64_T 1" >>confdefs.h
6520 cat >>confdefs.h <<_ACEOF
6521 #define uint64_t $ac_cv_c_uint64_t
6522 _ACEOF
6524 esac
6528 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6529 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6531 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6533 else
6534 test $ac_cv_type_unsigned_long_long_int = yes \
6535 && ac_type='unsigned long long int' \
6536 || ac_type='unsigned long int'
6538 cat >>confdefs.h <<_ACEOF
6539 #define uintmax_t $ac_type
6540 _ACEOF
6546 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6547 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6549 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6551 else
6552 for ac_type in 'unsigned int' 'unsigned long int' \
6553 'unsigned long long int'; do
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 $ac_includes_default
6558 main ()
6560 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6561 test_array [0] = 0;
6562 return test_array [0];
6565 return 0;
6567 _ACEOF
6568 if ac_fn_cxx_try_compile "$LINENO"; then :
6570 cat >>confdefs.h <<_ACEOF
6571 #define uintptr_t $ac_type
6572 _ACEOF
6574 ac_type=
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 test -z "$ac_type" && break
6578 done
6594 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6595 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6598 # check what underlying integer type int64_t uses
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6600 $as_echo_n "checking for int64_t underlying type... " >&6; }
6601 if ${ac_cv_int64_t_type+:} false; then :
6602 $as_echo_n "(cached) " >&6
6603 else
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6608 #ifdef HAVE_STDINT_H
6609 #include <stdint.h>
6610 #endif
6611 template <typename T> struct X { };
6612 template <>
6613 struct X<long> { typedef long t; };
6616 main ()
6618 X<int64_t>::t x;
6620 return 0;
6622 _ACEOF
6623 if ac_fn_cxx_try_compile "$LINENO"; then :
6624 ac_cv_int64_t_type=long
6625 else
6626 ac_cv_int64_t_type="long long"
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6631 $as_echo "$ac_cv_int64_t_type" >&6; }
6632 if test "$ac_cv_int64_t_type" = "long"; then
6634 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6636 else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6640 #ifdef HAVE_STDINT_H
6641 #include <stdint.h>
6642 #endif
6643 template <typename T> struct X { };
6644 template <>
6645 struct X<long long> { typedef long long t; };
6648 main ()
6650 X<int64_t>::t x;
6652 return 0;
6654 _ACEOF
6655 if ac_fn_cxx_try_compile "$LINENO"; then :
6657 else
6658 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6664 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6665 if ${ac_cv_std_swap_in_utility+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6672 #include <utility>
6675 main ()
6677 int a, b; std::swap(a,b);
6679 return 0;
6681 _ACEOF
6682 if ac_fn_cxx_try_compile "$LINENO"; then :
6683 ac_cv_std_swap_in_utility=yes
6684 else
6685 ac_cv_std_swap_in_utility=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6690 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6691 if test $ac_cv_std_swap_in_utility = yes; then
6693 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6697 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6698 # If the host compiler is affected by the bug, and we build with optimization
6699 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6700 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6701 # Since there is no reliable feature check for the presence of this bug,
6702 # we simply use a GCC version number check. (This should never trigger for
6703 # stages 2 or 3 of a native bootstrap.)
6704 aliasing_flags=
6705 if test "$GCC" = yes; then
6706 saved_CXXFLAGS="$CXXFLAGS"
6708 # The following test compilation will succeed if and only if $CXX accepts
6709 # -fno-strict-aliasing *and* is older than GCC 4.3.
6710 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6712 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6716 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6717 #error compiler not affected by placement new aliasing bug
6718 #endif
6720 _ACEOF
6721 if ac_fn_cxx_try_compile "$LINENO"; then :
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6723 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CXXFLAGS="$saved_CXXFLAGS"
6736 # ---------------------
6737 # Warnings and checking
6738 # ---------------------
6740 # Check $CC warning features (if it's GCC).
6741 # We want to use -pedantic, but we don't want warnings about
6742 # * 'long long'
6743 # * variadic macros
6744 # * overlong strings
6745 # * C++11 narrowing conversions in { }
6746 # So, we only use -pedantic if we can disable those warnings.
6748 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6749 # Check whether --enable-build-format-warnings was given.
6750 if test "${enable_build_format_warnings+set}" = set; then :
6751 enableval=$enable_build_format_warnings;
6752 else
6753 enable_build_format_warnings=yes
6756 if test $enable_build_format_warnings = no; then :
6757 wf_opt=-Wno-format
6758 else
6759 wf_opt=
6761 ac_ext=cpp
6762 ac_cpp='$CXXCPP $CPPFLAGS'
6763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6767 loose_warn=
6768 save_CXXFLAGS="$CXXFLAGS"
6769 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag $wf_opt; do
6770 # Do the check with the no- prefix removed since gcc silently
6771 # accepts any -Wno-* option on purpose
6772 case $real_option in
6773 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6774 *) option=$real_option ;;
6775 esac
6776 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6779 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6780 if eval \${$as_acx_Woption+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 CXXFLAGS="$option"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6788 main ()
6792 return 0;
6794 _ACEOF
6795 if ac_fn_cxx_try_compile "$LINENO"; then :
6796 eval "$as_acx_Woption=yes"
6797 else
6798 eval "$as_acx_Woption=no"
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 eval ac_res=\$$as_acx_Woption
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6805 $as_echo "$ac_res" >&6; }
6806 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6807 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6809 done
6810 CXXFLAGS="$save_CXXFLAGS"
6811 ac_ext=cpp
6812 ac_cpp='$CXXCPP $CPPFLAGS'
6813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6819 ac_ext=c
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825 c_loose_warn=
6826 save_CFLAGS="$CFLAGS"
6827 for real_option in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag; do
6828 # Do the check with the no- prefix removed since gcc silently
6829 # accepts any -Wno-* option on purpose
6830 case $real_option in
6831 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6832 *) option=$real_option ;;
6833 esac
6834 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6837 $as_echo_n "checking whether $CC supports $option... " >&6; }
6838 if eval \${$as_acx_Woption+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 CFLAGS="$option"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6846 main ()
6850 return 0;
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854 eval "$as_acx_Woption=yes"
6855 else
6856 eval "$as_acx_Woption=no"
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 eval ac_res=\$$as_acx_Woption
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6863 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6865 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6867 done
6868 CFLAGS="$save_CFLAGS"
6869 ac_ext=cpp
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 ac_ext=cpp
6877 ac_cpp='$CXXCPP $CPPFLAGS'
6878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6882 strict_warn=
6883 save_CXXFLAGS="$CXXFLAGS"
6884 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6885 # Do the check with the no- prefix removed since gcc silently
6886 # accepts any -Wno-* option on purpose
6887 case $real_option in
6888 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6889 *) option=$real_option ;;
6890 esac
6891 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6894 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6895 if eval \${$as_acx_Woption+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 CXXFLAGS="$option"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6903 main ()
6907 return 0;
6909 _ACEOF
6910 if ac_fn_cxx_try_compile "$LINENO"; then :
6911 eval "$as_acx_Woption=yes"
6912 else
6913 eval "$as_acx_Woption=no"
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 eval ac_res=\$$as_acx_Woption
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6920 $as_echo "$ac_res" >&6; }
6921 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6922 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6924 done
6925 CXXFLAGS="$save_CXXFLAGS"
6926 ac_ext=cpp
6927 ac_cpp='$CXXCPP $CPPFLAGS'
6928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6933 ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939 c_strict_warn=
6940 save_CFLAGS="$CFLAGS"
6941 for real_option in -Wold-style-definition -Wc++-compat; do
6942 # Do the check with the no- prefix removed since gcc silently
6943 # accepts any -Wno-* option on purpose
6944 case $real_option in
6945 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6946 *) option=$real_option ;;
6947 esac
6948 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6951 $as_echo_n "checking whether $CC supports $option... " >&6; }
6952 if eval \${$as_acx_Woption+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 CFLAGS="$option"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6960 main ()
6964 return 0;
6966 _ACEOF
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 eval "$as_acx_Woption=yes"
6969 else
6970 eval "$as_acx_Woption=no"
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 eval ac_res=\$$as_acx_Woption
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6979 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6981 done
6982 CFLAGS="$save_CFLAGS"
6983 ac_ext=cpp
6984 ac_cpp='$CXXCPP $CPPFLAGS'
6985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6990 ac_ext=cpp
6991 ac_cpp='$CXXCPP $CPPFLAGS'
6992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6996 # Do the check with the no- prefix removed from the warning options
6997 # since gcc silently accepts any -Wno-* option on purpose
6998 if test "$GXX" = yes; then :
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7000 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7001 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 save_CXXFLAGS="$CXXFLAGS"
7005 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7010 main ()
7014 return 0;
7016 _ACEOF
7017 if ac_fn_cxx_try_compile "$LINENO"; then :
7018 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7019 else
7020 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7023 CXXFLAGS="$save_CXXFLAGS"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7026 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7027 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7028 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7032 ac_ext=cpp
7033 ac_cpp='$CXXCPP $CPPFLAGS'
7034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7039 ac_ext=cpp
7040 ac_cpp='$CXXCPP $CPPFLAGS'
7041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7045 # Check whether --enable-werror-always was given.
7046 if test "${enable_werror_always+set}" = set; then :
7047 enableval=$enable_werror_always;
7048 else
7049 enable_werror_always=no
7052 if test $enable_werror_always = yes; then :
7053 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7056 ac_ext=cpp
7057 ac_cpp='$CXXCPP $CPPFLAGS'
7058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7064 # The above macros do nothing if the compiler is not GCC. However, the
7065 # Makefile has more goo to add other flags, so these variables are used
7066 # to enable warnings only for GCC.
7067 warn_cflags=
7068 warn_cxxflags=
7069 if test "x$GCC" = "xyes"; then
7070 warn_cflags='$(GCC_WARN_CFLAGS)'
7071 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7076 # Disable exceptions and RTTI if building with g++
7077 ac_ext=c
7078 ac_cpp='$CPP $CPPFLAGS'
7079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083 noexception_flags=
7084 save_CFLAGS="$CFLAGS"
7085 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7086 # Do the check with the no- prefix removed since gcc silently
7087 # accepts any -Wno-* option on purpose
7088 case $real_option in
7089 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7090 *) option=$real_option ;;
7091 esac
7092 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7095 $as_echo_n "checking whether $CC supports $option... " >&6; }
7096 if eval \${$as_acx_Woption+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 CFLAGS="$option"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7104 main ()
7108 return 0;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 eval "$as_acx_Woption=yes"
7113 else
7114 eval "$as_acx_Woption=no"
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 eval ac_res=\$$as_acx_Woption
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7121 $as_echo "$ac_res" >&6; }
7122 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7123 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7125 done
7126 CFLAGS="$save_CFLAGS"
7127 ac_ext=cpp
7128 ac_cpp='$CXXCPP $CPPFLAGS'
7129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7135 # Enable expensive internal checks
7136 is_release=
7137 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7138 is_release=yes
7141 # Check whether --enable-checking was given.
7142 if test "${enable_checking+set}" = set; then :
7143 enableval=$enable_checking; ac_checking_flags="${enableval}"
7144 else
7146 # Determine the default checks.
7147 if test x$is_release = x ; then
7148 ac_checking_flags=yes,extra
7149 else
7150 ac_checking_flags=release
7154 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7155 for check in release $ac_checking_flags
7157 case $check in
7158 # these set all the flags to specific states
7159 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7160 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7161 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7162 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7163 ac_tree_checking=1 ; ac_valgrind_checking= ;
7164 ac_types_checking=1 ;;
7165 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7166 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7167 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7168 ac_rtlflag_checking= ; ac_runtime_checking= ;
7169 ac_tree_checking= ; ac_valgrind_checking= ;
7170 ac_types_checking= ;;
7171 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7172 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7173 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7174 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7175 ac_tree_checking=1 ; ac_valgrind_checking= ;
7176 ac_types_checking=1 ;;
7177 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7178 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7179 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7180 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7181 ac_tree_checking= ; ac_valgrind_checking= ;
7182 ac_types_checking= ;;
7183 # these enable particular checks
7184 assert) ac_assert_checking=1 ;;
7185 df) ac_df_checking=1 ;;
7186 extra) ac_extra_checking=1 ;;
7187 fold) ac_fold_checking=1 ;;
7188 gc) ac_gc_checking=1 ;;
7189 gcac) ac_gc_always_collect=1 ;;
7190 gimple) ac_gimple_checking=1 ;;
7191 misc) ac_checking=1 ;;
7192 rtl) ac_rtl_checking=1 ;;
7193 rtlflag) ac_rtlflag_checking=1 ;;
7194 runtime) ac_runtime_checking=1 ;;
7195 tree) ac_tree_checking=1 ;;
7196 types) ac_types_checking=1 ;;
7197 valgrind) ac_valgrind_checking=1 ;;
7198 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7199 esac
7200 done
7201 IFS="$ac_save_IFS"
7203 nocommon_flag=""
7204 if test x$ac_checking != x ; then
7206 $as_echo "#define CHECKING_P 1" >>confdefs.h
7208 nocommon_flag=-fno-common
7209 else
7210 $as_echo "#define CHECKING_P 0" >>confdefs.h
7214 if test x$ac_extra_checking != x ; then
7216 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7218 else
7219 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7222 if test x$ac_df_checking != x ; then
7224 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7227 if test x$ac_assert_checking != x ; then
7229 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7232 if test x$ac_gimple_checking != x ; then
7234 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7238 if test x$ac_runtime_checking != x ; then
7240 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7243 if test x$ac_tree_checking != x ; then
7245 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7247 TREECHECKING=yes
7249 if test x$ac_types_checking != x ; then
7251 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7255 if test x$ac_rtl_checking != x ; then
7257 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7260 if test x$ac_rtlflag_checking != x ; then
7262 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7265 if test x$ac_gc_checking != x ; then
7267 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7270 if test x$ac_gc_always_collect != x ; then
7272 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7275 if test x$ac_fold_checking != x ; then
7277 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7280 valgrind_path_defines=
7281 valgrind_command=
7283 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7284 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7285 have_valgrind_h=yes
7286 else
7287 have_valgrind_h=no
7292 # It is certainly possible that there's valgrind but no valgrind.h.
7293 # GCC relies on making annotations so we must have both.
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7295 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 #include <valgrind/memcheck.h>
7299 #ifndef VALGRIND_DISCARD
7300 #error VALGRIND_DISCARD not defined
7301 #endif
7302 _ACEOF
7303 if ac_fn_cxx_try_cpp "$LINENO"; then :
7304 gcc_cv_header_valgrind_memcheck_h=yes
7305 else
7306 gcc_cv_header_valgrind_memcheck_h=no
7308 rm -f conftest.err conftest.i conftest.$ac_ext
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7310 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7312 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <memcheck.h>
7316 #ifndef VALGRIND_DISCARD
7317 #error VALGRIND_DISCARD not defined
7318 #endif
7319 _ACEOF
7320 if ac_fn_cxx_try_cpp "$LINENO"; then :
7321 gcc_cv_header_memcheck_h=yes
7322 else
7323 gcc_cv_header_memcheck_h=no
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7327 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7328 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7330 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7333 if test $gcc_cv_header_memcheck_h = yes; then
7335 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7339 if test x$ac_valgrind_checking != x ; then
7341 # Prepare PATH_SEPARATOR.
7342 # The user is always right.
7343 if test "${PATH_SEPARATOR+set}" != set; then
7344 echo "#! /bin/sh" >conf$$.sh
7345 echo "exit 0" >>conf$$.sh
7346 chmod +x conf$$.sh
7347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7348 PATH_SEPARATOR=';'
7349 else
7350 PATH_SEPARATOR=:
7352 rm -f conf$$.sh
7355 # Find out how to test for executable files. Don't use a zero-byte file,
7356 # as systems may use methods other than mode bits to determine executability.
7357 cat >conf$$.file <<_ASEOF
7358 #! /bin/sh
7359 exit 0
7360 _ASEOF
7361 chmod +x conf$$.file
7362 if test -x conf$$.file >/dev/null 2>&1; then
7363 ac_executable_p="test -x"
7364 else
7365 ac_executable_p="test -f"
7367 rm -f conf$$.file
7369 # Extract the first word of "valgrind", so it can be a program name with args.
7370 set dummy valgrind; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_path_valgrind_path+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 case "$valgrind_path" in
7377 [\\/]* | ?:[\\/]*)
7378 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7381 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7382 for ac_dir in $PATH; do
7383 IFS="$ac_save_IFS"
7384 test -z "$ac_dir" && ac_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7387 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7388 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7389 break 2
7392 done
7393 done
7394 IFS="$ac_save_IFS"
7396 esac
7398 valgrind_path="$ac_cv_path_valgrind_path"
7399 if test -n "$valgrind_path"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7401 $as_echo "$valgrind_path" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7407 if test "x$valgrind_path" = "x" \
7408 || (test $have_valgrind_h = no \
7409 && test $gcc_cv_header_memcheck_h = no \
7410 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7411 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7413 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7414 valgrind_command="$valgrind_path -q"
7416 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7422 # Enable code coverage collection
7423 # Check whether --enable-coverage was given.
7424 if test "${enable_coverage+set}" = set; then :
7425 enableval=$enable_coverage; case "${enableval}" in
7426 yes|noopt)
7427 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7429 opt)
7430 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7433 # a.k.a. --disable-coverage
7434 coverage_flags=""
7437 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7439 esac
7440 else
7441 coverage_flags=""
7446 # Check whether --enable-gather-detailed-mem-stats was given.
7447 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7448 enableval=$enable_gather_detailed_mem_stats;
7449 else
7450 enable_gather_detailed_mem_stats=no
7453 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7455 cat >>confdefs.h <<_ACEOF
7456 #define GATHER_STATISTICS $gather_stats
7457 _ACEOF
7460 # Check whether --enable-valgrind-annotations was given.
7461 if test "${enable_valgrind_annotations+set}" = set; then :
7462 enableval=$enable_valgrind_annotations;
7463 else
7464 enable_valgrind_annotations=no
7467 if test x$enable_valgrind_annotations != xno \
7468 || test x$ac_valgrind_checking != x; then
7469 if (test $have_valgrind_h = no \
7470 && test $gcc_cv_header_memcheck_h = no \
7471 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7472 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7475 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7479 # -------------------------------
7480 # Miscenalleous configure options
7481 # -------------------------------
7483 # With stabs
7485 # Check whether --with-stabs was given.
7486 if test "${with_stabs+set}" = set; then :
7487 withval=$with_stabs; stabs="$with_stabs"
7488 else
7489 stabs=no
7493 # Determine whether or not multilibs are enabled.
7494 # Check whether --enable-multilib was given.
7495 if test "${enable_multilib+set}" = set; then :
7496 enableval=$enable_multilib;
7497 else
7498 enable_multilib=yes
7503 # Determine whether or not multiarch is enabled.
7504 # Check whether --enable-multiarch was given.
7505 if test "${enable_multiarch+set}" = set; then :
7506 enableval=$enable_multiarch; case "${enableval}" in
7507 yes|no|auto) enable_multiarch=$enableval;;
7508 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7509 esac
7510 else
7511 enable_multiarch=auto
7514 if test x${enable_multiarch} = xauto; then
7515 if test x${with_native_system_header_dir} != x; then
7516 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7517 enable_multiarch=no
7519 if test x$host != x$target && test "x$with_sysroot" = x; then
7520 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7521 enable_multiarch=no
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7525 $as_echo_n "checking for multiarch configuration... " >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7528 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7530 # needed for setting the multiarch name for soft-float/hard-float ABIs
7534 # default stack clash protection guard size as power of twos in bytes.
7535 # Please keep these in sync with params.def.
7536 stk_clash_min=12
7537 stk_clash_max=30
7539 # Keep the default value when the option is not used to 0, this allows us to
7540 # distinguish between the cases where the user specifially set a value via
7541 # configure and when the normal default value is used.
7543 # Check whether --with-stack-clash-protection-guard-size was given.
7544 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7545 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7546 else
7547 DEFAULT_STK_CLASH_GUARD_SIZE=0
7550 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7551 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7552 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7553 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
7557 cat >>confdefs.h <<_ACEOF
7558 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7559 _ACEOF
7562 # Enable __cxa_atexit for C++.
7563 # Check whether --enable-__cxa_atexit was given.
7564 if test "${enable___cxa_atexit+set}" = set; then :
7565 enableval=$enable___cxa_atexit;
7569 # Enable C extension for decimal float if target supports it.
7571 # Check whether --enable-decimal-float was given.
7572 if test "${enable_decimal_float+set}" = set; then :
7573 enableval=$enable_decimal_float;
7574 case $enable_decimal_float in
7575 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7576 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7577 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7578 esac
7580 else
7582 case $target in
7583 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7584 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7585 i?86*-*-mingw* | x86_64*-*-mingw* | \
7586 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7587 enable_decimal_float=yes
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7591 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7592 enable_decimal_float=no
7594 esac
7599 # x86's use BID format instead of DPD
7600 case x$enable_decimal_float in
7601 xyes)
7602 case $target in
7603 i?86*-*-* | x86_64*-*-*)
7604 enable_decimal_float=bid
7607 enable_decimal_float=dpd
7609 esac
7610 default_decimal_float=$enable_decimal_float
7612 xno)
7613 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7614 # dependency on libdecnumber.
7615 default_decimal_float=dpd
7617 esac
7622 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7624 cat >>confdefs.h <<_ACEOF
7625 #define ENABLE_DECIMAL_FLOAT $dfp
7626 _ACEOF
7629 # Use default_decimal_float for dependency.
7630 enable_decimal_float=$default_decimal_float
7632 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7634 cat >>confdefs.h <<_ACEOF
7635 #define ENABLE_DECIMAL_BID_FORMAT $bid
7636 _ACEOF
7639 # Enable C extension for fixed-point arithmetic.
7640 # Check whether --enable-fixed-point was given.
7641 if test "${enable_fixed_point+set}" = set; then :
7642 enableval=$enable_fixed_point;
7643 else
7645 case $target in
7646 arm*)
7647 enable_fixed_point=yes
7650 mips*-*-*)
7651 enable_fixed_point=yes
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7655 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7656 enable_fixed_point=no
7658 esac
7664 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7666 cat >>confdefs.h <<_ACEOF
7667 #define ENABLE_FIXED_POINT $fixedpoint
7668 _ACEOF
7671 # Enable threads
7672 # Pass with no value to take the default
7673 # Pass with a value to specify a thread package
7674 # Check whether --enable-threads was given.
7675 if test "${enable_threads+set}" = set; then :
7676 enableval=$enable_threads;
7677 else
7678 enable_threads=''
7682 # Check whether --enable-tls was given.
7683 if test "${enable_tls+set}" = set; then :
7684 enableval=$enable_tls;
7685 case $enable_tls in
7686 yes | no) ;;
7687 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
7688 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7689 esac
7691 else
7692 enable_tls=''
7696 # Check whether --enable-vtable-verify was given.
7697 if test "${enable_vtable_verify+set}" = set; then :
7698 enableval=$enable_vtable_verify;
7699 else
7700 enable_vtable_verify=no
7703 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7705 cat >>confdefs.h <<_ACEOF
7706 #define ENABLE_VTABLE_VERIFY $vtable_verify
7707 _ACEOF
7710 # Check whether --enable-analyzer was given.
7711 if test "${enable_analyzer+set}" = set; then :
7712 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
7713 analyzer=0
7714 else
7715 analyzer=1
7717 else
7718 analyzer=1
7722 cat >>confdefs.h <<_ACEOF
7723 #define ENABLE_ANALYZER $analyzer
7724 _ACEOF
7727 # Check whether --enable-objc-gc was given.
7728 if test "${enable_objc_gc+set}" = set; then :
7729 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7730 objc_boehm_gc=''
7731 else
7732 objc_boehm_gc=1
7734 else
7735 objc_boehm_gc=''
7740 # Check whether --with-dwarf2 was given.
7741 if test "${with_dwarf2+set}" = set; then :
7742 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7743 else
7744 dwarf2=no
7748 # Check whether --enable-shared was given.
7749 if test "${enable_shared+set}" = set; then :
7750 enableval=$enable_shared;
7751 case $enable_shared in
7752 yes | no) ;;
7754 enable_shared=no
7755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7756 for pkg in $enableval; do
7757 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7758 enable_shared=yes
7760 done
7761 IFS="$ac_save_ifs"
7763 esac
7765 else
7766 enable_shared=yes
7771 # Check whether --enable-gcov was given.
7772 if test "${enable_gcov+set}" = set; then :
7773 enableval=$enable_gcov;
7774 else
7775 enable_gcov=yes
7781 # Check whether --with-specs was given.
7782 if test "${with_specs+set}" = set; then :
7783 withval=$with_specs; CONFIGURE_SPECS=$withval
7784 else
7785 CONFIGURE_SPECS=
7793 # Check whether --with-pkgversion was given.
7794 if test "${with_pkgversion+set}" = set; then :
7795 withval=$with_pkgversion; case "$withval" in
7796 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7797 no) PKGVERSION= ;;
7798 *) PKGVERSION="($withval) " ;;
7799 esac
7800 else
7801 PKGVERSION="(GCC) "
7809 # Check whether --with-bugurl was given.
7810 if test "${with_bugurl+set}" = set; then :
7811 withval=$with_bugurl; case "$withval" in
7812 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7813 no) BUGURL=
7815 *) BUGURL="$withval"
7817 esac
7818 else
7819 BUGURL="https://gcc.gnu.org/bugs/"
7823 case ${BUGURL} in
7825 REPORT_BUGS_TO=
7826 REPORT_BUGS_TEXI=
7829 REPORT_BUGS_TO="<$BUGURL>"
7830 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7832 esac;
7837 # Allow overriding the default URL for documentation
7839 # Check whether --with-documentation-root-url was given.
7840 if test "${with_documentation_root_url+set}" = set; then :
7841 withval=$with_documentation_root_url; case "$withval" in
7842 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7843 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
7844 *) DOCUMENTATION_ROOT_URL="$withval"
7846 esac
7847 else
7848 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/gcc/"
7854 # Sanity check enable_languages in case someone does not run the toplevel
7855 # configure # script.
7856 # Check whether --enable-languages was given.
7857 if test "${enable_languages+set}" = set; then :
7858 enableval=$enable_languages; case ,${enable_languages}, in
7859 ,,|,yes,)
7860 # go safe -- we cannot be much sure without the toplevel
7861 # configure's
7862 # analysis of which target libs are present and usable
7863 enable_languages=c
7865 *,all,*)
7866 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
7868 *,c,*)
7871 enable_languages=c,${enable_languages}
7873 esac
7874 else
7875 enable_languages=c
7879 # If top-level libada has been disabled, then wire in install-gnatlib
7880 # invocation with `make install', so that one can build and install
7881 # the library manually with `make -C gcc all gnatlib gnattools install'.
7882 if test x"$enable_libada" = xno; then
7883 gnat_install_lib=gnat-install-lib
7884 else
7885 gnat_install_lib=
7889 if test x"$enable_as_accelerator_for" != x; then
7891 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7893 enable_as_accelerator=yes
7894 case "${target}" in
7895 *-intelmicemul-*)
7896 # In this case we expect offload compiler to be built as native, so we
7897 # need to rename the driver to avoid clashes with host's drivers.
7898 program_transform_name="s&^&${target}-&" ;;
7899 esac
7900 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7901 program_transform_name=`echo $program_transform_name | sed $sedscript`
7902 accel_dir_suffix=/accel/${target_noncanonical}
7903 real_target_noncanonical=${enable_as_accelerator_for}
7909 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7910 tgt=`echo $tgt | sed 's/=.*//'`
7912 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7913 enable_hsa=1
7914 else
7915 enable_offloading=1
7916 case "$tgt" in
7917 *-intelmicemul-*)
7918 omp_device_property=omp-device-properties-i386
7919 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7921 gcn*-*)
7922 omp_device_property=omp-device-properties-gcn
7923 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7925 nvptx*-*)
7926 omp_device_property=omp-device-properties-nvptx
7927 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7929 esac
7930 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
7931 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
7934 if test x"$offload_targets" = x; then
7935 offload_targets=$tgt
7936 else
7937 offload_targets="$offload_targets,$tgt"
7939 done
7944 cat >>confdefs.h <<_ACEOF
7945 #define OFFLOAD_TARGETS "$offload_targets"
7946 _ACEOF
7948 if test x"$enable_offloading" != x; then
7950 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7952 else
7954 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7958 if test x"$enable_hsa" = x1 ; then
7960 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7965 # Check whether --with-multilib-list was given.
7966 if test "${with_multilib_list+set}" = set; then :
7967 withval=$with_multilib_list; :
7968 else
7969 with_multilib_list=default
7973 # -------------------------
7974 # Checks for other programs
7975 # -------------------------
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7979 set x ${MAKE-make}
7980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7981 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 cat >conftest.make <<\_ACEOF
7985 SHELL = /bin/sh
7986 all:
7987 @echo '@@@%%%=$(MAKE)=@@@%%%'
7988 _ACEOF
7989 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7991 *@@@%%%=?*=@@@%%%*)
7992 eval ac_cv_prog_make_${ac_make}_set=yes;;
7994 eval ac_cv_prog_make_${ac_make}_set=no;;
7995 esac
7996 rm -f conftest.make
7998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8000 $as_echo "yes" >&6; }
8001 SET_MAKE=
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 SET_MAKE="MAKE=${MAKE-make}"
8009 # Find some useful tools
8010 for ac_prog in gawk mawk nawk awk
8012 # Extract the first word of "$ac_prog", so it can be a program name with args.
8013 set dummy $ac_prog; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_AWK+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$AWK"; then
8020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_prog_AWK="$ac_prog"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8039 AWK=$ac_cv_prog_AWK
8040 if test -n "$AWK"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8042 $as_echo "$AWK" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8049 test -n "$AWK" && break
8050 done
8052 # We need awk to create options.c and options.h.
8053 # Bail out if it's missing.
8054 case ${AWK} in
8055 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8056 esac
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8059 $as_echo_n "checking whether ln -s works... " >&6; }
8060 if ${gcc_cv_prog_LN_S+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 rm -f conftestdata_t
8064 echo >conftestdata_f
8065 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8066 then
8067 gcc_cv_prog_LN_S="ln -s"
8068 else
8069 if ln conftestdata_f conftestdata_t 2>/dev/null
8070 then
8071 gcc_cv_prog_LN_S=ln
8072 else
8073 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8074 then
8075 gcc_cv_prog_LN_S="cp -p"
8076 else
8077 gcc_cv_prog_LN_S=cp
8081 rm -f conftestdata_f conftestdata_t
8084 LN_S="$gcc_cv_prog_LN_S"
8085 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8087 $as_echo "yes" >&6; }
8088 else
8089 if test "$gcc_cv_prog_LN_S" = "ln"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8091 $as_echo "no, using ln" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8094 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8099 $as_echo_n "checking whether ln works... " >&6; }
8100 if ${acx_cv_prog_LN+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 rm -f conftestdata_t
8104 echo >conftestdata_f
8105 if ln conftestdata_f conftestdata_t 2>/dev/null
8106 then
8107 acx_cv_prog_LN=ln
8108 else
8109 acx_cv_prog_LN=no
8111 rm -f conftestdata_f conftestdata_t
8114 if test $acx_cv_prog_LN = no; then
8115 LN="$LN_S"
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8117 $as_echo "no, using $LN" >&6; }
8118 else
8119 LN="$acx_cv_prog_LN"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8121 $as_echo "yes" >&6; }
8124 if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_RANLIB+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$RANLIB"; then
8133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8146 done
8147 done
8148 IFS=$as_save_IFS
8152 RANLIB=$ac_cv_prog_RANLIB
8153 if test -n "$RANLIB"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8155 $as_echo "$RANLIB" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8163 if test -z "$ac_cv_prog_RANLIB"; then
8164 ac_ct_RANLIB=$RANLIB
8165 # Extract the first word of "ranlib", so it can be a program name with args.
8166 set dummy ranlib; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$ac_ct_RANLIB"; then
8173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_RANLIB="ranlib"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8193 if test -n "$ac_ct_RANLIB"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8195 $as_echo "$ac_ct_RANLIB" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8201 if test "x$ac_ct_RANLIB" = x; then
8202 RANLIB=":"
8203 else
8204 case $cross_compiling:$ac_tool_warned in
8205 yes:)
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208 ac_tool_warned=yes ;;
8209 esac
8210 RANLIB=$ac_ct_RANLIB
8212 else
8213 RANLIB="$ac_cv_prog_RANLIB"
8216 ranlib_flags=""
8219 # Find a good install program. We prefer a C program (faster),
8220 # so one script is as good as another. But avoid the broken or
8221 # incompatible versions:
8222 # SysV /etc/install, /usr/sbin/install
8223 # SunOS /usr/etc/install
8224 # IRIX /sbin/install
8225 # AIX /bin/install
8226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8228 # ./install, which can be erroneously created by make from ./install.sh.
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8230 $as_echo_n "checking for a BSD compatible install... " >&6; }
8231 if test -z "$INSTALL"; then
8232 if ${ac_cv_path_install+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8236 for ac_dir in $PATH; do
8237 # Account for people who put trailing slashes in PATH elements.
8238 case "$ac_dir/" in
8239 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8241 # OSF1 and SCO ODT 3.0 have their own names for install.
8242 for ac_prog in ginstall scoinst install; do
8243 if test -f $ac_dir/$ac_prog; then
8244 if test $ac_prog = install &&
8245 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8246 # AIX install. It has an incompatible calling convention.
8247 # OSF/1 installbsd also uses dspmsg, but is usable.
8249 else
8250 ac_cv_path_install="$ac_dir/$ac_prog -c"
8251 break 2
8254 done
8256 esac
8257 done
8258 IFS="$ac_save_IFS"
8261 if test "${ac_cv_path_install+set}" = set; then
8262 INSTALL="$ac_cv_path_install"
8263 else
8264 # As a last resort, use the slow shell script. We don't cache a
8265 # path for INSTALL within a source directory, because that will
8266 # break other packages using the cache if that directory is
8267 # removed, or if the path is relative.
8268 INSTALL="$ac_install_sh"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8272 $as_echo "$INSTALL" >&6; }
8274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8275 # It thinks the first close brace ends the variable substitution.
8276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8278 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8281 # See if cmp has --ignore-initial.
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8283 $as_echo_n "checking for cmp's capabilities... " >&6; }
8284 if ${gcc_cv_prog_cmp_skip+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 echo abfoo >t1
8288 echo cdfoo >t2
8289 gcc_cv_prog_cmp_skip=slowcompare
8290 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8291 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8293 else
8294 gcc_cv_prog_cmp_skip=gnucompare
8297 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8298 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8299 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8301 else
8302 gcc_cv_prog_cmp_skip=fastcompare
8306 rm t1 t2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8310 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8311 make_compare_target=$gcc_cv_prog_cmp_skip
8315 # See if we have the mktemp command.
8316 # Extract the first word of "mktemp", so it can be a program name with args.
8317 set dummy mktemp; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test -n "$have_mktemp_command"; then
8324 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333 ac_cv_prog_have_mktemp_command="yes"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8337 done
8338 done
8339 IFS=$as_save_IFS
8341 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8344 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8345 if test -n "$have_mktemp_command"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8347 $as_echo "$have_mktemp_command" >&6; }
8348 else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8355 # See if makeinfo has been installed and is modern enough
8356 # that we can use it.
8358 # Extract the first word of "makeinfo", so it can be a program name with args.
8359 set dummy makeinfo; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_prog_MAKEINFO+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 if test -n "$MAKEINFO"; then
8366 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8367 else
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_MAKEINFO="makeinfo"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8379 done
8380 done
8381 IFS=$as_save_IFS
8385 MAKEINFO=$ac_cv_prog_MAKEINFO
8386 if test -n "$MAKEINFO"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8388 $as_echo "$MAKEINFO" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8395 if test -n "$MAKEINFO"; then
8396 # Found it, now check the version.
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8398 $as_echo_n "checking for modern makeinfo... " >&6; }
8399 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8403 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8405 case $ac_prog_version in
8406 '') gcc_cv_prog_makeinfo_modern=no;;
8407 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8408 *) gcc_cv_prog_makeinfo_modern=no;;
8409 esac
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8413 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8414 else
8415 gcc_cv_prog_makeinfo_modern=no
8417 if test $gcc_cv_prog_makeinfo_modern = no; then
8418 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8421 if test $gcc_cv_prog_makeinfo_modern = no; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8423 *** Makeinfo is missing or too old.
8424 *** Info documentation will not be built." >&5
8425 $as_echo "$as_me: WARNING:
8426 *** Makeinfo is missing or too old.
8427 *** Info documentation will not be built." >&2;}
8428 BUILD_INFO=
8429 else
8430 BUILD_INFO=info
8434 # Is pod2man recent enough to regenerate manpages?
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8436 $as_echo_n "checking for recent Pod::Man... " >&6; }
8437 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8439 $as_echo "yes" >&6; }
8440 GENERATED_MANPAGES=generated-manpages
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 GENERATED_MANPAGES=
8448 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8450 # How about lex?
8451 for ac_prog in flex
8453 # Extract the first word of "$ac_prog", so it can be a program name with args.
8454 set dummy $ac_prog; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_FLEX+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$FLEX"; then
8461 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_FLEX="$ac_prog"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8480 FLEX=$ac_cv_prog_FLEX
8481 if test -n "$FLEX"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8483 $as_echo "$FLEX" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8490 test -n "$FLEX" && break
8491 done
8492 test -n "$FLEX" || FLEX="$MISSING flex"
8495 # Bison?
8496 for ac_prog in bison
8498 # Extract the first word of "$ac_prog", so it can be a program name with args.
8499 set dummy $ac_prog; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if ${ac_cv_prog_BISON+:} false; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test -n "$BISON"; then
8506 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515 ac_cv_prog_BISON="$ac_prog"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8525 BISON=$ac_cv_prog_BISON
8526 if test -n "$BISON"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8528 $as_echo "$BISON" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8535 test -n "$BISON" && break
8536 done
8537 test -n "$BISON" || BISON="$MISSING bison"
8540 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8541 # check for build == host before using them.
8543 # NM
8544 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8545 && test -d ../binutils ; then
8546 NM='${objdir}/../binutils/nm-new'
8547 else
8548 # Extract the first word of "nm", so it can be a program name with args.
8549 set dummy nm; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_prog_NM+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 if test -n "$NM"; then
8556 ac_cv_prog_NM="$NM" # Let the user override the test.
8557 else
8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8559 for as_dir in $PATH
8561 IFS=$as_save_IFS
8562 test -z "$as_dir" && as_dir=.
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8565 ac_cv_prog_NM="nm"
8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 break 2
8569 done
8570 done
8571 IFS=$as_save_IFS
8573 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8576 NM=$ac_cv_prog_NM
8577 if test -n "$NM"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8579 $as_echo "$NM" >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8588 # AR
8589 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8590 && test -d ../binutils ; then
8591 AR='${objdir}/../binutils/ar'
8592 else
8593 # Extract the first word of "ar", so it can be a program name with args.
8594 set dummy ar; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if ${ac_cv_prog_AR+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$AR"; then
8601 ac_cv_prog_AR="$AR" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8610 ac_cv_prog_AR="ar"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8614 done
8615 done
8616 IFS=$as_save_IFS
8618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8621 AR=$ac_cv_prog_AR
8622 if test -n "$AR"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8624 $as_echo "$AR" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8633 # The jit documentation looks better if built with sphinx, but can be
8634 # built with texinfo if sphinx is not available.
8635 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8636 # Extract the first word of "sphinx-build", so it can be a program name with args.
8637 set dummy sphinx-build; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if ${ac_cv_prog_doc_build_sys+:} false; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$doc_build_sys"; then
8644 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8653 ac_cv_prog_doc_build_sys="sphinx"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8659 IFS=$as_save_IFS
8661 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8664 doc_build_sys=$ac_cv_prog_doc_build_sys
8665 if test -n "$doc_build_sys"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8667 $as_echo "$doc_build_sys" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 # --------------------
8676 # Checks for C headers
8677 # --------------------
8679 # Need to reject headers which give warnings, so that the -Werror bootstrap
8680 # works later. *sigh* This needs to come before all header checks.
8682 ac_c_preproc_warn_flag=yes
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8685 $as_echo_n "checking for ANSI C header files... " >&6; }
8686 if ${ac_cv_header_stdc+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 #include <stdlib.h>
8692 #include <stdarg.h>
8693 #include <string.h>
8694 #include <float.h>
8697 main ()
8701 return 0;
8703 _ACEOF
8704 if ac_fn_cxx_try_compile "$LINENO"; then :
8705 ac_cv_header_stdc=yes
8706 else
8707 ac_cv_header_stdc=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 if test $ac_cv_header_stdc = yes; then
8712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <string.h>
8717 _ACEOF
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 $EGREP "memchr" >/dev/null 2>&1; then :
8721 else
8722 ac_cv_header_stdc=no
8724 rm -f conftest*
8728 if test $ac_cv_header_stdc = yes; then
8729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <stdlib.h>
8734 _ACEOF
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 $EGREP "free" >/dev/null 2>&1; then :
8738 else
8739 ac_cv_header_stdc=no
8741 rm -f conftest*
8745 if test $ac_cv_header_stdc = yes; then
8746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8747 if test "$cross_compiling" = yes; then :
8749 else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <ctype.h>
8753 #include <stdlib.h>
8754 #if ((' ' & 0x0FF) == 0x020)
8755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8757 #else
8758 # define ISLOWER(c) \
8759 (('a' <= (c) && (c) <= 'i') \
8760 || ('j' <= (c) && (c) <= 'r') \
8761 || ('s' <= (c) && (c) <= 'z'))
8762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8763 #endif
8765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8767 main ()
8769 int i;
8770 for (i = 0; i < 256; i++)
8771 if (XOR (islower (i), ISLOWER (i))
8772 || toupper (i) != TOUPPER (i))
8773 return 2;
8774 return 0;
8776 _ACEOF
8777 if ac_fn_cxx_try_run "$LINENO"; then :
8779 else
8780 ac_cv_header_stdc=no
8782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8783 conftest.$ac_objext conftest.beam conftest.$ac_ext
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8789 $as_echo "$ac_cv_header_stdc" >&6; }
8790 if test $ac_cv_header_stdc = yes; then
8792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8797 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8798 if ${ac_cv_header_time+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <sys/types.h>
8804 #include <sys/time.h>
8805 #include <time.h>
8808 main ()
8810 if ((struct tm *) 0)
8811 return 0;
8813 return 0;
8815 _ACEOF
8816 if ac_fn_cxx_try_compile "$LINENO"; then :
8817 ac_cv_header_time=yes
8818 else
8819 ac_cv_header_time=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8824 $as_echo "$ac_cv_header_time" >&6; }
8825 if test $ac_cv_header_time = yes; then
8827 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8832 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8833 if ${gcc_cv_header_string+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #include <string.h>
8839 #include <strings.h>
8841 main ()
8845 return 0;
8847 _ACEOF
8848 if ac_fn_cxx_try_compile "$LINENO"; then :
8849 gcc_cv_header_string=yes
8850 else
8851 gcc_cv_header_string=no
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8856 $as_echo "$gcc_cv_header_string" >&6; }
8857 if test $gcc_cv_header_string = yes; then
8859 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8864 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8865 if ${ac_cv_header_sys_wait_h+:} false; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <sys/types.h>
8871 #include <sys/wait.h>
8872 #ifndef WEXITSTATUS
8873 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8874 #endif
8875 #ifndef WIFEXITED
8876 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8877 #endif
8880 main ()
8882 int s;
8883 wait (&s);
8884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8886 return 0;
8888 _ACEOF
8889 if ac_fn_cxx_try_compile "$LINENO"; then :
8890 ac_cv_header_sys_wait_h=yes
8891 else
8892 ac_cv_header_sys_wait_h=no
8894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8897 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8898 if test $ac_cv_header_sys_wait_h = yes; then
8900 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8905 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8906 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 #include <sys/types.h>
8912 #include <termios.h>
8913 #ifdef TIOCGWINSZ
8915 #endif
8917 _ACEOF
8918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8919 $EGREP "yes" >/dev/null 2>&1; then :
8920 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8921 else
8922 ac_cv_sys_tiocgwinsz_in_termios_h=no
8924 rm -f conftest*
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8928 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8930 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8932 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8933 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 #include <sys/types.h>
8939 #include <sys/ioctl.h>
8940 #ifdef TIOCGWINSZ
8942 #endif
8944 _ACEOF
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 $EGREP "yes" >/dev/null 2>&1; then :
8947 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8948 else
8949 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8951 rm -f conftest*
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8955 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8957 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8959 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8964 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8965 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8966 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8967 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8968 do :
8969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8970 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8972 cat >>confdefs.h <<_ACEOF
8973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974 _ACEOF
8977 done
8980 # Check for thread headers.
8981 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8982 if test "x$ac_cv_header_thread_h" = xyes; then :
8983 have_thread_h=yes
8984 else
8985 have_thread_h=
8988 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8989 if test "x$ac_cv_header_pthread_h" = xyes; then :
8990 have_pthread_h=yes
8991 else
8992 have_pthread_h=
8996 # These tests can't be done till we know if we have limits.h.
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8998 $as_echo_n "checking for CHAR_BIT... " >&6; }
8999 if ${gcc_cv_decl_char_bit+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 #ifdef HAVE_LIMITS_H
9005 #include <limits.h>
9006 #endif
9007 #ifdef CHAR_BIT
9008 found
9009 #endif
9010 _ACEOF
9011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9012 $EGREP "found" >/dev/null 2>&1; then :
9013 gcc_cv_decl_char_bit=yes
9014 else
9015 gcc_cv_decl_char_bit=no
9017 rm -f conftest*
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9022 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9023 if test $gcc_cv_decl_char_bit = no; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9025 $as_echo_n "checking number of bits in a byte... " >&6; }
9026 if ${gcc_cv_c_nbby+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9030 gcc_cv_c_nbby=
9031 while test $i -lt 65; do
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9036 main ()
9038 switch(0) {
9039 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9040 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9043 return 0;
9045 _ACEOF
9046 if ac_fn_cxx_try_compile "$LINENO"; then :
9047 gcc_cv_c_nbby=$i; break
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 i=`expr $i + 1`
9051 done
9052 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9056 $as_echo "$gcc_cv_c_nbby" >&6; }
9057 if test $gcc_cv_c_nbby = failed; then
9058 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9059 else
9061 cat >>confdefs.h <<_ACEOF
9062 #define CHAR_BIT $gcc_cv_c_nbby
9063 _ACEOF
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9069 if ${ac_cv_c_bigendian+:} false; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 ac_cv_c_bigendian=unknown
9073 # See if we're dealing with a universal compiler.
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #ifndef __APPLE_CC__
9077 not a universal capable compiler
9078 #endif
9079 typedef int dummy;
9081 _ACEOF
9082 if ac_fn_cxx_try_compile "$LINENO"; then :
9084 # Check for potential -arch flags. It is not universal unless
9085 # there are at least two -arch flags with different values.
9086 ac_arch=
9087 ac_prev=
9088 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9089 if test -n "$ac_prev"; then
9090 case $ac_word in
9091 i?86 | x86_64 | ppc | ppc64)
9092 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9093 ac_arch=$ac_word
9094 else
9095 ac_cv_c_bigendian=universal
9096 break
9099 esac
9100 ac_prev=
9101 elif test "x$ac_word" = "x-arch"; then
9102 ac_prev=arch
9104 done
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 if test $ac_cv_c_bigendian = unknown; then
9108 # See if sys/param.h defines the BYTE_ORDER macro.
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <sys/param.h>
9115 main ()
9117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9119 && LITTLE_ENDIAN)
9120 bogus endian macros
9121 #endif
9124 return 0;
9126 _ACEOF
9127 if ac_fn_cxx_try_compile "$LINENO"; then :
9128 # It does; now see whether it defined to BIG_ENDIAN or not.
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131 #include <sys/types.h>
9132 #include <sys/param.h>
9135 main ()
9137 #if BYTE_ORDER != BIG_ENDIAN
9138 not big endian
9139 #endif
9142 return 0;
9144 _ACEOF
9145 if ac_fn_cxx_try_compile "$LINENO"; then :
9146 ac_cv_c_bigendian=yes
9147 else
9148 ac_cv_c_bigendian=no
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 if test $ac_cv_c_bigendian = unknown; then
9155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <limits.h>
9161 main ()
9163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9164 bogus endian macros
9165 #endif
9168 return 0;
9170 _ACEOF
9171 if ac_fn_cxx_try_compile "$LINENO"; then :
9172 # It does; now see whether it defined to _BIG_ENDIAN or not.
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 #include <limits.h>
9178 main ()
9180 #ifndef _BIG_ENDIAN
9181 not big endian
9182 #endif
9185 return 0;
9187 _ACEOF
9188 if ac_fn_cxx_try_compile "$LINENO"; then :
9189 ac_cv_c_bigendian=yes
9190 else
9191 ac_cv_c_bigendian=no
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 if test $ac_cv_c_bigendian = unknown; then
9198 # Compile a test program.
9199 if test "$cross_compiling" = yes; then :
9200 # Try to guess by grepping values from an object file.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 short int ascii_mm[] =
9204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9205 short int ascii_ii[] =
9206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9207 int use_ascii (int i) {
9208 return ascii_mm[i] + ascii_ii[i];
9210 short int ebcdic_ii[] =
9211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9212 short int ebcdic_mm[] =
9213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9214 int use_ebcdic (int i) {
9215 return ebcdic_mm[i] + ebcdic_ii[i];
9217 extern int foo;
9220 main ()
9222 return use_ascii (foo) == use_ebcdic (foo);
9224 return 0;
9226 _ACEOF
9227 if ac_fn_cxx_try_compile "$LINENO"; then :
9228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9229 ac_cv_c_bigendian=yes
9231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9232 if test "$ac_cv_c_bigendian" = unknown; then
9233 ac_cv_c_bigendian=no
9234 else
9235 # finding both strings is unlikely to happen, but who knows?
9236 ac_cv_c_bigendian=unknown
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 else
9242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9244 $ac_includes_default
9246 main ()
9249 /* Are we little or big endian? From Harbison&Steele. */
9250 union
9252 long int l;
9253 char c[sizeof (long int)];
9254 } u;
9255 u.l = 1;
9256 return u.c[sizeof (long int) - 1] == 1;
9259 return 0;
9261 _ACEOF
9262 if ac_fn_cxx_try_run "$LINENO"; then :
9263 ac_cv_c_bigendian=no
9264 else
9265 ac_cv_c_bigendian=yes
9267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9268 conftest.$ac_objext conftest.beam conftest.$ac_ext
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9274 $as_echo "$ac_cv_c_bigendian" >&6; }
9275 case $ac_cv_c_bigendian in #(
9276 yes)
9277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9278 ;; #(
9280 ;; #(
9281 universal)
9283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9285 ;; #(
9287 as_fn_error $? "unknown endianness
9288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9289 esac
9292 # ----------------------
9293 # Checks for C++ headers
9294 # ----------------------
9296 ac_ext=cpp
9297 ac_cpp='$CXXCPP $CPPFLAGS'
9298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9302 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9303 if test -z "$CXXCPP"; then
9304 if ${ac_cv_prog_CXXCPP+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 # Double quotes because CXXCPP needs to be expanded
9308 for CXXCPP in "$CXX -E" "/lib/cpp"
9310 ac_preproc_ok=false
9311 for ac_cxx_preproc_warn_flag in '' yes
9313 # Use a header file that comes with gcc, so configuring glibc
9314 # with a fresh cross-compiler works.
9315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 # <limits.h> exists even on freestanding compilers.
9317 # On the NeXT, cc -E runs the code through the compiler's parser,
9318 # not just through cpp. "Syntax error" is here to catch this case.
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321 #ifdef __STDC__
9322 # include <limits.h>
9323 #else
9324 # include <assert.h>
9325 #endif
9326 Syntax error
9327 _ACEOF
9328 if ac_fn_cxx_try_cpp "$LINENO"; then :
9330 else
9331 # Broken: fails on valid input.
9332 continue
9334 rm -f conftest.err conftest.i conftest.$ac_ext
9336 # OK, works on sane cases. Now check whether nonexistent headers
9337 # can be detected and how.
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 #include <ac_nonexistent.h>
9341 _ACEOF
9342 if ac_fn_cxx_try_cpp "$LINENO"; then :
9343 # Broken: success on invalid input.
9344 continue
9345 else
9346 # Passes both tests.
9347 ac_preproc_ok=:
9348 break
9350 rm -f conftest.err conftest.i conftest.$ac_ext
9352 done
9353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9354 rm -f conftest.i conftest.err conftest.$ac_ext
9355 if $ac_preproc_ok; then :
9356 break
9359 done
9360 ac_cv_prog_CXXCPP=$CXXCPP
9363 CXXCPP=$ac_cv_prog_CXXCPP
9364 else
9365 ac_cv_prog_CXXCPP=$CXXCPP
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9368 $as_echo "$CXXCPP" >&6; }
9369 ac_preproc_ok=false
9370 for ac_cxx_preproc_warn_flag in '' yes
9372 # Use a header file that comes with gcc, so configuring glibc
9373 # with a fresh cross-compiler works.
9374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9375 # <limits.h> exists even on freestanding compilers.
9376 # On the NeXT, cc -E runs the code through the compiler's parser,
9377 # not just through cpp. "Syntax error" is here to catch this case.
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #ifdef __STDC__
9381 # include <limits.h>
9382 #else
9383 # include <assert.h>
9384 #endif
9385 Syntax error
9386 _ACEOF
9387 if ac_fn_cxx_try_cpp "$LINENO"; then :
9389 else
9390 # Broken: fails on valid input.
9391 continue
9393 rm -f conftest.err conftest.i conftest.$ac_ext
9395 # OK, works on sane cases. Now check whether nonexistent headers
9396 # can be detected and how.
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 #include <ac_nonexistent.h>
9400 _ACEOF
9401 if ac_fn_cxx_try_cpp "$LINENO"; then :
9402 # Broken: success on invalid input.
9403 continue
9404 else
9405 # Passes both tests.
9406 ac_preproc_ok=:
9407 break
9409 rm -f conftest.err conftest.i conftest.$ac_ext
9411 done
9412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9413 rm -f conftest.i conftest.err conftest.$ac_ext
9414 if $ac_preproc_ok; then :
9416 else
9417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9420 See \`config.log' for more details" >&5
9421 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9422 See \`config.log' for more details" >&2;}; }
9425 ac_ext=cpp
9426 ac_cpp='$CXXCPP $CPPFLAGS'
9427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9432 for ac_header in unordered_map
9433 do :
9434 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9435 if test "x$ac_cv_header_unordered_map" = xyes; then :
9436 cat >>confdefs.h <<_ACEOF
9437 #define HAVE_UNORDERED_MAP 1
9438 _ACEOF
9441 done
9443 for ac_header in tr1/unordered_map
9444 do :
9445 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9446 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9447 cat >>confdefs.h <<_ACEOF
9448 #define HAVE_TR1_UNORDERED_MAP 1
9449 _ACEOF
9452 done
9454 for ac_header in ext/hash_map
9455 do :
9456 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9457 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_EXT_HASH_MAP 1
9460 _ACEOF
9463 done
9466 # --------
9467 # Dependency checking.
9468 # --------
9470 rm -rf .tst 2>/dev/null
9471 mkdir .tst 2>/dev/null
9472 if test -d .tst; then
9473 am__leading_dot=.
9474 else
9475 am__leading_dot=_
9477 rmdir .tst 2>/dev/null
9479 DEPDIR="${am__leading_dot}deps"
9481 ac_config_commands="$ac_config_commands depdir"
9484 ac_config_commands="$ac_config_commands gccdepdir"
9487 depcc="$CXX" am_compiler_list=
9489 am_depcomp=$ac_aux_dir/depcomp
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9491 $as_echo_n "checking dependency style of $depcc... " >&6; }
9492 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -f "$am_depcomp"; then
9496 # We make a subdir and do the tests there. Otherwise we can end up
9497 # making bogus files that we don't know about and never remove. For
9498 # instance it was reported that on HP-UX the gcc test will end up
9499 # making a dummy file named `D' -- because `-MD' means `put the output
9500 # in D'.
9501 mkdir conftest.dir
9502 # Copy depcomp to subdir because otherwise we won't find it if we're
9503 # using a relative directory.
9504 cp "$am_depcomp" conftest.dir
9505 cd conftest.dir
9506 # We will build objects and dependencies in a subdirectory because
9507 # it helps to detect inapplicable dependency modes. For instance
9508 # both Tru64's cc and ICC support -MD to output dependencies as a
9509 # side effect of compilation, but ICC will put the dependencies in
9510 # the current directory while Tru64 will put them in the object
9511 # directory.
9512 mkdir sub
9514 am_cv_CXX_dependencies_compiler_type=none
9515 if test "$am_compiler_list" = ""; then
9516 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9518 for depmode in $am_compiler_list; do
9519 if test $depmode = none; then break; fi
9521 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9522 # Setup a source with many dependencies, because some compilers
9523 # like to wrap large dependency lists on column 80 (with \), and
9524 # we should not choose a depcomp mode which is confused by this.
9526 # We need to recreate these files for each test, as the compiler may
9527 # overwrite some of them when testing with obscure command lines.
9528 # This happens at least with the AIX C compiler.
9529 : > sub/conftest.c
9530 for i in 1 2 3 4 5 6; do
9531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9533 # Solaris 8's {/usr,}/bin/sh.
9534 touch sub/conftst$i.h
9535 done
9536 echo "include sub/conftest.Po" > confmf
9538 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9539 # mode. It turns out that the SunPro C++ compiler does not properly
9540 # handle `-M -o', and we need to detect this.
9541 depcmd="depmode=$depmode \
9542 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9544 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9545 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9546 if env $depcmd > conftest.err 2>&1 &&
9547 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9548 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9549 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9550 # icc doesn't choke on unknown options, it will just issue warnings
9551 # or remarks (even with -Werror). So we grep stderr for any message
9552 # that says an option was ignored or not supported.
9553 # When given -MP, icc 7.0 and 7.1 complain thusly:
9554 # icc: Command line warning: ignoring option '-M'; no argument required
9555 # The diagnosis changed in icc 8.0:
9556 # icc: Command line remark: option '-MP' not supported
9557 if (grep 'ignoring option' conftest.err ||
9558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9559 am_cv_CXX_dependencies_compiler_type=$depmode
9560 $as_echo "$as_me:$LINENO: success" >&5
9561 break
9564 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9565 sed -e 's/^/| /' < conftest.err >&5
9566 done
9568 cd ..
9569 rm -rf conftest.dir
9570 else
9571 am_cv_CXX_dependencies_compiler_type=none
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9576 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9577 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9578 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9579 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9584 # --------
9585 # UNSORTED
9586 # --------
9589 # These libraries may be used by collect2.
9590 # We may need a special search path to get them linked.
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9592 $as_echo_n "checking for collect2 libraries... " >&6; }
9593 if ${gcc_cv_collect2_libs+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 save_LIBS="$LIBS"
9597 for libs in '' -lld -lmld \
9598 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9599 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9601 LIBS="$libs"
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9605 /* Override any GCC internal prototype to avoid an error.
9606 Use char because int might match the return type of a GCC
9607 builtin and then its argument prototype would still apply. */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char ldopen ();
9613 main ()
9615 return ldopen ();
9617 return 0;
9619 _ACEOF
9620 if ac_fn_cxx_try_link "$LINENO"; then :
9621 gcc_cv_collect2_libs="$libs"; break
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 done
9626 LIBS="$save_LIBS"
9627 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9630 $as_echo "$gcc_cv_collect2_libs" >&6; }
9631 case $gcc_cv_collect2_libs in
9632 "none required") ;;
9633 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9634 esac
9637 # When building Ada code on Alpha, we need exc_resume which is usually in
9638 # -lexc. So test for it.
9639 save_LIBS="$LIBS"
9640 LIBS=
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9642 $as_echo_n "checking for library containing exc_resume... " >&6; }
9643 if ${ac_cv_search_exc_resume+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 ac_func_search_save_LIBS=$LIBS
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char exc_resume ();
9658 main ()
9660 return exc_resume ();
9662 return 0;
9664 _ACEOF
9665 for ac_lib in '' exc; do
9666 if test -z "$ac_lib"; then
9667 ac_res="none required"
9668 else
9669 ac_res=-l$ac_lib
9670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9672 if ac_fn_cxx_try_link "$LINENO"; then :
9673 ac_cv_search_exc_resume=$ac_res
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext
9677 if ${ac_cv_search_exc_resume+:} false; then :
9678 break
9680 done
9681 if ${ac_cv_search_exc_resume+:} false; then :
9683 else
9684 ac_cv_search_exc_resume=no
9686 rm conftest.$ac_ext
9687 LIBS=$ac_func_search_save_LIBS
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9690 $as_echo "$ac_cv_search_exc_resume" >&6; }
9691 ac_res=$ac_cv_search_exc_resume
9692 if test "$ac_res" != no; then :
9693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9697 GNAT_LIBEXC="$LIBS"
9698 LIBS="$save_LIBS"
9701 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9702 save_LIBS="$LIBS"
9703 LIBS=
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9705 $as_echo_n "checking for library containing kstat_open... " >&6; }
9706 if ${ac_cv_search_kstat_open+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 ac_func_search_save_LIBS=$LIBS
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char kstat_open ();
9721 main ()
9723 return kstat_open ();
9725 return 0;
9727 _ACEOF
9728 for ac_lib in '' kstat; do
9729 if test -z "$ac_lib"; then
9730 ac_res="none required"
9731 else
9732 ac_res=-l$ac_lib
9733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9735 if ac_fn_cxx_try_link "$LINENO"; then :
9736 ac_cv_search_kstat_open=$ac_res
9738 rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext
9740 if ${ac_cv_search_kstat_open+:} false; then :
9741 break
9743 done
9744 if ${ac_cv_search_kstat_open+:} false; then :
9746 else
9747 ac_cv_search_kstat_open=no
9749 rm conftest.$ac_ext
9750 LIBS=$ac_func_search_save_LIBS
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9753 $as_echo "$ac_cv_search_kstat_open" >&6; }
9754 ac_res=$ac_cv_search_kstat_open
9755 if test "$ac_res" != no; then :
9756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9760 EXTRA_GCC_LIBS="$LIBS"
9761 LIBS="$save_LIBS"
9764 # Some systems put ldexp and frexp in libm instead of libc; assume
9765 # they're both in the same place. jcf-dump needs them.
9766 save_LIBS="$LIBS"
9767 LIBS=
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9769 $as_echo_n "checking for library containing ldexp... " >&6; }
9770 if ${ac_cv_search_ldexp+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 ac_func_search_save_LIBS=$LIBS
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9777 /* Override any GCC internal prototype to avoid an error.
9778 Use char because int might match the return type of a GCC
9779 builtin and then its argument prototype would still apply. */
9780 #ifdef __cplusplus
9781 extern "C"
9782 #endif
9783 char ldexp ();
9785 main ()
9787 return ldexp ();
9789 return 0;
9791 _ACEOF
9792 for ac_lib in '' m; do
9793 if test -z "$ac_lib"; then
9794 ac_res="none required"
9795 else
9796 ac_res=-l$ac_lib
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9799 if ac_fn_cxx_try_link "$LINENO"; then :
9800 ac_cv_search_ldexp=$ac_res
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext
9804 if ${ac_cv_search_ldexp+:} false; then :
9805 break
9807 done
9808 if ${ac_cv_search_ldexp+:} false; then :
9810 else
9811 ac_cv_search_ldexp=no
9813 rm conftest.$ac_ext
9814 LIBS=$ac_func_search_save_LIBS
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9817 $as_echo "$ac_cv_search_ldexp" >&6; }
9818 ac_res=$ac_cv_search_ldexp
9819 if test "$ac_res" != no; then :
9820 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9824 LDEXP_LIB="$LIBS"
9825 LIBS="$save_LIBS"
9828 # Some systems need dlopen
9829 save_LIBS="$LIBS"
9830 LIBS=
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9832 $as_echo_n "checking for library containing dlopen... " >&6; }
9833 if ${ac_cv_search_dlopen+:} false; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 ac_func_search_save_LIBS=$LIBS
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 /* Override any GCC internal prototype to avoid an error.
9841 Use char because int might match the return type of a GCC
9842 builtin and then its argument prototype would still apply. */
9843 #ifdef __cplusplus
9844 extern "C"
9845 #endif
9846 char dlopen ();
9848 main ()
9850 return dlopen ();
9852 return 0;
9854 _ACEOF
9855 for ac_lib in '' dl; do
9856 if test -z "$ac_lib"; then
9857 ac_res="none required"
9858 else
9859 ac_res=-l$ac_lib
9860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9862 if ac_fn_cxx_try_link "$LINENO"; then :
9863 ac_cv_search_dlopen=$ac_res
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext
9867 if ${ac_cv_search_dlopen+:} false; then :
9868 break
9870 done
9871 if ${ac_cv_search_dlopen+:} false; then :
9873 else
9874 ac_cv_search_dlopen=no
9876 rm conftest.$ac_ext
9877 LIBS=$ac_func_search_save_LIBS
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9880 $as_echo "$ac_cv_search_dlopen" >&6; }
9881 ac_res=$ac_cv_search_dlopen
9882 if test "$ac_res" != no; then :
9883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9887 DL_LIB="$LIBS"
9888 LIBS="$save_LIBS"
9891 # Use <inttypes.h> only if it exists,
9892 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9893 # PRId64
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9895 $as_echo_n "checking for inttypes.h... " >&6; }
9896 if ${gcc_cv_header_inttypes_h+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9901 #define __STDC_FORMAT_MACROS
9902 #include <sys/types.h>
9903 #include <inttypes.h>
9905 main ()
9907 intmax_t i = -1;
9908 #ifndef PRId64
9909 choke me
9910 #endif
9912 return 0;
9914 _ACEOF
9915 if ac_fn_cxx_try_compile "$LINENO"; then :
9916 gcc_cv_header_inttypes_h=yes
9917 else
9918 gcc_cv_header_inttypes_h=no
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9924 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9925 if test $gcc_cv_header_inttypes_h = yes; then
9927 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9931 # Look for the ZSTD package.
9932 ZSTD_INCLUDE=
9933 ZSTD_LIB=
9936 ZSTD_CPPFLAGS=
9937 ZSTD_LDFLAGS=
9939 # Check whether --with-zstd was given.
9940 if test "${with_zstd+set}" = set; then :
9941 withval=$with_zstd;
9945 # Check whether --with-zstd-include was given.
9946 if test "${with_zstd_include+set}" = set; then :
9947 withval=$with_zstd_include;
9951 # Check whether --with-zstd-lib was given.
9952 if test "${with_zstd_lib+set}" = set; then :
9953 withval=$with_zstd_lib;
9956 case "x$with_zstd" in
9957 x) ;;
9958 xno)
9959 ZSTD_INCLUDE=no
9960 ZSTD_LIB=no
9962 *) ZSTD_INCLUDE=$with_zstd/include
9963 ZSTD_LIB=$with_zstd/lib
9965 esac
9966 if test "x$with_zstd_include" != x; then
9967 ZSTD_INCLUDE=$with_zstd_include
9969 if test "x$with_zstd_lib" != x; then
9970 ZSTD_LIB=$with_zstd_lib
9972 if test "x$ZSTD_INCLUDE" != x \
9973 && test "x$ZSTD_INCLUDE" != xno; then
9974 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
9976 if test "x$ZSTD_LIB" != x \
9977 && test "x$ZSTD_LIB" != xno; then
9978 ZSTD_LDFLAGS=-L$ZSTD_LIB
9981 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
9982 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9985 $as_echo_n "checking for zstd.h... " >&6; }
9986 if ${gcc_cv_header_zstd_h+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 #include <zstd.h>
9993 main ()
9997 return 0;
9999 _ACEOF
10000 if ac_fn_cxx_try_compile "$LINENO"; then :
10001 gcc_cv_header_zstd_h=yes
10002 else
10003 gcc_cv_header_zstd_h=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10009 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10010 if test $gcc_cv_header_zstd_h = yes; then
10012 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10016 # LTO can use zstd compression algorithm
10017 save_LIBS="$LIBS"
10018 LIBS=
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10020 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10021 if ${ac_cv_search_ZSTD_compress+:} false; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 ac_func_search_save_LIBS=$LIBS
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 char ZSTD_compress ();
10036 main ()
10038 return ZSTD_compress ();
10040 return 0;
10042 _ACEOF
10043 for ac_lib in '' zstd; do
10044 if test -z "$ac_lib"; then
10045 ac_res="none required"
10046 else
10047 ac_res=-l$ac_lib
10048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10050 if ac_fn_cxx_try_link "$LINENO"; then :
10051 ac_cv_search_ZSTD_compress=$ac_res
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext
10055 if ${ac_cv_search_ZSTD_compress+:} false; then :
10056 break
10058 done
10059 if ${ac_cv_search_ZSTD_compress+:} false; then :
10061 else
10062 ac_cv_search_ZSTD_compress=no
10064 rm conftest.$ac_ext
10065 LIBS=$ac_func_search_save_LIBS
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10068 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10069 ac_res=$ac_cv_search_ZSTD_compress
10070 if test "$ac_res" != no; then :
10071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10075 ZSTD_LIB="$LIBS"
10076 LIBS="$save_LIBS"
10081 for ac_func in times clock kill getrlimit setrlimit atoq \
10082 popen sysconf strsignal getrusage nl_langinfo \
10083 gettimeofday mbstowcs wcswidth mmap setlocale \
10084 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 mallinfo
10085 do :
10086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10087 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10088 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10089 cat >>confdefs.h <<_ACEOF
10090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10091 _ACEOF
10094 done
10097 if test x$ac_cv_func_mbstowcs = xyes; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10099 $as_echo_n "checking whether mbstowcs works... " >&6; }
10100 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 if test "$cross_compiling" = yes; then :
10104 gcc_cv_func_mbstowcs_works=yes
10105 else
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10108 #include <stdlib.h>
10109 int main()
10111 mbstowcs(0, "", 0);
10112 return 0;
10114 _ACEOF
10115 if ac_fn_cxx_try_run "$LINENO"; then :
10116 gcc_cv_func_mbstowcs_works=yes
10117 else
10118 gcc_cv_func_mbstowcs_works=no
10120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10121 conftest.$ac_objext conftest.beam conftest.$ac_ext
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10126 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10127 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10129 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10134 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10135 if test "x$ac_cv_type_ssize_t" = xyes; then :
10137 else
10139 cat >>confdefs.h <<_ACEOF
10140 #define ssize_t int
10141 _ACEOF
10145 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10146 if test "x$ac_cv_type_caddr_t" = xyes; then :
10148 else
10150 cat >>confdefs.h <<_ACEOF
10151 #define caddr_t char *
10152 _ACEOF
10158 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10159 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10160 gcc_header_sys_mman_h=yes
10161 else
10162 gcc_header_sys_mman_h=no
10165 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10166 if test "x$ac_cv_func_mmap" = xyes; then :
10167 gcc_func_mmap=yes
10168 else
10169 gcc_func_mmap=no
10172 if test "$gcc_header_sys_mman_h" != yes \
10173 || test "$gcc_func_mmap" != yes; then
10174 gcc_cv_func_mmap_file=no
10175 gcc_cv_func_mmap_dev_zero=no
10176 gcc_cv_func_mmap_anon=no
10177 else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10179 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10180 if ${gcc_cv_func_mmap_file+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 # Add a system to this blacklist if
10184 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10185 # memory area containing the same data that you'd get if you applied
10186 # read() to the same fd. The only system known to have a problem here
10187 # is VMS, where text files have record structure.
10188 case "$host_os" in
10189 *vms* | ultrix*)
10190 gcc_cv_func_mmap_file=no ;;
10192 gcc_cv_func_mmap_file=yes;;
10193 esac
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10196 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10198 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10199 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 # Add a system to this blacklist if it has mmap() but /dev/zero
10203 # does not exist, or if mmapping /dev/zero does not give anonymous
10204 # zeroed pages with both the following properties:
10205 # 1. If you map N consecutive pages in with one call, and then
10206 # unmap any subset of those pages, the pages that were not
10207 # explicitly unmapped remain accessible.
10208 # 2. If you map two adjacent blocks of memory and then unmap them
10209 # both at once, they must both go away.
10210 # Systems known to be in this category are Windows (all variants),
10211 # VMS, and Darwin.
10212 case "$host_os" in
10213 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10214 gcc_cv_func_mmap_dev_zero=no ;;
10216 gcc_cv_func_mmap_dev_zero=yes;;
10217 esac
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10220 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10222 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10224 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10225 if ${gcc_cv_decl_map_anon+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 #include <sys/types.h>
10231 #include <sys/mman.h>
10232 #include <unistd.h>
10234 #ifndef MAP_ANONYMOUS
10235 #define MAP_ANONYMOUS MAP_ANON
10236 #endif
10239 main ()
10241 int n = MAP_ANONYMOUS;
10243 return 0;
10245 _ACEOF
10246 if ac_fn_cxx_try_compile "$LINENO"; then :
10247 gcc_cv_decl_map_anon=yes
10248 else
10249 gcc_cv_decl_map_anon=no
10251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10254 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10256 if test $gcc_cv_decl_map_anon = no; then
10257 gcc_cv_func_mmap_anon=no
10258 else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10260 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10261 if ${gcc_cv_func_mmap_anon+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10265 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10266 # doesn't give anonymous zeroed pages with the same properties listed
10267 # above for use of /dev/zero.
10268 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10269 case "$host_os" in
10270 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10271 gcc_cv_func_mmap_anon=no ;;
10273 gcc_cv_func_mmap_anon=yes;;
10274 esac
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10277 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10281 if test $gcc_cv_func_mmap_file = yes; then
10283 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10286 if test $gcc_cv_func_mmap_dev_zero = yes; then
10288 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10291 if test $gcc_cv_func_mmap_anon = yes; then
10293 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10298 case "${host}" in
10299 *-*-*vms*)
10300 # Under VMS, vfork works very differently than on Unix. The standard test
10301 # won't work, and it isn't easily adaptable. It makes more sense to
10302 # just force it.
10303 ac_cv_func_vfork_works=yes
10305 esac
10306 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10307 if test "x$ac_cv_type_pid_t" = xyes; then :
10309 else
10311 cat >>confdefs.h <<_ACEOF
10312 #define pid_t int
10313 _ACEOF
10317 for ac_header in vfork.h
10318 do :
10319 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10320 if test "x$ac_cv_header_vfork_h" = xyes; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_VFORK_H 1
10323 _ACEOF
10326 done
10328 for ac_func in fork vfork
10329 do :
10330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10333 cat >>confdefs.h <<_ACEOF
10334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335 _ACEOF
10338 done
10340 if test "x$ac_cv_func_fork" = xyes; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10342 $as_echo_n "checking for working fork... " >&6; }
10343 if ${ac_cv_func_fork_works+:} false; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test "$cross_compiling" = yes; then :
10347 ac_cv_func_fork_works=cross
10348 else
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 $ac_includes_default
10353 main ()
10356 /* By Ruediger Kuhlmann. */
10357 return fork () < 0;
10360 return 0;
10362 _ACEOF
10363 if ac_fn_cxx_try_run "$LINENO"; then :
10364 ac_cv_func_fork_works=yes
10365 else
10366 ac_cv_func_fork_works=no
10368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10369 conftest.$ac_objext conftest.beam conftest.$ac_ext
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10374 $as_echo "$ac_cv_func_fork_works" >&6; }
10376 else
10377 ac_cv_func_fork_works=$ac_cv_func_fork
10379 if test "x$ac_cv_func_fork_works" = xcross; then
10380 case $host in
10381 *-*-amigaos* | *-*-msdosdjgpp*)
10382 # Override, as these systems have only a dummy fork() stub
10383 ac_cv_func_fork_works=no
10386 ac_cv_func_fork_works=yes
10388 esac
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10390 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10392 ac_cv_func_vfork_works=$ac_cv_func_vfork
10393 if test "x$ac_cv_func_vfork" = xyes; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10395 $as_echo_n "checking for working vfork... " >&6; }
10396 if ${ac_cv_func_vfork_works+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test "$cross_compiling" = yes; then :
10400 ac_cv_func_vfork_works=cross
10401 else
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 /* Thanks to Paul Eggert for this test. */
10405 $ac_includes_default
10406 #include <sys/wait.h>
10407 #ifdef HAVE_VFORK_H
10408 # include <vfork.h>
10409 #endif
10410 /* On some sparc systems, changes by the child to local and incoming
10411 argument registers are propagated back to the parent. The compiler
10412 is told about this with #include <vfork.h>, but some compilers
10413 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10414 static variable whose address is put into a register that is
10415 clobbered by the vfork. */
10416 static void
10417 #ifdef __cplusplus
10418 sparc_address_test (int arg)
10419 # else
10420 sparc_address_test (arg) int arg;
10421 #endif
10423 static pid_t child;
10424 if (!child) {
10425 child = vfork ();
10426 if (child < 0) {
10427 perror ("vfork");
10428 _exit(2);
10430 if (!child) {
10431 arg = getpid();
10432 write(-1, "", 0);
10433 _exit (arg);
10439 main ()
10441 pid_t parent = getpid ();
10442 pid_t child;
10444 sparc_address_test (0);
10446 child = vfork ();
10448 if (child == 0) {
10449 /* Here is another test for sparc vfork register problems. This
10450 test uses lots of local variables, at least as many local
10451 variables as main has allocated so far including compiler
10452 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10453 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10454 reuse the register of parent for one of the local variables,
10455 since it will think that parent can't possibly be used any more
10456 in this routine. Assigning to the local variable will thus
10457 munge parent in the parent process. */
10458 pid_t
10459 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10460 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10461 /* Convince the compiler that p..p7 are live; otherwise, it might
10462 use the same hardware register for all 8 local variables. */
10463 if (p != p1 || p != p2 || p != p3 || p != p4
10464 || p != p5 || p != p6 || p != p7)
10465 _exit(1);
10467 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10468 from child file descriptors. If the child closes a descriptor
10469 before it execs or exits, this munges the parent's descriptor
10470 as well. Test for this by closing stdout in the child. */
10471 _exit(close(fileno(stdout)) != 0);
10472 } else {
10473 int status;
10474 struct stat st;
10476 while (wait(&status) != child)
10478 return (
10479 /* Was there some problem with vforking? */
10480 child < 0
10482 /* Did the child fail? (This shouldn't happen.) */
10483 || status
10485 /* Did the vfork/compiler bug occur? */
10486 || parent != getpid()
10488 /* Did the file descriptor bug occur? */
10489 || fstat(fileno(stdout), &st) != 0
10493 _ACEOF
10494 if ac_fn_cxx_try_run "$LINENO"; then :
10495 ac_cv_func_vfork_works=yes
10496 else
10497 ac_cv_func_vfork_works=no
10499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10500 conftest.$ac_objext conftest.beam conftest.$ac_ext
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10505 $as_echo "$ac_cv_func_vfork_works" >&6; }
10508 if test "x$ac_cv_func_fork_works" = xcross; then
10509 ac_cv_func_vfork_works=$ac_cv_func_vfork
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10511 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10514 if test "x$ac_cv_func_vfork_works" = xyes; then
10516 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10518 else
10520 $as_echo "#define vfork fork" >>confdefs.h
10523 if test "x$ac_cv_func_fork_works" = xyes; then
10525 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10531 if test "X$prefix" = "XNONE"; then
10532 acl_final_prefix="$ac_default_prefix"
10533 else
10534 acl_final_prefix="$prefix"
10536 if test "X$exec_prefix" = "XNONE"; then
10537 acl_final_exec_prefix='${prefix}'
10538 else
10539 acl_final_exec_prefix="$exec_prefix"
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10544 prefix="$acl_save_prefix"
10547 # Check whether --with-gnu-ld was given.
10548 if test "${with_gnu_ld+set}" = set; then :
10549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10550 else
10551 with_gnu_ld=no
10554 # Prepare PATH_SEPARATOR.
10555 # The user is always right.
10556 if test "${PATH_SEPARATOR+set}" != set; then
10557 echo "#! /bin/sh" >conf$$.sh
10558 echo "exit 0" >>conf$$.sh
10559 chmod +x conf$$.sh
10560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10561 PATH_SEPARATOR=';'
10562 else
10563 PATH_SEPARATOR=:
10565 rm -f conf$$.sh
10567 ac_prog=ld
10568 if test "$GCC" = yes; then
10569 # Check if gcc -print-prog-name=ld gives a path.
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10571 $as_echo_n "checking for ld used by GCC... " >&6; }
10572 case $host in
10573 *-*-mingw*)
10574 # gcc leaves a trailing carriage return which upsets mingw
10575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10578 esac
10579 case $ac_prog in
10580 # Accept absolute paths.
10581 [\\/]* | [A-Za-z]:[\\/]*)
10582 re_direlt='/[^/][^/]*/\.\./'
10583 # Canonicalize the path of ld
10584 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10586 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10587 done
10588 test -z "$LD" && LD="$ac_prog"
10591 # If it fails, then pretend we aren't using GCC.
10592 ac_prog=ld
10595 # If it is relative, then search for the first ld in PATH.
10596 with_gnu_ld=unknown
10598 esac
10599 elif test "$with_gnu_ld" = yes; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10601 $as_echo_n "checking for GNU ld... " >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10604 $as_echo_n "checking for non-GNU ld... " >&6; }
10606 if ${acl_cv_path_LD+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 if test -z "$LD"; then
10610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10611 for ac_dir in $PATH; do
10612 test -z "$ac_dir" && ac_dir=.
10613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10614 acl_cv_path_LD="$ac_dir/$ac_prog"
10615 # Check to see if the program is GNU ld. I'd rather use --version,
10616 # but apparently some GNU ld's only accept -v.
10617 # Break only if it was the GNU/non-GNU ld that we prefer.
10618 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10619 test "$with_gnu_ld" != no && break
10620 else
10621 test "$with_gnu_ld" != yes && break
10624 done
10625 IFS="$ac_save_ifs"
10626 else
10627 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10631 LD="$acl_cv_path_LD"
10632 if test -n "$LD"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10634 $as_echo "$LD" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10641 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10642 if ${acl_cv_prog_gnu_ld+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10646 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10647 acl_cv_prog_gnu_ld=yes
10648 else
10649 acl_cv_prog_gnu_ld=no
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10653 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10654 with_gnu_ld=$acl_cv_prog_gnu_ld
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10659 $as_echo_n "checking for shared library run path origin... " >&6; }
10660 if ${acl_cv_rpath+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10664 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10665 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10666 . ./conftest.sh
10667 rm -f ./conftest.sh
10668 acl_cv_rpath=done
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10672 $as_echo "$acl_cv_rpath" >&6; }
10673 wl="$acl_cv_wl"
10674 libext="$acl_cv_libext"
10675 shlibext="$acl_cv_shlibext"
10676 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10677 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10678 hardcode_direct="$acl_cv_hardcode_direct"
10679 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10680 # Check whether --enable-rpath was given.
10681 if test "${enable_rpath+set}" = set; then :
10682 enableval=$enable_rpath; :
10683 else
10684 enable_rpath=yes
10694 use_additional=yes
10696 acl_save_prefix="$prefix"
10697 prefix="$acl_final_prefix"
10698 acl_save_exec_prefix="$exec_prefix"
10699 exec_prefix="$acl_final_exec_prefix"
10701 eval additional_includedir=\"$includedir\"
10702 eval additional_libdir=\"$libdir\"
10704 exec_prefix="$acl_save_exec_prefix"
10705 prefix="$acl_save_prefix"
10708 # Check whether --with-libiconv-prefix was given.
10709 if test "${with_libiconv_prefix+set}" = set; then :
10710 withval=$with_libiconv_prefix;
10711 if test "X$withval" = "Xno"; then
10712 use_additional=no
10713 else
10714 if test "X$withval" = "X"; then
10716 acl_save_prefix="$prefix"
10717 prefix="$acl_final_prefix"
10718 acl_save_exec_prefix="$exec_prefix"
10719 exec_prefix="$acl_final_exec_prefix"
10721 eval additional_includedir=\"$includedir\"
10722 eval additional_libdir=\"$libdir\"
10724 exec_prefix="$acl_save_exec_prefix"
10725 prefix="$acl_save_prefix"
10727 else
10728 additional_includedir="$withval/include"
10729 additional_libdir="$withval/lib"
10736 # Check whether --with-libiconv-type was given.
10737 if test "${with_libiconv_type+set}" = set; then :
10738 withval=$with_libiconv_type; with_libiconv_type=$withval
10739 else
10740 with_libiconv_type=auto
10743 lib_type=`eval echo \$with_libiconv_type`
10745 LIBICONV=
10746 LTLIBICONV=
10747 INCICONV=
10748 rpathdirs=
10749 ltrpathdirs=
10750 names_already_handled=
10751 names_next_round='iconv '
10752 while test -n "$names_next_round"; do
10753 names_this_round="$names_next_round"
10754 names_next_round=
10755 for name in $names_this_round; do
10756 already_handled=
10757 for n in $names_already_handled; do
10758 if test "$n" = "$name"; then
10759 already_handled=yes
10760 break
10762 done
10763 if test -z "$already_handled"; then
10764 names_already_handled="$names_already_handled $name"
10765 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10766 eval value=\"\$HAVE_LIB$uppername\"
10767 if test -n "$value"; then
10768 if test "$value" = yes; then
10769 eval value=\"\$LIB$uppername\"
10770 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10771 eval value=\"\$LTLIB$uppername\"
10772 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10773 else
10776 else
10777 found_dir=
10778 found_la=
10779 found_so=
10780 found_a=
10781 if test $use_additional = yes; then
10782 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10783 found_dir="$additional_libdir"
10784 found_so="$additional_libdir/lib$name.$shlibext"
10785 if test -f "$additional_libdir/lib$name.la"; then
10786 found_la="$additional_libdir/lib$name.la"
10788 elif test x$lib_type != xshared; then
10789 if test -f "$additional_libdir/lib$name.$libext"; then
10790 found_dir="$additional_libdir"
10791 found_a="$additional_libdir/lib$name.$libext"
10792 if test -f "$additional_libdir/lib$name.la"; then
10793 found_la="$additional_libdir/lib$name.la"
10798 if test "X$found_dir" = "X"; then
10799 for x in $LDFLAGS $LTLIBICONV; do
10801 acl_save_prefix="$prefix"
10802 prefix="$acl_final_prefix"
10803 acl_save_exec_prefix="$exec_prefix"
10804 exec_prefix="$acl_final_exec_prefix"
10805 eval x=\"$x\"
10806 exec_prefix="$acl_save_exec_prefix"
10807 prefix="$acl_save_prefix"
10809 case "$x" in
10810 -L*)
10811 dir=`echo "X$x" | sed -e 's/^X-L//'`
10812 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
10813 found_dir="$dir"
10814 found_so="$dir/lib$name.$shlibext"
10815 if test -f "$dir/lib$name.la"; then
10816 found_la="$dir/lib$name.la"
10818 elif test x$lib_type != xshared; then
10819 if test -f "$dir/lib$name.$libext"; then
10820 found_dir="$dir"
10821 found_a="$dir/lib$name.$libext"
10822 if test -f "$dir/lib$name.la"; then
10823 found_la="$dir/lib$name.la"
10828 esac
10829 if test "X$found_dir" != "X"; then
10830 break
10832 done
10834 if test "X$found_dir" != "X"; then
10835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10836 if test "X$found_so" != "X"; then
10837 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10838 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10839 else
10840 haveit=
10841 for x in $ltrpathdirs; do
10842 if test "X$x" = "X$found_dir"; then
10843 haveit=yes
10844 break
10846 done
10847 if test -z "$haveit"; then
10848 ltrpathdirs="$ltrpathdirs $found_dir"
10850 if test "$hardcode_direct" = yes; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10852 else
10853 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10855 haveit=
10856 for x in $rpathdirs; do
10857 if test "X$x" = "X$found_dir"; then
10858 haveit=yes
10859 break
10861 done
10862 if test -z "$haveit"; then
10863 rpathdirs="$rpathdirs $found_dir"
10865 else
10866 haveit=
10867 for x in $LDFLAGS $LIBICONV; do
10869 acl_save_prefix="$prefix"
10870 prefix="$acl_final_prefix"
10871 acl_save_exec_prefix="$exec_prefix"
10872 exec_prefix="$acl_final_exec_prefix"
10873 eval x=\"$x\"
10874 exec_prefix="$acl_save_exec_prefix"
10875 prefix="$acl_save_prefix"
10877 if test "X$x" = "X-L$found_dir"; then
10878 haveit=yes
10879 break
10881 done
10882 if test -z "$haveit"; then
10883 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10885 if test "$hardcode_minus_L" != no; then
10886 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10887 else
10888 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10893 else
10894 if test "X$found_a" != "X"; then
10895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10896 else
10897 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10900 additional_includedir=
10901 case "$found_dir" in
10902 */lib | */lib/)
10903 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10904 additional_includedir="$basedir/include"
10906 esac
10907 if test "X$additional_includedir" != "X"; then
10908 if test "X$additional_includedir" != "X/usr/include"; then
10909 haveit=
10910 if test "X$additional_includedir" = "X/usr/local/include"; then
10911 if test -n "$GCC"; then
10912 case $host_os in
10913 linux*) haveit=yes;;
10914 esac
10917 if test -z "$haveit"; then
10918 for x in $CPPFLAGS $INCICONV; do
10920 acl_save_prefix="$prefix"
10921 prefix="$acl_final_prefix"
10922 acl_save_exec_prefix="$exec_prefix"
10923 exec_prefix="$acl_final_exec_prefix"
10924 eval x=\"$x\"
10925 exec_prefix="$acl_save_exec_prefix"
10926 prefix="$acl_save_prefix"
10928 if test "X$x" = "X-I$additional_includedir"; then
10929 haveit=yes
10930 break
10932 done
10933 if test -z "$haveit"; then
10934 if test -d "$additional_includedir"; then
10935 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10941 if test -n "$found_la"; then
10942 save_libdir="$libdir"
10943 case "$found_la" in
10944 */* | *\\*) . "$found_la" ;;
10945 *) . "./$found_la" ;;
10946 esac
10947 libdir="$save_libdir"
10948 for dep in $dependency_libs; do
10949 case "$dep" in
10950 -L*)
10951 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10952 if test "X$additional_libdir" != "X/usr/lib"; then
10953 haveit=
10954 if test "X$additional_libdir" = "X/usr/local/lib"; then
10955 if test -n "$GCC"; then
10956 case $host_os in
10957 linux*) haveit=yes;;
10958 esac
10961 if test -z "$haveit"; then
10962 haveit=
10963 for x in $LDFLAGS $LIBICONV; do
10965 acl_save_prefix="$prefix"
10966 prefix="$acl_final_prefix"
10967 acl_save_exec_prefix="$exec_prefix"
10968 exec_prefix="$acl_final_exec_prefix"
10969 eval x=\"$x\"
10970 exec_prefix="$acl_save_exec_prefix"
10971 prefix="$acl_save_prefix"
10973 if test "X$x" = "X-L$additional_libdir"; then
10974 haveit=yes
10975 break
10977 done
10978 if test -z "$haveit"; then
10979 if test -d "$additional_libdir"; then
10980 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10983 haveit=
10984 for x in $LDFLAGS $LTLIBICONV; do
10986 acl_save_prefix="$prefix"
10987 prefix="$acl_final_prefix"
10988 acl_save_exec_prefix="$exec_prefix"
10989 exec_prefix="$acl_final_exec_prefix"
10990 eval x=\"$x\"
10991 exec_prefix="$acl_save_exec_prefix"
10992 prefix="$acl_save_prefix"
10994 if test "X$x" = "X-L$additional_libdir"; then
10995 haveit=yes
10996 break
10998 done
10999 if test -z "$haveit"; then
11000 if test -d "$additional_libdir"; then
11001 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11007 -R*)
11008 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11009 if test "$enable_rpath" != no; then
11010 haveit=
11011 for x in $rpathdirs; do
11012 if test "X$x" = "X$dir"; then
11013 haveit=yes
11014 break
11016 done
11017 if test -z "$haveit"; then
11018 rpathdirs="$rpathdirs $dir"
11020 haveit=
11021 for x in $ltrpathdirs; do
11022 if test "X$x" = "X$dir"; then
11023 haveit=yes
11024 break
11026 done
11027 if test -z "$haveit"; then
11028 ltrpathdirs="$ltrpathdirs $dir"
11032 -l*)
11033 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11035 *.la)
11036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11039 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11040 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11042 esac
11043 done
11045 else
11046 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11047 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11049 else
11050 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11056 done
11057 done
11058 if test "X$rpathdirs" != "X"; then
11059 if test -n "$hardcode_libdir_separator"; then
11060 alldirs=
11061 for found_dir in $rpathdirs; do
11062 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11063 done
11064 acl_save_libdir="$libdir"
11065 libdir="$alldirs"
11066 eval flag=\"$hardcode_libdir_flag_spec\"
11067 libdir="$acl_save_libdir"
11068 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11069 else
11070 for found_dir in $rpathdirs; do
11071 acl_save_libdir="$libdir"
11072 libdir="$found_dir"
11073 eval flag=\"$hardcode_libdir_flag_spec\"
11074 libdir="$acl_save_libdir"
11075 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11076 done
11079 if test "X$ltrpathdirs" != "X"; then
11080 for found_dir in $ltrpathdirs; do
11081 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11082 done
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11092 $as_echo_n "checking for iconv... " >&6; }
11093 if ${am_cv_func_iconv+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11097 am_cv_func_iconv="no, consider installing GNU libiconv"
11098 am_cv_lib_iconv=no
11099 am_save_CPPFLAGS="$CPPFLAGS"
11100 CPPFLAGS="$CPPFLAGS $INCICONV"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103 #include <stdlib.h>
11104 #include <iconv.h>
11106 main ()
11108 iconv_t cd = iconv_open("","");
11109 iconv(cd,NULL,NULL,NULL,NULL);
11110 iconv_close(cd);
11112 return 0;
11114 _ACEOF
11115 if ac_fn_cxx_try_link "$LINENO"; then :
11116 am_cv_func_iconv=yes
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 CPPFLAGS="$am_save_CPPFLAGS"
11122 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11123 for _libs in .libs _libs; do
11124 am_save_CPPFLAGS="$CPPFLAGS"
11125 am_save_LIBS="$LIBS"
11126 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11127 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11130 #include <stdlib.h>
11131 #include <iconv.h>
11133 main ()
11135 iconv_t cd = iconv_open("","");
11136 iconv(cd,NULL,NULL,NULL,NULL);
11137 iconv_close(cd);
11139 return 0;
11141 _ACEOF
11142 if ac_fn_cxx_try_link "$LINENO"; then :
11143 INCICONV="-I../libiconv/include"
11144 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11145 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11146 am_cv_lib_iconv=yes
11147 am_cv_func_iconv=yes
11149 rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 CPPFLAGS="$am_save_CPPFLAGS"
11152 LIBS="$am_save_LIBS"
11153 if test "$am_cv_func_iconv" = "yes"; then
11154 break
11156 done
11159 if test "$am_cv_func_iconv" != yes; then
11160 am_save_CPPFLAGS="$CPPFLAGS"
11161 am_save_LIBS="$LIBS"
11162 CPPFLAGS="$CPPFLAGS $INCICONV"
11163 LIBS="$LIBS $LIBICONV"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 #include <stdlib.h>
11167 #include <iconv.h>
11169 main ()
11171 iconv_t cd = iconv_open("","");
11172 iconv(cd,NULL,NULL,NULL,NULL);
11173 iconv_close(cd);
11175 return 0;
11177 _ACEOF
11178 if ac_fn_cxx_try_link "$LINENO"; then :
11179 am_cv_lib_iconv=yes
11180 am_cv_func_iconv=yes
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 CPPFLAGS="$am_save_CPPFLAGS"
11185 LIBS="$am_save_LIBS"
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11190 $as_echo "$am_cv_func_iconv" >&6; }
11191 if test "$am_cv_func_iconv" = yes; then
11193 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11196 if test "$am_cv_lib_iconv" = yes; then
11198 for element in $INCICONV; do
11199 haveit=
11200 for x in $CPPFLAGS; do
11202 acl_save_prefix="$prefix"
11203 prefix="$acl_final_prefix"
11204 acl_save_exec_prefix="$exec_prefix"
11205 exec_prefix="$acl_final_exec_prefix"
11206 eval x=\"$x\"
11207 exec_prefix="$acl_save_exec_prefix"
11208 prefix="$acl_save_prefix"
11210 if test "X$x" = "X$element"; then
11211 haveit=yes
11212 break
11214 done
11215 if test -z "$haveit"; then
11216 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11218 done
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11221 $as_echo_n "checking how to link with libiconv... " >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11223 $as_echo "$LIBICONV" >&6; }
11224 else
11225 LIBICONV=
11226 LTLIBICONV=
11231 if test "$am_cv_func_iconv" = yes; then
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11233 $as_echo_n "checking for iconv declaration... " >&6; }
11234 if ${am_cv_proto_iconv+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include <stdlib.h>
11242 #include <iconv.h>
11243 extern
11244 #ifdef __cplusplus
11246 #endif
11247 #if defined(__STDC__) || defined(__cplusplus)
11248 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11249 #else
11250 size_t iconv();
11251 #endif
11254 main ()
11258 return 0;
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262 am_cv_proto_iconv_arg1=""
11263 else
11264 am_cv_proto_iconv_arg1="const"
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11267 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);"
11270 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11272 }$am_cv_proto_iconv" >&5
11273 $as_echo "${ac_t:-
11274 }$am_cv_proto_iconv" >&6; }
11276 cat >>confdefs.h <<_ACEOF
11277 #define ICONV_CONST $am_cv_proto_iconv_arg1
11278 _ACEOF
11283 # Until we have in-tree GNU iconv:
11284 LIBICONV_DEP=
11285 if test -f "$LTLIBICONV"; then
11286 LIBICONV_DEP=$LTLIBICONV
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11292 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11293 if ${am_cv_val_LC_MESSAGES+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298 #include <locale.h>
11300 main ()
11302 return LC_MESSAGES
11304 return 0;
11306 _ACEOF
11307 if ac_fn_cxx_try_link "$LINENO"; then :
11308 am_cv_val_LC_MESSAGES=yes
11309 else
11310 am_cv_val_LC_MESSAGES=no
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11316 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11317 if test $am_cv_val_LC_MESSAGES = yes; then
11319 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11326 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11327 if ${am_cv_langinfo_codeset+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <langinfo.h>
11334 main ()
11336 char* cs = nl_langinfo(CODESET);
11338 return 0;
11340 _ACEOF
11341 if ac_fn_cxx_try_link "$LINENO"; then :
11342 am_cv_langinfo_codeset=yes
11343 else
11344 am_cv_langinfo_codeset=no
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11351 $as_echo "$am_cv_langinfo_codeset" >&6; }
11352 if test $am_cv_langinfo_codeset = yes; then
11354 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11359 # We will need to find libiberty.h and ansidecl.h
11360 saved_CFLAGS="$CFLAGS"
11361 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11362 saved_CXXFLAGS="$CXXFLAGS"
11363 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11365 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11366 # normal autoconf function for these. But force definition of
11367 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11368 # basename handling in libiberty.h.
11369 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11370 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11371 #undef HAVE_DECL_BASENAME
11372 #define HAVE_DECL_BASENAME 1
11373 #include \"ansidecl.h\"
11374 #include \"system.h\"
11376 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11377 ac_have_decl=1
11378 else
11379 ac_have_decl=0
11382 cat >>confdefs.h <<_ACEOF
11383 #define HAVE_DECL_BASENAME $ac_have_decl
11384 _ACEOF
11385 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11386 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11387 #undef HAVE_DECL_BASENAME
11388 #define HAVE_DECL_BASENAME 1
11389 #include \"ansidecl.h\"
11390 #include \"system.h\"
11392 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11393 ac_have_decl=1
11394 else
11395 ac_have_decl=0
11398 cat >>confdefs.h <<_ACEOF
11399 #define HAVE_DECL_STRSTR $ac_have_decl
11400 _ACEOF
11403 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11404 madvise stpcpy strnlen strsignal strverscmp \
11405 strtol strtoul strtoll strtoull setenv unsetenv \
11406 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11407 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
11409 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11411 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11412 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #undef $ac_tr_decl
11418 #define $ac_tr_decl 1
11420 #include "ansidecl.h"
11421 #include "system.h"
11424 main ()
11426 #ifndef $ac_func
11427 char *(*pfn) = (char *(*)) $ac_func ;
11428 #endif
11430 return 0;
11432 _ACEOF
11433 if ac_fn_cxx_try_compile "$LINENO"; then :
11434 eval "gcc_cv_have_decl_$ac_func=yes"
11435 else
11436 eval "gcc_cv_have_decl_$ac_func=no"
11438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11443 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11444 #define $ac_tr_decl 1
11445 _ACEOF
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11450 #define $ac_tr_decl 0
11451 _ACEOF
11455 done
11458 for ac_func in getrlimit setrlimit getrusage
11460 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11463 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #undef $ac_tr_decl
11469 #define $ac_tr_decl 1
11471 #include "ansidecl.h"
11472 #include "system.h"
11473 #ifdef HAVE_SYS_RESOURCE_H
11474 #include <sys/resource.h>
11475 #endif
11479 main ()
11481 #ifndef $ac_func
11482 char *(*pfn) = (char *(*)) $ac_func ;
11483 #endif
11485 return 0;
11487 _ACEOF
11488 if ac_fn_cxx_try_compile "$LINENO"; then :
11489 eval "gcc_cv_have_decl_$ac_func=yes"
11490 else
11491 eval "gcc_cv_have_decl_$ac_func=no"
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11499 #define $ac_tr_decl 1
11500 _ACEOF
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11505 #define $ac_tr_decl 0
11506 _ACEOF
11510 done
11513 for ac_func in mallinfo
11515 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11518 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523 #undef $ac_tr_decl
11524 #define $ac_tr_decl 1
11526 #include "ansidecl.h"
11527 #include "system.h"
11528 #ifdef HAVE_MALLOC_H
11529 #include <malloc.h>
11530 #endif
11534 main ()
11536 #ifndef $ac_func
11537 char *(*pfn) = (char *(*)) $ac_func ;
11538 #endif
11540 return 0;
11542 _ACEOF
11543 if ac_fn_cxx_try_compile "$LINENO"; then :
11544 eval "gcc_cv_have_decl_$ac_func=yes"
11545 else
11546 eval "gcc_cv_have_decl_$ac_func=no"
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11553 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11554 #define $ac_tr_decl 1
11555 _ACEOF
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11560 #define $ac_tr_decl 0
11561 _ACEOF
11565 done
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 #include "ansidecl.h"
11572 #include "system.h"
11573 #ifdef HAVE_SYS_RESOURCE_H
11574 #include <sys/resource.h>
11575 #endif
11578 main ()
11580 rlim_t l = 0;
11582 return 0;
11584 _ACEOF
11585 if ac_fn_cxx_try_compile "$LINENO"; then :
11587 else
11589 $as_echo "#define rlim_t long" >>confdefs.h
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11595 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11596 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11597 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11598 for ac_func in ldgetname
11600 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11602 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11603 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #undef $ac_tr_decl
11609 #define $ac_tr_decl 1
11611 #include "ansidecl.h"
11612 #include "system.h"
11613 #ifdef HAVE_LDFCN_H
11614 #undef FREAD
11615 #undef FWRITE
11616 #include <ldfcn.h>
11617 #endif
11621 main ()
11623 #ifndef $ac_func
11624 char *(*pfn) = (char *(*)) $ac_func ;
11625 #endif
11627 return 0;
11629 _ACEOF
11630 if ac_fn_cxx_try_compile "$LINENO"; then :
11631 eval "gcc_cv_have_decl_$ac_func=yes"
11632 else
11633 eval "gcc_cv_have_decl_$ac_func=no"
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11641 #define $ac_tr_decl 1
11642 _ACEOF
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11647 #define $ac_tr_decl 0
11648 _ACEOF
11652 done
11655 for ac_func in times
11657 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11659 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11660 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #undef $ac_tr_decl
11666 #define $ac_tr_decl 1
11668 #include "ansidecl.h"
11669 #include "system.h"
11670 #ifdef HAVE_SYS_TIMES_H
11671 #include <sys/times.h>
11672 #endif
11676 main ()
11678 #ifndef $ac_func
11679 char *(*pfn) = (char *(*)) $ac_func ;
11680 #endif
11682 return 0;
11684 _ACEOF
11685 if ac_fn_cxx_try_compile "$LINENO"; then :
11686 eval "gcc_cv_have_decl_$ac_func=yes"
11687 else
11688 eval "gcc_cv_have_decl_$ac_func=no"
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11696 #define $ac_tr_decl 1
11697 _ACEOF
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11702 #define $ac_tr_decl 0
11703 _ACEOF
11707 done
11710 for ac_func in sigaltstack
11712 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11714 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11715 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720 #undef $ac_tr_decl
11721 #define $ac_tr_decl 1
11723 #include "ansidecl.h"
11724 #include "system.h"
11725 #include <signal.h>
11729 main ()
11731 #ifndef $ac_func
11732 char *(*pfn) = (char *(*)) $ac_func ;
11733 #endif
11735 return 0;
11737 _ACEOF
11738 if ac_fn_cxx_try_compile "$LINENO"; then :
11739 eval "gcc_cv_have_decl_$ac_func=yes"
11740 else
11741 eval "gcc_cv_have_decl_$ac_func=no"
11743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11749 #define $ac_tr_decl 1
11750 _ACEOF
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11755 #define $ac_tr_decl 0
11756 _ACEOF
11760 done
11763 # More time-related stuff.
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11765 $as_echo_n "checking for struct tms... " >&6; }
11766 if ${ac_cv_struct_tms+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11773 #include "ansidecl.h"
11774 #include "system.h"
11775 #ifdef HAVE_SYS_TIMES_H
11776 #include <sys/times.h>
11777 #endif
11780 main ()
11782 struct tms tms;
11784 return 0;
11786 _ACEOF
11787 if ac_fn_cxx_try_compile "$LINENO"; then :
11788 ac_cv_struct_tms=yes
11789 else
11790 ac_cv_struct_tms=no
11792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11795 $as_echo "$ac_cv_struct_tms" >&6; }
11796 if test $ac_cv_struct_tms = yes; then
11798 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11802 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11803 # revisit after autoconf 2.50.
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11805 $as_echo_n "checking for clock_t... " >&6; }
11806 if ${gcc_cv_type_clock_t+:} false; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11813 #include "ansidecl.h"
11814 #include "system.h"
11817 main ()
11819 clock_t x;
11821 return 0;
11823 _ACEOF
11824 if ac_fn_cxx_try_compile "$LINENO"; then :
11825 gcc_cv_type_clock_t=yes
11826 else
11827 gcc_cv_type_clock_t=no
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11832 $as_echo "$gcc_cv_type_clock_t" >&6; }
11833 if test $gcc_cv_type_clock_t = yes; then
11835 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11839 # Check if F_SETLKW is supported by fcntl.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11841 $as_echo_n "checking for F_SETLKW... " >&6; }
11842 if ${ac_cv_f_setlkw+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11849 #include <fcntl.h>
11851 main ()
11854 struct flock fl;
11855 fl.l_whence = 0;
11856 fl.l_start = 0;
11857 fl.l_len = 0;
11858 fl.l_pid = 0;
11859 return fcntl (1, F_SETLKW, &fl);
11861 return 0;
11863 _ACEOF
11864 if ac_fn_cxx_try_compile "$LINENO"; then :
11865 ac_cv_f_setlkw=yes
11866 else
11867 ac_cv_f_setlkw=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11872 $as_echo "$ac_cv_f_setlkw" >&6; }
11873 if test $ac_cv_f_setlkw = yes; then
11875 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11879 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11880 CFLAGS="$saved_CFLAGS"
11881 CXXFLAGS="$saved_CXXFLAGS"
11883 # mkdir takes a single argument on some systems.
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11885 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11886 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 #include <sys/types.h>
11893 #ifdef HAVE_SYS_STAT_H
11894 # include <sys/stat.h>
11895 #endif
11896 #ifdef HAVE_UNISTD_H
11897 # include <unistd.h>
11898 #endif
11899 #ifdef HAVE_DIRECT_H
11900 # include <direct.h>
11901 #endif
11903 main ()
11905 mkdir ("foo", 0);
11907 return 0;
11909 _ACEOF
11910 if ac_fn_cxx_try_compile "$LINENO"; then :
11911 gcc_cv_mkdir_takes_one_arg=no
11912 else
11913 gcc_cv_mkdir_takes_one_arg=yes
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11918 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11919 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11921 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11926 # File extensions
11927 manext='.1'
11928 objext='.o'
11932 # With Setjmp/Longjmp based exception handling.
11933 # Check whether --enable-sjlj-exceptions was given.
11934 if test "${enable_sjlj_exceptions+set}" = set; then :
11935 enableval=$enable_sjlj_exceptions; case $target in
11936 *-*-hpux10*)
11937 if test $enableval != yes; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11939 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11940 enableval=yes
11943 esac
11944 force_sjlj_exceptions=yes
11945 else
11946 case $target in
11947 *-*-hpux10*)
11948 force_sjlj_exceptions=yes
11949 enableval=yes
11951 lm32*-*-*)
11952 force_sjlj_exceptions=yes
11953 enableval=yes
11956 force_sjlj_exceptions=no
11958 esac
11961 if test $force_sjlj_exceptions = yes; then
11962 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11964 cat >>confdefs.h <<_ACEOF
11965 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11966 _ACEOF
11970 # --------------------------------------------------------
11971 # Build, host, and target specific configuration fragments
11972 # --------------------------------------------------------
11974 # Collect build-machine-specific information.
11975 . ${srcdir}/config.build || exit 1
11977 # Collect host-machine-specific information.
11978 . ${srcdir}/config.host || exit 1
11980 target_gtfiles=
11982 # Collect target-machine-specific information.
11983 . ${srcdir}/config.gcc || exit 1
11985 extra_objs="${host_extra_objs} ${extra_objs}"
11986 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11988 # Default the target-machine variables that were not explicitly set.
11989 if test x"$tm_file" = x
11990 then tm_file=$cpu_type/$cpu_type.h; fi
11992 if test x"$extra_headers" = x
11993 then extra_headers=; fi
11995 if test x$md_file = x
11996 then md_file=$cpu_type/$cpu_type.md; fi
11998 if test x$out_file = x
11999 then out_file=$cpu_type/$cpu_type.c; fi
12001 if test x"$tmake_file" = x
12002 then tmake_file=$cpu_type/t-$cpu_type
12005 # Support --enable-initfini-array.
12006 if test x$enable_initfini_array != xno; then
12007 tm_file="${tm_file} initfini-array.h"
12010 if test x"$dwarf2" = xyes
12011 then tm_file="$tm_file tm-dwarf2.h"
12014 # Say what files are being used for the output code and MD file.
12015 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12016 echo "Using \`$srcdir/config/$md_file' as machine description file."
12018 # If any of the xm_file variables contain nonexistent files, warn
12019 # about them and drop them.
12022 for x in $build_xm_file; do
12023 if test -f $srcdir/config/$x
12024 then bx="$bx $x"
12025 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12026 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12028 done
12029 build_xm_file="$bx"
12032 for x in $host_xm_file; do
12033 if test -f $srcdir/config/$x
12034 then hx="$hx $x"
12035 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12036 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12038 done
12039 host_xm_file="$hx"
12042 for x in $xm_file; do
12043 if test -f $srcdir/config/$x
12044 then tx="$tx $x"
12045 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12046 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12048 done
12049 xm_file="$tx"
12051 count=a
12052 for f in $tm_file; do
12053 count=${count}x
12054 done
12055 if test $count = ax; then
12056 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12057 else
12058 echo "Using the following target machine macro files:"
12059 for f in $tm_file; do
12060 echo " $srcdir/config/$f"
12061 done
12064 if test x$use_long_long_for_widest_fast_int = xyes; then
12066 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12070 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12072 cat >>confdefs.h <<_ACEOF
12073 #define HAVE_GNU_LD $gnu_ld_bool
12074 _ACEOF
12077 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_GNU_AS $gnu_as_bool
12081 _ACEOF
12084 count=a
12085 for f in $host_xm_file; do
12086 count=${count}x
12087 done
12088 if test $count = a; then
12090 elif test $count = ax; then
12091 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12092 else
12093 echo "Using the following host machine macro files:"
12094 for f in $host_xm_file; do
12095 echo " $srcdir/config/$f"
12096 done
12098 echo "Using ${out_host_hook_obj} for host machine hooks."
12100 if test "$host_xm_file" != "$build_xm_file"; then
12101 count=a
12102 for f in $build_xm_file; do
12103 count=${count}x
12104 done
12105 if test $count = a; then
12107 elif test $count = ax; then
12108 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12109 else
12110 echo "Using the following build machine macro files:"
12111 for f in $build_xm_file; do
12112 echo " $srcdir/config/$f"
12113 done
12117 if test -n "$configured_native_system_header_dir"; then
12118 native_system_header_dir=$configured_native_system_header_dir
12120 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12123 case ${host} in
12124 powerpc*-*-darwin*)
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12126 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12127 if ${gcc_cv_mcontext_underscores+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12133 #include <sys/cdefs.h>
12134 #include <sys/signal.h>
12135 #include <ucontext.h>
12136 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12138 _ACEOF
12139 if ac_fn_cxx_try_compile "$LINENO"; then :
12140 gcc_cv_mcontext_underscores=no
12141 else
12142 gcc_cv_mcontext_underscores=yes
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12147 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12148 if test $gcc_cv_mcontext_underscores = yes; then
12150 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12154 esac
12156 # ---------
12157 # Threading
12158 # ---------
12160 # Check if a valid thread package
12161 case ${enable_threads} in
12162 "" | no)
12163 # No threads
12164 target_thread_file='single'
12166 yes)
12167 # default
12168 target_thread_file='single'
12170 aix | dce | lynx | mipssde | posix | rtems | \
12171 single | tpf | vxworks | win32)
12172 target_thread_file=${enable_threads}
12175 echo "${enable_threads} is an unknown thread package" 1>&2
12176 exit 1
12178 esac
12180 if test x${thread_file} = x; then
12181 # No thread file set by target-specific clauses in config.gcc,
12182 # so use file chosen by default logic above
12183 thread_file=${target_thread_file}
12186 # --------
12187 # UNSORTED
12188 # --------
12190 use_cxa_atexit=no
12191 if test x$enable___cxa_atexit = xyes || \
12192 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12193 if test x$host = x$target; then
12194 case $host in
12195 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12196 # keyed to flag_use_cxa_atexit
12197 *-*-mingw32*)
12198 use_cxa_atexit=yes
12200 powerpc-ibm-aix*)
12201 use_cxa_atexit=yes
12204 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12205 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12206 use_cxa_atexit=yes
12207 else
12208 echo "__cxa_atexit can't be enabled on this target"
12212 esac
12213 else
12214 # We can't check for __cxa_atexit when building a cross, so assume
12215 # it is available
12216 use_cxa_atexit=yes
12218 if test x$use_cxa_atexit = xyes; then
12220 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12225 # Look for a file containing extra machine modes.
12226 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12227 extra_modes_file='$(srcdir)'/config/${extra_modes}
12230 cat >>confdefs.h <<_ACEOF
12231 #define EXTRA_MODES_FILE "config/$extra_modes"
12232 _ACEOF
12236 # Convert extra_options into a form suitable for Makefile use.
12237 extra_opt_files=
12238 all_opt_files=
12239 for f in $extra_options; do
12240 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12241 all_opt_files="$all_opt_files $srcdir/config/$f"
12242 done
12245 # auto-host.h is the file containing items generated by autoconf and is
12246 # the first file included by config.h.
12247 # If host=build, it is correct to have bconfig include auto-host.h
12248 # as well. If host!=build, we are in error and need to do more
12249 # work to find out the build config parameters.
12250 if test x$host = x$build
12251 then
12252 build_auto=auto-host.h
12253 HAVE_AUTO_BUILD='# '
12254 else
12255 # We create a subdir, then run autoconf in the subdir.
12256 # To prevent recursion we set host and build for the new
12257 # invocation of configure to the build for this invocation
12258 # of configure.
12259 tempdir=build.$$
12260 rm -rf $tempdir
12261 mkdir $tempdir
12262 cd $tempdir
12263 case ${srcdir} in
12264 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12265 *) realsrcdir=../${srcdir};;
12266 esac
12267 # Clearing GMPINC is necessary to prevent host headers being
12268 # used by the build compiler. Defining GENERATOR_FILE stops
12269 # system.h from including gmp.h.
12270 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12271 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
12272 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
12273 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
12274 ${realsrcdir}/configure \
12275 --enable-languages=${enable_languages-all} \
12276 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12277 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12278 --target=$target_alias --host=$build_alias \
12279 --build=$build_alias || exit # retaining $tempdir
12281 # We just finished tests for the build machine, so rename
12282 # the file auto-build.h in the gcc directory.
12283 mv auto-host.h ../auto-build.h
12284 cd ..
12285 rm -rf $tempdir
12286 build_auto=auto-build.h
12287 HAVE_AUTO_BUILD=
12292 tm_file="${tm_file} defaults.h"
12293 tm_p_file="${tm_p_file} tm-preds.h"
12294 tm_d_file="${tm_d_file} defaults.h"
12295 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12296 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12297 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12298 # put this back in temporarily.
12299 xm_file="auto-host.h ansidecl.h ${xm_file}"
12301 # --------
12302 # UNSORTED
12303 # --------
12305 # Compile in configure arguments.
12306 if test -f configargs.h ; then
12307 # Being re-configured.
12308 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12309 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12310 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12311 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12313 else
12314 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12317 # Double all backslashes and backslash all quotes to turn
12318 # gcc_config_arguments into a C string.
12319 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12320 $gcc_config_arguments
12322 gcc_config_arguments_str=`cat conftest.out`
12323 rm -f conftest.out
12325 cat > configargs.h <<EOF
12326 /* Generated automatically. */
12327 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12328 static const char thread_model[] = "$thread_file";
12330 static const struct {
12331 const char *name, *value;
12332 } configure_default_options[] = $configure_default_options;
12335 gcc_BASEVER=`cat $srcdir/BASE-VER`
12336 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
12337 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
12338 if test -f $srcdir/REVISION ; then
12339 gcc_REVISION=`cat $srcdir/REVISION`
12340 else
12341 gcc_REVISION=""
12343 cat > plugin-version.h <<EOF
12344 #include "configargs.h"
12346 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12347 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12348 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12349 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12351 static char basever[] = "$gcc_BASEVER";
12352 static char datestamp[] = "$gcc_DATESTAMP";
12353 static char devphase[] = "$gcc_DEVPHASE";
12354 static char revision[] = "$gcc_REVISION";
12356 /* FIXME plugins: We should make the version information more precise.
12357 One way to do is to add a checksum. */
12359 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12360 devphase, revision,
12361 configuration_arguments};
12364 # Determine what GCC version number to use in filesystem paths.
12366 get_gcc_base_ver="cat"
12368 # Check whether --with-gcc-major-version-only was given.
12369 if test "${with_gcc_major_version_only+set}" = set; then :
12370 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
12371 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
12379 # Internationalization
12380 # If we haven't got the data from the intl directory,
12381 # assume NLS is disabled.
12382 USE_NLS=no
12383 LIBINTL=
12384 LIBINTL_DEP=
12385 INCINTL=
12386 XGETTEXT=
12387 GMSGFMT=
12388 POSUB=
12390 if test -f ../intl/config.intl; then
12391 . ../intl/config.intl
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12394 $as_echo_n "checking whether NLS is requested... " >&6; }
12395 if test x"$USE_NLS" != xyes; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12402 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12406 $as_echo_n "checking for catalogs to be installed... " >&6; }
12407 # Look for .po and .gmo files in the source directory.
12408 CATALOGS=
12409 XLINGUAS=
12410 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12411 # If there aren't any .gmo files the shell will give us the
12412 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12413 # weeded out.
12414 case "$cat" in *\**)
12415 continue;;
12416 esac
12417 # The quadruple backslash is collapsed to a double backslash
12418 # by the backticks, then collapsed again by the double quotes,
12419 # leaving us with one backslash in the sed expression (right
12420 # before the dot that mustn't act as a wildcard).
12421 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12422 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12423 # The user is allowed to set LINGUAS to a list of languages to
12424 # install catalogs for. If it's empty that means "all of them."
12425 if test "x$LINGUAS" = x; then
12426 CATALOGS="$CATALOGS $cat"
12427 XLINGUAS="$XLINGUAS $lang"
12428 else
12429 case "$LINGUAS" in *$lang*)
12430 CATALOGS="$CATALOGS $cat"
12431 XLINGUAS="$XLINGUAS $lang"
12433 esac
12435 done
12436 LINGUAS="$XLINGUAS"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12438 $as_echo "$LINGUAS" >&6; }
12441 DATADIRNAME=share
12443 INSTOBJEXT=.mo
12445 GENCAT=gencat
12447 CATOBJEXT=.gmo
12451 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12452 # -liconv on the link line twice.
12453 case "$LIBINTL" in *$LIBICONV*)
12454 LIBICONV= ;;
12455 esac
12457 # Check whether --enable-secureplt was given.
12458 if test "${enable_secureplt+set}" = set; then :
12459 enableval=$enable_secureplt;
12463 # Check whether --enable-mingw-wildcard was given.
12464 if test "${enable_mingw_wildcard+set}" = set; then :
12465 enableval=$enable_mingw_wildcard;
12466 else
12467 enable_mingw_wildcard=platform
12470 if test x"$enable_mingw_wildcard" != xplatform ; then :
12472 cat >>confdefs.h <<_ACEOF
12473 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12474 _ACEOF
12478 # Check whether --enable-large-address-aware was given.
12479 if test "${enable_large_address_aware+set}" = set; then :
12480 enableval=$enable_large_address_aware;
12483 if test x"$enable_large_address_aware" = xyes; then :
12485 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12489 # Check whether --enable-leading-mingw64-underscores was given.
12490 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12491 enableval=$enable_leading_mingw64_underscores;
12494 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12496 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12500 # Check whether --enable-cld was given.
12501 if test "${enable_cld+set}" = set; then :
12502 enableval=$enable_cld;
12503 else
12504 enable_cld=no
12508 # Check whether --enable-frame-pointer was given.
12509 if test "${enable_frame_pointer+set}" = set; then :
12510 enableval=$enable_frame_pointer;
12511 else
12513 case $target_os in
12514 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
12515 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12516 enable_frame_pointer=no
12519 enable_frame_pointer=yes
12521 esac
12526 case $target in
12527 i[34567]86-*-* | x86_64-*-*)
12528 if test "x$enable_cld" = xyes; then
12529 tm_defines="${tm_defines} USE_IX86_CLD=1"
12531 if test "x$enable_frame_pointer" = xyes; then
12532 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
12535 esac
12537 # Windows32 Registry support for specifying GCC installation paths.
12538 # Check whether --enable-win32-registry was given.
12539 if test "${enable_win32_registry+set}" = set; then :
12540 enableval=$enable_win32_registry;
12544 case $host_os in
12545 win32 | pe | cygwin* | mingw32*)
12546 if test "x$enable_win32_registry" != xno; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12548 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12549 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 ac_func_search_save_LIBS=$LIBS
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12559 #ifdef __cplusplus
12560 extern "C"
12561 #endif
12562 char RegOpenKeyExA ();
12564 main ()
12566 return RegOpenKeyExA ();
12568 return 0;
12570 _ACEOF
12571 for ac_lib in '' advapi32; do
12572 if test -z "$ac_lib"; then
12573 ac_res="none required"
12574 else
12575 ac_res=-l$ac_lib
12576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12579 ac_cv_search_RegOpenKeyExA=$ac_res
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext
12583 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12584 break
12586 done
12587 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
12589 else
12590 ac_cv_search_RegOpenKeyExA=no
12592 rm conftest.$ac_ext
12593 LIBS=$ac_func_search_save_LIBS
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12596 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12597 ac_res=$ac_cv_search_RegOpenKeyExA
12598 if test "$ac_res" != no; then :
12599 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12601 else
12602 enable_win32_registry=no
12607 if test "x$enable_win32_registry" != xno; then
12609 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12612 if test "x$enable_win32_registry" != xyes \
12613 && test "x$enable_win32_registry" != x; then
12615 cat >>confdefs.h <<_ACEOF
12616 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12617 _ACEOF
12622 esac
12624 # Get an absolute path to the GCC top-level source directory
12625 holddir=`${PWDCMD-pwd}`
12626 cd $srcdir
12627 topdir=`${PWDCMD-pwd}`
12628 cd $holddir
12630 # Conditionalize the makefile for this host machine.
12631 xmake_file=
12632 for f in ${host_xmake_file}
12634 if test -f ${srcdir}/config/$f
12635 then
12636 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12638 done
12640 # Conditionalize the makefile for this target machine.
12641 tmake_file_=
12642 for f in ${tmake_file}
12644 if test -f ${srcdir}/config/$f
12645 then
12646 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12648 done
12649 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
12651 out_object_file=`basename $out_file .c`.o
12652 common_out_object_file=`basename $common_out_file .c`.o
12654 tm_file_list="options.h"
12655 tm_include_list="options.h insn-constants.h"
12656 for f in $tm_file; do
12657 case $f in
12658 ./* )
12659 f=`echo $f | sed 's/^..//'`
12660 tm_file_list="${tm_file_list} $f"
12661 tm_include_list="${tm_include_list} $f"
12663 defaults.h )
12664 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12665 tm_include_list="${tm_include_list} $f"
12668 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12669 tm_include_list="${tm_include_list} config/$f"
12671 esac
12672 done
12674 tm_p_file_list=
12675 tm_p_include_list=
12676 for f in $tm_p_file; do
12677 case $f in
12678 tm-preds.h )
12679 tm_p_file_list="${tm_p_file_list} $f"
12680 tm_p_include_list="${tm_p_include_list} $f"
12683 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12684 tm_p_include_list="${tm_p_include_list} config/$f"
12685 esac
12686 done
12688 tm_d_file_list=
12689 tm_d_include_list="options.h insn-constants.h"
12690 for f in $tm_d_file; do
12691 case $f in
12692 defaults.h )
12693 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12694 tm_d_include_list="${tm_d_include_list} $f"
12697 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12698 tm_d_include_list="${tm_d_include_list} config/$f"
12700 esac
12701 done
12703 xm_file_list=
12704 xm_include_list=
12705 for f in $xm_file; do
12706 case $f in
12707 ansidecl.h )
12708 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12709 xm_include_list="${xm_include_list} $f"
12711 auto-host.h )
12712 xm_file_list="${xm_file_list} $f"
12713 xm_include_list="${xm_include_list} $f"
12716 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12717 xm_include_list="${xm_include_list} config/$f"
12719 esac
12720 done
12722 host_xm_file_list=
12723 host_xm_include_list=
12724 for f in $host_xm_file; do
12725 case $f in
12726 ansidecl.h )
12727 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12728 host_xm_include_list="${host_xm_include_list} $f"
12730 auto-host.h )
12731 host_xm_file_list="${host_xm_file_list} $f"
12732 host_xm_include_list="${host_xm_include_list} $f"
12735 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12736 host_xm_include_list="${host_xm_include_list} config/$f"
12738 esac
12739 done
12741 build_xm_file_list=
12742 for f in $build_xm_file; do
12743 case $f in
12744 ansidecl.h )
12745 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12746 build_xm_include_list="${build_xm_include_list} $f"
12748 auto-build.h | auto-host.h )
12749 build_xm_file_list="${build_xm_file_list} $f"
12750 build_xm_include_list="${build_xm_include_list} $f"
12753 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12754 build_xm_include_list="${build_xm_include_list} config/$f"
12756 esac
12757 done
12759 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12760 # cross-compiler which does not use the native headers and libraries.
12761 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12762 CROSS=
12763 ALL=all.internal
12764 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12765 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12767 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12768 test x$build != x$host || test "x$with_build_sysroot" != x; then
12769 if test "x$with_build_sysroot" != x; then
12770 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12771 else
12772 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12775 if test x$host != x$target
12776 then
12777 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12778 ALL=all.cross
12779 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12780 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12781 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12784 if test "x$with_build_sysroot" != "x"; then
12785 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12786 elif test "x$with_sysroot" = x; then
12787 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12788 elif test "x$with_sysroot" = xyes; then
12789 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12790 else
12791 target_header_dir="${with_sysroot}${native_system_header_dir}"
12793 else
12794 target_header_dir=${native_system_header_dir}
12797 # If this is a cross-compiler that does not
12798 # have its own set of headers then define
12799 # inhibit_libc
12801 # If this is using newlib, without having the headers available now,
12802 # then define inhibit_libc in LIBGCC2_CFLAGS.
12803 # This prevents libgcc2 from containing any code which requires libc
12804 # support.
12805 : ${inhibit_libc=false}
12806 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12807 test x$with_newlib = xyes ; } &&
12808 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12809 inhibit_libc=true
12813 # When building gcc with a cross-compiler, we need to adjust things so
12814 # that the generator programs are still built with the native compiler.
12815 # Also, we cannot run fixincludes.
12817 # These are the normal (build=host) settings:
12818 CC_FOR_BUILD='$(CC)'
12819 CXX_FOR_BUILD='$(CXX)'
12820 BUILD_CFLAGS='$(ALL_CFLAGS)'
12821 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12822 BUILD_LDFLAGS='$(LDFLAGS)'
12823 STMP_FIXINC=stmp-fixinc
12825 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12826 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12828 # And these apply if build != host, or we are generating coverage data
12829 if test x$build != x$host || test "x$coverage_flags" != x
12830 then
12831 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12832 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12833 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12835 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12836 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12837 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12838 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12843 # Expand extra_headers to include complete path.
12844 # This substitutes for lots of t-* files.
12845 extra_headers_list=
12846 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12847 for file in ${extra_headers} ; do
12848 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12849 done
12851 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12852 if test x"$use_gcc_tgmath" = xyes
12853 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12856 # Define collect2 in Makefile.
12857 case $host_can_use_collect2 in
12858 no) collect2= ;;
12859 *) collect2='collect2$(exeext)' ;;
12860 esac
12863 # Add a definition of USE_COLLECT2 if system wants one.
12864 case $use_collect2 in
12865 no) use_collect2= ;;
12866 "") ;;
12868 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12869 xm_defines="${xm_defines} USE_COLLECT2"
12870 case $host_can_use_collect2 in
12872 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
12874 esac
12876 esac
12879 cat >>confdefs.h <<_ACEOF
12880 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12881 _ACEOF
12884 # ---------------------------
12885 # Assembler & linker features
12886 # ---------------------------
12888 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12889 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12890 # However when ld-new is first executed from the build tree, libtool will
12891 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12892 # to the build tree. While doing this we need to use the previous-stage
12893 # linker, or we have an infinite loop. The presence of a shell script as
12894 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12895 # the gcc/collect-ld script. So we need to know how libtool works, or
12896 # exec-tool will fail.
12899 case `pwd` in
12900 *\ * | *\ *)
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12903 esac
12907 macro_version='2.2.7a'
12908 macro_revision='1.3134'
12922 ltmain="$ac_aux_dir/ltmain.sh"
12924 # Backslashify metacharacters that are still active within
12925 # double-quoted strings.
12926 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12928 # Same as above, but do not quote variable references.
12929 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12931 # Sed substitution to delay expansion of an escaped shell variable in a
12932 # double_quote_subst'ed string.
12933 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12935 # Sed substitution to delay expansion of an escaped single quote.
12936 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12938 # Sed substitution to avoid accidental globbing in evaled expressions
12939 no_glob_subst='s/\*/\\\*/g'
12941 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12946 $as_echo_n "checking how to print strings... " >&6; }
12947 # Test print first, because it will be a builtin if present.
12948 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12950 ECHO='print -r --'
12951 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12952 ECHO='printf %s\n'
12953 else
12954 # Use this function as a fallback that always works.
12955 func_fallback_echo ()
12957 eval 'cat <<_LTECHO_EOF
12959 _LTECHO_EOF'
12961 ECHO='func_fallback_echo'
12964 # func_echo_all arg...
12965 # Invoke $ECHO with all args, space-separated.
12966 func_echo_all ()
12968 $ECHO ""
12971 case "$ECHO" in
12972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12973 $as_echo "printf" >&6; } ;;
12974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12975 $as_echo "print -r" >&6; } ;;
12976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12977 $as_echo "cat" >&6; } ;;
12978 esac
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12994 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12995 if ${ac_cv_path_SED+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12999 for ac_i in 1 2 3 4 5 6 7; do
13000 ac_script="$ac_script$as_nl$ac_script"
13001 done
13002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13003 { ac_script=; unset ac_script;}
13004 if test -z "$SED"; then
13005 ac_path_SED_found=false
13006 # Loop through the user's path and test for each of PROGNAME-LIST
13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
13012 for ac_prog in sed gsed; do
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13015 as_fn_executable_p "$ac_path_SED" || continue
13016 # Check for GNU ac_path_SED and select it if it is found.
13017 # Check for GNU $ac_path_SED
13018 case `"$ac_path_SED" --version 2>&1` in
13019 *GNU*)
13020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13022 ac_count=0
13023 $as_echo_n 0123456789 >"conftest.in"
13024 while :
13026 cat "conftest.in" "conftest.in" >"conftest.tmp"
13027 mv "conftest.tmp" "conftest.in"
13028 cp "conftest.in" "conftest.nl"
13029 $as_echo '' >> "conftest.nl"
13030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13032 as_fn_arith $ac_count + 1 && ac_count=$as_val
13033 if test $ac_count -gt ${ac_path_SED_max-0}; then
13034 # Best one so far, save it but keep looking for a better one
13035 ac_cv_path_SED="$ac_path_SED"
13036 ac_path_SED_max=$ac_count
13038 # 10*(2^10) chars as input seems more than enough
13039 test $ac_count -gt 10 && break
13040 done
13041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13042 esac
13044 $ac_path_SED_found && break 3
13045 done
13046 done
13047 done
13048 IFS=$as_save_IFS
13049 if test -z "$ac_cv_path_SED"; then
13050 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13052 else
13053 ac_cv_path_SED=$SED
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13058 $as_echo "$ac_cv_path_SED" >&6; }
13059 SED="$ac_cv_path_SED"
13060 rm -f conftest.sed
13062 test -z "$SED" && SED=sed
13063 Xsed="$SED -e 1s/^X//"
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13076 $as_echo_n "checking for fgrep... " >&6; }
13077 if ${ac_cv_path_FGREP+:} false; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13081 then ac_cv_path_FGREP="$GREP -F"
13082 else
13083 if test -z "$FGREP"; then
13084 ac_path_FGREP_found=false
13085 # Loop through the user's path and test for each of PROGNAME-LIST
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13089 IFS=$as_save_IFS
13090 test -z "$as_dir" && as_dir=.
13091 for ac_prog in fgrep; do
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13094 as_fn_executable_p "$ac_path_FGREP" || continue
13095 # Check for GNU ac_path_FGREP and select it if it is found.
13096 # Check for GNU $ac_path_FGREP
13097 case `"$ac_path_FGREP" --version 2>&1` in
13098 *GNU*)
13099 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13101 ac_count=0
13102 $as_echo_n 0123456789 >"conftest.in"
13103 while :
13105 cat "conftest.in" "conftest.in" >"conftest.tmp"
13106 mv "conftest.tmp" "conftest.in"
13107 cp "conftest.in" "conftest.nl"
13108 $as_echo 'FGREP' >> "conftest.nl"
13109 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13111 as_fn_arith $ac_count + 1 && ac_count=$as_val
13112 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13113 # Best one so far, save it but keep looking for a better one
13114 ac_cv_path_FGREP="$ac_path_FGREP"
13115 ac_path_FGREP_max=$ac_count
13117 # 10*(2^10) chars as input seems more than enough
13118 test $ac_count -gt 10 && break
13119 done
13120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13121 esac
13123 $ac_path_FGREP_found && break 3
13124 done
13125 done
13126 done
13127 IFS=$as_save_IFS
13128 if test -z "$ac_cv_path_FGREP"; then
13129 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13131 else
13132 ac_cv_path_FGREP=$FGREP
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13138 $as_echo "$ac_cv_path_FGREP" >&6; }
13139 FGREP="$ac_cv_path_FGREP"
13142 test -z "$GREP" && GREP=grep
13162 # Check whether --with-gnu-ld was given.
13163 if test "${with_gnu_ld+set}" = set; then :
13164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13165 else
13166 with_gnu_ld=no
13169 ac_prog=ld
13170 if test "$GCC" = yes; then
13171 # Check if gcc -print-prog-name=ld gives a path.
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13173 $as_echo_n "checking for ld used by $CC... " >&6; }
13174 case $host in
13175 *-*-mingw*)
13176 # gcc leaves a trailing carriage return which upsets mingw
13177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13180 esac
13181 case $ac_prog in
13182 # Accept absolute paths.
13183 [\\/]* | ?:[\\/]*)
13184 re_direlt='/[^/][^/]*/\.\./'
13185 # Canonicalize the pathname of ld
13186 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13187 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13188 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13189 done
13190 test -z "$LD" && LD="$ac_prog"
13193 # If it fails, then pretend we aren't using GCC.
13194 ac_prog=ld
13197 # If it is relative, then search for the first ld in PATH.
13198 with_gnu_ld=unknown
13200 esac
13201 elif test "$with_gnu_ld" = yes; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13203 $as_echo_n "checking for GNU ld... " >&6; }
13204 else
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13206 $as_echo_n "checking for non-GNU ld... " >&6; }
13208 if ${lt_cv_path_LD+:} false; then :
13209 $as_echo_n "(cached) " >&6
13210 else
13211 if test -z "$LD"; then
13212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13213 for ac_dir in $PATH; do
13214 IFS="$lt_save_ifs"
13215 test -z "$ac_dir" && ac_dir=.
13216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13217 lt_cv_path_LD="$ac_dir/$ac_prog"
13218 # Check to see if the program is GNU ld. I'd rather use --version,
13219 # but apparently some variants of GNU ld only accept -v.
13220 # Break only if it was the GNU/non-GNU ld that we prefer.
13221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13222 *GNU* | *'with BFD'*)
13223 test "$with_gnu_ld" != no && break
13226 test "$with_gnu_ld" != yes && break
13228 esac
13230 done
13231 IFS="$lt_save_ifs"
13232 else
13233 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13237 LD="$lt_cv_path_LD"
13238 if test -n "$LD"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13240 $as_echo "$LD" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13248 if ${lt_cv_prog_gnu_ld+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13252 case `$LD -v 2>&1 </dev/null` in
13253 *GNU* | *'with BFD'*)
13254 lt_cv_prog_gnu_ld=yes
13257 lt_cv_prog_gnu_ld=no
13259 esac
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13262 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13263 with_gnu_ld=$lt_cv_prog_gnu_ld
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13274 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13275 if ${lt_cv_path_NM+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$NM"; then
13279 # Let the user override the test.
13280 lt_cv_path_NM="$NM"
13281 else
13282 lt_nm_to_check="${ac_tool_prefix}nm"
13283 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13284 lt_nm_to_check="$lt_nm_to_check nm"
13286 for lt_tmp_nm in $lt_nm_to_check; do
13287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13288 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13289 IFS="$lt_save_ifs"
13290 test -z "$ac_dir" && ac_dir=.
13291 tmp_nm="$ac_dir/$lt_tmp_nm"
13292 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13293 # Check to see if the nm accepts a BSD-compat flag.
13294 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13295 # nm: unknown option "B" ignored
13296 # Tru64's nm complains that /dev/null is an invalid object file
13297 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13298 */dev/null* | *'Invalid file or object type'*)
13299 lt_cv_path_NM="$tmp_nm -B"
13300 break
13303 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13304 */dev/null*)
13305 lt_cv_path_NM="$tmp_nm -p"
13306 break
13309 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13310 continue # so that we can try to find one that supports BSD flags
13312 esac
13314 esac
13316 done
13317 IFS="$lt_save_ifs"
13318 done
13319 : ${lt_cv_path_NM=no}
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13323 $as_echo "$lt_cv_path_NM" >&6; }
13324 if test "$lt_cv_path_NM" != "no"; then
13325 NM="$lt_cv_path_NM"
13326 else
13327 # Didn't find any BSD compatible name lister, look for dumpbin.
13328 if test -n "$DUMPBIN"; then :
13329 # Let the user override the test.
13330 else
13331 if test -n "$ac_tool_prefix"; then
13332 for ac_prog in dumpbin "link -dump"
13334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_prog_DUMPBIN+:} false; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 if test -n "$DUMPBIN"; then
13342 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13343 else
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13347 IFS=$as_save_IFS
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 break 2
13355 done
13356 done
13357 IFS=$as_save_IFS
13361 DUMPBIN=$ac_cv_prog_DUMPBIN
13362 if test -n "$DUMPBIN"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13364 $as_echo "$DUMPBIN" >&6; }
13365 else
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13371 test -n "$DUMPBIN" && break
13372 done
13374 if test -z "$DUMPBIN"; then
13375 ac_ct_DUMPBIN=$DUMPBIN
13376 for ac_prog in dumpbin "link -dump"
13378 # Extract the first word of "$ac_prog", so it can be a program name with args.
13379 set dummy $ac_prog; ac_word=$2
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13381 $as_echo_n "checking for $ac_word... " >&6; }
13382 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 if test -n "$ac_ct_DUMPBIN"; then
13386 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13387 else
13388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13397 break 2
13399 done
13400 done
13401 IFS=$as_save_IFS
13405 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13406 if test -n "$ac_ct_DUMPBIN"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13408 $as_echo "$ac_ct_DUMPBIN" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13415 test -n "$ac_ct_DUMPBIN" && break
13416 done
13418 if test "x$ac_ct_DUMPBIN" = x; then
13419 DUMPBIN=":"
13420 else
13421 case $cross_compiling:$ac_tool_warned in
13422 yes:)
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13425 ac_tool_warned=yes ;;
13426 esac
13427 DUMPBIN=$ac_ct_DUMPBIN
13431 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13432 *COFF*)
13433 DUMPBIN="$DUMPBIN -symbols"
13436 DUMPBIN=:
13438 esac
13441 if test "$DUMPBIN" != ":"; then
13442 NM="$DUMPBIN"
13445 test -z "$NM" && NM=nm
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13453 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13454 if ${lt_cv_nm_interface+:} false; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 lt_cv_nm_interface="BSD nm"
13458 echo "int some_variable = 0;" > conftest.$ac_ext
13459 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13460 (eval "$ac_compile" 2>conftest.err)
13461 cat conftest.err >&5
13462 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13463 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13464 cat conftest.err >&5
13465 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13466 cat conftest.out >&5
13467 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13468 lt_cv_nm_interface="MS dumpbin"
13470 rm -f conftest*
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13473 $as_echo "$lt_cv_nm_interface" >&6; }
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13476 $as_echo_n "checking whether ln -s works... " >&6; }
13477 LN_S=$as_ln_s
13478 if test "$LN_S" = "ln -s"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480 $as_echo "yes" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13483 $as_echo "no, using $LN_S" >&6; }
13486 # find the maximum length of command line arguments
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13488 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13489 if ${lt_cv_sys_max_cmd_len+:} false; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13493 teststring="ABCD"
13495 case $build_os in
13496 msdosdjgpp*)
13497 # On DJGPP, this test can blow up pretty badly due to problems in libc
13498 # (any single argument exceeding 2000 bytes causes a buffer overrun
13499 # during glob expansion). Even if it were fixed, the result of this
13500 # check would be larger than it should be.
13501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13504 gnu*)
13505 # Under GNU Hurd, this test is not required because there is
13506 # no limit to the length of command line arguments.
13507 # Libtool will interpret -1 as no limit whatsoever
13508 lt_cv_sys_max_cmd_len=-1;
13511 cygwin* | mingw* | cegcc*)
13512 # On Win9x/ME, this test blows up -- it succeeds, but takes
13513 # about 5 minutes as the teststring grows exponentially.
13514 # Worse, since 9x/ME are not pre-emptively multitasking,
13515 # you end up with a "frozen" computer, even though with patience
13516 # the test eventually succeeds (with a max line length of 256k).
13517 # Instead, let's just punt: use the minimum linelength reported by
13518 # all of the supported platforms: 8192 (on NT/2K/XP).
13519 lt_cv_sys_max_cmd_len=8192;
13522 mint*)
13523 # On MiNT this can take a long time and run out of memory.
13524 lt_cv_sys_max_cmd_len=8192;
13527 amigaos*)
13528 # On AmigaOS with pdksh, this test takes hours, literally.
13529 # So we just punt and use a minimum line length of 8192.
13530 lt_cv_sys_max_cmd_len=8192;
13533 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13534 # This has been around since 386BSD, at least. Likely further.
13535 if test -x /sbin/sysctl; then
13536 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13537 elif test -x /usr/sbin/sysctl; then
13538 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13539 else
13540 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13542 # And add a safety zone
13543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13547 interix*)
13548 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13549 lt_cv_sys_max_cmd_len=196608
13552 osf*)
13553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13555 # nice to cause kernel panics so lets avoid the loop below.
13556 # First set a reasonable default.
13557 lt_cv_sys_max_cmd_len=16384
13559 if test -x /sbin/sysconfig; then
13560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13562 esac
13565 sco3.2v5*)
13566 lt_cv_sys_max_cmd_len=102400
13568 sysv5* | sco5v6* | sysv4.2uw2*)
13569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13570 if test -n "$kargmax"; then
13571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13572 else
13573 lt_cv_sys_max_cmd_len=32768
13577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13578 if test -n "$lt_cv_sys_max_cmd_len"; then
13579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13581 else
13582 # Make teststring a little bigger before we do anything with it.
13583 # a 1K string should be a reasonable start.
13584 for i in 1 2 3 4 5 6 7 8 ; do
13585 teststring=$teststring$teststring
13586 done
13587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13588 # If test is not a shell built-in, we'll probably end up computing a
13589 # maximum length that is only half of the actual maximum length, but
13590 # we can't tell.
13591 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13592 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13593 test $i != 17 # 1/2 MB should be enough
13595 i=`expr $i + 1`
13596 teststring=$teststring$teststring
13597 done
13598 # Only check the string length outside the loop.
13599 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13600 teststring=
13601 # Add a significant safety factor because C++ compilers can tack on
13602 # massive amounts of additional arguments before passing them to the
13603 # linker. It appears as though 1/2 is a usable value.
13604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13607 esac
13611 if test -n $lt_cv_sys_max_cmd_len ; then
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13613 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13614 else
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13616 $as_echo "none" >&6; }
13618 max_cmd_len=$lt_cv_sys_max_cmd_len
13625 : ${CP="cp -f"}
13626 : ${MV="mv -f"}
13627 : ${RM="rm -f"}
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13630 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13631 # Try some XSI features
13632 xsi_shell=no
13633 ( _lt_dummy="a/b/c"
13634 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13635 = c,a/b,, \
13636 && eval 'test $(( 1 + 1 )) -eq 2 \
13637 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13638 && xsi_shell=yes
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13640 $as_echo "$xsi_shell" >&6; }
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13644 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13645 lt_shell_append=no
13646 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13647 >/dev/null 2>&1 \
13648 && lt_shell_append=yes
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13650 $as_echo "$lt_shell_append" >&6; }
13653 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13654 lt_unset=unset
13655 else
13656 lt_unset=false
13663 # test EBCDIC or ASCII
13664 case `echo X|tr X '\101'` in
13665 A) # ASCII based system
13666 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13667 lt_SP2NL='tr \040 \012'
13668 lt_NL2SP='tr \015\012 \040\040'
13670 *) # EBCDIC based system
13671 lt_SP2NL='tr \100 \n'
13672 lt_NL2SP='tr \r\n \100\100'
13674 esac
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13685 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13686 if ${lt_cv_ld_reload_flag+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 lt_cv_ld_reload_flag='-r'
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13692 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13693 reload_flag=$lt_cv_ld_reload_flag
13694 case $reload_flag in
13695 "" | " "*) ;;
13696 *) reload_flag=" $reload_flag" ;;
13697 esac
13698 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13699 case $host_os in
13700 darwin*)
13701 if test "$GCC" = yes; then
13702 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13703 else
13704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13707 esac
13717 if test -n "$ac_tool_prefix"; then
13718 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13719 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13721 $as_echo_n "checking for $ac_word... " >&6; }
13722 if ${ac_cv_prog_OBJDUMP+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 if test -n "$OBJDUMP"; then
13726 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13727 else
13728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13729 for as_dir in $PATH
13731 IFS=$as_save_IFS
13732 test -z "$as_dir" && as_dir=.
13733 for ac_exec_ext in '' $ac_executable_extensions; do
13734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13735 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13737 break 2
13739 done
13740 done
13741 IFS=$as_save_IFS
13745 OBJDUMP=$ac_cv_prog_OBJDUMP
13746 if test -n "$OBJDUMP"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13748 $as_echo "$OBJDUMP" >&6; }
13749 else
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13751 $as_echo "no" >&6; }
13756 if test -z "$ac_cv_prog_OBJDUMP"; then
13757 ac_ct_OBJDUMP=$OBJDUMP
13758 # Extract the first word of "objdump", so it can be a program name with args.
13759 set dummy objdump; ac_word=$2
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13761 $as_echo_n "checking for $ac_word... " >&6; }
13762 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 if test -n "$ac_ct_OBJDUMP"; then
13766 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13767 else
13768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13769 for as_dir in $PATH
13771 IFS=$as_save_IFS
13772 test -z "$as_dir" && as_dir=.
13773 for ac_exec_ext in '' $ac_executable_extensions; do
13774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13775 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13777 break 2
13779 done
13780 done
13781 IFS=$as_save_IFS
13785 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13786 if test -n "$ac_ct_OBJDUMP"; then
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13788 $as_echo "$ac_ct_OBJDUMP" >&6; }
13789 else
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13791 $as_echo "no" >&6; }
13794 if test "x$ac_ct_OBJDUMP" = x; then
13795 OBJDUMP="false"
13796 else
13797 case $cross_compiling:$ac_tool_warned in
13798 yes:)
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13801 ac_tool_warned=yes ;;
13802 esac
13803 OBJDUMP=$ac_ct_OBJDUMP
13805 else
13806 OBJDUMP="$ac_cv_prog_OBJDUMP"
13809 test -z "$OBJDUMP" && OBJDUMP=objdump
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13820 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13821 if ${lt_cv_deplibs_check_method+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 lt_cv_file_magic_cmd='$MAGIC_CMD'
13825 lt_cv_file_magic_test_file=
13826 lt_cv_deplibs_check_method='unknown'
13827 # Need to set the preceding variable on all platforms that support
13828 # interlibrary dependencies.
13829 # 'none' -- dependencies not supported.
13830 # `unknown' -- same as none, but documents that we really don't know.
13831 # 'pass_all' -- all dependencies passed with no checks.
13832 # 'test_compile' -- check by making test program.
13833 # 'file_magic [[regex]]' -- check by looking for files in library path
13834 # which responds to the $file_magic_cmd with a given extended regex.
13835 # If you have `file' or equivalent on your system and you're not sure
13836 # whether `pass_all' will *always* work, you probably want this one.
13838 case $host_os in
13839 aix[4-9]*)
13840 lt_cv_deplibs_check_method=pass_all
13843 beos*)
13844 lt_cv_deplibs_check_method=pass_all
13847 bsdi[45]*)
13848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13849 lt_cv_file_magic_cmd='/usr/bin/file -L'
13850 lt_cv_file_magic_test_file=/shlib/libc.so
13853 cygwin*)
13854 # func_win32_libid is a shell function defined in ltmain.sh
13855 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13856 lt_cv_file_magic_cmd='func_win32_libid'
13859 mingw* | pw32*)
13860 # Base MSYS/MinGW do not provide the 'file' command needed by
13861 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13862 # unless we find 'file', for example because we are cross-compiling.
13863 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13864 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13866 lt_cv_file_magic_cmd='func_win32_libid'
13867 else
13868 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13869 lt_cv_file_magic_cmd='$OBJDUMP -f'
13873 cegcc*)
13874 # use the weaker test based on 'objdump'. See mingw*.
13875 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13876 lt_cv_file_magic_cmd='$OBJDUMP -f'
13879 darwin* | rhapsody*)
13880 lt_cv_deplibs_check_method=pass_all
13883 freebsd* | dragonfly*)
13884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13885 case $host_cpu in
13886 i*86 )
13887 # Not sure whether the presence of OpenBSD here was a mistake.
13888 # Let's accept both of them until this is cleared up.
13889 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13890 lt_cv_file_magic_cmd=/usr/bin/file
13891 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13893 esac
13894 else
13895 lt_cv_deplibs_check_method=pass_all
13899 gnu*)
13900 lt_cv_deplibs_check_method=pass_all
13903 haiku*)
13904 lt_cv_deplibs_check_method=pass_all
13907 hpux10.20* | hpux11*)
13908 lt_cv_file_magic_cmd=/usr/bin/file
13909 case $host_cpu in
13910 ia64*)
13911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13914 hppa*64*)
13915 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]'
13916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13922 esac
13925 interix[3-9]*)
13926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13930 irix5* | irix6* | nonstopux*)
13931 case $LD in
13932 *-32|*"-32 ") libmagic=32-bit;;
13933 *-n32|*"-n32 ") libmagic=N32;;
13934 *-64|*"-64 ") libmagic=64-bit;;
13935 *) libmagic=never-match;;
13936 esac
13937 lt_cv_deplibs_check_method=pass_all
13940 # This must be Linux ELF.
13941 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13942 lt_cv_deplibs_check_method=pass_all
13945 netbsd*)
13946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13948 else
13949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13953 newos6*)
13954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13955 lt_cv_file_magic_cmd=/usr/bin/file
13956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13959 *nto* | *qnx*)
13960 lt_cv_deplibs_check_method=pass_all
13963 openbsd*)
13964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13966 else
13967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13971 osf3* | osf4* | osf5*)
13972 lt_cv_deplibs_check_method=pass_all
13975 rdos*)
13976 lt_cv_deplibs_check_method=pass_all
13979 solaris*)
13980 lt_cv_deplibs_check_method=pass_all
13983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13984 lt_cv_deplibs_check_method=pass_all
13987 sysv4 | sysv4.3*)
13988 case $host_vendor in
13989 motorola)
13990 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]'
13991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13993 ncr)
13994 lt_cv_deplibs_check_method=pass_all
13996 sequent)
13997 lt_cv_file_magic_cmd='/bin/file'
13998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14000 sni)
14001 lt_cv_file_magic_cmd='/bin/file'
14002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14003 lt_cv_file_magic_test_file=/lib/libc.so
14005 siemens)
14006 lt_cv_deplibs_check_method=pass_all
14009 lt_cv_deplibs_check_method=pass_all
14011 esac
14014 tpf*)
14015 lt_cv_deplibs_check_method=pass_all
14017 esac
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14021 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14022 file_magic_cmd=$lt_cv_file_magic_cmd
14023 deplibs_check_method=$lt_cv_deplibs_check_method
14024 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14037 if test -n "$ac_tool_prefix"; then
14038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14039 set dummy ${ac_tool_prefix}ar; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_prog_AR+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$AR"; then
14046 ac_cv_prog_AR="$AR" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_AR="${ac_tool_prefix}ar"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14059 done
14060 done
14061 IFS=$as_save_IFS
14065 AR=$ac_cv_prog_AR
14066 if test -n "$AR"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14068 $as_echo "$AR" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14076 if test -z "$ac_cv_prog_AR"; then
14077 ac_ct_AR=$AR
14078 # Extract the first word of "ar", so it can be a program name with args.
14079 set dummy ar; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 if test -n "$ac_ct_AR"; then
14086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14087 else
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
14094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14095 ac_cv_prog_ac_ct_AR="ar"
14096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14099 done
14100 done
14101 IFS=$as_save_IFS
14105 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14106 if test -n "$ac_ct_AR"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14108 $as_echo "$ac_ct_AR" >&6; }
14109 else
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14111 $as_echo "no" >&6; }
14114 if test "x$ac_ct_AR" = x; then
14115 AR="false"
14116 else
14117 case $cross_compiling:$ac_tool_warned in
14118 yes:)
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14121 ac_tool_warned=yes ;;
14122 esac
14123 AR=$ac_ct_AR
14125 else
14126 AR="$ac_cv_prog_AR"
14129 test -z "$AR" && AR=ar
14130 test -z "$AR_FLAGS" && AR_FLAGS=cru
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14144 set dummy ${ac_tool_prefix}strip; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 $as_echo_n "checking for $ac_word... " >&6; }
14147 if ${ac_cv_prog_STRIP+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 if test -n "$STRIP"; then
14151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14152 else
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14156 IFS=$as_save_IFS
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 break 2
14164 done
14165 done
14166 IFS=$as_save_IFS
14170 STRIP=$ac_cv_prog_STRIP
14171 if test -n "$STRIP"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14173 $as_echo "$STRIP" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14181 if test -z "$ac_cv_prog_STRIP"; then
14182 ac_ct_STRIP=$STRIP
14183 # Extract the first word of "strip", so it can be a program name with args.
14184 set dummy strip; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 if test -n "$ac_ct_STRIP"; then
14191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14192 else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200 ac_cv_prog_ac_ct_STRIP="strip"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14204 done
14205 done
14206 IFS=$as_save_IFS
14210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14211 if test -n "$ac_ct_STRIP"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14213 $as_echo "$ac_ct_STRIP" >&6; }
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14219 if test "x$ac_ct_STRIP" = x; then
14220 STRIP=":"
14221 else
14222 case $cross_compiling:$ac_tool_warned in
14223 yes:)
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14226 ac_tool_warned=yes ;;
14227 esac
14228 STRIP=$ac_ct_STRIP
14230 else
14231 STRIP="$ac_cv_prog_STRIP"
14234 test -z "$STRIP" && STRIP=:
14241 if test -n "$ac_tool_prefix"; then
14242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245 $as_echo_n "checking for $ac_word... " >&6; }
14246 if ${ac_cv_prog_RANLIB+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 if test -n "$RANLIB"; then
14250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
14257 for ac_exec_ext in '' $ac_executable_extensions; do
14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 break 2
14263 done
14264 done
14265 IFS=$as_save_IFS
14269 RANLIB=$ac_cv_prog_RANLIB
14270 if test -n "$RANLIB"; then
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14272 $as_echo "$RANLIB" >&6; }
14273 else
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275 $as_echo "no" >&6; }
14280 if test -z "$ac_cv_prog_RANLIB"; then
14281 ac_ct_RANLIB=$RANLIB
14282 # Extract the first word of "ranlib", so it can be a program name with args.
14283 set dummy ranlib; ac_word=$2
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285 $as_echo_n "checking for $ac_word... " >&6; }
14286 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 if test -n "$ac_ct_RANLIB"; then
14290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14295 IFS=$as_save_IFS
14296 test -z "$as_dir" && as_dir=.
14297 for ac_exec_ext in '' $ac_executable_extensions; do
14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14299 ac_cv_prog_ac_ct_RANLIB="ranlib"
14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14301 break 2
14303 done
14304 done
14305 IFS=$as_save_IFS
14309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14310 if test -n "$ac_ct_RANLIB"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14312 $as_echo "$ac_ct_RANLIB" >&6; }
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14318 if test "x$ac_ct_RANLIB" = x; then
14319 RANLIB=":"
14320 else
14321 case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned=yes ;;
14326 esac
14327 RANLIB=$ac_ct_RANLIB
14329 else
14330 RANLIB="$ac_cv_prog_RANLIB"
14333 test -z "$RANLIB" && RANLIB=:
14340 # Determine commands to create old-style static archives.
14341 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14342 old_postinstall_cmds='chmod 644 $oldlib'
14343 old_postuninstall_cmds=
14345 if test -n "$RANLIB"; then
14346 case $host_os in
14347 openbsd*)
14348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14353 esac
14354 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14357 case $host_os in
14358 darwin*)
14359 lock_old_archive_extraction=yes ;;
14361 lock_old_archive_extraction=no ;;
14362 esac
14402 # If no C compiler was specified, use CC.
14403 LTCC=${LTCC-"$CC"}
14405 # If no C compiler flags were specified, use CFLAGS.
14406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14408 # Allow CC to be a program name with arguments.
14409 compiler=$CC
14412 # Check for command to grab the raw symbol name followed by C symbol from nm.
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14414 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14415 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14419 # These are sane defaults that work on at least a few old systems.
14420 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14422 # Character class describing NM global symbol codes.
14423 symcode='[BCDEGRST]'
14425 # Regexp to match symbols that can be accessed directly from C.
14426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14428 # Define system-specific variables.
14429 case $host_os in
14430 aix*)
14431 symcode='[BCDT]'
14433 cygwin* | mingw* | pw32* | cegcc*)
14434 symcode='[ABCDGISTW]'
14436 hpux*)
14437 if test "$host_cpu" = ia64; then
14438 symcode='[ABCDEGRST]'
14441 irix* | nonstopux*)
14442 symcode='[BCDEGRST]'
14444 osf*)
14445 symcode='[BCDEGQRST]'
14447 solaris*)
14448 symcode='[BDRT]'
14450 sco3.2v5*)
14451 symcode='[DT]'
14453 sysv4.2uw2*)
14454 symcode='[DT]'
14456 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14457 symcode='[ABDT]'
14459 sysv4)
14460 symcode='[DFNSTU]'
14462 esac
14464 # If we're using GNU nm, then use its standard symbol codes.
14465 case `$NM -V 2>&1` in
14466 *GNU* | *'with BFD'*)
14467 symcode='[ABCDGIRSTW]' ;;
14468 esac
14470 # Transform an extracted symbol line into a proper C declaration.
14471 # Some systems (esp. on ia64) link data and code symbols differently,
14472 # so use this general approach.
14473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14475 # Transform an extracted symbol line into symbol name and symbol address
14476 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14477 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'"
14479 # Handle CRLF in mingw tool chain
14480 opt_cr=
14481 case $build_os in
14482 mingw*)
14483 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14485 esac
14487 # Try without a prefix underscore, then with it.
14488 for ac_symprfx in "" "_"; do
14490 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14491 symxfrm="\\1 $ac_symprfx\\2 \\2"
14493 # Write the raw and C identifiers.
14494 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14495 # Fake it for dumpbin and say T for any non-static function
14496 # and D for any global variable.
14497 # Also find C++ and __fastcall symbols from MSVC++,
14498 # which start with @ or ?.
14499 lt_cv_sys_global_symbol_pipe="$AWK '"\
14500 " {last_section=section; section=\$ 3};"\
14501 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14502 " \$ 0!~/External *\|/{next};"\
14503 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14504 " {if(hide[section]) next};"\
14505 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14506 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14507 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14508 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14509 " ' prfx=^$ac_symprfx"
14510 else
14511 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14514 # Check to see that the pipe works correctly.
14515 pipe_works=no
14517 rm -f conftest*
14518 cat > conftest.$ac_ext <<_LT_EOF
14519 #ifdef __cplusplus
14520 extern "C" {
14521 #endif
14522 char nm_test_var;
14523 void nm_test_func(void);
14524 void nm_test_func(void){}
14525 #ifdef __cplusplus
14527 #endif
14528 int main(){nm_test_var='a';nm_test_func();return(0);}
14529 _LT_EOF
14531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14532 (eval $ac_compile) 2>&5
14533 ac_status=$?
14534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14535 test $ac_status = 0; }; then
14536 # Now try to grab the symbols.
14537 nlist=conftest.nm
14538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14539 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14540 ac_status=$?
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; } && test -s "$nlist"; then
14543 # Try sorting and uniquifying the output.
14544 if sort "$nlist" | uniq > "$nlist"T; then
14545 mv -f "$nlist"T "$nlist"
14546 else
14547 rm -f "$nlist"T
14550 # Make sure that we snagged all the symbols we need.
14551 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14552 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14553 cat <<_LT_EOF > conftest.$ac_ext
14554 #ifdef __cplusplus
14555 extern "C" {
14556 #endif
14558 _LT_EOF
14559 # Now generate the symbol file.
14560 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14562 cat <<_LT_EOF >> conftest.$ac_ext
14564 /* The mapping between symbol names and symbols. */
14565 const struct {
14566 const char *name;
14567 void *address;
14569 lt__PROGRAM__LTX_preloaded_symbols[] =
14571 { "@PROGRAM@", (void *) 0 },
14572 _LT_EOF
14573 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14574 cat <<\_LT_EOF >> conftest.$ac_ext
14575 {0, (void *) 0}
14578 /* This works around a problem in FreeBSD linker */
14579 #ifdef FREEBSD_WORKAROUND
14580 static const void *lt_preloaded_setup() {
14581 return lt__PROGRAM__LTX_preloaded_symbols;
14583 #endif
14585 #ifdef __cplusplus
14587 #endif
14588 _LT_EOF
14589 # Now try linking the two files.
14590 mv conftest.$ac_objext conftstm.$ac_objext
14591 lt_save_LIBS="$LIBS"
14592 lt_save_CFLAGS="$CFLAGS"
14593 LIBS="conftstm.$ac_objext"
14594 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14596 (eval $ac_link) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14600 pipe_works=yes
14602 LIBS="$lt_save_LIBS"
14603 CFLAGS="$lt_save_CFLAGS"
14604 else
14605 echo "cannot find nm_test_func in $nlist" >&5
14607 else
14608 echo "cannot find nm_test_var in $nlist" >&5
14610 else
14611 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14613 else
14614 echo "$progname: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14617 rm -rf conftest* conftst*
14619 # Do not use the global_symbol_pipe unless it works.
14620 if test "$pipe_works" = yes; then
14621 break
14622 else
14623 lt_cv_sys_global_symbol_pipe=
14625 done
14629 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14630 lt_cv_sys_global_symbol_to_cdecl=
14632 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14634 $as_echo "failed" >&6; }
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14637 $as_echo "ok" >&6; }
14661 # Check whether --enable-libtool-lock was given.
14662 if test "${enable_libtool_lock+set}" = set; then :
14663 enableval=$enable_libtool_lock;
14666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14668 # Some flags need to be propagated to the compiler or linker for good
14669 # libtool support.
14670 case $host in
14671 ia64-*-hpux*)
14672 # Find out which ABI we are using.
14673 echo 'int i;' > conftest.$ac_ext
14674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14675 (eval $ac_compile) 2>&5
14676 ac_status=$?
14677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 test $ac_status = 0; }; then
14679 case `/usr/bin/file conftest.$ac_objext` in
14680 *ELF-32*)
14681 HPUX_IA64_MODE="32"
14683 *ELF-64*)
14684 HPUX_IA64_MODE="64"
14686 esac
14688 rm -rf conftest*
14690 *-*-irix6*)
14691 # Find out which ABI we are using.
14692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14694 (eval $ac_compile) 2>&5
14695 ac_status=$?
14696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14697 test $ac_status = 0; }; then
14698 if test "$lt_cv_prog_gnu_ld" = yes; then
14699 case `/usr/bin/file conftest.$ac_objext` in
14700 *32-bit*)
14701 LD="${LD-ld} -melf32bsmip"
14703 *N32*)
14704 LD="${LD-ld} -melf32bmipn32"
14706 *64-bit*)
14707 LD="${LD-ld} -melf64bmip"
14709 esac
14710 else
14711 case `/usr/bin/file conftest.$ac_objext` in
14712 *32-bit*)
14713 LD="${LD-ld} -32"
14715 *N32*)
14716 LD="${LD-ld} -n32"
14718 *64-bit*)
14719 LD="${LD-ld} -64"
14721 esac
14724 rm -rf conftest*
14727 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14728 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14729 # Find out which ABI we are using.
14730 echo 'int i;' > conftest.$ac_ext
14731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14732 (eval $ac_compile) 2>&5
14733 ac_status=$?
14734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735 test $ac_status = 0; }; then
14736 case `/usr/bin/file conftest.o` in
14737 *32-bit*)
14738 case $host in
14739 x86_64-*kfreebsd*-gnu)
14740 LD="${LD-ld} -m elf_i386_fbsd"
14742 x86_64-*linux*)
14743 case `/usr/bin/file conftest.o` in
14744 *x86-64*)
14745 LD="${LD-ld} -m elf32_x86_64"
14748 LD="${LD-ld} -m elf_i386"
14750 esac
14752 powerpc64le-*linux*)
14753 LD="${LD-ld} -m elf32lppclinux"
14755 powerpc64-*linux*)
14756 LD="${LD-ld} -m elf32ppclinux"
14758 s390x-*linux*)
14759 LD="${LD-ld} -m elf_s390"
14761 sparc64-*linux*)
14762 LD="${LD-ld} -m elf32_sparc"
14764 esac
14766 *64-bit*)
14767 case $host in
14768 x86_64-*kfreebsd*-gnu)
14769 LD="${LD-ld} -m elf_x86_64_fbsd"
14771 x86_64-*linux*)
14772 LD="${LD-ld} -m elf_x86_64"
14774 powerpcle-*linux*)
14775 LD="${LD-ld} -m elf64lppc"
14777 powerpc-*linux*)
14778 LD="${LD-ld} -m elf64ppc"
14780 s390*-*linux*|s390*-*tpf*)
14781 LD="${LD-ld} -m elf64_s390"
14783 sparc*-*linux*)
14784 LD="${LD-ld} -m elf64_sparc"
14786 esac
14788 esac
14790 rm -rf conftest*
14793 *-*-sco3.2v5*)
14794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14795 SAVE_CFLAGS="$CFLAGS"
14796 CFLAGS="$CFLAGS -belf"
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14798 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14799 if ${lt_cv_cc_needs_belf+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 ac_ext=c
14803 ac_cpp='$CPP $CPPFLAGS'
14804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14812 main ()
14816 return 0;
14818 _ACEOF
14819 if ac_fn_c_try_link "$LINENO"; then :
14820 lt_cv_cc_needs_belf=yes
14821 else
14822 lt_cv_cc_needs_belf=no
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826 ac_ext=c
14827 ac_cpp='$CPP $CPPFLAGS'
14828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14834 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14835 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14836 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14837 CFLAGS="$SAVE_CFLAGS"
14840 sparc*-*solaris*)
14841 # Find out which ABI we are using.
14842 echo 'int i;' > conftest.$ac_ext
14843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14844 (eval $ac_compile) 2>&5
14845 ac_status=$?
14846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847 test $ac_status = 0; }; then
14848 case `/usr/bin/file conftest.o` in
14849 *64-bit*)
14850 case $lt_cv_prog_gnu_ld in
14851 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14853 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14854 LD="${LD-ld} -64"
14857 esac
14859 esac
14861 rm -rf conftest*
14863 esac
14865 need_locks="$enable_libtool_lock"
14868 case $host_os in
14869 rhapsody* | darwin*)
14870 if test -n "$ac_tool_prefix"; then
14871 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14872 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 if test -n "$DSYMUTIL"; then
14879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14880 else
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14884 IFS=$as_save_IFS
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14890 break 2
14892 done
14893 done
14894 IFS=$as_save_IFS
14898 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14899 if test -n "$DSYMUTIL"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14901 $as_echo "$DSYMUTIL" >&6; }
14902 else
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14909 if test -z "$ac_cv_prog_DSYMUTIL"; then
14910 ac_ct_DSYMUTIL=$DSYMUTIL
14911 # Extract the first word of "dsymutil", so it can be a program name with args.
14912 set dummy dsymutil; ac_word=$2
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914 $as_echo_n "checking for $ac_word... " >&6; }
14915 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 if test -n "$ac_ct_DSYMUTIL"; then
14919 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14920 else
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14924 IFS=$as_save_IFS
14925 test -z "$as_dir" && as_dir=.
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14928 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14930 break 2
14932 done
14933 done
14934 IFS=$as_save_IFS
14938 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14939 if test -n "$ac_ct_DSYMUTIL"; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14941 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14942 else
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14947 if test "x$ac_ct_DSYMUTIL" = x; then
14948 DSYMUTIL=":"
14949 else
14950 case $cross_compiling:$ac_tool_warned in
14951 yes:)
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954 ac_tool_warned=yes ;;
14955 esac
14956 DSYMUTIL=$ac_ct_DSYMUTIL
14958 else
14959 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14962 if test -n "$ac_tool_prefix"; then
14963 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14964 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14966 $as_echo_n "checking for $ac_word... " >&6; }
14967 if ${ac_cv_prog_NMEDIT+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 if test -n "$NMEDIT"; then
14971 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14972 else
14973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14980 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 break 2
14984 done
14985 done
14986 IFS=$as_save_IFS
14990 NMEDIT=$ac_cv_prog_NMEDIT
14991 if test -n "$NMEDIT"; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14993 $as_echo "$NMEDIT" >&6; }
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14996 $as_echo "no" >&6; }
15001 if test -z "$ac_cv_prog_NMEDIT"; then
15002 ac_ct_NMEDIT=$NMEDIT
15003 # Extract the first word of "nmedit", so it can be a program name with args.
15004 set dummy nmedit; ac_word=$2
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15006 $as_echo_n "checking for $ac_word... " >&6; }
15007 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15008 $as_echo_n "(cached) " >&6
15009 else
15010 if test -n "$ac_ct_NMEDIT"; then
15011 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15012 else
15013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $PATH
15016 IFS=$as_save_IFS
15017 test -z "$as_dir" && as_dir=.
15018 for ac_exec_ext in '' $ac_executable_extensions; do
15019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15022 break 2
15024 done
15025 done
15026 IFS=$as_save_IFS
15030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15031 if test -n "$ac_ct_NMEDIT"; then
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15033 $as_echo "$ac_ct_NMEDIT" >&6; }
15034 else
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15039 if test "x$ac_ct_NMEDIT" = x; then
15040 NMEDIT=":"
15041 else
15042 case $cross_compiling:$ac_tool_warned in
15043 yes:)
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15046 ac_tool_warned=yes ;;
15047 esac
15048 NMEDIT=$ac_ct_NMEDIT
15050 else
15051 NMEDIT="$ac_cv_prog_NMEDIT"
15054 if test -n "$ac_tool_prefix"; then
15055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15058 $as_echo_n "checking for $ac_word... " >&6; }
15059 if ${ac_cv_prog_LIPO+:} false; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062 if test -n "$LIPO"; then
15063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15064 else
15065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15066 for as_dir in $PATH
15068 IFS=$as_save_IFS
15069 test -z "$as_dir" && as_dir=.
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15072 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15074 break 2
15076 done
15077 done
15078 IFS=$as_save_IFS
15082 LIPO=$ac_cv_prog_LIPO
15083 if test -n "$LIPO"; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15085 $as_echo "$LIPO" >&6; }
15086 else
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088 $as_echo "no" >&6; }
15093 if test -z "$ac_cv_prog_LIPO"; then
15094 ac_ct_LIPO=$LIPO
15095 # Extract the first word of "lipo", so it can be a program name with args.
15096 set dummy lipo; ac_word=$2
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15098 $as_echo_n "checking for $ac_word... " >&6; }
15099 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15100 $as_echo_n "(cached) " >&6
15101 else
15102 if test -n "$ac_ct_LIPO"; then
15103 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15104 else
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in $PATH
15108 IFS=$as_save_IFS
15109 test -z "$as_dir" && as_dir=.
15110 for ac_exec_ext in '' $ac_executable_extensions; do
15111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15112 ac_cv_prog_ac_ct_LIPO="lipo"
15113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15114 break 2
15116 done
15117 done
15118 IFS=$as_save_IFS
15122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15123 if test -n "$ac_ct_LIPO"; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15125 $as_echo "$ac_ct_LIPO" >&6; }
15126 else
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15131 if test "x$ac_ct_LIPO" = x; then
15132 LIPO=":"
15133 else
15134 case $cross_compiling:$ac_tool_warned in
15135 yes:)
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15138 ac_tool_warned=yes ;;
15139 esac
15140 LIPO=$ac_ct_LIPO
15142 else
15143 LIPO="$ac_cv_prog_LIPO"
15146 if test -n "$ac_tool_prefix"; then
15147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15148 set dummy ${ac_tool_prefix}otool; ac_word=$2
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15150 $as_echo_n "checking for $ac_word... " >&6; }
15151 if ${ac_cv_prog_OTOOL+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154 if test -n "$OTOOL"; then
15155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15156 else
15157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15168 done
15169 done
15170 IFS=$as_save_IFS
15174 OTOOL=$ac_cv_prog_OTOOL
15175 if test -n "$OTOOL"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15177 $as_echo "$OTOOL" >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180 $as_echo "no" >&6; }
15185 if test -z "$ac_cv_prog_OTOOL"; then
15186 ac_ct_OTOOL=$OTOOL
15187 # Extract the first word of "otool", so it can be a program name with args.
15188 set dummy otool; ac_word=$2
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15190 $as_echo_n "checking for $ac_word... " >&6; }
15191 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15192 $as_echo_n "(cached) " >&6
15193 else
15194 if test -n "$ac_ct_OTOOL"; then
15195 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15196 else
15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198 for as_dir in $PATH
15200 IFS=$as_save_IFS
15201 test -z "$as_dir" && as_dir=.
15202 for ac_exec_ext in '' $ac_executable_extensions; do
15203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15204 ac_cv_prog_ac_ct_OTOOL="otool"
15205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15206 break 2
15208 done
15209 done
15210 IFS=$as_save_IFS
15214 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15215 if test -n "$ac_ct_OTOOL"; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15217 $as_echo "$ac_ct_OTOOL" >&6; }
15218 else
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15220 $as_echo "no" >&6; }
15223 if test "x$ac_ct_OTOOL" = x; then
15224 OTOOL=":"
15225 else
15226 case $cross_compiling:$ac_tool_warned in
15227 yes:)
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15230 ac_tool_warned=yes ;;
15231 esac
15232 OTOOL=$ac_ct_OTOOL
15234 else
15235 OTOOL="$ac_cv_prog_OTOOL"
15238 if test -n "$ac_tool_prefix"; then
15239 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15240 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15242 $as_echo_n "checking for $ac_word... " >&6; }
15243 if ${ac_cv_prog_OTOOL64+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245 else
15246 if test -n "$OTOOL64"; then
15247 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15248 else
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15252 IFS=$as_save_IFS
15253 test -z "$as_dir" && as_dir=.
15254 for ac_exec_ext in '' $ac_executable_extensions; do
15255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15256 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15258 break 2
15260 done
15261 done
15262 IFS=$as_save_IFS
15266 OTOOL64=$ac_cv_prog_OTOOL64
15267 if test -n "$OTOOL64"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15269 $as_echo "$OTOOL64" >&6; }
15270 else
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272 $as_echo "no" >&6; }
15277 if test -z "$ac_cv_prog_OTOOL64"; then
15278 ac_ct_OTOOL64=$OTOOL64
15279 # Extract the first word of "otool64", so it can be a program name with args.
15280 set dummy otool64; ac_word=$2
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15282 $as_echo_n "checking for $ac_word... " >&6; }
15283 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 if test -n "$ac_ct_OTOOL64"; then
15287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15288 else
15289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290 for as_dir in $PATH
15292 IFS=$as_save_IFS
15293 test -z "$as_dir" && as_dir=.
15294 for ac_exec_ext in '' $ac_executable_extensions; do
15295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15296 ac_cv_prog_ac_ct_OTOOL64="otool64"
15297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 break 2
15300 done
15301 done
15302 IFS=$as_save_IFS
15306 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15307 if test -n "$ac_ct_OTOOL64"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15309 $as_echo "$ac_ct_OTOOL64" >&6; }
15310 else
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312 $as_echo "no" >&6; }
15315 if test "x$ac_ct_OTOOL64" = x; then
15316 OTOOL64=":"
15317 else
15318 case $cross_compiling:$ac_tool_warned in
15319 yes:)
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15322 ac_tool_warned=yes ;;
15323 esac
15324 OTOOL64=$ac_ct_OTOOL64
15326 else
15327 OTOOL64="$ac_cv_prog_OTOOL64"
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15357 $as_echo_n "checking for -single_module linker flag... " >&6; }
15358 if ${lt_cv_apple_cc_single_mod+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 lt_cv_apple_cc_single_mod=no
15362 if test -z "${LT_MULTI_MODULE}"; then
15363 # By default we will add the -single_module flag. You can override
15364 # by either setting the environment variable LT_MULTI_MODULE
15365 # non-empty at configure time, or by adding -multi_module to the
15366 # link flags.
15367 rm -rf libconftest.dylib*
15368 echo "int foo(void){return 1;}" > conftest.c
15369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15370 -dynamiclib -Wl,-single_module conftest.c" >&5
15371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15373 _lt_result=$?
15374 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15375 lt_cv_apple_cc_single_mod=yes
15376 else
15377 cat conftest.err >&5
15379 rm -rf libconftest.dylib*
15380 rm -f conftest.*
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15384 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15386 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15387 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15388 $as_echo_n "(cached) " >&6
15389 else
15390 lt_cv_ld_exported_symbols_list=no
15391 save_LDFLAGS=$LDFLAGS
15392 echo "_main" > conftest.sym
15393 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15398 main ()
15402 return 0;
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"; then :
15406 lt_cv_ld_exported_symbols_list=yes
15407 else
15408 lt_cv_ld_exported_symbols_list=no
15410 rm -f core conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LDFLAGS="$save_LDFLAGS"
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15416 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15418 $as_echo_n "checking for -force_load linker flag... " >&6; }
15419 if ${lt_cv_ld_force_load+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 lt_cv_ld_force_load=no
15423 cat > conftest.c << _LT_EOF
15424 int forced_loaded() { return 2;}
15425 _LT_EOF
15426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15428 echo "$AR cru libconftest.a conftest.o" >&5
15429 $AR cru libconftest.a conftest.o 2>&5
15430 cat > conftest.c << _LT_EOF
15431 int main() { return 0;}
15432 _LT_EOF
15433 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15434 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15435 _lt_result=$?
15436 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15437 lt_cv_ld_force_load=yes
15438 else
15439 cat conftest.err >&5
15441 rm -f conftest.err libconftest.a conftest conftest.c
15442 rm -rf conftest.dSYM
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15446 $as_echo "$lt_cv_ld_force_load" >&6; }
15447 case $host_os in
15448 rhapsody* | darwin1.[012])
15449 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15450 darwin1.*)
15451 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15452 darwin*) # darwin 5.x on
15453 # if running on 10.5 or later, the deployment target defaults
15454 # to the OS version, if on x86, and 10.4, the deployment
15455 # target defaults to 10.4. Don't you love it?
15456 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15457 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15458 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15459 10.[012][,.]*)
15460 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15461 10.*)
15462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15463 esac
15465 esac
15466 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15467 _lt_dar_single_mod='$single_module'
15469 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15470 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15471 else
15472 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15474 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15475 _lt_dsymutil='~$DSYMUTIL $lib || :'
15476 else
15477 _lt_dsymutil=
15480 esac
15483 for ac_header in dlfcn.h
15484 do :
15485 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15486 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_DLFCN_H 1
15489 _ACEOF
15492 done
15498 # Set options
15502 enable_dlopen=no
15505 enable_win32_dll=no
15508 # Check whether --enable-shared was given.
15509 if test "${enable_shared+set}" = set; then :
15510 enableval=$enable_shared; p=${PACKAGE-default}
15511 case $enableval in
15512 yes) enable_shared=yes ;;
15513 no) enable_shared=no ;;
15515 enable_shared=no
15516 # Look at the argument we got. We use all the common list separators.
15517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15518 for pkg in $enableval; do
15519 IFS="$lt_save_ifs"
15520 if test "X$pkg" = "X$p"; then
15521 enable_shared=yes
15523 done
15524 IFS="$lt_save_ifs"
15526 esac
15527 else
15528 enable_shared=yes
15539 # Check whether --enable-static was given.
15540 if test "${enable_static+set}" = set; then :
15541 enableval=$enable_static; p=${PACKAGE-default}
15542 case $enableval in
15543 yes) enable_static=yes ;;
15544 no) enable_static=no ;;
15546 enable_static=no
15547 # Look at the argument we got. We use all the common list separators.
15548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15549 for pkg in $enableval; do
15550 IFS="$lt_save_ifs"
15551 if test "X$pkg" = "X$p"; then
15552 enable_static=yes
15554 done
15555 IFS="$lt_save_ifs"
15557 esac
15558 else
15559 enable_static=yes
15571 # Check whether --with-pic was given.
15572 if test "${with_pic+set}" = set; then :
15573 withval=$with_pic; pic_mode="$withval"
15574 else
15575 pic_mode=default
15579 test -z "$pic_mode" && pic_mode=default
15587 # Check whether --enable-fast-install was given.
15588 if test "${enable_fast_install+set}" = set; then :
15589 enableval=$enable_fast_install; p=${PACKAGE-default}
15590 case $enableval in
15591 yes) enable_fast_install=yes ;;
15592 no) enable_fast_install=no ;;
15594 enable_fast_install=no
15595 # Look at the argument we got. We use all the common list separators.
15596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15597 for pkg in $enableval; do
15598 IFS="$lt_save_ifs"
15599 if test "X$pkg" = "X$p"; then
15600 enable_fast_install=yes
15602 done
15603 IFS="$lt_save_ifs"
15605 esac
15606 else
15607 enable_fast_install=yes
15620 # This can be used to rebuild libtool when needed
15621 LIBTOOL_DEPS="$ltmain"
15623 # Always use our own libtool.
15624 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15651 test -z "$LN_S" && LN_S="ln -s"
15666 if test -n "${ZSH_VERSION+set}" ; then
15667 setopt NO_GLOB_SUBST
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15671 $as_echo_n "checking for objdir... " >&6; }
15672 if ${lt_cv_objdir+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 rm -f .libs 2>/dev/null
15676 mkdir .libs 2>/dev/null
15677 if test -d .libs; then
15678 lt_cv_objdir=.libs
15679 else
15680 # MS-DOS does not allow filenames that begin with a dot.
15681 lt_cv_objdir=_libs
15683 rmdir .libs 2>/dev/null
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15686 $as_echo "$lt_cv_objdir" >&6; }
15687 objdir=$lt_cv_objdir
15693 cat >>confdefs.h <<_ACEOF
15694 #define LT_OBJDIR "$lt_cv_objdir/"
15695 _ACEOF
15700 case $host_os in
15701 aix3*)
15702 # AIX sometimes has problems with the GCC collect2 program. For some
15703 # reason, if we set the COLLECT_NAMES environment variable, the problems
15704 # vanish in a puff of smoke.
15705 if test "X${COLLECT_NAMES+set}" != Xset; then
15706 COLLECT_NAMES=
15707 export COLLECT_NAMES
15710 esac
15712 # Global variables:
15713 ofile=libtool
15714 can_build_shared=yes
15716 # All known linkers require a `.a' archive for static linking (except MSVC,
15717 # which needs '.lib').
15718 libext=a
15720 with_gnu_ld="$lt_cv_prog_gnu_ld"
15722 old_CC="$CC"
15723 old_CFLAGS="$CFLAGS"
15725 # Set sane defaults for various variables
15726 test -z "$CC" && CC=cc
15727 test -z "$LTCC" && LTCC=$CC
15728 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15729 test -z "$LD" && LD=ld
15730 test -z "$ac_objext" && ac_objext=o
15732 for cc_temp in $compiler""; do
15733 case $cc_temp in
15734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15736 \-*) ;;
15737 *) break;;
15738 esac
15739 done
15740 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15743 # Only perform the check for file, if the check method requires it
15744 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15745 case $deplibs_check_method in
15746 file_magic*)
15747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15749 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15750 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15751 $as_echo_n "(cached) " >&6
15752 else
15753 case $MAGIC_CMD in
15754 [\\/*] | ?:[\\/]*)
15755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15758 lt_save_MAGIC_CMD="$MAGIC_CMD"
15759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15761 for ac_dir in $ac_dummy; do
15762 IFS="$lt_save_ifs"
15763 test -z "$ac_dir" && ac_dir=.
15764 if test -f $ac_dir/${ac_tool_prefix}file; then
15765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15766 if test -n "$file_magic_test_file"; then
15767 case $deplibs_check_method in
15768 "file_magic "*)
15769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15772 $EGREP "$file_magic_regex" > /dev/null; then
15774 else
15775 cat <<_LT_EOF 1>&2
15777 *** Warning: the command libtool uses to detect shared libraries,
15778 *** $file_magic_cmd, produces output that libtool cannot recognize.
15779 *** The result is that libtool may fail to recognize shared libraries
15780 *** as such. This will affect the creation of libtool libraries that
15781 *** depend on shared libraries, but programs linked with such libtool
15782 *** libraries will work regardless of this problem. Nevertheless, you
15783 *** may want to report the problem to your system manager and/or to
15784 *** bug-libtool@gnu.org
15786 _LT_EOF
15787 fi ;;
15788 esac
15790 break
15792 done
15793 IFS="$lt_save_ifs"
15794 MAGIC_CMD="$lt_save_MAGIC_CMD"
15796 esac
15799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15800 if test -n "$MAGIC_CMD"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15802 $as_echo "$MAGIC_CMD" >&6; }
15803 else
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15805 $as_echo "no" >&6; }
15812 if test -z "$lt_cv_path_MAGIC_CMD"; then
15813 if test -n "$ac_tool_prefix"; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15815 $as_echo_n "checking for file... " >&6; }
15816 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 case $MAGIC_CMD in
15820 [\\/*] | ?:[\\/]*)
15821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15824 lt_save_MAGIC_CMD="$MAGIC_CMD"
15825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15827 for ac_dir in $ac_dummy; do
15828 IFS="$lt_save_ifs"
15829 test -z "$ac_dir" && ac_dir=.
15830 if test -f $ac_dir/file; then
15831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15832 if test -n "$file_magic_test_file"; then
15833 case $deplibs_check_method in
15834 "file_magic "*)
15835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15838 $EGREP "$file_magic_regex" > /dev/null; then
15840 else
15841 cat <<_LT_EOF 1>&2
15843 *** Warning: the command libtool uses to detect shared libraries,
15844 *** $file_magic_cmd, produces output that libtool cannot recognize.
15845 *** The result is that libtool may fail to recognize shared libraries
15846 *** as such. This will affect the creation of libtool libraries that
15847 *** depend on shared libraries, but programs linked with such libtool
15848 *** libraries will work regardless of this problem. Nevertheless, you
15849 *** may want to report the problem to your system manager and/or to
15850 *** bug-libtool@gnu.org
15852 _LT_EOF
15853 fi ;;
15854 esac
15856 break
15858 done
15859 IFS="$lt_save_ifs"
15860 MAGIC_CMD="$lt_save_MAGIC_CMD"
15862 esac
15865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15866 if test -n "$MAGIC_CMD"; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15868 $as_echo "$MAGIC_CMD" >&6; }
15869 else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871 $as_echo "no" >&6; }
15875 else
15876 MAGIC_CMD=:
15882 esac
15884 # Use C for the default configuration in the libtool script
15886 lt_save_CC="$CC"
15887 ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15894 # Source file extension for C test sources.
15895 ac_ext=c
15897 # Object file extension for compiled C test sources.
15898 objext=o
15899 objext=$objext
15901 # Code to be used in simple compile tests
15902 lt_simple_compile_test_code="int some_variable = 0;"
15904 # Code to be used in simple link tests
15905 lt_simple_link_test_code='int main(){return(0);}'
15913 # If no C compiler was specified, use CC.
15914 LTCC=${LTCC-"$CC"}
15916 # If no C compiler flags were specified, use CFLAGS.
15917 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15919 # Allow CC to be a program name with arguments.
15920 compiler=$CC
15922 # Save the default compiler, since it gets overwritten when the other
15923 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15924 compiler_DEFAULT=$CC
15926 # save warnings/boilerplate of simple test code
15927 ac_outfile=conftest.$ac_objext
15928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15930 _lt_compiler_boilerplate=`cat conftest.err`
15931 $RM conftest*
15933 ac_outfile=conftest.$ac_objext
15934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15936 _lt_linker_boilerplate=`cat conftest.err`
15937 $RM -r conftest*
15940 ## CAVEAT EMPTOR:
15941 ## There is no encapsulation within the following macros, do not change
15942 ## the running order or otherwise move them around unless you know exactly
15943 ## what you are doing...
15944 if test -n "$compiler"; then
15946 lt_prog_compiler_no_builtin_flag=
15948 if test "$GCC" = yes; then
15949 case $cc_basename in
15950 nvcc*)
15951 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15953 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15954 esac
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15957 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15958 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 lt_cv_prog_compiler_rtti_exceptions=no
15962 ac_outfile=conftest.$ac_objext
15963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15964 lt_compiler_flag="-fno-rtti -fno-exceptions"
15965 # Insert the option either (1) after the last *FLAGS variable, or
15966 # (2) before a word containing "conftest.", or (3) at the end.
15967 # Note that $ac_compile itself does not contain backslashes and begins
15968 # with a dollar sign (not a hyphen), so the echo should work correctly.
15969 # The option is referenced via a variable to avoid confusing sed.
15970 lt_compile=`echo "$ac_compile" | $SED \
15971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15973 -e 's:$: $lt_compiler_flag:'`
15974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15975 (eval "$lt_compile" 2>conftest.err)
15976 ac_status=$?
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 if (exit $ac_status) && test -s "$ac_outfile"; then
15980 # The compiler can only warn and ignore the option if not recognized
15981 # So say no if there are warnings other than the usual output.
15982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15985 lt_cv_prog_compiler_rtti_exceptions=yes
15988 $RM conftest*
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15992 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15994 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15995 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15996 else
16007 lt_prog_compiler_wl=
16008 lt_prog_compiler_pic=
16009 lt_prog_compiler_static=
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16014 if test "$GCC" = yes; then
16015 lt_prog_compiler_wl='-Wl,'
16016 lt_prog_compiler_static='-static'
16018 case $host_os in
16019 aix*)
16020 # All AIX code is PIC.
16021 if test "$host_cpu" = ia64; then
16022 # AIX 5 now supports IA64 processor
16023 lt_prog_compiler_static='-Bstatic'
16025 lt_prog_compiler_pic='-fPIC'
16028 amigaos*)
16029 case $host_cpu in
16030 powerpc)
16031 # see comment about AmigaOS4 .so support
16032 lt_prog_compiler_pic='-fPIC'
16034 m68k)
16035 # FIXME: we need at least 68020 code to build shared libraries, but
16036 # adding the `-m68020' flag to GCC prevents building anything better,
16037 # like `-m68040'.
16038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16040 esac
16043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16044 # PIC is the default for these OSes.
16047 mingw* | cygwin* | pw32* | os2* | cegcc*)
16048 # This hack is so that the source file can tell whether it is being
16049 # built for inclusion in a dll (and should export symbols for example).
16050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16051 # (--disable-auto-import) libraries
16052 lt_prog_compiler_pic='-DDLL_EXPORT'
16055 darwin* | rhapsody*)
16056 # PIC is the default on this platform
16057 # Common symbols not allowed in MH_DYLIB files
16058 lt_prog_compiler_pic='-fno-common'
16061 haiku*)
16062 # PIC is the default for Haiku.
16063 # The "-static" flag exists, but is broken.
16064 lt_prog_compiler_static=
16067 hpux*)
16068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16070 # sets the default TLS model and affects inlining.
16071 case $host_cpu in
16072 hppa*64*)
16073 # +Z the default
16076 lt_prog_compiler_pic='-fPIC'
16078 esac
16081 interix[3-9]*)
16082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16083 # Instead, we relocate shared libraries at runtime.
16086 msdosdjgpp*)
16087 # Just because we use GCC doesn't mean we suddenly get shared libraries
16088 # on systems that don't support them.
16089 lt_prog_compiler_can_build_shared=no
16090 enable_shared=no
16093 *nto* | *qnx*)
16094 # QNX uses GNU C++, but need to define -shared option too, otherwise
16095 # it will coredump.
16096 lt_prog_compiler_pic='-fPIC -shared'
16099 sysv4*MP*)
16100 if test -d /usr/nec; then
16101 lt_prog_compiler_pic=-Kconform_pic
16106 lt_prog_compiler_pic='-fPIC'
16108 esac
16110 case $cc_basename in
16111 nvcc*) # Cuda Compiler Driver 2.2
16112 lt_prog_compiler_wl='-Xlinker '
16113 lt_prog_compiler_pic='-Xcompiler -fPIC'
16115 esac
16116 else
16117 # PORTME Check for flag to pass linker flags through the system compiler.
16118 case $host_os in
16119 aix*)
16120 lt_prog_compiler_wl='-Wl,'
16121 if test "$host_cpu" = ia64; then
16122 # AIX 5 now supports IA64 processor
16123 lt_prog_compiler_static='-Bstatic'
16124 else
16125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16129 mingw* | cygwin* | pw32* | os2* | cegcc*)
16130 # This hack is so that the source file can tell whether it is being
16131 # built for inclusion in a dll (and should export symbols for example).
16132 lt_prog_compiler_pic='-DDLL_EXPORT'
16135 hpux9* | hpux10* | hpux11*)
16136 lt_prog_compiler_wl='-Wl,'
16137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16138 # not for PA HP-UX.
16139 case $host_cpu in
16140 hppa*64*|ia64*)
16141 # +Z the default
16144 lt_prog_compiler_pic='+Z'
16146 esac
16147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16148 lt_prog_compiler_static='${wl}-a ${wl}archive'
16151 irix5* | irix6* | nonstopux*)
16152 lt_prog_compiler_wl='-Wl,'
16153 # PIC (with -KPIC) is the default.
16154 lt_prog_compiler_static='-non_shared'
16157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16158 case $cc_basename in
16159 # old Intel for x86_64 which still supported -KPIC.
16160 ecc*)
16161 lt_prog_compiler_wl='-Wl,'
16162 lt_prog_compiler_pic='-KPIC'
16163 lt_prog_compiler_static='-static'
16165 # icc used to be incompatible with GCC.
16166 # ICC 10 doesn't accept -KPIC any more.
16167 icc* | ifort*)
16168 lt_prog_compiler_wl='-Wl,'
16169 lt_prog_compiler_pic='-fPIC'
16170 lt_prog_compiler_static='-static'
16172 # Lahey Fortran 8.1.
16173 lf95*)
16174 lt_prog_compiler_wl='-Wl,'
16175 lt_prog_compiler_pic='--shared'
16176 lt_prog_compiler_static='--static'
16178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16179 # Portland Group compilers (*not* the Pentium gcc compiler,
16180 # which looks to be a dead project)
16181 lt_prog_compiler_wl='-Wl,'
16182 lt_prog_compiler_pic='-fpic'
16183 lt_prog_compiler_static='-Bstatic'
16185 ccc*)
16186 lt_prog_compiler_wl='-Wl,'
16187 # All Alpha code is PIC.
16188 lt_prog_compiler_static='-non_shared'
16190 xl* | bgxl* | bgf* | mpixl*)
16191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16192 lt_prog_compiler_wl='-Wl,'
16193 lt_prog_compiler_pic='-qpic'
16194 lt_prog_compiler_static='-qstaticlink'
16197 case `$CC -V 2>&1 | sed 5q` in
16198 *Sun\ F* | *Sun*Fortran*)
16199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16200 lt_prog_compiler_pic='-KPIC'
16201 lt_prog_compiler_static='-Bstatic'
16202 lt_prog_compiler_wl=''
16204 *Sun\ C*)
16205 # Sun C 5.9
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-Bstatic'
16208 lt_prog_compiler_wl='-Wl,'
16210 esac
16212 esac
16215 newsos6)
16216 lt_prog_compiler_pic='-KPIC'
16217 lt_prog_compiler_static='-Bstatic'
16220 *nto* | *qnx*)
16221 # QNX uses GNU C++, but need to define -shared option too, otherwise
16222 # it will coredump.
16223 lt_prog_compiler_pic='-fPIC -shared'
16226 osf3* | osf4* | osf5*)
16227 lt_prog_compiler_wl='-Wl,'
16228 # All OSF/1 code is PIC.
16229 lt_prog_compiler_static='-non_shared'
16232 rdos*)
16233 lt_prog_compiler_static='-non_shared'
16236 solaris*)
16237 lt_prog_compiler_pic='-KPIC'
16238 lt_prog_compiler_static='-Bstatic'
16239 case $cc_basename in
16240 f77* | f90* | f95*)
16241 lt_prog_compiler_wl='-Qoption ld ';;
16243 lt_prog_compiler_wl='-Wl,';;
16244 esac
16247 sunos4*)
16248 lt_prog_compiler_wl='-Qoption ld '
16249 lt_prog_compiler_pic='-PIC'
16250 lt_prog_compiler_static='-Bstatic'
16253 sysv4 | sysv4.2uw2* | sysv4.3*)
16254 lt_prog_compiler_wl='-Wl,'
16255 lt_prog_compiler_pic='-KPIC'
16256 lt_prog_compiler_static='-Bstatic'
16259 sysv4*MP*)
16260 if test -d /usr/nec ;then
16261 lt_prog_compiler_pic='-Kconform_pic'
16262 lt_prog_compiler_static='-Bstatic'
16266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16267 lt_prog_compiler_wl='-Wl,'
16268 lt_prog_compiler_pic='-KPIC'
16269 lt_prog_compiler_static='-Bstatic'
16272 unicos*)
16273 lt_prog_compiler_wl='-Wl,'
16274 lt_prog_compiler_can_build_shared=no
16277 uts4*)
16278 lt_prog_compiler_pic='-pic'
16279 lt_prog_compiler_static='-Bstatic'
16283 lt_prog_compiler_can_build_shared=no
16285 esac
16288 case $host_os in
16289 # For platforms which do not support PIC, -DPIC is meaningless:
16290 *djgpp*)
16291 lt_prog_compiler_pic=
16294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16296 esac
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
16298 $as_echo "$lt_prog_compiler_pic" >&6; }
16306 # Check to make sure the PIC flag actually works.
16308 if test -n "$lt_prog_compiler_pic"; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16311 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16312 $as_echo_n "(cached) " >&6
16313 else
16314 lt_cv_prog_compiler_pic_works=no
16315 ac_outfile=conftest.$ac_objext
16316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16318 # Insert the option either (1) after the last *FLAGS variable, or
16319 # (2) before a word containing "conftest.", or (3) at the end.
16320 # Note that $ac_compile itself does not contain backslashes and begins
16321 # with a dollar sign (not a hyphen), so the echo should work correctly.
16322 # The option is referenced via a variable to avoid confusing sed.
16323 lt_compile=`echo "$ac_compile" | $SED \
16324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16326 -e 's:$: $lt_compiler_flag:'`
16327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16328 (eval "$lt_compile" 2>conftest.err)
16329 ac_status=$?
16330 cat conftest.err >&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 if (exit $ac_status) && test -s "$ac_outfile"; then
16333 # The compiler can only warn and ignore the option if not recognized
16334 # So say no if there are warnings other than the usual output.
16335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16338 lt_cv_prog_compiler_pic_works=yes
16341 $RM conftest*
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16347 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16348 case $lt_prog_compiler_pic in
16349 "" | " "*) ;;
16350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16351 esac
16352 else
16353 lt_prog_compiler_pic=
16354 lt_prog_compiler_can_build_shared=no
16365 # Check to make sure the static flag actually works.
16367 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16370 if ${lt_cv_prog_compiler_static_works+:} false; then :
16371 $as_echo_n "(cached) " >&6
16372 else
16373 lt_cv_prog_compiler_static_works=no
16374 save_LDFLAGS="$LDFLAGS"
16375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16378 # The linker can only warn and ignore the option if not recognized
16379 # So say no if there are warnings
16380 if test -s conftest.err; then
16381 # Append any errors to the config.log.
16382 cat conftest.err 1>&5
16383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16385 if diff conftest.exp conftest.er2 >/dev/null; then
16386 lt_cv_prog_compiler_static_works=yes
16388 else
16389 lt_cv_prog_compiler_static_works=yes
16392 $RM -r conftest*
16393 LDFLAGS="$save_LDFLAGS"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16397 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16399 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16401 else
16402 lt_prog_compiler_static=
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16412 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16413 if ${lt_cv_prog_compiler_c_o+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 lt_cv_prog_compiler_c_o=no
16417 $RM -r conftest 2>/dev/null
16418 mkdir conftest
16419 cd conftest
16420 mkdir out
16421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16423 lt_compiler_flag="-o out/conftest2.$ac_objext"
16424 # Insert the option either (1) after the last *FLAGS variable, or
16425 # (2) before a word containing "conftest.", or (3) at the end.
16426 # Note that $ac_compile itself does not contain backslashes and begins
16427 # with a dollar sign (not a hyphen), so the echo should work correctly.
16428 lt_compile=`echo "$ac_compile" | $SED \
16429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16431 -e 's:$: $lt_compiler_flag:'`
16432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16433 (eval "$lt_compile" 2>out/conftest.err)
16434 ac_status=$?
16435 cat out/conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16438 then
16439 # The compiler can only warn and ignore the option if not recognized
16440 # So say no if there are warnings
16441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16444 lt_cv_prog_compiler_c_o=yes
16447 chmod u+w . 2>&5
16448 $RM conftest*
16449 # SGI C++ compiler will create directory out/ii_files/ for
16450 # template instantiation
16451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16452 $RM out/* && rmdir out
16453 cd ..
16454 $RM -r conftest
16455 $RM conftest*
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16459 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16467 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16468 if ${lt_cv_prog_compiler_c_o+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 lt_cv_prog_compiler_c_o=no
16472 $RM -r conftest 2>/dev/null
16473 mkdir conftest
16474 cd conftest
16475 mkdir out
16476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16478 lt_compiler_flag="-o out/conftest2.$ac_objext"
16479 # Insert the option either (1) after the last *FLAGS variable, or
16480 # (2) before a word containing "conftest.", or (3) at the end.
16481 # Note that $ac_compile itself does not contain backslashes and begins
16482 # with a dollar sign (not a hyphen), so the echo should work correctly.
16483 lt_compile=`echo "$ac_compile" | $SED \
16484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16486 -e 's:$: $lt_compiler_flag:'`
16487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16488 (eval "$lt_compile" 2>out/conftest.err)
16489 ac_status=$?
16490 cat out/conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16493 then
16494 # The compiler can only warn and ignore the option if not recognized
16495 # So say no if there are warnings
16496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16499 lt_cv_prog_compiler_c_o=yes
16502 chmod u+w . 2>&5
16503 $RM conftest*
16504 # SGI C++ compiler will create directory out/ii_files/ for
16505 # template instantiation
16506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16507 $RM out/* && rmdir out
16508 cd ..
16509 $RM -r conftest
16510 $RM conftest*
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16514 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16519 hard_links="nottested"
16520 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16521 # do not overwrite the value of need_locks provided by the user
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16523 $as_echo_n "checking if we can lock with hard links... " >&6; }
16524 hard_links=yes
16525 $RM conftest*
16526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16527 touch conftest.a
16528 ln conftest.a conftest.b 2>&5 || hard_links=no
16529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16531 $as_echo "$hard_links" >&6; }
16532 if test "$hard_links" = no; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16534 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16535 need_locks=warn
16537 else
16538 need_locks=no
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16549 runpath_var=
16550 allow_undefined_flag=
16551 always_export_symbols=no
16552 archive_cmds=
16553 archive_expsym_cmds=
16554 compiler_needs_object=no
16555 enable_shared_with_static_runtimes=no
16556 export_dynamic_flag_spec=
16557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16558 hardcode_automatic=no
16559 hardcode_direct=no
16560 hardcode_direct_absolute=no
16561 hardcode_libdir_flag_spec=
16562 hardcode_libdir_flag_spec_ld=
16563 hardcode_libdir_separator=
16564 hardcode_minus_L=no
16565 hardcode_shlibpath_var=unsupported
16566 inherit_rpath=no
16567 link_all_deplibs=unknown
16568 module_cmds=
16569 module_expsym_cmds=
16570 old_archive_from_new_cmds=
16571 old_archive_from_expsyms_cmds=
16572 thread_safe_flag_spec=
16573 whole_archive_flag_spec=
16574 # include_expsyms should be a list of space-separated symbols to be *always*
16575 # included in the symbol list
16576 include_expsyms=
16577 # exclude_expsyms can be an extended regexp of symbols to exclude
16578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16580 # as well as any symbol that contains `d'.
16581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16583 # platforms (ab)use it in PIC code, but their linkers get confused if
16584 # the symbol is explicitly referenced. Since portable code cannot
16585 # rely on this symbol name, it's probably fine to never include it in
16586 # preloaded symbol tables.
16587 # Exclude shared library initialization/finalization symbols.
16588 extract_expsyms_cmds=
16590 case $host_os in
16591 cygwin* | mingw* | pw32* | cegcc*)
16592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16593 # When not using gcc, we currently assume that we are using
16594 # Microsoft Visual C++.
16595 if test "$GCC" != yes; then
16596 with_gnu_ld=no
16599 interix*)
16600 # we just hope/assume this is gcc and not c89 (= MSVC++)
16601 with_gnu_ld=yes
16603 openbsd*)
16604 with_gnu_ld=no
16606 esac
16608 ld_shlibs=yes
16610 # On some targets, GNU ld is compatible enough with the native linker
16611 # that we're better off using the native interface for both.
16612 lt_use_gnu_ld_interface=no
16613 if test "$with_gnu_ld" = yes; then
16614 case $host_os in
16615 aix*)
16616 # The AIX port of GNU ld has always aspired to compatibility
16617 # with the native linker. However, as the warning in the GNU ld
16618 # block says, versions before 2.19.5* couldn't really create working
16619 # shared libraries, regardless of the interface used.
16620 case `$LD -v 2>&1` in
16621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16625 lt_use_gnu_ld_interface=yes
16627 esac
16630 lt_use_gnu_ld_interface=yes
16632 esac
16635 if test "$lt_use_gnu_ld_interface" = yes; then
16636 # If archive_cmds runs LD, not CC, wlarc should be empty
16637 wlarc='${wl}'
16639 # Set some defaults for GNU ld with shared library support. These
16640 # are reset later if shared libraries are not supported. Putting them
16641 # here allows them to be overridden if necessary.
16642 runpath_var=LD_RUN_PATH
16643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16644 export_dynamic_flag_spec='${wl}--export-dynamic'
16645 # ancient GNU ld didn't support --whole-archive et. al.
16646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16648 else
16649 whole_archive_flag_spec=
16651 supports_anon_versioning=no
16652 case `$LD -v 2>&1` in
16653 *GNU\ gold*) supports_anon_versioning=yes ;;
16654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16657 *\ 2.11.*) ;; # other 2.11 versions
16658 *) supports_anon_versioning=yes ;;
16659 esac
16661 # See if GNU ld supports shared libraries.
16662 case $host_os in
16663 aix[3-9]*)
16664 # On AIX/PPC, the GNU linker is very broken
16665 if test "$host_cpu" != ia64; then
16666 ld_shlibs=no
16667 cat <<_LT_EOF 1>&2
16669 *** Warning: the GNU linker, at least up to release 2.19, is reported
16670 *** to be unable to reliably create shared libraries on AIX.
16671 *** Therefore, libtool is disabling shared libraries support. If you
16672 *** really care for shared libraries, you may want to install binutils
16673 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16674 *** You will then need to restart the configuration process.
16676 _LT_EOF
16680 amigaos*)
16681 case $host_cpu in
16682 powerpc)
16683 # see comment about AmigaOS4 .so support
16684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16685 archive_expsym_cmds=''
16687 m68k)
16688 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)'
16689 hardcode_libdir_flag_spec='-L$libdir'
16690 hardcode_minus_L=yes
16692 esac
16695 beos*)
16696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16697 allow_undefined_flag=unsupported
16698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16699 # support --undefined. This deserves some investigation. FIXME
16700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16701 else
16702 ld_shlibs=no
16706 cygwin* | mingw* | pw32* | cegcc*)
16707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16708 # as there is no search path for DLLs.
16709 hardcode_libdir_flag_spec='-L$libdir'
16710 export_dynamic_flag_spec='${wl}--export-all-symbols'
16711 allow_undefined_flag=unsupported
16712 always_export_symbols=no
16713 enable_shared_with_static_runtimes=yes
16714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16718 # If the export-symbols file already is a .def file (1st line
16719 # is EXPORTS), use it as is; otherwise, prepend...
16720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16721 cp $export_symbols $output_objdir/$soname.def;
16722 else
16723 echo EXPORTS > $output_objdir/$soname.def;
16724 cat $export_symbols >> $output_objdir/$soname.def;
16726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16727 else
16728 ld_shlibs=no
16732 haiku*)
16733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16734 link_all_deplibs=yes
16737 interix[3-9]*)
16738 hardcode_direct=no
16739 hardcode_shlibpath_var=no
16740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16741 export_dynamic_flag_spec='${wl}-E'
16742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16743 # Instead, shared libraries are loaded at an image base (0x10000000 by
16744 # default) and relocated if they conflict, which is a slow very memory
16745 # consuming and fragmenting process. To avoid this, we pick a random,
16746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16749 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'
16752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16753 tmp_diet=no
16754 if test "$host_os" = linux-dietlibc; then
16755 case $cc_basename in
16756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16757 esac
16759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16760 && test "$tmp_diet" = no
16761 then
16762 tmp_addflag=' $pic_flag'
16763 tmp_sharedflag='-shared'
16764 case $cc_basename,$host_cpu in
16765 pgcc*) # Portland Group C compiler
16766 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'
16767 tmp_addflag=' $pic_flag'
16769 pgf77* | pgf90* | pgf95* | pgfortran*)
16770 # Portland Group f77 and f90 compilers
16771 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'
16772 tmp_addflag=' $pic_flag -Mnomain' ;;
16773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16774 tmp_addflag=' -i_dynamic' ;;
16775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16776 tmp_addflag=' -i_dynamic -nofor_main' ;;
16777 ifc* | ifort*) # Intel Fortran compiler
16778 tmp_addflag=' -nofor_main' ;;
16779 lf95*) # Lahey Fortran 8.1
16780 whole_archive_flag_spec=
16781 tmp_sharedflag='--shared' ;;
16782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16783 tmp_sharedflag='-qmkshrobj'
16784 tmp_addflag= ;;
16785 nvcc*) # Cuda Compiler Driver 2.2
16786 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'
16787 compiler_needs_object=yes
16789 esac
16790 case `$CC -V 2>&1 | sed 5q` in
16791 *Sun\ C*) # Sun C 5.9
16792 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'
16793 compiler_needs_object=yes
16794 tmp_sharedflag='-G' ;;
16795 *Sun\ F*) # Sun Fortran 8.3
16796 tmp_sharedflag='-G' ;;
16797 esac
16798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16800 if test "x$supports_anon_versioning" = xyes; then
16801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16803 echo "local: *; };" >> $output_objdir/$libname.ver~
16804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16807 case $cc_basename in
16808 xlf* | bgf* | bgxlf* | mpixlf*)
16809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16811 hardcode_libdir_flag_spec=
16812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16814 if test "x$supports_anon_versioning" = xyes; then
16815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16817 echo "local: *; };" >> $output_objdir/$libname.ver~
16818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16821 esac
16822 else
16823 ld_shlibs=no
16827 netbsd*)
16828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16830 wlarc=
16831 else
16832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16837 solaris*)
16838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16839 ld_shlibs=no
16840 cat <<_LT_EOF 1>&2
16842 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16843 *** create shared libraries on Solaris systems. Therefore, libtool
16844 *** is disabling shared libraries support. We urge you to upgrade GNU
16845 *** binutils to release 2.9.1 or newer. Another option is to modify
16846 *** your PATH or compiler configuration so that the native linker is
16847 *** used, and then restart.
16849 _LT_EOF
16850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16853 else
16854 ld_shlibs=no
16858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16859 case `$LD -v 2>&1` in
16860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16861 ld_shlibs=no
16862 cat <<_LT_EOF 1>&2
16864 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16865 *** reliably create shared libraries on SCO systems. Therefore, libtool
16866 *** is disabling shared libraries support. We urge you to upgrade GNU
16867 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16868 *** your PATH or compiler configuration so that the native linker is
16869 *** used, and then restart.
16871 _LT_EOF
16874 # For security reasons, it is highly recommended that you always
16875 # use absolute paths for naming shared libraries, and exclude the
16876 # DT_RUNPATH tag from executables and libraries. But doing so
16877 # requires that you compile everything twice, which is a pain.
16878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882 else
16883 ld_shlibs=no
16886 esac
16889 sunos4*)
16890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16891 wlarc=
16892 hardcode_direct=yes
16893 hardcode_shlibpath_var=no
16897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16900 else
16901 ld_shlibs=no
16904 esac
16906 if test "$ld_shlibs" = no; then
16907 runpath_var=
16908 hardcode_libdir_flag_spec=
16909 export_dynamic_flag_spec=
16910 whole_archive_flag_spec=
16912 else
16913 # PORTME fill in a description of your system's linker (not GNU ld)
16914 case $host_os in
16915 aix3*)
16916 allow_undefined_flag=unsupported
16917 always_export_symbols=yes
16918 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'
16919 # Note: this linker hardcodes the directories in LIBPATH if there
16920 # are no directories specified by -L.
16921 hardcode_minus_L=yes
16922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16923 # Neither direct hardcoding nor static linking is supported with a
16924 # broken collect2.
16925 hardcode_direct=unsupported
16929 aix[4-9]*)
16930 if test "$host_cpu" = ia64; then
16931 # On IA64, the linker does run time linking by default, so we don't
16932 # have to do anything special.
16933 aix_use_runtimelinking=no
16934 exp_sym_flag='-Bexport'
16935 no_entry_flag=""
16936 else
16937 # If we're using GNU nm, then we don't want the "-C" option.
16938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16939 # Also, AIX nm treats weak defined symbols like other global
16940 # defined symbols, whereas GNU nm marks them as "W".
16941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16942 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'
16943 else
16944 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'
16946 aix_use_runtimelinking=no
16948 # Test if we are trying to use run time linking or normal
16949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16950 # need to do runtime linking.
16951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16952 for ld_flag in $LDFLAGS; do
16953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16954 aix_use_runtimelinking=yes
16955 break
16957 done
16959 esac
16961 exp_sym_flag='-bexport'
16962 no_entry_flag='-bnoentry'
16965 # When large executables or shared objects are built, AIX ld can
16966 # have problems creating the table of contents. If linking a library
16967 # or program results in "error TOC overflow" add -mminimal-toc to
16968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16971 archive_cmds=''
16972 hardcode_direct=yes
16973 hardcode_direct_absolute=yes
16974 hardcode_libdir_separator=':'
16975 link_all_deplibs=yes
16976 file_list_spec='${wl}-f,'
16978 if test "$GCC" = yes; then
16979 case $host_os in aix4.[012]|aix4.[012].*)
16980 # We only want to do this on AIX 4.2 and lower, the check
16981 # below for broken collect2 doesn't work under 4.3+
16982 collect2name=`${CC} -print-prog-name=collect2`
16983 if test -f "$collect2name" &&
16984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16985 then
16986 # We have reworked collect2
16988 else
16989 # We have old collect2
16990 hardcode_direct=unsupported
16991 # It fails to find uninstalled libraries when the uninstalled
16992 # path is not listed in the libpath. Setting hardcode_minus_L
16993 # to unsupported forces relinking
16994 hardcode_minus_L=yes
16995 hardcode_libdir_flag_spec='-L$libdir'
16996 hardcode_libdir_separator=
16999 esac
17000 shared_flag='-shared'
17001 if test "$aix_use_runtimelinking" = yes; then
17002 shared_flag="$shared_flag "'${wl}-G'
17004 else
17005 # not using gcc
17006 if test "$host_cpu" = ia64; then
17007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17008 # chokes on -Wl,-G. The following line is correct:
17009 shared_flag='-G'
17010 else
17011 if test "$aix_use_runtimelinking" = yes; then
17012 shared_flag='${wl}-G'
17013 else
17014 shared_flag='${wl}-bM:SRE'
17019 export_dynamic_flag_spec='${wl}-bexpall'
17020 # It seems that -bexpall does not export symbols beginning with
17021 # underscore (_), so it is better to generate a list of symbols to export.
17022 always_export_symbols=yes
17023 if test "$aix_use_runtimelinking" = yes; then
17024 # Warning - without using the other runtime loading flags (-brtl),
17025 # -berok will link without error, but may produce a broken library.
17026 allow_undefined_flag='-berok'
17027 # Determine the default libpath from the value encoded in an
17028 # empty executable.
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17033 main ()
17037 return 0;
17039 _ACEOF
17040 if ac_fn_c_try_link "$LINENO"; then :
17042 lt_aix_libpath_sed='
17043 /Import File Strings/,/^$/ {
17044 /^0/ {
17045 s/^0 *\(.*\)$/\1/
17049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17050 # Check for a 64-bit object if we didn't find anything.
17051 if test -z "$aix_libpath"; then
17052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17055 rm -f core conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17060 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"
17061 else
17062 if test "$host_cpu" = ia64; then
17063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17064 allow_undefined_flag="-z nodefs"
17065 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"
17066 else
17067 # Determine the default libpath from the value encoded in an
17068 # empty executable.
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17073 main ()
17077 return 0;
17079 _ACEOF
17080 if ac_fn_c_try_link "$LINENO"; then :
17082 lt_aix_libpath_sed='
17083 /Import File Strings/,/^$/ {
17084 /^0/ {
17085 s/^0 *\(.*\)$/\1/
17089 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17090 # Check for a 64-bit object if we didn't find anything.
17091 if test -z "$aix_libpath"; then
17092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17100 # Warning - without using the other run time loading flags,
17101 # -berok will link without error, but may produce a broken library.
17102 no_undefined_flag=' ${wl}-bernotok'
17103 allow_undefined_flag=' ${wl}-berok'
17104 if test "$with_gnu_ld" = yes; then
17105 # We only use this code for GNU lds that support --whole-archive.
17106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17107 else
17108 # Exported symbols can be pulled into shared objects from archives
17109 whole_archive_flag_spec='$convenience'
17111 archive_cmds_need_lc=yes
17112 # This is similar to how AIX traditionally builds its shared libraries.
17113 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'
17118 amigaos*)
17119 case $host_cpu in
17120 powerpc)
17121 # see comment about AmigaOS4 .so support
17122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 archive_expsym_cmds=''
17125 m68k)
17126 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)'
17127 hardcode_libdir_flag_spec='-L$libdir'
17128 hardcode_minus_L=yes
17130 esac
17133 bsdi[45]*)
17134 export_dynamic_flag_spec=-rdynamic
17137 cygwin* | mingw* | pw32* | cegcc*)
17138 # When not using gcc, we currently assume that we are using
17139 # Microsoft Visual C++.
17140 # hardcode_libdir_flag_spec is actually meaningless, as there is
17141 # no search path for DLLs.
17142 hardcode_libdir_flag_spec=' '
17143 allow_undefined_flag=unsupported
17144 # Tell ltmain to make .lib files, not .a files.
17145 libext=lib
17146 # Tell ltmain to make .dll files, not .so files.
17147 shrext_cmds=".dll"
17148 # FIXME: Setting linknames here is a bad hack.
17149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17150 # The linker will automatically build a .lib file if we build a DLL.
17151 old_archive_from_new_cmds='true'
17152 # FIXME: Should let the user specify the lib program.
17153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17154 fix_srcfile_path='`cygpath -w "$srcfile"`'
17155 enable_shared_with_static_runtimes=yes
17158 darwin* | rhapsody*)
17161 archive_cmds_need_lc=no
17162 hardcode_direct=no
17163 hardcode_automatic=yes
17164 hardcode_shlibpath_var=unsupported
17165 if test "$lt_cv_ld_force_load" = "yes"; then
17166 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\"`'
17167 else
17168 whole_archive_flag_spec=''
17170 link_all_deplibs=yes
17171 allow_undefined_flag="$_lt_dar_allow_undefined"
17172 case $cc_basename in
17173 ifort*) _lt_dar_can_shared=yes ;;
17174 *) _lt_dar_can_shared=$GCC ;;
17175 esac
17176 if test "$_lt_dar_can_shared" = "yes"; then
17177 output_verbose_link_cmd=func_echo_all
17178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17180 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}"
17181 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}"
17183 else
17184 ld_shlibs=no
17189 dgux*)
17190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17191 hardcode_libdir_flag_spec='-L$libdir'
17192 hardcode_shlibpath_var=no
17195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17196 # support. Future versions do this automatically, but an explicit c++rt0.o
17197 # does not break anything, and helps significantly (at the cost of a little
17198 # extra space).
17199 freebsd2.2*)
17200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17201 hardcode_libdir_flag_spec='-R$libdir'
17202 hardcode_direct=yes
17203 hardcode_shlibpath_var=no
17206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17207 freebsd2.*)
17208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17209 hardcode_direct=yes
17210 hardcode_minus_L=yes
17211 hardcode_shlibpath_var=no
17214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17215 freebsd* | dragonfly*)
17216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17217 hardcode_libdir_flag_spec='-R$libdir'
17218 hardcode_direct=yes
17219 hardcode_shlibpath_var=no
17222 hpux9*)
17223 if test "$GCC" = yes; then
17224 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'
17225 else
17226 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'
17228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17229 hardcode_libdir_separator=:
17230 hardcode_direct=yes
17232 # hardcode_minus_L: Not really in the search PATH,
17233 # but as the default location of the library.
17234 hardcode_minus_L=yes
17235 export_dynamic_flag_spec='${wl}-E'
17238 hpux10*)
17239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17241 else
17242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17244 if test "$with_gnu_ld" = no; then
17245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17246 hardcode_libdir_flag_spec_ld='+b $libdir'
17247 hardcode_libdir_separator=:
17248 hardcode_direct=yes
17249 hardcode_direct_absolute=yes
17250 export_dynamic_flag_spec='${wl}-E'
17251 # hardcode_minus_L: Not really in the search PATH,
17252 # but as the default location of the library.
17253 hardcode_minus_L=yes
17257 hpux11*)
17258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17259 case $host_cpu in
17260 hppa*64*)
17261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17263 ia64*)
17264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17269 esac
17270 else
17271 case $host_cpu in
17272 hppa*64*)
17273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17275 ia64*)
17276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17280 # Older versions of the 11.00 compiler do not understand -b yet
17281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17283 $as_echo_n "checking if $CC understands -b... " >&6; }
17284 if ${lt_cv_prog_compiler__b+:} false; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 lt_cv_prog_compiler__b=no
17288 save_LDFLAGS="$LDFLAGS"
17289 LDFLAGS="$LDFLAGS -b"
17290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17292 # The linker can only warn and ignore the option if not recognized
17293 # So say no if there are warnings
17294 if test -s conftest.err; then
17295 # Append any errors to the config.log.
17296 cat conftest.err 1>&5
17297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17299 if diff conftest.exp conftest.er2 >/dev/null; then
17300 lt_cv_prog_compiler__b=yes
17302 else
17303 lt_cv_prog_compiler__b=yes
17306 $RM -r conftest*
17307 LDFLAGS="$save_LDFLAGS"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17311 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17313 if test x"$lt_cv_prog_compiler__b" = xyes; then
17314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17315 else
17316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17320 esac
17322 if test "$with_gnu_ld" = no; then
17323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17324 hardcode_libdir_separator=:
17326 case $host_cpu in
17327 hppa*64*|ia64*)
17328 hardcode_direct=no
17329 hardcode_shlibpath_var=no
17332 hardcode_direct=yes
17333 hardcode_direct_absolute=yes
17334 export_dynamic_flag_spec='${wl}-E'
17336 # hardcode_minus_L: Not really in the search PATH,
17337 # but as the default location of the library.
17338 hardcode_minus_L=yes
17340 esac
17344 irix5* | irix6* | nonstopux*)
17345 if test "$GCC" = yes; then
17346 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'
17347 # Try to use the -exported_symbol ld option, if it does not
17348 # work, assume that -exports_file does not work either and
17349 # implicitly export all symbols.
17350 save_LDFLAGS="$LDFLAGS"
17351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354 int foo(void) {}
17355 _ACEOF
17356 if ac_fn_c_try_link "$LINENO"; then :
17357 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'
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 LDFLAGS="$save_LDFLAGS"
17363 else
17364 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'
17365 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'
17367 archive_cmds_need_lc='no'
17368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17369 hardcode_libdir_separator=:
17370 inherit_rpath=yes
17371 link_all_deplibs=yes
17374 netbsd*)
17375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17377 else
17378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17380 hardcode_libdir_flag_spec='-R$libdir'
17381 hardcode_direct=yes
17382 hardcode_shlibpath_var=no
17385 newsos6)
17386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 hardcode_direct=yes
17388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17389 hardcode_libdir_separator=:
17390 hardcode_shlibpath_var=no
17393 *nto* | *qnx*)
17396 openbsd*)
17397 if test -f /usr/libexec/ld.so; then
17398 hardcode_direct=yes
17399 hardcode_shlibpath_var=no
17400 hardcode_direct_absolute=yes
17401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17405 export_dynamic_flag_spec='${wl}-E'
17406 else
17407 case $host_os in
17408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17410 hardcode_libdir_flag_spec='-R$libdir'
17413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17416 esac
17418 else
17419 ld_shlibs=no
17423 os2*)
17424 hardcode_libdir_flag_spec='-L$libdir'
17425 hardcode_minus_L=yes
17426 allow_undefined_flag=unsupported
17427 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'
17428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17431 osf3*)
17432 if test "$GCC" = yes; then
17433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17434 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'
17435 else
17436 allow_undefined_flag=' -expect_unresolved \*'
17437 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'
17439 archive_cmds_need_lc='no'
17440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17441 hardcode_libdir_separator=:
17444 osf4* | osf5*) # as osf3* with the addition of -msym flag
17445 if test "$GCC" = yes; then
17446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17447 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'
17448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17449 else
17450 allow_undefined_flag=' -expect_unresolved \*'
17451 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'
17452 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~
17453 $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'
17455 # Both c and cxx compiler support -rpath directly
17456 hardcode_libdir_flag_spec='-rpath $libdir'
17458 archive_cmds_need_lc='no'
17459 hardcode_libdir_separator=:
17462 solaris*)
17463 no_undefined_flag=' -z defs'
17464 if test "$GCC" = yes; then
17465 wlarc='${wl}'
17466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17468 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17469 else
17470 case `$CC -V 2>&1` in
17471 *"Compilers 5.0"*)
17472 wlarc=''
17473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17478 wlarc='${wl}'
17479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17483 esac
17485 hardcode_libdir_flag_spec='-R$libdir'
17486 hardcode_shlibpath_var=no
17487 case $host_os in
17488 solaris2.[0-5] | solaris2.[0-5].*) ;;
17490 # The compiler driver will combine and reorder linker options,
17491 # but understands `-z linker_flag'. GCC discards it without `$wl',
17492 # but is careful enough not to reorder.
17493 # Supported since Solaris 2.6 (maybe 2.5.1?)
17494 if test "$GCC" = yes; then
17495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17496 else
17497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17500 esac
17501 link_all_deplibs=yes
17504 sunos4*)
17505 if test "x$host_vendor" = xsequent; then
17506 # Use $CC to link under sequent, because it throws in some extra .o
17507 # files that make .init and .fini sections work.
17508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17509 else
17510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17512 hardcode_libdir_flag_spec='-L$libdir'
17513 hardcode_direct=yes
17514 hardcode_minus_L=yes
17515 hardcode_shlibpath_var=no
17518 sysv4)
17519 case $host_vendor in
17520 sni)
17521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17522 hardcode_direct=yes # is this really true???
17524 siemens)
17525 ## LD is ld it makes a PLAMLIB
17526 ## CC just makes a GrossModule.
17527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17528 reload_cmds='$CC -r -o $output$reload_objs'
17529 hardcode_direct=no
17531 motorola)
17532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17535 esac
17536 runpath_var='LD_RUN_PATH'
17537 hardcode_shlibpath_var=no
17540 sysv4.3*)
17541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17542 hardcode_shlibpath_var=no
17543 export_dynamic_flag_spec='-Bexport'
17546 sysv4*MP*)
17547 if test -d /usr/nec; then
17548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_shlibpath_var=no
17550 runpath_var=LD_RUN_PATH
17551 hardcode_runpath_var=yes
17552 ld_shlibs=yes
17556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17557 no_undefined_flag='${wl}-z,text'
17558 archive_cmds_need_lc=no
17559 hardcode_shlibpath_var=no
17560 runpath_var='LD_RUN_PATH'
17562 if test "$GCC" = yes; then
17563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565 else
17566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17571 sysv5* | sco3.2v5* | sco5v6*)
17572 # Note: We can NOT use -z defs as we might desire, because we do not
17573 # link with -lc, and that would cause any symbols used from libc to
17574 # always be unresolved, which means just about no library would
17575 # ever link correctly. If we're not using GNU ld we use -z text
17576 # though, which does catch some bad symbols but isn't as heavy-handed
17577 # as -z defs.
17578 no_undefined_flag='${wl}-z,text'
17579 allow_undefined_flag='${wl}-z,nodefs'
17580 archive_cmds_need_lc=no
17581 hardcode_shlibpath_var=no
17582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17583 hardcode_libdir_separator=':'
17584 link_all_deplibs=yes
17585 export_dynamic_flag_spec='${wl}-Bexport'
17586 runpath_var='LD_RUN_PATH'
17588 if test "$GCC" = yes; then
17589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 else
17592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17597 uts4*)
17598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_libdir_flag_spec='-L$libdir'
17600 hardcode_shlibpath_var=no
17604 ld_shlibs=no
17606 esac
17608 if test x$host_vendor = xsni; then
17609 case $host in
17610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17611 export_dynamic_flag_spec='${wl}-Blargedynsym'
17613 esac
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17618 $as_echo "$ld_shlibs" >&6; }
17619 test "$ld_shlibs" = no && can_build_shared=no
17621 with_gnu_ld=$with_gnu_ld
17638 # Do we need to explicitly link libc?
17640 case "x$archive_cmds_need_lc" in
17641 x|xyes)
17642 # Assume -lc should be added
17643 archive_cmds_need_lc=yes
17645 if test "$enable_shared" = yes && test "$GCC" = yes; then
17646 case $archive_cmds in
17647 *'~'*)
17648 # FIXME: we may have to deal with multi-command sequences.
17650 '$CC '*)
17651 # Test whether the compiler implicitly links with -lc since on some
17652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17653 # to ld, don't add -lc before -lgcc.
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17655 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17656 if ${lt_cv_archive_cmds_need_lc+:} false; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 $RM conftest*
17660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17663 (eval $ac_compile) 2>&5
17664 ac_status=$?
17665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666 test $ac_status = 0; } 2>conftest.err; then
17667 soname=conftest
17668 lib=conftest
17669 libobjs=conftest.$ac_objext
17670 deplibs=
17671 wl=$lt_prog_compiler_wl
17672 pic_flag=$lt_prog_compiler_pic
17673 compiler_flags=-v
17674 linker_flags=-v
17675 verstring=
17676 output_objdir=.
17677 libname=conftest
17678 lt_save_allow_undefined_flag=$allow_undefined_flag
17679 allow_undefined_flag=
17680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17682 ac_status=$?
17683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684 test $ac_status = 0; }
17685 then
17686 lt_cv_archive_cmds_need_lc=no
17687 else
17688 lt_cv_archive_cmds_need_lc=yes
17690 allow_undefined_flag=$lt_save_allow_undefined_flag
17691 else
17692 cat conftest.err 1>&5
17694 $RM conftest*
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17698 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17701 esac
17704 esac
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17865 if test "$GCC" = yes; then
17866 case $host_os in
17867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17868 *) lt_awk_arg="/^libraries:/" ;;
17869 esac
17870 case $host_os in
17871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17872 *) lt_sed_strip_eq="s,=/,/,g" ;;
17873 esac
17874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17875 case $lt_search_path_spec in
17876 *\;*)
17877 # if the path contains ";" then we assume it to be the separator
17878 # otherwise default to the standard path separator (i.e. ":") - it is
17879 # assumed that no part of a normal pathname contains ";" but that should
17880 # okay in the real world where ";" in dirpaths is itself problematic.
17881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17886 esac
17887 # Ok, now we have the path, separated by spaces, we can step through it
17888 # and add multilib dir if necessary.
17889 lt_tmp_lt_search_path_spec=
17890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17891 for lt_sys_path in $lt_search_path_spec; do
17892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17894 else
17895 test -d "$lt_sys_path" && \
17896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17898 done
17899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17900 BEGIN {RS=" "; FS="/|\n";} {
17901 lt_foo="";
17902 lt_count=0;
17903 for (lt_i = NF; lt_i > 0; lt_i--) {
17904 if ($lt_i != "" && $lt_i != ".") {
17905 if ($lt_i == "..") {
17906 lt_count++;
17907 } else {
17908 if (lt_count == 0) {
17909 lt_foo="/" $lt_i lt_foo;
17910 } else {
17911 lt_count--;
17916 if (lt_foo != "") { lt_freq[lt_foo]++; }
17917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17919 # AWK program above erroneously prepends '/' to C:/dos/paths
17920 # for these hosts.
17921 case $host_os in
17922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17924 esac
17925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17926 else
17927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17929 library_names_spec=
17930 libname_spec='lib$name'
17931 soname_spec=
17932 shrext_cmds=".so"
17933 postinstall_cmds=
17934 postuninstall_cmds=
17935 finish_cmds=
17936 finish_eval=
17937 shlibpath_var=
17938 shlibpath_overrides_runpath=unknown
17939 version_type=none
17940 dynamic_linker="$host_os ld.so"
17941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17942 need_lib_prefix=unknown
17943 hardcode_into_libs=no
17945 # when you set need_version to no, make sure it does not cause -set_version
17946 # flags to be left without arguments
17947 need_version=unknown
17949 case $host_os in
17950 aix3*)
17951 version_type=linux
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17953 shlibpath_var=LIBPATH
17955 # AIX 3 has no versioning support, so we append a major version to the name.
17956 soname_spec='${libname}${release}${shared_ext}$major'
17959 aix[4-9]*)
17960 version_type=linux
17961 need_lib_prefix=no
17962 need_version=no
17963 hardcode_into_libs=yes
17964 if test "$host_cpu" = ia64; then
17965 # AIX 5 supports IA64
17966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 else
17969 # With GCC up to 2.95.x, collect2 would create an import file
17970 # for dependence libraries. The import file would start with
17971 # the line `#! .'. This would cause the generated library to
17972 # depend on `.', always an invalid library. This was fixed in
17973 # development snapshots of GCC prior to 3.0.
17974 case $host_os in
17975 aix4 | aix4.[01] | aix4.[01].*)
17976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17977 echo ' yes '
17978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17980 else
17981 can_build_shared=no
17984 esac
17985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17986 # soname into executable. Probably we can add versioning support to
17987 # collect2, so additional links can be useful in future.
17988 if test "$aix_use_runtimelinking" = yes; then
17989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17990 # instead of lib<name>.a to let people know that these are not
17991 # typical AIX shared libraries.
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 else
17994 # We preserve .a as extension for shared libraries through AIX4.2
17995 # and later when we are not doing run time linking.
17996 library_names_spec='${libname}${release}.a $libname.a'
17997 soname_spec='${libname}${release}${shared_ext}$major'
17999 shlibpath_var=LIBPATH
18003 amigaos*)
18004 case $host_cpu in
18005 powerpc)
18006 # Since July 2007 AmigaOS4 officially supports .so libraries.
18007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 m68k)
18011 library_names_spec='$libname.ixlibrary $libname.a'
18012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18013 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'
18015 esac
18018 beos*)
18019 library_names_spec='${libname}${shared_ext}'
18020 dynamic_linker="$host_os ld.so"
18021 shlibpath_var=LIBRARY_PATH
18024 bsdi[45]*)
18025 version_type=linux
18026 need_version=no
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18030 shlibpath_var=LD_LIBRARY_PATH
18031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18033 # the default ld.so.conf also contains /usr/contrib/lib and
18034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18035 # libtool to hard-code these into programs
18038 cygwin* | mingw* | pw32* | cegcc*)
18039 version_type=windows
18040 shrext_cmds=".dll"
18041 need_version=no
18042 need_lib_prefix=no
18044 case $GCC,$host_os in
18045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18046 library_names_spec='$libname.dll.a'
18047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18048 postinstall_cmds='base_file=`basename \${file}`~
18049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18050 dldir=$destdir/`dirname \$dlpath`~
18051 test -d \$dldir || mkdir -p \$dldir~
18052 $install_prog $dir/$dlname \$dldir/$dlname~
18053 chmod a+x \$dldir/$dlname~
18054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18058 dlpath=$dir/\$dldll~
18059 $RM \$dlpath'
18060 shlibpath_overrides_runpath=yes
18062 case $host_os in
18063 cygwin*)
18064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18069 mingw* | cegcc*)
18070 # MinGW DLLs use traditional 'lib' prefix
18071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18073 pw32*)
18074 # pw32 DLLs use 'pw' prefix rather than 'lib'
18075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18077 esac
18081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18083 esac
18084 dynamic_linker='Win32 ld.exe'
18085 # FIXME: first we should search . and the directory the executable is in
18086 shlibpath_var=PATH
18089 darwin* | rhapsody*)
18090 dynamic_linker="$host_os dyld"
18091 version_type=darwin
18092 need_lib_prefix=no
18093 need_version=no
18094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18095 soname_spec='${libname}${release}${major}$shared_ext'
18096 shlibpath_overrides_runpath=yes
18097 shlibpath_var=DYLD_LIBRARY_PATH
18098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18104 dgux*)
18105 version_type=linux
18106 need_lib_prefix=no
18107 need_version=no
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18113 freebsd* | dragonfly*)
18114 # DragonFly does not have aout. When/if they implement a new
18115 # versioning mechanism, adjust this.
18116 if test -x /usr/bin/objformat; then
18117 objformat=`/usr/bin/objformat`
18118 else
18119 case $host_os in
18120 freebsd[23].*) objformat=aout ;;
18121 *) objformat=elf ;;
18122 esac
18124 version_type=freebsd-$objformat
18125 case $version_type in
18126 freebsd-elf*)
18127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18128 need_version=no
18129 need_lib_prefix=no
18131 freebsd-*)
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18133 need_version=yes
18135 esac
18136 shlibpath_var=LD_LIBRARY_PATH
18137 case $host_os in
18138 freebsd2.*)
18139 shlibpath_overrides_runpath=yes
18141 freebsd3.[01]* | freebsdelf3.[01]*)
18142 shlibpath_overrides_runpath=yes
18143 hardcode_into_libs=yes
18145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18147 shlibpath_overrides_runpath=no
18148 hardcode_into_libs=yes
18150 *) # from 4.6 on, and DragonFly
18151 shlibpath_overrides_runpath=yes
18152 hardcode_into_libs=yes
18154 esac
18157 gnu*)
18158 version_type=linux
18159 need_lib_prefix=no
18160 need_version=no
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 hardcode_into_libs=yes
18167 haiku*)
18168 version_type=linux
18169 need_lib_prefix=no
18170 need_version=no
18171 dynamic_linker="$host_os runtime_loader"
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18173 soname_spec='${libname}${release}${shared_ext}$major'
18174 shlibpath_var=LIBRARY_PATH
18175 shlibpath_overrides_runpath=yes
18176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18177 hardcode_into_libs=yes
18180 hpux9* | hpux10* | hpux11*)
18181 # Give a soname corresponding to the major version so that dld.sl refuses to
18182 # link against other versions.
18183 version_type=sunos
18184 need_lib_prefix=no
18185 need_version=no
18186 case $host_cpu in
18187 ia64*)
18188 shrext_cmds='.so'
18189 hardcode_into_libs=yes
18190 dynamic_linker="$host_os dld.so"
18191 shlibpath_var=LD_LIBRARY_PATH
18192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 if test "X$HPUX_IA64_MODE" = X32; then
18196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18197 else
18198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18202 hppa*64*)
18203 shrext_cmds='.sl'
18204 hardcode_into_libs=yes
18205 dynamic_linker="$host_os dld.sl"
18206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209 soname_spec='${libname}${release}${shared_ext}$major'
18210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18214 shrext_cmds='.sl'
18215 dynamic_linker="$host_os dld.sl"
18216 shlibpath_var=SHLIB_PATH
18217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18221 esac
18222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18223 postinstall_cmds='chmod 555 $lib'
18224 # or fails outright, so override atomically:
18225 install_override_mode=555
18228 interix[3-9]*)
18229 version_type=linux
18230 need_lib_prefix=no
18231 need_version=no
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=no
18237 hardcode_into_libs=yes
18240 irix5* | irix6* | nonstopux*)
18241 case $host_os in
18242 nonstopux*) version_type=nonstopux ;;
18244 if test "$lt_cv_prog_gnu_ld" = yes; then
18245 version_type=linux
18246 else
18247 version_type=irix
18248 fi ;;
18249 esac
18250 need_lib_prefix=no
18251 need_version=no
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18254 case $host_os in
18255 irix5* | nonstopux*)
18256 libsuff= shlibsuff=
18259 case $LD in # libtool.m4 will add one of these switches to LD
18260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18261 libsuff= shlibsuff= libmagic=32-bit;;
18262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18263 libsuff=32 shlibsuff=N32 libmagic=N32;;
18264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18266 *) libsuff= shlibsuff= libmagic=never-match;;
18267 esac
18269 esac
18270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18271 shlibpath_overrides_runpath=no
18272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18274 hardcode_into_libs=yes
18277 # No shared lib support for Linux oldld, aout, or coff.
18278 linux*oldld* | linux*aout* | linux*coff*)
18279 dynamic_linker=no
18282 # This must be Linux ELF.
18284 # uclinux* changes (here and below) have been submitted to the libtool
18285 # project, but have not yet been accepted: they are GCC-local changes
18286 # for the time being. (See
18287 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18288 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
18289 version_type=linux
18290 need_lib_prefix=no
18291 need_version=no
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293 soname_spec='${libname}${release}${shared_ext}$major'
18294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18295 shlibpath_var=LD_LIBRARY_PATH
18296 shlibpath_overrides_runpath=no
18298 # Some binutils ld are patched to set DT_RUNPATH
18299 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18300 $as_echo_n "(cached) " >&6
18301 else
18302 lt_cv_shlibpath_overrides_runpath=no
18303 save_LDFLAGS=$LDFLAGS
18304 save_libdir=$libdir
18305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18311 main ()
18315 return 0;
18317 _ACEOF
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18320 lt_cv_shlibpath_overrides_runpath=yes
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18325 LDFLAGS=$save_LDFLAGS
18326 libdir=$save_libdir
18330 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18332 # This implies no fast_install, which is unacceptable.
18333 # Some rework will be needed to allow for fast_install
18334 # before this can be enabled.
18335 hardcode_into_libs=yes
18337 # Append ld.so.conf contents to the search path
18338 if test -f /etc/ld.so.conf; then
18339 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' ' '`
18340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18343 # We used to test for /lib/ld.so.1 and disable shared libraries on
18344 # powerpc, because MkLinux only supported shared libraries with the
18345 # GNU dynamic linker. Since this was broken with cross compilers,
18346 # most powerpc-linux boxes support dynamic linking these days and
18347 # people can always --disable-shared, the test was removed, and we
18348 # assume the GNU/Linux dynamic linker is in use.
18349 dynamic_linker='GNU/Linux ld.so'
18352 netbsd*)
18353 version_type=sunos
18354 need_lib_prefix=no
18355 need_version=no
18356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18359 dynamic_linker='NetBSD (a.out) ld.so'
18360 else
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 dynamic_linker='NetBSD ld.elf_so'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=yes
18367 hardcode_into_libs=yes
18370 newsos6)
18371 version_type=linux
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 shlibpath_overrides_runpath=yes
18377 *nto* | *qnx*)
18378 version_type=qnx
18379 need_lib_prefix=no
18380 need_version=no
18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18382 soname_spec='${libname}${release}${shared_ext}$major'
18383 shlibpath_var=LD_LIBRARY_PATH
18384 shlibpath_overrides_runpath=no
18385 hardcode_into_libs=yes
18386 dynamic_linker='ldqnx.so'
18389 openbsd*)
18390 version_type=sunos
18391 sys_lib_dlsearch_path_spec="/usr/lib"
18392 need_lib_prefix=no
18393 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18394 case $host_os in
18395 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18396 *) need_version=no ;;
18397 esac
18398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18402 case $host_os in
18403 openbsd2.[89] | openbsd2.[89].*)
18404 shlibpath_overrides_runpath=no
18407 shlibpath_overrides_runpath=yes
18409 esac
18410 else
18411 shlibpath_overrides_runpath=yes
18415 os2*)
18416 libname_spec='$name'
18417 shrext_cmds=".dll"
18418 need_lib_prefix=no
18419 library_names_spec='$libname${shared_ext} $libname.a'
18420 dynamic_linker='OS/2 ld.exe'
18421 shlibpath_var=LIBPATH
18424 osf3* | osf4* | osf5*)
18425 version_type=osf
18426 need_lib_prefix=no
18427 need_version=no
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18432 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18435 rdos*)
18436 dynamic_linker=no
18439 solaris*)
18440 version_type=linux
18441 need_lib_prefix=no
18442 need_version=no
18443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 soname_spec='${libname}${release}${shared_ext}$major'
18445 shlibpath_var=LD_LIBRARY_PATH
18446 shlibpath_overrides_runpath=yes
18447 hardcode_into_libs=yes
18448 # ldd complains unless libraries are executable
18449 postinstall_cmds='chmod +x $lib'
18452 sunos4*)
18453 version_type=sunos
18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18455 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18456 shlibpath_var=LD_LIBRARY_PATH
18457 shlibpath_overrides_runpath=yes
18458 if test "$with_gnu_ld" = yes; then
18459 need_lib_prefix=no
18461 need_version=yes
18464 sysv4 | sysv4.3*)
18465 version_type=linux
18466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18467 soname_spec='${libname}${release}${shared_ext}$major'
18468 shlibpath_var=LD_LIBRARY_PATH
18469 case $host_vendor in
18470 sni)
18471 shlibpath_overrides_runpath=no
18472 need_lib_prefix=no
18473 runpath_var=LD_RUN_PATH
18475 siemens)
18476 need_lib_prefix=no
18478 motorola)
18479 need_lib_prefix=no
18480 need_version=no
18481 shlibpath_overrides_runpath=no
18482 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18484 esac
18487 sysv4*MP*)
18488 if test -d /usr/nec ;then
18489 version_type=linux
18490 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18491 soname_spec='$libname${shared_ext}.$major'
18492 shlibpath_var=LD_LIBRARY_PATH
18496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18497 version_type=freebsd-elf
18498 need_lib_prefix=no
18499 need_version=no
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 shlibpath_overrides_runpath=yes
18504 hardcode_into_libs=yes
18505 if test "$with_gnu_ld" = yes; then
18506 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18507 else
18508 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18509 case $host_os in
18510 sco3.2v5*)
18511 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18513 esac
18515 sys_lib_dlsearch_path_spec='/usr/lib'
18518 tpf*)
18519 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18520 version_type=linux
18521 need_lib_prefix=no
18522 need_version=no
18523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18524 shlibpath_var=LD_LIBRARY_PATH
18525 shlibpath_overrides_runpath=no
18526 hardcode_into_libs=yes
18529 uts4*)
18530 version_type=linux
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18532 soname_spec='${libname}${release}${shared_ext}$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18537 dynamic_linker=no
18539 esac
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18541 $as_echo "$dynamic_linker" >&6; }
18542 test "$dynamic_linker" = no && can_build_shared=no
18544 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18545 if test "$GCC" = yes; then
18546 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18549 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18550 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18552 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18553 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18649 hardcode_action=
18650 if test -n "$hardcode_libdir_flag_spec" ||
18651 test -n "$runpath_var" ||
18652 test "X$hardcode_automatic" = "Xyes" ; then
18654 # We can hardcode non-existent directories.
18655 if test "$hardcode_direct" != no &&
18656 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18657 # have to relink, otherwise we might link with an installed library
18658 # when we should be linking with a yet-to-be-installed one
18659 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18660 test "$hardcode_minus_L" != no; then
18661 # Linking always hardcodes the temporary library directory.
18662 hardcode_action=relink
18663 else
18664 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18665 hardcode_action=immediate
18667 else
18668 # We cannot hardcode anything, or else we can only hardcode existing
18669 # directories.
18670 hardcode_action=unsupported
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18673 $as_echo "$hardcode_action" >&6; }
18675 if test "$hardcode_action" = relink ||
18676 test "$inherit_rpath" = yes; then
18677 # Fast installation is not supported
18678 enable_fast_install=no
18679 elif test "$shlibpath_overrides_runpath" = yes ||
18680 test "$enable_shared" = no; then
18681 # Fast installation is not necessary
18682 enable_fast_install=needless
18690 if test "x$enable_dlopen" != xyes; then
18691 enable_dlopen=unknown
18692 enable_dlopen_self=unknown
18693 enable_dlopen_self_static=unknown
18694 else
18695 lt_cv_dlopen=no
18696 lt_cv_dlopen_libs=
18698 case $host_os in
18699 beos*)
18700 lt_cv_dlopen="load_add_on"
18701 lt_cv_dlopen_libs=
18702 lt_cv_dlopen_self=yes
18705 mingw* | pw32* | cegcc*)
18706 lt_cv_dlopen="LoadLibrary"
18707 lt_cv_dlopen_libs=
18710 cygwin*)
18711 lt_cv_dlopen="dlopen"
18712 lt_cv_dlopen_libs=
18715 darwin*)
18716 # if libdl is installed we need to link against it
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18719 if ${ac_cv_lib_dl_dlopen+:} false; then :
18720 $as_echo_n "(cached) " >&6
18721 else
18722 ac_check_lib_save_LIBS=$LIBS
18723 LIBS="-ldl $LIBS"
18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18727 /* Override any GCC internal prototype to avoid an error.
18728 Use char because int might match the return type of a GCC
18729 builtin and then its argument prototype would still apply. */
18730 #ifdef __cplusplus
18731 extern "C"
18732 #endif
18733 char dlopen ();
18735 main ()
18737 return dlopen ();
18739 return 0;
18741 _ACEOF
18742 if ac_fn_c_try_link "$LINENO"; then :
18743 ac_cv_lib_dl_dlopen=yes
18744 else
18745 ac_cv_lib_dl_dlopen=no
18747 rm -f core conftest.err conftest.$ac_objext \
18748 conftest$ac_exeext conftest.$ac_ext
18749 LIBS=$ac_check_lib_save_LIBS
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18755 else
18757 lt_cv_dlopen="dyld"
18758 lt_cv_dlopen_libs=
18759 lt_cv_dlopen_self=yes
18766 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18767 if test "x$ac_cv_func_shl_load" = xyes; then :
18768 lt_cv_dlopen="shl_load"
18769 else
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18771 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18772 if ${ac_cv_lib_dld_shl_load+:} false; then :
18773 $as_echo_n "(cached) " >&6
18774 else
18775 ac_check_lib_save_LIBS=$LIBS
18776 LIBS="-ldld $LIBS"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 char shl_load ();
18788 main ()
18790 return shl_load ();
18792 return 0;
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796 ac_cv_lib_dld_shl_load=yes
18797 else
18798 ac_cv_lib_dld_shl_load=no
18800 rm -f core conftest.err conftest.$ac_objext \
18801 conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18805 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18806 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18807 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18808 else
18809 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18810 if test "x$ac_cv_func_dlopen" = xyes; then :
18811 lt_cv_dlopen="dlopen"
18812 else
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18814 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18815 if ${ac_cv_lib_dl_dlopen+:} false; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 ac_check_lib_save_LIBS=$LIBS
18819 LIBS="-ldl $LIBS"
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char dlopen ();
18831 main ()
18833 return dlopen ();
18835 return 0;
18837 _ACEOF
18838 if ac_fn_c_try_link "$LINENO"; then :
18839 ac_cv_lib_dl_dlopen=yes
18840 else
18841 ac_cv_lib_dl_dlopen=no
18843 rm -f core conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18848 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18849 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18851 else
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18853 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18854 if ${ac_cv_lib_svld_dlopen+:} false; then :
18855 $as_echo_n "(cached) " >&6
18856 else
18857 ac_check_lib_save_LIBS=$LIBS
18858 LIBS="-lsvld $LIBS"
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18862 /* Override any GCC internal prototype to avoid an error.
18863 Use char because int might match the return type of a GCC
18864 builtin and then its argument prototype would still apply. */
18865 #ifdef __cplusplus
18866 extern "C"
18867 #endif
18868 char dlopen ();
18870 main ()
18872 return dlopen ();
18874 return 0;
18876 _ACEOF
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_lib_svld_dlopen=yes
18879 else
18880 ac_cv_lib_svld_dlopen=no
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18887 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18888 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18890 else
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18892 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18893 if ${ac_cv_lib_dld_dld_link+:} false; then :
18894 $as_echo_n "(cached) " >&6
18895 else
18896 ac_check_lib_save_LIBS=$LIBS
18897 LIBS="-ldld $LIBS"
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18901 /* Override any GCC internal prototype to avoid an error.
18902 Use char because int might match the return type of a GCC
18903 builtin and then its argument prototype would still apply. */
18904 #ifdef __cplusplus
18905 extern "C"
18906 #endif
18907 char dld_link ();
18909 main ()
18911 return dld_link ();
18913 return 0;
18915 _ACEOF
18916 if ac_fn_c_try_link "$LINENO"; then :
18917 ac_cv_lib_dld_dld_link=yes
18918 else
18919 ac_cv_lib_dld_dld_link=no
18921 rm -f core conftest.err conftest.$ac_objext \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18926 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18927 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18928 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18947 esac
18949 if test "x$lt_cv_dlopen" != xno; then
18950 enable_dlopen=yes
18951 else
18952 enable_dlopen=no
18955 case $lt_cv_dlopen in
18956 dlopen)
18957 save_CPPFLAGS="$CPPFLAGS"
18958 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18960 save_LDFLAGS="$LDFLAGS"
18961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18963 save_LIBS="$LIBS"
18964 LIBS="$lt_cv_dlopen_libs $LIBS"
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18967 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18968 if ${lt_cv_dlopen_self+:} false; then :
18969 $as_echo_n "(cached) " >&6
18970 else
18971 if test "$cross_compiling" = yes; then :
18972 lt_cv_dlopen_self=cross
18973 else
18974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18975 lt_status=$lt_dlunknown
18976 cat > conftest.$ac_ext <<_LT_EOF
18977 #line 18977 "configure"
18978 #include "confdefs.h"
18980 #if HAVE_DLFCN_H
18981 #include <dlfcn.h>
18982 #endif
18984 #include <stdio.h>
18986 #ifdef RTLD_GLOBAL
18987 # define LT_DLGLOBAL RTLD_GLOBAL
18988 #else
18989 # ifdef DL_GLOBAL
18990 # define LT_DLGLOBAL DL_GLOBAL
18991 # else
18992 # define LT_DLGLOBAL 0
18993 # endif
18994 #endif
18996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18997 find out it does not work in some platform. */
18998 #ifndef LT_DLLAZY_OR_NOW
18999 # ifdef RTLD_LAZY
19000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19001 # else
19002 # ifdef DL_LAZY
19003 # define LT_DLLAZY_OR_NOW DL_LAZY
19004 # else
19005 # ifdef RTLD_NOW
19006 # define LT_DLLAZY_OR_NOW RTLD_NOW
19007 # else
19008 # ifdef DL_NOW
19009 # define LT_DLLAZY_OR_NOW DL_NOW
19010 # else
19011 # define LT_DLLAZY_OR_NOW 0
19012 # endif
19013 # endif
19014 # endif
19015 # endif
19016 #endif
19018 /* When -fvisbility=hidden is used, assume the code has been annotated
19019 correspondingly for the symbols needed. */
19020 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19021 void fnord () __attribute__((visibility("default")));
19022 #endif
19024 void fnord () { int i=42; }
19025 int main ()
19027 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19028 int status = $lt_dlunknown;
19030 if (self)
19032 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19033 else
19035 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19036 else puts (dlerror ());
19038 /* dlclose (self); */
19040 else
19041 puts (dlerror ());
19043 return status;
19045 _LT_EOF
19046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19047 (eval $ac_link) 2>&5
19048 ac_status=$?
19049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19050 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19051 (./conftest; exit; ) >&5 2>/dev/null
19052 lt_status=$?
19053 case x$lt_status in
19054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19056 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19057 esac
19058 else :
19059 # compilation failed
19060 lt_cv_dlopen_self=no
19063 rm -fr conftest*
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19068 $as_echo "$lt_cv_dlopen_self" >&6; }
19070 if test "x$lt_cv_dlopen_self" = xyes; then
19071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19073 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19074 if ${lt_cv_dlopen_self_static+:} false; then :
19075 $as_echo_n "(cached) " >&6
19076 else
19077 if test "$cross_compiling" = yes; then :
19078 lt_cv_dlopen_self_static=cross
19079 else
19080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19081 lt_status=$lt_dlunknown
19082 cat > conftest.$ac_ext <<_LT_EOF
19083 #line 19083 "configure"
19084 #include "confdefs.h"
19086 #if HAVE_DLFCN_H
19087 #include <dlfcn.h>
19088 #endif
19090 #include <stdio.h>
19092 #ifdef RTLD_GLOBAL
19093 # define LT_DLGLOBAL RTLD_GLOBAL
19094 #else
19095 # ifdef DL_GLOBAL
19096 # define LT_DLGLOBAL DL_GLOBAL
19097 # else
19098 # define LT_DLGLOBAL 0
19099 # endif
19100 #endif
19102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19103 find out it does not work in some platform. */
19104 #ifndef LT_DLLAZY_OR_NOW
19105 # ifdef RTLD_LAZY
19106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19107 # else
19108 # ifdef DL_LAZY
19109 # define LT_DLLAZY_OR_NOW DL_LAZY
19110 # else
19111 # ifdef RTLD_NOW
19112 # define LT_DLLAZY_OR_NOW RTLD_NOW
19113 # else
19114 # ifdef DL_NOW
19115 # define LT_DLLAZY_OR_NOW DL_NOW
19116 # else
19117 # define LT_DLLAZY_OR_NOW 0
19118 # endif
19119 # endif
19120 # endif
19121 # endif
19122 #endif
19124 /* When -fvisbility=hidden is used, assume the code has been annotated
19125 correspondingly for the symbols needed. */
19126 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19127 void fnord () __attribute__((visibility("default")));
19128 #endif
19130 void fnord () { int i=42; }
19131 int main ()
19133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19134 int status = $lt_dlunknown;
19136 if (self)
19138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19139 else
19141 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19142 else puts (dlerror ());
19144 /* dlclose (self); */
19146 else
19147 puts (dlerror ());
19149 return status;
19151 _LT_EOF
19152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19153 (eval $ac_link) 2>&5
19154 ac_status=$?
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19157 (./conftest; exit; ) >&5 2>/dev/null
19158 lt_status=$?
19159 case x$lt_status in
19160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19162 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19163 esac
19164 else :
19165 # compilation failed
19166 lt_cv_dlopen_self_static=no
19169 rm -fr conftest*
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19174 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19177 CPPFLAGS="$save_CPPFLAGS"
19178 LDFLAGS="$save_LDFLAGS"
19179 LIBS="$save_LIBS"
19181 esac
19183 case $lt_cv_dlopen_self in
19184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19185 *) enable_dlopen_self=unknown ;;
19186 esac
19188 case $lt_cv_dlopen_self_static in
19189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19190 *) enable_dlopen_self_static=unknown ;;
19191 esac
19210 striplib=
19211 old_striplib=
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19213 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19214 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19215 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19216 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19218 $as_echo "yes" >&6; }
19219 else
19220 # FIXME - insert some real tests, host_os isn't really good enough
19221 case $host_os in
19222 darwin*)
19223 if test -n "$STRIP" ; then
19224 striplib="$STRIP -x"
19225 old_striplib="$STRIP -S"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19227 $as_echo "yes" >&6; }
19228 else
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19230 $as_echo "no" >&6; }
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19235 $as_echo "no" >&6; }
19237 esac
19251 # Report which library types will actually be built
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19253 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19255 $as_echo "$can_build_shared" >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19258 $as_echo_n "checking whether to build shared libraries... " >&6; }
19259 test "$can_build_shared" = "no" && enable_shared=no
19261 # On AIX, shared libraries and static libraries use the same namespace, and
19262 # are all built from PIC.
19263 case $host_os in
19264 aix3*)
19265 test "$enable_shared" = yes && enable_static=no
19266 if test -n "$RANLIB"; then
19267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19268 postinstall_cmds='$RANLIB $lib'
19272 aix[4-9]*)
19273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19274 test "$enable_shared" = yes && enable_static=no
19277 esac
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19279 $as_echo "$enable_shared" >&6; }
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19282 $as_echo_n "checking whether to build static libraries... " >&6; }
19283 # Make sure either enable_shared or enable_static is yes.
19284 test "$enable_shared" = yes || enable_static=yes
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19286 $as_echo "$enable_static" >&6; }
19292 ac_ext=cpp
19293 ac_cpp='$CXXCPP $CPPFLAGS'
19294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19298 CC="$lt_save_CC"
19300 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19301 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19302 (test "X$CXX" != "Xg++"))) ; then
19303 ac_ext=cpp
19304 ac_cpp='$CXXCPP $CPPFLAGS'
19305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19309 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19310 if test -z "$CXXCPP"; then
19311 if ${ac_cv_prog_CXXCPP+:} false; then :
19312 $as_echo_n "(cached) " >&6
19313 else
19314 # Double quotes because CXXCPP needs to be expanded
19315 for CXXCPP in "$CXX -E" "/lib/cpp"
19317 ac_preproc_ok=false
19318 for ac_cxx_preproc_warn_flag in '' yes
19320 # Use a header file that comes with gcc, so configuring glibc
19321 # with a fresh cross-compiler works.
19322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19323 # <limits.h> exists even on freestanding compilers.
19324 # On the NeXT, cc -E runs the code through the compiler's parser,
19325 # not just through cpp. "Syntax error" is here to catch this case.
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19328 #ifdef __STDC__
19329 # include <limits.h>
19330 #else
19331 # include <assert.h>
19332 #endif
19333 Syntax error
19334 _ACEOF
19335 if ac_fn_cxx_try_cpp "$LINENO"; then :
19337 else
19338 # Broken: fails on valid input.
19339 continue
19341 rm -f conftest.err conftest.i conftest.$ac_ext
19343 # OK, works on sane cases. Now check whether nonexistent headers
19344 # can be detected and how.
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 #include <ac_nonexistent.h>
19348 _ACEOF
19349 if ac_fn_cxx_try_cpp "$LINENO"; then :
19350 # Broken: success on invalid input.
19351 continue
19352 else
19353 # Passes both tests.
19354 ac_preproc_ok=:
19355 break
19357 rm -f conftest.err conftest.i conftest.$ac_ext
19359 done
19360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19361 rm -f conftest.i conftest.err conftest.$ac_ext
19362 if $ac_preproc_ok; then :
19363 break
19366 done
19367 ac_cv_prog_CXXCPP=$CXXCPP
19370 CXXCPP=$ac_cv_prog_CXXCPP
19371 else
19372 ac_cv_prog_CXXCPP=$CXXCPP
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19375 $as_echo "$CXXCPP" >&6; }
19376 ac_preproc_ok=false
19377 for ac_cxx_preproc_warn_flag in '' yes
19379 # Use a header file that comes with gcc, so configuring glibc
19380 # with a fresh cross-compiler works.
19381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19382 # <limits.h> exists even on freestanding compilers.
19383 # On the NeXT, cc -E runs the code through the compiler's parser,
19384 # not just through cpp. "Syntax error" is here to catch this case.
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19387 #ifdef __STDC__
19388 # include <limits.h>
19389 #else
19390 # include <assert.h>
19391 #endif
19392 Syntax error
19393 _ACEOF
19394 if ac_fn_cxx_try_cpp "$LINENO"; then :
19396 else
19397 # Broken: fails on valid input.
19398 continue
19400 rm -f conftest.err conftest.i conftest.$ac_ext
19402 # OK, works on sane cases. Now check whether nonexistent headers
19403 # can be detected and how.
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19406 #include <ac_nonexistent.h>
19407 _ACEOF
19408 if ac_fn_cxx_try_cpp "$LINENO"; then :
19409 # Broken: success on invalid input.
19410 continue
19411 else
19412 # Passes both tests.
19413 ac_preproc_ok=:
19414 break
19416 rm -f conftest.err conftest.i conftest.$ac_ext
19418 done
19419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19420 rm -f conftest.i conftest.err conftest.$ac_ext
19421 if $ac_preproc_ok; then :
19423 else
19424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19426 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19427 See \`config.log' for more details" "$LINENO" 5; }
19430 ac_ext=cpp
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436 else
19437 _lt_caught_CXX_error=yes
19440 ac_ext=cpp
19441 ac_cpp='$CXXCPP $CPPFLAGS'
19442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19446 archive_cmds_need_lc_CXX=no
19447 allow_undefined_flag_CXX=
19448 always_export_symbols_CXX=no
19449 archive_expsym_cmds_CXX=
19450 compiler_needs_object_CXX=no
19451 export_dynamic_flag_spec_CXX=
19452 hardcode_direct_CXX=no
19453 hardcode_direct_absolute_CXX=no
19454 hardcode_libdir_flag_spec_CXX=
19455 hardcode_libdir_flag_spec_ld_CXX=
19456 hardcode_libdir_separator_CXX=
19457 hardcode_minus_L_CXX=no
19458 hardcode_shlibpath_var_CXX=unsupported
19459 hardcode_automatic_CXX=no
19460 inherit_rpath_CXX=no
19461 module_cmds_CXX=
19462 module_expsym_cmds_CXX=
19463 link_all_deplibs_CXX=unknown
19464 old_archive_cmds_CXX=$old_archive_cmds
19465 reload_flag_CXX=$reload_flag
19466 reload_cmds_CXX=$reload_cmds
19467 no_undefined_flag_CXX=
19468 whole_archive_flag_spec_CXX=
19469 enable_shared_with_static_runtimes_CXX=no
19471 # Source file extension for C++ test sources.
19472 ac_ext=cpp
19474 # Object file extension for compiled C++ test sources.
19475 objext=o
19476 objext_CXX=$objext
19478 # No sense in running all these tests if we already determined that
19479 # the CXX compiler isn't working. Some variables (like enable_shared)
19480 # are currently assumed to apply to all compilers on this platform,
19481 # and will be corrupted by setting them based on a non-working compiler.
19482 if test "$_lt_caught_CXX_error" != yes; then
19483 # Code to be used in simple compile tests
19484 lt_simple_compile_test_code="int some_variable = 0;"
19486 # Code to be used in simple link tests
19487 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19489 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19496 # If no C compiler was specified, use CC.
19497 LTCC=${LTCC-"$CC"}
19499 # If no C compiler flags were specified, use CFLAGS.
19500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19502 # Allow CC to be a program name with arguments.
19503 compiler=$CC
19506 # save warnings/boilerplate of simple test code
19507 ac_outfile=conftest.$ac_objext
19508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19510 _lt_compiler_boilerplate=`cat conftest.err`
19511 $RM conftest*
19513 ac_outfile=conftest.$ac_objext
19514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19516 _lt_linker_boilerplate=`cat conftest.err`
19517 $RM -r conftest*
19520 # Allow CC to be a program name with arguments.
19521 lt_save_CC=$CC
19522 lt_save_LD=$LD
19523 lt_save_GCC=$GCC
19524 GCC=$GXX
19525 lt_save_with_gnu_ld=$with_gnu_ld
19526 lt_save_path_LD=$lt_cv_path_LD
19527 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19528 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19529 else
19530 $as_unset lt_cv_prog_gnu_ld
19532 if test -n "${lt_cv_path_LDCXX+set}"; then
19533 lt_cv_path_LD=$lt_cv_path_LDCXX
19534 else
19535 $as_unset lt_cv_path_LD
19537 test -z "${LDCXX+set}" || LD=$LDCXX
19538 CC=${CXX-"c++"}
19539 compiler=$CC
19540 compiler_CXX=$CC
19541 for cc_temp in $compiler""; do
19542 case $cc_temp in
19543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19545 \-*) ;;
19546 *) break;;
19547 esac
19548 done
19549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19552 if test -n "$compiler"; then
19553 # We don't want -fno-exception when compiling C++ code, so set the
19554 # no_builtin_flag separately
19555 if test "$GXX" = yes; then
19556 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19557 else
19558 lt_prog_compiler_no_builtin_flag_CXX=
19561 if test "$GXX" = yes; then
19562 # Set up default GNU C++ configuration
19566 # Check whether --with-gnu-ld was given.
19567 if test "${with_gnu_ld+set}" = set; then :
19568 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19569 else
19570 with_gnu_ld=no
19573 ac_prog=ld
19574 if test "$GCC" = yes; then
19575 # Check if gcc -print-prog-name=ld gives a path.
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19577 $as_echo_n "checking for ld used by $CC... " >&6; }
19578 case $host in
19579 *-*-mingw*)
19580 # gcc leaves a trailing carriage return which upsets mingw
19581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19584 esac
19585 case $ac_prog in
19586 # Accept absolute paths.
19587 [\\/]* | ?:[\\/]*)
19588 re_direlt='/[^/][^/]*/\.\./'
19589 # Canonicalize the pathname of ld
19590 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19591 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19592 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19593 done
19594 test -z "$LD" && LD="$ac_prog"
19597 # If it fails, then pretend we aren't using GCC.
19598 ac_prog=ld
19601 # If it is relative, then search for the first ld in PATH.
19602 with_gnu_ld=unknown
19604 esac
19605 elif test "$with_gnu_ld" = yes; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19607 $as_echo_n "checking for GNU ld... " >&6; }
19608 else
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19610 $as_echo_n "checking for non-GNU ld... " >&6; }
19612 if ${lt_cv_path_LD+:} false; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 if test -z "$LD"; then
19616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19617 for ac_dir in $PATH; do
19618 IFS="$lt_save_ifs"
19619 test -z "$ac_dir" && ac_dir=.
19620 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19621 lt_cv_path_LD="$ac_dir/$ac_prog"
19622 # Check to see if the program is GNU ld. I'd rather use --version,
19623 # but apparently some variants of GNU ld only accept -v.
19624 # Break only if it was the GNU/non-GNU ld that we prefer.
19625 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19626 *GNU* | *'with BFD'*)
19627 test "$with_gnu_ld" != no && break
19630 test "$with_gnu_ld" != yes && break
19632 esac
19634 done
19635 IFS="$lt_save_ifs"
19636 else
19637 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19641 LD="$lt_cv_path_LD"
19642 if test -n "$LD"; then
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19644 $as_echo "$LD" >&6; }
19645 else
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19647 $as_echo "no" >&6; }
19649 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19651 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19652 if ${lt_cv_prog_gnu_ld+:} false; then :
19653 $as_echo_n "(cached) " >&6
19654 else
19655 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19656 case `$LD -v 2>&1 </dev/null` in
19657 *GNU* | *'with BFD'*)
19658 lt_cv_prog_gnu_ld=yes
19661 lt_cv_prog_gnu_ld=no
19663 esac
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19666 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19667 with_gnu_ld=$lt_cv_prog_gnu_ld
19675 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19676 # archiving commands below assume that GNU ld is being used.
19677 if test "$with_gnu_ld" = yes; then
19678 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19679 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'
19681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19684 # If archive_cmds runs LD, not CC, wlarc should be empty
19685 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19686 # investigate it a little bit more. (MM)
19687 wlarc='${wl}'
19689 # ancient GNU ld didn't support --whole-archive et. al.
19690 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19691 $GREP 'no-whole-archive' > /dev/null; then
19692 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19693 else
19694 whole_archive_flag_spec_CXX=
19696 else
19697 with_gnu_ld=no
19698 wlarc=
19700 # A generic and very simple default shared library creation
19701 # command for GNU C++ for the case where it uses the native
19702 # linker, instead of GNU ld. If possible, this setting should
19703 # overridden to take advantage of the native linker features on
19704 # the platform it is being used on.
19705 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19708 # Commands to make compiler produce verbose output that lists
19709 # what "hidden" libraries, object files and flags are used when
19710 # linking a shared library.
19711 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19713 else
19714 GXX=no
19715 with_gnu_ld=no
19716 wlarc=
19719 # PORTME: fill in a description of your system's C++ link characteristics
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19721 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19722 ld_shlibs_CXX=yes
19723 case $host_os in
19724 aix3*)
19725 # FIXME: insert proper C++ library support
19726 ld_shlibs_CXX=no
19728 aix[4-9]*)
19729 if test "$host_cpu" = ia64; then
19730 # On IA64, the linker does run time linking by default, so we don't
19731 # have to do anything special.
19732 aix_use_runtimelinking=no
19733 exp_sym_flag='-Bexport'
19734 no_entry_flag=""
19735 else
19736 aix_use_runtimelinking=no
19738 # Test if we are trying to use run time linking or normal
19739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19740 # need to do runtime linking.
19741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19742 for ld_flag in $LDFLAGS; do
19743 case $ld_flag in
19744 *-brtl*)
19745 aix_use_runtimelinking=yes
19746 break
19748 esac
19749 done
19751 esac
19753 exp_sym_flag='-bexport'
19754 no_entry_flag='-bnoentry'
19757 # When large executables or shared objects are built, AIX ld can
19758 # have problems creating the table of contents. If linking a library
19759 # or program results in "error TOC overflow" add -mminimal-toc to
19760 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19761 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19763 archive_cmds_CXX=''
19764 hardcode_direct_CXX=yes
19765 hardcode_direct_absolute_CXX=yes
19766 hardcode_libdir_separator_CXX=':'
19767 link_all_deplibs_CXX=yes
19768 file_list_spec_CXX='${wl}-f,'
19770 if test "$GXX" = yes; then
19771 case $host_os in aix4.[012]|aix4.[012].*)
19772 # We only want to do this on AIX 4.2 and lower, the check
19773 # below for broken collect2 doesn't work under 4.3+
19774 collect2name=`${CC} -print-prog-name=collect2`
19775 if test -f "$collect2name" &&
19776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19777 then
19778 # We have reworked collect2
19780 else
19781 # We have old collect2
19782 hardcode_direct_CXX=unsupported
19783 # It fails to find uninstalled libraries when the uninstalled
19784 # path is not listed in the libpath. Setting hardcode_minus_L
19785 # to unsupported forces relinking
19786 hardcode_minus_L_CXX=yes
19787 hardcode_libdir_flag_spec_CXX='-L$libdir'
19788 hardcode_libdir_separator_CXX=
19790 esac
19791 shared_flag='-shared'
19792 if test "$aix_use_runtimelinking" = yes; then
19793 shared_flag="$shared_flag "'${wl}-G'
19795 else
19796 # not using gcc
19797 if test "$host_cpu" = ia64; then
19798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19799 # chokes on -Wl,-G. The following line is correct:
19800 shared_flag='-G'
19801 else
19802 if test "$aix_use_runtimelinking" = yes; then
19803 shared_flag='${wl}-G'
19804 else
19805 shared_flag='${wl}-bM:SRE'
19810 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19811 # It seems that -bexpall does not export symbols beginning with
19812 # underscore (_), so it is better to generate a list of symbols to
19813 # export.
19814 always_export_symbols_CXX=yes
19815 if test "$aix_use_runtimelinking" = yes; then
19816 # Warning - without using the other runtime loading flags (-brtl),
19817 # -berok will link without error, but may produce a broken library.
19818 allow_undefined_flag_CXX='-berok'
19819 # Determine the default libpath from the value encoded in an empty
19820 # executable.
19821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h. */
19825 main ()
19829 return 0;
19831 _ACEOF
19832 if ac_fn_cxx_try_link "$LINENO"; then :
19834 lt_aix_libpath_sed='
19835 /Import File Strings/,/^$/ {
19836 /^0/ {
19837 s/^0 *\(.*\)$/\1/
19841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19842 # Check for a 64-bit object if we didn't find anything.
19843 if test -z "$aix_libpath"; then
19844 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19847 rm -f core conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19851 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19853 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"
19854 else
19855 if test "$host_cpu" = ia64; then
19856 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19857 allow_undefined_flag_CXX="-z nodefs"
19858 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"
19859 else
19860 # Determine the default libpath from the value encoded in an
19861 # empty executable.
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19866 main ()
19870 return 0;
19872 _ACEOF
19873 if ac_fn_cxx_try_link "$LINENO"; then :
19875 lt_aix_libpath_sed='
19876 /Import File Strings/,/^$/ {
19877 /^0/ {
19878 s/^0 *\(.*\)$/\1/
19882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19883 # Check for a 64-bit object if we didn't find anything.
19884 if test -z "$aix_libpath"; then
19885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19888 rm -f core conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
19890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19892 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19893 # Warning - without using the other run time loading flags,
19894 # -berok will link without error, but may produce a broken library.
19895 no_undefined_flag_CXX=' ${wl}-bernotok'
19896 allow_undefined_flag_CXX=' ${wl}-berok'
19897 if test "$with_gnu_ld" = yes; then
19898 # We only use this code for GNU lds that support --whole-archive.
19899 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19900 else
19901 # Exported symbols can be pulled into shared objects from archives
19902 whole_archive_flag_spec_CXX='$convenience'
19904 archive_cmds_need_lc_CXX=yes
19905 # This is similar to how AIX traditionally builds its shared
19906 # libraries.
19907 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'
19912 beos*)
19913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19914 allow_undefined_flag_CXX=unsupported
19915 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19916 # support --undefined. This deserves some investigation. FIXME
19917 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19918 else
19919 ld_shlibs_CXX=no
19923 chorus*)
19924 case $cc_basename in
19926 # FIXME: insert proper C++ library support
19927 ld_shlibs_CXX=no
19929 esac
19932 cygwin* | mingw* | pw32* | cegcc*)
19933 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19934 # as there is no search path for DLLs.
19935 hardcode_libdir_flag_spec_CXX='-L$libdir'
19936 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19937 allow_undefined_flag_CXX=unsupported
19938 always_export_symbols_CXX=no
19939 enable_shared_with_static_runtimes_CXX=yes
19941 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19942 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'
19943 # If the export-symbols file already is a .def file (1st line
19944 # is EXPORTS), use it as is; otherwise, prepend...
19945 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19946 cp $export_symbols $output_objdir/$soname.def;
19947 else
19948 echo EXPORTS > $output_objdir/$soname.def;
19949 cat $export_symbols >> $output_objdir/$soname.def;
19951 $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'
19952 else
19953 ld_shlibs_CXX=no
19956 darwin* | rhapsody*)
19959 archive_cmds_need_lc_CXX=no
19960 hardcode_direct_CXX=no
19961 hardcode_automatic_CXX=yes
19962 hardcode_shlibpath_var_CXX=unsupported
19963 if test "$lt_cv_ld_force_load" = "yes"; then
19964 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\"`'
19965 else
19966 whole_archive_flag_spec_CXX=''
19968 link_all_deplibs_CXX=yes
19969 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19970 case $cc_basename in
19971 ifort*) _lt_dar_can_shared=yes ;;
19972 *) _lt_dar_can_shared=$GCC ;;
19973 esac
19974 if test "$_lt_dar_can_shared" = "yes"; then
19975 output_verbose_link_cmd=func_echo_all
19976 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}"
19977 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19978 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}"
19979 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}"
19980 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19981 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}"
19982 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}"
19985 else
19986 ld_shlibs_CXX=no
19991 dgux*)
19992 case $cc_basename in
19993 ec++*)
19994 # FIXME: insert proper C++ library support
19995 ld_shlibs_CXX=no
19997 ghcx*)
19998 # Green Hills C++ Compiler
19999 # FIXME: insert proper C++ library support
20000 ld_shlibs_CXX=no
20003 # FIXME: insert proper C++ library support
20004 ld_shlibs_CXX=no
20006 esac
20009 freebsd2.*)
20010 # C++ shared libraries reported to be fairly broken before
20011 # switch to ELF
20012 ld_shlibs_CXX=no
20015 freebsd-elf*)
20016 archive_cmds_need_lc_CXX=no
20019 freebsd* | dragonfly*)
20020 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20021 # conventions
20022 ld_shlibs_CXX=yes
20025 gnu*)
20028 haiku*)
20029 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20030 link_all_deplibs_CXX=yes
20033 hpux9*)
20034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20035 hardcode_libdir_separator_CXX=:
20036 export_dynamic_flag_spec_CXX='${wl}-E'
20037 hardcode_direct_CXX=yes
20038 hardcode_minus_L_CXX=yes # Not in the search PATH,
20039 # but as the default
20040 # location of the library.
20042 case $cc_basename in
20043 CC*)
20044 # FIXME: insert proper C++ library support
20045 ld_shlibs_CXX=no
20047 aCC*)
20048 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'
20049 # Commands to make compiler produce verbose output that lists
20050 # what "hidden" libraries, object files and flags are used when
20051 # linking a shared library.
20053 # There doesn't appear to be a way to prevent this compiler from
20054 # explicitly linking system object files so we need to strip them
20055 # from the output so that they don't get included in the library
20056 # dependencies.
20057 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"'
20060 if test "$GXX" = yes; then
20061 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'
20062 else
20063 # FIXME: insert proper C++ library support
20064 ld_shlibs_CXX=no
20067 esac
20070 hpux10*|hpux11*)
20071 if test $with_gnu_ld = no; then
20072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20073 hardcode_libdir_separator_CXX=:
20075 case $host_cpu in
20076 hppa*64*|ia64*)
20079 export_dynamic_flag_spec_CXX='${wl}-E'
20081 esac
20083 case $host_cpu in
20084 hppa*64*|ia64*)
20085 hardcode_direct_CXX=no
20086 hardcode_shlibpath_var_CXX=no
20089 hardcode_direct_CXX=yes
20090 hardcode_direct_absolute_CXX=yes
20091 hardcode_minus_L_CXX=yes # Not in the search PATH,
20092 # but as the default
20093 # location of the library.
20095 esac
20097 case $cc_basename in
20098 CC*)
20099 # FIXME: insert proper C++ library support
20100 ld_shlibs_CXX=no
20102 aCC*)
20103 case $host_cpu in
20104 hppa*64*)
20105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20107 ia64*)
20108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20113 esac
20114 # Commands to make compiler produce verbose output that lists
20115 # what "hidden" libraries, object files and flags are used when
20116 # linking a shared library.
20118 # There doesn't appear to be a way to prevent this compiler from
20119 # explicitly linking system object files so we need to strip them
20120 # from the output so that they don't get included in the library
20121 # dependencies.
20122 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"'
20125 if test "$GXX" = yes; then
20126 if test $with_gnu_ld = no; then
20127 case $host_cpu in
20128 hppa*64*)
20129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20131 ia64*)
20132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20135 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'
20137 esac
20139 else
20140 # FIXME: insert proper C++ library support
20141 ld_shlibs_CXX=no
20144 esac
20147 interix[3-9]*)
20148 hardcode_direct_CXX=no
20149 hardcode_shlibpath_var_CXX=no
20150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20151 export_dynamic_flag_spec_CXX='${wl}-E'
20152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20153 # Instead, shared libraries are loaded at an image base (0x10000000 by
20154 # default) and relocated if they conflict, which is a slow very memory
20155 # consuming and fragmenting process. To avoid this, we pick a random,
20156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20158 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'
20159 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'
20161 irix5* | irix6*)
20162 case $cc_basename in
20163 CC*)
20164 # SGI C++
20165 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'
20167 # Archives containing C++ object files must be created using
20168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20169 # necessary to make sure instantiated templates are included
20170 # in the archive.
20171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20174 if test "$GXX" = yes; then
20175 if test "$with_gnu_ld" = no; then
20176 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'
20177 else
20178 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'
20181 link_all_deplibs_CXX=yes
20183 esac
20184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20185 hardcode_libdir_separator_CXX=:
20186 inherit_rpath_CXX=yes
20189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20190 case $cc_basename in
20191 KCC*)
20192 # Kuck and Associates, Inc. (KAI) C++ Compiler
20194 # KCC will only create a shared library if the output file
20195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20196 # to its proper name (with version) after linking.
20197 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'
20198 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'
20199 # Commands to make compiler produce verbose output that lists
20200 # what "hidden" libraries, object files and flags are used when
20201 # linking a shared library.
20203 # There doesn't appear to be a way to prevent this compiler from
20204 # explicitly linking system object files so we need to strip them
20205 # from the output so that they don't get included in the library
20206 # dependencies.
20207 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"'
20209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20212 # Archives containing C++ object files must be created using
20213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20216 icpc* | ecpc* )
20217 # Intel C++
20218 with_gnu_ld=yes
20219 # version 8.0 and above of icpc choke on multiply defined symbols
20220 # if we add $predep_objects and $postdep_objects, however 7.1 and
20221 # earlier do not add the objects themselves.
20222 case `$CC -V 2>&1` in
20223 *"Version 7."*)
20224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20225 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'
20227 *) # Version 8.0 or newer
20228 tmp_idyn=
20229 case $host_cpu in
20230 ia64*) tmp_idyn=' -i_dynamic';;
20231 esac
20232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20233 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'
20235 esac
20236 archive_cmds_need_lc_CXX=no
20237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20241 pgCC* | pgcpp*)
20242 # Portland Group C++ compiler
20243 case `$CC -V` in
20244 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20245 prelink_cmds_CXX='tpldir=Template.dir~
20246 rm -rf $tpldir~
20247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20248 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20249 old_archive_cmds_CXX='tpldir=Template.dir~
20250 rm -rf $tpldir~
20251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20253 $RANLIB $oldlib'
20254 archive_cmds_CXX='tpldir=Template.dir~
20255 rm -rf $tpldir~
20256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20258 archive_expsym_cmds_CXX='tpldir=Template.dir~
20259 rm -rf $tpldir~
20260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20261 $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'
20263 *) # Version 6 and above use weak symbols
20264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20265 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'
20267 esac
20269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20271 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'
20273 cxx*)
20274 # Compaq C++
20275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20276 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'
20278 runpath_var=LD_RUN_PATH
20279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20280 hardcode_libdir_separator_CXX=:
20282 # Commands to make compiler produce verbose output that lists
20283 # what "hidden" libraries, object files and flags are used when
20284 # linking a shared library.
20286 # There doesn't appear to be a way to prevent this compiler from
20287 # explicitly linking system object files so we need to strip them
20288 # from the output so that they don't get included in the library
20289 # dependencies.
20290 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'
20292 xl* | mpixl* | bgxl*)
20293 # IBM XL 8.0 on PPC, with GNU ld
20294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20297 if test "x$supports_anon_versioning" = xyes; then
20298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20300 echo "local: *; };" >> $output_objdir/$libname.ver~
20301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20305 case `$CC -V 2>&1 | sed 5q` in
20306 *Sun\ C*)
20307 # Sun C++ 5.9
20308 no_undefined_flag_CXX=' -zdefs'
20309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20310 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'
20311 hardcode_libdir_flag_spec_CXX='-R$libdir'
20312 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'
20313 compiler_needs_object_CXX=yes
20315 # Not sure whether something based on
20316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20317 # would be better.
20318 output_verbose_link_cmd='func_echo_all'
20320 # Archives containing C++ object files must be created using
20321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20322 # necessary to make sure instantiated templates are included
20323 # in the archive.
20324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20326 esac
20328 esac
20331 lynxos*)
20332 # FIXME: insert proper C++ library support
20333 ld_shlibs_CXX=no
20336 m88k*)
20337 # FIXME: insert proper C++ library support
20338 ld_shlibs_CXX=no
20341 mvs*)
20342 case $cc_basename in
20343 cxx*)
20344 # FIXME: insert proper C++ library support
20345 ld_shlibs_CXX=no
20348 # FIXME: insert proper C++ library support
20349 ld_shlibs_CXX=no
20351 esac
20354 netbsd*)
20355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20357 wlarc=
20358 hardcode_libdir_flag_spec_CXX='-R$libdir'
20359 hardcode_direct_CXX=yes
20360 hardcode_shlibpath_var_CXX=no
20362 # Workaround some broken pre-1.5 toolchains
20363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20366 *nto* | *qnx*)
20367 ld_shlibs_CXX=yes
20370 openbsd2*)
20371 # C++ shared libraries are fairly broken
20372 ld_shlibs_CXX=no
20375 openbsd*)
20376 if test -f /usr/libexec/ld.so; then
20377 hardcode_direct_CXX=yes
20378 hardcode_shlibpath_var_CXX=no
20379 hardcode_direct_absolute_CXX=yes
20380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20384 export_dynamic_flag_spec_CXX='${wl}-E'
20385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20387 output_verbose_link_cmd=func_echo_all
20388 else
20389 ld_shlibs_CXX=no
20393 osf3* | osf4* | osf5*)
20394 case $cc_basename in
20395 KCC*)
20396 # Kuck and Associates, Inc. (KAI) C++ Compiler
20398 # KCC will only create a shared library if the output file
20399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20400 # to its proper name (with version) after linking.
20401 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'
20403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20404 hardcode_libdir_separator_CXX=:
20406 # Archives containing C++ object files must be created using
20407 # the KAI C++ compiler.
20408 case $host in
20409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20411 esac
20413 RCC*)
20414 # Rational C++ 2.4.1
20415 # FIXME: insert proper C++ library support
20416 ld_shlibs_CXX=no
20418 cxx*)
20419 case $host in
20420 osf3*)
20421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20422 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'
20423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20426 allow_undefined_flag_CXX=' -expect_unresolved \*'
20427 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'
20428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20429 echo "-hidden">> $lib.exp~
20430 $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~
20431 $RM $lib.exp'
20432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20434 esac
20436 hardcode_libdir_separator_CXX=:
20438 # Commands to make compiler produce verbose output that lists
20439 # what "hidden" libraries, object files and flags are used when
20440 # linking a shared library.
20442 # There doesn't appear to be a way to prevent this compiler from
20443 # explicitly linking system object files so we need to strip them
20444 # from the output so that they don't get included in the library
20445 # dependencies.
20446 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"'
20449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20451 case $host in
20452 osf3*)
20453 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'
20456 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'
20458 esac
20460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20461 hardcode_libdir_separator_CXX=:
20463 # Commands to make compiler produce verbose output that lists
20464 # what "hidden" libraries, object files and flags are used when
20465 # linking a shared library.
20466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20468 else
20469 # FIXME: insert proper C++ library support
20470 ld_shlibs_CXX=no
20473 esac
20476 psos*)
20477 # FIXME: insert proper C++ library support
20478 ld_shlibs_CXX=no
20481 sunos4*)
20482 case $cc_basename in
20483 CC*)
20484 # Sun C++ 4.x
20485 # FIXME: insert proper C++ library support
20486 ld_shlibs_CXX=no
20488 lcc*)
20489 # Lucid
20490 # FIXME: insert proper C++ library support
20491 ld_shlibs_CXX=no
20494 # FIXME: insert proper C++ library support
20495 ld_shlibs_CXX=no
20497 esac
20500 solaris*)
20501 case $cc_basename in
20502 CC*)
20503 # Sun C++ 4.2, 5.x and Centerline C++
20504 archive_cmds_need_lc_CXX=yes
20505 no_undefined_flag_CXX=' -zdefs'
20506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20508 $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'
20510 hardcode_libdir_flag_spec_CXX='-R$libdir'
20511 hardcode_shlibpath_var_CXX=no
20512 case $host_os in
20513 solaris2.[0-5] | solaris2.[0-5].*) ;;
20515 # The compiler driver will combine and reorder linker options,
20516 # but understands `-z linker_flag'.
20517 # Supported since Solaris 2.6 (maybe 2.5.1?)
20518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20520 esac
20521 link_all_deplibs_CXX=yes
20523 output_verbose_link_cmd='func_echo_all'
20525 # Archives containing C++ object files must be created using
20526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20527 # necessary to make sure instantiated templates are included
20528 # in the archive.
20529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20531 gcx*)
20532 # Green Hills C++ Compiler
20533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20535 # The C++ compiler must be used to create the archive.
20536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20539 # GNU C++ compiler with Solaris linker
20540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20547 # Commands to make compiler produce verbose output that lists
20548 # what "hidden" libraries, object files and flags are used when
20549 # linking a shared library.
20550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20551 else
20552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20553 # platform.
20554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20558 # Commands to make compiler produce verbose output that lists
20559 # what "hidden" libraries, object files and flags are used when
20560 # linking a shared library.
20561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20565 case $host_os in
20566 solaris2.[0-5] | solaris2.[0-5].*) ;;
20568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20570 esac
20573 esac
20576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20577 no_undefined_flag_CXX='${wl}-z,text'
20578 archive_cmds_need_lc_CXX=no
20579 hardcode_shlibpath_var_CXX=no
20580 runpath_var='LD_RUN_PATH'
20582 case $cc_basename in
20583 CC*)
20584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20591 esac
20594 sysv5* | sco3.2v5* | sco5v6*)
20595 # Note: We can NOT use -z defs as we might desire, because we do not
20596 # link with -lc, and that would cause any symbols used from libc to
20597 # always be unresolved, which means just about no library would
20598 # ever link correctly. If we're not using GNU ld we use -z text
20599 # though, which does catch some bad symbols but isn't as heavy-handed
20600 # as -z defs.
20601 no_undefined_flag_CXX='${wl}-z,text'
20602 allow_undefined_flag_CXX='${wl}-z,nodefs'
20603 archive_cmds_need_lc_CXX=no
20604 hardcode_shlibpath_var_CXX=no
20605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20606 hardcode_libdir_separator_CXX=':'
20607 link_all_deplibs_CXX=yes
20608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20609 runpath_var='LD_RUN_PATH'
20611 case $cc_basename in
20612 CC*)
20613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20615 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20616 '"$old_archive_cmds_CXX"
20617 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20618 '"$reload_cmds_CXX"
20621 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20622 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20624 esac
20627 tandem*)
20628 case $cc_basename in
20629 NCC*)
20630 # NonStop-UX NCC 3.20
20631 # FIXME: insert proper C++ library support
20632 ld_shlibs_CXX=no
20635 # FIXME: insert proper C++ library support
20636 ld_shlibs_CXX=no
20638 esac
20641 vxworks*)
20642 # FIXME: insert proper C++ library support
20643 ld_shlibs_CXX=no
20647 # FIXME: insert proper C++ library support
20648 ld_shlibs_CXX=no
20650 esac
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20653 $as_echo "$ld_shlibs_CXX" >&6; }
20654 test "$ld_shlibs_CXX" = no && can_build_shared=no
20656 GCC_CXX="$GXX"
20657 LD_CXX="$LD"
20659 ## CAVEAT EMPTOR:
20660 ## There is no encapsulation within the following macros, do not change
20661 ## the running order or otherwise move them around unless you know exactly
20662 ## what you are doing...
20663 # Dependencies to place before and after the object being linked:
20664 predep_objects_CXX=
20665 postdep_objects_CXX=
20666 predeps_CXX=
20667 postdeps_CXX=
20668 compiler_lib_search_path_CXX=
20670 cat > conftest.$ac_ext <<_LT_EOF
20671 class Foo
20673 public:
20674 Foo (void) { a = 0; }
20675 private:
20676 int a;
20678 _LT_EOF
20680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20681 (eval $ac_compile) 2>&5
20682 ac_status=$?
20683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20684 test $ac_status = 0; }; then
20685 # Parse the compiler output and extract the necessary
20686 # objects, libraries and library flags.
20688 # Sentinel used to keep track of whether or not we are before
20689 # the conftest object file.
20690 pre_test_object_deps_done=no
20692 for p in `eval "$output_verbose_link_cmd"`; do
20693 case $p in
20695 -L* | -R* | -l*)
20696 # Some compilers place space between "-{L,R}" and the path.
20697 # Remove the space.
20698 if test $p = "-L" ||
20699 test $p = "-R"; then
20700 prev=$p
20701 continue
20702 else
20703 prev=
20706 if test "$pre_test_object_deps_done" = no; then
20707 case $p in
20708 -L* | -R*)
20709 # Internal compiler library paths should come after those
20710 # provided the user. The postdeps already come after the
20711 # user supplied libs so there is no need to process them.
20712 if test -z "$compiler_lib_search_path_CXX"; then
20713 compiler_lib_search_path_CXX="${prev}${p}"
20714 else
20715 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20718 # The "-l" case would never come before the object being
20719 # linked, so don't bother handling this case.
20720 esac
20721 else
20722 if test -z "$postdeps_CXX"; then
20723 postdeps_CXX="${prev}${p}"
20724 else
20725 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20730 *.$objext)
20731 # This assumes that the test object file only shows up
20732 # once in the compiler output.
20733 if test "$p" = "conftest.$objext"; then
20734 pre_test_object_deps_done=yes
20735 continue
20738 if test "$pre_test_object_deps_done" = no; then
20739 if test -z "$predep_objects_CXX"; then
20740 predep_objects_CXX="$p"
20741 else
20742 predep_objects_CXX="$predep_objects_CXX $p"
20744 else
20745 if test -z "$postdep_objects_CXX"; then
20746 postdep_objects_CXX="$p"
20747 else
20748 postdep_objects_CXX="$postdep_objects_CXX $p"
20753 *) ;; # Ignore the rest.
20755 esac
20756 done
20758 # Clean up.
20759 rm -f a.out a.exe
20760 else
20761 echo "libtool.m4: error: problem compiling CXX test program"
20764 $RM -f confest.$objext
20766 # PORTME: override above test on systems where it is broken
20767 case $host_os in
20768 interix[3-9]*)
20769 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20770 # hack all around it, let's just trust "g++" to DTRT.
20771 predep_objects_CXX=
20772 postdep_objects_CXX=
20773 postdeps_CXX=
20776 linux*)
20777 case `$CC -V 2>&1 | sed 5q` in
20778 *Sun\ C*)
20779 # Sun C++ 5.9
20781 # The more standards-conforming stlport4 library is
20782 # incompatible with the Cstd library. Avoid specifying
20783 # it if it's in CXXFLAGS. Ignore libCrun as
20784 # -library=stlport4 depends on it.
20785 case " $CXX $CXXFLAGS " in
20786 *" -library=stlport4 "*)
20787 solaris_use_stlport4=yes
20789 esac
20791 if test "$solaris_use_stlport4" != yes; then
20792 postdeps_CXX='-library=Cstd -library=Crun'
20795 esac
20798 solaris*)
20799 case $cc_basename in
20800 CC*)
20801 # The more standards-conforming stlport4 library is
20802 # incompatible with the Cstd library. Avoid specifying
20803 # it if it's in CXXFLAGS. Ignore libCrun as
20804 # -library=stlport4 depends on it.
20805 case " $CXX $CXXFLAGS " in
20806 *" -library=stlport4 "*)
20807 solaris_use_stlport4=yes
20809 esac
20811 # Adding this requires a known-good setup of shared libraries for
20812 # Sun compiler versions before 5.6, else PIC objects from an old
20813 # archive will be linked into the output, leading to subtle bugs.
20814 if test "$solaris_use_stlport4" != yes; then
20815 postdeps_CXX='-library=Cstd -library=Crun'
20818 esac
20820 esac
20823 case " $postdeps_CXX " in
20824 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20825 esac
20826 compiler_lib_search_dirs_CXX=
20827 if test -n "${compiler_lib_search_path_CXX}"; then
20828 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20861 lt_prog_compiler_wl_CXX=
20862 lt_prog_compiler_pic_CXX=
20863 lt_prog_compiler_static_CXX=
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20866 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20868 # C++ specific cases for pic, static, wl, etc.
20869 if test "$GXX" = yes; then
20870 lt_prog_compiler_wl_CXX='-Wl,'
20871 lt_prog_compiler_static_CXX='-static'
20873 case $host_os in
20874 aix*)
20875 # All AIX code is PIC.
20876 if test "$host_cpu" = ia64; then
20877 # AIX 5 now supports IA64 processor
20878 lt_prog_compiler_static_CXX='-Bstatic'
20880 lt_prog_compiler_pic_CXX='-fPIC'
20883 amigaos*)
20884 case $host_cpu in
20885 powerpc)
20886 # see comment about AmigaOS4 .so support
20887 lt_prog_compiler_pic_CXX='-fPIC'
20889 m68k)
20890 # FIXME: we need at least 68020 code to build shared libraries, but
20891 # adding the `-m68020' flag to GCC prevents building anything better,
20892 # like `-m68040'.
20893 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20895 esac
20898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20899 # PIC is the default for these OSes.
20901 mingw* | cygwin* | os2* | pw32* | cegcc*)
20902 # This hack is so that the source file can tell whether it is being
20903 # built for inclusion in a dll (and should export symbols for example).
20904 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20905 # (--disable-auto-import) libraries
20906 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20908 darwin* | rhapsody*)
20909 # PIC is the default on this platform
20910 # Common symbols not allowed in MH_DYLIB files
20911 lt_prog_compiler_pic_CXX='-fno-common'
20913 *djgpp*)
20914 # DJGPP does not support shared libraries at all
20915 lt_prog_compiler_pic_CXX=
20917 haiku*)
20918 # PIC is the default for Haiku.
20919 # The "-static" flag exists, but is broken.
20920 lt_prog_compiler_static_CXX=
20922 interix[3-9]*)
20923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20924 # Instead, we relocate shared libraries at runtime.
20926 sysv4*MP*)
20927 if test -d /usr/nec; then
20928 lt_prog_compiler_pic_CXX=-Kconform_pic
20931 hpux*)
20932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20934 # sets the default TLS model and affects inlining.
20935 case $host_cpu in
20936 hppa*64*)
20939 lt_prog_compiler_pic_CXX='-fPIC'
20941 esac
20943 *qnx* | *nto*)
20944 # QNX uses GNU C++, but need to define -shared option too, otherwise
20945 # it will coredump.
20946 lt_prog_compiler_pic_CXX='-fPIC -shared'
20949 lt_prog_compiler_pic_CXX='-fPIC'
20951 esac
20952 else
20953 case $host_os in
20954 aix[4-9]*)
20955 # All AIX code is PIC.
20956 if test "$host_cpu" = ia64; then
20957 # AIX 5 now supports IA64 processor
20958 lt_prog_compiler_static_CXX='-Bstatic'
20959 else
20960 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20963 chorus*)
20964 case $cc_basename in
20965 cxch68*)
20966 # Green Hills C++ Compiler
20967 # _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"
20969 esac
20971 dgux*)
20972 case $cc_basename in
20973 ec++*)
20974 lt_prog_compiler_pic_CXX='-KPIC'
20976 ghcx*)
20977 # Green Hills C++ Compiler
20978 lt_prog_compiler_pic_CXX='-pic'
20982 esac
20984 freebsd* | dragonfly*)
20985 # FreeBSD uses GNU C++
20987 hpux9* | hpux10* | hpux11*)
20988 case $cc_basename in
20989 CC*)
20990 lt_prog_compiler_wl_CXX='-Wl,'
20991 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20992 if test "$host_cpu" != ia64; then
20993 lt_prog_compiler_pic_CXX='+Z'
20996 aCC*)
20997 lt_prog_compiler_wl_CXX='-Wl,'
20998 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20999 case $host_cpu in
21000 hppa*64*|ia64*)
21001 # +Z the default
21004 lt_prog_compiler_pic_CXX='+Z'
21006 esac
21010 esac
21012 interix*)
21013 # This is c89, which is MS Visual C++ (no shared libs)
21014 # Anyone wants to do a port?
21016 irix5* | irix6* | nonstopux*)
21017 case $cc_basename in
21018 CC*)
21019 lt_prog_compiler_wl_CXX='-Wl,'
21020 lt_prog_compiler_static_CXX='-non_shared'
21021 # CC pic flag -KPIC is the default.
21025 esac
21027 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21028 case $cc_basename in
21029 KCC*)
21030 # KAI C++ Compiler
21031 lt_prog_compiler_wl_CXX='--backend -Wl,'
21032 lt_prog_compiler_pic_CXX='-fPIC'
21034 ecpc* )
21035 # old Intel C++ for x86_64 which still supported -KPIC.
21036 lt_prog_compiler_wl_CXX='-Wl,'
21037 lt_prog_compiler_pic_CXX='-KPIC'
21038 lt_prog_compiler_static_CXX='-static'
21040 icpc* )
21041 # Intel C++, used to be incompatible with GCC.
21042 # ICC 10 doesn't accept -KPIC any more.
21043 lt_prog_compiler_wl_CXX='-Wl,'
21044 lt_prog_compiler_pic_CXX='-fPIC'
21045 lt_prog_compiler_static_CXX='-static'
21047 pgCC* | pgcpp*)
21048 # Portland Group C++ compiler
21049 lt_prog_compiler_wl_CXX='-Wl,'
21050 lt_prog_compiler_pic_CXX='-fpic'
21051 lt_prog_compiler_static_CXX='-Bstatic'
21053 cxx*)
21054 # Compaq C++
21055 # Make sure the PIC flag is empty. It appears that all Alpha
21056 # Linux and Compaq Tru64 Unix objects are PIC.
21057 lt_prog_compiler_pic_CXX=
21058 lt_prog_compiler_static_CXX='-non_shared'
21060 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21061 # IBM XL 8.0, 9.0 on PPC and BlueGene
21062 lt_prog_compiler_wl_CXX='-Wl,'
21063 lt_prog_compiler_pic_CXX='-qpic'
21064 lt_prog_compiler_static_CXX='-qstaticlink'
21067 case `$CC -V 2>&1 | sed 5q` in
21068 *Sun\ C*)
21069 # Sun C++ 5.9
21070 lt_prog_compiler_pic_CXX='-KPIC'
21071 lt_prog_compiler_static_CXX='-Bstatic'
21072 lt_prog_compiler_wl_CXX='-Qoption ld '
21074 esac
21076 esac
21078 lynxos*)
21080 m88k*)
21082 mvs*)
21083 case $cc_basename in
21084 cxx*)
21085 lt_prog_compiler_pic_CXX='-W c,exportall'
21089 esac
21091 netbsd*)
21093 *qnx* | *nto*)
21094 # QNX uses GNU C++, but need to define -shared option too, otherwise
21095 # it will coredump.
21096 lt_prog_compiler_pic_CXX='-fPIC -shared'
21098 osf3* | osf4* | osf5*)
21099 case $cc_basename in
21100 KCC*)
21101 lt_prog_compiler_wl_CXX='--backend -Wl,'
21103 RCC*)
21104 # Rational C++ 2.4.1
21105 lt_prog_compiler_pic_CXX='-pic'
21107 cxx*)
21108 # Digital/Compaq C++
21109 lt_prog_compiler_wl_CXX='-Wl,'
21110 # Make sure the PIC flag is empty. It appears that all Alpha
21111 # Linux and Compaq Tru64 Unix objects are PIC.
21112 lt_prog_compiler_pic_CXX=
21113 lt_prog_compiler_static_CXX='-non_shared'
21117 esac
21119 psos*)
21121 solaris*)
21122 case $cc_basename in
21123 CC*)
21124 # Sun C++ 4.2, 5.x and Centerline C++
21125 lt_prog_compiler_pic_CXX='-KPIC'
21126 lt_prog_compiler_static_CXX='-Bstatic'
21127 lt_prog_compiler_wl_CXX='-Qoption ld '
21129 gcx*)
21130 # Green Hills C++ Compiler
21131 lt_prog_compiler_pic_CXX='-PIC'
21135 esac
21137 sunos4*)
21138 case $cc_basename in
21139 CC*)
21140 # Sun C++ 4.x
21141 lt_prog_compiler_pic_CXX='-pic'
21142 lt_prog_compiler_static_CXX='-Bstatic'
21144 lcc*)
21145 # Lucid
21146 lt_prog_compiler_pic_CXX='-pic'
21150 esac
21152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21153 case $cc_basename in
21154 CC*)
21155 lt_prog_compiler_wl_CXX='-Wl,'
21156 lt_prog_compiler_pic_CXX='-KPIC'
21157 lt_prog_compiler_static_CXX='-Bstatic'
21159 esac
21161 tandem*)
21162 case $cc_basename in
21163 NCC*)
21164 # NonStop-UX NCC 3.20
21165 lt_prog_compiler_pic_CXX='-KPIC'
21169 esac
21171 vxworks*)
21174 lt_prog_compiler_can_build_shared_CXX=no
21176 esac
21179 case $host_os in
21180 # For platforms which do not support PIC, -DPIC is meaningless:
21181 *djgpp*)
21182 lt_prog_compiler_pic_CXX=
21185 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21187 esac
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21189 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21194 # Check to make sure the PIC flag actually works.
21196 if test -n "$lt_prog_compiler_pic_CXX"; then
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21198 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21199 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21200 $as_echo_n "(cached) " >&6
21201 else
21202 lt_cv_prog_compiler_pic_works_CXX=no
21203 ac_outfile=conftest.$ac_objext
21204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21205 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21206 # Insert the option either (1) after the last *FLAGS variable, or
21207 # (2) before a word containing "conftest.", or (3) at the end.
21208 # Note that $ac_compile itself does not contain backslashes and begins
21209 # with a dollar sign (not a hyphen), so the echo should work correctly.
21210 # The option is referenced via a variable to avoid confusing sed.
21211 lt_compile=`echo "$ac_compile" | $SED \
21212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21214 -e 's:$: $lt_compiler_flag:'`
21215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21216 (eval "$lt_compile" 2>conftest.err)
21217 ac_status=$?
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 if (exit $ac_status) && test -s "$ac_outfile"; then
21221 # The compiler can only warn and ignore the option if not recognized
21222 # So say no if there are warnings other than the usual output.
21223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21225 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21226 lt_cv_prog_compiler_pic_works_CXX=yes
21229 $RM conftest*
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21233 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21235 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21236 case $lt_prog_compiler_pic_CXX in
21237 "" | " "*) ;;
21238 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21239 esac
21240 else
21241 lt_prog_compiler_pic_CXX=
21242 lt_prog_compiler_can_build_shared_CXX=no
21250 # Check to make sure the static flag actually works.
21252 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21254 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21255 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 lt_cv_prog_compiler_static_works_CXX=no
21259 save_LDFLAGS="$LDFLAGS"
21260 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21261 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21263 # The linker can only warn and ignore the option if not recognized
21264 # So say no if there are warnings
21265 if test -s conftest.err; then
21266 # Append any errors to the config.log.
21267 cat conftest.err 1>&5
21268 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21270 if diff conftest.exp conftest.er2 >/dev/null; then
21271 lt_cv_prog_compiler_static_works_CXX=yes
21273 else
21274 lt_cv_prog_compiler_static_works_CXX=yes
21277 $RM -r conftest*
21278 LDFLAGS="$save_LDFLAGS"
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21282 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21284 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
21286 else
21287 lt_prog_compiler_static_CXX=
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21295 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21296 $as_echo_n "(cached) " >&6
21297 else
21298 lt_cv_prog_compiler_c_o_CXX=no
21299 $RM -r conftest 2>/dev/null
21300 mkdir conftest
21301 cd conftest
21302 mkdir out
21303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21305 lt_compiler_flag="-o out/conftest2.$ac_objext"
21306 # Insert the option either (1) after the last *FLAGS variable, or
21307 # (2) before a word containing "conftest.", or (3) at the end.
21308 # Note that $ac_compile itself does not contain backslashes and begins
21309 # with a dollar sign (not a hyphen), so the echo should work correctly.
21310 lt_compile=`echo "$ac_compile" | $SED \
21311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21313 -e 's:$: $lt_compiler_flag:'`
21314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21315 (eval "$lt_compile" 2>out/conftest.err)
21316 ac_status=$?
21317 cat out/conftest.err >&5
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21320 then
21321 # The compiler can only warn and ignore the option if not recognized
21322 # So say no if there are warnings
21323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21326 lt_cv_prog_compiler_c_o_CXX=yes
21329 chmod u+w . 2>&5
21330 $RM conftest*
21331 # SGI C++ compiler will create directory out/ii_files/ for
21332 # template instantiation
21333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21334 $RM out/* && rmdir out
21335 cd ..
21336 $RM -r conftest
21337 $RM conftest*
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21341 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21347 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21348 $as_echo_n "(cached) " >&6
21349 else
21350 lt_cv_prog_compiler_c_o_CXX=no
21351 $RM -r conftest 2>/dev/null
21352 mkdir conftest
21353 cd conftest
21354 mkdir out
21355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21357 lt_compiler_flag="-o out/conftest2.$ac_objext"
21358 # Insert the option either (1) after the last *FLAGS variable, or
21359 # (2) before a word containing "conftest.", or (3) at the end.
21360 # Note that $ac_compile itself does not contain backslashes and begins
21361 # with a dollar sign (not a hyphen), so the echo should work correctly.
21362 lt_compile=`echo "$ac_compile" | $SED \
21363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21365 -e 's:$: $lt_compiler_flag:'`
21366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21367 (eval "$lt_compile" 2>out/conftest.err)
21368 ac_status=$?
21369 cat out/conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21372 then
21373 # The compiler can only warn and ignore the option if not recognized
21374 # So say no if there are warnings
21375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21376 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21377 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21378 lt_cv_prog_compiler_c_o_CXX=yes
21381 chmod u+w . 2>&5
21382 $RM conftest*
21383 # SGI C++ compiler will create directory out/ii_files/ for
21384 # template instantiation
21385 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21386 $RM out/* && rmdir out
21387 cd ..
21388 $RM -r conftest
21389 $RM conftest*
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21393 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21398 hard_links="nottested"
21399 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
21400 # do not overwrite the value of need_locks provided by the user
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21402 $as_echo_n "checking if we can lock with hard links... " >&6; }
21403 hard_links=yes
21404 $RM conftest*
21405 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21406 touch conftest.a
21407 ln conftest.a conftest.b 2>&5 || hard_links=no
21408 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21410 $as_echo "$hard_links" >&6; }
21411 if test "$hard_links" = no; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21413 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21414 need_locks=warn
21416 else
21417 need_locks=no
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21423 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21425 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21426 case $host_os in
21427 aix[4-9]*)
21428 # If we're using GNU nm, then we don't want the "-C" option.
21429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21430 # Also, AIX nm treats weak defined symbols like other global defined
21431 # symbols, whereas GNU nm marks them as "W".
21432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21433 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'
21434 else
21435 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'
21438 pw32*)
21439 export_symbols_cmds_CXX="$ltdll_cmds"
21441 cygwin* | mingw* | cegcc*)
21442 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'
21445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21447 esac
21448 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21451 $as_echo "$ld_shlibs_CXX" >&6; }
21452 test "$ld_shlibs_CXX" = no && can_build_shared=no
21454 with_gnu_ld_CXX=$with_gnu_ld
21462 # Do we need to explicitly link libc?
21464 case "x$archive_cmds_need_lc_CXX" in
21465 x|xyes)
21466 # Assume -lc should be added
21467 archive_cmds_need_lc_CXX=yes
21469 if test "$enable_shared" = yes && test "$GCC" = yes; then
21470 case $archive_cmds_CXX in
21471 *'~'*)
21472 # FIXME: we may have to deal with multi-command sequences.
21474 '$CC '*)
21475 # Test whether the compiler implicitly links with -lc since on some
21476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21477 # to ld, don't add -lc before -lgcc.
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21479 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21480 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483 $RM conftest*
21484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21487 (eval $ac_compile) 2>&5
21488 ac_status=$?
21489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21490 test $ac_status = 0; } 2>conftest.err; then
21491 soname=conftest
21492 lib=conftest
21493 libobjs=conftest.$ac_objext
21494 deplibs=
21495 wl=$lt_prog_compiler_wl_CXX
21496 pic_flag=$lt_prog_compiler_pic_CXX
21497 compiler_flags=-v
21498 linker_flags=-v
21499 verstring=
21500 output_objdir=.
21501 libname=conftest
21502 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21503 allow_undefined_flag_CXX=
21504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21505 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21506 ac_status=$?
21507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21508 test $ac_status = 0; }
21509 then
21510 lt_cv_archive_cmds_need_lc_CXX=no
21511 else
21512 lt_cv_archive_cmds_need_lc_CXX=yes
21514 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21515 else
21516 cat conftest.err 1>&5
21518 $RM conftest*
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21522 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21523 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21525 esac
21528 esac
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21594 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21596 library_names_spec=
21597 libname_spec='lib$name'
21598 soname_spec=
21599 shrext_cmds=".so"
21600 postinstall_cmds=
21601 postuninstall_cmds=
21602 finish_cmds=
21603 finish_eval=
21604 shlibpath_var=
21605 shlibpath_overrides_runpath=unknown
21606 version_type=none
21607 dynamic_linker="$host_os ld.so"
21608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21609 need_lib_prefix=unknown
21610 hardcode_into_libs=no
21612 # when you set need_version to no, make sure it does not cause -set_version
21613 # flags to be left without arguments
21614 need_version=unknown
21616 case $host_os in
21617 aix3*)
21618 version_type=linux
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21620 shlibpath_var=LIBPATH
21622 # AIX 3 has no versioning support, so we append a major version to the name.
21623 soname_spec='${libname}${release}${shared_ext}$major'
21626 aix[4-9]*)
21627 version_type=linux
21628 need_lib_prefix=no
21629 need_version=no
21630 hardcode_into_libs=yes
21631 if test "$host_cpu" = ia64; then
21632 # AIX 5 supports IA64
21633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21634 shlibpath_var=LD_LIBRARY_PATH
21635 else
21636 # With GCC up to 2.95.x, collect2 would create an import file
21637 # for dependence libraries. The import file would start with
21638 # the line `#! .'. This would cause the generated library to
21639 # depend on `.', always an invalid library. This was fixed in
21640 # development snapshots of GCC prior to 3.0.
21641 case $host_os in
21642 aix4 | aix4.[01] | aix4.[01].*)
21643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21644 echo ' yes '
21645 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21647 else
21648 can_build_shared=no
21651 esac
21652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21653 # soname into executable. Probably we can add versioning support to
21654 # collect2, so additional links can be useful in future.
21655 if test "$aix_use_runtimelinking" = yes; then
21656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21657 # instead of lib<name>.a to let people know that these are not
21658 # typical AIX shared libraries.
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21660 else
21661 # We preserve .a as extension for shared libraries through AIX4.2
21662 # and later when we are not doing run time linking.
21663 library_names_spec='${libname}${release}.a $libname.a'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21666 shlibpath_var=LIBPATH
21670 amigaos*)
21671 case $host_cpu in
21672 powerpc)
21673 # Since July 2007 AmigaOS4 officially supports .so libraries.
21674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21677 m68k)
21678 library_names_spec='$libname.ixlibrary $libname.a'
21679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21680 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'
21682 esac
21685 beos*)
21686 library_names_spec='${libname}${shared_ext}'
21687 dynamic_linker="$host_os ld.so"
21688 shlibpath_var=LIBRARY_PATH
21691 bsdi[45]*)
21692 version_type=linux
21693 need_version=no
21694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21695 soname_spec='${libname}${release}${shared_ext}$major'
21696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21697 shlibpath_var=LD_LIBRARY_PATH
21698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21700 # the default ld.so.conf also contains /usr/contrib/lib and
21701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21702 # libtool to hard-code these into programs
21705 cygwin* | mingw* | pw32* | cegcc*)
21706 version_type=windows
21707 shrext_cmds=".dll"
21708 need_version=no
21709 need_lib_prefix=no
21711 case $GCC,$host_os in
21712 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21713 library_names_spec='$libname.dll.a'
21714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21715 postinstall_cmds='base_file=`basename \${file}`~
21716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21717 dldir=$destdir/`dirname \$dlpath`~
21718 test -d \$dldir || mkdir -p \$dldir~
21719 $install_prog $dir/$dlname \$dldir/$dlname~
21720 chmod a+x \$dldir/$dlname~
21721 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21722 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21725 dlpath=$dir/\$dldll~
21726 $RM \$dlpath'
21727 shlibpath_overrides_runpath=yes
21729 case $host_os in
21730 cygwin*)
21731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21735 mingw* | cegcc*)
21736 # MinGW DLLs use traditional 'lib' prefix
21737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21739 pw32*)
21740 # pw32 DLLs use 'pw' prefix rather than 'lib'
21741 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21743 esac
21747 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21749 esac
21750 dynamic_linker='Win32 ld.exe'
21751 # FIXME: first we should search . and the directory the executable is in
21752 shlibpath_var=PATH
21755 darwin* | rhapsody*)
21756 dynamic_linker="$host_os dyld"
21757 version_type=darwin
21758 need_lib_prefix=no
21759 need_version=no
21760 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21761 soname_spec='${libname}${release}${major}$shared_ext'
21762 shlibpath_overrides_runpath=yes
21763 shlibpath_var=DYLD_LIBRARY_PATH
21764 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21769 dgux*)
21770 version_type=linux
21771 need_lib_prefix=no
21772 need_version=no
21773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21774 soname_spec='${libname}${release}${shared_ext}$major'
21775 shlibpath_var=LD_LIBRARY_PATH
21778 freebsd* | dragonfly*)
21779 # DragonFly does not have aout. When/if they implement a new
21780 # versioning mechanism, adjust this.
21781 if test -x /usr/bin/objformat; then
21782 objformat=`/usr/bin/objformat`
21783 else
21784 case $host_os in
21785 freebsd[23].*) objformat=aout ;;
21786 *) objformat=elf ;;
21787 esac
21789 version_type=freebsd-$objformat
21790 case $version_type in
21791 freebsd-elf*)
21792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21793 need_version=no
21794 need_lib_prefix=no
21796 freebsd-*)
21797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21798 need_version=yes
21800 esac
21801 shlibpath_var=LD_LIBRARY_PATH
21802 case $host_os in
21803 freebsd2.*)
21804 shlibpath_overrides_runpath=yes
21806 freebsd3.[01]* | freebsdelf3.[01]*)
21807 shlibpath_overrides_runpath=yes
21808 hardcode_into_libs=yes
21810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21812 shlibpath_overrides_runpath=no
21813 hardcode_into_libs=yes
21815 *) # from 4.6 on, and DragonFly
21816 shlibpath_overrides_runpath=yes
21817 hardcode_into_libs=yes
21819 esac
21822 gnu*)
21823 version_type=linux
21824 need_lib_prefix=no
21825 need_version=no
21826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21827 soname_spec='${libname}${release}${shared_ext}$major'
21828 shlibpath_var=LD_LIBRARY_PATH
21829 hardcode_into_libs=yes
21832 haiku*)
21833 version_type=linux
21834 need_lib_prefix=no
21835 need_version=no
21836 dynamic_linker="$host_os runtime_loader"
21837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21838 soname_spec='${libname}${release}${shared_ext}$major'
21839 shlibpath_var=LIBRARY_PATH
21840 shlibpath_overrides_runpath=yes
21841 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21842 hardcode_into_libs=yes
21845 hpux9* | hpux10* | hpux11*)
21846 # Give a soname corresponding to the major version so that dld.sl refuses to
21847 # link against other versions.
21848 version_type=sunos
21849 need_lib_prefix=no
21850 need_version=no
21851 case $host_cpu in
21852 ia64*)
21853 shrext_cmds='.so'
21854 hardcode_into_libs=yes
21855 dynamic_linker="$host_os dld.so"
21856 shlibpath_var=LD_LIBRARY_PATH
21857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21859 soname_spec='${libname}${release}${shared_ext}$major'
21860 if test "X$HPUX_IA64_MODE" = X32; then
21861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21862 else
21863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21867 hppa*64*)
21868 shrext_cmds='.sl'
21869 hardcode_into_libs=yes
21870 dynamic_linker="$host_os dld.sl"
21871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21874 soname_spec='${libname}${release}${shared_ext}$major'
21875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21879 shrext_cmds='.sl'
21880 dynamic_linker="$host_os dld.sl"
21881 shlibpath_var=SHLIB_PATH
21882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21884 soname_spec='${libname}${release}${shared_ext}$major'
21886 esac
21887 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21888 postinstall_cmds='chmod 555 $lib'
21889 # or fails outright, so override atomically:
21890 install_override_mode=555
21893 interix[3-9]*)
21894 version_type=linux
21895 need_lib_prefix=no
21896 need_version=no
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21900 shlibpath_var=LD_LIBRARY_PATH
21901 shlibpath_overrides_runpath=no
21902 hardcode_into_libs=yes
21905 irix5* | irix6* | nonstopux*)
21906 case $host_os in
21907 nonstopux*) version_type=nonstopux ;;
21909 if test "$lt_cv_prog_gnu_ld" = yes; then
21910 version_type=linux
21911 else
21912 version_type=irix
21913 fi ;;
21914 esac
21915 need_lib_prefix=no
21916 need_version=no
21917 soname_spec='${libname}${release}${shared_ext}$major'
21918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21919 case $host_os in
21920 irix5* | nonstopux*)
21921 libsuff= shlibsuff=
21924 case $LD in # libtool.m4 will add one of these switches to LD
21925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21926 libsuff= shlibsuff= libmagic=32-bit;;
21927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21928 libsuff=32 shlibsuff=N32 libmagic=N32;;
21929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21931 *) libsuff= shlibsuff= libmagic=never-match;;
21932 esac
21934 esac
21935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21936 shlibpath_overrides_runpath=no
21937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21939 hardcode_into_libs=yes
21942 # No shared lib support for Linux oldld, aout, or coff.
21943 linux*oldld* | linux*aout* | linux*coff*)
21944 dynamic_linker=no
21947 # This must be Linux ELF.
21949 # uclinux* changes (here and below) have been submitted to the libtool
21950 # project, but have not yet been accepted: they are GCC-local changes
21951 # for the time being. (See
21952 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21953 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
21954 version_type=linux
21955 need_lib_prefix=no
21956 need_version=no
21957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21958 soname_spec='${libname}${release}${shared_ext}$major'
21959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21960 shlibpath_var=LD_LIBRARY_PATH
21961 shlibpath_overrides_runpath=no
21963 # Some binutils ld are patched to set DT_RUNPATH
21964 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21965 $as_echo_n "(cached) " >&6
21966 else
21967 lt_cv_shlibpath_overrides_runpath=no
21968 save_LDFLAGS=$LDFLAGS
21969 save_libdir=$libdir
21970 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21971 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21976 main ()
21980 return 0;
21982 _ACEOF
21983 if ac_fn_cxx_try_link "$LINENO"; then :
21984 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21985 lt_cv_shlibpath_overrides_runpath=yes
21988 rm -f core conftest.err conftest.$ac_objext \
21989 conftest$ac_exeext conftest.$ac_ext
21990 LDFLAGS=$save_LDFLAGS
21991 libdir=$save_libdir
21995 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21997 # This implies no fast_install, which is unacceptable.
21998 # Some rework will be needed to allow for fast_install
21999 # before this can be enabled.
22000 hardcode_into_libs=yes
22002 # Append ld.so.conf contents to the search path
22003 if test -f /etc/ld.so.conf; then
22004 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' ' '`
22005 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22008 # We used to test for /lib/ld.so.1 and disable shared libraries on
22009 # powerpc, because MkLinux only supported shared libraries with the
22010 # GNU dynamic linker. Since this was broken with cross compilers,
22011 # most powerpc-linux boxes support dynamic linking these days and
22012 # people can always --disable-shared, the test was removed, and we
22013 # assume the GNU/Linux dynamic linker is in use.
22014 dynamic_linker='GNU/Linux ld.so'
22017 netbsd*)
22018 version_type=sunos
22019 need_lib_prefix=no
22020 need_version=no
22021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22024 dynamic_linker='NetBSD (a.out) ld.so'
22025 else
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22027 soname_spec='${libname}${release}${shared_ext}$major'
22028 dynamic_linker='NetBSD ld.elf_so'
22030 shlibpath_var=LD_LIBRARY_PATH
22031 shlibpath_overrides_runpath=yes
22032 hardcode_into_libs=yes
22035 newsos6)
22036 version_type=linux
22037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22038 shlibpath_var=LD_LIBRARY_PATH
22039 shlibpath_overrides_runpath=yes
22042 *nto* | *qnx*)
22043 version_type=qnx
22044 need_lib_prefix=no
22045 need_version=no
22046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22047 soname_spec='${libname}${release}${shared_ext}$major'
22048 shlibpath_var=LD_LIBRARY_PATH
22049 shlibpath_overrides_runpath=no
22050 hardcode_into_libs=yes
22051 dynamic_linker='ldqnx.so'
22054 openbsd*)
22055 version_type=sunos
22056 sys_lib_dlsearch_path_spec="/usr/lib"
22057 need_lib_prefix=no
22058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22059 case $host_os in
22060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22061 *) need_version=no ;;
22062 esac
22063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22065 shlibpath_var=LD_LIBRARY_PATH
22066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22067 case $host_os in
22068 openbsd2.[89] | openbsd2.[89].*)
22069 shlibpath_overrides_runpath=no
22072 shlibpath_overrides_runpath=yes
22074 esac
22075 else
22076 shlibpath_overrides_runpath=yes
22080 os2*)
22081 libname_spec='$name'
22082 shrext_cmds=".dll"
22083 need_lib_prefix=no
22084 library_names_spec='$libname${shared_ext} $libname.a'
22085 dynamic_linker='OS/2 ld.exe'
22086 shlibpath_var=LIBPATH
22089 osf3* | osf4* | osf5*)
22090 version_type=osf
22091 need_lib_prefix=no
22092 need_version=no
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22095 shlibpath_var=LD_LIBRARY_PATH
22096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22100 rdos*)
22101 dynamic_linker=no
22104 solaris*)
22105 version_type=linux
22106 need_lib_prefix=no
22107 need_version=no
22108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22109 soname_spec='${libname}${release}${shared_ext}$major'
22110 shlibpath_var=LD_LIBRARY_PATH
22111 shlibpath_overrides_runpath=yes
22112 hardcode_into_libs=yes
22113 # ldd complains unless libraries are executable
22114 postinstall_cmds='chmod +x $lib'
22117 sunos4*)
22118 version_type=sunos
22119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22121 shlibpath_var=LD_LIBRARY_PATH
22122 shlibpath_overrides_runpath=yes
22123 if test "$with_gnu_ld" = yes; then
22124 need_lib_prefix=no
22126 need_version=yes
22129 sysv4 | sysv4.3*)
22130 version_type=linux
22131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22132 soname_spec='${libname}${release}${shared_ext}$major'
22133 shlibpath_var=LD_LIBRARY_PATH
22134 case $host_vendor in
22135 sni)
22136 shlibpath_overrides_runpath=no
22137 need_lib_prefix=no
22138 runpath_var=LD_RUN_PATH
22140 siemens)
22141 need_lib_prefix=no
22143 motorola)
22144 need_lib_prefix=no
22145 need_version=no
22146 shlibpath_overrides_runpath=no
22147 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22149 esac
22152 sysv4*MP*)
22153 if test -d /usr/nec ;then
22154 version_type=linux
22155 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22156 soname_spec='$libname${shared_ext}.$major'
22157 shlibpath_var=LD_LIBRARY_PATH
22161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22162 version_type=freebsd-elf
22163 need_lib_prefix=no
22164 need_version=no
22165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22166 soname_spec='${libname}${release}${shared_ext}$major'
22167 shlibpath_var=LD_LIBRARY_PATH
22168 shlibpath_overrides_runpath=yes
22169 hardcode_into_libs=yes
22170 if test "$with_gnu_ld" = yes; then
22171 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22172 else
22173 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22174 case $host_os in
22175 sco3.2v5*)
22176 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22178 esac
22180 sys_lib_dlsearch_path_spec='/usr/lib'
22183 tpf*)
22184 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22185 version_type=linux
22186 need_lib_prefix=no
22187 need_version=no
22188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22189 shlibpath_var=LD_LIBRARY_PATH
22190 shlibpath_overrides_runpath=no
22191 hardcode_into_libs=yes
22194 uts4*)
22195 version_type=linux
22196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22197 soname_spec='${libname}${release}${shared_ext}$major'
22198 shlibpath_var=LD_LIBRARY_PATH
22202 dynamic_linker=no
22204 esac
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22206 $as_echo "$dynamic_linker" >&6; }
22207 test "$dynamic_linker" = no && can_build_shared=no
22209 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22210 if test "$GCC" = yes; then
22211 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22214 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22215 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22217 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22218 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22259 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22260 hardcode_action_CXX=
22261 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22262 test -n "$runpath_var_CXX" ||
22263 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22265 # We can hardcode non-existent directories.
22266 if test "$hardcode_direct_CXX" != no &&
22267 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22268 # have to relink, otherwise we might link with an installed library
22269 # when we should be linking with a yet-to-be-installed one
22270 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22271 test "$hardcode_minus_L_CXX" != no; then
22272 # Linking always hardcodes the temporary library directory.
22273 hardcode_action_CXX=relink
22274 else
22275 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22276 hardcode_action_CXX=immediate
22278 else
22279 # We cannot hardcode anything, or else we can only hardcode existing
22280 # directories.
22281 hardcode_action_CXX=unsupported
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22284 $as_echo "$hardcode_action_CXX" >&6; }
22286 if test "$hardcode_action_CXX" = relink ||
22287 test "$inherit_rpath_CXX" = yes; then
22288 # Fast installation is not supported
22289 enable_fast_install=no
22290 elif test "$shlibpath_overrides_runpath" = yes ||
22291 test "$enable_shared" = no; then
22292 # Fast installation is not necessary
22293 enable_fast_install=needless
22302 fi # test -n "$compiler"
22304 CC=$lt_save_CC
22305 LDCXX=$LD
22306 LD=$lt_save_LD
22307 GCC=$lt_save_GCC
22308 with_gnu_ld=$lt_save_with_gnu_ld
22309 lt_cv_path_LDCXX=$lt_cv_path_LD
22310 lt_cv_path_LD=$lt_save_path_LD
22311 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22312 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22313 fi # test "$_lt_caught_CXX_error" != yes
22315 ac_ext=cpp
22316 ac_cpp='$CXXCPP $CPPFLAGS'
22317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22336 # Only expand once:
22342 # Identify the assembler which will work hand-in-glove with the newly
22343 # built GCC, so that we can examine its features. This is the assembler
22344 # which will be driven by the driver program.
22346 # If build != host, and we aren't building gas in-tree, we identify a
22347 # build->target assembler and hope that it will have the same features
22348 # as the host->target assembler we'll be using.
22349 gcc_cv_gas_major_version=
22350 gcc_cv_gas_minor_version=
22351 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22353 if ${gcc_cv_as+:} false; then :
22355 else
22357 if test -x "$DEFAULT_ASSEMBLER"; then
22358 gcc_cv_as="$DEFAULT_ASSEMBLER"
22359 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22360 && test -f ../gas/Makefile \
22361 && test x$build = x$host; then
22362 gcc_cv_as=../gas/as-new$build_exeext
22363 elif test -x as$build_exeext; then
22364 # Build using assembler in the current directory.
22365 gcc_cv_as=./as$build_exeext
22366 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
22367 gcc_cv_as="$AS_FOR_TARGET"
22368 else
22369 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22370 set dummy $AS_FOR_TARGET; ac_word=$2
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22372 $as_echo_n "checking for $ac_word... " >&6; }
22373 if ${ac_cv_path_gcc_cv_as+:} false; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 case $gcc_cv_as in
22377 [\\/]* | ?:[\\/]*)
22378 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
22381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22382 for as_dir in $PATH
22384 IFS=$as_save_IFS
22385 test -z "$as_dir" && as_dir=.
22386 for ac_exec_ext in '' $ac_executable_extensions; do
22387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22388 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
22389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22390 break 2
22392 done
22393 done
22394 IFS=$as_save_IFS
22397 esac
22399 gcc_cv_as=$ac_cv_path_gcc_cv_as
22400 if test -n "$gcc_cv_as"; then
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22402 $as_echo "$gcc_cv_as" >&6; }
22403 else
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22405 $as_echo "no" >&6; }
22412 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
22414 case "$ORIGINAL_AS_FOR_TARGET" in
22415 ./as | ./as$build_exeext) ;;
22416 *) ac_config_files="$ac_config_files as:exec-tool.in"
22418 esac
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22421 $as_echo_n "checking what assembler to use... " >&6; }
22422 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
22423 # Single tree build which includes gas. We want to prefer it
22424 # over whatever linker top-level may have detected, since
22425 # we'll use what we're building after installation anyway.
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22427 $as_echo "newly built gas" >&6; }
22428 in_tree_gas=yes
22429 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22430 for f in $gcc_cv_as_bfd_srcdir/configure \
22431 $gcc_cv_as_gas_srcdir/configure \
22432 $gcc_cv_as_gas_srcdir/configure.ac \
22433 $gcc_cv_as_gas_srcdir/Makefile.in ; do
22434 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22435 if test x$gcc_cv_gas_version != x; then
22436 break
22438 done
22439 case $gcc_cv_gas_version in
22440 VERSION=[0-9]*) ;;
22441 *) as_fn_error $? "cannot find version of in-tree assembler" "$LINENO" 5;;
22442 esac
22443 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22444 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22445 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22446 case $gcc_cv_gas_patch_version in
22447 "") gcc_cv_gas_patch_version="0" ;;
22448 esac
22449 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22450 + $gcc_cv_gas_minor_version \) \* 1000 \
22451 + $gcc_cv_gas_patch_version`
22453 in_tree_gas_is_elf=no
22454 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22455 || (grep 'obj_format = multi' ../gas/Makefile \
22456 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22457 then
22458 in_tree_gas_is_elf=yes
22460 else
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22462 $as_echo "$gcc_cv_as" >&6; }
22463 in_tree_gas=no
22466 default_ld=
22467 # Check whether --enable-ld was given.
22468 if test "${enable_ld+set}" = set; then :
22469 enableval=$enable_ld; case "${enableval}" in
22471 default_ld=ld.gold
22473 esac
22477 install_gold_as_default=no
22478 # Check whether --enable-gold was given.
22479 if test "${enable_gold+set}" = set; then :
22480 enableval=$enable_gold; case "${enableval}" in
22481 default)
22482 install_gold_as_default=yes
22484 yes)
22485 if test x${default_ld} != x; then
22486 install_gold_as_default=yes
22492 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
22494 esac
22498 # Identify the linker which will work hand-in-glove with the newly
22499 # built GCC, so that we can examine its features. This is the linker
22500 # which will be driven by the driver program.
22502 # If build != host, and we aren't building gas in-tree, we identify a
22503 # build->target linker and hope that it will have the same features
22504 # as the host->target linker we'll be using.
22505 gcc_cv_gld_major_version=
22506 gcc_cv_gld_minor_version=
22507 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22508 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22509 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22511 if ${gcc_cv_ld+:} false; then :
22513 else
22515 if test -x "$DEFAULT_LINKER"; then
22516 gcc_cv_ld="$DEFAULT_LINKER"
22517 elif test $install_gold_as_default = yes \
22518 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22519 && test -f ../gold/Makefile \
22520 && test x$build = x$host; then
22521 gcc_cv_ld=../gold/ld-new$build_exeext
22522 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22523 && test -f ../ld/Makefile \
22524 && test x$build = x$host; then
22525 gcc_cv_ld=../ld/ld-new$build_exeext
22526 elif test -x collect-ld$build_exeext; then
22527 # Build using linker in the current directory.
22528 gcc_cv_ld=./collect-ld$build_exeext
22529 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22530 gcc_cv_ld="$LD_FOR_TARGET"
22531 else
22532 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22533 set dummy $LD_FOR_TARGET; ac_word=$2
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22535 $as_echo_n "checking for $ac_word... " >&6; }
22536 if ${ac_cv_path_gcc_cv_ld+:} false; then :
22537 $as_echo_n "(cached) " >&6
22538 else
22539 case $gcc_cv_ld in
22540 [\\/]* | ?:[\\/]*)
22541 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22545 for as_dir in $PATH
22547 IFS=$as_save_IFS
22548 test -z "$as_dir" && as_dir=.
22549 for ac_exec_ext in '' $ac_executable_extensions; do
22550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22551 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22553 break 2
22555 done
22556 done
22557 IFS=$as_save_IFS
22560 esac
22562 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22563 if test -n "$gcc_cv_ld"; then
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22565 $as_echo "$gcc_cv_ld" >&6; }
22566 else
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22568 $as_echo "no" >&6; }
22575 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22576 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22577 # if the PLUGIN_LD is set ld-new, just have it as ld
22578 # as that is the installed named.
22579 if test x$PLUGIN_LD_SUFFIX = xld-new \
22580 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22581 PLUGIN_LD_SUFFIX=ld
22584 # Check whether --with-plugin-ld was given.
22585 if test "${with_plugin_ld+set}" = set; then :
22586 withval=$with_plugin_ld; if test x"$withval" != x; then
22587 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22588 PLUGIN_LD_SUFFIX="$withval"
22594 cat >>confdefs.h <<_ACEOF
22595 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22596 _ACEOF
22599 # Check to see if we are using gold instead of ld
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22601 $as_echo_n "checking whether we are using gold... " >&6; }
22602 ld_is_gold=no
22603 if test x$gcc_cv_ld != x; then
22604 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22605 | grep "GNU gold" > /dev/null; then
22606 ld_is_gold=yes
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22610 $as_echo "$ld_is_gold" >&6; }
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22613 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22614 # Check to see if default ld is not gold, but gold is
22615 # available and has support for split stack. If gcc was configured
22616 # with gold then no checking is done.
22618 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22620 # For platforms other than powerpc64*, enable as appropriate.
22622 gold_non_default=no
22623 ld_gold=`which ${gcc_cv_ld}.gold`
22624 # Make sure this gold has minimal split stack support
22625 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22626 ld_vers=`$ld_gold --version | sed 1q`
22627 gold_vers=`echo $ld_vers | sed -n \
22628 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22629 case $target in
22630 # check that the gold version contains the complete split stack support
22631 # on powerpc64 big and little endian
22632 powerpc64*-*-*)
22633 case "$gold_vers" in
22634 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22636 *) gold_non_default=no
22638 esac
22640 esac
22642 if test $gold_non_default = yes; then
22644 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22649 $as_echo "$gold_non_default" >&6; }
22651 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22653 case "$ORIGINAL_LD_FOR_TARGET" in
22654 ./collect-ld | ./collect-ld$build_exeext) ;;
22655 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22657 esac
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22660 $as_echo_n "checking what linker to use... " >&6; }
22661 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22662 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22663 # Single tree build which includes ld. We want to prefer it
22664 # over whatever linker top-level may have detected, since
22665 # we'll use what we're building after installation anyway.
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22667 $as_echo "newly built ld" >&6; }
22668 in_tree_ld=yes
22669 in_tree_ld_is_elf=no
22670 if (grep 'EMUL = .*elf' ../ld/Makefile \
22671 || grep 'EMUL = .*linux' ../ld/Makefile \
22672 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22673 in_tree_ld_is_elf=yes
22674 elif test "$ld_is_gold" = yes; then
22675 in_tree_ld_is_elf=yes
22677 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
22679 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22680 if test x$gcc_cv_gld_version != x; then
22681 break
22683 done
22684 case $gcc_cv_gld_version in
22685 VERSION=[0-9]*) ;;
22686 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
22687 esac
22688 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22689 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22690 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22691 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22692 else
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22694 $as_echo "$gcc_cv_ld" >&6; }
22695 in_tree_ld=no
22696 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22697 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22698 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22704 # Figure out what nm we will be using.
22705 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22706 if ${gcc_cv_nm+:} false; then :
22708 else
22710 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22711 && test -f ../binutils/Makefile \
22712 && test x$build = x$host; then
22713 gcc_cv_nm=../binutils/nm-new$build_exeext
22714 elif test -x nm$build_exeext; then
22715 gcc_cv_nm=./nm$build_exeext
22716 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22717 gcc_cv_nm="$NM_FOR_TARGET"
22718 else
22719 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22720 set dummy $NM_FOR_TARGET; ac_word=$2
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22722 $as_echo_n "checking for $ac_word... " >&6; }
22723 if ${ac_cv_path_gcc_cv_nm+:} false; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 case $gcc_cv_nm in
22727 [\\/]* | ?:[\\/]*)
22728 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22732 for as_dir in $PATH
22734 IFS=$as_save_IFS
22735 test -z "$as_dir" && as_dir=.
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22740 break 2
22742 done
22743 done
22744 IFS=$as_save_IFS
22747 esac
22749 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22750 if test -n "$gcc_cv_nm"; then
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22752 $as_echo "$gcc_cv_nm" >&6; }
22753 else
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 $as_echo "no" >&6; }
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22763 $as_echo_n "checking what nm to use... " >&6; }
22764 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22765 # Single tree build which includes binutils.
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22767 $as_echo "newly built nm" >&6; }
22768 in_tree_nm=yes
22769 else
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22771 $as_echo "$gcc_cv_nm" >&6; }
22772 in_tree_nm=no
22775 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22777 case "$ORIGINAL_NM_FOR_TARGET" in
22778 ./nm | ./nm$build_exeext) ;;
22779 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22781 esac
22784 # Figure out what objdump we will be using.
22785 if ${gcc_cv_objdump+:} false; then :
22787 else
22789 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22790 && test -f ../binutils/Makefile \
22791 && test x$build = x$host; then
22792 # Single tree build which includes binutils.
22793 gcc_cv_objdump=../binutils/objdump$build_exeext
22794 elif test -x objdump$build_exeext; then
22795 gcc_cv_objdump=./objdump$build_exeext
22796 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22797 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22798 else
22799 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22800 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22802 $as_echo_n "checking for $ac_word... " >&6; }
22803 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
22804 $as_echo_n "(cached) " >&6
22805 else
22806 case $gcc_cv_objdump in
22807 [\\/]* | ?:[\\/]*)
22808 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22812 for as_dir in $PATH
22814 IFS=$as_save_IFS
22815 test -z "$as_dir" && as_dir=.
22816 for ac_exec_ext in '' $ac_executable_extensions; do
22817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22818 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22820 break 2
22822 done
22823 done
22824 IFS=$as_save_IFS
22827 esac
22829 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22830 if test -n "$gcc_cv_objdump"; then
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22832 $as_echo "$gcc_cv_objdump" >&6; }
22833 else
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22835 $as_echo "no" >&6; }
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22843 $as_echo_n "checking what objdump to use... " >&6; }
22844 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22845 # Single tree build which includes binutils.
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22847 $as_echo "newly built objdump" >&6; }
22848 elif test x$gcc_cv_objdump = x; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22850 $as_echo "not found" >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22853 $as_echo "$gcc_cv_objdump" >&6; }
22856 # Figure out what readelf we will be using.
22857 if ${gcc_cv_readelf+:} false; then :
22859 else
22861 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22862 && test -f ../binutils/Makefile \
22863 && test x$build = x$host; then
22864 # Single tree build which includes binutils.
22865 gcc_cv_readelf=../binutils/readelf$build_exeext
22866 elif test -x readelf$build_exeext; then
22867 gcc_cv_readelf=./readelf$build_exeext
22868 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22869 gcc_cv_readelf="$READELF_FOR_TARGET"
22870 else
22871 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22872 set dummy $READELF_FOR_TARGET; ac_word=$2
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22874 $as_echo_n "checking for $ac_word... " >&6; }
22875 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 case $gcc_cv_readelf in
22879 [\\/]* | ?:[\\/]*)
22880 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22884 for as_dir in $PATH
22886 IFS=$as_save_IFS
22887 test -z "$as_dir" && as_dir=.
22888 for ac_exec_ext in '' $ac_executable_extensions; do
22889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22890 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22892 break 2
22894 done
22895 done
22896 IFS=$as_save_IFS
22899 esac
22901 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22902 if test -n "$gcc_cv_readelf"; then
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22904 $as_echo "$gcc_cv_readelf" >&6; }
22905 else
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22907 $as_echo "no" >&6; }
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22915 $as_echo_n "checking what readelf to use... " >&6; }
22916 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22917 # Single tree build which includes binutils.
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22919 $as_echo "newly built readelf" >&6; }
22920 elif test x$gcc_cv_readelf = x; then
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22922 $as_echo "not found" >&6; }
22923 else
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22925 $as_echo "$gcc_cv_readelf" >&6; }
22928 # Figure out what otool we will be using.
22929 if ${gcc_cv_otool+:} false; then :
22931 else
22933 if test -x otool$build_exeext; then
22934 gcc_cv_otool=./otool$build_exeext
22935 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
22936 gcc_cv_otool="$OTOOL_FOR_TARGET"
22937 else
22938 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22939 set dummy $OTOOL_FOR_TARGET; ac_word=$2
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22941 $as_echo_n "checking for $ac_word... " >&6; }
22942 if ${ac_cv_path_gcc_cv_otool+:} false; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 case $gcc_cv_otool in
22946 [\\/]* | ?:[\\/]*)
22947 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
22950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22951 for as_dir in $PATH
22953 IFS=$as_save_IFS
22954 test -z "$as_dir" && as_dir=.
22955 for ac_exec_ext in '' $ac_executable_extensions; do
22956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22957 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
22958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22959 break 2
22961 done
22962 done
22963 IFS=$as_save_IFS
22966 esac
22968 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
22969 if test -n "$gcc_cv_otool"; then
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22971 $as_echo "$gcc_cv_otool" >&6; }
22972 else
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22974 $as_echo "no" >&6; }
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22982 $as_echo_n "checking what otool to use... " >&6; }
22983 if test x$gcc_cv_otool = x; then
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22985 $as_echo "not found" >&6; }
22986 else
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22988 $as_echo "$gcc_cv_otool" >&6; }
22991 # Figure out what assembler alignment features are present.
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22993 $as_echo_n "checking assembler flags... " >&6; }
22994 if ${gcc_cv_as_flags+:} false; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 case "$target" in
22998 i[34567]86-*-linux*)
22999 gcc_cv_as_flags=--32
23001 x86_64-*-linux-gnux32)
23002 gcc_cv_as_flags=--x32
23004 x86_64-*-linux*)
23005 gcc_cv_as_flags=--64
23007 powerpc*-*-darwin*)
23008 gcc_cv_as_flags="-arch ppc"
23011 gcc_cv_as_flags=" "
23013 esac
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23016 $as_echo "$gcc_cv_as_flags" >&6; }
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23019 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23020 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 gcc_cv_as_balign_and_p2align=no
23024 if test $in_tree_gas = yes; then
23025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23026 then gcc_cv_as_balign_and_p2align=yes
23028 elif test x$gcc_cv_as != x; then
23029 $as_echo '.balign 4
23030 .p2align 2' > conftest.s
23031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23036 test $ac_status = 0; }; }
23037 then
23038 gcc_cv_as_balign_and_p2align=yes
23039 else
23040 echo "configure: failed program was" >&5
23041 cat conftest.s >&5
23043 rm -f conftest.o conftest.s
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23047 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23048 if test $gcc_cv_as_balign_and_p2align = yes; then
23050 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23056 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23057 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23058 $as_echo_n "(cached) " >&6
23059 else
23060 gcc_cv_as_max_skip_p2align=no
23061 if test $in_tree_gas = yes; then
23062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23063 then gcc_cv_as_max_skip_p2align=yes
23065 elif test x$gcc_cv_as != x; then
23066 $as_echo '.p2align 4,,7' > conftest.s
23067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23072 test $ac_status = 0; }; }
23073 then
23074 gcc_cv_as_max_skip_p2align=yes
23075 else
23076 echo "configure: failed program was" >&5
23077 cat conftest.s >&5
23079 rm -f conftest.o conftest.s
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23083 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23084 if test $gcc_cv_as_max_skip_p2align = yes; then
23086 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23092 $as_echo_n "checking assembler for .literal16... " >&6; }
23093 if ${gcc_cv_as_literal16+:} false; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 gcc_cv_as_literal16=no
23097 if test $in_tree_gas = yes; then
23098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23099 then gcc_cv_as_literal16=yes
23101 elif test x$gcc_cv_as != x; then
23102 $as_echo '.literal16' > conftest.s
23103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23105 (eval $ac_try) 2>&5
23106 ac_status=$?
23107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23108 test $ac_status = 0; }; }
23109 then
23110 gcc_cv_as_literal16=yes
23111 else
23112 echo "configure: failed program was" >&5
23113 cat conftest.s >&5
23115 rm -f conftest.o conftest.s
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23119 $as_echo "$gcc_cv_as_literal16" >&6; }
23120 if test $gcc_cv_as_literal16 = yes; then
23122 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23128 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23129 if ${gcc_cv_as_subsection_m1+:} false; then :
23130 $as_echo_n "(cached) " >&6
23131 else
23132 gcc_cv_as_subsection_m1=no
23133 if test $in_tree_gas = yes; then
23134 if test $in_tree_gas_is_elf = yes \
23135 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23136 then gcc_cv_as_subsection_m1=yes
23138 elif test x$gcc_cv_as != x; then
23139 $as_echo 'conftest_label1: .word 0
23140 .subsection -1
23141 conftest_label2: .word 0
23142 .previous' > conftest.s
23143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23148 test $ac_status = 0; }; }
23149 then
23150 if test x$gcc_cv_nm != x; then
23151 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23152 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23153 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23154 then :
23155 else gcc_cv_as_subsection_m1=yes
23157 rm -f conftest.nm1 conftest.nm2
23159 else
23160 echo "configure: failed program was" >&5
23161 cat conftest.s >&5
23163 rm -f conftest.o conftest.s
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23167 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23168 if test $gcc_cv_as_subsection_m1 = yes; then
23170 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23176 $as_echo_n "checking assembler for .weak... " >&6; }
23177 if ${gcc_cv_as_weak+:} false; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 gcc_cv_as_weak=no
23181 if test $in_tree_gas = yes; then
23182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23183 then gcc_cv_as_weak=yes
23185 elif test x$gcc_cv_as != x; then
23186 $as_echo ' .weak foobar' > conftest.s
23187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23190 ac_status=$?
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23193 then
23194 gcc_cv_as_weak=yes
23195 else
23196 echo "configure: failed program was" >&5
23197 cat conftest.s >&5
23199 rm -f conftest.o conftest.s
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23203 $as_echo "$gcc_cv_as_weak" >&6; }
23204 if test $gcc_cv_as_weak = yes; then
23206 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23212 $as_echo_n "checking assembler for .weakref... " >&6; }
23213 if ${gcc_cv_as_weakref+:} false; then :
23214 $as_echo_n "(cached) " >&6
23215 else
23216 gcc_cv_as_weakref=no
23217 if test $in_tree_gas = yes; then
23218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23219 then gcc_cv_as_weakref=yes
23221 elif test x$gcc_cv_as != x; then
23222 $as_echo ' .weakref foobar, barfnot' > conftest.s
23223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23229 then
23230 gcc_cv_as_weakref=yes
23231 else
23232 echo "configure: failed program was" >&5
23233 cat conftest.s >&5
23235 rm -f conftest.o conftest.s
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23239 $as_echo "$gcc_cv_as_weakref" >&6; }
23240 if test $gcc_cv_as_weakref = yes; then
23242 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23248 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23249 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23250 $as_echo_n "(cached) " >&6
23251 else
23252 gcc_cv_as_nsubspa_comdat=no
23253 if test $in_tree_gas = yes; then
23254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23255 then gcc_cv_as_nsubspa_comdat=yes
23257 elif test x$gcc_cv_as != x; then
23258 $as_echo ' .SPACE $TEXT$
23259 .NSUBSPA $CODE$,COMDAT' > conftest.s
23260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23265 test $ac_status = 0; }; }
23266 then
23267 gcc_cv_as_nsubspa_comdat=yes
23268 else
23269 echo "configure: failed program was" >&5
23270 cat conftest.s >&5
23272 rm -f conftest.o conftest.s
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23276 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23277 if test $gcc_cv_as_nsubspa_comdat = yes; then
23279 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23284 # .hidden needs to be supported in both the assembler and the linker,
23285 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23286 # This is irritatingly difficult to feature test for; we have to check the
23287 # date string after the version number. If we've got an in-tree
23288 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23289 # to be safe.
23290 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23291 case "${target}" in
23292 *-*-aix*)
23293 conftest_s=' .globl foobar,hidden'
23296 conftest_s=' .hidden foobar
23297 foobar:'
23299 esac
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23301 $as_echo_n "checking assembler for .hidden... " >&6; }
23302 if ${gcc_cv_as_hidden+:} false; then :
23303 $as_echo_n "(cached) " >&6
23304 else
23305 gcc_cv_as_hidden=no
23306 if test $in_tree_gas = yes; then
23307 if test $in_tree_gas_is_elf = yes \
23308 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23309 then gcc_cv_as_hidden=yes
23311 elif test x$gcc_cv_as != x; then
23312 $as_echo "$conftest_s" > conftest.s
23313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23316 ac_status=$?
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }
23319 then
23320 gcc_cv_as_hidden=yes
23321 else
23322 echo "configure: failed program was" >&5
23323 cat conftest.s >&5
23325 rm -f conftest.o conftest.s
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23329 $as_echo "$gcc_cv_as_hidden" >&6; }
23332 case "${target}" in
23333 *-*-darwin*)
23334 # Darwin as has some visibility support, though with a different syntax.
23335 gcc_cv_as_hidden=yes
23337 esac
23339 # gnu_indirect_function type is an extension proposed at
23340 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23341 # selection of function implementation
23342 # Check whether --enable-gnu-indirect-function was given.
23343 if test "${enable_gnu_indirect_function+set}" = set; then :
23344 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23345 yes | no) ;;
23346 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23347 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23348 esac
23349 else
23350 enable_gnu_indirect_function="$default_gnu_indirect_function"
23354 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23358 _ACEOF
23362 if test $in_tree_ld != yes ; then
23363 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23364 if echo "$ld_ver" | grep GNU > /dev/null; then
23365 if test x"$ld_is_gold" = xyes; then
23366 # GNU gold --version looks like this:
23368 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23370 # We extract the binutils version which is more familiar and specific
23371 # than the gold version.
23372 ld_vers=`echo $ld_ver | sed -n \
23373 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23374 else
23375 # GNU ld --version looks like this:
23377 # GNU ld (GNU Binutils) 2.21.51.20110225
23378 ld_vers=`echo $ld_ver | sed -n \
23379 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23381 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'`
23382 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23383 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23384 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23385 else
23386 case "${target}" in
23387 *-*-solaris2*)
23388 # Solaris 2 ld -V output looks like this for a regular version:
23390 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23392 # but test versions add stuff at the end:
23394 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23396 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23397 # numbers can be used in ld.so.1 feature checks even if a different
23398 # linker is configured.
23399 ld_ver=`$gcc_cv_ld -V 2>&1`
23400 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
23401 ld_vers=`echo $ld_ver | sed -n \
23402 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23403 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23404 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23407 esac
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23412 $as_echo_n "checking linker for .hidden support... " >&6; }
23413 if ${gcc_cv_ld_hidden+:} false; then :
23414 $as_echo_n "(cached) " >&6
23415 else
23416 if test $in_tree_ld = yes ; then
23417 gcc_cv_ld_hidden=no
23418 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 \
23419 && test $in_tree_ld_is_elf = yes; then
23420 gcc_cv_ld_hidden=yes
23422 else
23423 gcc_cv_ld_hidden=yes
23424 if test x"$ld_is_gold" = xyes; then
23426 elif echo "$ld_ver" | grep GNU > /dev/null; then
23427 case "${target}" in
23428 mmix-knuth-mmixware)
23429 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23430 gcc_cv_ld_hidden=no
23432 esac
23433 if test 0"$ld_date" -lt 20020404; then
23434 if test -n "$ld_date"; then
23435 # If there was date string, but was earlier than 2002-04-04, fail
23436 gcc_cv_ld_hidden=no
23437 elif test -z "$ld_vers"; then
23438 # If there was no date string nor ld version number, something is wrong
23439 gcc_cv_ld_hidden=no
23440 else
23441 test -z "$ld_vers_patch" && ld_vers_patch=0
23442 if test "$ld_vers_major" -lt 2; then
23443 gcc_cv_ld_hidden=no
23444 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23445 gcc_cv_ld_hidden="no"
23446 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23447 gcc_cv_ld_hidden=no
23451 else
23452 case "${target}" in
23453 *-*-aix[789]*)
23454 gcc_cv_ld_hidden=yes
23456 *-*-darwin*)
23457 # Darwin ld has some visibility support.
23458 gcc_cv_ld_hidden=yes
23460 hppa64*-*-hpux* | ia64*-*-hpux*)
23461 gcc_cv_ld_hidden=yes
23463 *-*-solaris2*)
23464 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23465 # .symbolic was only added in Solaris 9 12/02.
23466 gcc_cv_ld_hidden=yes
23469 gcc_cv_ld_hidden=no
23471 esac
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23476 $as_echo "$gcc_cv_ld_hidden" >&6; }
23477 libgcc_visibility=no
23480 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23481 libgcc_visibility=yes
23483 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23488 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23489 gcc_cv_ld_ro_rw_mix=unknown
23490 if test $in_tree_ld = yes ; then
23491 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 \
23492 && test $in_tree_ld_is_elf = yes; then
23493 gcc_cv_ld_ro_rw_mix=read-write
23495 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23496 echo '.section myfoosect, "a"' > conftest1.s
23497 echo '.section myfoosect, "aw"' > conftest2.s
23498 echo '.byte 1' >> conftest2.s
23499 echo '.section myfoosect, "a"' > conftest3.s
23500 echo '.byte 0' >> conftest3.s
23501 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23502 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23503 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23504 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23505 conftest2.o conftest3.o > /dev/null 2>&1; then
23506 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23507 | sed -e '/myfoosect/!d' -e N`
23508 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23509 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23510 gcc_cv_ld_ro_rw_mix=read-only
23511 else
23512 gcc_cv_ld_ro_rw_mix=read-write
23516 rm -f conftest.* conftest[123].*
23518 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23520 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23524 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23526 # Check whether --enable-initfini-array was given.
23527 if test "${enable_initfini_array+set}" = set; then :
23528 enableval=$enable_initfini_array;
23529 else
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23532 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23533 if ${gcc_cv_initfini_array+:} false; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23537 case "${target}" in
23538 ia64-*)
23539 if test "$cross_compiling" = yes; then :
23540 gcc_cv_initfini_array=no
23541 else
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23545 #ifndef __ELF__
23546 #error Not an ELF OS
23547 #endif
23548 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23549 if it can be used. */
23550 static int x = -1;
23551 int main (void) { return x; }
23552 int foo (void) { x = 0; }
23553 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23555 _ACEOF
23556 if ac_fn_cxx_try_run "$LINENO"; then :
23557 gcc_cv_initfini_array=yes
23558 else
23559 gcc_cv_initfini_array=no
23561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23562 conftest.$ac_objext conftest.beam conftest.$ac_ext
23566 gcc_cv_initfini_array=no
23567 if test $in_tree_ld = yes ; then
23568 if test "$gcc_cv_gld_major_version" -eq 2 \
23569 -a "$gcc_cv_gld_minor_version" -ge 22 \
23570 -o "$gcc_cv_gld_major_version" -gt 2 \
23571 && test $in_tree_ld_is_elf = yes; then
23572 gcc_cv_initfini_array=yes
23574 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23575 case $target:$gas in
23576 *:yes)
23577 sh_flags='"a"'
23578 sh_type='%progbits'
23580 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23581 sh_flags='"a"'
23582 sh_type='@progbits'
23584 sparc*-*-solaris2*:no)
23585 sh_flags='#alloc'
23586 sh_type='#progbits'
23587 sh_quote='"'
23589 esac
23590 case "$target:$gnu_ld" in
23591 *:yes)
23592 cat > conftest.s <<EOF
23593 .section .dtors,$sh_flags,$sh_type
23594 .balign 4
23595 .byte 'A', 'A', 'A', 'A'
23596 .section .ctors,$sh_flags,$sh_type
23597 .balign 4
23598 .byte 'B', 'B', 'B', 'B'
23599 .section .fini_array.65530,$sh_flags,$sh_type
23600 .balign 4
23601 .byte 'C', 'C', 'C', 'C'
23602 .section .init_array.65530,$sh_flags,$sh_type
23603 .balign 4
23604 .byte 'D', 'D', 'D', 'D'
23605 .section .dtors.64528,$sh_flags,$sh_type
23606 .balign 4
23607 .byte 'E', 'E', 'E', 'E'
23608 .section .ctors.64528,$sh_flags,$sh_type
23609 .balign 4
23610 .byte 'F', 'F', 'F', 'F'
23611 .section .fini_array.01005,$sh_flags,$sh_type
23612 .balign 4
23613 .byte 'G', 'G', 'G', 'G'
23614 .section .init_array.01005,$sh_flags,$sh_type
23615 .balign 4
23616 .byte 'H', 'H', 'H', 'H'
23617 .text
23618 .globl _start
23619 _start:
23621 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23622 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23623 && $gcc_cv_objdump -s -j .init_array conftest \
23624 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23625 && $gcc_cv_objdump -s -j .fini_array conftest \
23626 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23627 gcc_cv_initfini_array=yes
23630 *-*-solaris2*:no)
23631 # When Solaris ld added constructor priority support, it was
23632 # decided to only handle .init_array.N/.fini_array.N since
23633 # there was no need for backwards compatibility with
23634 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23635 # sections with correct execution order resp. to
23636 # .init_array/.fini_array, while gld merges them into
23637 # .init_array/.fini_array.
23638 cat > conftest.s <<EOF
23639 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23640 .align 4
23641 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23642 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23643 .align 4
23644 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23645 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23646 .align 4
23647 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23648 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23649 .align 4
23650 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23651 .text
23652 .globl _start
23653 _start:
23655 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23656 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23657 && $gcc_cv_objdump -s -j .init_array conftest \
23658 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
23659 && $gcc_cv_objdump -s -j .fini_array conftest \
23660 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
23661 gcc_cv_initfini_array=yes
23664 esac
23665 rm -f conftest conftest.*
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23670 #ifndef __ELF__
23671 # error Not an ELF OS
23672 #endif
23673 #include <stdlib.h>
23674 #if defined __GLIBC_PREREQ
23675 # if __GLIBC_PREREQ (2, 4)
23676 # else
23677 # error GLIBC 2.4 required
23678 # endif
23679 #else
23680 # if defined __sun__ && defined __svr4__
23681 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23682 # else
23683 # error The C library not known to support .init_array/.fini_array
23684 # endif
23685 #endif
23687 _ACEOF
23688 if ac_fn_cxx_try_cpp "$LINENO"; then :
23690 else
23691 gcc_cv_initfini_array=no
23693 rm -f conftest.err conftest.i conftest.$ac_ext;;
23694 esac
23695 else
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23697 $as_echo_n "checking cross compile... guessing... " >&6; }
23698 gcc_cv_initfini_array=no
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23702 $as_echo "$gcc_cv_initfini_array" >&6; }
23703 enable_initfini_array=$gcc_cv_initfini_array
23708 cat >>confdefs.h <<_ACEOF
23709 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23710 _ACEOF
23714 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23716 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23717 if ${gcc_cv_as_leb128+:} false; then :
23718 $as_echo_n "(cached) " >&6
23719 else
23720 gcc_cv_as_leb128=no
23721 if test $in_tree_gas = yes; then
23722 if test $in_tree_gas_is_elf = yes \
23723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23724 then gcc_cv_as_leb128=yes
23726 elif test x$gcc_cv_as != x; then
23727 $as_echo ' .data
23728 .uleb128 L2 - L1
23730 .uleb128 1280
23731 .sleb128 -1010
23732 L2:' > conftest.s
23733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23738 test $ac_status = 0; }; }
23739 then
23740 # GAS versions before 2.11 do not support uleb128,
23741 # despite appearing to.
23742 # ??? There exists an elf-specific test that will crash
23743 # the assembler. Perhaps it's better to figure out whether
23744 # arbitrary sections are supported and try the test.
23745 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23746 if echo "$as_ver" | grep GNU > /dev/null; then
23747 as_vers=`echo $as_ver | sed -n \
23748 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23749 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23750 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23751 if test $as_major -eq 2 && test $as_minor -lt 11
23752 then :
23753 else gcc_cv_as_leb128=yes
23756 else
23757 echo "configure: failed program was" >&5
23758 cat conftest.s >&5
23760 rm -f conftest.o conftest.s
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23764 $as_echo "$gcc_cv_as_leb128" >&6; }
23765 if test $gcc_cv_as_leb128 = yes; then
23767 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23770 if test $gcc_cv_as_leb128 != yes; then
23772 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23776 # Determine if an .eh_frame section is read-only.
23777 gcc_fn_eh_frame_ro () {
23778 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23779 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23780 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23783 # Check if we have assembler support for unwind directives.
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23785 $as_echo_n "checking assembler for cfi directives... " >&6; }
23786 if ${gcc_cv_as_cfi_directive+:} false; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 gcc_cv_as_cfi_directive=no
23790 if test x$gcc_cv_as != x; then
23791 $as_echo ' .text
23792 .cfi_startproc
23793 .cfi_offset 0, 0
23794 .cfi_same_value 1
23795 .cfi_def_cfa 1, 2
23796 .cfi_escape 1, 2, 3, 4, 5
23797 .cfi_endproc' > conftest.s
23798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23803 test $ac_status = 0; }; }
23804 then
23805 case "$target" in
23806 *-*-solaris*)
23807 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23808 # read-only and read-write sections, we need to make sure that the
23809 # assembler used emits read-write .eh_frame sections.
23810 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23811 gcc_cv_as_cfi_directive=yes
23812 elif test "x$gcc_cv_objdump" = x; then
23813 # No objdump, err on the side of caution.
23814 gcc_cv_as_cfi_directive=no
23815 else
23816 if test x$gas = xyes; then
23817 as_32_opt="--32"
23818 as_64_opt="--64"
23819 else
23820 as_32_opt="-m32"
23821 as_64_opt="-m64"
23823 case "$target" in
23824 sparc*-*-solaris2.*)
23825 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23826 if gcc_fn_eh_frame_ro $as_32_opt \
23827 || gcc_fn_eh_frame_ro $as_64_opt; then
23828 gcc_cv_as_cfi_directive=no
23829 else
23830 gcc_cv_as_cfi_directive=yes
23833 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23834 # On Solaris/x86, make sure that GCC and assembler agree on using
23835 # read-only .eh_frame sections for 64-bit.
23836 if gcc_fn_eh_frame_ro $as_32_opt; then
23837 gcc_cv_as_cfi_directive=no
23838 elif gcc_fn_eh_frame_ro $as_64_opt; then
23839 gcc_cv_as_cfi_directive=yes
23840 else
23841 gcc_cv_as_cfi_directive=no
23844 esac
23847 *-*-*)
23848 gcc_cv_as_cfi_directive=yes
23850 esac
23851 else
23852 echo "configure: failed program was" >&5
23853 cat conftest.s >&5
23855 rm -f conftest.o conftest.s
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23859 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23862 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23864 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23865 if ${gcc_cv_as_cfi_advance_working+:} false; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 gcc_cv_as_cfi_advance_working=no
23869 if test x$gcc_cv_as != x; then
23870 $as_echo ' .text
23871 .cfi_startproc
23872 .cfi_adjust_cfa_offset 64
23873 .skip 75040, 0
23874 .cfi_adjust_cfa_offset 128
23875 .cfi_endproc' > conftest.s
23876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23878 (eval $ac_try) 2>&5
23879 ac_status=$?
23880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23881 test $ac_status = 0; }; }
23882 then
23884 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23885 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23886 gcc_cv_as_cfi_advance_working=yes
23889 else
23890 echo "configure: failed program was" >&5
23891 cat conftest.s >&5
23893 rm -f conftest.o conftest.s
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23897 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23900 else
23901 # no objdump, err on the side of caution
23902 gcc_cv_as_cfi_advance_working=no
23906 cat >>confdefs.h <<_ACEOF
23907 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23908 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23909 _ACEOF
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23914 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23915 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
23916 $as_echo_n "(cached) " >&6
23917 else
23918 gcc_cv_as_cfi_personality_directive=no
23919 if test x$gcc_cv_as != x; then
23920 $as_echo ' .text
23921 .cfi_startproc
23922 .cfi_personality 0, symbol
23923 .cfi_endproc' > conftest.s
23924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23926 (eval $ac_try) 2>&5
23927 ac_status=$?
23928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23929 test $ac_status = 0; }; }
23930 then
23931 gcc_cv_as_cfi_personality_directive=yes
23932 else
23933 echo "configure: failed program was" >&5
23934 cat conftest.s >&5
23936 rm -f conftest.o conftest.s
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23940 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23944 cat >>confdefs.h <<_ACEOF
23945 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23946 _ACEOF
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23950 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23951 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
23952 $as_echo_n "(cached) " >&6
23953 else
23954 gcc_cv_as_cfi_sections_directive=no
23955 if test x$gcc_cv_as != x; then
23956 $as_echo ' .text
23957 .cfi_sections .debug_frame, .eh_frame
23958 .cfi_startproc
23959 .cfi_endproc' > conftest.s
23960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23966 then
23967 case $target_os in
23968 win32 | pe | cygwin* | mingw32*)
23969 # Need to check that we generated the correct relocation for the
23970 # .debug_frame section. This was fixed for binutils 2.21.
23971 gcc_cv_as_cfi_sections_directive=no
23972 if test "x$gcc_cv_objdump" != x; then
23973 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23974 grep secrel > /dev/null; then
23975 gcc_cv_as_cfi_sections_directive=yes
23980 gcc_cv_as_cfi_sections_directive=yes
23982 esac
23983 else
23984 echo "configure: failed program was" >&5
23985 cat conftest.s >&5
23987 rm -f conftest.o conftest.s
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23991 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23996 cat >>confdefs.h <<_ACEOF
23997 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23998 _ACEOF
24001 # GAS versions up to and including 2.11.0 may mis-optimize
24002 # .eh_frame data.
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24004 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24005 if ${gcc_cv_as_eh_frame+:} false; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 gcc_cv_as_eh_frame=no
24009 if test $in_tree_gas = yes; then
24010 if test $in_tree_gas_is_elf = yes \
24011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24012 then gcc_cv_as_eh_frame=yes
24014 elif test x$gcc_cv_as != x; then
24015 $as_echo ' .text
24016 .LFB1:
24017 .4byte 0
24018 .L1:
24019 .4byte 0
24020 .LFE1:
24021 .section .eh_frame,"aw",@progbits
24022 __FRAME_BEGIN__:
24023 .4byte .LECIE1-.LSCIE1
24024 .LSCIE1:
24025 .4byte 0x0
24026 .byte 0x1
24027 .ascii "z\0"
24028 .byte 0x1
24029 .byte 0x78
24030 .byte 0x1a
24031 .byte 0x0
24032 .byte 0x4
24033 .4byte 1
24034 .p2align 1
24035 .LECIE1:
24036 .LSFDE1:
24037 .4byte .LEFDE1-.LASFDE1
24038 .LASFDE1:
24039 .4byte .LASFDE1-__FRAME_BEGIN__
24040 .4byte .LFB1
24041 .4byte .LFE1-.LFB1
24042 .byte 0x4
24043 .4byte .LFE1-.LFB1
24044 .byte 0x4
24045 .4byte .L1-.LFB1
24046 .LEFDE1:' > conftest.s
24047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052 test $ac_status = 0; }; }
24053 then
24054 cat > conftest.lit <<EOF
24055 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24056 0010 01000000 12000000 18000000 00000000 ................
24057 0020 08000000 04080000 0044 .........D
24059 cat > conftest.big <<EOF
24060 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24061 0010 00000001 00000012 00000018 00000000 ................
24062 0020 00000008 04000000 0844 .........D
24064 # If the assembler didn't choke, and we can objdump,
24065 # and we got the correct data, then succeed.
24066 # The text in the here-document typically retains its unix-style line
24067 # endings, while the output of objdump will use host line endings.
24068 # Therefore, use diff -b for the comparisons.
24069 if test x$gcc_cv_objdump != x \
24070 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24071 | tail -3 > conftest.got \
24072 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24073 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24074 then
24075 gcc_cv_as_eh_frame=yes
24076 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24078 (eval $ac_try) 2>&5
24079 ac_status=$?
24080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24081 test $ac_status = 0; }; }; then
24082 gcc_cv_as_eh_frame=buggy
24083 else
24084 # Uh oh, what do we do now?
24085 gcc_cv_as_eh_frame=no
24087 else
24088 echo "configure: failed program was" >&5
24089 cat conftest.s >&5
24091 rm -f conftest.o conftest.s
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24095 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24099 if test $gcc_cv_as_eh_frame = buggy; then
24101 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24105 # Test if the assembler supports the section flag 'e' or #exclude for
24106 # specifying an excluded section.
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24108 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24109 if ${gcc_cv_as_section_exclude_e+:} false; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 gcc_cv_as_section_exclude_e=no
24113 if test $in_tree_gas = yes; then
24114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24115 then gcc_cv_as_section_exclude_e=yes
24117 elif test x$gcc_cv_as != x; then
24118 $as_echo '.section foo1,"e"
24119 .byte 0,0,0,0' > conftest.s
24120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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_section_exclude_e=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_section_exclude_e" >&5
24136 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24139 if test $gcc_cv_as_section_exclude_e = no; then
24140 case "${target}" in
24141 # Solaris as uses #exclude instead.
24142 *-*-solaris2*)
24143 case "${target}" in
24144 sparc*-*-solaris2*)
24145 conftest_s='.section "foo1", #exclude'
24147 i?86-*-solaris2* | x86_64-*-solaris2*)
24148 conftest_s='.section foo1, #exclude'
24150 esac
24152 esac
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24154 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24155 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24156 $as_echo_n "(cached) " >&6
24157 else
24158 gcc_cv_as_section_exclude_hash=no
24159 if test x$gcc_cv_as != x; then
24160 $as_echo "$conftest_s
24161 .byte 0,0,0,0" > conftest.s
24162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24167 test $ac_status = 0; }; }
24168 then
24169 gcc_cv_as_section_exclude_hash=yes
24170 else
24171 echo "configure: failed program was" >&5
24172 cat conftest.s >&5
24174 rm -f conftest.o conftest.s
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24178 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24183 cat >>confdefs.h <<_ACEOF
24184 #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`
24185 _ACEOF
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24189 $as_echo_n "checking assembler for section merging support... " >&6; }
24190 if ${gcc_cv_as_shf_merge+:} false; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_shf_merge=no
24194 if test $in_tree_gas = yes; then
24195 if test $in_tree_gas_is_elf = yes \
24196 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24197 then gcc_cv_as_shf_merge=yes
24199 elif test x$gcc_cv_as != x; then
24200 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; }
24207 then
24208 gcc_cv_as_shf_merge=yes
24209 else
24210 echo "configure: failed program was" >&5
24211 cat conftest.s >&5
24213 rm -f conftest.o conftest.s
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24217 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24220 if test $gcc_cv_as_shf_merge = no; then
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24222 $as_echo_n "checking assembler for section merging support... " >&6; }
24223 if ${gcc_cv_as_shf_merge+:} false; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226 gcc_cv_as_shf_merge=no
24227 if test $in_tree_gas = yes; then
24228 if test $in_tree_gas_is_elf = yes \
24229 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24230 then gcc_cv_as_shf_merge=yes
24232 elif test x$gcc_cv_as != x; then
24233 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_shf_merge=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24250 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24255 cat >>confdefs.h <<_ACEOF
24256 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24257 _ACEOF
24260 gcc_cv_ld_aligned_shf_merge=yes
24261 case "$target" in
24262 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24263 # alignment > 1.
24264 sparc*-*-solaris2.11*)
24265 if test x"$gnu_ld" = xno \
24266 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24267 gcc_cv_ld_aligned_shf_merge=no
24270 esac
24272 cat >>confdefs.h <<_ACEOF
24273 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24274 _ACEOF
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24278 $as_echo_n "checking assembler for stabs directive... " >&6; }
24279 if ${gcc_cv_as_stabs_directive+:} false; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24282 gcc_cv_as_stabs_directive=no
24283 if test x$gcc_cv_as != x; then
24284 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24287 (eval $ac_try) 2>&5
24288 ac_status=$?
24289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24290 test $ac_status = 0; }; }
24291 then
24292 gcc_cv_as_stabs_directive=yes
24293 else
24294 echo "configure: failed program was" >&5
24295 cat conftest.s >&5
24297 rm -f conftest.o conftest.s
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24301 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24302 if test $gcc_cv_as_stabs_directive = yes; then
24304 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24310 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24311 if ${gcc_cv_as_comdat_group+:} false; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 gcc_cv_as_comdat_group=no
24315 if test $in_tree_gas = yes; then
24316 if test $in_tree_gas_is_elf = yes \
24317 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24318 then gcc_cv_as_comdat_group=yes
24320 elif test x$gcc_cv_as != x; then
24321 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24327 test $ac_status = 0; }; }
24328 then
24329 gcc_cv_as_comdat_group=yes
24330 else
24331 echo "configure: failed program was" >&5
24332 cat conftest.s >&5
24334 rm -f conftest.o conftest.s
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24338 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24341 if test $gcc_cv_as_comdat_group = yes; then
24342 gcc_cv_as_comdat_group_percent=no
24343 gcc_cv_as_comdat_group_group=no
24344 else
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24346 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24347 if ${gcc_cv_as_comdat_group_percent+:} false; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_comdat_group_percent=no
24351 if test $in_tree_gas = yes; then
24352 if test $in_tree_gas_is_elf = yes \
24353 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24354 then gcc_cv_as_comdat_group_percent=yes
24356 elif test x$gcc_cv_as != x; then
24357 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_comdat_group_percent=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24374 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24377 if test $gcc_cv_as_comdat_group_percent = yes; then
24378 gcc_cv_as_comdat_group_group=no
24379 else
24380 case "${target}" in
24381 # Sun as uses a completely different syntax.
24382 *-*-solaris2*)
24383 case "${target}" in
24384 sparc*-*-solaris2*)
24385 conftest_s='
24386 .group foo,".text%foo",#comdat
24387 .section ".text%foo", #alloc,#execinstr,#progbits
24388 .globl foo
24389 foo:
24392 i?86-*-solaris2* | x86_64-*-solaris2*)
24393 conftest_s='
24394 .group foo,.text%foo,#comdat
24395 .section .text%foo, "ax", @progbits
24396 .globl foo
24397 foo:
24400 esac
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24402 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24403 if ${gcc_cv_as_comdat_group_group+:} false; then :
24404 $as_echo_n "(cached) " >&6
24405 else
24406 gcc_cv_as_comdat_group_group=no
24407 if test x$gcc_cv_as != x; then
24408 $as_echo "$conftest_s" > conftest.s
24409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24411 (eval $ac_try) 2>&5
24412 ac_status=$?
24413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24414 test $ac_status = 0; }; }
24415 then
24416 gcc_cv_as_comdat_group_group=yes
24417 else
24418 echo "configure: failed program was" >&5
24419 cat conftest.s >&5
24421 rm -f conftest.o conftest.s
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24425 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24429 esac
24430 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24431 gcc_cv_as_comdat_group_group=no
24435 if test x"$ld_is_gold" = xyes; then
24436 comdat_group=yes
24437 elif test $in_tree_ld = yes ; then
24438 comdat_group=no
24439 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 \
24440 && test $in_tree_ld_is_elf = yes; then
24441 comdat_group=yes
24443 elif echo "$ld_ver" | grep GNU > /dev/null; then
24444 comdat_group=yes
24445 if test 0"$ld_date" -lt 20050308; then
24446 if test -n "$ld_date"; then
24447 # If there was date string, but was earlier than 2005-03-08, fail
24448 comdat_group=no
24449 elif test "$ld_vers_major" -lt 2; then
24450 comdat_group=no
24451 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24452 comdat_group=no
24455 else
24456 case "${target}" in
24457 *-*-solaris2.1[1-9]*)
24458 comdat_group=no
24459 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24460 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24461 # version 1.688.
24463 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24464 # least ld version 1.2267.
24465 if test "$ld_vers_major" -gt 1; then
24466 comdat_group=yes
24467 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24468 comdat_group=yes
24469 elif test "$ld_vers_minor" -ge 2267; then
24470 comdat_group=yes
24474 # Assume linkers other than GNU ld don't support COMDAT group.
24475 comdat_group=no
24477 esac
24479 # Allow overriding the automatic COMDAT group tests above.
24480 # Check whether --enable-comdat was given.
24481 if test "${enable_comdat+set}" = set; then :
24482 enableval=$enable_comdat; comdat_group="$enable_comdat"
24485 if test $comdat_group = no; then
24486 gcc_cv_as_comdat_group=no
24487 gcc_cv_as_comdat_group_percent=no
24488 gcc_cv_as_comdat_group_group=no
24491 cat >>confdefs.h <<_ACEOF
24492 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24493 || test $gcc_cv_as_comdat_group_percent = yes \
24494 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24495 _ACEOF
24498 # Restrict this test to Solaris/x86: other targets define this statically.
24499 case "${target}" in
24500 i?86-*-solaris2* | x86_64-*-solaris2*)
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24502 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24503 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24504 hidden_linkonce=yes
24505 else
24506 case "${target}" in
24507 # Full support for hidden thunks in linkonce sections only appeared in
24508 # Solaris 11/OpenSolaris.
24509 *-*-solaris2.1[1-9]*)
24510 hidden_linkonce=yes
24513 hidden_linkonce=no
24515 esac
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24518 $as_echo "$hidden_linkonce" >&6; }
24520 cat >>confdefs.h <<_ACEOF
24521 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24522 _ACEOF
24525 esac
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24528 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24529 if ${gcc_cv_as_is_stmt+:} false; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 gcc_cv_as_is_stmt=no
24533 if test $in_tree_gas = yes; then
24534 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24535 then gcc_cv_as_is_stmt=yes
24537 elif test x$gcc_cv_as != x; then
24538 $as_echo ' .text
24539 .file 1 "conf.c"
24540 .loc 1 1 0 is_stmt 1' > conftest.s
24541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24546 test $ac_status = 0; }; }
24547 then
24548 gcc_cv_as_is_stmt=yes
24549 else
24550 echo "configure: failed program was" >&5
24551 cat conftest.s >&5
24553 rm -f conftest.o conftest.s
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24557 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24558 if test $gcc_cv_as_is_stmt = yes; then
24560 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24566 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24567 if ${gcc_cv_as_discriminator+:} false; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_discriminator=no
24571 if test $in_tree_gas = yes; then
24572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24573 then gcc_cv_as_discriminator=yes
24575 elif test x$gcc_cv_as != x; then
24576 $as_echo ' .text
24577 .file 1 "conf.c"
24578 .loc 1 1 0 discriminator 1' > conftest.s
24579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24582 ac_status=$?
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }
24585 then
24586 gcc_cv_as_discriminator=yes
24587 else
24588 echo "configure: failed program was" >&5
24589 cat conftest.s >&5
24591 rm -f conftest.o conftest.s
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24595 $as_echo "$gcc_cv_as_discriminator" >&6; }
24596 if test $gcc_cv_as_discriminator = yes; then
24598 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24603 # Catch the newlib flag of the same name so we can gate GCC features on it.
24604 # Check whether --enable-newlib-nano-formatted-io was given.
24605 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24606 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
24607 yes|no)
24610 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24612 esac
24616 # Thread-local storage - the check is heavily parameterized.
24617 conftest_s=
24618 tls_first_major=
24619 tls_first_minor=
24620 tls_as_opt=
24621 case "$target" in
24622 alpha*-*-*)
24623 conftest_s='
24624 .section ".tdata","awT",@progbits
24625 foo: .long 25
24626 .text
24627 ldq $27,__tls_get_addr($29) !literal!1
24628 lda $16,foo($29) !tlsgd!1
24629 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24630 ldq $27,__tls_get_addr($29) !literal!2
24631 lda $16,foo($29) !tlsldm!2
24632 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24633 ldq $1,foo($29) !gotdtprel
24634 ldah $2,foo($29) !dtprelhi
24635 lda $3,foo($2) !dtprello
24636 lda $4,foo($29) !dtprel
24637 ldq $1,foo($29) !gottprel
24638 ldah $2,foo($29) !tprelhi
24639 lda $3,foo($2) !tprello
24640 lda $4,foo($29) !tprel'
24641 tls_first_major=2
24642 tls_first_minor=13
24643 tls_as_opt=--fatal-warnings
24645 arc*-*-*)
24646 conftest_s='
24647 add_s r0,r0, @foo@tpoff'
24648 tls_first_major=2
24649 tls_first_minor=23
24651 cris-*-*|crisv32-*-*)
24652 conftest_s='
24653 .section ".tdata","awT",@progbits
24654 x: .long 25
24655 .text
24656 move.d x:IE,$r10
24657 nop'
24658 tls_first_major=2
24659 tls_first_minor=20
24660 tls_as_opt=--fatal-warnings
24662 frv*-*-*)
24663 conftest_s='
24664 .section ".tdata","awT",@progbits
24665 x: .long 25
24666 .text
24667 call #gettlsoff(x)'
24668 tls_first_major=2
24669 tls_first_minor=14
24671 hppa*-*-linux*)
24672 conftest_s='
24673 t1: .reg %r20
24674 t2: .reg %r21
24675 gp: .reg %r19
24676 .section ".tdata","awT",@progbits
24677 foo: .long 25
24678 .text
24679 .align 4
24680 addil LT%foo-$tls_gdidx$,gp
24681 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24682 b __tls_get_addr
24684 addil LT%foo-$tls_ldidx$,gp
24685 b __tls_get_addr
24686 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24687 addil LR%foo-$tls_dtpoff$,%ret0
24688 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24689 mfctl %cr27,%t1
24690 addil LT%foo-$tls_ieoff$,gp
24691 ldw RT%foo-$tls_ieoff$(%r1),%t2
24692 add %t1,%t2,%t3
24693 mfctl %cr27,%t1
24694 addil LR%foo-$tls_leoff$,%t1
24695 ldo RR%foo-$tls_leoff$(%r1),%t2'
24696 tls_first_major=2
24697 tls_first_minor=15
24698 tls_as_opt=--fatal-warnings
24700 arm*-*-*)
24701 conftest_s='
24702 .section ".tdata","awT",%progbits
24703 foo: .long 25
24704 .text
24705 .word foo(gottpoff)
24706 .word foo(tpoff)
24707 .word foo(tlsgd)
24708 .word foo(tlsldm)
24709 .word foo(tlsldo)'
24710 tls_first_major=2
24711 tls_first_minor=17
24713 i[34567]86-*-* | x86_64-*-*)
24714 case "$target" in
24715 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24716 on_solaris=yes
24719 on_solaris=no
24721 esac
24722 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24723 conftest_s='
24724 .section .tdata,"awt",@progbits'
24725 tls_first_major=0
24726 tls_first_minor=0
24727 tls_section_flag=t
24729 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24731 else
24732 conftest_s='
24733 .section ".tdata","awT",@progbits'
24734 tls_first_major=2
24735 tls_first_minor=14
24736 tls_section_flag=T
24737 tls_as_opt="--fatal-warnings"
24739 case "$target" in
24740 i[34567]86-*-*)
24741 conftest_s="$conftest_s
24742 foo: .long 25
24743 .text
24744 movl %gs:0, %eax
24745 leal foo@tlsgd(,%ebx,1), %eax
24746 leal foo@tlsldm(%ebx), %eax
24747 leal foo@dtpoff(%eax), %edx
24748 movl foo@gottpoff(%ebx), %eax
24749 subl foo@gottpoff(%ebx), %eax
24750 addl foo@gotntpoff(%ebx), %eax
24751 movl foo@indntpoff, %eax
24752 movl \$foo@tpoff, %eax
24753 subl \$foo@tpoff, %eax
24754 leal foo@ntpoff(%ecx), %eax"
24756 x86_64-*-*)
24757 if test x$on_solaris = xyes; then
24758 case $gas_flag in
24759 yes) tls_as_opt="$tls_as_opt --64" ;;
24760 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24761 esac
24763 conftest_s="$conftest_s
24764 foo: .long 25
24765 .text
24766 movq %fs:0, %rax
24767 leaq foo@tlsgd(%rip), %rdi
24768 leaq foo@tlsld(%rip), %rdi
24769 leaq foo@dtpoff(%rax), %rdx
24770 movq foo@gottpoff(%rip), %rax
24771 movq \$foo@tpoff, %rax"
24773 esac
24775 ia64-*-*)
24776 conftest_s='
24777 .section ".tdata","awT",@progbits
24778 foo: data8 25
24779 .text
24780 addl r16 = @ltoff(@dtpmod(foo#)), gp
24781 addl r17 = @ltoff(@dtprel(foo#)), gp
24782 addl r18 = @ltoff(@tprel(foo#)), gp
24783 addl r19 = @dtprel(foo#), gp
24784 adds r21 = @dtprel(foo#), r13
24785 movl r23 = @dtprel(foo#)
24786 addl r20 = @tprel(foo#), gp
24787 adds r22 = @tprel(foo#), r13
24788 movl r24 = @tprel(foo#)'
24789 tls_first_major=2
24790 tls_first_minor=13
24791 tls_as_opt=--fatal-warnings
24793 microblaze*-*-*)
24794 conftest_s='
24795 .section .tdata,"awT",@progbits
24797 .word 2
24798 .text
24799 addik r5,r20,x@TLSGD
24800 addik r5,r20,x@TLSLDM'
24801 tls_first_major=2
24802 tls_first_minor=20
24803 tls_as_opt='--fatal-warnings'
24805 mips*-*-*)
24806 conftest_s='
24807 .section .tdata,"awT",@progbits
24809 .word 2
24810 .text
24811 addiu $4, $28, %tlsgd(x)
24812 addiu $4, $28, %tlsldm(x)
24813 lui $4, %dtprel_hi(x)
24814 addiu $4, $4, %dtprel_lo(x)
24815 lw $4, %gottprel(x)($28)
24816 lui $4, %tprel_hi(x)
24817 addiu $4, $4, %tprel_lo(x)'
24818 tls_first_major=2
24819 tls_first_minor=16
24820 tls_as_opt='-32 --fatal-warnings'
24822 m68k-*-*)
24823 conftest_s='
24824 .section .tdata,"awT",@progbits
24826 .word 2
24827 .text
24828 foo:
24829 move.l x@TLSGD(%a5),%a0
24830 move.l x@TLSLDM(%a5),%a0
24831 move.l x@TLSLDO(%a5),%a0
24832 move.l x@TLSIE(%a5),%a0
24833 move.l x@TLSLE(%a5),%a0'
24834 tls_first_major=2
24835 tls_first_minor=19
24836 tls_as_opt='--fatal-warnings'
24838 nios2-*-*)
24839 conftest_s='
24840 .section ".tdata","awT",@progbits'
24841 tls_first_major=2
24842 tls_first_minor=23
24843 tls_as_opt="--fatal-warnings"
24845 aarch64*-*-*)
24846 conftest_s='
24847 .section ".tdata","awT",%progbits
24848 foo: .long 25
24849 .text
24850 adrp x0, :tlsgd:x
24851 add x0, x0, #:tlsgd_lo12:x
24852 bl __tls_get_addr
24853 nop'
24854 tls_first_major=2
24855 tls_first_minor=20
24856 tls_as_opt='--fatal-warnings'
24858 or1k*-*-*)
24859 conftest_s='
24860 .section ".tdata","awT",@progbits
24861 foo: .long 25
24862 .text
24863 l.movhi r3, tpoffha(foo)
24864 l.add r3, r3, r10
24865 l.lwz r4, tpofflo(foo)(r3)'
24866 tls_first_major=2
24867 tls_first_minor=30
24868 tls_as_opt=--fatal-warnings
24870 powerpc-ibm-aix*)
24871 conftest_s='
24872 .extern __get_tpointer
24873 .toc
24874 LC..1:
24875 .tc a[TC],a[TL]@le
24876 .csect .text[PR]
24877 .tlstest:
24878 lwz 9,LC..1(2)
24879 bla __get_tpointer
24880 lwzx 3,9,3
24881 .globl a
24882 .csect a[TL],4
24884 .space 4'
24885 tls_first_major=0
24886 tls_first_minor=0
24888 powerpc64*-*-*)
24889 conftest_s='
24890 .section ".tdata","awT",@progbits
24891 .align 3
24892 ld0: .space 8
24893 ld1: .space 8
24894 x1: .space 8
24895 x2: .space 8
24896 x3: .space 8
24897 .text
24898 addi 3,2,ld0@got@tlsgd
24899 bl .__tls_get_addr
24901 addi 3,2,ld1@toc
24902 bl .__tls_get_addr
24904 addi 3,2,x1@got@tlsld
24905 bl .__tls_get_addr
24907 addi 9,3,x1@dtprel
24908 bl .__tls_get_addr
24910 addis 9,3,x2@dtprel@ha
24911 addi 9,9,x2@dtprel@l
24912 bl .__tls_get_addr
24914 ld 9,x3@got@dtprel(2)
24915 add 9,9,3
24916 bl .__tls_get_addr
24917 nop'
24918 tls_first_major=2
24919 tls_first_minor=14
24920 tls_as_opt="-a64 --fatal-warnings"
24922 powerpc*-*-*)
24923 conftest_s='
24924 .section ".tdata","awT",@progbits
24925 .align 2
24926 ld0: .space 4
24927 ld1: .space 4
24928 x1: .space 4
24929 x2: .space 4
24930 x3: .space 4
24931 .text
24932 addi 3,31,ld0@got@tlsgd
24933 bl __tls_get_addr
24934 addi 3,31,x1@got@tlsld
24935 bl __tls_get_addr
24936 addi 9,3,x1@dtprel
24937 addis 9,3,x2@dtprel@ha
24938 addi 9,9,x2@dtprel@l
24939 lwz 9,x3@got@tprel(31)
24940 add 9,9,x@tls
24941 addi 9,2,x1@tprel
24942 addis 9,2,x2@tprel@ha
24943 addi 9,9,x2@tprel@l'
24944 tls_first_major=2
24945 tls_first_minor=14
24946 tls_as_opt="-a32 --fatal-warnings"
24948 riscv*-*-*)
24949 conftest_s='
24950 .section .tdata,"awT",@progbits
24951 x: .word 2
24952 .text
24953 la.tls.gd a0,x
24954 call __tls_get_addr'
24955 tls_first_major=2
24956 tls_first_minor=21
24957 tls_as_opt='--fatal-warnings'
24959 s390-*-*)
24960 conftest_s='
24961 .section ".tdata","awT",@progbits
24962 foo: .long 25
24963 .text
24964 .long foo@TLSGD
24965 .long foo@TLSLDM
24966 .long foo@DTPOFF
24967 .long foo@NTPOFF
24968 .long foo@GOTNTPOFF
24969 .long foo@INDNTPOFF
24970 l %r1,foo@GOTNTPOFF(%r12)
24971 l %r1,0(%r1):tls_load:foo
24972 bas %r14,0(%r1,%r13):tls_gdcall:foo
24973 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24974 tls_first_major=2
24975 tls_first_minor=14
24976 tls_as_opt="-m31 --fatal-warnings"
24978 s390x-*-*)
24979 conftest_s='
24980 .section ".tdata","awT",@progbits
24981 foo: .long 25
24982 .text
24983 .quad foo@TLSGD
24984 .quad foo@TLSLDM
24985 .quad foo@DTPOFF
24986 .quad foo@NTPOFF
24987 .quad foo@GOTNTPOFF
24988 lg %r1,foo@GOTNTPOFF(%r12)
24989 larl %r1,foo@INDNTPOFF
24990 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24991 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24992 tls_first_major=2
24993 tls_first_minor=14
24994 tls_as_opt="-m64 -Aesame --fatal-warnings"
24996 sh-*-* | sh[123456789lbe]*-*-*)
24997 conftest_s='
24998 .section ".tdata","awT",@progbits
24999 foo: .long 25
25000 .text
25001 .long foo@TLSGD
25002 .long foo@TLSLDM
25003 .long foo@DTPOFF
25004 .long foo@GOTTPOFF
25005 .long foo@TPOFF'
25006 tls_first_major=2
25007 tls_first_minor=13
25008 tls_as_opt=--fatal-warnings
25010 sparc*-*-*)
25011 case "$target" in
25012 sparc*-sun-solaris2.*)
25013 on_solaris=yes
25016 on_solaris=no
25018 esac
25019 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25020 conftest_s='
25021 .section ".tdata",#alloc,#write,#tls'
25022 tls_first_major=0
25023 tls_first_minor=0
25024 else
25025 conftest_s='
25026 .section ".tdata","awT",@progbits'
25027 tls_first_major=2
25028 tls_first_minor=14
25029 tls_as_opt="-32 --fatal-warnings"
25031 conftest_s="$conftest_s
25032 foo: .long 25
25033 .text
25034 sethi %tgd_hi22(foo), %o0
25035 add %o0, %tgd_lo10(foo), %o1
25036 add %l7, %o1, %o0, %tgd_add(foo)
25037 call __tls_get_addr, %tgd_call(foo)
25038 sethi %tldm_hi22(foo), %l1
25039 add %l1, %tldm_lo10(foo), %l2
25040 add %l7, %l2, %o0, %tldm_add(foo)
25041 call __tls_get_addr, %tldm_call(foo)
25042 sethi %tldo_hix22(foo), %l3
25043 xor %l3, %tldo_lox10(foo), %l4
25044 add %o0, %l4, %l5, %tldo_add(foo)
25045 sethi %tie_hi22(foo), %o3
25046 add %o3, %tie_lo10(foo), %o3
25047 ld [%l7 + %o3], %o2, %tie_ld(foo)
25048 add %g7, %o2, %o4, %tie_add(foo)
25049 sethi %tle_hix22(foo), %l1
25050 xor %l1, %tle_lox10(foo), %o5
25051 ld [%g7 + %o5], %o1"
25053 tilepro*-*-*)
25054 conftest_s='
25055 .section ".tdata","awT",@progbits
25056 foo: .long 25
25057 .text
25058 addli r0, zero, tls_gd(foo)
25059 auli r0, zero, tls_gd_ha16(foo)
25060 addli r0, r0, tls_gd_lo16(foo)
25061 jal __tls_get_addr
25062 addli r0, zero, tls_ie(foo)
25063 auli r0, r0, tls_ie_ha16(foo)
25064 addli r0, r0, tls_ie_lo16(foo)'
25065 tls_first_major=2
25066 tls_first_minor=22
25067 tls_as_opt="--fatal-warnings"
25069 tilegx*-*-*)
25070 conftest_s='
25071 .section ".tdata","awT",@progbits
25072 foo: .long 25
25073 .text
25074 shl16insli r0, zero, hw0_last_tls_gd(foo)
25075 shl16insli r0, zero, hw1_last_tls_gd(foo)
25076 shl16insli r0, r0, hw0_tls_gd(foo)
25077 jal __tls_get_addr
25078 shl16insli r0, zero, hw1_last_tls_ie(foo)
25079 shl16insli r0, r0, hw0_tls_ie(foo)'
25080 tls_first_major=2
25081 tls_first_minor=22
25082 tls_as_opt="--fatal-warnings"
25084 xtensa*-*-*)
25085 conftest_s='
25086 .section ".tdata","awT",@progbits
25087 foo: .long 25
25088 .text
25089 movi a8, foo@TLSFUNC
25090 movi a10, foo@TLSARG
25091 callx8.tls a8, foo@TLSCALL'
25092 tls_first_major=2
25093 tls_first_minor=19
25095 esac
25096 set_have_as_tls=no
25097 if test "x$enable_tls" = xno ; then
25098 : # TLS explicitly disabled.
25099 elif test "x$enable_tls" = xyes ; then
25100 set_have_as_tls=yes # TLS explicitly enabled.
25101 elif test -z "$tls_first_major"; then
25102 : # If we don't have a check, assume no support.
25103 else
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25105 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25106 if ${gcc_cv_as_tls+:} false; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 gcc_cv_as_tls=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25112 then gcc_cv_as_tls=yes
25114 elif test x$gcc_cv_as != x; then
25115 $as_echo "$conftest_s" > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25122 then
25123 gcc_cv_as_tls=yes
25124 else
25125 echo "configure: failed program was" >&5
25126 cat conftest.s >&5
25128 rm -f conftest.o conftest.s
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25132 $as_echo "$gcc_cv_as_tls" >&6; }
25133 if test $gcc_cv_as_tls = yes; then
25134 set_have_as_tls=yes
25138 if test $set_have_as_tls = yes ; then
25140 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25144 # Target-specific assembler checks.
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25147 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25148 gcc_cv_ld_static_dynamic=no
25149 gcc_cv_ld_static_option='-Bstatic'
25150 gcc_cv_ld_dynamic_option='-Bdynamic'
25151 if test $in_tree_ld = yes ; then
25152 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
25153 gcc_cv_ld_static_dynamic=yes
25155 elif test x$gcc_cv_ld != x; then
25156 # Check if linker supports -Bstatic/-Bdynamic option
25157 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25158 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25159 gcc_cv_ld_static_dynamic=yes
25160 else
25161 case "$target" in
25162 # AIX ld uses -b flags
25163 *-*-aix4.[23]* | *-*-aix[5-9]*)
25164 gcc_cv_ld_static_dynamic=yes
25165 gcc_cv_ld_static_option="-bstatic"
25166 gcc_cv_ld_dynamic_option="-bdynamic"
25168 # HP-UX ld uses -a flags to select between shared and archive.
25169 *-*-hpux*)
25170 if test x"$gnu_ld" = xno; then
25171 gcc_cv_ld_static_dynamic=yes
25172 gcc_cv_ld_static_option="-aarchive_shared"
25173 gcc_cv_ld_dynamic_option="-adefault"
25176 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25177 *-*-solaris2*)
25178 gcc_cv_ld_static_dynamic=yes
25180 esac
25183 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25185 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25188 cat >>confdefs.h <<_ACEOF
25189 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25190 _ACEOF
25193 cat >>confdefs.h <<_ACEOF
25194 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25195 _ACEOF
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25199 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25202 $as_echo_n "checking linker --version-script option... " >&6; }
25203 gcc_cv_ld_version_script=no
25204 ld_version_script_option=''
25205 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25206 gcc_cv_ld_version_script=yes
25207 ld_version_script_option='--version-script'
25208 elif test x$gcc_cv_ld != x; then
25209 case "$target" in
25210 # Solaris 2 ld always supports -M. It also supports a subset of
25211 # --version-script since Solaris 11.4, but requires
25212 # -z gnu-version-script-compat to activate.
25213 *-*-solaris2*)
25214 gcc_cv_ld_version_script=yes
25215 ld_version_script_option='-M'
25217 esac
25219 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25221 $as_echo "$gcc_cv_ld_version_script" >&6; }
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25225 $as_echo_n "checking linker soname option... " >&6; }
25226 gcc_cv_ld_soname=no
25227 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25228 gcc_cv_ld_soname=yes
25229 ld_soname_option='-soname'
25230 elif test x$gcc_cv_ld != x; then
25231 case "$target" in
25232 *-*-darwin*)
25233 gcc_cv_ld_soname=yes
25234 ld_soname_option='-install_name'
25236 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25237 # ld compatiblity since some Solaris 10 update.
25238 *-*-solaris2*)
25239 gcc_cv_ld_soname=yes
25240 ld_soname_option='-h'
25242 esac
25244 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25246 $as_echo "$gcc_cv_ld_soname" >&6; }
25249 if test x"$demangler_in_ld" = xyes; then
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25251 $as_echo_n "checking linker --demangle support... " >&6; }
25252 gcc_cv_ld_demangle=no
25253 if test $in_tree_ld = yes; then
25254 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 \
25255 gcc_cv_ld_demangle=yes
25257 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25258 # Check if the GNU linker supports --demangle option
25259 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25260 gcc_cv_ld_demangle=yes
25263 if test x"$gcc_cv_ld_demangle" = xyes; then
25265 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25269 $as_echo "$gcc_cv_ld_demangle" >&6; }
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25273 $as_echo_n "checking linker plugin support... " >&6; }
25274 gcc_cv_lto_plugin=0
25275 if test -f liblto_plugin.la; then
25276 save_ld_ver="$ld_ver"
25277 save_ld_vers_major="$ld_vers_major"
25278 save_ld_vers_minor="$ld_vers_minor"
25279 save_ld_is_gold="$ld_is_gold"
25281 ld_is_gold=no
25283 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25284 ld_ver="GNU ld"
25285 # FIXME: ld_is_gold?
25286 ld_vers_major="$gcc_cv_gld_major_version"
25287 ld_vers_minor="$gcc_cv_gld_minor_version"
25288 else
25289 # Determine plugin linker version.
25290 # FIXME: Partial duplicate from above, generalize.
25291 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25292 if echo "$ld_ver" | grep GNU > /dev/null; then
25293 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25294 ld_is_gold=yes
25295 ld_vers=`echo $ld_ver | sed -n \
25296 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25297 else
25298 ld_vers=`echo $ld_ver | sed -n \
25299 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25301 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25302 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25306 # Determine plugin support.
25307 if echo "$ld_ver" | grep GNU > /dev/null; then
25308 # Require GNU ld or gold 2.21+ for plugin support by default.
25309 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25310 gcc_cv_lto_plugin=2
25311 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25312 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25313 gcc_cv_lto_plugin=1
25317 ld_ver="$save_ld_ver"
25318 ld_vers_major="$save_ld_vers_major"
25319 ld_vers_minor="$save_ld_vers_minor"
25320 ld_is_gold="$save_ld_is_gold"
25323 cat >>confdefs.h <<_ACEOF
25324 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25325 _ACEOF
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25328 $as_echo "$gcc_cv_lto_plugin" >&6; }
25330 # Target OS-specific assembler checks.
25332 case "$target_os" in
25333 darwin*)
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25335 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25336 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_mmacosx_version_min=no
25340 if test x$gcc_cv_as != x; then
25341 $as_echo '.text' > conftest.s
25342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25348 then
25349 gcc_cv_as_mmacosx_version_min=yes
25350 else
25351 echo "configure: failed program was" >&5
25352 cat conftest.s >&5
25354 rm -f conftest.o conftest.s
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25358 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25359 if test $gcc_cv_as_mmacosx_version_min = yes; then
25361 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25366 esac
25368 # Target CPU-specific assembler checks.
25370 case "$target" in
25371 aarch64*-*-*)
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25373 $as_echo_n "checking assembler for -mabi option... " >&6; }
25374 if ${gcc_cv_as_aarch64_mabi+:} false; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 gcc_cv_as_aarch64_mabi=no
25378 if test x$gcc_cv_as != x; then
25379 $as_echo '.text' > conftest.s
25380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25385 test $ac_status = 0; }; }
25386 then
25387 gcc_cv_as_aarch64_mabi=yes
25388 else
25389 echo "configure: failed program was" >&5
25390 cat conftest.s >&5
25392 rm -f conftest.o conftest.s
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25396 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25399 if test x$gcc_cv_as_aarch64_mabi = xyes; then
25401 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25403 else
25404 if test x$with_abi = xilp32; then
25405 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25406 Upgrade the Assembler." "$LINENO" 5
25408 if test x"$with_multilib_list" = xdefault; then
25409 TM_MULTILIB_CONFIG=lp64
25410 else
25411 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25412 for aarch64_multilib in ${aarch64_multilibs}; do
25413 case ${aarch64_multilib} in
25414 ilp32)
25415 as_fn_error $? "Assembler does not support -mabi=ilp32.\
25416 Upgrade the Assembler." "$LINENO" 5
25420 esac
25421 done
25424 # Check if we have binutils support for relocations types needed by -fpic
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25426 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25427 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
25428 $as_echo_n "(cached) " >&6
25429 else
25430 gcc_cv_as_aarch64_picreloc=no
25431 if test x$gcc_cv_as != x; then
25432 $as_echo '
25433 .text
25434 ldr x0, [x2, #:gotpage_lo15:globalsym]
25435 ' > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25442 then
25443 gcc_cv_as_aarch64_picreloc=yes
25444 else
25445 echo "configure: failed program was" >&5
25446 cat conftest.s >&5
25448 rm -f conftest.o conftest.s
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25452 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25453 if test $gcc_cv_as_aarch64_picreloc = yes; then
25455 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25459 # Enable Branch Target Identification Mechanism and Return Address
25460 # Signing by default.
25461 # Check whether --enable-standard-branch-protection was given.
25462 if test "${enable_standard_branch_protection+set}" = set; then :
25463 enableval=$enable_standard_branch_protection;
25464 case $enableval in
25465 yes)
25466 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25471 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
25472 Valid choices are 'yes' and 'no'." "$LINENO" 5
25474 esac
25478 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25479 # Check whether --enable-fix-cortex-a53-835769 was given.
25480 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25481 enableval=$enable_fix_cortex_a53_835769;
25482 case $enableval in
25483 yes)
25484 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25489 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25490 Valid choices are 'yes' and 'no'." "$LINENO" 5
25493 esac
25497 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25498 # Check whether --enable-fix-cortex-a53-843419 was given.
25499 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25500 enableval=$enable_fix_cortex_a53_843419;
25501 case $enableval in
25502 yes)
25503 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25508 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25509 Valid choices are 'yes' and 'no'." "$LINENO" 5
25512 esac
25518 # All TARGET_ABI_OSF targets.
25519 alpha*-*-linux* | alpha*-*-*bsd*)
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25521 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25522 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
25523 $as_echo_n "(cached) " >&6
25524 else
25525 gcc_cv_as_alpha_explicit_relocs=no
25526 if test $in_tree_gas = yes; then
25527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25528 then gcc_cv_as_alpha_explicit_relocs=yes
25530 elif test x$gcc_cv_as != x; then
25531 $as_echo ' .set nomacro
25532 .text
25533 extbl $3, $2, $3 !lituse_bytoff!1
25534 ldq $2, a($29) !literal!1
25535 ldq $4, b($29) !literal!2
25536 ldq_u $3, 0($2) !lituse_base!1
25537 ldq $27, f($29) !literal!5
25538 jsr $26, ($27), f !lituse_jsr!5
25539 ldah $29, 0($26) !gpdisp!3
25540 lda $0, c($29) !gprel
25541 ldah $1, d($29) !gprelhigh
25542 lda $1, d($1) !gprellow
25543 lda $29, 0($29) !gpdisp!3' > conftest.s
25544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25546 (eval $ac_try) 2>&5
25547 ac_status=$?
25548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25549 test $ac_status = 0; }; }
25550 then
25551 gcc_cv_as_alpha_explicit_relocs=yes
25552 else
25553 echo "configure: failed program was" >&5
25554 cat conftest.s >&5
25556 rm -f conftest.o conftest.s
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25560 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25561 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25563 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25568 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25569 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
25570 $as_echo_n "(cached) " >&6
25571 else
25572 gcc_cv_as_alpha_jsrdirect_relocs=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25575 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25577 elif test x$gcc_cv_as != x; then
25578 $as_echo ' .set nomacro
25579 .text
25580 ldq $27, a($29) !literal!1
25581 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25585 ac_status=$?
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25588 then
25589 gcc_cv_as_alpha_jsrdirect_relocs=yes
25590 else
25591 echo "configure: failed program was" >&5
25592 cat conftest.s >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25598 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25599 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25601 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25607 avr-*-*)
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25609 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25610 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
25611 $as_echo_n "(cached) " >&6
25612 else
25613 gcc_cv_as_avr_mlink_relax=no
25614 if test x$gcc_cv_as != x; then
25615 $as_echo '.text' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_avr_mlink_relax=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25628 rm -f conftest.o conftest.s
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25632 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25633 if test $gcc_cv_as_avr_mlink_relax = yes; then
25635 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25641 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25642 if ${gcc_cv_as_avr_mrmw+:} false; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_avr_mrmw=no
25646 if test x$gcc_cv_as != x; then
25647 $as_echo '.text' > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 gcc_cv_as_avr_mrmw=yes
25656 else
25657 echo "configure: failed program was" >&5
25658 cat conftest.s >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25664 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25665 if test $gcc_cv_as_avr_mrmw = yes; then
25667 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25673 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25674 if ${gcc_cv_as_avr_mgccisr+:} false; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_as_avr_mgccisr=no
25678 if test x$gcc_cv_as != x; then
25679 $as_echo '.text
25680 __gcc_isr 1
25681 __gcc_isr 2
25682 __gcc_isr 0,r24
25683 ' > conftest.s
25684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25689 test $ac_status = 0; }; }
25690 then
25691 gcc_cv_as_avr_mgccisr=yes
25692 else
25693 echo "configure: failed program was" >&5
25694 cat conftest.s >&5
25696 rm -f conftest.o conftest.s
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25700 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25701 if test $gcc_cv_as_avr_mgccisr = yes; then
25703 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25708 # Check how default linker description file implements .rodata for
25709 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25710 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25712 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25713 cat > conftest.s <<EOF
25714 .section .rodata,"a",@progbits
25715 .global xxvaryy
25716 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25717 xxvaryy:
25718 .word 1
25720 rm -f conftest.nm
25721 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25726 test $ac_status = 0; }; }
25727 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729 (eval $ac_try) 2>&5
25730 ac_status=$?
25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732 test $ac_status = 0; }; }
25733 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 if test -s conftest.nm
25740 then
25741 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25743 $as_echo "yes" >&6; }
25745 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25747 else
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25749 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25750 echo "$as_me: nm output was" >&5
25751 cat conftest.nm >&5
25752 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25753 { $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
25754 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25756 else
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25758 $as_echo "test failed" >&6; }
25759 echo "$as_me: failed program was" >&5
25760 cat conftest.s >&5
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25762 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25764 rm -f conftest.s conftest.o conftest.elf conftest.nm
25767 cris-*-*)
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25769 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25770 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
25771 $as_echo_n "(cached) " >&6
25772 else
25773 gcc_cv_as_cris_no_mul_bug=no
25774 if test $in_tree_gas = yes; then
25775 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25776 then gcc_cv_as_cris_no_mul_bug=yes
25778 elif test x$gcc_cv_as != x; then
25779 $as_echo '.text' > conftest.s
25780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }
25786 then
25787 gcc_cv_as_cris_no_mul_bug=yes
25788 else
25789 echo "configure: failed program was" >&5
25790 cat conftest.s >&5
25792 rm -f conftest.o conftest.s
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25796 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25797 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25799 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25805 sparc*-*-*)
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25807 $as_echo_n "checking assembler for -relax option... " >&6; }
25808 if ${gcc_cv_as_sparc_relax+:} false; then :
25809 $as_echo_n "(cached) " >&6
25810 else
25811 gcc_cv_as_sparc_relax=no
25812 if test x$gcc_cv_as != x; then
25813 $as_echo '.text' > conftest.s
25814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -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 gcc_cv_as_sparc_relax=yes
25822 else
25823 echo "configure: failed program was" >&5
25824 cat conftest.s >&5
25826 rm -f conftest.o conftest.s
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25830 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25831 if test $gcc_cv_as_sparc_relax = yes; then
25833 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25839 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25840 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
25841 $as_echo_n "(cached) " >&6
25842 else
25843 gcc_cv_as_sparc_gotdata_op=no
25844 if test x$gcc_cv_as != x; then
25845 $as_echo '.text
25846 .align 4
25847 foo:
25849 bar:
25850 sethi %gdop_hix22(foo), %g1
25851 xor %g1, %gdop_lox10(foo), %g1
25852 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25855 (eval $ac_try) 2>&5
25856 ac_status=$?
25857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25858 test $ac_status = 0; }; }
25859 then
25860 if test x$gcc_cv_ld != x \
25861 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25862 if test x$gcc_cv_objdump != x; then
25863 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25864 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25865 gcc_cv_as_sparc_gotdata_op=no
25866 else
25867 gcc_cv_as_sparc_gotdata_op=yes
25871 rm -f conftest
25872 else
25873 echo "configure: failed program was" >&5
25874 cat conftest.s >&5
25876 rm -f conftest.o conftest.s
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25880 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25881 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25883 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25889 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25890 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_sparc_ua_pcrel=no
25894 if test x$gcc_cv_as != x; then
25895 $as_echo '.text
25896 foo:
25898 .data
25899 .align 4
25900 .byte 0
25901 .uaword %r_disp32(foo)' > conftest.s
25902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; }; }
25908 then
25909 if test x$gcc_cv_ld != x \
25910 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25911 gcc_cv_as_sparc_ua_pcrel=yes
25913 rm -f conftest
25914 else
25915 echo "configure: failed program was" >&5
25916 cat conftest.s >&5
25918 rm -f conftest.o conftest.s
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25922 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25923 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25925 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25929 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25930 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
25931 $as_echo_n "(cached) " >&6
25932 else
25933 gcc_cv_as_sparc_ua_pcrel_hidden=no
25934 if test x$gcc_cv_as != x; then
25935 $as_echo '.data
25936 .align 4
25937 .byte 0x31
25938 .uaword %r_disp32(foo)
25939 .byte 0x32, 0x33, 0x34
25940 .global foo
25941 .hidden foo
25942 foo:
25943 .skip 4' > conftest.s
25944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25949 test $ac_status = 0; }; }
25950 then
25951 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25952 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25953 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25954 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25955 if $gcc_cv_objdump -R conftest 2> /dev/null \
25956 | grep 'DISP32' > /dev/null 2>&1; then
25958 else
25959 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25962 rm -f conftest
25963 else
25964 echo "configure: failed program was" >&5
25965 cat conftest.s >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25971 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25972 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25974 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25980 # unaligned pcrel relocs
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25983 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25984 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
25985 $as_echo_n "(cached) " >&6
25986 else
25987 gcc_cv_as_sparc_offsetable_lo10=no
25988 if test x$gcc_cv_as != x; then
25989 $as_echo '.text
25990 or %g1, %lo(ab) + 12, %g1
25991 or %g1, %lo(ab + 12), %g1' > conftest.s
25992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997 test $ac_status = 0; }; }
25998 then
25999 if test x$gcc_cv_objdump != x \
26000 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26001 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26002 gcc_cv_as_sparc_offsetable_lo10=yes
26004 else
26005 echo "configure: failed program was" >&5
26006 cat conftest.s >&5
26008 rm -f conftest.o conftest.s
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26012 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26013 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26015 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26021 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26022 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_sparc_fmaf=no
26026 if test x$gcc_cv_as != x; then
26027 $as_echo '.text
26028 .register %g2, #scratch
26029 .register %g3, #scratch
26030 .align 4
26031 fmaddd %f0, %f2, %f4, %f6
26032 addxccc %g1, %g2, %g3
26033 fsrl32 %f2, %f4, %f8
26034 fnaddd %f10, %f12, %f14' > conftest.s
26035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26041 then
26042 gcc_cv_as_sparc_fmaf=yes
26043 else
26044 echo "configure: failed program was" >&5
26045 cat conftest.s >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26051 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26052 if test $gcc_cv_as_sparc_fmaf = yes; then
26054 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26060 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26061 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_sparc_sparc4=no
26065 if test x$gcc_cv_as != x; then
26066 $as_echo '.text
26067 .register %g2, #scratch
26068 .register %g3, #scratch
26069 .align 4
26070 cxbe %g2, %g3, 1f
26071 1: cwbneg %g2, %g3, 1f
26072 1: sha1
26074 aes_kexpand0 %f4, %f6, %f8
26075 des_round %f38, %f40, %f42, %f44
26076 camellia_f %f54, %f56, %f58, %f60
26077 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_sparc_sparc4=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26094 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26095 if test $gcc_cv_as_sparc_sparc4 = yes; then
26097 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26103 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26104 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_sparc_sparc5=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo '.text
26110 .register %g2, #scratch
26111 .register %g3, #scratch
26112 .align 4
26113 subxc %g1, %g2, %g3
26114 fpadd8 %f0, %f2, %f4' > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_sparc_sparc5=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26131 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26132 if test $gcc_cv_as_sparc_sparc5 = yes; then
26134 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26140 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26141 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_sparc_sparc6=no
26145 if test x$gcc_cv_as != x; then
26146 $as_echo '.text
26147 .register %g2, #scratch
26148 .register %g3, #scratch
26149 .align 4
26150 rd %entropy, %g1
26151 fpsll64x %f0, %f2, %f4' > conftest.s
26152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157 test $ac_status = 0; }; }
26158 then
26159 gcc_cv_as_sparc_sparc6=yes
26160 else
26161 echo "configure: failed program was" >&5
26162 cat conftest.s >&5
26164 rm -f conftest.o conftest.s
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26168 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26169 if test $gcc_cv_as_sparc_sparc6 = yes; then
26171 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26177 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26178 if ${gcc_cv_as_sparc_leon+:} false; then :
26179 $as_echo_n "(cached) " >&6
26180 else
26181 gcc_cv_as_sparc_leon=no
26182 if test x$gcc_cv_as != x; then
26183 $as_echo '.text
26184 .register %g2, #scratch
26185 .register %g3, #scratch
26186 .align 4
26187 smac %g2, %g3, %g1
26188 umac %g2, %g3, %g1
26189 casa [%g2] 0xb, %g3, %g1' > conftest.s
26190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26196 then
26197 gcc_cv_as_sparc_leon=yes
26198 else
26199 echo "configure: failed program was" >&5
26200 cat conftest.s >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26206 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26207 if test $gcc_cv_as_sparc_leon = yes; then
26209 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26215 i[34567]86-*-* | x86_64-*-*)
26216 case $target_os in
26217 cygwin*)
26218 # Full C++ conformance when using a shared libstdc++-v3 requires some
26219 # support from the Cygwin DLL, which in more recent versions exports
26220 # wrappers to aid in interposing and redirecting operators new, delete,
26221 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26222 # are configuring for a version of Cygwin that exports the wrappers.
26223 if test x$host = x$target && test x$host_cpu = xi686; then
26224 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26225 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26226 gcc_ac_cygwin_dll_wrappers=yes
26227 else
26228 gcc_ac_cygwin_dll_wrappers=no
26231 else
26232 # Can't check presence of libc functions during cross-compile, so
26233 # we just have to assume we're building for an up-to-date target.
26234 gcc_ac_cygwin_dll_wrappers=yes
26237 cat >>confdefs.h <<_ACEOF
26238 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26239 _ACEOF
26241 esac
26242 case $target_os in
26243 cygwin* | pe | mingw32*)
26244 # Recent binutils allows the three-operand form of ".comm" on PE. This
26245 # definition is used unconditionally to initialise the default state of
26246 # the target option variable that governs usage of the feature.
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26248 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26249 if ${gcc_cv_as_comm_has_align+:} false; then :
26250 $as_echo_n "(cached) " >&6
26251 else
26252 gcc_cv_as_comm_has_align=no
26253 if test $in_tree_gas = yes; then
26254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26255 then gcc_cv_as_comm_has_align=yes
26257 elif test x$gcc_cv_as != x; then
26258 $as_echo '.comm foo,1,32' > conftest.s
26259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; }
26265 then
26266 gcc_cv_as_comm_has_align=yes
26267 else
26268 echo "configure: failed program was" >&5
26269 cat conftest.s >&5
26271 rm -f conftest.o conftest.s
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26275 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26279 cat >>confdefs.h <<_ACEOF
26280 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26281 _ACEOF
26283 # Used for DWARF 2 in PE
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26285 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26286 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26289 gcc_cv_as_ix86_pe_secrel32=no
26290 if test $in_tree_gas = yes; then
26291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26292 then gcc_cv_as_ix86_pe_secrel32=yes
26294 elif test x$gcc_cv_as != x; then
26295 $as_echo '.text
26296 foo: nop
26297 .data
26298 .secrel32 foo' > conftest.s
26299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26304 test $ac_status = 0; }; }
26305 then
26306 if test x$gcc_cv_ld != x \
26307 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26308 gcc_cv_as_ix86_pe_secrel32=yes
26310 rm -f conftest
26311 else
26312 echo "configure: failed program was" >&5
26313 cat conftest.s >&5
26315 rm -f conftest.o conftest.s
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26319 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26320 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26322 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26326 # Test if the assembler supports the extended form of the .section
26327 # directive that specifies section alignment. LTO support uses this,
26328 # but normally only after installation, so we warn but don't fail the
26329 # configure if LTO is enabled but the assembler does not support it.
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26331 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26332 if ${gcc_cv_as_section_has_align+:} false; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26335 gcc_cv_as_section_has_align=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26338 then gcc_cv_as_section_has_align=yes
26340 elif test x$gcc_cv_as != x; then
26341 $as_echo '.section lto_test,"dr0"' > conftest.s
26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26348 then
26349 gcc_cv_as_section_has_align=yes
26350 else
26351 echo "configure: failed program was" >&5
26352 cat conftest.s >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26358 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26361 if test x$gcc_cv_as_section_has_align != xyes; then
26362 case ",$enable_languages," in
26363 *,lto,*)
26364 { $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
26365 $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;}
26367 esac
26370 esac
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26373 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26374 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
26375 $as_echo_n "(cached) " >&6
26376 else
26377 gcc_cv_as_ix86_xbrace_comment=no
26378 if test x$gcc_cv_as != x; then
26379 $as_echo '.text' > conftest.s
26380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26382 (eval $ac_try) 2>&5
26383 ac_status=$?
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; }
26386 then
26387 gcc_cv_as_ix86_xbrace_comment=yes
26388 else
26389 echo "configure: failed program was" >&5
26390 cat conftest.s >&5
26392 rm -f conftest.o conftest.s
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26396 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26397 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26399 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26405 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26406 if ${gcc_cv_as_ix86_filds+:} false; then :
26407 $as_echo_n "(cached) " >&6
26408 else
26409 gcc_cv_as_ix86_filds=no
26410 if test x$gcc_cv_as != x; then
26411 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26417 test $ac_status = 0; }; }
26418 then
26419 gcc_cv_as_ix86_filds=yes
26420 else
26421 echo "configure: failed program was" >&5
26422 cat conftest.s >&5
26424 rm -f conftest.o conftest.s
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26428 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26429 if test $gcc_cv_as_ix86_filds = yes; then
26431 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26437 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26438 if ${gcc_cv_as_ix86_fildq+:} false; then :
26439 $as_echo_n "(cached) " >&6
26440 else
26441 gcc_cv_as_ix86_fildq=no
26442 if test x$gcc_cv_as != x; then
26443 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_ix86_fildq=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26456 rm -f conftest.o conftest.s
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26460 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26461 if test $gcc_cv_as_ix86_fildq = yes; then
26463 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26469 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26470 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26473 gcc_cv_as_ix86_cmov_sun_syntax=no
26474 if test x$gcc_cv_as != x; then
26475 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26481 test $ac_status = 0; }; }
26482 then
26483 gcc_cv_as_ix86_cmov_sun_syntax=yes
26484 else
26485 echo "configure: failed program was" >&5
26486 cat conftest.s >&5
26488 rm -f conftest.o conftest.s
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26492 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26493 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26495 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26501 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26502 if ${gcc_cv_as_ix86_ffreep+:} false; then :
26503 $as_echo_n "(cached) " >&6
26504 else
26505 gcc_cv_as_ix86_ffreep=no
26506 if test x$gcc_cv_as != x; then
26507 $as_echo 'ffreep %st(1)' > conftest.s
26508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26513 test $ac_status = 0; }; }
26514 then
26515 gcc_cv_as_ix86_ffreep=yes
26516 else
26517 echo "configure: failed program was" >&5
26518 cat conftest.s >&5
26520 rm -f conftest.o conftest.s
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26524 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26525 if test $gcc_cv_as_ix86_ffreep = yes; then
26527 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26533 $as_echo_n "checking assembler for .quad directive... " >&6; }
26534 if ${gcc_cv_as_ix86_quad+:} false; then :
26535 $as_echo_n "(cached) " >&6
26536 else
26537 gcc_cv_as_ix86_quad=no
26538 if test x$gcc_cv_as != x; then
26539 $as_echo '.quad 0' > conftest.s
26540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26545 test $ac_status = 0; }; }
26546 then
26547 gcc_cv_as_ix86_quad=yes
26548 else
26549 echo "configure: failed program was" >&5
26550 cat conftest.s >&5
26552 rm -f conftest.o conftest.s
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26556 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26557 if test $gcc_cv_as_ix86_quad = yes; then
26559 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26566 if ${gcc_cv_as_ix86_sahf+:} false; then :
26567 $as_echo_n "(cached) " >&6
26568 else
26569 gcc_cv_as_ix86_sahf=no
26570 if test x$gcc_cv_as != x; then
26571 $as_echo '.code64
26572 sahf' > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_ix86_sahf=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26590 if test $gcc_cv_as_ix86_sahf = yes; then
26592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26598 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26599 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_as_ix86_interunit_movq=no
26603 if test x$gcc_cv_as != x; then
26604 $as_echo '.code64
26605 movq %mm0, %rax
26606 movq %rax, %xmm0' > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 gcc_cv_as_ix86_interunit_movq=yes
26615 else
26616 echo "configure: failed program was" >&5
26617 cat conftest.s >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26623 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26627 cat >>confdefs.h <<_ACEOF
26628 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26629 _ACEOF
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26633 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26634 if ${gcc_cv_as_ix86_hle+:} false; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_as_ix86_hle=no
26638 if test x$gcc_cv_as != x; then
26639 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26645 test $ac_status = 0; }; }
26646 then
26647 gcc_cv_as_ix86_hle=yes
26648 else
26649 echo "configure: failed program was" >&5
26650 cat conftest.s >&5
26652 rm -f conftest.o conftest.s
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26656 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26657 if test $gcc_cv_as_ix86_hle = yes; then
26659 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26665 $as_echo_n "checking assembler for swap suffix... " >&6; }
26666 if ${gcc_cv_as_ix86_swap+:} false; then :
26667 $as_echo_n "(cached) " >&6
26668 else
26669 gcc_cv_as_ix86_swap=no
26670 if test x$gcc_cv_as != x; then
26671 $as_echo 'movl.s %esp, %ebp' > conftest.s
26672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26674 (eval $ac_try) 2>&5
26675 ac_status=$?
26676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26677 test $ac_status = 0; }; }
26678 then
26679 gcc_cv_as_ix86_swap=yes
26680 else
26681 echo "configure: failed program was" >&5
26682 cat conftest.s >&5
26684 rm -f conftest.o conftest.s
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26688 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26689 if test $gcc_cv_as_ix86_swap = yes; then
26691 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26697 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26698 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
26699 $as_echo_n "(cached) " >&6
26700 else
26701 gcc_cv_as_ix86_diff_sect_delta=no
26702 if test x$gcc_cv_as != x; then
26703 $as_echo '.section .rodata
26704 .L1:
26705 .long .L2-.L1
26706 .long .L3-.L1
26707 .text
26708 .L3: nop
26709 .L2: nop' > conftest.s
26710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26715 test $ac_status = 0; }; }
26716 then
26717 gcc_cv_as_ix86_diff_sect_delta=yes
26718 else
26719 echo "configure: failed program was" >&5
26720 cat conftest.s >&5
26722 rm -f conftest.o conftest.s
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26726 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26727 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26729 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26735 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26736 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_as_ix86_rep_lock_prefix=no
26740 if test x$gcc_cv_as != x; then
26741 $as_echo 'rep movsl
26742 rep ret
26743 rep nop
26744 rep bsf %ecx, %eax
26745 rep bsr %ecx, %eax
26746 lock addl %edi, (%eax,%esi)
26747 lock orl $0, (%esp)' > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_ix86_rep_lock_prefix=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26760 rm -f conftest.o conftest.s
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26764 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26765 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26767 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26773 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26774 if ${gcc_cv_as_ix86_ud2+:} false; then :
26775 $as_echo_n "(cached) " >&6
26776 else
26777 gcc_cv_as_ix86_ud2=no
26778 if test x$gcc_cv_as != x; then
26779 $as_echo 'ud2' > conftest.s
26780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26783 ac_status=$?
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26786 then
26787 gcc_cv_as_ix86_ud2=yes
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26796 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26797 if test $gcc_cv_as_ix86_ud2 = yes; then
26799 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26804 # Enforce 32-bit output with gas and gld.
26805 if test x$gas = xyes; then
26806 as_ix86_gas_32_opt="--32"
26808 if echo "$ld_ver" | grep GNU > /dev/null; then
26809 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26810 ld_ix86_gld_32_opt="-melf_i386_sol2"
26811 else
26812 ld_ix86_gld_32_opt="-melf_i386"
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26817 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26818 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
26819 $as_echo_n "(cached) " >&6
26820 else
26821 gcc_cv_as_ix86_tlsgdplt=no
26822 if test x$gcc_cv_as != x; then
26823 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26829 test $ac_status = 0; }; }
26830 then
26831 if test x$gcc_cv_ld != x \
26832 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26833 gcc_cv_as_ix86_tlsgdplt=yes
26835 rm -f conftest
26836 else
26837 echo "configure: failed program was" >&5
26838 cat conftest.s >&5
26840 rm -f conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26844 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26845 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26847 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26852 conftest_s='
26853 .section .tdata,"aw'$tls_section_flag'",@progbits
26854 tls_ld:
26855 .section .text,"ax",@progbits
26856 call tls_ld@tlsldmplt'
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26859 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26860 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
26861 $as_echo_n "(cached) " >&6
26862 else
26863 gcc_cv_as_ix86_tlsldmplt=no
26864 if test x$gcc_cv_as != x; then
26865 $as_echo "$conftest_s" > conftest.s
26866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26872 then
26873 if test x$gcc_cv_ld != x \
26874 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26875 gcc_cv_as_ix86_tlsldmplt=yes
26877 rm -f conftest
26878 else
26879 echo "configure: failed program was" >&5
26880 cat conftest.s >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26886 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26890 cat >>confdefs.h <<_ACEOF
26891 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26892 _ACEOF
26895 conftest_s='
26896 .section .text,"ax",@progbits
26897 .globl _start
26898 .type _start, @function
26899 _start:
26900 leal value@tlsldm(%ebx), %eax
26901 call ___tls_get_addr@plt
26903 .section .tdata,"aw'$tls_section_flag'",@progbits
26904 .type value, @object
26905 value:'
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26907 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26908 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_as_ix86_tlsldm=no
26912 if test x$gcc_cv_as != x; then
26913 $as_echo "$conftest_s" > conftest.s
26914 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26919 test $ac_status = 0; }; }
26920 then
26921 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26922 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26923 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26924 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26925 gcc_cv_as_ix86_tlsldm=yes
26928 rm -f conftest
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26933 rm -f conftest.o conftest.s
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26937 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26941 cat >>confdefs.h <<_ACEOF
26942 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26943 _ACEOF
26946 conftest_s='
26947 .data
26948 bar:
26949 .byte 1
26950 .text
26951 .global _start
26952 _start:
26953 cmpl $0, bar@GOT
26954 jmp *_start@GOT'
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26956 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26957 if ${gcc_cv_as_ix86_got32x+:} false; then :
26958 $as_echo_n "(cached) " >&6
26959 else
26960 gcc_cv_as_ix86_got32x=no
26961 if test x$gcc_cv_as != x; then
26962 $as_echo "$conftest_s" > conftest.s
26963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26965 (eval $ac_try) 2>&5
26966 ac_status=$?
26967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26968 test $ac_status = 0; }; }
26969 then
26970 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26971 && test x$gcc_cv_readelf != x \
26972 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26973 | grep R_386_GOT32X > /dev/null 2>&1 \
26974 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26975 if $gcc_cv_objdump -dw conftest 2>&1 \
26976 | grep 0xffffff > /dev/null 2>&1; then
26977 gcc_cv_as_ix86_got32x=no
26978 else
26979 gcc_cv_as_ix86_got32x=yes
26982 rm -f conftest
26983 else
26984 echo "configure: failed program was" >&5
26985 cat conftest.s >&5
26987 rm -f conftest.o conftest.s
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26991 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26995 cat >>confdefs.h <<_ACEOF
26996 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26997 _ACEOF
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27001 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27002 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27003 $as_echo_n "(cached) " >&6
27004 else
27005 gcc_cv_as_ix86_gotoff_in_data=no
27006 if test $in_tree_gas = yes; then
27007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27008 then gcc_cv_as_ix86_gotoff_in_data=yes
27010 elif test x$gcc_cv_as != x; then
27011 $as_echo ' .text
27012 .L0:
27014 .data
27015 .long .L0@GOTOFF' > conftest.s
27016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27018 (eval $ac_try) 2>&5
27019 ac_status=$?
27020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27021 test $ac_status = 0; }; }
27022 then
27023 gcc_cv_as_ix86_gotoff_in_data=yes
27024 else
27025 echo "configure: failed program was" >&5
27026 cat conftest.s >&5
27028 rm -f conftest.o conftest.s
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27032 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27036 cat >>confdefs.h <<_ACEOF
27037 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27038 _ACEOF
27041 conftest_s='
27042 .section .text,"ax",@progbits
27043 .globl _start
27044 .type _start, @function
27045 _start:
27046 leal ld@tlsldm(%ecx), %eax
27047 call *___tls_get_addr@GOT(%ecx)
27048 leal gd@tlsgd(%ecx), %eax
27049 call *___tls_get_addr@GOT(%ecx)
27051 .section .tdata,"aw'$tls_section_flag'",@progbits
27052 .type ld, @object
27054 .byte 0
27055 .globl gd
27056 .type gd, @object
27058 .byte 0'
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27060 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27061 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27062 $as_echo_n "(cached) " >&6
27063 else
27064 gcc_cv_as_ix86_tls_get_addr_via_got=no
27065 if test x$gcc_cv_as != x; then
27066 $as_echo "$conftest_s" > conftest.s
27067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27072 test $ac_status = 0; }; }
27073 then
27074 if test x$gcc_cv_ld != x \
27075 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27076 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27078 rm -f conftest
27079 else
27080 echo "configure: failed program was" >&5
27081 cat conftest.s >&5
27083 rm -f conftest.o conftest.s
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27087 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27091 cat >>confdefs.h <<_ACEOF
27092 #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`
27093 _ACEOF
27097 ia64*-*-*)
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27099 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27100 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27101 $as_echo_n "(cached) " >&6
27102 else
27103 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27104 if test $in_tree_gas = yes; then
27105 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27106 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27108 elif test x$gcc_cv_as != x; then
27109 $as_echo ' .text
27110 addl r15 = @ltoffx(x#), gp
27112 ld8.mov r16 = [r15], x#
27113 ' > conftest.s
27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27120 then
27121 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27122 else
27123 echo "configure: failed program was" >&5
27124 cat conftest.s >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27130 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27131 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27133 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27140 powerpc*-*-*)
27142 case $target in
27143 *-*-darwin*)
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27145 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27146 if ${gcc_cv_as_machine_directive+:} false; then :
27147 $as_echo_n "(cached) " >&6
27148 else
27149 gcc_cv_as_machine_directive=no
27150 if test x$gcc_cv_as != x; then
27151 $as_echo ' .machine ppc7400' > conftest.s
27152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27157 test $ac_status = 0; }; }
27158 then
27159 gcc_cv_as_machine_directive=yes
27160 else
27161 echo "configure: failed program was" >&5
27162 cat conftest.s >&5
27164 rm -f conftest.o conftest.s
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27168 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27171 if test x$gcc_cv_as_machine_directive != xyes; then
27172 echo "*** This target requires an assembler supporting \".machine\"" >&2
27173 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27174 test x$build = x$target && exit 1
27177 esac
27179 case $target in
27180 *-*-aix*) conftest_s=' .machine "pwr5"
27181 .csect .text[PR]
27182 mfcr 3,128';;
27183 *-*-darwin*) conftest_s=' .text
27184 mfcr r3,128';;
27185 *) conftest_s=' .machine power4
27186 .text
27187 mfcr 3,128';;
27188 esac
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27191 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27192 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_powerpc_mfcrf=no
27196 if test $in_tree_gas = yes; then
27197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27198 then gcc_cv_as_powerpc_mfcrf=yes
27200 elif test x$gcc_cv_as != x; then
27201 $as_echo "$conftest_s" > conftest.s
27202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27204 (eval $ac_try) 2>&5
27205 ac_status=$?
27206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27207 test $ac_status = 0; }; }
27208 then
27209 gcc_cv_as_powerpc_mfcrf=yes
27210 else
27211 echo "configure: failed program was" >&5
27212 cat conftest.s >&5
27214 rm -f conftest.o conftest.s
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27218 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27219 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27221 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27226 case $target in
27227 *-*-aix*) conftest_s=' .csect .text[PR]
27228 LCF..0:
27229 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27230 *-*-darwin*)
27231 conftest_s=' .text
27232 LCF0:
27233 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27234 *) conftest_s=' .text
27235 .LCF0:
27236 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27237 esac
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27240 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27241 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27242 $as_echo_n "(cached) " >&6
27243 else
27244 gcc_cv_as_powerpc_rel16=no
27245 if test $in_tree_gas = yes; then
27246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27247 then gcc_cv_as_powerpc_rel16=yes
27249 elif test x$gcc_cv_as != x; then
27250 $as_echo "$conftest_s" > conftest.s
27251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27253 (eval $ac_try) 2>&5
27254 ac_status=$?
27255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27256 test $ac_status = 0; }; }
27257 then
27258 gcc_cv_as_powerpc_rel16=yes
27259 else
27260 echo "configure: failed program was" >&5
27261 cat conftest.s >&5
27263 rm -f conftest.o conftest.s
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27267 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27268 if test $gcc_cv_as_powerpc_rel16 = yes; then
27270 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27275 case $target in
27276 *-*-aix*) conftest_s=' .machine "pwr7"
27277 .csect .text[PR]
27278 lxvd2x 1,2,3';;
27279 *) conftest_s=' .machine power7
27280 .text
27281 lxvd2x 1,2,3';;
27282 esac
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27285 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27286 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27287 $as_echo_n "(cached) " >&6
27288 else
27289 gcc_cv_as_powerpc_vsx=no
27290 if test $in_tree_gas = yes; then
27291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27292 then gcc_cv_as_powerpc_vsx=yes
27294 elif test x$gcc_cv_as != x; then
27295 $as_echo "$conftest_s" > conftest.s
27296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27298 (eval $ac_try) 2>&5
27299 ac_status=$?
27300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27301 test $ac_status = 0; }; }
27302 then
27303 gcc_cv_as_powerpc_vsx=yes
27304 else
27305 echo "configure: failed program was" >&5
27306 cat conftest.s >&5
27308 rm -f conftest.o conftest.s
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27312 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27313 if test $gcc_cv_as_powerpc_vsx = yes; then
27315 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27321 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27322 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
27323 $as_echo_n "(cached) " >&6
27324 else
27325 gcc_cv_as_powerpc_gnu_attribute=no
27326 if test $in_tree_gas = yes; then
27327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27328 then gcc_cv_as_powerpc_gnu_attribute=yes
27330 elif test x$gcc_cv_as != x; then
27331 $as_echo '.gnu_attribute 4,1' > conftest.s
27332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27334 (eval $ac_try) 2>&5
27335 ac_status=$?
27336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27337 test $ac_status = 0; }; }
27338 then
27339 gcc_cv_as_powerpc_gnu_attribute=yes
27340 else
27341 echo "configure: failed program was" >&5
27342 cat conftest.s >&5
27344 rm -f conftest.o conftest.s
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27348 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27349 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27351 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27357 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27358 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
27359 $as_echo_n "(cached) " >&6
27360 else
27361 gcc_cv_as_powerpc_entry_markers=no
27362 if test $in_tree_gas = yes; then
27363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27364 then gcc_cv_as_powerpc_entry_markers=yes
27366 elif test x$gcc_cv_as != x; then
27367 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27373 test $ac_status = 0; }; }
27374 then
27375 gcc_cv_as_powerpc_entry_markers=yes
27376 else
27377 echo "configure: failed program was" >&5
27378 cat conftest.s >&5
27380 rm -f conftest.o conftest.s
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27384 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27385 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27387 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27393 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27394 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27397 gcc_cv_as_powerpc_pltseq_markers=no
27398 if test $in_tree_gas = yes; then
27399 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27400 then gcc_cv_as_powerpc_pltseq_markers=yes
27402 elif test x$gcc_cv_as != x; then
27403 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27406 (eval $ac_try) 2>&5
27407 ac_status=$?
27408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27409 test $ac_status = 0; }; }
27410 then
27411 gcc_cv_as_powerpc_pltseq_markers=yes
27412 else
27413 echo "configure: failed program was" >&5
27414 cat conftest.s >&5
27416 rm -f conftest.o conftest.s
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27420 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27421 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27423 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27428 case $target in
27429 *-*-aix*)
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27431 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27432 if ${gcc_cv_as_aix_ref+:} false; then :
27433 $as_echo_n "(cached) " >&6
27434 else
27435 gcc_cv_as_aix_ref=no
27436 if test $in_tree_gas = yes; then
27437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27438 then gcc_cv_as_aix_ref=yes
27440 elif test x$gcc_cv_as != x; then
27441 $as_echo ' .csect stuff[rw]
27442 stuff:
27443 .long 1
27444 .extern sym
27445 .ref sym
27446 ' > conftest.s
27447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27452 test $ac_status = 0; }; }
27453 then
27454 gcc_cv_as_aix_ref=yes
27455 else
27456 echo "configure: failed program was" >&5
27457 cat conftest.s >&5
27459 rm -f conftest.o conftest.s
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27463 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27464 if test $gcc_cv_as_aix_ref = yes; then
27466 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27472 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27473 if ${gcc_cv_as_aix_dwloc+:} false; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_as_aix_dwloc=no
27477 if test $in_tree_gas = yes; then
27478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27479 then gcc_cv_as_aix_dwloc=yes
27481 elif test x$gcc_cv_as != x; then
27482 $as_echo ' .dwsect 0xA0000
27483 Lframe..0:
27484 .vbyte 4,Lframe..0
27485 ' > conftest.s
27486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27488 (eval $ac_try) 2>&5
27489 ac_status=$?
27490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27491 test $ac_status = 0; }; }
27492 then
27493 gcc_cv_as_aix_dwloc=yes
27494 else
27495 echo "configure: failed program was" >&5
27496 cat conftest.s >&5
27498 rm -f conftest.o conftest.s
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27502 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27503 if test $gcc_cv_as_aix_dwloc = yes; then
27505 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27510 esac
27513 mips*-*-*)
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27516 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
27517 $as_echo_n "(cached) " >&6
27518 else
27519 gcc_cv_as_mips_explicit_relocs=no
27520 if test $in_tree_gas = yes; then
27521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27522 then gcc_cv_as_mips_explicit_relocs=yes
27524 elif test x$gcc_cv_as != x; then
27525 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_mips_explicit_relocs=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_mips_explicit_relocs" >&5
27542 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27543 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27544 if test x$target_cpu_default = x
27545 then target_cpu_default=MASK_EXPLICIT_RELOCS
27546 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27552 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27553 if ${gcc_cv_as_mips_no_shared+:} false; then :
27554 $as_echo_n "(cached) " >&6
27555 else
27556 gcc_cv_as_mips_no_shared=no
27557 if test $in_tree_gas = yes; then
27558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27559 then gcc_cv_as_mips_no_shared=yes
27561 elif test x$gcc_cv_as != x; then
27562 $as_echo 'nop' > conftest.s
27563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27568 test $ac_status = 0; }; }
27569 then
27570 gcc_cv_as_mips_no_shared=yes
27571 else
27572 echo "configure: failed program was" >&5
27573 cat conftest.s >&5
27575 rm -f conftest.o conftest.s
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27579 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27580 if test $gcc_cv_as_mips_no_shared = yes; then
27582 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27588 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27589 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
27590 $as_echo_n "(cached) " >&6
27591 else
27592 gcc_cv_as_mips_gnu_attribute=no
27593 if test $in_tree_gas = yes; then
27594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27595 then gcc_cv_as_mips_gnu_attribute=yes
27597 elif test x$gcc_cv_as != x; then
27598 $as_echo '.gnu_attribute 4,1' > conftest.s
27599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27601 (eval $ac_try) 2>&5
27602 ac_status=$?
27603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27604 test $ac_status = 0; }; }
27605 then
27606 gcc_cv_as_mips_gnu_attribute=yes
27607 else
27608 echo "configure: failed program was" >&5
27609 cat conftest.s >&5
27611 rm -f conftest.o conftest.s
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27615 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27616 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27618 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27624 $as_echo_n "checking assembler for .module support... " >&6; }
27625 if ${gcc_cv_as_mips_dot_module+:} false; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 gcc_cv_as_mips_dot_module=no
27629 if test x$gcc_cv_as != x; then
27630 $as_echo '.module mips2
27631 .module fp=xx' > conftest.s
27632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27637 test $ac_status = 0; }; }
27638 then
27639 gcc_cv_as_mips_dot_module=yes
27640 else
27641 echo "configure: failed program was" >&5
27642 cat conftest.s >&5
27644 rm -f conftest.o conftest.s
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27648 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27649 if test $gcc_cv_as_mips_dot_module = yes; then
27651 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27655 if test x$gcc_cv_as_mips_dot_module = xno \
27656 && test x$with_fp_32 != x; then
27657 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27661 $as_echo_n "checking assembler for .micromips support... " >&6; }
27662 if ${gcc_cv_as_micromips_support+:} false; then :
27663 $as_echo_n "(cached) " >&6
27664 else
27665 gcc_cv_as_micromips_support=no
27666 if test x$gcc_cv_as != x; then
27667 $as_echo '.set micromips' > conftest.s
27668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27673 test $ac_status = 0; }; }
27674 then
27675 gcc_cv_as_micromips_support=yes
27676 else
27677 echo "configure: failed program was" >&5
27678 cat conftest.s >&5
27680 rm -f conftest.o conftest.s
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27684 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27685 if test $gcc_cv_as_micromips_support = yes; then
27687 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27693 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27694 if ${gcc_cv_as_mips_dtprelword+:} false; then :
27695 $as_echo_n "(cached) " >&6
27696 else
27697 gcc_cv_as_mips_dtprelword=no
27698 if test $in_tree_gas = yes; then
27699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27700 then gcc_cv_as_mips_dtprelword=yes
27702 elif test x$gcc_cv_as != x; then
27703 $as_echo '.section .tdata,"awT",@progbits
27705 .word 2
27706 .text
27707 .dtprelword x+0x8000' > conftest.s
27708 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27710 (eval $ac_try) 2>&5
27711 ac_status=$?
27712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27713 test $ac_status = 0; }; }
27714 then
27715 gcc_cv_as_mips_dtprelword=yes
27716 else
27717 echo "configure: failed program was" >&5
27718 cat conftest.s >&5
27720 rm -f conftest.o conftest.s
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27724 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27725 if test $gcc_cv_as_mips_dtprelword = yes; then
27727 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27733 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27734 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
27735 $as_echo_n "(cached) " >&6
27736 else
27737 gcc_cv_as_mips_dspr1_mult=no
27738 if test x$gcc_cv_as != x; then
27739 $as_echo ' .set mips32r2
27740 .set nodspr2
27741 .set dsp
27742 madd $ac3,$4,$5
27743 maddu $ac3,$4,$5
27744 msub $ac3,$4,$5
27745 msubu $ac3,$4,$5
27746 mult $ac3,$4,$5
27747 multu $ac3,$4,$5' > conftest.s
27748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27750 (eval $ac_try) 2>&5
27751 ac_status=$?
27752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753 test $ac_status = 0; }; }
27754 then
27755 gcc_cv_as_mips_dspr1_mult=yes
27756 else
27757 echo "configure: failed program was" >&5
27758 cat conftest.s >&5
27760 rm -f conftest.o conftest.s
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27764 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27765 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27767 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27773 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27774 gcc_cv_as_ld_jalr_reloc=no
27775 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27776 if test $in_tree_ld = yes ; then
27777 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 \
27778 && test $in_tree_ld_is_elf = yes; then
27779 gcc_cv_as_ld_jalr_reloc=yes
27781 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27782 echo ' .ent x' > conftest.s
27783 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27784 echo ' lw $25,%call16(y)($28)' >> conftest.s
27785 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27786 echo '1: jalr $25' >> conftest.s
27787 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27788 echo '1: jalr $25' >> conftest.s
27789 echo ' .end x' >> conftest.s
27790 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27791 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27792 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27793 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27794 gcc_cv_as_ld_jalr_reloc=yes
27797 rm -f conftest.*
27800 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27801 if test x$target_cpu_default = x; then
27802 target_cpu_default=MASK_RELAX_PIC_CALLS
27803 else
27804 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27808 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27811 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27812 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
27813 $as_echo_n "(cached) " >&6
27814 else
27815 gcc_cv_ld_mips_personality_relaxation=no
27816 if test $in_tree_ld = yes ; then
27817 if test "$gcc_cv_gld_major_version" -eq 2 \
27818 -a "$gcc_cv_gld_minor_version" -ge 21 \
27819 -o "$gcc_cv_gld_major_version" -gt 2; then
27820 gcc_cv_ld_mips_personality_relaxation=yes
27822 elif test x$gcc_cv_as != x \
27823 -a x$gcc_cv_ld != x \
27824 -a x$gcc_cv_readelf != x ; then
27825 cat > conftest.s <<EOF
27826 .cfi_startproc
27827 .cfi_personality 0x80,indirect_ptr
27828 .ent test
27829 test:
27831 .end test
27832 .cfi_endproc
27834 .section .data,"aw",@progbits
27835 indirect_ptr:
27836 .dc.a personality
27838 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27839 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27840 if $gcc_cv_readelf -d conftest 2>&1 \
27841 | grep TEXTREL > /dev/null 2>&1; then
27843 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27844 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27846 else
27847 gcc_cv_ld_mips_personality_relaxation=yes
27851 rm -f conftest.s conftest.o conftest
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27854 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27855 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27857 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27862 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27863 if ${gcc_cv_as_mips_nan+:} false; then :
27864 $as_echo_n "(cached) " >&6
27865 else
27866 gcc_cv_as_mips_nan=no
27867 if test x$gcc_cv_as != x; then
27868 $as_echo '' > conftest.s
27869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27874 test $ac_status = 0; }; }
27875 then
27876 gcc_cv_as_mips_nan=yes
27877 else
27878 echo "configure: failed program was" >&5
27879 cat conftest.s >&5
27881 rm -f conftest.o conftest.s
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27885 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27886 if test $gcc_cv_as_mips_nan = yes; then
27888 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27892 if test x$gcc_cv_as_mips_nan = xno \
27893 && test x$with_nan != x; then
27894 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27897 msp430-*-*)
27898 # Earlier GAS versions generically support .gnu_attribute, but the
27899 # msp430 assembler will not do anything with it.
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27901 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27902 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
27903 $as_echo_n "(cached) " >&6
27904 else
27905 gcc_cv_as_msp430_gnu_attribute=no
27906 if test $in_tree_gas = yes; then
27907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27908 then gcc_cv_as_msp430_gnu_attribute=yes
27910 elif test x$gcc_cv_as != x; then
27911 $as_echo '.gnu_attribute 4,1' > conftest.s
27912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27917 test $ac_status = 0; }; }
27918 then
27919 gcc_cv_as_msp430_gnu_attribute=yes
27920 else
27921 echo "configure: failed program was" >&5
27922 cat conftest.s >&5
27924 rm -f conftest.o conftest.s
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27928 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27929 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27931 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27936 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27937 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
27938 $as_echo_n "(cached) " >&6
27939 else
27940 gcc_cv_as_msp430_mspabi_attribute=no
27941 if test $in_tree_gas = yes; then
27942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27943 then gcc_cv_as_msp430_mspabi_attribute=yes
27945 elif test x$gcc_cv_as != x; then
27946 $as_echo '.mspabi_attribute 4,1' > conftest.s
27947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27952 test $ac_status = 0; }; }
27953 then
27954 gcc_cv_as_msp430_mspabi_attribute=yes
27955 else
27956 echo "configure: failed program was" >&5
27957 cat conftest.s >&5
27959 rm -f conftest.o conftest.s
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27963 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27964 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27966 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27970 if test x$enable_newlib_nano_formatted_io = xyes; then
27972 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27976 nios2-*-*)
27977 # Versions 2.33 and earlier lacked support for the %gotoff relocation
27978 # syntax that is documented in the ABI specification.
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
27980 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
27981 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
27982 $as_echo_n "(cached) " >&6
27983 else
27984 gcc_cv_as_nios2_gotoff_relocation=no
27985 if test x$gcc_cv_as != x; then
27986 $as_echo ' .extern foo
27987 .data
27988 .long %gotoff(foo)' > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_nios2_gotoff_relocation=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28001 rm -f conftest.o conftest.s
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28005 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28006 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28008 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28013 riscv*-*-*)
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28015 $as_echo_n "checking assembler for .attribute support... " >&6; }
28016 if ${gcc_cv_as_riscv_attribute+:} false; then :
28017 $as_echo_n "(cached) " >&6
28018 else
28019 gcc_cv_as_riscv_attribute=no
28020 if test $in_tree_gas = yes; then
28021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28022 then gcc_cv_as_riscv_attribute=yes
28024 elif test x$gcc_cv_as != x; then
28025 $as_echo '.attribute stack_align,4' > conftest.s
28026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28028 (eval $ac_try) 2>&5
28029 ac_status=$?
28030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28031 test $ac_status = 0; }; }
28032 then
28033 gcc_cv_as_riscv_attribute=yes
28034 else
28035 echo "configure: failed program was" >&5
28036 cat conftest.s >&5
28038 rm -f conftest.o conftest.s
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28042 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28043 if test $gcc_cv_as_riscv_attribute = yes; then
28045 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28050 s390*-*-*)
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28052 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28053 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28054 $as_echo_n "(cached) " >&6
28055 else
28056 gcc_cv_as_s390_gnu_attribute=no
28057 if test $in_tree_gas = yes; then
28058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28059 then gcc_cv_as_s390_gnu_attribute=yes
28061 elif test x$gcc_cv_as != x; then
28062 $as_echo '.gnu_attribute 8,1' > conftest.s
28063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28065 (eval $ac_try) 2>&5
28066 ac_status=$?
28067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28068 test $ac_status = 0; }; }
28069 then
28070 gcc_cv_as_s390_gnu_attribute=yes
28071 else
28072 echo "configure: failed program was" >&5
28073 cat conftest.s >&5
28075 rm -f conftest.o conftest.s
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28079 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28080 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28082 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28087 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28088 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28089 $as_echo_n "(cached) " >&6
28090 else
28091 gcc_cv_as_s390_machine_machinemode=no
28092 if test $in_tree_gas = yes; then
28093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28094 then gcc_cv_as_s390_machine_machinemode=yes
28096 elif test x$gcc_cv_as != x; then
28097 $as_echo ' .machinemode push
28098 .machinemode pop
28099 .machine push
28100 .machine pop' > conftest.s
28101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28106 test $ac_status = 0; }; }
28107 then
28108 gcc_cv_as_s390_machine_machinemode=yes
28109 else
28110 echo "configure: failed program was" >&5
28111 cat conftest.s >&5
28113 rm -f conftest.o conftest.s
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28117 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28118 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28120 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28125 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28126 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28127 $as_echo_n "(cached) " >&6
28128 else
28129 gcc_cv_as_s390_architecture_modifiers=no
28130 if test $in_tree_gas = yes; then
28131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28132 then gcc_cv_as_s390_architecture_modifiers=yes
28134 elif test x$gcc_cv_as != x; then
28135 $as_echo ' .machine z13+vx ' > conftest.s
28136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28141 test $ac_status = 0; }; }
28142 then
28143 gcc_cv_as_s390_architecture_modifiers=yes
28144 else
28145 echo "configure: failed program was" >&5
28146 cat conftest.s >&5
28148 rm -f conftest.o conftest.s
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28152 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28153 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28155 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28160 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28161 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28162 $as_echo_n "(cached) " >&6
28163 else
28164 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28165 if test $in_tree_gas = yes; then
28166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28167 then gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28169 elif test x$gcc_cv_as != x; then
28170 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28176 test $ac_status = 0; }; }
28177 then
28178 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28179 else
28180 echo "configure: failed program was" >&5
28181 cat conftest.s >&5
28183 rm -f conftest.o conftest.s
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28187 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28188 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28190 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28196 esac
28198 # Mips and HP-UX need the GNU assembler.
28199 # Linux on IA64 might be able to use the Intel assembler.
28201 case "$target" in
28202 mips*-*-* | *-*-hpux* )
28203 if test x$gas_flag = xyes \
28204 || test x"$host" != x"$build" \
28205 || test ! -x "$gcc_cv_as" \
28206 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28208 else
28209 echo "*** This configuration requires the GNU assembler" >&2
28210 exit 1
28213 esac
28215 # ??? Not all targets support dwarf2 debug_line, even within a version
28216 # of gas. Moreover, we need to emit a valid instruction to trigger any
28217 # info to the output file. So, as supported targets are added to gas 2.11,
28218 # add some instruction here to (also) show we expect this might work.
28219 # ??? Once 2.11 is released, probably need to add first known working
28220 # version to the per-target configury.
28221 case "$cpu_type" in
28222 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28223 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28224 | tilegx | tilepro | visium | xstormy16 | xtensa)
28225 insn="nop"
28227 ia64 | s390)
28228 insn="nop 0"
28230 mmix)
28231 insn="swym 0"
28233 esac
28234 if test x"$insn" != x; then
28235 conftest_s="\
28236 .file 1 \"conftest.s\"
28237 .loc 1 3 0
28238 $insn"
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28240 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28241 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
28242 $as_echo_n "(cached) " >&6
28243 else
28244 gcc_cv_as_dwarf2_debug_line=no
28245 if test $in_tree_gas = yes; then
28246 if test $in_tree_gas_is_elf = yes \
28247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28248 then gcc_cv_as_dwarf2_debug_line=yes
28250 elif test x$gcc_cv_as != x; then
28251 $as_echo "$conftest_s" > conftest.s
28252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28254 (eval $ac_try) 2>&5
28255 ac_status=$?
28256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28257 test $ac_status = 0; }; }
28258 then
28259 if test x$gcc_cv_objdump != x \
28260 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
28261 | grep debug_line > /dev/null 2>&1; then
28262 gcc_cv_as_dwarf2_debug_line=yes
28263 elif test x$gcc_cv_otool != x \
28264 && $gcc_cv_otool -l conftest.o 2> /dev/null \
28265 | grep debug_line > /dev/null 2>&1; then
28266 gcc_cv_as_dwarf2_debug_line=yes
28268 else
28269 echo "configure: failed program was" >&5
28270 cat conftest.s >&5
28272 rm -f conftest.o conftest.s
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28276 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28280 # The .debug_line file table must be in the exact order that
28281 # we specified the files, since these indices are also used
28282 # by DW_AT_decl_file. Approximate this test by testing if
28283 # the assembler bitches if the same index is assigned twice.
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28285 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28286 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
28287 $as_echo_n "(cached) " >&6
28288 else
28289 gcc_cv_as_dwarf2_file_buggy=no
28290 if test x$gcc_cv_as != x; then
28291 $as_echo ' .file 1 "foo.s"
28292 .file 1 "bar.s"' > conftest.s
28293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28298 test $ac_status = 0; }; }
28299 then
28300 gcc_cv_as_dwarf2_file_buggy=yes
28301 else
28302 echo "configure: failed program was" >&5
28303 cat conftest.s >&5
28305 rm -f conftest.o conftest.s
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28309 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28313 if test $gcc_cv_as_dwarf2_debug_line = yes \
28314 && test $gcc_cv_as_dwarf2_file_buggy = no; then
28316 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28319 if test $gcc_cv_as_leb128 = yes; then
28320 conftest_s="\
28321 .file 1 \"conftest.s\"
28322 .loc 1 3 0 view .LVU1
28323 $insn
28324 .data
28325 .uleb128 .LVU1
28326 .uleb128 .LVU1
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28329 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28330 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
28331 $as_echo_n "(cached) " >&6
28332 else
28333 gcc_cv_as_dwarf2_debug_view=no
28334 if test $in_tree_gas = yes; then
28335 if test $in_tree_gas_is_elf = yes \
28336 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28337 then gcc_cv_as_dwarf2_debug_view=yes
28339 elif test x$gcc_cv_as != x; then
28340 $as_echo "$conftest_s" > conftest.s
28341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28343 (eval $ac_try) 2>&5
28344 ac_status=$?
28345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28346 test $ac_status = 0; }; }
28347 then
28348 gcc_cv_as_dwarf2_debug_view=yes
28349 else
28350 echo "configure: failed program was" >&5
28351 cat conftest.s >&5
28353 rm -f conftest.o conftest.s
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28357 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28358 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28360 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28368 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28369 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
28370 $as_echo_n "(cached) " >&6
28371 else
28372 gcc_cv_as_gdwarf2_flag=no
28373 if test $in_tree_gas = yes; then
28374 if test $in_tree_gas_is_elf = yes \
28375 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28376 then gcc_cv_as_gdwarf2_flag=yes
28378 elif test x$gcc_cv_as != x; then
28379 $as_echo "$insn" > conftest.s
28380 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28385 test $ac_status = 0; }; }
28386 then
28387 gcc_cv_as_gdwarf2_flag=yes
28388 else
28389 echo "configure: failed program was" >&5
28390 cat conftest.s >&5
28392 rm -f conftest.o conftest.s
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28396 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28397 if test $gcc_cv_as_gdwarf2_flag = yes; then
28399 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28405 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28406 if ${gcc_cv_as_gstabs_flag+:} false; then :
28407 $as_echo_n "(cached) " >&6
28408 else
28409 gcc_cv_as_gstabs_flag=no
28410 if test $in_tree_gas = yes; then
28411 if test $in_tree_gas_is_elf = yes \
28412 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28413 then gcc_cv_as_gstabs_flag=yes
28415 elif test x$gcc_cv_as != x; then
28416 $as_echo "$insn" > conftest.s
28417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28422 test $ac_status = 0; }; }
28423 then
28424 gcc_cv_as_gstabs_flag=yes
28425 else
28426 echo "configure: failed program was" >&5
28427 cat conftest.s >&5
28429 rm -f conftest.o conftest.s
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28433 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28434 if test $gcc_cv_as_gstabs_flag = yes; then
28436 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28442 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28443 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
28444 $as_echo_n "(cached) " >&6
28445 else
28446 gcc_cv_as_debug_prefix_map_flag=no
28447 if test $in_tree_gas = yes; then
28448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28449 then gcc_cv_as_debug_prefix_map_flag=yes
28451 elif test x$gcc_cv_as != x; then
28452 $as_echo "$insn" > conftest.s
28453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28458 test $ac_status = 0; }; }
28459 then
28460 gcc_cv_as_debug_prefix_map_flag=yes
28461 else
28462 echo "configure: failed program was" >&5
28463 cat conftest.s >&5
28465 rm -f conftest.o conftest.s
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28469 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28470 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28472 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28479 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28480 if ${gcc_cv_as_compress_debug+:} false; then :
28481 $as_echo_n "(cached) " >&6
28482 else
28483 gcc_cv_as_compress_debug=no
28484 if test x$gcc_cv_as != x; then
28485 $as_echo '' > conftest.s
28486 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28491 test $ac_status = 0; }; }
28492 then
28493 # gas compiled without zlib cannot compress debug sections and warns
28494 # about it, but still exits successfully. So check for this, too.
28495 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28496 then
28497 gcc_cv_as_compress_debug=0
28498 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28499 # defaulting to the ELF gABI format.
28500 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28501 then
28502 gcc_cv_as_compress_debug=2
28503 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28504 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28505 # Before binutils 2.26, gas only supported --compress-debug-options and
28506 # emitted the traditional GNU format.
28507 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28508 then
28509 gcc_cv_as_compress_debug=1
28510 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28511 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28512 else
28513 gcc_cv_as_compress_debug=0
28515 else
28516 echo "configure: failed program was" >&5
28517 cat conftest.s >&5
28519 rm -f conftest.o conftest.s
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28523 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28527 cat >>confdefs.h <<_ACEOF
28528 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28529 _ACEOF
28532 cat >>confdefs.h <<_ACEOF
28533 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28534 _ACEOF
28537 cat >>confdefs.h <<_ACEOF
28538 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28539 _ACEOF
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28543 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28544 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
28545 $as_echo_n "(cached) " >&6
28546 else
28547 gcc_cv_as_lcomm_with_alignment=no
28548 if test x$gcc_cv_as != x; then
28549 $as_echo '.lcomm bar,4,16' > conftest.s
28550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28552 (eval $ac_try) 2>&5
28553 ac_status=$?
28554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28555 test $ac_status = 0; }; }
28556 then
28557 gcc_cv_as_lcomm_with_alignment=yes
28558 else
28559 echo "configure: failed program was" >&5
28560 cat conftest.s >&5
28562 rm -f conftest.o conftest.s
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28566 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28567 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28569 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28574 if test x$with_sysroot = x && test x$host = x$target \
28575 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28576 && test "$prefix" != "NONE"; then
28578 cat >>confdefs.h <<_ACEOF
28579 #define PREFIX_INCLUDE_DIR "$prefix/include"
28580 _ACEOF
28584 # Determine the version of glibc, if any, used on the target.
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28586 $as_echo_n "checking for target glibc version... " >&6; }
28588 # Check whether --with-glibc-version was given.
28589 if test "${with_glibc_version+set}" = set; then :
28590 withval=$with_glibc_version;
28591 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28592 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28593 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28594 else
28595 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28597 else
28599 glibc_version_major=0
28600 glibc_version_minor=0
28601 if test -f $target_header_dir/features.h \
28602 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28603 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28604 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28605 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28610 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28612 cat >>confdefs.h <<_ACEOF
28613 #define TARGET_GLIBC_MAJOR $glibc_version_major
28614 _ACEOF
28617 cat >>confdefs.h <<_ACEOF
28618 #define TARGET_GLIBC_MINOR $glibc_version_minor
28619 _ACEOF
28622 # Check whether --enable-gnu-unique-object was given.
28623 if test "${enable_gnu_unique_object+set}" = set; then :
28624 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28625 yes | no) ;;
28626 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28627 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28628 esac
28629 else
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28631 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28632 if ${gcc_cv_as_gnu_unique_object+:} false; then :
28633 $as_echo_n "(cached) " >&6
28634 else
28635 gcc_cv_as_gnu_unique_object=no
28636 if test $in_tree_gas = yes; then
28637 if test $in_tree_gas_is_elf = yes \
28638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28639 then gcc_cv_as_gnu_unique_object=yes
28641 elif test x$gcc_cv_as != x; then
28642 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28645 (eval $ac_try) 2>&5
28646 ac_status=$?
28647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28648 test $ac_status = 0; }; }
28649 then
28650 gcc_cv_as_gnu_unique_object=yes
28651 else
28652 echo "configure: failed program was" >&5
28653 cat conftest.s >&5
28655 rm -f conftest.o conftest.s
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28659 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28660 if test $gcc_cv_as_gnu_unique_object = yes; then
28661 # We need to unquote above to to use the definition from config.gcc.
28662 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28664 if test $glibc_version_major -gt 2 \
28665 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28666 enable_gnu_unique_object=yes
28673 if test x$enable_gnu_unique_object = xyes; then
28675 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28680 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28681 if ${gcc_cv_as_line_zero+:} false; then :
28682 $as_echo_n "(cached) " >&6
28683 else
28684 gcc_cv_as_line_zero=no
28685 if test $in_tree_gas = yes; then
28686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28687 then gcc_cv_as_line_zero=yes
28689 elif test "x$gcc_cv_as" != x; then
28690 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28691 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28693 (eval $ac_try) 2>&5
28694 ac_status=$?
28695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28696 test $ac_status = 0; }; } &&
28697 test "x`cat conftest.out`" = x
28698 then
28699 gcc_cv_as_line_zero=yes
28700 else
28701 echo "configure: failed program was" >&5
28702 cat conftest.s >&5
28703 echo "configure: error output was" >&5
28704 cat conftest.out >&5
28706 rm -f conftest.o conftest.s conftest.out
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28710 $as_echo "$gcc_cv_as_line_zero" >&6; }
28711 if test "x$gcc_cv_as_line_zero" = xyes; then
28713 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28718 $as_echo_n "checking support for thin archives... " >&6; }
28719 thin_archive_support=no
28720 echo 'int main (void) { return 0; }' > conftest.c
28721 if ($AR --version | sed 1q | grep "GNU ar" \
28722 && $CC $CFLAGS -c conftest.c \
28723 && $AR rcT conftest.a conftest.o \
28724 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28725 thin_archive_support=yes
28727 rm -f conftest.c conftest.o conftest.a conftest
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28729 $as_echo "$thin_archive_support" >&6; }
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28733 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28734 gcc_cv_ld_eh_frame_hdr=no
28735 if test $in_tree_ld = yes ; then
28736 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 \
28737 && test $in_tree_ld_is_elf = yes; then
28738 gcc_cv_ld_eh_frame_hdr=yes
28740 elif test x$gcc_cv_ld != x; then
28741 if echo "$ld_ver" | grep GNU > /dev/null; then
28742 # Check if linker supports --eh-frame-hdr option
28743 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28744 gcc_cv_ld_eh_frame_hdr=yes
28746 else
28747 case "$target" in
28748 *-*-solaris2*)
28749 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28750 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28751 gcc_cv_ld_eh_frame_hdr=yes
28754 esac
28758 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28760 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28764 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28767 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28768 gcc_cv_ld_eh_frame_ciev3=no
28769 if test $in_tree_ld = yes ; then
28770 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 \
28771 && test $in_tree_ld_is_elf = yes; then
28772 gcc_cv_ld_eh_frame_ciev3=yes
28774 elif test x$gcc_cv_ld != x; then
28775 if echo "$ld_ver" | grep GNU > /dev/null; then
28776 gcc_cv_ld_eh_frame_ciev3=yes
28777 if test 0"$ld_date" -lt 20040513; then
28778 if test -n "$ld_date"; then
28779 # If there was date string, but was earlier than 2004-05-13, fail
28780 gcc_cv_ld_eh_frame_ciev3=no
28781 elif test "$ld_vers_major" -lt 2; then
28782 gcc_cv_ld_eh_frame_ciev3=no
28783 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28784 gcc_cv_ld_eh_frame_ciev3=no
28787 else
28788 case "$target" in
28789 *-*-solaris2*)
28790 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28791 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28792 gcc_cv_ld_eh_frame_ciev3=yes
28795 esac
28799 cat >>confdefs.h <<_ACEOF
28800 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28801 _ACEOF
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28804 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28807 $as_echo_n "checking linker position independent executable support... " >&6; }
28808 gcc_cv_ld_pie=no
28809 if test $in_tree_ld = yes ; then
28810 case "$target" in
28811 # Full PIE support on Solaris was only introduced in gld 2.26.
28812 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28813 *) gcc_gld_pie_min_version=15 ;;
28814 esac
28815 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 \
28816 && test $in_tree_ld_is_elf = yes; then
28817 gcc_cv_ld_pie=yes
28819 elif test x$gcc_cv_ld != x; then
28820 # Check if linker supports -pie option
28821 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28822 gcc_cv_ld_pie=yes
28823 case "$target" in
28824 *-*-solaris2*)
28825 if echo "$ld_ver" | grep GNU > /dev/null \
28826 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28827 gcc_cv_ld_pie=no
28830 esac
28831 else
28832 case "$target" in
28833 *-*-solaris2.1[1-9]*)
28834 # Solaris 11.3 added PIE support.
28835 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28836 gcc_cv_ld_pie=yes
28839 esac
28842 if test x"$gcc_cv_ld_pie" = xyes; then
28844 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28848 $as_echo "$gcc_cv_ld_pie" >&6; }
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28851 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28852 gcc_cv_ld_pie_copyreloc=no
28853 if test $gcc_cv_ld_pie = yes ; then
28854 if test $in_tree_ld = yes ; then
28855 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
28856 gcc_cv_ld_pie_copyreloc=yes
28858 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28859 # Check if linker supports -pie option with copy reloc
28860 case "$target" in
28861 i?86-*-linux* | x86_64-*-linux*)
28862 cat > conftest1.s <<EOF
28863 .globl a_glob
28864 .data
28865 .type a_glob, @object
28866 .size a_glob, 4
28867 a_glob:
28868 .long 2
28870 cat > conftest2.s <<EOF
28871 .text
28872 .globl main
28873 .type main, @function
28874 main:
28875 movl %eax, a_glob(%rip)
28876 .size main, .-main
28877 .globl ptr
28878 .section .data.rel,"aw",@progbits
28879 .type ptr, @object
28880 ptr:
28881 .quad a_glob
28883 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28884 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28885 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28886 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28887 gcc_cv_ld_pie_copyreloc=yes
28889 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28891 esac
28895 cat >>confdefs.h <<_ACEOF
28896 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28897 _ACEOF
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28900 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28903 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28904 gcc_cv_ld_eh_gc_sections=no
28905 if test $in_tree_ld = yes ; then
28906 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 \
28907 && test $in_tree_ld_is_elf = yes; then
28908 gcc_cv_ld_eh_gc_sections=yes
28910 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28911 cat > conftest.s <<EOF
28912 .section .text
28913 .globl _start
28914 .type _start, @function
28915 _start:
28916 .long foo
28917 .size _start, .-_start
28918 .section .text.foo,"ax",@progbits
28919 .type foo, @function
28920 foo:
28921 .long 0
28922 .size foo, .-foo
28923 .section .gcc_except_table.foo,"a",@progbits
28924 .L0:
28925 .long 0
28926 .section .eh_frame,"a",@progbits
28927 .long .L0
28929 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28930 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28931 | grep "gc-sections option ignored" > /dev/null; then
28932 gcc_cv_ld_eh_gc_sections=no
28933 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28934 | grep gcc_except_table > /dev/null; then
28935 gcc_cv_ld_eh_gc_sections=yes
28936 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28937 if test x$gcc_cv_as_comdat_group != xyes; then
28938 gcc_cv_ld_eh_gc_sections=no
28939 cat > conftest.s <<EOF
28940 .section .text
28941 .globl _start
28942 .type _start, @function
28943 _start:
28944 .long foo
28945 .size _start, .-_start
28946 .section .gnu.linkonce.t.foo,"ax",@progbits
28947 .type foo, @function
28948 foo:
28949 .long 0
28950 .size foo, .-foo
28951 .section .gcc_except_table.foo,"a",@progbits
28952 .L0:
28953 .long 0
28954 .section .eh_frame,"a",@progbits
28955 .long .L0
28957 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28958 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28959 | grep "gc-sections option ignored" > /dev/null; then
28960 gcc_cv_ld_eh_gc_sections=no
28961 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28962 | grep gcc_except_table > /dev/null; then
28963 gcc_cv_ld_eh_gc_sections=yes
28969 rm -f conftest.s conftest.o conftest
28971 case "$target" in
28972 hppa*-*-linux*)
28973 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28974 gcc_cv_ld_eh_gc_sections=no
28976 esac
28977 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28979 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28983 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28986 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28987 gcc_cv_ld_eh_gc_sections_bug=no
28988 if test $in_tree_ld = yes ; then
28989 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 \
28990 && test $in_tree_ld_is_elf = yes; then
28991 gcc_cv_ld_eh_gc_sections_bug=yes
28993 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
28994 gcc_cv_ld_eh_gc_sections_bug=yes
28995 cat > conftest.s <<EOF
28996 .section .text
28997 .globl _start
28998 .type _start, @function
28999 _start:
29000 .long foo
29001 .size _start, .-_start
29002 .section .text.startup.foo,"ax",@progbits
29003 .type foo, @function
29004 foo:
29005 .long 0
29006 .size foo, .-foo
29007 .section .gcc_except_table.foo,"a",@progbits
29008 .L0:
29009 .long 0
29010 .section .eh_frame,"a",@progbits
29011 .long .L0
29013 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
29014 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
29015 | grep "gc-sections option ignored" > /dev/null; then
29017 elif $gcc_cv_objdump -h conftest 2> /dev/null \
29018 | grep gcc_except_table > /dev/null; then
29019 gcc_cv_ld_eh_gc_sections_bug=no
29022 rm -f conftest.s conftest.o conftest
29024 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
29026 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29030 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29033 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29034 # gold/gld support compressed debug sections since binutils 2.19/2.21
29035 # In binutils 2.26, gld gained support for the ELF gABI format.
29036 if test $in_tree_ld = yes ; then
29037 gcc_cv_ld_compress_debug=0
29038 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 \
29039 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29040 gcc_cv_ld_compress_debug=2
29041 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29042 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 \
29043 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
29044 gcc_cv_ld_compress_debug=3
29045 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29046 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 \
29047 && test $in_tree_ld_is_elf = yes; then
29048 gcc_cv_ld_compress_debug=1
29050 elif echo "$ld_ver" | grep GNU > /dev/null; then
29051 if test "$ld_vers_major" -lt 2 \
29052 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29053 gcc_cv_ld_compress_debug=0
29054 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29055 gcc_cv_ld_compress_debug=1
29056 else
29057 gcc_cv_ld_compress_debug=3
29058 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29060 if test $ld_is_gold = yes; then
29061 gcc_cv_ld_compress_debug=2
29062 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
29064 else
29065 case "${target}" in
29066 *-*-solaris2*)
29067 # Introduced in Solaris 11.2.
29068 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
29069 gcc_cv_ld_compress_debug=3
29070 gcc_cv_ld_compress_debug_option="-z compress-sections"
29071 else
29072 gcc_cv_ld_compress_debug=0
29076 # Assume linkers other than GNU ld don't support compessed debug
29077 # sections.
29078 gcc_cv_ld_compress_debug=0
29080 esac
29083 cat >>confdefs.h <<_ACEOF
29084 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29085 _ACEOF
29088 cat >>confdefs.h <<_ACEOF
29089 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29090 _ACEOF
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29093 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29095 if test x"$ld64_flag" = x"yes"; then
29097 # Set defaults for possibly untestable items.
29098 gcc_cv_ld64_export_dynamic=0
29100 if test "$build" = "$host"; then
29101 darwin_try_test=1
29102 else
29103 darwin_try_test=0
29106 # On Darwin, because of FAT library support, it is often possible to execute
29107 # exes from compatible archs even when the host differs from the build system.
29108 case "$build","$host" in
29109 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
29110 darwin_try_test=1;;
29111 *) ;;
29112 esac
29114 # If the configurer specified a minimum ld64 version to be supported, then use
29115 # that to determine feature support.
29116 if test x"${gcc_cv_ld64_version}" != x; then
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29118 $as_echo_n "checking ld64 specified version... " >&6; }
29119 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29121 $as_echo "$gcc_cv_ld64_major" >&6; }
29122 if test "$gcc_cv_ld64_major" -ge 236; then
29123 gcc_cv_ld64_export_dynamic=1
29125 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29126 # If the version was not specified, try to find it.
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29128 $as_echo_n "checking linker version... " >&6; }
29129 if test x"${gcc_cv_ld64_version}" = x; then
29130 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29133 $as_echo "$gcc_cv_ld64_version" >&6; }
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29136 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29137 gcc_cv_ld64_export_dynamic=1
29138 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
29139 gcc_cv_ld64_export_dynamic=0
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29142 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29145 if test x"${gcc_cv_ld64_version}" != x; then
29147 cat >>confdefs.h <<_ACEOF
29148 #define LD64_VERSION "${gcc_cv_ld64_version}"
29149 _ACEOF
29154 cat >>confdefs.h <<_ACEOF
29155 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29156 _ACEOF
29160 # --------
29161 # UNSORTED
29162 # --------
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29165 $as_echo_n "checking linker --as-needed support... " >&6; }
29166 if ${gcc_cv_ld_as_needed+:} false; then :
29167 $as_echo_n "(cached) " >&6
29168 else
29169 gcc_cv_ld_as_needed=no
29170 gcc_cv_ld_as_needed_option='--as-needed'
29171 gcc_cv_ld_no_as_needed_option='--no-as-needed'
29172 if test $in_tree_ld = yes ; then
29173 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 \
29174 && test $in_tree_ld_is_elf = yes; then
29175 gcc_cv_ld_as_needed=yes
29176 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29177 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29178 gcc_cv_ld_no_as_needed_option='--pop-state'
29181 elif test x$gcc_cv_ld != x; then
29182 # Check if linker supports --as-needed and --no-as-needed options
29183 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
29184 gcc_cv_ld_as_needed=yes
29185 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
29186 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
29187 && echo "$ld_ver" | grep GNU > /dev/null \
29188 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29189 # Use these options only when both ld.bfd and ld.gold support
29190 # --push-state/--pop-state, which unfortunately wasn't added
29191 # at the same time.
29192 gcc_cv_ld_as_needed_option='--push-state --as-needed'
29193 gcc_cv_ld_no_as_needed_option='--pop-state'
29196 case "$target:$gnu_ld" in
29197 *-*-solaris2*:no)
29198 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29199 # forms.
29200 gcc_cv_ld_as_needed=yes
29201 gcc_cv_ld_as_needed_option="-z ignore"
29202 gcc_cv_ld_no_as_needed_option="-z record"
29204 esac
29206 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29207 # dl_iterate_phdr, i.e. since Solaris 11.
29208 case "$target" in
29209 *-*-solaris2.1[1-9]*)
29210 case "$target" in
29211 i?86-*-* | x86_64-*-*)
29212 if echo "$ld_ver" | grep GNU > /dev/null; then
29213 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29214 gcc_cv_ld_as_needed=no
29217 esac
29219 *-*-solaris2*)
29220 gcc_cv_ld_as_needed=no
29222 esac
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29226 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29227 if test x"$gcc_cv_ld_as_needed" = xyes; then
29229 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29232 cat >>confdefs.h <<_ACEOF
29233 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29234 _ACEOF
29237 cat >>confdefs.h <<_ACEOF
29238 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29239 _ACEOF
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29244 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29245 saved_LDFLAGS="$LDFLAGS"
29246 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
29247 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29249 /* end confdefs.h. */
29250 int main(void) {return 0;}
29251 _ACEOF
29252 if ac_fn_cxx_try_link "$LINENO"; then :
29253 gcc_cv_ld_clearcap=yes; break
29254 else
29255 gcc_cv_ld_clearcap=no
29257 rm -f core conftest.err conftest.$ac_objext \
29258 conftest$ac_exeext conftest.$ac_ext
29259 done
29260 LDFLAGS="$saved_LDFLAGS"
29261 if test "x$gcc_cv_ld_clearcap" = xyes; then
29263 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29265 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29269 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29271 case "$target" in
29272 powerpc*-*-*)
29273 case "$target" in
29274 *le-*-linux*)
29275 emul_name="-melf32lppc"
29278 emul_name="-melf32ppc"
29280 esac
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29282 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29283 if ${gcc_cv_ld_ppc_attr+:} false; then :
29284 $as_echo_n "(cached) " >&6
29285 else
29286 gcc_cv_ld_ppc_attr=no
29287 if test x"$ld_is_gold" = xyes; then
29288 gcc_cv_ld_ppc_attr=yes
29289 elif test $in_tree_ld = yes ; then
29290 if test "$gcc_cv_gld_major_version" -eq 2 \
29291 -a "$gcc_cv_gld_minor_version" -ge 28 \
29292 -o "$gcc_cv_gld_major_version" -gt 2; then
29293 gcc_cv_ld_ppc_attr=yes
29295 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29296 # check that merging the long double .gnu_attribute doesn't warn
29297 cat > conftest1.s <<EOF
29298 .gnu_attribute 4,1
29300 cat > conftest2.s <<EOF
29301 .gnu_attribute 4,9
29303 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29304 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29305 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
29306 && test ! -s conftest.err; then
29307 gcc_cv_ld_ppc_attr=yes
29309 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29314 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29315 if test x$gcc_cv_ld_ppc_attr = xyes; then
29317 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29321 esac
29323 case "$target:$tm_file" in
29324 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
29325 case "$target" in
29326 *le-*-linux*)
29327 emul_name="-melf64lppc"
29329 *-*-linux*)
29330 emul_name="-melf64ppc"
29332 *-*-freebsd*)
29333 emul_name="-melf64ppc_fbsd"
29335 esac
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29337 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29338 if ${gcc_cv_ld_no_dot_syms+:} false; then :
29339 $as_echo_n "(cached) " >&6
29340 else
29341 gcc_cv_ld_no_dot_syms=no
29342 if test x"$ld_is_gold" = xyes; then
29343 gcc_cv_ld_no_dot_syms=yes
29344 elif test $in_tree_ld = yes ; then
29345 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
29346 gcc_cv_ld_no_dot_syms=yes
29348 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29349 cat > conftest1.s <<EOF
29350 .text
29351 bl .foo
29353 cat > conftest2.s <<EOF
29354 .section ".opd","aw"
29355 .align 3
29356 .globl foo
29357 .type foo,@function
29358 foo:
29359 .quad .LEfoo,.TOC.@tocbase,0
29360 .text
29361 .LEfoo:
29363 .size foo,.-.LEfoo
29365 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
29366 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
29367 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
29368 gcc_cv_ld_no_dot_syms=yes
29370 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29375 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29376 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
29378 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29383 $as_echo_n "checking linker large toc support... " >&6; }
29384 if ${gcc_cv_ld_large_toc+:} false; then :
29385 $as_echo_n "(cached) " >&6
29386 else
29387 gcc_cv_ld_large_toc=no
29388 if test x"$ld_is_gold" = xyes; then
29389 gcc_cv_ld_large_toc=yes
29390 elif test $in_tree_ld = yes ; then
29391 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
29392 gcc_cv_ld_large_toc=yes
29394 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29395 cat > conftest.s <<EOF
29396 .section ".tbss","awT",@nobits
29397 .align 3
29398 ie0: .space 8
29399 .global _start
29400 .text
29401 _start:
29402 addis 9,13,ie0@got@tprel@ha
29403 ld 9,ie0@got@tprel@l(9)
29405 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29406 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29407 gcc_cv_ld_large_toc=yes
29409 rm -f conftest conftest.o conftest.s
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29414 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29415 if test x"$gcc_cv_ld_large_toc" = xyes; then
29417 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29422 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29423 if ${gcc_cv_ld_toc_align+:} false; then :
29424 $as_echo_n "(cached) " >&6
29425 else
29426 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29427 cat > conftest.s <<EOF
29428 .global _start
29429 .text
29430 _start:
29431 addis 9,2,x@got@ha
29432 .section .data.rel.ro,"aw",@progbits
29433 .p2align 16
29434 .space 32768
29435 x: .quad .TOC.
29437 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29438 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29439 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)) }'`
29441 rm -f conftest conftest.o conftest.s
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29446 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29447 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29449 cat >>confdefs.h <<_ACEOF
29450 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29451 _ACEOF
29455 esac
29457 case "$target" in
29458 *-*-aix*)
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29460 $as_echo_n "checking linker large toc support... " >&6; }
29461 if ${gcc_cv_ld_large_toc+:} false; then :
29462 $as_echo_n "(cached) " >&6
29463 else
29464 gcc_cv_ld_large_toc=no
29465 if test x$gcc_cv_as != x ; then
29466 cat > conftest.s <<EOF
29467 .toc
29468 LC..1:
29469 .tc a[TC],a[RW]
29470 .extern a[RW]
29471 .csect .text[PR]
29472 .largetoctest:
29473 addis 9,LC..1@u(2)
29474 ld 3,LC..1@l(9)
29476 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29477 gcc_cv_ld_large_toc=yes
29479 rm -f conftest conftest.o conftest.s
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29484 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29485 if test x"$gcc_cv_ld_large_toc" = xyes; then
29487 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29491 esac
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29494 $as_echo_n "checking linker --build-id support... " >&6; }
29495 if ${gcc_cv_ld_buildid+:} false; then :
29496 $as_echo_n "(cached) " >&6
29497 else
29498 gcc_cv_ld_buildid=no
29499 if test $in_tree_ld = yes ; then
29500 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29501 "$gcc_cv_gld_minor_version" -ge 18 -o \
29502 "$gcc_cv_gld_major_version" -gt 2 \
29503 && test $in_tree_ld_is_elf = yes; then
29504 gcc_cv_ld_buildid=yes
29506 elif test x$gcc_cv_ld != x; then
29507 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29508 gcc_cv_ld_buildid=yes
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29513 $as_echo "$gcc_cv_ld_buildid" >&6; }
29514 if test x"$gcc_cv_ld_buildid" = xyes; then
29516 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29520 # Check whether --enable-linker-build-id was given.
29521 if test "${enable_linker_build_id+set}" = set; then :
29522 enableval=$enable_linker_build_id;
29523 else
29524 enable_linker_build_id=no
29528 if test x"$enable_linker_build_id" = xyes; then
29529 if test x"$gcc_cv_ld_buildid" = xyes; then
29531 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29533 else
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29535 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29539 # In binutils 2.21, GNU ld gained support for new emulations fully
29540 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29542 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29543 if ${gcc_cv_ld_sol2_emulation+:} false; then :
29544 $as_echo_n "(cached) " >&6
29545 else
29546 gcc_cv_ld_sol2_emulation=no
29547 if test $in_tree_ld = yes ; then
29548 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29549 "$gcc_cv_gld_minor_version" -ge 21 -o \
29550 "$gcc_cv_gld_major_version" -gt 2 \
29551 && test $in_tree_ld_is_elf = yes; then
29552 gcc_cv_ld_sol2_emulation=yes
29554 elif test x$gcc_cv_ld != x; then
29555 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29556 grep _sol2 > /dev/null; then
29557 gcc_cv_ld_sol2_emulation=yes
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29562 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29563 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29565 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29570 $as_echo_n "checking linker --sysroot support... " >&6; }
29571 if ${gcc_cv_ld_sysroot+:} false; then :
29572 $as_echo_n "(cached) " >&6
29573 else
29574 gcc_cv_ld_sysroot=no
29575 if test $in_tree_ld = yes ; then
29576 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
29577 gcc_cv_ld_sysroot=yes
29579 elif test x$gcc_cv_ld != x; then
29580 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29581 gcc_cv_ld_sysroot=yes
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29586 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29587 if test x"$gcc_cv_ld_sysroot" = xyes; then
29589 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29593 case $target in
29594 *-*-solaris2*)
29595 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29597 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29598 if ${gcc_cv_solaris_crts+:} false; then :
29599 $as_echo_n "(cached) " >&6
29600 else
29601 gcc_cv_solaris_crts=no
29602 if test x$host != x$target; then
29603 if test "x$with_sysroot" = xyes; then
29604 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29605 else
29606 target_sysroot="${with_sysroot}"
29609 target_libdir="$target_sysroot/usr/lib"
29610 # At the time they were added, gcrt1.o became a symlink for backwards
29611 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29612 case $target in
29613 i?86-*-solaris2* | x86_64-*-solaris2*)
29614 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29616 sparc*-*-solaris2*)
29617 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29619 esac
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29622 $as_echo "$gcc_cv_solaris_crts" >&6; }
29624 esac
29625 if test x$gcc_cv_solaris_crts = xyes; then
29627 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29631 # Check whether --enable-libssp was given.
29632 if test "${enable_libssp+set}" = set; then :
29633 enableval=$enable_libssp; case "${enableval}" in
29634 yes|no)
29637 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
29639 esac
29643 # Test for stack protector support in target C library.
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29645 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29646 if ${gcc_cv_libc_provides_ssp+:} false; then :
29647 $as_echo_n "(cached) " >&6
29648 else
29649 gcc_cv_libc_provides_ssp=no
29650 if test "x$enable_libssp" = "xno"; then
29651 gcc_cv_libc_provides_ssp=yes
29652 elif test "x$enable_libssp" = "xyes"; then
29653 gcc_cv_libc_provides_ssp=no
29654 else
29655 case "$target" in
29656 *-*-musl*)
29657 # All versions of musl provide stack protector
29658 gcc_cv_libc_provides_ssp=yes;;
29659 *-*-linux* | *-*-kfreebsd*-gnu)
29660 # glibc 2.4 and later provides __stack_chk_fail and
29661 # either __stack_chk_guard, or TLS access to stack guard canary.
29663 if test $glibc_version_major -gt 2 \
29664 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29665 gcc_cv_libc_provides_ssp=yes
29666 else
29668 if test -f $target_header_dir/features.h \
29669 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29670 $target_header_dir/features.h > /dev/null; then
29671 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29672 $target_header_dir/features.h > /dev/null && \
29673 test -f $target_header_dir/bits/uClibc_config.h && \
29674 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29675 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29676 gcc_cv_libc_provides_ssp=yes
29678 # all versions of Bionic support stack protector
29679 elif test -f $target_header_dir/sys/cdefs.h \
29680 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29681 $target_header_dir/sys/cdefs.h > /dev/null; then
29682 gcc_cv_libc_provides_ssp=yes
29686 *-*-gnu*)
29687 # Avoid complicated tests (see
29688 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29689 # simply assert that glibc does provide this, which is true for all
29690 # realistically usable GNU/Hurd configurations.
29691 # All supported versions of musl provide it as well
29692 gcc_cv_libc_provides_ssp=yes;;
29693 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29694 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29695 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
29696 gcc_cv_libc_provides_ssp=yes
29697 else
29698 echo "no __stack_chk_fail on this target"
29702 *) gcc_cv_libc_provides_ssp=no ;;
29703 esac
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29707 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29709 if test x$gcc_cv_libc_provides_ssp = xyes; then
29711 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29715 # Check whether --enable-default-ssp was given.
29716 # Check whether --enable-default-ssp was given.
29717 if test "${enable_default_ssp+set}" = set; then :
29718 enableval=$enable_default_ssp;
29719 if test x$gcc_cv_libc_provides_ssp = xyes; then
29720 case "$target" in
29721 ia64*-*-*) enable_default_ssp=no ;;
29722 *) enable_default_ssp=$enableval ;;
29723 esac
29724 else
29725 enable_default_ssp=no
29727 else
29728 enable_default_ssp=no
29731 if test x$enable_default_ssp = xyes ; then
29733 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29738 # Test for <sys/sdt.h> on the target.
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29741 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29742 have_sys_sdt_h=no
29743 if test -f $target_header_dir/sys/sdt.h; then
29744 have_sys_sdt_h=yes
29746 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29750 $as_echo "$have_sys_sdt_h" >&6; }
29752 # Check if TFmode long double should be used by default or not.
29753 # Some glibc targets used DFmode long double, but with glibc 2.4
29754 # and later they can use TFmode.
29755 case "$target" in
29756 powerpc*-*-linux* | \
29757 sparc*-*-linux* | \
29758 s390*-*-linux* | \
29759 alpha*-*-linux*)
29761 # Check whether --with-long-double-128 was given.
29762 if test "${with_long_double_128+set}" = set; then :
29763 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29764 else
29766 case "$target" in
29767 s390*-*-linux-musl*)
29768 gcc_cv_target_ldbl128=yes
29770 powerpc*-*-linux-musl*)
29771 gcc_cv_target_ldbl128=no
29775 if test $glibc_version_major -gt 2 \
29776 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29777 gcc_cv_target_ldbl128=yes
29778 else
29780 gcc_cv_target_ldbl128=no
29781 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29782 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29783 && gcc_cv_target_ldbl128=yes
29788 esac
29793 esac
29794 if test x$gcc_cv_target_ldbl128 = xyes; then
29796 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29800 # Check if TFmode long double target should use the IBM extended double or IEEE
29801 # 128-bit floating point formats if long doubles are 128-bits long. The long
29802 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29803 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29804 # libgcc.
29806 # Check whether --with-long-double-format was given.
29807 if test "${with_long_double_format+set}" = set; then :
29808 withval=$with_long_double_format;
29809 case "$target:$with_long_double_format" in
29810 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29813 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29814 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29815 case "$with_cpu" in
29816 power7 | power8 | power9 | power1*)
29820 as_fn_error $? "Configuration option --with-long-double-format is only \
29821 supported if the default cpu is power7 or newer" "$LINENO" 5
29822 with_long_double_format=""
29824 esac
29826 xpowerpc64*-*-linux*:*)
29827 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29828 with_long_double_format=""
29831 as_fn_error $? "Configure option --with-long-double-format is only supported \
29832 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29833 with_long_double_format=""
29835 esac
29839 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29840 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29841 gcc_cv_libc_provides_hwcap_in_tcb=no
29842 case "$target" in
29843 powerpc*-*-linux*)
29845 if test $glibc_version_major -gt 2 \
29846 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29847 gcc_cv_libc_provides_hwcap_in_tcb=yes
29850 esac
29851 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29853 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29857 # Check if the target LIBC handles PT_GNU_STACK.
29858 gcc_cv_libc_gnustack=unknown
29859 case "$target" in
29860 mips*-*-linux*)
29862 if test $glibc_version_major -gt 2 \
29863 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29864 gcc_cv_libc_gnustack=yes
29867 esac
29868 if test x$gcc_cv_libc_gnustack = xyes; then
29870 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29875 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29876 gcc_cv_target_dl_iterate_phdr=unknown
29877 case "$target" in
29878 *-*-solaris2*)
29879 # <link.h> needs both a dl_iterate_phdr declaration and support for
29880 # compilation with largefile support.
29881 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29882 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29883 gcc_cv_target_dl_iterate_phdr=yes
29884 else
29885 gcc_cv_target_dl_iterate_phdr=no
29888 *-*-dragonfly* | *-*-freebsd*)
29889 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29890 gcc_cv_target_dl_iterate_phdr=yes
29891 else
29892 gcc_cv_target_dl_iterate_phdr=no
29895 *-linux-musl*)
29896 gcc_cv_target_dl_iterate_phdr=yes
29898 esac
29900 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29902 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29906 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29908 # We no longer support different GC mechanisms. Emit an error if
29909 # the user configures with --with-gc.
29911 # Check whether --with-gc was given.
29912 if test "${with_gc+set}" = set; then :
29913 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29917 # Libraries to use on the host. This will normally be set by the top
29918 # level Makefile. Here we simply capture the value for our Makefile.
29919 if test -z "${HOST_LIBS+set}"; then
29920 HOST_LIBS=
29924 # Use the system's zlib library.
29926 # Use the system's zlib library.
29927 zlibdir="-L\$(top_builddir)/../zlib"
29928 zlibinc="-I\$(top_srcdir)/../zlib"
29930 # Check whether --with-system-zlib was given.
29931 if test "${with_system_zlib+set}" = set; then :
29932 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29933 zlibdir=
29934 zlibinc=
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29945 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29946 # Check whether --enable-maintainer-mode was given.
29947 if test "${enable_maintainer_mode+set}" = set; then :
29948 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29949 else
29950 maintainer_mode=no
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29955 $as_echo "$maintainer_mode" >&6; }
29957 if test "$maintainer_mode" = "yes"; then
29958 MAINT=''
29959 else
29960 MAINT='#'
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29965 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29966 # Check whether --enable-link-mutex was given.
29967 if test "${enable_link_mutex+set}" = set; then :
29968 enableval=$enable_link_mutex; do_link_mutex=$enableval
29969 else
29970 do_link_mutex=no
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29974 $as_echo "$do_link_mutex" >&6; }
29976 if test "$do_link_mutex" = "yes"; then
29977 DO_LINK_MUTEX=true
29978 else
29979 DO_LINK_MUTEX=false
29983 # --------------
29984 # Language hooks
29985 # --------------
29987 # Make empty files to contain the specs and options for each language.
29988 # Then add #include lines to for a compiler that has specs and/or options.
29990 subdirs=
29991 lang_opt_files=
29992 lang_specs_files=
29993 lang_tree_files=
29994 # These (without "all_") are set in each config-lang.in.
29995 # `language' must be a single word so is spelled singularly.
29996 all_languages=
29997 all_compilers=
29998 all_outputs='Makefile'
29999 # List of language configure and makefile fragments.
30000 all_lang_configurefrags=
30001 all_lang_makefrags=
30002 # Additional files for gengtype
30003 all_gtfiles="$target_gtfiles"
30005 # These are the languages that are set in --enable-languages,
30006 # and are available in the GCC tree.
30007 all_selected_languages=
30009 # Add the language fragments.
30010 # Languages are added via two mechanisms. Some information must be
30011 # recorded in makefile variables, these are defined in config-lang.in.
30012 # We accumulate them and plug them into the main Makefile.
30013 # The other mechanism is a set of hooks for each of the main targets
30014 # like `clean', `install', etc.
30016 language_hooks="Make-hooks"
30018 for lang in ${srcdir}/*/config-lang.in
30020 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30022 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30023 if test "x$lang_alias" = x
30024 then
30025 echo "$lang doesn't set \$language." 1>&2
30026 exit 1
30028 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30029 subdirs="$subdirs $subdir"
30031 # $gcc_subdir is where the gcc integration files are to be found
30032 # for a language, both for internal compiler purposes (compiler
30033 # sources implementing front-end to GCC tree converters), and for
30034 # build infrastructure purposes (Make-lang.in, etc.)
30036 # This will be <subdir> (relative to $srcdir) if a line like
30037 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30038 # is found in <langdir>/config-lang.in, and will remain <langdir>
30039 # otherwise.
30041 # Except for the language alias (fetched above), the regular
30042 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30043 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30044 # only this and the language alias.
30046 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30047 if [ "$gcc_subdir" = "" ]; then
30048 gcc_subdir="$subdir"
30051 case ",$enable_languages," in
30052 *,$lang_alias,*)
30053 all_selected_languages="$all_selected_languages $lang_alias"
30054 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
30055 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30058 esac
30060 language=
30061 boot_language=
30062 compilers=
30063 outputs=
30064 gtfiles=
30065 subdir_requires=
30066 . ${srcdir}/$gcc_subdir/config-lang.in
30067 if test "x$language" = x
30068 then
30069 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30070 exit 1
30073 ok=:
30074 case ",$enable_languages," in
30075 *,$lang_alias,*) ;;
30077 for i in $subdir_requires; do
30078 test -f "${srcdir}/$i/config-lang.in" && continue
30079 ok=false
30080 break
30081 done
30083 esac
30084 $ok || continue
30086 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30087 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30088 if test -f $srcdir/$gcc_subdir/lang.opt; then
30089 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30090 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30092 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
30093 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30095 all_languages="$all_languages $language"
30096 all_compilers="$all_compilers $compilers"
30097 all_outputs="$all_outputs $outputs"
30098 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
30099 case ",$enable_languages," in
30100 *,lto,*)
30102 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30104 enable_lto=yes
30107 *) ;;
30108 esac
30109 done
30111 check_languages=
30112 for language in $all_selected_languages
30114 check_languages="$check_languages check-$language"
30115 done
30117 selftest_languages=
30118 for language in $all_selected_languages
30120 selftest_languages="$selftest_languages selftest-$language"
30121 done
30123 # We link each language in with a set of hooks, reached indirectly via
30124 # lang.${target}. Only do so for selected languages.
30126 rm -f Make-hooks
30127 touch Make-hooks
30128 target_list="all.cross start.encap rest.encap tags \
30129 install-common install-man install-info install-pdf install-html dvi \
30130 pdf html uninstall info man srcextra srcman srcinfo \
30131 mostlyclean clean distclean maintainer-clean install-plugin"
30133 for t in $target_list
30136 for lang in $all_selected_languages
30138 x="$x $lang.$t"
30139 done
30140 echo "lang.$t: $x" >> Make-hooks
30141 done
30143 # --------
30144 # Option include files
30145 # --------
30147 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
30148 option_includes="option-includes.mk"
30151 # --------
30152 # UNSORTED
30153 # --------
30155 # Create .gdbinit.
30157 echo "dir ." > .gdbinit
30158 echo "dir ${srcdir}" >> .gdbinit
30159 if test x$gdb_needs_out_file_path = xyes
30160 then
30161 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30163 if test "x$subdirs" != x; then
30164 for s in $subdirs
30166 echo "dir ${srcdir}/$s" >> .gdbinit
30167 done
30169 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30170 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30172 # Put a breakpoint on __asan_report_error to help with debugging buffer
30173 # overflow.
30174 case "$CFLAGS" in
30175 *-fsanitize=address*)
30176 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30178 esac
30180 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30184 # Find a directory in which to install a shared libgcc.
30186 # Check whether --enable-version-specific-runtime-libs was given.
30187 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30188 enableval=$enable_version_specific_runtime_libs;
30192 # Substitute configuration variables
30260 # Echo link setup.
30261 if test x${build} = x${host} ; then
30262 if test x${host} = x${target} ; then
30263 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30264 else
30265 echo "Links are now set up to build a cross-compiler" 1>&2
30266 echo " from ${host} to ${target}." 1>&2
30268 else
30269 if test x${host} = x${target} ; then
30270 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30271 echo " for ${target}." 1>&2
30272 else
30273 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30274 echo " from ${host} to ${target}." 1>&2
30283 if test "x${ISLLIBS}" != "x" ; then
30285 $as_echo "#define HAVE_isl 1" >>confdefs.h
30289 # Check for plugin support
30290 # Check whether --enable-plugin was given.
30291 if test "${enable_plugin+set}" = set; then :
30292 enableval=$enable_plugin; enable_plugin=$enableval
30293 else
30294 enable_plugin=yes; default_plugin=yes
30298 pluginlibs=
30299 plugin_check=yes
30301 case "${host}" in
30302 *-*-mingw*)
30303 # Since plugin support under MinGW is not as straightforward as on
30304 # other platforms (e.g., we have to link import library, etc), we
30305 # only enable it if explicitly requested.
30306 if test x"$default_plugin" = x"yes"; then
30307 enable_plugin=no
30308 elif test x"$enable_plugin" = x"yes"; then
30309 # Use make's target variable to derive import library name.
30310 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30311 plugin_check=no
30314 *-*-darwin*)
30315 if test x$build = x$host; then
30316 export_sym_check="nm${exeext} -g"
30317 elif test x$host = x$target; then
30318 export_sym_check="$gcc_cv_nm -g"
30319 else
30320 export_sym_check=
30324 if test x$build = x$host; then
30325 export_sym_check="objdump${exeext} -T"
30326 elif test x$host = x$target; then
30327 export_sym_check="$gcc_cv_objdump -T"
30328 else
30329 export_sym_check=
30332 esac
30334 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30337 $as_echo_n "checking for exported symbols... " >&6; }
30338 if test "x$export_sym_check" != x; then
30339 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30340 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30341 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30342 : # No need to use a flag
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30344 $as_echo "yes" >&6; }
30345 else
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30347 $as_echo "yes" >&6; }
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30349 $as_echo_n "checking for -rdynamic... " >&6; }
30350 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
30351 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
30352 plugin_rdynamic=yes
30353 pluginlibs="-rdynamic"
30354 else
30355 plugin_rdynamic=no
30356 enable_plugin=no
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30359 $as_echo "$plugin_rdynamic" >&6; }
30361 else
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30363 $as_echo "unable to check" >&6; }
30366 # Check -ldl
30367 saved_LIBS="$LIBS"
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30369 $as_echo_n "checking for library containing dlopen... " >&6; }
30370 if ${ac_cv_search_dlopen+:} false; then :
30371 $as_echo_n "(cached) " >&6
30372 else
30373 ac_func_search_save_LIBS=$LIBS
30374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30375 /* end confdefs.h. */
30377 /* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply. */
30380 #ifdef __cplusplus
30381 extern "C"
30382 #endif
30383 char dlopen ();
30385 main ()
30387 return dlopen ();
30389 return 0;
30391 _ACEOF
30392 for ac_lib in '' dl; do
30393 if test -z "$ac_lib"; then
30394 ac_res="none required"
30395 else
30396 ac_res=-l$ac_lib
30397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30399 if ac_fn_cxx_try_link "$LINENO"; then :
30400 ac_cv_search_dlopen=$ac_res
30402 rm -f core conftest.err conftest.$ac_objext \
30403 conftest$ac_exeext
30404 if ${ac_cv_search_dlopen+:} false; then :
30405 break
30407 done
30408 if ${ac_cv_search_dlopen+:} false; then :
30410 else
30411 ac_cv_search_dlopen=no
30413 rm conftest.$ac_ext
30414 LIBS=$ac_func_search_save_LIBS
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30417 $as_echo "$ac_cv_search_dlopen" >&6; }
30418 ac_res=$ac_cv_search_dlopen
30419 if test "$ac_res" != no; then :
30420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30424 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30425 pluginlibs="$pluginlibs -ldl"
30427 LIBS="$saved_LIBS"
30429 # Check that we can build shared objects with -fPIC -shared
30430 saved_LDFLAGS="$LDFLAGS"
30431 saved_CFLAGS="$CFLAGS"
30432 case "${host}" in
30433 *-*-darwin*)
30434 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30435 CFLAGS="$CFLAGS -fPIC"
30436 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30439 CFLAGS="$CFLAGS -fPIC"
30440 LDFLAGS="$LDFLAGS -fPIC -shared"
30442 esac
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30444 $as_echo_n "checking for -fPIC -shared... " >&6; }
30445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30446 /* end confdefs.h. */
30447 extern int X;
30449 main ()
30451 return X == 0;
30453 return 0;
30455 _ACEOF
30456 if ac_fn_cxx_try_link "$LINENO"; then :
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }; have_pic_shared=yes
30459 else
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30461 $as_echo "no" >&6; }; have_pic_shared=no
30463 rm -f core conftest.err conftest.$ac_objext \
30464 conftest$ac_exeext conftest.$ac_ext
30465 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30466 pluginlibs=
30467 enable_plugin=no
30469 LDFLAGS="$saved_LDFLAGS"
30470 CFLAGS="$saved_CFLAGS"
30472 # If plugin support had been requested but not available, fail.
30473 if test x"$enable_plugin" = x"no" ; then
30474 if test x"$default_plugin" != x"yes"; then
30475 as_fn_error $? "
30476 Building GCC with plugin support requires a host that supports
30477 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30484 if test x"$enable_plugin" = x"yes"; then
30486 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30491 # Enable --enable-host-shared
30492 # Check whether --enable-host-shared was given.
30493 if test "${enable_host_shared+set}" = set; then :
30494 enableval=$enable_host_shared; PICFLAG=-fPIC
30495 else
30496 PICFLAG=
30503 # Check whether --enable-libquadmath-support was given.
30504 if test "${enable_libquadmath_support+set}" = set; then :
30505 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30506 else
30507 ENABLE_LIBQUADMATH_SUPPORT=yes
30510 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30512 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30517 # Specify what hash style to use by default.
30519 # Check whether --with-linker-hash-style was given.
30520 if test "${with_linker_hash_style+set}" = set; then :
30521 withval=$with_linker_hash_style; case x"$withval" in
30522 xsysv)
30523 LINKER_HASH_STYLE=sysv
30525 xgnu)
30526 LINKER_HASH_STYLE=gnu
30528 xboth)
30529 LINKER_HASH_STYLE=both
30532 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30534 esac
30535 else
30536 LINKER_HASH_STYLE=''
30539 if test x"${LINKER_HASH_STYLE}" != x; then
30541 cat >>confdefs.h <<_ACEOF
30542 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30543 _ACEOF
30547 # Specify what should be the default of -fdiagnostics-color option.
30549 # Check whether --with-diagnostics-color was given.
30550 if test "${with_diagnostics_color+set}" = set; then :
30551 withval=$with_diagnostics_color; case x"$withval" in
30552 xnever)
30553 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30555 xauto)
30556 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30558 xauto-if-env)
30559 DIAGNOSTICS_COLOR_DEFAULT=-1
30561 xalways)
30562 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30565 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30567 esac
30568 else
30569 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30573 cat >>confdefs.h <<_ACEOF
30574 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30575 _ACEOF
30578 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30579 # of jit/jit-playback.c.
30580 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30581 echo "gcc_driver_version: ${gcc_driver_version}"
30582 cat > gcc-driver-name.h <<EOF
30583 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30586 # Check whether --enable-default-pie was given.
30587 # Check whether --enable-default-pie was given.
30588 if test "${enable_default_pie+set}" = set; then :
30589 enableval=$enable_default_pie; enable_default_pie=$enableval
30590 else
30591 enable_default_pie=no
30594 if test x$enable_default_pie = xyes ; then
30596 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30601 # Check if -fno-PIE works.
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30603 $as_echo_n "checking for -fno-PIE option... " >&6; }
30604 if ${gcc_cv_c_no_fpie+:} false; then :
30605 $as_echo_n "(cached) " >&6
30606 else
30607 saved_CXXFLAGS="$CXXFLAGS"
30608 CXXFLAGS="$CXXFLAGS -fno-PIE"
30609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30610 /* end confdefs.h. */
30611 int main(void) {return 0;}
30612 _ACEOF
30613 if ac_fn_cxx_try_compile "$LINENO"; then :
30614 gcc_cv_c_no_fpie=yes
30615 else
30616 gcc_cv_c_no_fpie=no
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30619 CXXFLAGS="$saved_CXXFLAGS"
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30622 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30623 if test "$gcc_cv_c_no_fpie" = "yes"; then
30624 NO_PIE_CFLAGS="-fno-PIE"
30628 # Check if -no-pie works.
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30630 $as_echo_n "checking for -no-pie option... " >&6; }
30631 if ${gcc_cv_no_pie+:} false; then :
30632 $as_echo_n "(cached) " >&6
30633 else
30634 saved_LDFLAGS="$LDFLAGS"
30635 LDFLAGS="$LDFLAGS -no-pie"
30636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30637 /* end confdefs.h. */
30638 int main(void) {return 0;}
30639 _ACEOF
30640 if ac_fn_cxx_try_link "$LINENO"; then :
30641 gcc_cv_no_pie=yes
30642 else
30643 gcc_cv_no_pie=no
30645 rm -f core conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
30647 LDFLAGS="$saved_LDFLAGS"
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30650 $as_echo "$gcc_cv_no_pie" >&6; }
30651 if test "$gcc_cv_no_pie" = "yes"; then
30652 NO_PIE_FLAG="-no-pie"
30656 # Check linker supports '-z bndplt'
30657 ld_bndplt_support=no
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30659 $as_echo_n "checking linker -z bndplt option... " >&6; }
30660 if test x"$ld_is_gold" = xno; then
30661 if test $in_tree_ld = yes ; then
30662 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
30663 ld_bndplt_support=yes
30665 elif test x$gcc_cv_ld != x; then
30666 # Check if linker supports -a bndplt option
30667 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30668 ld_bndplt_support=yes
30672 if test x"$ld_bndplt_support" = xyes; then
30674 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30678 $as_echo "$ld_bndplt_support" >&6; }
30680 # Check linker supports '--push-state'/'--pop-state'
30681 ld_pushpopstate_support=no
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30683 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30684 if test x"$ld_is_gold" = xno; then
30685 if test $in_tree_ld = yes ; then
30686 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
30687 ld_pushpopstate_support=yes
30689 elif test x$gcc_cv_ld != x; then
30690 # Check if linker supports --push-state/--pop-state options
30691 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30692 ld_pushpopstate_support=yes
30696 if test x"$ld_pushpopstate_support" = xyes; then
30698 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30702 $as_echo "$ld_pushpopstate_support" >&6; }
30704 # Configure the subdirectories
30705 # AC_CONFIG_SUBDIRS($subdirs)
30707 # Create the Makefile
30708 # and configure language subdirectories
30709 ac_config_files="$ac_config_files $all_outputs"
30712 ac_config_commands="$ac_config_commands default"
30714 cat >confcache <<\_ACEOF
30715 # This file is a shell script that caches the results of configure
30716 # tests run on this system so they can be shared between configure
30717 # scripts and configure runs, see configure's option --config-cache.
30718 # It is not useful on other systems. If it contains results you don't
30719 # want to keep, you may remove or edit it.
30721 # config.status only pays attention to the cache file if you give it
30722 # the --recheck option to rerun configure.
30724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30726 # following values.
30728 _ACEOF
30730 # The following way of writing the cache mishandles newlines in values,
30731 # but we know of no workaround that is simple, portable, and efficient.
30732 # So, we kill variables containing newlines.
30733 # Ultrix sh set writes to stderr and can't be redirected directly,
30734 # and sets the high bit in the cache file unless we assign to the vars.
30736 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30737 eval ac_val=\$$ac_var
30738 case $ac_val in #(
30739 *${as_nl}*)
30740 case $ac_var in #(
30741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30743 esac
30744 case $ac_var in #(
30745 _ | IFS | as_nl) ;; #(
30746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30747 *) { eval $ac_var=; unset $ac_var;} ;;
30748 esac ;;
30749 esac
30750 done
30752 (set) 2>&1 |
30753 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30754 *${as_nl}ac_space=\ *)
30755 # `set' does not quote correctly, so add quotes: double-quote
30756 # substitution turns \\\\ into \\, and sed turns \\ into \.
30757 sed -n \
30758 "s/'/'\\\\''/g;
30759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30760 ;; #(
30762 # `set' quotes correctly as required by POSIX, so do not add quotes.
30763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30765 esac |
30766 sort
30768 sed '
30769 /^ac_cv_env_/b end
30770 t clear
30771 :clear
30772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30773 t end
30774 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30775 :end' >>confcache
30776 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30777 if test -w "$cache_file"; then
30778 if test "x$cache_file" != "x/dev/null"; then
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30780 $as_echo "$as_me: updating cache $cache_file" >&6;}
30781 if test ! -f "$cache_file" || test -h "$cache_file"; then
30782 cat confcache >"$cache_file"
30783 else
30784 case $cache_file in #(
30785 */* | ?:*)
30786 mv -f confcache "$cache_file"$$ &&
30787 mv -f "$cache_file"$$ "$cache_file" ;; #(
30789 mv -f confcache "$cache_file" ;;
30790 esac
30793 else
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30798 rm -f confcache
30800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30801 # Let make expand exec_prefix.
30802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30804 DEFS=-DHAVE_CONFIG_H
30806 ac_libobjs=
30807 ac_ltlibobjs=
30809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30810 # 1. Remove the extension, and $U if already installed.
30811 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30812 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30814 # will be set to the directory where LIBOBJS objects are built.
30815 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30816 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30817 done
30818 LIBOBJS=$ac_libobjs
30820 LTLIBOBJS=$ac_ltlibobjs
30825 : "${CONFIG_STATUS=./config.status}"
30826 ac_write_fail=0
30827 ac_clean_files_save=$ac_clean_files
30828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30831 as_write_fail=0
30832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30833 #! $SHELL
30834 # Generated by $as_me.
30835 # Run this file to recreate the current configuration.
30836 # Compiler output produced by configure, useful for debugging
30837 # configure, is in config.log if it exists.
30839 debug=false
30840 ac_cs_recheck=false
30841 ac_cs_silent=false
30843 SHELL=\${CONFIG_SHELL-$SHELL}
30844 export SHELL
30845 _ASEOF
30846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30847 ## -------------------- ##
30848 ## M4sh Initialization. ##
30849 ## -------------------- ##
30851 # Be more Bourne compatible
30852 DUALCASE=1; export DUALCASE # for MKS sh
30853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30854 emulate sh
30855 NULLCMD=:
30856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30857 # is contrary to our usage. Disable this feature.
30858 alias -g '${1+"$@"}'='"$@"'
30859 setopt NO_GLOB_SUBST
30860 else
30861 case `(set -o) 2>/dev/null` in #(
30862 *posix*) :
30863 set -o posix ;; #(
30864 *) :
30866 esac
30870 as_nl='
30872 export as_nl
30873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30877 # Prefer a ksh shell builtin over an external printf program on Solaris,
30878 # but without wasting forks for bash or zsh.
30879 if test -z "$BASH_VERSION$ZSH_VERSION" \
30880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30881 as_echo='print -r --'
30882 as_echo_n='print -rn --'
30883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30884 as_echo='printf %s\n'
30885 as_echo_n='printf %s'
30886 else
30887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30888 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30889 as_echo_n='/usr/ucb/echo -n'
30890 else
30891 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30892 as_echo_n_body='eval
30893 arg=$1;
30894 case $arg in #(
30895 *"$as_nl"*)
30896 expr "X$arg" : "X\\(.*\\)$as_nl";
30897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30898 esac;
30899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30901 export as_echo_n_body
30902 as_echo_n='sh -c $as_echo_n_body as_echo'
30904 export as_echo_body
30905 as_echo='sh -c $as_echo_body as_echo'
30908 # The user is always right.
30909 if test "${PATH_SEPARATOR+set}" != set; then
30910 PATH_SEPARATOR=:
30911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30912 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30913 PATH_SEPARATOR=';'
30918 # IFS
30919 # We need space, tab and new line, in precisely that order. Quoting is
30920 # there to prevent editors from complaining about space-tab.
30921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30922 # splitting by setting IFS to empty value.)
30923 IFS=" "" $as_nl"
30925 # Find who we are. Look in the path if we contain no directory separator.
30926 as_myself=
30927 case $0 in #((
30928 *[\\/]* ) as_myself=$0 ;;
30929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30930 for as_dir in $PATH
30932 IFS=$as_save_IFS
30933 test -z "$as_dir" && as_dir=.
30934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30935 done
30936 IFS=$as_save_IFS
30939 esac
30940 # We did not find ourselves, most probably we were run as `sh COMMAND'
30941 # in which case we are not to be found in the path.
30942 if test "x$as_myself" = x; then
30943 as_myself=$0
30945 if test ! -f "$as_myself"; then
30946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30947 exit 1
30950 # Unset variables that we do not need and which cause bugs (e.g. in
30951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30952 # suppresses any "Segmentation fault" message there. '((' could
30953 # trigger a bug in pdksh 5.2.14.
30954 for as_var in BASH_ENV ENV MAIL MAILPATH
30955 do eval test x\${$as_var+set} = xset \
30956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30957 done
30958 PS1='$ '
30959 PS2='> '
30960 PS4='+ '
30962 # NLS nuisances.
30963 LC_ALL=C
30964 export LC_ALL
30965 LANGUAGE=C
30966 export LANGUAGE
30968 # CDPATH.
30969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30973 # ----------------------------------------
30974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30976 # script with STATUS, using 1 if that was 0.
30977 as_fn_error ()
30979 as_status=$1; test $as_status -eq 0 && as_status=1
30980 if test "$4"; then
30981 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30984 $as_echo "$as_me: error: $2" >&2
30985 as_fn_exit $as_status
30986 } # as_fn_error
30989 # as_fn_set_status STATUS
30990 # -----------------------
30991 # Set $? to STATUS, without forking.
30992 as_fn_set_status ()
30994 return $1
30995 } # as_fn_set_status
30997 # as_fn_exit STATUS
30998 # -----------------
30999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31000 as_fn_exit ()
31002 set +e
31003 as_fn_set_status $1
31004 exit $1
31005 } # as_fn_exit
31007 # as_fn_unset VAR
31008 # ---------------
31009 # Portably unset VAR.
31010 as_fn_unset ()
31012 { eval $1=; unset $1;}
31014 as_unset=as_fn_unset
31015 # as_fn_append VAR VALUE
31016 # ----------------------
31017 # Append the text in VALUE to the end of the definition contained in VAR. Take
31018 # advantage of any shell optimizations that allow amortized linear growth over
31019 # repeated appends, instead of the typical quadratic growth present in naive
31020 # implementations.
31021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31022 eval 'as_fn_append ()
31024 eval $1+=\$2
31026 else
31027 as_fn_append ()
31029 eval $1=\$$1\$2
31031 fi # as_fn_append
31033 # as_fn_arith ARG...
31034 # ------------------
31035 # Perform arithmetic evaluation on the ARGs, and store the result in the
31036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31037 # must be portable across $(()) and expr.
31038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31039 eval 'as_fn_arith ()
31041 as_val=$(( $* ))
31043 else
31044 as_fn_arith ()
31046 as_val=`expr "$@" || test $? -eq 1`
31048 fi # as_fn_arith
31051 if expr a : '\(a\)' >/dev/null 2>&1 &&
31052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31053 as_expr=expr
31054 else
31055 as_expr=false
31058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31059 as_basename=basename
31060 else
31061 as_basename=false
31064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31065 as_dirname=dirname
31066 else
31067 as_dirname=false
31070 as_me=`$as_basename -- "$0" ||
31071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31072 X"$0" : 'X\(//\)$' \| \
31073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31074 $as_echo X/"$0" |
31075 sed '/^.*\/\([^/][^/]*\)\/*$/{
31076 s//\1/
31079 /^X\/\(\/\/\)$/{
31080 s//\1/
31083 /^X\/\(\/\).*/{
31084 s//\1/
31087 s/.*/./; q'`
31089 # Avoid depending upon Character Ranges.
31090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31093 as_cr_digits='0123456789'
31094 as_cr_alnum=$as_cr_Letters$as_cr_digits
31096 ECHO_C= ECHO_N= ECHO_T=
31097 case `echo -n x` in #(((((
31098 -n*)
31099 case `echo 'xy\c'` in
31100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31101 xy) ECHO_C='\c';;
31102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31103 ECHO_T=' ';;
31104 esac;;
31106 ECHO_N='-n';;
31107 esac
31109 rm -f conf$$ conf$$.exe conf$$.file
31110 if test -d conf$$.dir; then
31111 rm -f conf$$.dir/conf$$.file
31112 else
31113 rm -f conf$$.dir
31114 mkdir conf$$.dir 2>/dev/null
31116 if (echo >conf$$.file) 2>/dev/null; then
31117 if ln -s conf$$.file conf$$ 2>/dev/null; then
31118 as_ln_s='ln -s'
31119 # ... but there are two gotchas:
31120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31122 # In both cases, we have to default to `cp -pR'.
31123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31124 as_ln_s='cp -pR'
31125 elif ln conf$$.file conf$$ 2>/dev/null; then
31126 as_ln_s=ln
31127 else
31128 as_ln_s='cp -pR'
31130 else
31131 as_ln_s='cp -pR'
31133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31134 rmdir conf$$.dir 2>/dev/null
31137 # as_fn_mkdir_p
31138 # -------------
31139 # Create "$as_dir" as a directory, including parents if necessary.
31140 as_fn_mkdir_p ()
31143 case $as_dir in #(
31144 -*) as_dir=./$as_dir;;
31145 esac
31146 test -d "$as_dir" || eval $as_mkdir_p || {
31147 as_dirs=
31148 while :; do
31149 case $as_dir in #(
31150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31151 *) as_qdir=$as_dir;;
31152 esac
31153 as_dirs="'$as_qdir' $as_dirs"
31154 as_dir=`$as_dirname -- "$as_dir" ||
31155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31156 X"$as_dir" : 'X\(//\)[^/]' \| \
31157 X"$as_dir" : 'X\(//\)$' \| \
31158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31159 $as_echo X"$as_dir" |
31160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31161 s//\1/
31164 /^X\(\/\/\)[^/].*/{
31165 s//\1/
31168 /^X\(\/\/\)$/{
31169 s//\1/
31172 /^X\(\/\).*/{
31173 s//\1/
31176 s/.*/./; q'`
31177 test -d "$as_dir" && break
31178 done
31179 test -z "$as_dirs" || eval "mkdir $as_dirs"
31180 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31183 } # as_fn_mkdir_p
31184 if mkdir -p . 2>/dev/null; then
31185 as_mkdir_p='mkdir -p "$as_dir"'
31186 else
31187 test -d ./-p && rmdir ./-p
31188 as_mkdir_p=false
31192 # as_fn_executable_p FILE
31193 # -----------------------
31194 # Test if FILE is an executable regular file.
31195 as_fn_executable_p ()
31197 test -f "$1" && test -x "$1"
31198 } # as_fn_executable_p
31199 as_test_x='test -x'
31200 as_executable_p=as_fn_executable_p
31202 # Sed expression to map a string onto a valid CPP name.
31203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31205 # Sed expression to map a string onto a valid variable name.
31206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31209 exec 6>&1
31210 ## ----------------------------------- ##
31211 ## Main body of $CONFIG_STATUS script. ##
31212 ## ----------------------------------- ##
31213 _ASEOF
31214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31217 # Save the log message, to keep $0 and so on meaningful, and to
31218 # report actual input values of CONFIG_FILES etc. instead of their
31219 # values after options handling.
31220 ac_log="
31221 This file was extended by $as_me, which was
31222 generated by GNU Autoconf 2.69. Invocation command line was
31224 CONFIG_FILES = $CONFIG_FILES
31225 CONFIG_HEADERS = $CONFIG_HEADERS
31226 CONFIG_LINKS = $CONFIG_LINKS
31227 CONFIG_COMMANDS = $CONFIG_COMMANDS
31228 $ $0 $@
31230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31233 _ACEOF
31235 case $ac_config_files in *"
31236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31237 esac
31239 case $ac_config_headers in *"
31240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31241 esac
31244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31245 # Files that config.status was made for.
31246 config_files="$ac_config_files"
31247 config_headers="$ac_config_headers"
31248 config_links="$ac_config_links"
31249 config_commands="$ac_config_commands"
31251 _ACEOF
31253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31254 ac_cs_usage="\
31255 \`$as_me' instantiates files and other configuration actions
31256 from templates according to the current configuration. Unless the files
31257 and actions are specified as TAGs, all are instantiated by default.
31259 Usage: $0 [OPTION]... [TAG]...
31261 -h, --help print this help, then exit
31262 -V, --version print version number and configuration settings, then exit
31263 --config print configuration, then exit
31264 -q, --quiet, --silent
31265 do not print progress messages
31266 -d, --debug don't remove temporary files
31267 --recheck update $as_me by reconfiguring in the same conditions
31268 --file=FILE[:TEMPLATE]
31269 instantiate the configuration file FILE
31270 --header=FILE[:TEMPLATE]
31271 instantiate the configuration header FILE
31273 Configuration files:
31274 $config_files
31276 Configuration headers:
31277 $config_headers
31279 Configuration links:
31280 $config_links
31282 Configuration commands:
31283 $config_commands
31285 Report bugs to the package provider."
31287 _ACEOF
31288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31289 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31290 ac_cs_version="\\
31291 config.status
31292 configured by $0, generated by GNU Autoconf 2.69,
31293 with options \\"\$ac_cs_config\\"
31295 Copyright (C) 2012 Free Software Foundation, Inc.
31296 This config.status script is free software; the Free Software Foundation
31297 gives unlimited permission to copy, distribute and modify it."
31299 ac_pwd='$ac_pwd'
31300 srcdir='$srcdir'
31301 AWK='$AWK'
31302 test -n "\$AWK" || AWK=awk
31303 _ACEOF
31305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31306 # The default lists apply if the user does not specify any file.
31307 ac_need_defaults=:
31308 while test $# != 0
31310 case $1 in
31311 --*=?*)
31312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31313 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31314 ac_shift=:
31316 --*=)
31317 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31318 ac_optarg=
31319 ac_shift=:
31322 ac_option=$1
31323 ac_optarg=$2
31324 ac_shift=shift
31326 esac
31328 case $ac_option in
31329 # Handling of the options.
31330 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31331 ac_cs_recheck=: ;;
31332 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31333 $as_echo "$ac_cs_version"; exit ;;
31334 --config | --confi | --conf | --con | --co | --c )
31335 $as_echo "$ac_cs_config"; exit ;;
31336 --debug | --debu | --deb | --de | --d | -d )
31337 debug=: ;;
31338 --file | --fil | --fi | --f )
31339 $ac_shift
31340 case $ac_optarg in
31341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31342 '') as_fn_error $? "missing file argument" ;;
31343 esac
31344 as_fn_append CONFIG_FILES " '$ac_optarg'"
31345 ac_need_defaults=false;;
31346 --header | --heade | --head | --hea )
31347 $ac_shift
31348 case $ac_optarg in
31349 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31350 esac
31351 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31352 ac_need_defaults=false;;
31353 --he | --h)
31354 # Conflict between --help and --header
31355 as_fn_error $? "ambiguous option: \`$1'
31356 Try \`$0 --help' for more information.";;
31357 --help | --hel | -h )
31358 $as_echo "$ac_cs_usage"; exit ;;
31359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31361 ac_cs_silent=: ;;
31363 # This is an error.
31364 -*) as_fn_error $? "unrecognized option: \`$1'
31365 Try \`$0 --help' for more information." ;;
31367 *) as_fn_append ac_config_targets " $1"
31368 ac_need_defaults=false ;;
31370 esac
31371 shift
31372 done
31374 ac_configure_extra_args=
31376 if $ac_cs_silent; then
31377 exec 6>/dev/null
31378 ac_configure_extra_args="$ac_configure_extra_args --silent"
31381 _ACEOF
31382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31383 if \$ac_cs_recheck; then
31384 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31385 shift
31386 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31387 CONFIG_SHELL='$SHELL'
31388 export CONFIG_SHELL
31389 exec "\$@"
31392 _ACEOF
31393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31394 exec 5>>config.log
31396 echo
31397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31398 ## Running $as_me. ##
31399 _ASBOX
31400 $as_echo "$ac_log"
31401 } >&5
31403 _ACEOF
31404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31406 # INIT-COMMANDS
31408 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31409 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31410 subdirs='$subdirs'
31412 _ACEOF
31414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31416 # Handling of arguments.
31417 for ac_config_target in $ac_config_targets
31419 case $ac_config_target in
31420 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
31421 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
31422 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
31423 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
31424 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31425 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
31426 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31427 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
31428 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31431 esac
31432 done
31435 # If the user did not use the arguments to specify the items to instantiate,
31436 # then the envvar interface is used. Set only those that are not.
31437 # We use the long form for the default assignment because of an extremely
31438 # bizarre bug on SunOS 4.1.3.
31439 if $ac_need_defaults; then
31440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31442 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31443 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31446 # Have a temporary directory for convenience. Make it in the build tree
31447 # simply because there is no reason against having it here, and in addition,
31448 # creating and moving files from /tmp can sometimes cause problems.
31449 # Hook for its removal unless debugging.
31450 # Note that there is a small window in which the directory will not be cleaned:
31451 # after its creation but before its name has been assigned to `$tmp'.
31452 $debug ||
31454 tmp= ac_tmp=
31455 trap 'exit_status=$?
31456 : "${ac_tmp:=$tmp}"
31457 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31459 trap 'as_fn_exit 1' 1 2 13 15
31461 # Create a (secure) tmp directory for tmp files.
31464 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31465 test -d "$tmp"
31466 } ||
31468 tmp=./conf$$-$RANDOM
31469 (umask 077 && mkdir "$tmp")
31470 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31471 ac_tmp=$tmp
31473 # Set up the scripts for CONFIG_FILES section.
31474 # No need to generate them if there are no CONFIG_FILES.
31475 # This happens for instance with `./config.status config.h'.
31476 if test -n "$CONFIG_FILES"; then
31478 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31479 ac_cs_awk_getline=:
31480 ac_cs_awk_pipe_init=
31481 ac_cs_awk_read_file='
31482 while ((getline aline < (F[key])) > 0)
31483 print(aline)
31484 close(F[key])'
31485 ac_cs_awk_pipe_fini=
31486 else
31487 ac_cs_awk_getline=false
31488 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31489 ac_cs_awk_read_file='
31490 print "|#_!!_#|"
31491 print "cat " F[key] " &&"
31492 '$ac_cs_awk_pipe_init
31493 # The final `:' finishes the AND list.
31494 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31496 ac_cr=`echo X | tr X '\015'`
31497 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31498 # But we know of no other shell where ac_cr would be empty at this
31499 # point, so we can use a bashism as a fallback.
31500 if test "x$ac_cr" = x; then
31501 eval ac_cr=\$\'\\r\'
31503 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31505 ac_cs_awk_cr='\\r'
31506 else
31507 ac_cs_awk_cr=$ac_cr
31510 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31511 _ACEOF
31513 # Create commands to substitute file output variables.
31515 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31516 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31517 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31518 echo "_ACAWK" &&
31519 echo "_ACEOF"
31520 } >conf$$files.sh &&
31521 . ./conf$$files.sh ||
31522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31523 rm -f conf$$files.sh
31526 echo "cat >conf$$subs.awk <<_ACEOF" &&
31527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31528 echo "_ACEOF"
31529 } >conf$$subs.sh ||
31530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31532 ac_delim='%!_!# '
31533 for ac_last_try in false false false false false :; do
31534 . ./conf$$subs.sh ||
31535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31537 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31538 if test $ac_delim_n = $ac_delim_num; then
31539 break
31540 elif $ac_last_try; then
31541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31542 else
31543 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31545 done
31546 rm -f conf$$subs.sh
31548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31549 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31550 _ACEOF
31551 sed -n '
31553 s/^/S["/; s/!.*/"]=/
31556 s/^[^!]*!//
31557 :repl
31558 t repl
31559 s/'"$ac_delim"'$//
31560 t delim
31563 s/\(.\{148\}\)..*/\1/
31564 t more1
31565 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31568 b repl
31569 :more1
31570 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31573 s/.\{148\}//
31574 t nl
31575 :delim
31577 s/\(.\{148\}\)..*/\1/
31578 t more2
31579 s/["\\]/\\&/g; s/^/"/; s/$/"/
31582 :more2
31583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31586 s/.\{148\}//
31587 t delim
31588 ' <conf$$subs.awk | sed '
31589 /^[^""]/{
31591 s/\n//
31593 ' >>$CONFIG_STATUS || ac_write_fail=1
31594 rm -f conf$$subs.awk
31595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31596 _ACAWK
31597 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31598 for (key in S) S_is_set[key] = 1
31599 FS = "\a"
31600 \$ac_cs_awk_pipe_init
31603 line = $ 0
31604 nfields = split(line, field, "@")
31605 substed = 0
31606 len = length(field[1])
31607 for (i = 2; i < nfields; i++) {
31608 key = field[i]
31609 keylen = length(key)
31610 if (S_is_set[key]) {
31611 value = S[key]
31612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31613 len += length(value) + length(field[++i])
31614 substed = 1
31615 } else
31616 len += 1 + keylen
31618 if (nfields == 3 && !substed) {
31619 key = field[2]
31620 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31621 \$ac_cs_awk_read_file
31622 next
31625 print line
31627 \$ac_cs_awk_pipe_fini
31628 _ACAWK
31629 _ACEOF
31630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31631 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31632 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31633 else
31635 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31636 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31637 _ACEOF
31639 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31640 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31641 # trailing colons and then remove the whole line if VPATH becomes empty
31642 # (actually we leave an empty line to preserve line numbers).
31643 if test "x$srcdir" = x.; then
31644 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31646 s///
31647 s/^/:/
31648 s/[ ]*$/:/
31649 s/:\$(srcdir):/:/g
31650 s/:\${srcdir}:/:/g
31651 s/:@srcdir@:/:/g
31652 s/^:*//
31653 s/:*$//
31655 s/\(=[ ]*\).*/\1/
31657 s/\n//
31658 s/^[^=]*=[ ]*$//
31662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31663 fi # test -n "$CONFIG_FILES"
31665 # Set up the scripts for CONFIG_HEADERS section.
31666 # No need to generate them if there are no CONFIG_HEADERS.
31667 # This happens for instance with `./config.status Makefile'.
31668 if test -n "$CONFIG_HEADERS"; then
31669 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31670 BEGIN {
31671 _ACEOF
31673 # Transform confdefs.h into an awk script `defines.awk', embedded as
31674 # here-document in config.status, that substitutes the proper values into
31675 # config.h.in to produce config.h.
31677 # Create a delimiter string that does not exist in confdefs.h, to ease
31678 # handling of long lines.
31679 ac_delim='%!_!# '
31680 for ac_last_try in false false :; do
31681 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31682 if test -z "$ac_tt"; then
31683 break
31684 elif $ac_last_try; then
31685 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31686 else
31687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31689 done
31691 # For the awk script, D is an array of macro values keyed by name,
31692 # likewise P contains macro parameters if any. Preserve backslash
31693 # newline sequences.
31695 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31696 sed -n '
31697 s/.\{148\}/&'"$ac_delim"'/g
31698 t rset
31699 :rset
31700 s/^[ ]*#[ ]*define[ ][ ]*/ /
31701 t def
31703 :def
31704 s/\\$//
31705 t bsnl
31706 s/["\\]/\\&/g
31707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31708 D["\1"]=" \3"/p
31709 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31711 :bsnl
31712 s/["\\]/\\&/g
31713 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31714 D["\1"]=" \3\\\\\\n"\\/p
31715 t cont
31716 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31717 t cont
31719 :cont
31721 s/.\{148\}/&'"$ac_delim"'/g
31722 t clear
31723 :clear
31724 s/\\$//
31725 t bsnlc
31726 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31728 :bsnlc
31729 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31730 b cont
31731 ' <confdefs.h | sed '
31732 s/'"$ac_delim"'/"\\\
31733 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31736 for (key in D) D_is_set[key] = 1
31737 FS = "\a"
31739 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31740 line = \$ 0
31741 split(line, arg, " ")
31742 if (arg[1] == "#") {
31743 defundef = arg[2]
31744 mac1 = arg[3]
31745 } else {
31746 defundef = substr(arg[1], 2)
31747 mac1 = arg[2]
31749 split(mac1, mac2, "(") #)
31750 macro = mac2[1]
31751 prefix = substr(line, 1, index(line, defundef) - 1)
31752 if (D_is_set[macro]) {
31753 # Preserve the white space surrounding the "#".
31754 print prefix "define", macro P[macro] D[macro]
31755 next
31756 } else {
31757 # Replace #undef with comments. This is necessary, for example,
31758 # in the case of _POSIX_SOURCE, which is predefined and required
31759 # on some systems where configure will not decide to define it.
31760 if (defundef == "undef") {
31761 print "/*", prefix defundef, macro, "*/"
31762 next
31766 { print }
31767 _ACAWK
31768 _ACEOF
31769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31770 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31771 fi # test -n "$CONFIG_HEADERS"
31774 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31775 shift
31776 for ac_tag
31778 case $ac_tag in
31779 :[FHLC]) ac_mode=$ac_tag; continue;;
31780 esac
31781 case $ac_mode$ac_tag in
31782 :[FHL]*:*);;
31783 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31784 :[FH]-) ac_tag=-:-;;
31785 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31786 esac
31787 ac_save_IFS=$IFS
31788 IFS=:
31789 set x $ac_tag
31790 IFS=$ac_save_IFS
31791 shift
31792 ac_file=$1
31793 shift
31795 case $ac_mode in
31796 :L) ac_source=$1;;
31797 :[FH])
31798 ac_file_inputs=
31799 for ac_f
31801 case $ac_f in
31802 -) ac_f="$ac_tmp/stdin";;
31803 *) # Look for the file first in the build tree, then in the source tree
31804 # (if the path is not absolute). The absolute path cannot be DOS-style,
31805 # because $ac_f cannot contain `:'.
31806 test -f "$ac_f" ||
31807 case $ac_f in
31808 [\\/$]*) false;;
31809 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31810 esac ||
31811 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31812 esac
31813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31814 as_fn_append ac_file_inputs " '$ac_f'"
31815 done
31817 # Let's still pretend it is `configure' which instantiates (i.e., don't
31818 # use $as_me), people would be surprised to read:
31819 # /* config.h. Generated by config.status. */
31820 configure_input='Generated from '`
31821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31822 `' by configure.'
31823 if test x"$ac_file" != x-; then
31824 configure_input="$ac_file. $configure_input"
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31826 $as_echo "$as_me: creating $ac_file" >&6;}
31828 # Neutralize special characters interpreted by sed in replacement strings.
31829 case $configure_input in #(
31830 *\&* | *\|* | *\\* )
31831 ac_sed_conf_input=`$as_echo "$configure_input" |
31832 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31833 *) ac_sed_conf_input=$configure_input;;
31834 esac
31836 case $ac_tag in
31837 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31839 esac
31841 esac
31843 ac_dir=`$as_dirname -- "$ac_file" ||
31844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31845 X"$ac_file" : 'X\(//\)[^/]' \| \
31846 X"$ac_file" : 'X\(//\)$' \| \
31847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31848 $as_echo X"$ac_file" |
31849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31850 s//\1/
31853 /^X\(\/\/\)[^/].*/{
31854 s//\1/
31857 /^X\(\/\/\)$/{
31858 s//\1/
31861 /^X\(\/\).*/{
31862 s//\1/
31865 s/.*/./; q'`
31866 as_dir="$ac_dir"; as_fn_mkdir_p
31867 ac_builddir=.
31869 case "$ac_dir" in
31870 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31873 # A ".." for each directory in $ac_dir_suffix.
31874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31875 case $ac_top_builddir_sub in
31876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31878 esac ;;
31879 esac
31880 ac_abs_top_builddir=$ac_pwd
31881 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31882 # for backward compatibility:
31883 ac_top_builddir=$ac_top_build_prefix
31885 case $srcdir in
31886 .) # We are building in place.
31887 ac_srcdir=.
31888 ac_top_srcdir=$ac_top_builddir_sub
31889 ac_abs_top_srcdir=$ac_pwd ;;
31890 [\\/]* | ?:[\\/]* ) # Absolute name.
31891 ac_srcdir=$srcdir$ac_dir_suffix;
31892 ac_top_srcdir=$srcdir
31893 ac_abs_top_srcdir=$srcdir ;;
31894 *) # Relative name.
31895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31896 ac_top_srcdir=$ac_top_build_prefix$srcdir
31897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31898 esac
31899 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31902 case $ac_mode in
31905 # CONFIG_FILE
31908 _ACEOF
31910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31911 # If the template does not know about datarootdir, expand it.
31912 # FIXME: This hack should be removed a few years after 2.60.
31913 ac_datarootdir_hack=; ac_datarootdir_seen=
31914 ac_sed_dataroot='
31915 /datarootdir/ {
31919 /@datadir@/p
31920 /@docdir@/p
31921 /@infodir@/p
31922 /@localedir@/p
31923 /@mandir@/p'
31924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31925 *datarootdir*) ac_datarootdir_seen=yes;;
31926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31929 _ACEOF
31930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31931 ac_datarootdir_hack='
31932 s&@datadir@&$datadir&g
31933 s&@docdir@&$docdir&g
31934 s&@infodir@&$infodir&g
31935 s&@localedir@&$localedir&g
31936 s&@mandir@&$mandir&g
31937 s&\\\${datarootdir}&$datarootdir&g' ;;
31938 esac
31939 _ACEOF
31941 # Neutralize VPATH when `$srcdir' = `.'.
31942 # Shell code in configure.ac might set extrasub.
31943 # FIXME: do we really want to maintain this feature?
31944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31945 ac_sed_extra="$ac_vpsub
31946 $extrasub
31947 _ACEOF
31948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31951 s|@configure_input@|$ac_sed_conf_input|;t t
31952 s&@top_builddir@&$ac_top_builddir_sub&;t t
31953 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31954 s&@srcdir@&$ac_srcdir&;t t
31955 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31956 s&@top_srcdir@&$ac_top_srcdir&;t t
31957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31958 s&@builddir@&$ac_builddir&;t t
31959 s&@abs_builddir@&$ac_abs_builddir&;t t
31960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31961 $ac_datarootdir_hack
31963 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31964 if $ac_cs_awk_getline; then
31965 $AWK -f "$ac_tmp/subs.awk"
31966 else
31967 $AWK -f "$ac_tmp/subs.awk" | $SHELL
31968 fi \
31969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31971 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31974 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31976 which seems to be undefined. Please make sure it is defined" >&5
31977 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31978 which seems to be undefined. Please make sure it is defined" >&2;}
31980 rm -f "$ac_tmp/stdin"
31981 case $ac_file in
31982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31984 esac \
31985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31989 # CONFIG_HEADER
31991 if test x"$ac_file" != x-; then
31993 $as_echo "/* $configure_input */" \
31994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31995 } >"$ac_tmp/config.h" \
31996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31999 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32000 else
32001 rm -f "$ac_file"
32002 mv "$ac_tmp/config.h" "$ac_file" \
32003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32005 else
32006 $as_echo "/* $configure_input */" \
32007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32008 || as_fn_error $? "could not create -" "$LINENO" 5
32013 # CONFIG_LINK
32016 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32018 else
32019 # Prefer the file from the source tree if names are identical.
32020 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32021 ac_source=$srcdir/$ac_source
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32025 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32027 if test ! -r "$ac_source"; then
32028 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32030 rm -f "$ac_file"
32032 # Try a relative symlink, then a hard link, then a copy.
32033 case $ac_source in
32034 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32035 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32036 esac
32037 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32038 ln "$ac_source" "$ac_file" 2>/dev/null ||
32039 cp -p "$ac_source" "$ac_file" ||
32040 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32043 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32044 $as_echo "$as_me: executing $ac_file commands" >&6;}
32046 esac
32049 case $ac_file$ac_mode in
32050 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32051 "gccdepdir":C)
32052 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32053 for lang in $subdirs c-family common analyzer
32055 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32056 done ;;
32057 "as":F) chmod +x as ;;
32058 "collect-ld":F) chmod +x collect-ld ;;
32059 "nm":F) chmod +x nm ;;
32060 "default":C)
32061 case ${CONFIG_HEADERS} in
32062 *auto-host.h:config.in*)
32063 echo > cstamp-h ;;
32064 esac
32065 # Make sure all the subdirs exist.
32066 for d in $subdirs doc build common c-family
32068 test -d $d || mkdir $d
32069 done
32072 esac
32073 done # for ac_tag
32076 as_fn_exit 0
32077 _ACEOF
32078 ac_clean_files=$ac_clean_files_save
32080 test $ac_write_fail = 0 ||
32081 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32084 # configure is writing to config.log, and then calls config.status.
32085 # config.status does its own redirection, appending to config.log.
32086 # Unfortunately, on DOS this fails, as config.log is still kept open
32087 # by configure, so config.status won't be able to write to it; its
32088 # output is simply discarded. So we exec the FD to /dev/null,
32089 # effectively closing config.log, so it can be properly (re)opened and
32090 # appended to by config.status. When coming back to configure, we
32091 # need to make the FD available again.
32092 if test "$no_create" != yes; then
32093 ac_cs_success=:
32094 ac_config_status_args=
32095 test "$silent" = yes &&
32096 ac_config_status_args="$ac_config_status_args --quiet"
32097 exec 5>/dev/null
32098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32099 exec 5>>config.log
32100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32101 # would make configure fail if this is the last instruction.
32102 $ac_cs_success || as_fn_exit 1
32104 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32106 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}