Fix emit_group_store regression on big-endian
[official-gcc.git] / gcc / configure
blob99ba76522d621b9d2f7a9fb3dd2d07c35c08032d
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.cc"
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 CET_HOST_FLAGS
635 NO_PIE_FLAG
636 NO_PIE_CFLAGS
637 enable_default_pie
638 PICFLAG
639 enable_host_shared
640 enable_plugin
641 pluginlibs
642 ISLINC
643 ISLLIBS
644 GMPINC
645 GMPLIBS
646 target_cpu_default
647 d_target_objs
648 fortran_target_objs
649 cxx_target_objs
650 c_target_objs
651 use_gcc_stdint
652 xm_defines
653 xm_include_list
654 xm_file_list
655 tm_d_include_list
656 tm_d_file_list
657 tm_p_include_list
658 tm_p_file_list
659 tm_defines
660 tm_include_list
661 tm_file_list
662 common_out_object_file
663 common_out_file
664 out_object_file
665 out_file
666 objc_boehm_gc
667 md_file
668 local_prefix
669 lang_tree_files
670 lang_specs_files
671 lang_opt_files
672 install
673 out_host_hook_obj
674 host_xm_defines
675 host_xm_include_list
676 host_xm_file_list
677 host_exeext
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
681 gcc_gxx_include_dir
682 gcc_config_arguments
683 float_h_file
684 extra_programs
685 extra_objs
686 extra_headers_list
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
689 extra_gcc_objs
690 TM_MULTILIB_EXCEPTIONS_CONFIG
691 TM_MULTILIB_CONFIG
692 TM_ENDIAN_CONFIG
693 tmake_file
694 xmake_file
695 cpp_install_dir
696 selftest_languages
697 check_languages
698 build_file_translate
699 build_xm_defines
700 build_xm_include_list
701 build_xm_file_list
702 build_install_headers_dir
703 build_exeext
704 all_selected_languages
705 all_languages
706 all_lang_makefrags
707 all_lang_configurefrags
708 all_gtfiles
709 all_compilers
710 srcdir
711 subdirs
712 dollar
713 gcc_tooldir
714 enable_lto
715 DO_LINK_SERIALIZATION
716 DO_LINK_MUTEX
717 CSCOPE
718 ETAGS
719 CTAGS
720 MAINT
721 zlibinc
722 zlibdir
723 HOST_LIBS
724 enable_default_ssp
725 thin_archive_support
726 ld_soname_option
727 ld_version_script_option
728 libgcc_visibility
729 ORIGINAL_DSYMUTIL_FOR_TARGET
730 gcc_cv_dsymutil
731 gcc_cv_otool
732 gcc_cv_readelf
733 gcc_cv_objdump
734 ORIGINAL_NM_FOR_TARGET
735 gcc_cv_nm
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 gcc_cv_ld
741 ORIGINAL_AS_FOR_TARGET
742 gcc_cv_as
743 enable_fast_install
744 objdir
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 STRIP
751 OBJDUMP
752 ac_ct_DUMPBIN
753 DUMPBIN
755 FGREP
757 LIBTOOL
758 collect2
759 STMP_FIXINC
760 BUILD_LDFLAGS
761 BUILD_CXXFLAGS
762 BUILD_CFLAGS
763 CXX_FOR_BUILD
764 CC_FOR_BUILD
765 inhibit_libc
766 BUILD_SYSTEM_HEADER_DIR
767 SYSTEM_HEADER_DIR
769 CROSS
770 CATOBJEXT
771 GENCAT
772 INSTOBJEXT
773 DATADIRNAME
774 CATALOGS
775 POSUB
776 GMSGFMT
777 XGETTEXT
778 INCINTL
779 LIBINTL_DEP
780 LIBINTL
781 USE_NLS
782 get_gcc_base_ver
783 HAVE_AUTO_BUILD
784 extra_opt_files
785 extra_modes_file
786 NATIVE_SYSTEM_HEADER_DIR
787 objext
788 manext
789 LIBICONV_DEP
790 LTLIBICONV
791 LIBICONV
792 ZSTD_LDFLAGS
793 ZSTD_CPPFLAGS
794 ZSTD_LIB
795 ZSTD_INCLUDE
796 DL_LIB
797 LDEXP_LIB
798 NETLIBS
799 EXTRA_GCC_LIBS
800 GNAT_LIBEXC
801 COLLECT2_LIBS
802 CXXDEPMODE
803 DEPDIR
804 am__leading_dot
805 doc_build_sys
808 BISON
809 FLEX
810 GENERATED_MANPAGES
811 BUILD_INFO
812 MAKEINFO
813 have_mktemp_command
814 make_compare_target
815 INSTALL_DATA
816 INSTALL_PROGRAM
817 INSTALL
818 ranlib_flags
819 RANLIB
821 LN_S
823 SET_MAKE
824 omp_device_property_deps
825 omp_device_properties
826 accel_dir_suffix
827 real_target_noncanonical
828 enable_as_accelerator
829 gnat_install_lib
830 REPORT_BUGS_TEXI
831 REPORT_BUGS_TO
832 PKGVERSION
833 CONFIGURE_SPECS
834 enable_gcov
835 enable_shared
836 enable_fixed_point
837 enable_decimal_float
838 with_float
839 with_cpu
840 enable_multiarch
841 enable_multilib
842 coverage_flags
843 valgrind_command
844 valgrind_path_defines
845 valgrind_path
846 TREECHECKING
847 nocommon_flag
848 noexception_flags
849 warn_cxxflags
850 warn_cflags
851 c_strict_warn
852 strict_warn
853 c_loose_warn
854 loose_warn
855 aliasing_flags
857 EGREP
858 GREP
859 CXXCPP
860 PICFLAG_FOR_TARGET
861 GDCFLAGS
863 GNATMAKE
864 GNATBIND
865 ac_ct_CXX
866 CXXFLAGS
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
875 GENINSRC
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
878 TARGET_SYSTEM_ROOT
879 SYSROOT_CFLAGS_FOR_TARGET
880 target_subdir
881 host_subdir
882 build_subdir
883 build_libsubdir
884 target_noncanonical
885 host_noncanonical
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='option_includes
937 language_hooks'
938 ac_user_opts='
939 enable_option_checking
940 with_build_libsubdir
941 with_local_prefix
942 with_native_system_header_dir
943 with_build_sysroot
944 with_sysroot
945 with_gxx_include_dir
946 with_gxx_libcxx_include_dir
947 with_cpp_install_dir
948 enable_generated_files_in_srcdir
949 with_gnu_ld
950 with_ld
951 with_demangler_in_ld
952 with_dsymutil
953 with_gnu_as
954 with_as
955 enable_largefile
956 enable_build_format_warnings
957 enable_werror_always
958 enable_checking
959 enable_coverage
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
962 enable_multilib
963 enable_multiarch
964 with_stack_clash_protection_guard_size
965 enable___cxa_atexit
966 enable_decimal_float
967 enable_fixed_point
968 enable_threads
969 enable_tls
970 enable_vtable_verify
971 enable_analyzer
972 enable_objc_gc
973 with_dwarf2
974 enable_shared
975 enable_gcov
976 with_specs
977 with_pkgversion
978 with_bugurl
979 with_documentation_root_url
980 with_changes_root_url
981 enable_languages
982 with_multilib_list
983 with_multilib_generator
984 with_zstd
985 with_zstd_include
986 with_zstd_lib
987 enable_rpath
988 with_libiconv_prefix
989 with_libiconv_type
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
992 enable_secureplt
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
996 enable_cld
997 enable_frame_pointer
998 enable_win32_registry
999 enable_static
1000 with_pic
1001 enable_fast_install
1002 enable_libtool_lock
1003 enable_ld
1004 enable_gold
1005 with_plugin_ld
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1008 enable_comdat
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1013 with_glibc_version
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1016 enable_libssp
1017 enable_default_ssp
1018 with_long_double_128
1019 with_long_double_format
1020 with_gc
1021 with_system_zlib
1022 enable_maintainer_mode
1023 enable_link_mutex
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1026 enable_plugin
1027 enable_host_shared
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1032 enable_default_pie
1033 enable_cet
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1045 CXXFLAGS
1047 CXXCPP
1049 GMPLIBS
1050 GMPINC
1051 ISLLIBS
1052 ISLINC'
1055 # Initialize some variables set by options.
1056 ac_init_help=
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1063 exec_prefix=NONE
1064 no_create=
1065 no_recursion=
1066 prefix=NONE
1067 program_prefix=NONE
1068 program_suffix=NONE
1069 program_transform_name=s,x,x,
1070 silent=
1071 site=
1072 srcdir=
1073 verbose=
1074 x_includes=NONE
1075 x_libraries=NONE
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1095 htmldir='${docdir}'
1096 dvidir='${docdir}'
1097 pdfdir='${docdir}'
1098 psdir='${docdir}'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1103 ac_prev=
1104 ac_dashdash=
1105 for ac_option
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1110 ac_prev=
1111 continue
1114 case $ac_option in
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 *=) ac_optarg= ;;
1117 *) ac_optarg=yes ;;
1118 esac
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1124 ac_dashdash=yes ;;
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1127 ac_prev=bindir ;;
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1147 ac_prev=datadir ;;
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1175 ac_prev=docdir ;;
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1180 ac_prev=dvidir ;;
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1211 with_gas=yes ;;
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 ac_prev=htmldir ;;
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 | --ht=*)
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 ac_prev=infodir ;;
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1244 ac_prev=libdir ;;
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 ac_prev=mandir ;;
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1274 with_fp=no ;;
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1278 no_create=yes ;;
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1282 no_recursion=yes ;;
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 ac_prev=prefix ;;
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 ac_prev=pdfdir ;;
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1335 ac_prev=psdir ;;
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1337 psdir=$ac_optarg ;;
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1341 silent=yes ;;
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 ac_prev=sbindir ;;
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 | --sbi=* | --sb=*)
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1352 | --sha | --sh)
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 | --sha=* | --sh=*)
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1361 ac_prev=site ;;
1362 -site=* | --site=* | --sit=*)
1363 site=$ac_optarg ;;
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 ac_prev=srcdir ;;
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1383 verbose=yes ;;
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1388 -with-* | --with-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1401 esac
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=no ;;
1420 --x)
1421 # Obsolete; use --with-x.
1422 with_x=yes ;;
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1442 *=*)
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1448 esac
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1460 esac
1461 done
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1470 no) ;;
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1473 esac
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1484 case $ac_val in
1485 */ )
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1488 esac
1489 # Be sure to have absolute directory names.
1490 case $ac_val in
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1493 esac
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1495 done
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1500 build=$build_alias
1501 host=$host_alias
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1509 cross_compiling=yes
1513 ac_tool_prefix=
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 s//\1/
1541 /^X\(\/\/\)[^/].*/{
1542 s//\1/
1545 /^X\(\/\/\)$/{
1546 s//\1/
1549 /^X\(\/\).*/{
1550 s//\1/
1553 s/.*/./; q'`
1554 srcdir=$ac_confdir
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556 srcdir=..
1558 else
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1566 ac_abs_confdir=`(
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1648 cat <<\_ACEOF
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1659 _ACEOF
1662 if test -n "$ac_init_help"; then
1664 cat <<\_ACEOF
1666 Optional Features:
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1699 to use
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1702 package
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1726 on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1740 glibc systems
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1756 835769 by default
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1759 835769 by default
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1764 843419 by default
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1767 843419 by default
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1784 machine
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1798 Optional Packages:
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1820 pathname)
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1835 SH and x86-64 only)
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1851 both]
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1862 the compiler
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1888 CPP C preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1898 _ACEOF
1899 ac_status=$?
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1907 continue
1908 ac_builddir=.
1910 case "$ac_dir" in
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1919 esac ;;
1920 esac
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1926 case $srcdir in
1927 .) # We are building in place.
1928 ac_srcdir=.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1935 *) # Relative name.
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1939 esac
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1945 echo &&
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1948 echo &&
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1950 else
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1952 fi || ac_status=$?
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1954 done
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1959 cat <<\_ACEOF
1960 configure
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1966 _ACEOF
1967 exit
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=1
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
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_compile") 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; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; 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_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2057 case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064 ac_status=$?
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=1
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2091 # accordingly.
2092 ac_fn_cxx_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 else
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2111 #include <$2>
2112 _ACEOF
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2115 else
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2131 else
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2140 yes:no: )
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146 no:yes:* )
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158 esac
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=\$ac_header_compiler"
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2189 ac_status=$?
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2199 ac_status=$?
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2202 ac_retval=0
2203 else
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2227 else
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2231 #include <$2>
2232 _ACEOF
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2234 eval "$3=yes"
2235 else
2236 eval "$3=no"
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 eval ac_res=\$$3
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_cpp ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2271 }; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_c_try_cpp
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2288 # computed
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2301 test_array [0] = 0;
2302 return test_array [0];
2305 return 0;
2307 _ACEOF
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 ac_lo=0 ac_mid=0
2310 while :; do
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2315 main ()
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2318 test_array [0] = 0;
2319 return test_array [0];
2322 return 0;
2324 _ACEOF
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2327 else
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2330 ac_lo= ac_hi=
2331 break
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2342 main ()
2344 static int test_array [1 - 2 * !(($2) < 0)];
2345 test_array [0] = 0;
2346 return test_array [0];
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 ac_hi=-1 ac_mid=-1
2354 while :; do
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2359 main ()
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2362 test_array [0] = 0;
2363 return test_array [0];
2366 return 0;
2368 _ACEOF
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2371 else
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2374 ac_lo= ac_hi=
2375 break
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 done
2381 else
2382 ac_lo= ac_hi=
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2405 ac_hi=$ac_mid
2406 else
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 done
2411 case $ac_lo in #((
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2413 '') ac_retval=1 ;;
2414 esac
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2421 #include <stdio.h>
2422 #include <stdlib.h>
2424 main ()
2427 FILE *f = fopen ("conftest.val", "w");
2428 if (! f)
2429 return 1;
2430 if (($2) < 0)
2432 long int i = longval ();
2433 if (i != ($2))
2434 return 1;
2435 fprintf (f, "%ld", i);
2437 else
2439 unsigned long int i = ulongval ();
2440 if (i != ($2))
2441 return 1;
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2449 return 0;
2451 _ACEOF
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2454 else
2455 ac_retval=1
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2459 rm -f conftest.val
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478 else
2479 eval "$3=no"
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2484 main ()
2486 if (sizeof ($2))
2487 return 0;
2489 return 0;
2491 _ACEOF
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 main ()
2499 if (sizeof (($2)))
2500 return 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2507 else
2508 eval "$3=yes"
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 eval ac_res=\$$3
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2524 # accordingly.
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=no"
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2543 main ()
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2546 test_array [0] = 0;
2547 return test_array [0];
2550 return 0;
2552 _ACEOF
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2559 main ()
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2563 test_array [0] = 0;
2564 return test_array [0];
2567 return 0;
2569 _ACEOF
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2572 else
2573 case $ac_type in #(
2574 int$2_t) :
2575 eval "$3=yes" ;; #(
2576 *) :
2577 eval "$3=\$ac_type" ;;
2578 esac
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2585 else
2586 break
2588 done
2590 eval ac_res=\$$3
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2612 ac_status=$?
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2625 }; then :
2626 ac_retval=0
2627 else
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 ac_retval=1
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2646 # accordingly.
2647 ac_fn_c_find_uintX_t ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 eval "$3=no"
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2664 main ()
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2667 test_array [0] = 0;
2668 return test_array [0];
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 case $ac_type in #(
2676 uint$2_t) :
2677 eval "$3=yes" ;; #(
2678 *) :
2679 eval "$3=\$ac_type" ;;
2680 esac
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2685 else
2686 break
2688 done
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2710 #include <$2>
2711 _ACEOF
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2713 eval "$3=yes"
2714 else
2715 eval "$3=no"
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2754 #undef $2
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2771 main ()
2773 return $2 ();
2775 return 0;
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779 eval "$3=yes"
2780 else
2781 eval "$3=no"
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2796 # accordingly.
2797 ac_fn_cxx_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2811 main ()
2813 #ifndef $as_decl_name
2814 #ifdef __cplusplus
2815 (void) $as_decl_use;
2816 #else
2817 (void) $as_decl_name;
2818 #endif
2819 #endif
2822 return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2842 ac_fn_c_try_link ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2847 case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850 esac
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2854 ac_status=$?
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2867 }; then :
2868 ac_retval=0
2869 else
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_retval=1
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2898 #include <$2>
2899 _ACEOF
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2901 eval "$3=yes"
2902 else
2903 eval "$3=no"
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2907 eval ac_res=\$$3
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2936 #ifdef __STDC__
2937 # include <limits.h>
2938 #else
2939 # include <assert.h>
2940 #endif
2942 #undef $2
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2947 #ifdef __cplusplus
2948 extern "C"
2949 #endif
2950 char $2 ();
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2955 choke me
2956 #endif
2959 main ()
2961 return $2 ();
2963 return 0;
2965 _ACEOF
2966 if ac_fn_c_try_link "$LINENO"; then :
2967 eval "$3=yes"
2968 else
2969 eval "$3=no"
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2974 eval ac_res=\$$3
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2987 $ $0 $@
2989 _ACEOF
2990 exec 5>>config.log
2992 cat <<_ASUNAME
2993 ## --------- ##
2994 ## Platform. ##
2995 ## --------- ##
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3014 _ASUNAME
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3022 done
3023 IFS=$as_save_IFS
3025 } >&5
3027 cat >&5 <<_ACEOF
3030 ## ----------- ##
3031 ## Core tests. ##
3032 ## ----------- ##
3034 _ACEOF
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3042 ac_configure_args=
3043 ac_configure_args0=
3044 ac_configure_args1=
3045 ac_must_keep_next=false
3046 for ac_pass in 1 2
3048 for ac_arg
3050 case $ac_arg in
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3054 continue ;;
3055 *\'*)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3057 esac
3058 case $ac_pass in
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3064 else
3065 case $ac_arg in
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3072 esac
3074 -* ) ac_must_keep_next=true ;;
3075 esac
3077 as_fn_append ac_configure_args " '$ac_arg'"
3079 esac
3080 done
3081 done
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3093 echo
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3098 echo
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3103 case $ac_val in #(
3104 *${as_nl}*)
3105 case $ac_var in #(
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3108 esac
3109 case $ac_var in #(
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3113 esac ;;
3114 esac
3115 done
3116 (set) 2>&1 |
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3119 sed -n \
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3122 ;; #(
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 esac |
3127 sort
3129 echo
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3134 echo
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3138 case $ac_val in
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3140 esac
3141 $as_echo "$ac_var='\''$ac_val'\''"
3142 done | sort
3143 echo
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3149 echo
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3153 case $ac_val in
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3155 esac
3156 $as_echo "$ac_var='\''$ac_val'\''"
3157 done | sort
3158 echo
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3163 ## confdefs.h. ##
3164 ## ----------- ##"
3165 echo
3166 cat confdefs.h
3167 echo
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3224 esac
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3228 else
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3239 . "$ac_site_file" \
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3245 done
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3253 case $cache_file in
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3256 esac
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3261 >$cache_file
3264 # Check that the precious variables saved in the cache have kept the same
3265 # value.
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3273 set,)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3277 ,set)
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3281 ,);;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3300 fi;;
3301 esac
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3304 case $ac_new_val in
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3307 esac
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3311 esac
3313 done
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER`
3341 # Determine the host, build, and target systems
3342 ac_aux_dir=
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3345 ac_aux_dir=$ac_dir
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3347 break
3348 elif test -f "$ac_dir/install.sh"; then
3349 ac_aux_dir=$ac_dir
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3351 break
3352 elif test -f "$ac_dir/shtool"; then
3353 ac_aux_dir=$ac_dir
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3355 break
3357 done
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3392 *-*-*) ;;
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3394 esac
3395 build=$ac_cv_build
3396 ac_save_IFS=$IFS; IFS='-'
3397 set x $ac_cv_build
3398 shift
3399 build_cpu=$1
3400 build_vendor=$2
3401 shift; shift
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3404 build_os=$*
3405 IFS=$ac_save_IFS
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3416 else
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3424 case $ac_cv_host in
3425 *-*-*) ;;
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3427 esac
3428 host=$ac_cv_host
3429 ac_save_IFS=$IFS; IFS='-'
3430 set x $ac_cv_host
3431 shift
3432 host_cpu=$1
3433 host_vendor=$2
3434 shift; shift
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3437 host_os=$*
3438 IFS=$ac_save_IFS
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3449 else
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3458 *-*-*) ;;
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3460 esac
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3463 set x $ac_cv_target
3464 shift
3465 target_cpu=$1
3466 target_vendor=$2
3467 shift; shift
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3470 target_os=$*
3471 IFS=$ac_save_IFS
3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3479 NONENONEs,x,x, &&
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3486 esac
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3491 esac
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3500 esac
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3507 accel_dir_suffix=
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3516 # finishes. So:
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3526 else
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3534 else
3535 host_subdir=.
3537 # No prefix.
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s,x,x', remove it if useless.
3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3557 # is true:
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3570 esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3574 as_fn_error $? "
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3583 # is true:
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory"
3594 gcc_exec_prefix_setting="ok"
3596 esac
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok"; then
3600 as_fn_error $? "
3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3606 # -----------
3607 # Directories
3608 # -----------
3610 # Specify the local prefix
3611 local_prefix=
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3617 no) ;;
3618 *) local_prefix=$with_local_prefix ;;
3619 esac
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3636 esac
3637 configured_native_system_header_dir="${withval}"
3639 else
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3650 else
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3658 else
3659 test_prefix=$prefix
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3663 else
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3672 /) ;;
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3674 esac
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3678 esac
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3691 esac
3693 else
3695 TARGET_SYSTEM_ROOT=
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3715 no) ;;
3716 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3717 esac
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x${gcc_gxx_include_dir} = x; then
3728 if test x${enable_version_specific_runtime_libs} = xyes; then
3729 gcc_gxx_include_dir='${libsubdir}/include/c++'
3730 else
3731 libstdcxx_incdir='include/c++/$(version)'
3732 if test x$host != x$target; then
3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3753 no) ;;
3754 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3755 esac
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot=0
3764 if test x${gcc_gxx_libcxx_include_dir} != x; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3768 else
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x${gcc_gxx_libcxx_include_dir} = x; then
3774 if test x${enable_version_specific_runtime_libs} = xyes; then
3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3776 else
3777 libcxx_incdir='libc++_include/c++/$(version)/v1'
3778 if test x$host != x$target; then
3779 libcxx_incdir="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x$withval != xno; then
3797 cpp_install_dir=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3806 # just that.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3813 else
3814 generated_files_in_srcdir=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3822 GENINSRC=''
3823 else
3824 GENINSRC='#'
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3832 # With GNU ld
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3837 else
3838 gnu_ld_flag=no
3842 case $target in
3843 *darwin*)
3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3848 ld64_flag=no
3849 dsymutil_flag=no
3851 esac
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3860 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3864 gnu_ld_flag=yes
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3866 ld64_flag=yes
3869 cat >>confdefs.h <<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3871 _ACEOF
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878 if test x"$gnu_ld_flag" = x"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3885 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3895 else
3896 demangler_in_ld=yes
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3908 dsymutil_vers=
3909 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3912 else
3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3914 dsymutil_flag=yes
3918 cat >>confdefs.h <<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3920 _ACEOF
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3929 else
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3938 # With GNU as
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3943 else
3944 gas_flag=no
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3954 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3958 gas_flag=yes
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3963 _ACEOF
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test x"$gas_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3982 # ---------------
3983 # Find C compiler
3984 # ---------------
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4025 IFS=$as_save_IFS
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4041 ac_ct_CC=$CC
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x; then
4079 CC=""
4080 else
4081 case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4086 esac
4087 CC=$ac_ct_CC
4089 else
4090 CC="$ac_cv_prog_CC"
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}cc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 CC=$ac_cv_prog_CC
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 else
4145 ac_prog_rejected=no
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected=yes
4155 continue
4157 ac_cv_prog_CC="cc"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4163 IFS=$as_save_IFS
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy $ac_cv_prog_CC
4168 shift
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4173 shift
4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CC=$ac_cv_prog_CC
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4232 done
4234 if test -z "$CC"; then
4235 ac_ct_CC=$CC
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4276 done
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4301 set X $ac_compile
4302 ac_compiler=$2
4303 for ac_option in --version -v -V -qversion; do
4304 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
4312 ac_status=$?
4313 if test -s conftest.err; then
4314 sed '10a\
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4322 done
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4328 main ()
4332 return 0;
4334 _ACEOF
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4339 # of exeext.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4347 ac_rmfiles=
4348 for ac_file in $ac_files
4350 case $ac_file in
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4353 esac
4354 done
4355 rm -f $ac_rmfiles
4357 if { { ac_try="$ac_link_default"
4358 case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361 esac
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4372 # Autoconf.
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4379 [ab].out )
4380 # We found the default executable, but exeext='' is most
4381 # certainly right.
4382 break;;
4383 *.* )
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4385 then :; else
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4392 # actually working.
4393 break;;
4395 break;;
4396 esac
4397 done
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4400 else
4401 ac_file=''
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424 ac_clean_files=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try="$ac_link"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4435 ac_status=$?
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4441 # `rm'.
4442 for ac_file in conftest.exe conftest conftest.*; do
4443 test -f "$ac_file" || continue
4444 case $ac_file in
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4447 break;;
4448 * ) break;;
4449 esac
4450 done
4451 else
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4463 ac_exeext=$EXEEXT
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #include <stdio.h>
4468 main ()
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4474 return 0;
4476 _ACEOF
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4505 cross_compiling=no
4506 else
4507 if test "$cross_compiling" = maybe; then
4508 cross_compiling=yes
4509 else
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4532 main ()
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try="$ac_compile"
4541 case "(($ac_try" in
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4544 esac
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4548 ac_status=$?
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4556 break;;
4557 esac
4558 done
4559 else
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See \`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4573 ac_objext=$OBJEXT
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4585 #ifndef __GNUC__
4586 choke me
4587 #endif
4590 return 0;
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_compiler_gnu=yes
4595 else
4596 ac_compiler_gnu=no
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4605 GCC=yes
4606 else
4607 GCC=
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4618 ac_cv_prog_cc_g=no
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4628 return 0;
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4633 else
4634 CFLAGS=""
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 main ()
4643 return 0;
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4648 else
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650 CFLAGS="-g"
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 main ()
4659 return 0;
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_g=yes
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4678 CFLAGS="-g -O2"
4679 else
4680 CFLAGS="-g"
4682 else
4683 if test "$GCC" = yes; then
4684 CFLAGS="-O2"
4685 else
4686 CFLAGS=
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_cv_prog_cc_c89=no
4695 ac_save_CC=$CC
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdarg.h>
4699 #include <stdio.h>
4700 struct stat;
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4705 char **p;
4706 int i;
4708 return p[i];
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731 #define FOO(x) 'x'
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738 int argc;
4739 char **argv;
4741 main ()
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4745 return 0;
4747 _ACEOF
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4757 done
4758 rm -f conftest.$ac_ext
4759 CC=$ac_save_CC
4762 # AC_CACHE_VAL
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4774 esac
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4779 ac_ext=c
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 ac_ext=cpp
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 CXX=$ac_cv_prog_CXX
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4835 done
4837 if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4879 done
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CXX=$ac_ct_CXX
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898 set X $ac_compile
4899 ac_compiler=$2
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909 ac_status=$?
4910 if test -s conftest.err; then
4911 sed '10a\
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 done
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4930 main ()
4932 #ifndef __GNUC__
4933 choke me
4934 #endif
4937 return 0;
4939 _ACEOF
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 ac_compiler_gnu=yes
4942 else
4943 ac_compiler_gnu=no
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953 else
4954 GXX=
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 main ()
4975 return 0;
4977 _ACEOF
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4980 else
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4986 main ()
4990 return 0;
4992 _ACEOF
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4995 else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5029 else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 GNATBIND=$ac_ct_GNATBIND
5133 else
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5225 else
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat >conftest.adb <<EOF
5235 pragma Warnings (Off);
5236 with System.CRTL;
5237 pragma Warnings (On);
5238 use type System.CRTL.int64;
5239 procedure conftest is begin null; end conftest;
5241 acx_cv_cc_gcc_supports_ada=no
5242 # There is a bug in old released versions of GCC which causes the
5243 # driver to exit successfully when the appropriate language module
5244 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5245 # Therefore we must check for the error message as well as an
5246 # unsuccessful exit.
5247 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5248 # given a .adb file, but produce no object file. So we must check
5249 # if an object file was really produced to guard against this.
5250 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5251 if test x"$errors" = x && test -f conftest.$ac_objext; then
5252 acx_cv_cc_gcc_supports_ada=yes
5254 rm -f conftest.*
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5257 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5259 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5260 have_gnat=yes
5261 else
5262 have_gnat=no
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_GDC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5289 done
5290 done
5291 IFS=$as_save_IFS
5295 GDC=$ac_cv_prog_GDC
5296 if test -n "$GDC"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5298 $as_echo "$GDC" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_GDC"; then
5307 ac_ct_GDC=$GDC
5308 # Extract the first word of "gdc", so it can be a program name with args.
5309 set dummy gdc; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_GDC"; then
5316 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_GDC="gdc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5329 done
5330 done
5331 IFS=$as_save_IFS
5335 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5336 if test -n "$ac_ct_GDC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5338 $as_echo "$ac_ct_GDC" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_GDC" = x; then
5345 GDC="no"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 GDC=$ac_ct_GDC
5355 else
5356 GDC="$ac_cv_prog_GDC"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5360 $as_echo_n "checking whether the D compiler works... " >&6; }
5361 if ${acx_cv_d_compiler_works+:} false; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 cat >conftest.d <<EOF
5365 module conftest; int main() { return 0; }
5367 acx_cv_d_compiler_works=no
5368 if test "x$GDC" != xno; then
5369 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5370 if test x"$errors" = x && test -f conftest.$ac_objext; then
5371 acx_cv_d_compiler_works=yes
5373 rm -f conftest.*
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5377 $as_echo "$acx_cv_d_compiler_works" >&6; }
5378 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5379 have_gdc=yes
5380 else
5381 have_gdc=no
5385 # Do configure tests with the C++ compiler, since that's what we build with.
5386 ac_ext=cpp
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5393 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5394 # optimizations to be activated explicitly by the toplevel.
5395 case "$CC" in
5396 */prev-gcc/xgcc*) ;;
5397 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5398 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5399 esac
5404 # Determine PICFLAG for target gnatlib.
5409 case "${target}" in
5410 # PIC is the default on some targets or must not be used.
5411 *-*-darwin*)
5412 # For darwin, common symbols are not allowed in MH_DYLIB files
5413 case "${CFLAGS}" in
5414 # If we are using a compiler supporting mdynamic-no-pic
5415 # and the option has been tested as safe to add, then cancel
5416 # it here, since the code generated is incompatible with shared
5417 # libs.
5418 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5419 *) PICFLAG_FOR_TARGET=-fno-common ;;
5420 esac
5422 alpha*-dec-osf5*)
5423 # PIC is the default.
5425 hppa*64*-*-hpux*)
5426 # PIC is the default for 64-bit PA HP-UX.
5428 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5430 i[34567]86-*-mingw* | x86_64-*-mingw*)
5432 i[34567]86-*-interix[3-9]*)
5433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5434 # Instead, we relocate shared libraries at runtime.
5436 i[34567]86-*-nto-qnx*)
5437 # QNX uses GNU C++, but need to define -shared option too, otherwise
5438 # it will coredump.
5439 PICFLAG_FOR_TARGET='-fPIC -shared'
5441 i[34567]86-pc-msdosdjgpp*)
5442 # DJGPP does not support shared libraries at all.
5444 ia64*-*-hpux*)
5445 # On IA64 HP-UX, PIC is the default but the pic flag
5446 # sets the default TLS model and affects inlining.
5447 PICFLAG_FOR_TARGET=-fPIC
5449 loongarch*-*-*)
5450 PICFLAG_FOR_TARGET=-fpic
5452 mips-sgi-irix6*)
5453 # PIC is the default.
5455 rs6000-ibm-aix* | powerpc-ibm-aix*)
5456 # All AIX code is PIC.
5459 # Some targets support both -fPIC and -fpic, but prefer the latter.
5460 # FIXME: Why?
5461 i[34567]86-*-* | x86_64-*-*)
5462 PICFLAG_FOR_TARGET=-fpic
5464 # FIXME: Override -fPIC default in libgcc only?
5465 sh-*-linux* | sh[2346lbe]*-*-linux*)
5466 PICFLAG_FOR_TARGET=-fpic
5468 # FIXME: Simplify to sh*-*-netbsd*?
5469 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5470 sh64-*-netbsd* | sh64l*-*-netbsd*)
5471 PICFLAG_FOR_TARGET=-fpic
5473 # Default to -fPIC unless specified otherwise.
5475 PICFLAG_FOR_TARGET=-fPIC
5477 esac
5479 # If the user explicitly uses -fpic/-fPIC, keep that.
5480 case "${CFLAGS_FOR_TARGET}" in
5481 *-fpic*)
5482 PICFLAG_FOR_TARGET=-fpic
5484 *-fPIC*)
5485 PICFLAG_FOR_TARGET=-fPIC
5487 esac
5491 # -------------------------
5492 # Check C compiler features
5493 # -------------------------
5496 ac_ext=cpp
5497 ac_cpp='$CXXCPP $CPPFLAGS'
5498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5502 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5503 if test -z "$CXXCPP"; then
5504 if ${ac_cv_prog_CXXCPP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 # Double quotes because CXXCPP needs to be expanded
5508 for CXXCPP in "$CXX -E" "/lib/cpp"
5510 ac_preproc_ok=false
5511 for ac_cxx_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #ifdef __STDC__
5522 # include <limits.h>
5523 #else
5524 # include <assert.h>
5525 #endif
5526 Syntax error
5527 _ACEOF
5528 if ac_fn_cxx_try_cpp "$LINENO"; then :
5530 else
5531 # Broken: fails on valid input.
5532 continue
5534 rm -f conftest.err conftest.i conftest.$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5541 _ACEOF
5542 if ac_fn_cxx_try_cpp "$LINENO"; then :
5543 # Broken: success on invalid input.
5544 continue
5545 else
5546 # Passes both tests.
5547 ac_preproc_ok=:
5548 break
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5552 done
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.i conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5556 break
5559 done
5560 ac_cv_prog_CXXCPP=$CXXCPP
5563 CXXCPP=$ac_cv_prog_CXXCPP
5564 else
5565 ac_cv_prog_CXXCPP=$CXXCPP
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5568 $as_echo "$CXXCPP" >&6; }
5569 ac_preproc_ok=false
5570 for ac_cxx_preproc_warn_flag in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #ifdef __STDC__
5581 # include <limits.h>
5582 #else
5583 # include <assert.h>
5584 #endif
5585 Syntax error
5586 _ACEOF
5587 if ac_fn_cxx_try_cpp "$LINENO"; then :
5589 else
5590 # Broken: fails on valid input.
5591 continue
5593 rm -f conftest.err conftest.i conftest.$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if ac_fn_cxx_try_cpp "$LINENO"; then :
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5609 rm -f conftest.err conftest.i conftest.$ac_ext
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.i conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5616 else
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5620 See \`config.log' for more details" "$LINENO" 5; }
5623 ac_ext=cpp
5624 ac_cpp='$CXXCPP $CPPFLAGS'
5625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5631 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632 if ${ac_cv_path_GREP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -z "$GREP"; then
5636 ac_path_GREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in grep ggrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5646 as_fn_executable_p "$ac_path_GREP" || continue
5647 # Check for GNU ac_path_GREP and select it if it is found.
5648 # Check for GNU $ac_path_GREP
5649 case `"$ac_path_GREP" --version 2>&1` in
5650 *GNU*)
5651 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5653 ac_count=0
5654 $as_echo_n 0123456789 >"conftest.in"
5655 while :
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo 'GREP' >> "conftest.nl"
5661 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_GREP="$ac_path_GREP"
5667 ac_path_GREP_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5671 done
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5675 $ac_path_GREP_found && break 3
5676 done
5677 done
5678 done
5679 IFS=$as_save_IFS
5680 if test -z "$ac_cv_path_GREP"; then
5681 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5683 else
5684 ac_cv_path_GREP=$GREP
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5689 $as_echo "$ac_cv_path_GREP" >&6; }
5690 GREP="$ac_cv_path_GREP"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5694 $as_echo_n "checking for egrep... " >&6; }
5695 if ${ac_cv_path_EGREP+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5699 then ac_cv_path_EGREP="$GREP -E"
5700 else
5701 if test -z "$EGREP"; then
5702 ac_path_EGREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_prog in egrep; do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5712 as_fn_executable_p "$ac_path_EGREP" || continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5716 *GNU*)
5717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5719 ac_count=0
5720 $as_echo_n 0123456789 >"conftest.in"
5721 while :
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 $as_echo 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 as_fn_arith $ac_count + 1 && ac_count=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP="$ac_path_EGREP"
5733 ac_path_EGREP_max=$ac_count
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5737 done
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 esac
5741 $ac_path_EGREP_found && break 3
5742 done
5743 done
5744 done
5745 IFS=$as_save_IFS
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5749 else
5750 ac_cv_path_EGREP=$EGREP
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 $as_echo "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5761 $as_echo_n "checking for ANSI C header files... " >&6; }
5762 if ${ac_cv_header_stdc+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5767 #include <stdlib.h>
5768 #include <stdarg.h>
5769 #include <string.h>
5770 #include <float.h>
5773 main ()
5777 return 0;
5779 _ACEOF
5780 if ac_fn_cxx_try_compile "$LINENO"; then :
5781 ac_cv_header_stdc=yes
5782 else
5783 ac_cv_header_stdc=no
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 if test $ac_cv_header_stdc = yes; then
5788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <string.h>
5793 _ACEOF
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "memchr" >/dev/null 2>&1; then :
5797 else
5798 ac_cv_header_stdc=no
5800 rm -f conftest*
5804 if test $ac_cv_header_stdc = yes; then
5805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5808 #include <stdlib.h>
5810 _ACEOF
5811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5812 $EGREP "free" >/dev/null 2>&1; then :
5814 else
5815 ac_cv_header_stdc=no
5817 rm -f conftest*
5821 if test $ac_cv_header_stdc = yes; then
5822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5823 if test "$cross_compiling" = yes; then :
5825 else
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <ctype.h>
5829 #include <stdlib.h>
5830 #if ((' ' & 0x0FF) == 0x020)
5831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5833 #else
5834 # define ISLOWER(c) \
5835 (('a' <= (c) && (c) <= 'i') \
5836 || ('j' <= (c) && (c) <= 'r') \
5837 || ('s' <= (c) && (c) <= 'z'))
5838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5839 #endif
5841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5843 main ()
5845 int i;
5846 for (i = 0; i < 256; i++)
5847 if (XOR (islower (i), ISLOWER (i))
5848 || toupper (i) != TOUPPER (i))
5849 return 2;
5850 return 0;
5852 _ACEOF
5853 if ac_fn_cxx_try_run "$LINENO"; then :
5855 else
5856 ac_cv_header_stdc=no
5858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5859 conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5865 $as_echo "$ac_cv_header_stdc" >&6; }
5866 if test $ac_cv_header_stdc = yes; then
5868 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5873 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5874 inttypes.h stdint.h unistd.h
5875 do :
5876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5877 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5880 cat >>confdefs.h <<_ACEOF
5881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5882 _ACEOF
5886 done
5890 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5892 MINIX=yes
5893 else
5894 MINIX=
5898 if test "$MINIX" = yes; then
5900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5906 $as_echo "#define _MINIX 1" >>confdefs.h
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5913 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5919 # define __EXTENSIONS__ 1
5920 $ac_includes_default
5922 main ()
5926 return 0;
5928 _ACEOF
5929 if ac_fn_cxx_try_compile "$LINENO"; then :
5930 ac_cv_safe_to_define___extensions__=yes
5931 else
5932 ac_cv_safe_to_define___extensions__=no
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5938 test $ac_cv_safe_to_define___extensions__ = yes &&
5939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5957 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5958 # On Suns, sometimes $CPP names a directory.
5959 if test -n "$CPP" && test -d "$CPP"; then
5960 CPP=
5962 if test -z "$CPP"; then
5963 if ${ac_cv_prog_CPP+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 # Double quotes because CPP needs to be expanded
5967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5969 ac_preproc_ok=false
5970 for ac_c_preproc_warn_flag in '' yes
5972 # Use a header file that comes with gcc, so configuring glibc
5973 # with a fresh cross-compiler works.
5974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 # <limits.h> exists even on freestanding compilers.
5976 # On the NeXT, cc -E runs the code through the compiler's parser,
5977 # not just through cpp. "Syntax error" is here to catch this case.
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 #ifdef __STDC__
5981 # include <limits.h>
5982 #else
5983 # include <assert.h>
5984 #endif
5985 Syntax error
5986 _ACEOF
5987 if ac_fn_c_try_cpp "$LINENO"; then :
5989 else
5990 # Broken: fails on valid input.
5991 continue
5993 rm -f conftest.err conftest.i conftest.$ac_ext
5995 # OK, works on sane cases. Now check whether nonexistent headers
5996 # can be detected and how.
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 #include <ac_nonexistent.h>
6000 _ACEOF
6001 if ac_fn_c_try_cpp "$LINENO"; then :
6002 # Broken: success on invalid input.
6003 continue
6004 else
6005 # Passes both tests.
6006 ac_preproc_ok=:
6007 break
6009 rm -f conftest.err conftest.i conftest.$ac_ext
6011 done
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.i conftest.err conftest.$ac_ext
6014 if $ac_preproc_ok; then :
6015 break
6018 done
6019 ac_cv_prog_CPP=$CPP
6022 CPP=$ac_cv_prog_CPP
6023 else
6024 ac_cv_prog_CPP=$CPP
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6027 $as_echo "$CPP" >&6; }
6028 ac_preproc_ok=false
6029 for ac_c_preproc_warn_flag in '' yes
6031 # Use a header file that comes with gcc, so configuring glibc
6032 # with a fresh cross-compiler works.
6033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034 # <limits.h> exists even on freestanding compilers.
6035 # On the NeXT, cc -E runs the code through the compiler's parser,
6036 # not just through cpp. "Syntax error" is here to catch this case.
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #ifdef __STDC__
6040 # include <limits.h>
6041 #else
6042 # include <assert.h>
6043 #endif
6044 Syntax error
6045 _ACEOF
6046 if ac_fn_c_try_cpp "$LINENO"; then :
6048 else
6049 # Broken: fails on valid input.
6050 continue
6052 rm -f conftest.err conftest.i conftest.$ac_ext
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6059 _ACEOF
6060 if ac_fn_c_try_cpp "$LINENO"; then :
6061 # Broken: success on invalid input.
6062 continue
6063 else
6064 # Passes both tests.
6065 ac_preproc_ok=:
6066 break
6068 rm -f conftest.err conftest.i conftest.$ac_ext
6070 done
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.i conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; then :
6075 else
6076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6078 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6079 See \`config.log' for more details" "$LINENO" 5; }
6082 ac_ext=cpp
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6089 $as_echo_n "checking for inline... " >&6; }
6090 if ${ac_cv_c_inline+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 ac_cv_c_inline=no
6094 for ac_kw in inline __inline__ __inline; do
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 #ifndef __cplusplus
6098 typedef int foo_t;
6099 static $ac_kw foo_t static_foo () {return 0; }
6100 $ac_kw foo_t foo () {return 0; }
6101 #endif
6103 _ACEOF
6104 if ac_fn_cxx_try_compile "$LINENO"; then :
6105 ac_cv_c_inline=$ac_kw
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 test "$ac_cv_c_inline" != no && break
6109 done
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6113 $as_echo "$ac_cv_c_inline" >&6; }
6115 case $ac_cv_c_inline in
6116 inline | yes) ;;
6118 case $ac_cv_c_inline in
6119 no) ac_val=;;
6120 *) ac_val=$ac_cv_c_inline;;
6121 esac
6122 cat >>confdefs.h <<_ACEOF
6123 #ifndef __cplusplus
6124 #define inline $ac_val
6125 #endif
6126 _ACEOF
6128 esac
6131 # Check whether --enable-largefile was given.
6132 if test "${enable_largefile+set}" = set; then :
6133 enableval=$enable_largefile;
6136 if test "$enable_largefile" != no; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6139 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6140 if ${ac_cv_sys_largefile_CC+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 ac_cv_sys_largefile_CC=no
6144 if test "$GCC" != yes; then
6145 ac_save_CC=$CC
6146 while :; do
6147 # IRIX 6.2 and later do not support large files by default,
6148 # so use the C compiler's -n32 option if that helps.
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 /* Check that off_t can represent 2**63 - 1 correctly.
6153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6154 since some C++ compilers masquerading as C compilers
6155 incorrectly reject 9223372036854775807. */
6156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6158 && LARGE_OFF_T % 2147483647 == 1)
6159 ? 1 : -1];
6161 main ()
6165 return 0;
6167 _ACEOF
6168 if ac_fn_cxx_try_compile "$LINENO"; then :
6169 break
6171 rm -f core conftest.err conftest.$ac_objext
6172 CC="$CC -n32"
6173 if ac_fn_cxx_try_compile "$LINENO"; then :
6174 ac_cv_sys_largefile_CC=' -n32'; break
6176 rm -f core conftest.err conftest.$ac_objext
6177 break
6178 done
6179 CC=$ac_save_CC
6180 rm -f conftest.$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6184 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6185 if test "$ac_cv_sys_largefile_CC" != no; then
6186 CC=$CC$ac_cv_sys_largefile_CC
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6190 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6191 if ${ac_cv_sys_file_offset_bits+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 while :; do
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 /* Check that off_t can represent 2**63 - 1 correctly.
6199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6200 since some C++ compilers masquerading as C compilers
6201 incorrectly reject 9223372036854775807. */
6202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6204 && LARGE_OFF_T % 2147483647 == 1)
6205 ? 1 : -1];
6207 main ()
6211 return 0;
6213 _ACEOF
6214 if ac_fn_cxx_try_compile "$LINENO"; then :
6215 ac_cv_sys_file_offset_bits=no; break
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #define _FILE_OFFSET_BITS 64
6221 #include <sys/types.h>
6222 /* Check that off_t can represent 2**63 - 1 correctly.
6223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6224 since some C++ compilers masquerading as C compilers
6225 incorrectly reject 9223372036854775807. */
6226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6228 && LARGE_OFF_T % 2147483647 == 1)
6229 ? 1 : -1];
6231 main ()
6235 return 0;
6237 _ACEOF
6238 if ac_fn_cxx_try_compile "$LINENO"; then :
6239 ac_cv_sys_file_offset_bits=64; break
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 ac_cv_sys_file_offset_bits=unknown
6243 break
6244 done
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6247 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6248 case $ac_cv_sys_file_offset_bits in #(
6249 no | unknown) ;;
6251 cat >>confdefs.h <<_ACEOF
6252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6253 _ACEOF
6255 esac
6256 rm -rf conftest*
6257 if test $ac_cv_sys_file_offset_bits = unknown; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6259 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6260 if ${ac_cv_sys_large_files+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 while :; do
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <sys/types.h>
6267 /* Check that off_t can represent 2**63 - 1 correctly.
6268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6269 since some C++ compilers masquerading as C compilers
6270 incorrectly reject 9223372036854775807. */
6271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6273 && LARGE_OFF_T % 2147483647 == 1)
6274 ? 1 : -1];
6276 main ()
6280 return 0;
6282 _ACEOF
6283 if ac_fn_cxx_try_compile "$LINENO"; then :
6284 ac_cv_sys_large_files=no; break
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #define _LARGE_FILES 1
6290 #include <sys/types.h>
6291 /* Check that off_t can represent 2**63 - 1 correctly.
6292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6293 since some C++ compilers masquerading as C compilers
6294 incorrectly reject 9223372036854775807. */
6295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6297 && LARGE_OFF_T % 2147483647 == 1)
6298 ? 1 : -1];
6300 main ()
6304 return 0;
6306 _ACEOF
6307 if ac_fn_cxx_try_compile "$LINENO"; then :
6308 ac_cv_sys_large_files=1; break
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 ac_cv_sys_large_files=unknown
6312 break
6313 done
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6316 $as_echo "$ac_cv_sys_large_files" >&6; }
6317 case $ac_cv_sys_large_files in #(
6318 no | unknown) ;;
6320 cat >>confdefs.h <<_ACEOF
6321 #define _LARGE_FILES $ac_cv_sys_large_files
6322 _ACEOF
6324 esac
6325 rm -rf conftest*
6331 # The cast to long int works around a bug in the HP C Compiler
6332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6334 # This bug is HP SR number 8606223364.
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6336 $as_echo_n "checking size of ino_t... " >&6; }
6337 if ${ac_cv_sizeof_ino_t+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6342 else
6343 if test "$ac_cv_type_ino_t" = yes; then
6344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6346 as_fn_error 77 "cannot compute sizeof (ino_t)
6347 See \`config.log' for more details" "$LINENO" 5; }
6348 else
6349 ac_cv_sizeof_ino_t=0
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6355 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6359 cat >>confdefs.h <<_ACEOF
6360 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6361 _ACEOF
6364 # The cast to long int works around a bug in the HP C Compiler
6365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6367 # This bug is HP SR number 8606223364.
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6369 $as_echo_n "checking size of dev_t... " >&6; }
6370 if ${ac_cv_sizeof_dev_t+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6375 else
6376 if test "$ac_cv_type_dev_t" = yes; then
6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379 as_fn_error 77 "cannot compute sizeof (dev_t)
6380 See \`config.log' for more details" "$LINENO" 5; }
6381 else
6382 ac_cv_sizeof_dev_t=0
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6388 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6394 _ACEOF
6398 # Select the right stat being able to handle 64bit inodes, if needed.
6399 if test "$enable_largefile" != no; then
6400 case "$host, $build" in
6401 *-*-aix*,*|*,*-*-aix*)
6402 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6404 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6406 fi;;
6407 esac
6411 # sizeof(char) is 1 by definition.
6412 # The cast to long int works around a bug in the HP C Compiler
6413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6415 # This bug is HP SR number 8606223364.
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6417 $as_echo_n "checking size of void *... " >&6; }
6418 if ${ac_cv_sizeof_void_p+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6423 else
6424 if test "$ac_cv_type_void_p" = yes; then
6425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6427 as_fn_error 77 "cannot compute sizeof (void *)
6428 See \`config.log' for more details" "$LINENO" 5; }
6429 else
6430 ac_cv_sizeof_void_p=0
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6436 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6440 cat >>confdefs.h <<_ACEOF
6441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6442 _ACEOF
6445 # The cast to long int works around a bug in the HP C Compiler
6446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6448 # This bug is HP SR number 8606223364.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6450 $as_echo_n "checking size of short... " >&6; }
6451 if ${ac_cv_sizeof_short+:} false; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6456 else
6457 if test "$ac_cv_type_short" = yes; then
6458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6460 as_fn_error 77 "cannot compute sizeof (short)
6461 See \`config.log' for more details" "$LINENO" 5; }
6462 else
6463 ac_cv_sizeof_short=0
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6469 $as_echo "$ac_cv_sizeof_short" >&6; }
6473 cat >>confdefs.h <<_ACEOF
6474 #define SIZEOF_SHORT $ac_cv_sizeof_short
6475 _ACEOF
6478 # The cast to long int works around a bug in the HP C Compiler
6479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6481 # This bug is HP SR number 8606223364.
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6483 $as_echo_n "checking size of int... " >&6; }
6484 if ${ac_cv_sizeof_int+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6489 else
6490 if test "$ac_cv_type_int" = yes; then
6491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6493 as_fn_error 77 "cannot compute sizeof (int)
6494 See \`config.log' for more details" "$LINENO" 5; }
6495 else
6496 ac_cv_sizeof_int=0
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6502 $as_echo "$ac_cv_sizeof_int" >&6; }
6506 cat >>confdefs.h <<_ACEOF
6507 #define SIZEOF_INT $ac_cv_sizeof_int
6508 _ACEOF
6511 # The cast to long int works around a bug in the HP C Compiler
6512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6514 # This bug is HP SR number 8606223364.
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6516 $as_echo_n "checking size of long... " >&6; }
6517 if ${ac_cv_sizeof_long+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6522 else
6523 if test "$ac_cv_type_long" = yes; then
6524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6526 as_fn_error 77 "cannot compute sizeof (long)
6527 See \`config.log' for more details" "$LINENO" 5; }
6528 else
6529 ac_cv_sizeof_long=0
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6535 $as_echo "$ac_cv_sizeof_long" >&6; }
6539 cat >>confdefs.h <<_ACEOF
6540 #define SIZEOF_LONG $ac_cv_sizeof_long
6541 _ACEOF
6544 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6545 if test "x$ac_cv_type_long_long" = xyes; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LONG_LONG 1
6549 _ACEOF
6551 # The cast to long int works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6556 $as_echo_n "checking size of long long... " >&6; }
6557 if ${ac_cv_sizeof_long_long+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6562 else
6563 if test "$ac_cv_type_long_long" = yes; then
6564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6566 as_fn_error 77 "cannot compute sizeof (long long)
6567 See \`config.log' for more details" "$LINENO" 5; }
6568 else
6569 ac_cv_sizeof_long_long=0
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6575 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6579 cat >>confdefs.h <<_ACEOF
6580 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6581 _ACEOF
6586 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6587 case $ac_cv_c_int8_t in #(
6588 no|yes) ;; #(
6591 cat >>confdefs.h <<_ACEOF
6592 #define int8_t $ac_cv_c_int8_t
6593 _ACEOF
6595 esac
6597 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6598 case $ac_cv_c_int16_t in #(
6599 no|yes) ;; #(
6602 cat >>confdefs.h <<_ACEOF
6603 #define int16_t $ac_cv_c_int16_t
6604 _ACEOF
6606 esac
6608 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6609 case $ac_cv_c_int32_t in #(
6610 no|yes) ;; #(
6613 cat >>confdefs.h <<_ACEOF
6614 #define int32_t $ac_cv_c_int32_t
6615 _ACEOF
6617 esac
6619 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6620 case $ac_cv_c_int64_t in #(
6621 no|yes) ;; #(
6624 cat >>confdefs.h <<_ACEOF
6625 #define int64_t $ac_cv_c_int64_t
6626 _ACEOF
6628 esac
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6632 $as_echo_n "checking for unsigned long long int... " >&6; }
6633 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 ac_cv_type_unsigned_long_long_int=yes
6637 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* For now, do not test the preprocessor; as of 2007 there are too many
6642 implementations with broken preprocessors. Perhaps this can
6643 be revisited in 2012. In the meantime, code should not expect
6644 #if to work with literals wider than 32 bits. */
6645 /* Test literals. */
6646 long long int ll = 9223372036854775807ll;
6647 long long int nll = -9223372036854775807LL;
6648 unsigned long long int ull = 18446744073709551615ULL;
6649 /* Test constant expressions. */
6650 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6651 ? 1 : -1)];
6652 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6653 ? 1 : -1)];
6654 int i = 63;
6656 main ()
6658 /* Test availability of runtime routines for shift and division. */
6659 long long int llmax = 9223372036854775807ll;
6660 unsigned long long int ullmax = 18446744073709551615ull;
6661 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6662 | (llmax / ll) | (llmax % ll)
6663 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6664 | (ullmax / ull) | (ullmax % ull));
6666 return 0;
6669 _ACEOF
6670 if ac_fn_cxx_try_link "$LINENO"; then :
6672 else
6673 ac_cv_type_unsigned_long_long_int=no
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6680 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6681 if test $ac_cv_type_unsigned_long_long_int = yes; then
6683 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6690 $as_echo_n "checking for long long int... " >&6; }
6691 if ${ac_cv_type_long_long_int+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_cv_type_long_long_int=yes
6695 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6696 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6697 if test $ac_cv_type_long_long_int = yes; then
6698 if test "$cross_compiling" = yes; then :
6700 else
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #include <limits.h>
6704 #ifndef LLONG_MAX
6705 # define HALF \
6706 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6707 # define LLONG_MAX (HALF - 1 + HALF)
6708 #endif
6710 main ()
6712 long long int n = 1;
6713 int i;
6714 for (i = 0; ; i++)
6716 long long int m = n << i;
6717 if (m >> i != n)
6718 return 1;
6719 if (LLONG_MAX / 2 < m)
6720 break;
6722 return 0;
6724 return 0;
6726 _ACEOF
6727 if ac_fn_cxx_try_run "$LINENO"; then :
6729 else
6730 ac_cv_type_long_long_int=no
6732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6733 conftest.$ac_objext conftest.beam conftest.$ac_ext
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6740 $as_echo "$ac_cv_type_long_long_int" >&6; }
6741 if test $ac_cv_type_long_long_int = yes; then
6743 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6749 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6750 if test "x$ac_cv_type_intmax_t" = xyes; then :
6752 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6754 else
6755 test $ac_cv_type_long_long_int = yes \
6756 && ac_type='long long int' \
6757 || ac_type='long int'
6759 cat >>confdefs.h <<_ACEOF
6760 #define intmax_t $ac_type
6761 _ACEOF
6767 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6768 if test "x$ac_cv_type_intptr_t" = xyes; then :
6770 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6772 else
6773 for ac_type in 'int' 'long int' 'long long int'; do
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 $ac_includes_default
6778 main ()
6780 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6781 test_array [0] = 0;
6782 return test_array [0];
6785 return 0;
6787 _ACEOF
6788 if ac_fn_cxx_try_compile "$LINENO"; then :
6790 cat >>confdefs.h <<_ACEOF
6791 #define intptr_t $ac_type
6792 _ACEOF
6794 ac_type=
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 test -z "$ac_type" && break
6798 done
6802 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6803 case $ac_cv_c_uint8_t in #(
6804 no|yes) ;; #(
6807 $as_echo "#define _UINT8_T 1" >>confdefs.h
6810 cat >>confdefs.h <<_ACEOF
6811 #define uint8_t $ac_cv_c_uint8_t
6812 _ACEOF
6814 esac
6816 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6817 case $ac_cv_c_uint16_t in #(
6818 no|yes) ;; #(
6822 cat >>confdefs.h <<_ACEOF
6823 #define uint16_t $ac_cv_c_uint16_t
6824 _ACEOF
6826 esac
6828 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6829 case $ac_cv_c_uint32_t in #(
6830 no|yes) ;; #(
6833 $as_echo "#define _UINT32_T 1" >>confdefs.h
6836 cat >>confdefs.h <<_ACEOF
6837 #define uint32_t $ac_cv_c_uint32_t
6838 _ACEOF
6840 esac
6842 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6843 case $ac_cv_c_uint64_t in #(
6844 no|yes) ;; #(
6847 $as_echo "#define _UINT64_T 1" >>confdefs.h
6850 cat >>confdefs.h <<_ACEOF
6851 #define uint64_t $ac_cv_c_uint64_t
6852 _ACEOF
6854 esac
6858 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6859 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6861 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6863 else
6864 test $ac_cv_type_unsigned_long_long_int = yes \
6865 && ac_type='unsigned long long int' \
6866 || ac_type='unsigned long int'
6868 cat >>confdefs.h <<_ACEOF
6869 #define uintmax_t $ac_type
6870 _ACEOF
6876 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6877 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6879 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6881 else
6882 for ac_type in 'unsigned int' 'unsigned long int' \
6883 'unsigned long long int'; do
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 $ac_includes_default
6888 main ()
6890 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6891 test_array [0] = 0;
6892 return test_array [0];
6895 return 0;
6897 _ACEOF
6898 if ac_fn_cxx_try_compile "$LINENO"; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define uintptr_t $ac_type
6902 _ACEOF
6904 ac_type=
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 test -z "$ac_type" && break
6908 done
6924 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6925 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6928 # check what underlying integer type int64_t uses
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6930 $as_echo_n "checking for int64_t underlying type... " >&6; }
6931 if ${ac_cv_int64_t_type+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6938 #ifdef HAVE_STDINT_H
6939 #include <stdint.h>
6940 #endif
6941 template <typename T> struct X { };
6942 template <>
6943 struct X<long> { typedef long t; };
6946 main ()
6948 X<int64_t>::t x;
6950 return 0;
6952 _ACEOF
6953 if ac_fn_cxx_try_compile "$LINENO"; then :
6954 ac_cv_int64_t_type=long
6955 else
6956 ac_cv_int64_t_type="long long"
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6961 $as_echo "$ac_cv_int64_t_type" >&6; }
6962 if test "$ac_cv_int64_t_type" = "long"; then
6964 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6966 else
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6970 #ifdef HAVE_STDINT_H
6971 #include <stdint.h>
6972 #endif
6973 template <typename T> struct X { };
6974 template <>
6975 struct X<long long> { typedef long long t; };
6978 main ()
6980 X<int64_t>::t x;
6982 return 0;
6984 _ACEOF
6985 if ac_fn_cxx_try_compile "$LINENO"; then :
6987 else
6988 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6994 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6995 if ${ac_cv_std_swap_in_utility+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7002 #include <utility>
7005 main ()
7007 int a, b; std::swap(a,b);
7009 return 0;
7011 _ACEOF
7012 if ac_fn_cxx_try_compile "$LINENO"; then :
7013 ac_cv_std_swap_in_utility=yes
7014 else
7015 ac_cv_std_swap_in_utility=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7020 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7021 if test $ac_cv_std_swap_in_utility = yes; then
7023 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7027 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7028 # If the host compiler is affected by the bug, and we build with optimization
7029 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7030 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7031 # Since there is no reliable feature check for the presence of this bug,
7032 # we simply use a GCC version number check. (This should never trigger for
7033 # stages 2 or 3 of a native bootstrap.)
7034 aliasing_flags=
7035 if test "$GCC" = yes; then
7036 saved_CXXFLAGS="$CXXFLAGS"
7038 # The following test compilation will succeed if and only if $CXX accepts
7039 # -fno-strict-aliasing *and* is older than GCC 4.3.
7040 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7042 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7047 #error compiler not affected by placement new aliasing bug
7048 #endif
7050 _ACEOF
7051 if ac_fn_cxx_try_compile "$LINENO"; then :
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7053 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 CXXFLAGS="$saved_CXXFLAGS"
7066 # ---------------------
7067 # Warnings and checking
7068 # ---------------------
7070 # Check $CC warning features (if it's GCC).
7071 # We want to use -pedantic, but we don't want warnings about
7072 # * 'long long'
7073 # * variadic macros
7074 # * overlong strings
7075 # * C++11 narrowing conversions in { }
7076 # So, we only use -pedantic if we can disable those warnings.
7078 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7079 # Check whether --enable-build-format-warnings was given.
7080 if test "${enable_build_format_warnings+set}" = set; then :
7081 enableval=$enable_build_format_warnings;
7082 else
7083 enable_build_format_warnings=yes
7086 if test $enable_build_format_warnings = no; then :
7087 wf_opt=-Wno-format
7088 else
7089 wf_opt=
7091 ac_ext=cpp
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7097 loose_warn=
7098 save_CXXFLAGS="$CXXFLAGS"
7099 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7100 # Do the check with the no- prefix removed since gcc silently
7101 # accepts any -Wno-* option on purpose
7102 case $real_option in
7103 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7104 *) option=$real_option ;;
7105 esac
7106 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7109 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7110 if eval \${$as_acx_Woption+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 CXXFLAGS="$option"
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7118 main ()
7122 return 0;
7124 _ACEOF
7125 if ac_fn_cxx_try_compile "$LINENO"; then :
7126 eval "$as_acx_Woption=yes"
7127 else
7128 eval "$as_acx_Woption=no"
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 eval ac_res=\$$as_acx_Woption
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7135 $as_echo "$ac_res" >&6; }
7136 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7137 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7139 done
7140 CXXFLAGS="$save_CXXFLAGS"
7141 ac_ext=cpp
7142 ac_cpp='$CXXCPP $CPPFLAGS'
7143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7149 ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155 c_loose_warn=
7156 save_CFLAGS="$CFLAGS"
7157 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7158 # Do the check with the no- prefix removed since gcc silently
7159 # accepts any -Wno-* option on purpose
7160 case $real_option in
7161 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7162 *) option=$real_option ;;
7163 esac
7164 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7167 $as_echo_n "checking whether $CC supports $option... " >&6; }
7168 if eval \${$as_acx_Woption+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 CFLAGS="$option"
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 main ()
7180 return 0;
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"; then :
7184 eval "$as_acx_Woption=yes"
7185 else
7186 eval "$as_acx_Woption=no"
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 eval ac_res=\$$as_acx_Woption
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7193 $as_echo "$ac_res" >&6; }
7194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7195 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7197 done
7198 CFLAGS="$save_CFLAGS"
7199 ac_ext=cpp
7200 ac_cpp='$CXXCPP $CPPFLAGS'
7201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7206 ac_ext=cpp
7207 ac_cpp='$CXXCPP $CPPFLAGS'
7208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7212 strict_warn=
7213 save_CXXFLAGS="$CXXFLAGS"
7214 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7215 # Do the check with the no- prefix removed since gcc silently
7216 # accepts any -Wno-* option on purpose
7217 case $real_option in
7218 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7219 *) option=$real_option ;;
7220 esac
7221 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7224 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7225 if eval \${$as_acx_Woption+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 CXXFLAGS="$option"
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7233 main ()
7237 return 0;
7239 _ACEOF
7240 if ac_fn_cxx_try_compile "$LINENO"; then :
7241 eval "$as_acx_Woption=yes"
7242 else
7243 eval "$as_acx_Woption=no"
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 eval ac_res=\$$as_acx_Woption
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7250 $as_echo "$ac_res" >&6; }
7251 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7252 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7254 done
7255 CXXFLAGS="$save_CXXFLAGS"
7256 ac_ext=cpp
7257 ac_cpp='$CXXCPP $CPPFLAGS'
7258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7263 ac_ext=c
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 c_strict_warn=
7270 save_CFLAGS="$CFLAGS"
7271 for real_option in -Wold-style-definition -Wc++-compat; do
7272 # Do the check with the no- prefix removed since gcc silently
7273 # accepts any -Wno-* option on purpose
7274 case $real_option in
7275 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7276 *) option=$real_option ;;
7277 esac
7278 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7281 $as_echo_n "checking whether $CC supports $option... " >&6; }
7282 if eval \${$as_acx_Woption+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 CFLAGS="$option"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7290 main ()
7294 return 0;
7296 _ACEOF
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 eval "$as_acx_Woption=yes"
7299 else
7300 eval "$as_acx_Woption=no"
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 eval ac_res=\$$as_acx_Woption
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7307 $as_echo "$ac_res" >&6; }
7308 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7309 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7311 done
7312 CFLAGS="$save_CFLAGS"
7313 ac_ext=cpp
7314 ac_cpp='$CXXCPP $CPPFLAGS'
7315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7320 ac_ext=cpp
7321 ac_cpp='$CXXCPP $CPPFLAGS'
7322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7326 # Do the check with the no- prefix removed from the warning options
7327 # since gcc silently accepts any -Wno-* option on purpose
7328 if test "$GXX" = yes; then :
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7330 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7331 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 save_CXXFLAGS="$CXXFLAGS"
7335 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7340 main ()
7344 return 0;
7346 _ACEOF
7347 if ac_fn_cxx_try_compile "$LINENO"; then :
7348 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7349 else
7350 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 CXXFLAGS="$save_CXXFLAGS"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7356 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7357 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7358 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7362 ac_ext=cpp
7363 ac_cpp='$CXXCPP $CPPFLAGS'
7364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7369 ac_ext=cpp
7370 ac_cpp='$CXXCPP $CPPFLAGS'
7371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7375 # Check whether --enable-werror-always was given.
7376 if test "${enable_werror_always+set}" = set; then :
7377 enableval=$enable_werror_always;
7378 else
7379 enable_werror_always=no
7382 if test $enable_werror_always = yes; then :
7383 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7386 ac_ext=cpp
7387 ac_cpp='$CXXCPP $CPPFLAGS'
7388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7394 # The above macros do nothing if the compiler is not GCC. However, the
7395 # Makefile has more goo to add other flags, so these variables are used
7396 # to enable warnings only for GCC.
7397 warn_cflags=
7398 warn_cxxflags=
7399 if test "x$GCC" = "xyes"; then
7400 warn_cflags='$(GCC_WARN_CFLAGS)'
7401 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7406 # Disable exceptions and RTTI if building with g++
7407 ac_ext=c
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413 noexception_flags=
7414 save_CFLAGS="$CFLAGS"
7415 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7416 # Do the check with the no- prefix removed since gcc silently
7417 # accepts any -Wno-* option on purpose
7418 case $real_option in
7419 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7420 *) option=$real_option ;;
7421 esac
7422 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7425 $as_echo_n "checking whether $CC supports $option... " >&6; }
7426 if eval \${$as_acx_Woption+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 CFLAGS="$option"
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7434 main ()
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 eval "$as_acx_Woption=yes"
7443 else
7444 eval "$as_acx_Woption=no"
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 eval ac_res=\$$as_acx_Woption
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7451 $as_echo "$ac_res" >&6; }
7452 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7453 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7455 done
7456 CFLAGS="$save_CFLAGS"
7457 ac_ext=cpp
7458 ac_cpp='$CXXCPP $CPPFLAGS'
7459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7465 # Enable expensive internal checks
7466 is_release=
7467 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7468 is_release=yes
7471 # Check whether --enable-checking was given.
7472 if test "${enable_checking+set}" = set; then :
7473 enableval=$enable_checking; ac_checking_flags="${enableval}"
7474 else
7476 # Determine the default checks.
7477 if test x$is_release = x ; then
7478 ac_checking_flags=yes,extra
7479 else
7480 ac_checking_flags=release
7484 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7485 for check in release $ac_checking_flags
7487 case $check in
7488 # these set all the flags to specific states
7489 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7490 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7491 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7492 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7493 ac_tree_checking=1 ; ac_valgrind_checking= ;
7494 ac_types_checking=1 ;;
7495 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7496 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7497 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7498 ac_rtlflag_checking= ; ac_runtime_checking= ;
7499 ac_tree_checking= ; ac_valgrind_checking= ;
7500 ac_types_checking= ;;
7501 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7502 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7503 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7504 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7505 ac_tree_checking=1 ; ac_valgrind_checking= ;
7506 ac_types_checking=1 ;;
7507 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7508 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7509 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7510 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7511 ac_tree_checking= ; ac_valgrind_checking= ;
7512 ac_types_checking= ;;
7513 # these enable particular checks
7514 assert) ac_assert_checking=1 ;;
7515 df) ac_df_checking=1 ;;
7516 extra) ac_extra_checking=1 ;;
7517 fold) ac_fold_checking=1 ;;
7518 gc) ac_gc_checking=1 ;;
7519 gcac) ac_gc_always_collect=1 ;;
7520 gimple) ac_gimple_checking=1 ;;
7521 misc) ac_checking=1 ;;
7522 rtl) ac_rtl_checking=1 ;;
7523 rtlflag) ac_rtlflag_checking=1 ;;
7524 runtime) ac_runtime_checking=1 ;;
7525 tree) ac_tree_checking=1 ;;
7526 types) ac_types_checking=1 ;;
7527 valgrind) ac_valgrind_checking=1 ;;
7528 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7529 esac
7530 done
7531 IFS="$ac_save_IFS"
7533 nocommon_flag=""
7534 if test x$ac_checking != x ; then
7536 $as_echo "#define CHECKING_P 1" >>confdefs.h
7538 nocommon_flag=-fno-common
7539 else
7540 $as_echo "#define CHECKING_P 0" >>confdefs.h
7544 if test x$ac_extra_checking != x ; then
7546 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7548 else
7549 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7552 if test x$ac_df_checking != x ; then
7554 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7557 if test x$ac_assert_checking != x ; then
7559 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7562 if test x$ac_gimple_checking != x ; then
7564 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7568 if test x$ac_runtime_checking != x ; then
7570 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7573 if test x$ac_tree_checking != x ; then
7575 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7577 TREECHECKING=yes
7579 if test x$ac_types_checking != x ; then
7581 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7585 if test x$ac_rtl_checking != x ; then
7587 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7590 if test x$ac_rtlflag_checking != x ; then
7592 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7595 if test x$ac_gc_checking != x ; then
7597 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7600 if test x$ac_gc_always_collect != x ; then
7602 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7605 if test x$ac_fold_checking != x ; then
7607 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7610 valgrind_path_defines=
7611 valgrind_command=
7613 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7614 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7615 have_valgrind_h=yes
7616 else
7617 have_valgrind_h=no
7622 # It is certainly possible that there's valgrind but no valgrind.h.
7623 # GCC relies on making annotations so we must have both.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7625 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <valgrind/memcheck.h>
7629 #ifndef VALGRIND_DISCARD
7630 #error VALGRIND_DISCARD not defined
7631 #endif
7632 _ACEOF
7633 if ac_fn_cxx_try_cpp "$LINENO"; then :
7634 gcc_cv_header_valgrind_memcheck_h=yes
7635 else
7636 gcc_cv_header_valgrind_memcheck_h=no
7638 rm -f conftest.err conftest.i conftest.$ac_ext
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7640 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7642 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <memcheck.h>
7646 #ifndef VALGRIND_DISCARD
7647 #error VALGRIND_DISCARD not defined
7648 #endif
7649 _ACEOF
7650 if ac_fn_cxx_try_cpp "$LINENO"; then :
7651 gcc_cv_header_memcheck_h=yes
7652 else
7653 gcc_cv_header_memcheck_h=no
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7657 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7658 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7660 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7663 if test $gcc_cv_header_memcheck_h = yes; then
7665 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7669 if test x$ac_valgrind_checking != x ; then
7671 # Prepare PATH_SEPARATOR.
7672 # The user is always right.
7673 if test "${PATH_SEPARATOR+set}" != set; then
7674 echo "#! /bin/sh" >conf$$.sh
7675 echo "exit 0" >>conf$$.sh
7676 chmod +x conf$$.sh
7677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7678 PATH_SEPARATOR=';'
7679 else
7680 PATH_SEPARATOR=:
7682 rm -f conf$$.sh
7685 # Find out how to test for executable files. Don't use a zero-byte file,
7686 # as systems may use methods other than mode bits to determine executability.
7687 cat >conf$$.file <<_ASEOF
7688 #! /bin/sh
7689 exit 0
7690 _ASEOF
7691 chmod +x conf$$.file
7692 if test -x conf$$.file >/dev/null 2>&1; then
7693 ac_executable_p="test -x"
7694 else
7695 ac_executable_p="test -f"
7697 rm -f conf$$.file
7699 # Extract the first word of "valgrind", so it can be a program name with args.
7700 set dummy valgrind; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_path_valgrind_path+:} false; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 case "$valgrind_path" in
7707 [\\/]* | ?:[\\/]*)
7708 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7711 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7712 for ac_dir in $PATH; do
7713 IFS="$ac_save_IFS"
7714 test -z "$ac_dir" && ac_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7717 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7718 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7719 break 2
7722 done
7723 done
7724 IFS="$ac_save_IFS"
7726 esac
7728 valgrind_path="$ac_cv_path_valgrind_path"
7729 if test -n "$valgrind_path"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7731 $as_echo "$valgrind_path" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7737 if test "x$valgrind_path" = "x" \
7738 || (test $have_valgrind_h = no \
7739 && test $gcc_cv_header_memcheck_h = no \
7740 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7741 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7743 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7744 valgrind_command="$valgrind_path -q"
7746 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7752 # Enable code coverage collection
7753 # Check whether --enable-coverage was given.
7754 if test "${enable_coverage+set}" = set; then :
7755 enableval=$enable_coverage; case "${enableval}" in
7756 yes|noopt)
7757 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7759 opt)
7760 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7763 # a.k.a. --disable-coverage
7764 coverage_flags=""
7767 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7769 esac
7770 else
7771 coverage_flags=""
7776 # Check whether --enable-gather-detailed-mem-stats was given.
7777 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7778 enableval=$enable_gather_detailed_mem_stats;
7779 else
7780 enable_gather_detailed_mem_stats=no
7783 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7785 cat >>confdefs.h <<_ACEOF
7786 #define GATHER_STATISTICS $gather_stats
7787 _ACEOF
7790 # Check whether --enable-valgrind-annotations was given.
7791 if test "${enable_valgrind_annotations+set}" = set; then :
7792 enableval=$enable_valgrind_annotations;
7793 else
7794 enable_valgrind_annotations=no
7797 if test x$enable_valgrind_annotations != xno \
7798 || test x$ac_valgrind_checking != x; then
7799 if (test $have_valgrind_h = no \
7800 && test $gcc_cv_header_memcheck_h = no \
7801 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7802 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7805 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7809 # -------------------------------
7810 # Miscenalleous configure options
7811 # -------------------------------
7813 # Determine whether or not multilibs are enabled.
7814 # Check whether --enable-multilib was given.
7815 if test "${enable_multilib+set}" = set; then :
7816 enableval=$enable_multilib;
7817 else
7818 enable_multilib=yes
7823 # Determine whether or not multiarch is enabled.
7824 # Check whether --enable-multiarch was given.
7825 if test "${enable_multiarch+set}" = set; then :
7826 enableval=$enable_multiarch; case "${enableval}" in
7827 yes|no|auto) enable_multiarch=$enableval;;
7828 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7829 esac
7830 else
7831 enable_multiarch=auto
7834 if test x${enable_multiarch} = xauto; then
7835 if test x${with_native_system_header_dir} != x; then
7836 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7837 enable_multiarch=no
7839 if test x$host != x$target && test "x$with_sysroot" = x; then
7840 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7841 enable_multiarch=no
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7845 $as_echo_n "checking for multiarch configuration... " >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7848 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7850 # needed for setting the multiarch name for soft-float/hard-float ABIs
7854 # default stack clash protection guard size as power of twos in bytes.
7855 # Please keep these in sync with params.def.
7856 stk_clash_min=12
7857 stk_clash_max=30
7859 # Keep the default value when the option is not used to 0, this allows us to
7860 # distinguish between the cases where the user specifially set a value via
7861 # configure and when the normal default value is used.
7863 # Check whether --with-stack-clash-protection-guard-size was given.
7864 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7865 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7866 else
7867 DEFAULT_STK_CLASH_GUARD_SIZE=0
7870 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7871 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7872 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7873 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
7877 cat >>confdefs.h <<_ACEOF
7878 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7879 _ACEOF
7882 # Enable __cxa_atexit for C++.
7883 # Check whether --enable-__cxa_atexit was given.
7884 if test "${enable___cxa_atexit+set}" = set; then :
7885 enableval=$enable___cxa_atexit;
7889 # Enable C extension for decimal float if target supports it.
7891 # Check whether --enable-decimal-float was given.
7892 if test "${enable_decimal_float+set}" = set; then :
7893 enableval=$enable_decimal_float;
7894 case $enable_decimal_float in
7895 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7896 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7897 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7898 esac
7900 else
7902 case $target in
7903 aarch64* | \
7904 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7905 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7906 i?86*-*-mingw* | x86_64*-*-mingw* | \
7907 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7908 enable_decimal_float=yes
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7912 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7913 enable_decimal_float=no
7915 esac
7920 # x86's use BID format instead of DPD
7921 case x$enable_decimal_float in
7922 xyes)
7923 case $target in
7924 aarch64* | i?86*-*-* | x86_64*-*-*)
7925 enable_decimal_float=bid
7928 enable_decimal_float=dpd
7930 esac
7931 default_decimal_float=$enable_decimal_float
7933 xno)
7934 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7935 # dependency on libdecnumber.
7936 default_decimal_float=dpd
7938 esac
7943 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7945 cat >>confdefs.h <<_ACEOF
7946 #define ENABLE_DECIMAL_FLOAT $dfp
7947 _ACEOF
7950 # Use default_decimal_float for dependency.
7951 enable_decimal_float=$default_decimal_float
7953 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h <<_ACEOF
7956 #define ENABLE_DECIMAL_BID_FORMAT $bid
7957 _ACEOF
7960 # Enable C extension for fixed-point arithmetic.
7961 # Check whether --enable-fixed-point was given.
7962 if test "${enable_fixed_point+set}" = set; then :
7963 enableval=$enable_fixed_point;
7964 else
7966 case $target in
7967 arm*)
7968 enable_fixed_point=yes
7971 mips*-*-*)
7972 enable_fixed_point=yes
7974 loongarch*-*-*)
7975 enable_fixed_point=yes
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7979 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7980 enable_fixed_point=no
7982 esac
7988 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7990 cat >>confdefs.h <<_ACEOF
7991 #define ENABLE_FIXED_POINT $fixedpoint
7992 _ACEOF
7995 # Enable threads
7996 # Pass with no value to take the default
7997 # Pass with a value to specify a thread package
7998 # Check whether --enable-threads was given.
7999 if test "${enable_threads+set}" = set; then :
8000 enableval=$enable_threads;
8001 else
8002 enable_threads=''
8006 # Check whether --enable-tls was given.
8007 if test "${enable_tls+set}" = set; then :
8008 enableval=$enable_tls;
8009 case $enable_tls in
8010 yes | no) ;;
8011 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8012 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8013 esac
8015 else
8016 enable_tls=''
8020 # Check whether --enable-vtable-verify was given.
8021 if test "${enable_vtable_verify+set}" = set; then :
8022 enableval=$enable_vtable_verify;
8023 else
8024 enable_vtable_verify=no
8027 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8029 cat >>confdefs.h <<_ACEOF
8030 #define ENABLE_VTABLE_VERIFY $vtable_verify
8031 _ACEOF
8034 # Check whether --enable-analyzer was given.
8035 if test "${enable_analyzer+set}" = set; then :
8036 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8037 analyzer=0
8038 else
8039 analyzer=1
8041 else
8042 analyzer=1
8046 cat >>confdefs.h <<_ACEOF
8047 #define ENABLE_ANALYZER $analyzer
8048 _ACEOF
8051 # Check whether --enable-objc-gc was given.
8052 if test "${enable_objc_gc+set}" = set; then :
8053 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8054 objc_boehm_gc=''
8055 else
8056 objc_boehm_gc=1
8058 else
8059 objc_boehm_gc=''
8064 # Check whether --with-dwarf2 was given.
8065 if test "${with_dwarf2+set}" = set; then :
8066 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8067 else
8068 dwarf2=no
8072 # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074 enableval=$enable_shared;
8075 case $enable_shared in
8076 yes | no) ;;
8078 enable_shared=no
8079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8080 for pkg in $enableval; do
8081 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8082 enable_shared=yes
8084 done
8085 IFS="$ac_save_ifs"
8087 esac
8089 else
8090 enable_shared=yes
8095 # Check whether --enable-gcov was given.
8096 if test "${enable_gcov+set}" = set; then :
8097 enableval=$enable_gcov;
8098 else
8099 case $target in
8100 bpf-*-*)
8101 enable_gcov=no
8104 enable_gcov=yes
8106 esac
8113 # Check whether --with-specs was given.
8114 if test "${with_specs+set}" = set; then :
8115 withval=$with_specs; CONFIGURE_SPECS=$withval
8116 else
8117 CONFIGURE_SPECS=
8125 # Check whether --with-pkgversion was given.
8126 if test "${with_pkgversion+set}" = set; then :
8127 withval=$with_pkgversion; case "$withval" in
8128 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8129 no) PKGVERSION= ;;
8130 *) PKGVERSION="($withval) " ;;
8131 esac
8132 else
8133 PKGVERSION="(GCC) "
8141 # Check whether --with-bugurl was given.
8142 if test "${with_bugurl+set}" = set; then :
8143 withval=$with_bugurl; case "$withval" in
8144 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8145 no) BUGURL=
8147 *) BUGURL="$withval"
8149 esac
8150 else
8151 BUGURL="https://gcc.gnu.org/bugs/"
8155 case ${BUGURL} in
8157 REPORT_BUGS_TO=
8158 REPORT_BUGS_TEXI=
8161 REPORT_BUGS_TO="<$BUGURL>"
8162 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8164 esac;
8169 # Allow overriding the default URL for documentation
8171 # Check whether --with-documentation-root-url was given.
8172 if test "${with_documentation_root_url+set}" = set; then :
8173 withval=$with_documentation_root_url; case "$withval" in
8174 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8175 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8176 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8177 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8178 esac
8179 else
8180 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8185 cat >>confdefs.h <<_ACEOF
8186 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8187 _ACEOF
8190 # Allow overriding the default URL for GCC changes
8192 # Check whether --with-changes-root-url was given.
8193 if test "${with_changes_root_url+set}" = set; then :
8194 withval=$with_changes_root_url; case "$withval" in
8195 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8196 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8197 */) CHANGES_ROOT_URL="$withval" ;;
8198 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8199 esac
8200 else
8201 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8206 cat >>confdefs.h <<_ACEOF
8207 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8208 _ACEOF
8211 # Sanity check enable_languages in case someone does not run the toplevel
8212 # configure # script.
8213 # Check whether --enable-languages was given.
8214 if test "${enable_languages+set}" = set; then :
8215 enableval=$enable_languages; case ,${enable_languages}, in
8216 ,,|,yes,)
8217 # go safe -- we cannot be much sure without the toplevel
8218 # configure's
8219 # analysis of which target libs are present and usable
8220 enable_languages=c
8222 *,all,*)
8223 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8225 *,c,*)
8228 enable_languages=c,${enable_languages}
8230 esac
8231 else
8232 enable_languages=c
8236 # If top-level libada has been disabled, then wire in install-gnatlib
8237 # invocation with `make install', so that one can build and install
8238 # the library manually with `make -C gcc all gnatlib gnattools install'.
8239 if test x"$enable_libada" = xno; then
8240 gnat_install_lib=gnat-install-lib
8241 else
8242 gnat_install_lib=
8246 if test x"$enable_as_accelerator_for" != x; then
8248 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8250 enable_as_accelerator=yes
8251 case "${target}" in
8252 *-intelmicemul-*)
8253 # In this case we expect offload compiler to be built as native, so we
8254 # need to rename the driver to avoid clashes with host's drivers.
8255 program_transform_name="s&^&${target}-&" ;;
8256 esac
8257 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8258 program_transform_name=`echo $program_transform_name | sed $sedscript`
8259 accel_dir_suffix=/accel/${target_noncanonical}
8260 real_target_noncanonical=${enable_as_accelerator_for}
8266 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8267 tgt=`echo $tgt | sed 's/=.*//'`
8269 enable_offloading=1
8270 case "$tgt" in
8271 *-intelmic-* | *-intelmicemul-*)
8272 omp_device_property=omp-device-properties-i386
8273 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8275 amdgcn*)
8276 omp_device_property=omp-device-properties-gcn
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8279 nvptx*)
8280 omp_device_property=omp-device-properties-nvptx
8281 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8286 esac
8287 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8290 if test x"$offload_targets" = x; then
8291 offload_targets=$tgt
8292 else
8293 offload_targets="$offload_targets,$tgt"
8295 done
8300 cat >>confdefs.h <<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8302 _ACEOF
8304 if test x"$enable_offloading" != x; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8308 else
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval=$with_multilib_list; :
8324 else
8325 with_multilib_list=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval=$with_multilib_generator; :
8333 else
8334 with_multilib_generator=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8344 set x ${MAKE-make}
8345 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 cat >conftest.make <<\_ACEOF
8350 SHELL = /bin/sh
8351 all:
8352 @echo '@@@%%%=$(MAKE)=@@@%%%'
8353 _ACEOF
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8356 *@@@%%%=?*=@@@%%%*)
8357 eval ac_cv_prog_make_${ac_make}_set=yes;;
8359 eval ac_cv_prog_make_${ac_make}_set=no;;
8360 esac
8361 rm -f conftest.make
8363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8366 SET_MAKE=
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog in gawk mawk nawk awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8404 AWK=$ac_cv_prog_AWK
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8415 done
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8419 case ${AWK} in
8420 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8421 esac
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8431 then
8432 gcc_cv_prog_LN_S="ln -s"
8433 else
8434 if ln conftestdata_f conftestdata_t 2>/dev/null
8435 then
8436 gcc_cv_prog_LN_S=ln
8437 else
8438 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8439 then
8440 gcc_cv_prog_LN_S="cp -p"
8441 else
8442 gcc_cv_prog_LN_S=cp
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453 else
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t 2>/dev/null
8471 then
8472 acx_cv_prog_LN=ln
8473 else
8474 acx_cv_prog_LN=no
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no; then
8480 LN="$LN_S"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8483 else
8484 LN="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 RANLIB=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8539 else
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_ac_ct_RANLIB="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x; then
8567 RANLIB=":"
8568 else
8569 case $cross_compiling:$ac_tool_warned in
8570 yes:)
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8574 esac
8575 RANLIB=$ac_ct_RANLIB
8577 else
8578 RANLIB="$ac_cv_prog_RANLIB"
8581 ranlib_flags=""
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8590 # AIX /bin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8601 for ac_dir in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8603 case "$ac_dir/" in
8604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog in ginstall scoinst install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8614 else
8615 ac_cv_path_install="$ac_dir/$ac_prog -c"
8616 break 2
8619 done
8621 esac
8622 done
8623 IFS="$ac_save_IFS"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL="$ac_cv_path_install"
8628 else
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 echo abfoo >t1
8653 echo cdfoo >t2
8654 gcc_cv_prog_cmp_skip=slowcompare
8655 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8656 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8658 else
8659 gcc_cv_prog_cmp_skip=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8663 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8664 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8666 else
8667 gcc_cv_prog_cmp_skip=fastcompare
8671 rm t1 t2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8690 else
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8700 break 2
8702 done
8703 done
8704 IFS=$as_save_IFS
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8709 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8750 MAKEINFO=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern=no;;
8772 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8773 *) gcc_cv_prog_makeinfo_modern=no;;
8774 esac
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8779 else
8780 gcc_cv_prog_makeinfo_modern=no
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8793 BUILD_INFO=
8794 else
8795 BUILD_INFO=info
8799 # Is pod2man recent enough to regenerate manpages?
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8801 $as_echo_n "checking for recent Pod::Man... " >&6; }
8802 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8805 GENERATED_MANPAGES=generated-manpages
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8809 GENERATED_MANPAGES=
8813 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8815 # How about lex?
8816 for ac_prog in flex
8818 # Extract the first word of "$ac_prog", so it can be a program name with args.
8819 set dummy $ac_prog; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_FLEX+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$FLEX"; then
8826 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_FLEX="$ac_prog"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8845 FLEX=$ac_cv_prog_FLEX
8846 if test -n "$FLEX"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8848 $as_echo "$FLEX" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8855 test -n "$FLEX" && break
8856 done
8857 test -n "$FLEX" || FLEX="$MISSING flex"
8860 # Bison?
8861 for ac_prog in bison
8863 # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy $ac_prog; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_BISON+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 if test -n "$BISON"; then
8871 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8872 else
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_BISON="$ac_prog"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8884 done
8885 done
8886 IFS=$as_save_IFS
8890 BISON=$ac_cv_prog_BISON
8891 if test -n "$BISON"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8893 $as_echo "$BISON" >&6; }
8894 else
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8900 test -n "$BISON" && break
8901 done
8902 test -n "$BISON" || BISON="$MISSING bison"
8905 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8906 # check for build == host before using them.
8908 # NM
8909 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8910 && test -d ../binutils ; then
8911 NM='${objdir}/../binutils/nm-new'
8912 else
8913 # Extract the first word of "nm", so it can be a program name with args.
8914 set dummy nm; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_prog_NM+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test -n "$NM"; then
8921 ac_cv_prog_NM="$NM" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8930 ac_cv_prog_NM="nm"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8938 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8941 NM=$ac_cv_prog_NM
8942 if test -n "$NM"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8944 $as_echo "$NM" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8953 # AR
8954 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8955 && test -d ../binutils ; then
8956 AR='${objdir}/../binutils/ar'
8957 else
8958 # Extract the first word of "ar", so it can be a program name with args.
8959 set dummy ar; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_AR+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$AR"; then
8966 ac_cv_prog_AR="$AR" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975 ac_cv_prog_AR="ar"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8983 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8986 AR=$ac_cv_prog_AR
8987 if test -n "$AR"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8989 $as_echo "$AR" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8998 # The jit documentation looks better if built with sphinx, but can be
8999 # built with texinfo if sphinx is not available.
9000 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9001 # Extract the first word of "sphinx-build", so it can be a program name with args.
9002 set dummy sphinx-build; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_prog_doc_build_sys+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 if test -n "$doc_build_sys"; then
9009 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_doc_build_sys="sphinx"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9022 done
9023 done
9024 IFS=$as_save_IFS
9026 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9029 doc_build_sys=$ac_cv_prog_doc_build_sys
9030 if test -n "$doc_build_sys"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9032 $as_echo "$doc_build_sys" >&6; }
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 # --------------------
9041 # Checks for C headers
9042 # --------------------
9044 # Need to reject headers which give warnings, so that the -Werror bootstrap
9045 # works later. *sigh* This needs to come before all header checks.
9047 ac_c_preproc_warn_flag=yes
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9050 $as_echo_n "checking for ANSI C header files... " >&6; }
9051 if ${ac_cv_header_stdc+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <stdlib.h>
9057 #include <stdarg.h>
9058 #include <string.h>
9059 #include <float.h>
9062 main ()
9066 return 0;
9068 _ACEOF
9069 if ac_fn_cxx_try_compile "$LINENO"; then :
9070 ac_cv_header_stdc=yes
9071 else
9072 ac_cv_header_stdc=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 if test $ac_cv_header_stdc = yes; then
9077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 #include <string.h>
9082 _ACEOF
9083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9084 $EGREP "memchr" >/dev/null 2>&1; then :
9086 else
9087 ac_cv_header_stdc=no
9089 rm -f conftest*
9093 if test $ac_cv_header_stdc = yes; then
9094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <stdlib.h>
9099 _ACEOF
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "free" >/dev/null 2>&1; then :
9103 else
9104 ac_cv_header_stdc=no
9106 rm -f conftest*
9110 if test $ac_cv_header_stdc = yes; then
9111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9112 if test "$cross_compiling" = yes; then :
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <ctype.h>
9118 #include <stdlib.h>
9119 #if ((' ' & 0x0FF) == 0x020)
9120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9122 #else
9123 # define ISLOWER(c) \
9124 (('a' <= (c) && (c) <= 'i') \
9125 || ('j' <= (c) && (c) <= 'r') \
9126 || ('s' <= (c) && (c) <= 'z'))
9127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9128 #endif
9130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9132 main ()
9134 int i;
9135 for (i = 0; i < 256; i++)
9136 if (XOR (islower (i), ISLOWER (i))
9137 || toupper (i) != TOUPPER (i))
9138 return 2;
9139 return 0;
9141 _ACEOF
9142 if ac_fn_cxx_try_run "$LINENO"; then :
9144 else
9145 ac_cv_header_stdc=no
9147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9148 conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9154 $as_echo "$ac_cv_header_stdc" >&6; }
9155 if test $ac_cv_header_stdc = yes; then
9157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9162 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9163 if ${ac_cv_header_time+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/time.h>
9170 #include <time.h>
9173 main ()
9175 if ((struct tm *) 0)
9176 return 0;
9178 return 0;
9180 _ACEOF
9181 if ac_fn_cxx_try_compile "$LINENO"; then :
9182 ac_cv_header_time=yes
9183 else
9184 ac_cv_header_time=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9189 $as_echo "$ac_cv_header_time" >&6; }
9190 if test $ac_cv_header_time = yes; then
9192 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9197 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9198 if ${gcc_cv_header_string+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <string.h>
9204 #include <strings.h>
9206 main ()
9210 return 0;
9212 _ACEOF
9213 if ac_fn_cxx_try_compile "$LINENO"; then :
9214 gcc_cv_header_string=yes
9215 else
9216 gcc_cv_header_string=no
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9221 $as_echo "$gcc_cv_header_string" >&6; }
9222 if test $gcc_cv_header_string = yes; then
9224 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9229 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9230 if ${ac_cv_header_sys_wait_h+:} false; then :
9231 $as_echo_n "(cached) " >&6
9232 else
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/wait.h>
9237 #ifndef WEXITSTATUS
9238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9239 #endif
9240 #ifndef WIFEXITED
9241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9242 #endif
9245 main ()
9247 int s;
9248 wait (&s);
9249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9251 return 0;
9253 _ACEOF
9254 if ac_fn_cxx_try_compile "$LINENO"; then :
9255 ac_cv_header_sys_wait_h=yes
9256 else
9257 ac_cv_header_sys_wait_h=no
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9262 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9263 if test $ac_cv_header_sys_wait_h = yes; then
9265 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9270 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9271 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <termios.h>
9278 #ifdef TIOCGWINSZ
9280 #endif
9282 _ACEOF
9283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9284 $EGREP "yes" >/dev/null 2>&1; then :
9285 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9286 else
9287 ac_cv_sys_tiocgwinsz_in_termios_h=no
9289 rm -f conftest*
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9293 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9295 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9297 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9298 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <sys/types.h>
9304 #include <sys/ioctl.h>
9305 #ifdef TIOCGWINSZ
9307 #endif
9309 _ACEOF
9310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9311 $EGREP "yes" >/dev/null 2>&1; then :
9312 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9313 else
9314 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9316 rm -f conftest*
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9320 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9322 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9324 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9329 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9330 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9331 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9332 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9333 do :
9334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9335 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 _ACEOF
9342 done
9345 # Check for thread headers.
9346 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9347 if test "x$ac_cv_header_thread_h" = xyes; then :
9348 have_thread_h=yes
9349 else
9350 have_thread_h=
9353 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9354 if test "x$ac_cv_header_pthread_h" = xyes; then :
9355 have_pthread_h=yes
9356 else
9357 have_pthread_h=
9361 # These tests can't be done till we know if we have limits.h.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9363 $as_echo_n "checking for CHAR_BIT... " >&6; }
9364 if ${gcc_cv_decl_char_bit+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #ifdef HAVE_LIMITS_H
9370 #include <limits.h>
9371 #endif
9372 #ifdef CHAR_BIT
9373 found
9374 #endif
9375 _ACEOF
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377 $EGREP "found" >/dev/null 2>&1; then :
9378 gcc_cv_decl_char_bit=yes
9379 else
9380 gcc_cv_decl_char_bit=no
9382 rm -f conftest*
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9387 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9388 if test $gcc_cv_decl_char_bit = no; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9390 $as_echo_n "checking number of bits in a byte... " >&6; }
9391 if ${gcc_cv_c_nbby+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9395 gcc_cv_c_nbby=
9396 while test $i -lt 65; do
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9401 main ()
9403 switch(0) {
9404 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9405 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9408 return 0;
9410 _ACEOF
9411 if ac_fn_cxx_try_compile "$LINENO"; then :
9412 gcc_cv_c_nbby=$i; break
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 i=`expr $i + 1`
9416 done
9417 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9421 $as_echo "$gcc_cv_c_nbby" >&6; }
9422 if test $gcc_cv_c_nbby = failed; then
9423 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9424 else
9426 cat >>confdefs.h <<_ACEOF
9427 #define CHAR_BIT $gcc_cv_c_nbby
9428 _ACEOF
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9434 if ${ac_cv_c_bigendian+:} false; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 ac_cv_c_bigendian=unknown
9438 # See if we're dealing with a universal compiler.
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 #ifndef __APPLE_CC__
9442 not a universal capable compiler
9443 #endif
9444 typedef int dummy;
9446 _ACEOF
9447 if ac_fn_cxx_try_compile "$LINENO"; then :
9449 # Check for potential -arch flags. It is not universal unless
9450 # there are at least two -arch flags with different values.
9451 ac_arch=
9452 ac_prev=
9453 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9454 if test -n "$ac_prev"; then
9455 case $ac_word in
9456 i?86 | x86_64 | ppc | ppc64)
9457 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9458 ac_arch=$ac_word
9459 else
9460 ac_cv_c_bigendian=universal
9461 break
9464 esac
9465 ac_prev=
9466 elif test "x$ac_word" = "x-arch"; then
9467 ac_prev=arch
9469 done
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 if test $ac_cv_c_bigendian = unknown; then
9473 # See if sys/param.h defines the BYTE_ORDER macro.
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <sys/types.h>
9477 #include <sys/param.h>
9480 main ()
9482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9484 && LITTLE_ENDIAN)
9485 bogus endian macros
9486 #endif
9489 return 0;
9491 _ACEOF
9492 if ac_fn_cxx_try_compile "$LINENO"; then :
9493 # It does; now see whether it defined to BIG_ENDIAN or not.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 #include <sys/types.h>
9497 #include <sys/param.h>
9500 main ()
9502 #if BYTE_ORDER != BIG_ENDIAN
9503 not big endian
9504 #endif
9507 return 0;
9509 _ACEOF
9510 if ac_fn_cxx_try_compile "$LINENO"; then :
9511 ac_cv_c_bigendian=yes
9512 else
9513 ac_cv_c_bigendian=no
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 if test $ac_cv_c_bigendian = unknown; then
9520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #include <limits.h>
9526 main ()
9528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9529 bogus endian macros
9530 #endif
9533 return 0;
9535 _ACEOF
9536 if ac_fn_cxx_try_compile "$LINENO"; then :
9537 # It does; now see whether it defined to _BIG_ENDIAN or not.
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 #include <limits.h>
9543 main ()
9545 #ifndef _BIG_ENDIAN
9546 not big endian
9547 #endif
9550 return 0;
9552 _ACEOF
9553 if ac_fn_cxx_try_compile "$LINENO"; then :
9554 ac_cv_c_bigendian=yes
9555 else
9556 ac_cv_c_bigendian=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 if test $ac_cv_c_bigendian = unknown; then
9563 # Compile a test program.
9564 if test "$cross_compiling" = yes; then :
9565 # Try to guess by grepping values from an object file.
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 short int ascii_mm[] =
9569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9570 short int ascii_ii[] =
9571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9572 int use_ascii (int i) {
9573 return ascii_mm[i] + ascii_ii[i];
9575 short int ebcdic_ii[] =
9576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9577 short int ebcdic_mm[] =
9578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9579 int use_ebcdic (int i) {
9580 return ebcdic_mm[i] + ebcdic_ii[i];
9582 extern int foo;
9585 main ()
9587 return use_ascii (foo) == use_ebcdic (foo);
9589 return 0;
9591 _ACEOF
9592 if ac_fn_cxx_try_compile "$LINENO"; then :
9593 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9594 ac_cv_c_bigendian=yes
9596 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9597 if test "$ac_cv_c_bigendian" = unknown; then
9598 ac_cv_c_bigendian=no
9599 else
9600 # finding both strings is unlikely to happen, but who knows?
9601 ac_cv_c_bigendian=unknown
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 $ac_includes_default
9611 main ()
9614 /* Are we little or big endian? From Harbison&Steele. */
9615 union
9617 long int l;
9618 char c[sizeof (long int)];
9619 } u;
9620 u.l = 1;
9621 return u.c[sizeof (long int) - 1] == 1;
9624 return 0;
9626 _ACEOF
9627 if ac_fn_cxx_try_run "$LINENO"; then :
9628 ac_cv_c_bigendian=no
9629 else
9630 ac_cv_c_bigendian=yes
9632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9633 conftest.$ac_objext conftest.beam conftest.$ac_ext
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9639 $as_echo "$ac_cv_c_bigendian" >&6; }
9640 case $ac_cv_c_bigendian in #(
9641 yes)
9642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9643 ;; #(
9645 ;; #(
9646 universal)
9648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9650 ;; #(
9652 as_fn_error $? "unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9654 esac
9657 # ----------------------
9658 # Checks for C++ headers
9659 # ----------------------
9661 ac_ext=cpp
9662 ac_cpp='$CXXCPP $CPPFLAGS'
9663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9668 if test -z "$CXXCPP"; then
9669 if ${ac_cv_prog_CXXCPP+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 # Double quotes because CXXCPP needs to be expanded
9673 for CXXCPP in "$CXX -E" "/lib/cpp"
9675 ac_preproc_ok=false
9676 for ac_cxx_preproc_warn_flag in '' yes
9678 # Use a header file that comes with gcc, so configuring glibc
9679 # with a fresh cross-compiler works.
9680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 # <limits.h> exists even on freestanding compilers.
9682 # On the NeXT, cc -E runs the code through the compiler's parser,
9683 # not just through cpp. "Syntax error" is here to catch this case.
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686 #ifdef __STDC__
9687 # include <limits.h>
9688 #else
9689 # include <assert.h>
9690 #endif
9691 Syntax error
9692 _ACEOF
9693 if ac_fn_cxx_try_cpp "$LINENO"; then :
9695 else
9696 # Broken: fails on valid input.
9697 continue
9699 rm -f conftest.err conftest.i conftest.$ac_ext
9701 # OK, works on sane cases. Now check whether nonexistent headers
9702 # can be detected and how.
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <ac_nonexistent.h>
9706 _ACEOF
9707 if ac_fn_cxx_try_cpp "$LINENO"; then :
9708 # Broken: success on invalid input.
9709 continue
9710 else
9711 # Passes both tests.
9712 ac_preproc_ok=:
9713 break
9715 rm -f conftest.err conftest.i conftest.$ac_ext
9717 done
9718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9719 rm -f conftest.i conftest.err conftest.$ac_ext
9720 if $ac_preproc_ok; then :
9721 break
9724 done
9725 ac_cv_prog_CXXCPP=$CXXCPP
9728 CXXCPP=$ac_cv_prog_CXXCPP
9729 else
9730 ac_cv_prog_CXXCPP=$CXXCPP
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9733 $as_echo "$CXXCPP" >&6; }
9734 ac_preproc_ok=false
9735 for ac_cxx_preproc_warn_flag in '' yes
9737 # Use a header file that comes with gcc, so configuring glibc
9738 # with a fresh cross-compiler works.
9739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 # <limits.h> exists even on freestanding compilers.
9741 # On the NeXT, cc -E runs the code through the compiler's parser,
9742 # not just through cpp. "Syntax error" is here to catch this case.
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745 #ifdef __STDC__
9746 # include <limits.h>
9747 #else
9748 # include <assert.h>
9749 #endif
9750 Syntax error
9751 _ACEOF
9752 if ac_fn_cxx_try_cpp "$LINENO"; then :
9754 else
9755 # Broken: fails on valid input.
9756 continue
9758 rm -f conftest.err conftest.i conftest.$ac_ext
9760 # OK, works on sane cases. Now check whether nonexistent headers
9761 # can be detected and how.
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <ac_nonexistent.h>
9765 _ACEOF
9766 if ac_fn_cxx_try_cpp "$LINENO"; then :
9767 # Broken: success on invalid input.
9768 continue
9769 else
9770 # Passes both tests.
9771 ac_preproc_ok=:
9772 break
9774 rm -f conftest.err conftest.i conftest.$ac_ext
9776 done
9777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9778 rm -f conftest.i conftest.err conftest.$ac_ext
9779 if $ac_preproc_ok; then :
9781 else
9782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9785 See \`config.log' for more details" >&5
9786 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9787 See \`config.log' for more details" >&2;}; }
9790 ac_ext=cpp
9791 ac_cpp='$CXXCPP $CPPFLAGS'
9792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9797 for ac_header in unordered_map
9798 do :
9799 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9800 if test "x$ac_cv_header_unordered_map" = xyes; then :
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_UNORDERED_MAP 1
9803 _ACEOF
9806 done
9808 for ac_header in tr1/unordered_map
9809 do :
9810 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9811 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9812 cat >>confdefs.h <<_ACEOF
9813 #define HAVE_TR1_UNORDERED_MAP 1
9814 _ACEOF
9817 done
9819 for ac_header in ext/hash_map
9820 do :
9821 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9822 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_EXT_HASH_MAP 1
9825 _ACEOF
9828 done
9831 # --------
9832 # Dependency checking.
9833 # --------
9835 rm -rf .tst 2>/dev/null
9836 mkdir .tst 2>/dev/null
9837 if test -d .tst; then
9838 am__leading_dot=.
9839 else
9840 am__leading_dot=_
9842 rmdir .tst 2>/dev/null
9844 DEPDIR="${am__leading_dot}deps"
9846 ac_config_commands="$ac_config_commands depdir"
9849 ac_config_commands="$ac_config_commands gccdepdir"
9852 depcc="$CXX" am_compiler_list=
9854 am_depcomp=$ac_aux_dir/depcomp
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9856 $as_echo_n "checking dependency style of $depcc... " >&6; }
9857 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 if test -f "$am_depcomp"; then
9861 # We make a subdir and do the tests there. Otherwise we can end up
9862 # making bogus files that we don't know about and never remove. For
9863 # instance it was reported that on HP-UX the gcc test will end up
9864 # making a dummy file named `D' -- because `-MD' means `put the output
9865 # in D'.
9866 mkdir conftest.dir
9867 # Copy depcomp to subdir because otherwise we won't find it if we're
9868 # using a relative directory.
9869 cp "$am_depcomp" conftest.dir
9870 cd conftest.dir
9871 # We will build objects and dependencies in a subdirectory because
9872 # it helps to detect inapplicable dependency modes. For instance
9873 # both Tru64's cc and ICC support -MD to output dependencies as a
9874 # side effect of compilation, but ICC will put the dependencies in
9875 # the current directory while Tru64 will put them in the object
9876 # directory.
9877 mkdir sub
9879 am_cv_CXX_dependencies_compiler_type=none
9880 if test "$am_compiler_list" = ""; then
9881 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9883 for depmode in $am_compiler_list; do
9884 if test $depmode = none; then break; fi
9886 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9887 # Setup a source with many dependencies, because some compilers
9888 # like to wrap large dependency lists on column 80 (with \), and
9889 # we should not choose a depcomp mode which is confused by this.
9891 # We need to recreate these files for each test, as the compiler may
9892 # overwrite some of them when testing with obscure command lines.
9893 # This happens at least with the AIX C compiler.
9894 : > sub/conftest.c
9895 for i in 1 2 3 4 5 6; do
9896 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9897 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9898 # Solaris 8's {/usr,}/bin/sh.
9899 touch sub/conftst$i.h
9900 done
9901 echo "include sub/conftest.Po" > confmf
9903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9904 # mode. It turns out that the SunPro C++ compiler does not properly
9905 # handle `-M -o', and we need to detect this.
9906 depcmd="depmode=$depmode \
9907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9910 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9911 if env $depcmd > conftest.err 2>&1 &&
9912 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9914 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9915 # icc doesn't choke on unknown options, it will just issue warnings
9916 # or remarks (even with -Werror). So we grep stderr for any message
9917 # that says an option was ignored or not supported.
9918 # When given -MP, icc 7.0 and 7.1 complain thusly:
9919 # icc: Command line warning: ignoring option '-M'; no argument required
9920 # The diagnosis changed in icc 8.0:
9921 # icc: Command line remark: option '-MP' not supported
9922 if (grep 'ignoring option' conftest.err ||
9923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9924 am_cv_CXX_dependencies_compiler_type=$depmode
9925 $as_echo "$as_me:$LINENO: success" >&5
9926 break
9929 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9930 sed -e 's/^/| /' < conftest.err >&5
9931 done
9933 cd ..
9934 rm -rf conftest.dir
9935 else
9936 am_cv_CXX_dependencies_compiler_type=none
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9941 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9942 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9943 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9944 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9949 # --------
9950 # UNSORTED
9951 # --------
9954 # These libraries may be used by collect2.
9955 # We may need a special search path to get them linked.
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9957 $as_echo_n "checking for collect2 libraries... " >&6; }
9958 if ${gcc_cv_collect2_libs+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960 else
9961 save_LIBS="$LIBS"
9962 for libs in '' -lld -lmld \
9963 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9964 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9966 LIBS="$libs"
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 char ldopen ();
9978 main ()
9980 return ldopen ();
9982 return 0;
9984 _ACEOF
9985 if ac_fn_cxx_try_link "$LINENO"; then :
9986 gcc_cv_collect2_libs="$libs"; break
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 done
9991 LIBS="$save_LIBS"
9992 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9995 $as_echo "$gcc_cv_collect2_libs" >&6; }
9996 case $gcc_cv_collect2_libs in
9997 "none required") ;;
9998 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9999 esac
10002 # When building Ada code on Alpha, we need exc_resume which is usually in
10003 # -lexc. So test for it.
10004 save_LIBS="$LIBS"
10005 LIBS=
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10007 $as_echo_n "checking for library containing exc_resume... " >&6; }
10008 if ${ac_cv_search_exc_resume+:} false; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 ac_func_search_save_LIBS=$LIBS
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char exc_resume ();
10023 main ()
10025 return exc_resume ();
10027 return 0;
10029 _ACEOF
10030 for ac_lib in '' exc; do
10031 if test -z "$ac_lib"; then
10032 ac_res="none required"
10033 else
10034 ac_res=-l$ac_lib
10035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10037 if ac_fn_cxx_try_link "$LINENO"; then :
10038 ac_cv_search_exc_resume=$ac_res
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext
10042 if ${ac_cv_search_exc_resume+:} false; then :
10043 break
10045 done
10046 if ${ac_cv_search_exc_resume+:} false; then :
10048 else
10049 ac_cv_search_exc_resume=no
10051 rm conftest.$ac_ext
10052 LIBS=$ac_func_search_save_LIBS
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10055 $as_echo "$ac_cv_search_exc_resume" >&6; }
10056 ac_res=$ac_cv_search_exc_resume
10057 if test "$ac_res" != no; then :
10058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10062 GNAT_LIBEXC="$LIBS"
10063 LIBS="$save_LIBS"
10066 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10067 save_LIBS="$LIBS"
10068 LIBS=
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10070 $as_echo_n "checking for library containing kstat_open... " >&6; }
10071 if ${ac_cv_search_kstat_open+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073 else
10074 ac_func_search_save_LIBS=$LIBS
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char kstat_open ();
10086 main ()
10088 return kstat_open ();
10090 return 0;
10092 _ACEOF
10093 for ac_lib in '' kstat; do
10094 if test -z "$ac_lib"; then
10095 ac_res="none required"
10096 else
10097 ac_res=-l$ac_lib
10098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10100 if ac_fn_cxx_try_link "$LINENO"; then :
10101 ac_cv_search_kstat_open=$ac_res
10103 rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext
10105 if ${ac_cv_search_kstat_open+:} false; then :
10106 break
10108 done
10109 if ${ac_cv_search_kstat_open+:} false; then :
10111 else
10112 ac_cv_search_kstat_open=no
10114 rm conftest.$ac_ext
10115 LIBS=$ac_func_search_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10118 $as_echo "$ac_cv_search_kstat_open" >&6; }
10119 ac_res=$ac_cv_search_kstat_open
10120 if test "$ac_res" != no; then :
10121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10125 EXTRA_GCC_LIBS="$LIBS"
10126 LIBS="$save_LIBS"
10129 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10130 # C++ needs those for libcody.
10131 save_LIBS="$LIBS"
10132 LIBS=
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10135 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10136 if ${ac_cv_search_gethostbyname+:} false; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 ac_func_search_save_LIBS=$LIBS
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 char gethostbyname ();
10151 main ()
10153 return gethostbyname ();
10155 return 0;
10157 _ACEOF
10158 for ac_lib in '' nsl; do
10159 if test -z "$ac_lib"; then
10160 ac_res="none required"
10161 else
10162 ac_res=-l$ac_lib
10163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10165 if ac_fn_cxx_try_link "$LINENO"; then :
10166 ac_cv_search_gethostbyname=$ac_res
10168 rm -f core conftest.err conftest.$ac_objext \
10169 conftest$ac_exeext
10170 if ${ac_cv_search_gethostbyname+:} false; then :
10171 break
10173 done
10174 if ${ac_cv_search_gethostbyname+:} false; then :
10176 else
10177 ac_cv_search_gethostbyname=no
10179 rm conftest.$ac_ext
10180 LIBS=$ac_func_search_save_LIBS
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10183 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10184 ac_res=$ac_cv_search_gethostbyname
10185 if test "$ac_res" != no; then :
10186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10191 $as_echo_n "checking for library containing socket... " >&6; }
10192 if ${ac_cv_search_socket+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 ac_func_search_save_LIBS=$LIBS
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 char socket ();
10207 main ()
10209 return socket ();
10211 return 0;
10213 _ACEOF
10214 for ac_lib in '' socket; do
10215 if test -z "$ac_lib"; then
10216 ac_res="none required"
10217 else
10218 ac_res=-l$ac_lib
10219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10221 if ac_fn_cxx_try_link "$LINENO"; then :
10222 ac_cv_search_socket=$ac_res
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext
10226 if ${ac_cv_search_socket+:} false; then :
10227 break
10229 done
10230 if ${ac_cv_search_socket+:} false; then :
10232 else
10233 ac_cv_search_socket=no
10235 rm conftest.$ac_ext
10236 LIBS=$ac_func_search_save_LIBS
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10239 $as_echo "$ac_cv_search_socket" >&6; }
10240 ac_res=$ac_cv_search_socket
10241 if test "$ac_res" != no; then :
10242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10244 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10247 $as_echo_n "checking for socket in -lsocket... " >&6; }
10248 if ${ac_cv_lib_socket_socket+:} false; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-lsocket -lnsl $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char socket ();
10264 main ()
10266 return socket ();
10268 return 0;
10270 _ACEOF
10271 if ac_fn_cxx_try_link "$LINENO"; then :
10272 ac_cv_lib_socket_socket=yes
10273 else
10274 ac_cv_lib_socket_socket=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10281 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10282 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10283 LIBS="-lsocket -lnsl $LIBS"
10289 NETLIBS="$LIBS"
10290 LIBS="$save_LIBS"
10293 # Some systems put ldexp and frexp in libm instead of libc; assume
10294 # they're both in the same place. jcf-dump needs them.
10295 save_LIBS="$LIBS"
10296 LIBS=
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10298 $as_echo_n "checking for library containing ldexp... " >&6; }
10299 if ${ac_cv_search_ldexp+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 ac_func_search_save_LIBS=$LIBS
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char ldexp ();
10314 main ()
10316 return ldexp ();
10318 return 0;
10320 _ACEOF
10321 for ac_lib in '' m; do
10322 if test -z "$ac_lib"; then
10323 ac_res="none required"
10324 else
10325 ac_res=-l$ac_lib
10326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10328 if ac_fn_cxx_try_link "$LINENO"; then :
10329 ac_cv_search_ldexp=$ac_res
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext
10333 if ${ac_cv_search_ldexp+:} false; then :
10334 break
10336 done
10337 if ${ac_cv_search_ldexp+:} false; then :
10339 else
10340 ac_cv_search_ldexp=no
10342 rm conftest.$ac_ext
10343 LIBS=$ac_func_search_save_LIBS
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10346 $as_echo "$ac_cv_search_ldexp" >&6; }
10347 ac_res=$ac_cv_search_ldexp
10348 if test "$ac_res" != no; then :
10349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10353 LDEXP_LIB="$LIBS"
10354 LIBS="$save_LIBS"
10357 # Some systems need dlopen
10358 save_LIBS="$LIBS"
10359 LIBS=
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10361 $as_echo_n "checking for library containing dlopen... " >&6; }
10362 if ${ac_cv_search_dlopen+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_func_search_save_LIBS=$LIBS
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char dlopen ();
10377 main ()
10379 return dlopen ();
10381 return 0;
10383 _ACEOF
10384 for ac_lib in '' dl; do
10385 if test -z "$ac_lib"; then
10386 ac_res="none required"
10387 else
10388 ac_res=-l$ac_lib
10389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10391 if ac_fn_cxx_try_link "$LINENO"; then :
10392 ac_cv_search_dlopen=$ac_res
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext
10396 if ${ac_cv_search_dlopen+:} false; then :
10397 break
10399 done
10400 if ${ac_cv_search_dlopen+:} false; then :
10402 else
10403 ac_cv_search_dlopen=no
10405 rm conftest.$ac_ext
10406 LIBS=$ac_func_search_save_LIBS
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10409 $as_echo "$ac_cv_search_dlopen" >&6; }
10410 ac_res=$ac_cv_search_dlopen
10411 if test "$ac_res" != no; then :
10412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10416 DL_LIB="$LIBS"
10417 LIBS="$save_LIBS"
10420 # Use <inttypes.h> only if it exists,
10421 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10422 # PRId64
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10424 $as_echo_n "checking for inttypes.h... " >&6; }
10425 if ${gcc_cv_header_inttypes_h+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #define __STDC_FORMAT_MACROS
10431 #include <sys/types.h>
10432 #include <inttypes.h>
10434 main ()
10436 intmax_t i = -1;
10437 #ifndef PRId64
10438 choke me
10439 #endif
10441 return 0;
10443 _ACEOF
10444 if ac_fn_cxx_try_compile "$LINENO"; then :
10445 gcc_cv_header_inttypes_h=yes
10446 else
10447 gcc_cv_header_inttypes_h=no
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10453 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10454 if test $gcc_cv_header_inttypes_h = yes; then
10456 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10460 # Look for the ZSTD package.
10461 ZSTD_INCLUDE=
10462 ZSTD_LIB=
10465 ZSTD_CPPFLAGS=
10466 ZSTD_LDFLAGS=
10470 # Check whether --with-zstd was given.
10471 if test "${with_zstd+set}" = set; then :
10472 withval=$with_zstd;
10476 # Check whether --with-zstd-include was given.
10477 if test "${with_zstd_include+set}" = set; then :
10478 withval=$with_zstd_include;
10482 # Check whether --with-zstd-lib was given.
10483 if test "${with_zstd_lib+set}" = set; then :
10484 withval=$with_zstd_lib;
10487 case "x$with_zstd" in
10488 x) ;;
10489 xno)
10490 ZSTD_INCLUDE=
10491 ZSTD_LIB=
10493 *) ZSTD_INCLUDE=$with_zstd/include
10494 ZSTD_LIB=$with_zstd/lib
10496 esac
10498 if test "x$with_zstd" != xno; then
10499 if test "x$with_zstd_include" != x; then
10500 ZSTD_INCLUDE=$with_zstd_include
10502 if test "x$with_zstd_lib" != x; then
10503 ZSTD_LIB=$with_zstd_lib
10505 if test "x$ZSTD_INCLUDE" != x \
10506 && test "x$ZSTD_INCLUDE" != xno; then
10507 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10509 if test "x$ZSTD_LIB" != x \
10510 && test "x$ZSTD_LIB" != xno; then
10511 ZSTD_LDFLAGS=-L$ZSTD_LIB
10514 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10515 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10518 $as_echo_n "checking for zstd.h... " >&6; }
10519 if ${gcc_cv_header_zstd_h+:} false; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 # We require version 1.3.0 or later. This is the first version that has
10523 # ZSTD_getFrameContentSize.
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 #include <zstd.h>
10527 #if ZSTD_VERSION_NUMBER < 10300
10528 #error "need zstd 1.3.0 or better"
10529 #endif
10531 main ()
10535 return 0;
10537 _ACEOF
10538 if ac_fn_cxx_try_compile "$LINENO"; then :
10539 gcc_cv_header_zstd_h=yes
10540 else
10541 gcc_cv_header_zstd_h=no
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10547 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10548 if test $gcc_cv_header_zstd_h = yes; then
10550 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10552 elif test "x$with_zstd" != x; then
10553 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10556 # LTO can use zstd compression algorithm
10557 save_LIBS="$LIBS"
10558 LIBS=
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10560 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10561 if ${ac_cv_search_ZSTD_compress+:} false; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564 ac_func_search_save_LIBS=$LIBS
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571 #ifdef __cplusplus
10572 extern "C"
10573 #endif
10574 char ZSTD_compress ();
10576 main ()
10578 return ZSTD_compress ();
10580 return 0;
10582 _ACEOF
10583 for ac_lib in '' zstd; do
10584 if test -z "$ac_lib"; then
10585 ac_res="none required"
10586 else
10587 ac_res=-l$ac_lib
10588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10590 if ac_fn_cxx_try_link "$LINENO"; then :
10591 ac_cv_search_ZSTD_compress=$ac_res
10593 rm -f core conftest.err conftest.$ac_objext \
10594 conftest$ac_exeext
10595 if ${ac_cv_search_ZSTD_compress+:} false; then :
10596 break
10598 done
10599 if ${ac_cv_search_ZSTD_compress+:} false; then :
10601 else
10602 ac_cv_search_ZSTD_compress=no
10604 rm conftest.$ac_ext
10605 LIBS=$ac_func_search_save_LIBS
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10608 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10609 ac_res=$ac_cv_search_ZSTD_compress
10610 if test "$ac_res" != no; then :
10611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10615 ZSTD_LIB="$LIBS"
10616 LIBS="$save_LIBS"
10622 for ac_func in times clock kill getrlimit setrlimit atoq \
10623 popen sysconf strsignal getrusage nl_langinfo \
10624 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10625 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 mallinfo2 fstatat getauxval
10626 do :
10627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10628 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10632 _ACEOF
10635 done
10638 if test x$ac_cv_func_mbstowcs = xyes; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10640 $as_echo_n "checking whether mbstowcs works... " >&6; }
10641 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 if test "$cross_compiling" = yes; then :
10645 gcc_cv_func_mbstowcs_works=yes
10646 else
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10650 int main()
10652 mbstowcs(0, "", 0);
10653 return 0;
10655 _ACEOF
10656 if ac_fn_cxx_try_run "$LINENO"; then :
10657 gcc_cv_func_mbstowcs_works=yes
10658 else
10659 gcc_cv_func_mbstowcs_works=no
10661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10662 conftest.$ac_objext conftest.beam conftest.$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10667 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10668 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10670 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10675 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10676 if test "x$ac_cv_type_ssize_t" = xyes; then :
10678 else
10680 cat >>confdefs.h <<_ACEOF
10681 #define ssize_t int
10682 _ACEOF
10686 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10687 if test "x$ac_cv_type_caddr_t" = xyes; then :
10689 else
10691 cat >>confdefs.h <<_ACEOF
10692 #define caddr_t char *
10693 _ACEOF
10697 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10699 if test "x$ac_cv_type_sighander_t" = xyes; then :
10701 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10707 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10708 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10709 gcc_header_sys_mman_h=yes
10710 else
10711 gcc_header_sys_mman_h=no
10714 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10715 if test "x$ac_cv_func_mmap" = xyes; then :
10716 gcc_func_mmap=yes
10717 else
10718 gcc_func_mmap=no
10721 if test "$gcc_header_sys_mman_h" != yes \
10722 || test "$gcc_func_mmap" != yes; then
10723 gcc_cv_func_mmap_file=no
10724 gcc_cv_func_mmap_dev_zero=no
10725 gcc_cv_func_mmap_anon=no
10726 else
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10728 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10729 if ${gcc_cv_func_mmap_file+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 # Add a system to this blacklist if
10733 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10734 # memory area containing the same data that you'd get if you applied
10735 # read() to the same fd. The only system known to have a problem here
10736 # is VMS, where text files have record structure.
10737 case "$host_os" in
10738 *vms* | ultrix*)
10739 gcc_cv_func_mmap_file=no ;;
10741 gcc_cv_func_mmap_file=yes;;
10742 esac
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10745 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10747 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10748 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 # Add a system to this blacklist if it has mmap() but /dev/zero
10752 # does not exist, or if mmapping /dev/zero does not give anonymous
10753 # zeroed pages with both the following properties:
10754 # 1. If you map N consecutive pages in with one call, and then
10755 # unmap any subset of those pages, the pages that were not
10756 # explicitly unmapped remain accessible.
10757 # 2. If you map two adjacent blocks of memory and then unmap them
10758 # both at once, they must both go away.
10759 # Systems known to be in this category are Windows (all variants),
10760 # VMS, and Darwin.
10761 case "$host_os" in
10762 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10763 gcc_cv_func_mmap_dev_zero=no ;;
10765 gcc_cv_func_mmap_dev_zero=yes;;
10766 esac
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10769 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10771 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10773 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10774 if ${gcc_cv_decl_map_anon+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include <sys/types.h>
10780 #include <sys/mman.h>
10781 #include <unistd.h>
10783 #ifndef MAP_ANONYMOUS
10784 #define MAP_ANONYMOUS MAP_ANON
10785 #endif
10788 main ()
10790 int n = MAP_ANONYMOUS;
10792 return 0;
10794 _ACEOF
10795 if ac_fn_cxx_try_compile "$LINENO"; then :
10796 gcc_cv_decl_map_anon=yes
10797 else
10798 gcc_cv_decl_map_anon=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10803 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10805 if test $gcc_cv_decl_map_anon = no; then
10806 gcc_cv_func_mmap_anon=no
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10809 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10810 if ${gcc_cv_func_mmap_anon+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10814 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10815 # doesn't give anonymous zeroed pages with the same properties listed
10816 # above for use of /dev/zero.
10817 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10818 case "$host_os" in
10819 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10820 gcc_cv_func_mmap_anon=no ;;
10822 gcc_cv_func_mmap_anon=yes;;
10823 esac
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10826 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10830 if test $gcc_cv_func_mmap_file = yes; then
10832 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10835 if test $gcc_cv_func_mmap_dev_zero = yes; then
10837 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10840 if test $gcc_cv_func_mmap_anon = yes; then
10842 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10847 case "${host}" in
10848 *-*-*vms*)
10849 # Under VMS, vfork works very differently than on Unix. The standard test
10850 # won't work, and it isn't easily adaptable. It makes more sense to
10851 # just force it.
10852 ac_cv_func_vfork_works=yes
10854 esac
10855 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10856 if test "x$ac_cv_type_pid_t" = xyes; then :
10858 else
10860 cat >>confdefs.h <<_ACEOF
10861 #define pid_t int
10862 _ACEOF
10866 for ac_header in vfork.h
10867 do :
10868 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10869 if test "x$ac_cv_header_vfork_h" = xyes; then :
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_VFORK_H 1
10872 _ACEOF
10875 done
10877 for ac_func in fork vfork
10878 do :
10879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10882 cat >>confdefs.h <<_ACEOF
10883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10884 _ACEOF
10887 done
10889 if test "x$ac_cv_func_fork" = xyes; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10891 $as_echo_n "checking for working fork... " >&6; }
10892 if ${ac_cv_func_fork_works+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 if test "$cross_compiling" = yes; then :
10896 ac_cv_func_fork_works=cross
10897 else
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 $ac_includes_default
10902 main ()
10905 /* By Ruediger Kuhlmann. */
10906 return fork () < 0;
10909 return 0;
10911 _ACEOF
10912 if ac_fn_cxx_try_run "$LINENO"; then :
10913 ac_cv_func_fork_works=yes
10914 else
10915 ac_cv_func_fork_works=no
10917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10918 conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10923 $as_echo "$ac_cv_func_fork_works" >&6; }
10925 else
10926 ac_cv_func_fork_works=$ac_cv_func_fork
10928 if test "x$ac_cv_func_fork_works" = xcross; then
10929 case $host in
10930 *-*-amigaos* | *-*-msdosdjgpp*)
10931 # Override, as these systems have only a dummy fork() stub
10932 ac_cv_func_fork_works=no
10935 ac_cv_func_fork_works=yes
10937 esac
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10939 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10941 ac_cv_func_vfork_works=$ac_cv_func_vfork
10942 if test "x$ac_cv_func_vfork" = xyes; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10944 $as_echo_n "checking for working vfork... " >&6; }
10945 if ${ac_cv_func_vfork_works+:} false; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 if test "$cross_compiling" = yes; then :
10949 ac_cv_func_vfork_works=cross
10950 else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 /* Thanks to Paul Eggert for this test. */
10954 $ac_includes_default
10955 #include <sys/wait.h>
10956 #ifdef HAVE_VFORK_H
10957 # include <vfork.h>
10958 #endif
10959 /* On some sparc systems, changes by the child to local and incoming
10960 argument registers are propagated back to the parent. The compiler
10961 is told about this with #include <vfork.h>, but some compilers
10962 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10963 static variable whose address is put into a register that is
10964 clobbered by the vfork. */
10965 static void
10966 #ifdef __cplusplus
10967 sparc_address_test (int arg)
10968 # else
10969 sparc_address_test (arg) int arg;
10970 #endif
10972 static pid_t child;
10973 if (!child) {
10974 child = vfork ();
10975 if (child < 0) {
10976 perror ("vfork");
10977 _exit(2);
10979 if (!child) {
10980 arg = getpid();
10981 write(-1, "", 0);
10982 _exit (arg);
10988 main ()
10990 pid_t parent = getpid ();
10991 pid_t child;
10993 sparc_address_test (0);
10995 child = vfork ();
10997 if (child == 0) {
10998 /* Here is another test for sparc vfork register problems. This
10999 test uses lots of local variables, at least as many local
11000 variables as main has allocated so far including compiler
11001 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11002 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11003 reuse the register of parent for one of the local variables,
11004 since it will think that parent can't possibly be used any more
11005 in this routine. Assigning to the local variable will thus
11006 munge parent in the parent process. */
11007 pid_t
11008 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11009 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11010 /* Convince the compiler that p..p7 are live; otherwise, it might
11011 use the same hardware register for all 8 local variables. */
11012 if (p != p1 || p != p2 || p != p3 || p != p4
11013 || p != p5 || p != p6 || p != p7)
11014 _exit(1);
11016 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11017 from child file descriptors. If the child closes a descriptor
11018 before it execs or exits, this munges the parent's descriptor
11019 as well. Test for this by closing stdout in the child. */
11020 _exit(close(fileno(stdout)) != 0);
11021 } else {
11022 int status;
11023 struct stat st;
11025 while (wait(&status) != child)
11027 return (
11028 /* Was there some problem with vforking? */
11029 child < 0
11031 /* Did the child fail? (This shouldn't happen.) */
11032 || status
11034 /* Did the vfork/compiler bug occur? */
11035 || parent != getpid()
11037 /* Did the file descriptor bug occur? */
11038 || fstat(fileno(stdout), &st) != 0
11042 _ACEOF
11043 if ac_fn_cxx_try_run "$LINENO"; then :
11044 ac_cv_func_vfork_works=yes
11045 else
11046 ac_cv_func_vfork_works=no
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11049 conftest.$ac_objext conftest.beam conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11054 $as_echo "$ac_cv_func_vfork_works" >&6; }
11057 if test "x$ac_cv_func_fork_works" = xcross; then
11058 ac_cv_func_vfork_works=$ac_cv_func_vfork
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11060 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11063 if test "x$ac_cv_func_vfork_works" = xyes; then
11065 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11067 else
11069 $as_echo "#define vfork fork" >>confdefs.h
11072 if test "x$ac_cv_func_fork_works" = xyes; then
11074 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11080 if test "X$prefix" = "XNONE"; then
11081 acl_final_prefix="$ac_default_prefix"
11082 else
11083 acl_final_prefix="$prefix"
11085 if test "X$exec_prefix" = "XNONE"; then
11086 acl_final_exec_prefix='${prefix}'
11087 else
11088 acl_final_exec_prefix="$exec_prefix"
11090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11093 prefix="$acl_save_prefix"
11096 # Check whether --with-gnu-ld was given.
11097 if test "${with_gnu_ld+set}" = set; then :
11098 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11099 else
11100 with_gnu_ld=no
11103 # Prepare PATH_SEPARATOR.
11104 # The user is always right.
11105 if test "${PATH_SEPARATOR+set}" != set; then
11106 echo "#! /bin/sh" >conf$$.sh
11107 echo "exit 0" >>conf$$.sh
11108 chmod +x conf$$.sh
11109 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11110 PATH_SEPARATOR=';'
11111 else
11112 PATH_SEPARATOR=:
11114 rm -f conf$$.sh
11116 ac_prog=ld
11117 if test "$GCC" = yes; then
11118 # Check if gcc -print-prog-name=ld gives a path.
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11120 $as_echo_n "checking for ld used by GCC... " >&6; }
11121 case $host in
11122 *-*-mingw*)
11123 # gcc leaves a trailing carriage return which upsets mingw
11124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11127 esac
11128 case $ac_prog in
11129 # Accept absolute paths.
11130 [\\/]* | [A-Za-z]:[\\/]*)
11131 re_direlt='/[^/][^/]*/\.\./'
11132 # Canonicalize the path of ld
11133 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11135 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11136 done
11137 test -z "$LD" && LD="$ac_prog"
11140 # If it fails, then pretend we aren't using GCC.
11141 ac_prog=ld
11144 # If it is relative, then search for the first ld in PATH.
11145 with_gnu_ld=unknown
11147 esac
11148 elif test "$with_gnu_ld" = yes; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11150 $as_echo_n "checking for GNU ld... " >&6; }
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11153 $as_echo_n "checking for non-GNU ld... " >&6; }
11155 if ${acl_cv_path_LD+:} false; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11158 if test -z "$LD"; then
11159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11160 for ac_dir in $PATH; do
11161 test -z "$ac_dir" && ac_dir=.
11162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163 acl_cv_path_LD="$ac_dir/$ac_prog"
11164 # Check to see if the program is GNU ld. I'd rather use --version,
11165 # but apparently some GNU ld's only accept -v.
11166 # Break only if it was the GNU/non-GNU ld that we prefer.
11167 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11168 test "$with_gnu_ld" != no && break
11169 else
11170 test "$with_gnu_ld" != yes && break
11173 done
11174 IFS="$ac_save_ifs"
11175 else
11176 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11180 LD="$acl_cv_path_LD"
11181 if test -n "$LD"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11183 $as_echo "$LD" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11188 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11190 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11191 if ${acl_cv_prog_gnu_ld+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11195 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11196 acl_cv_prog_gnu_ld=yes
11197 else
11198 acl_cv_prog_gnu_ld=no
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11202 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11203 with_gnu_ld=$acl_cv_prog_gnu_ld
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11208 $as_echo_n "checking for shared library run path origin... " >&6; }
11209 if ${acl_cv_rpath+:} false; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11215 . ./conftest.sh
11216 rm -f ./conftest.sh
11217 acl_cv_rpath=done
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11221 $as_echo "$acl_cv_rpath" >&6; }
11222 wl="$acl_cv_wl"
11223 libext="$acl_cv_libext"
11224 shlibext="$acl_cv_shlibext"
11225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11227 hardcode_direct="$acl_cv_hardcode_direct"
11228 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11229 # Check whether --enable-rpath was given.
11230 if test "${enable_rpath+set}" = set; then :
11231 enableval=$enable_rpath; :
11232 else
11233 enable_rpath=yes
11243 use_additional=yes
11245 acl_save_prefix="$prefix"
11246 prefix="$acl_final_prefix"
11247 acl_save_exec_prefix="$exec_prefix"
11248 exec_prefix="$acl_final_exec_prefix"
11250 eval additional_includedir=\"$includedir\"
11251 eval additional_libdir=\"$libdir\"
11253 exec_prefix="$acl_save_exec_prefix"
11254 prefix="$acl_save_prefix"
11257 # Check whether --with-libiconv-prefix was given.
11258 if test "${with_libiconv_prefix+set}" = set; then :
11259 withval=$with_libiconv_prefix;
11260 if test "X$withval" = "Xno"; then
11261 use_additional=no
11262 else
11263 if test "X$withval" = "X"; then
11265 acl_save_prefix="$prefix"
11266 prefix="$acl_final_prefix"
11267 acl_save_exec_prefix="$exec_prefix"
11268 exec_prefix="$acl_final_exec_prefix"
11270 eval additional_includedir=\"$includedir\"
11271 eval additional_libdir=\"$libdir\"
11273 exec_prefix="$acl_save_exec_prefix"
11274 prefix="$acl_save_prefix"
11276 else
11277 additional_includedir="$withval/include"
11278 additional_libdir="$withval/lib"
11285 # Check whether --with-libiconv-type was given.
11286 if test "${with_libiconv_type+set}" = set; then :
11287 withval=$with_libiconv_type; with_libiconv_type=$withval
11288 else
11289 with_libiconv_type=auto
11292 lib_type=`eval echo \$with_libiconv_type`
11294 LIBICONV=
11295 LTLIBICONV=
11296 INCICONV=
11297 rpathdirs=
11298 ltrpathdirs=
11299 names_already_handled=
11300 names_next_round='iconv '
11301 while test -n "$names_next_round"; do
11302 names_this_round="$names_next_round"
11303 names_next_round=
11304 for name in $names_this_round; do
11305 already_handled=
11306 for n in $names_already_handled; do
11307 if test "$n" = "$name"; then
11308 already_handled=yes
11309 break
11311 done
11312 if test -z "$already_handled"; then
11313 names_already_handled="$names_already_handled $name"
11314 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11315 eval value=\"\$HAVE_LIB$uppername\"
11316 if test -n "$value"; then
11317 if test "$value" = yes; then
11318 eval value=\"\$LIB$uppername\"
11319 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11320 eval value=\"\$LTLIB$uppername\"
11321 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11322 else
11325 else
11326 found_dir=
11327 found_la=
11328 found_so=
11329 found_a=
11330 if test $use_additional = yes; then
11331 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11332 found_dir="$additional_libdir"
11333 found_so="$additional_libdir/lib$name.$shlibext"
11334 if test -f "$additional_libdir/lib$name.la"; then
11335 found_la="$additional_libdir/lib$name.la"
11337 elif test x$lib_type != xshared; then
11338 if test -f "$additional_libdir/lib$name.$libext"; then
11339 found_dir="$additional_libdir"
11340 found_a="$additional_libdir/lib$name.$libext"
11341 if test -f "$additional_libdir/lib$name.la"; then
11342 found_la="$additional_libdir/lib$name.la"
11347 if test "X$found_dir" = "X"; then
11348 for x in $LDFLAGS $LTLIBICONV; do
11350 acl_save_prefix="$prefix"
11351 prefix="$acl_final_prefix"
11352 acl_save_exec_prefix="$exec_prefix"
11353 exec_prefix="$acl_final_exec_prefix"
11354 eval x=\"$x\"
11355 exec_prefix="$acl_save_exec_prefix"
11356 prefix="$acl_save_prefix"
11358 case "$x" in
11359 -L*)
11360 dir=`echo "X$x" | sed -e 's/^X-L//'`
11361 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11362 found_dir="$dir"
11363 found_so="$dir/lib$name.$shlibext"
11364 if test -f "$dir/lib$name.la"; then
11365 found_la="$dir/lib$name.la"
11367 elif test x$lib_type != xshared; then
11368 if test -f "$dir/lib$name.$libext"; then
11369 found_dir="$dir"
11370 found_a="$dir/lib$name.$libext"
11371 if test -f "$dir/lib$name.la"; then
11372 found_la="$dir/lib$name.la"
11377 esac
11378 if test "X$found_dir" != "X"; then
11379 break
11381 done
11383 if test "X$found_dir" != "X"; then
11384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11385 if test "X$found_so" != "X"; then
11386 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11388 else
11389 haveit=
11390 for x in $ltrpathdirs; do
11391 if test "X$x" = "X$found_dir"; then
11392 haveit=yes
11393 break
11395 done
11396 if test -z "$haveit"; then
11397 ltrpathdirs="$ltrpathdirs $found_dir"
11399 if test "$hardcode_direct" = yes; then
11400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11401 else
11402 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11403 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11404 haveit=
11405 for x in $rpathdirs; do
11406 if test "X$x" = "X$found_dir"; then
11407 haveit=yes
11408 break
11410 done
11411 if test -z "$haveit"; then
11412 rpathdirs="$rpathdirs $found_dir"
11414 else
11415 haveit=
11416 for x in $LDFLAGS $LIBICONV; do
11418 acl_save_prefix="$prefix"
11419 prefix="$acl_final_prefix"
11420 acl_save_exec_prefix="$exec_prefix"
11421 exec_prefix="$acl_final_exec_prefix"
11422 eval x=\"$x\"
11423 exec_prefix="$acl_save_exec_prefix"
11424 prefix="$acl_save_prefix"
11426 if test "X$x" = "X-L$found_dir"; then
11427 haveit=yes
11428 break
11430 done
11431 if test -z "$haveit"; then
11432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11434 if test "$hardcode_minus_L" != no; then
11435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11436 else
11437 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11442 else
11443 if test "X$found_a" != "X"; then
11444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11445 else
11446 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11449 additional_includedir=
11450 case "$found_dir" in
11451 */lib | */lib/)
11452 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11453 additional_includedir="$basedir/include"
11455 esac
11456 if test "X$additional_includedir" != "X"; then
11457 if test "X$additional_includedir" != "X/usr/include"; then
11458 haveit=
11459 if test "X$additional_includedir" = "X/usr/local/include"; then
11460 if test -n "$GCC"; then
11461 case $host_os in
11462 linux*) haveit=yes;;
11463 esac
11466 if test -z "$haveit"; then
11467 for x in $CPPFLAGS $INCICONV; do
11469 acl_save_prefix="$prefix"
11470 prefix="$acl_final_prefix"
11471 acl_save_exec_prefix="$exec_prefix"
11472 exec_prefix="$acl_final_exec_prefix"
11473 eval x=\"$x\"
11474 exec_prefix="$acl_save_exec_prefix"
11475 prefix="$acl_save_prefix"
11477 if test "X$x" = "X-I$additional_includedir"; then
11478 haveit=yes
11479 break
11481 done
11482 if test -z "$haveit"; then
11483 if test -d "$additional_includedir"; then
11484 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11490 if test -n "$found_la"; then
11491 save_libdir="$libdir"
11492 case "$found_la" in
11493 */* | *\\*) . "$found_la" ;;
11494 *) . "./$found_la" ;;
11495 esac
11496 libdir="$save_libdir"
11497 for dep in $dependency_libs; do
11498 case "$dep" in
11499 -L*)
11500 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11501 if test "X$additional_libdir" != "X/usr/lib"; then
11502 haveit=
11503 if test "X$additional_libdir" = "X/usr/local/lib"; then
11504 if test -n "$GCC"; then
11505 case $host_os in
11506 linux*) haveit=yes;;
11507 esac
11510 if test -z "$haveit"; then
11511 haveit=
11512 for x in $LDFLAGS $LIBICONV; do
11514 acl_save_prefix="$prefix"
11515 prefix="$acl_final_prefix"
11516 acl_save_exec_prefix="$exec_prefix"
11517 exec_prefix="$acl_final_exec_prefix"
11518 eval x=\"$x\"
11519 exec_prefix="$acl_save_exec_prefix"
11520 prefix="$acl_save_prefix"
11522 if test "X$x" = "X-L$additional_libdir"; then
11523 haveit=yes
11524 break
11526 done
11527 if test -z "$haveit"; then
11528 if test -d "$additional_libdir"; then
11529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11532 haveit=
11533 for x in $LDFLAGS $LTLIBICONV; do
11535 acl_save_prefix="$prefix"
11536 prefix="$acl_final_prefix"
11537 acl_save_exec_prefix="$exec_prefix"
11538 exec_prefix="$acl_final_exec_prefix"
11539 eval x=\"$x\"
11540 exec_prefix="$acl_save_exec_prefix"
11541 prefix="$acl_save_prefix"
11543 if test "X$x" = "X-L$additional_libdir"; then
11544 haveit=yes
11545 break
11547 done
11548 if test -z "$haveit"; then
11549 if test -d "$additional_libdir"; then
11550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11556 -R*)
11557 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11558 if test "$enable_rpath" != no; then
11559 haveit=
11560 for x in $rpathdirs; do
11561 if test "X$x" = "X$dir"; then
11562 haveit=yes
11563 break
11565 done
11566 if test -z "$haveit"; then
11567 rpathdirs="$rpathdirs $dir"
11569 haveit=
11570 for x in $ltrpathdirs; do
11571 if test "X$x" = "X$dir"; then
11572 haveit=yes
11573 break
11575 done
11576 if test -z "$haveit"; then
11577 ltrpathdirs="$ltrpathdirs $dir"
11581 -l*)
11582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11584 *.la)
11585 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11588 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11591 esac
11592 done
11594 else
11595 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11598 else
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11605 done
11606 done
11607 if test "X$rpathdirs" != "X"; then
11608 if test -n "$hardcode_libdir_separator"; then
11609 alldirs=
11610 for found_dir in $rpathdirs; do
11611 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11612 done
11613 acl_save_libdir="$libdir"
11614 libdir="$alldirs"
11615 eval flag=\"$hardcode_libdir_flag_spec\"
11616 libdir="$acl_save_libdir"
11617 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11618 else
11619 for found_dir in $rpathdirs; do
11620 acl_save_libdir="$libdir"
11621 libdir="$found_dir"
11622 eval flag=\"$hardcode_libdir_flag_spec\"
11623 libdir="$acl_save_libdir"
11624 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11625 done
11628 if test "X$ltrpathdirs" != "X"; then
11629 for found_dir in $ltrpathdirs; do
11630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11631 done
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11641 $as_echo_n "checking for iconv... " >&6; }
11642 if ${am_cv_func_iconv+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11646 am_cv_func_iconv="no, consider installing GNU libiconv"
11647 am_cv_lib_iconv=no
11648 am_save_CPPFLAGS="$CPPFLAGS"
11649 CPPFLAGS="$CPPFLAGS $INCICONV"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <stdlib.h>
11653 #include <iconv.h>
11655 main ()
11657 iconv_t cd = iconv_open("","");
11658 iconv(cd,NULL,NULL,NULL,NULL);
11659 iconv_close(cd);
11661 return 0;
11663 _ACEOF
11664 if ac_fn_cxx_try_link "$LINENO"; then :
11665 am_cv_func_iconv=yes
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 CPPFLAGS="$am_save_CPPFLAGS"
11671 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11672 for _libs in .libs _libs; do
11673 am_save_CPPFLAGS="$CPPFLAGS"
11674 am_save_LIBS="$LIBS"
11675 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11676 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #include <stdlib.h>
11680 #include <iconv.h>
11682 main ()
11684 iconv_t cd = iconv_open("","");
11685 iconv(cd,NULL,NULL,NULL,NULL);
11686 iconv_close(cd);
11688 return 0;
11690 _ACEOF
11691 if ac_fn_cxx_try_link "$LINENO"; then :
11692 INCICONV="-I../libiconv/include"
11693 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11694 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11695 am_cv_lib_iconv=yes
11696 am_cv_func_iconv=yes
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 CPPFLAGS="$am_save_CPPFLAGS"
11701 LIBS="$am_save_LIBS"
11702 if test "$am_cv_func_iconv" = "yes"; then
11703 break
11705 done
11708 if test "$am_cv_func_iconv" != yes; then
11709 am_save_CPPFLAGS="$CPPFLAGS"
11710 am_save_LIBS="$LIBS"
11711 CPPFLAGS="$CPPFLAGS $INCICONV"
11712 LIBS="$LIBS $LIBICONV"
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include <stdlib.h>
11716 #include <iconv.h>
11718 main ()
11720 iconv_t cd = iconv_open("","");
11721 iconv(cd,NULL,NULL,NULL,NULL);
11722 iconv_close(cd);
11724 return 0;
11726 _ACEOF
11727 if ac_fn_cxx_try_link "$LINENO"; then :
11728 am_cv_lib_iconv=yes
11729 am_cv_func_iconv=yes
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 CPPFLAGS="$am_save_CPPFLAGS"
11734 LIBS="$am_save_LIBS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11739 $as_echo "$am_cv_func_iconv" >&6; }
11740 if test "$am_cv_func_iconv" = yes; then
11742 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11745 if test "$am_cv_lib_iconv" = yes; then
11747 for element in $INCICONV; do
11748 haveit=
11749 for x in $CPPFLAGS; do
11751 acl_save_prefix="$prefix"
11752 prefix="$acl_final_prefix"
11753 acl_save_exec_prefix="$exec_prefix"
11754 exec_prefix="$acl_final_exec_prefix"
11755 eval x=\"$x\"
11756 exec_prefix="$acl_save_exec_prefix"
11757 prefix="$acl_save_prefix"
11759 if test "X$x" = "X$element"; then
11760 haveit=yes
11761 break
11763 done
11764 if test -z "$haveit"; then
11765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11767 done
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11770 $as_echo_n "checking how to link with libiconv... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11772 $as_echo "$LIBICONV" >&6; }
11773 else
11774 LIBICONV=
11775 LTLIBICONV=
11780 if test "$am_cv_func_iconv" = yes; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11782 $as_echo_n "checking for iconv declaration... " >&6; }
11783 if ${am_cv_proto_iconv+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 #include <stdlib.h>
11791 #include <iconv.h>
11792 extern
11793 #ifdef __cplusplus
11795 #endif
11796 #if defined(__STDC__) || defined(__cplusplus)
11797 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11798 #else
11799 size_t iconv();
11800 #endif
11803 main ()
11807 return 0;
11809 _ACEOF
11810 if ac_fn_cxx_try_compile "$LINENO"; then :
11811 am_cv_proto_iconv_arg1=""
11812 else
11813 am_cv_proto_iconv_arg1="const"
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 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);"
11819 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11821 }$am_cv_proto_iconv" >&5
11822 $as_echo "${ac_t:-
11823 }$am_cv_proto_iconv" >&6; }
11825 cat >>confdefs.h <<_ACEOF
11826 #define ICONV_CONST $am_cv_proto_iconv_arg1
11827 _ACEOF
11832 # Until we have in-tree GNU iconv:
11833 LIBICONV_DEP=
11834 if test -f "$LTLIBICONV"; then
11835 LIBICONV_DEP=$LTLIBICONV
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11841 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11842 if ${am_cv_val_LC_MESSAGES+:} false; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <locale.h>
11849 main ()
11851 return LC_MESSAGES
11853 return 0;
11855 _ACEOF
11856 if ac_fn_cxx_try_link "$LINENO"; then :
11857 am_cv_val_LC_MESSAGES=yes
11858 else
11859 am_cv_val_LC_MESSAGES=no
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11865 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11866 if test $am_cv_val_LC_MESSAGES = yes; then
11868 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11875 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11876 if ${am_cv_langinfo_codeset+:} false; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #include <langinfo.h>
11883 main ()
11885 char* cs = nl_langinfo(CODESET);
11887 return 0;
11889 _ACEOF
11890 if ac_fn_cxx_try_link "$LINENO"; then :
11891 am_cv_langinfo_codeset=yes
11892 else
11893 am_cv_langinfo_codeset=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11900 $as_echo "$am_cv_langinfo_codeset" >&6; }
11901 if test $am_cv_langinfo_codeset = yes; then
11903 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11908 # We will need to find libiberty.h and ansidecl.h
11909 saved_CFLAGS="$CFLAGS"
11910 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11911 saved_CXXFLAGS="$CXXFLAGS"
11912 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11914 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11915 # normal autoconf function for these. But force definition of
11916 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11917 # basename handling in libiberty.h.
11918 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11919 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11920 #undef HAVE_DECL_BASENAME
11921 #define HAVE_DECL_BASENAME 1
11922 #include \"ansidecl.h\"
11923 #include \"system.h\"
11925 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11926 ac_have_decl=1
11927 else
11928 ac_have_decl=0
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_DECL_BASENAME $ac_have_decl
11933 _ACEOF
11934 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11935 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11936 #undef HAVE_DECL_BASENAME
11937 #define HAVE_DECL_BASENAME 1
11938 #include \"ansidecl.h\"
11939 #include \"system.h\"
11941 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11942 ac_have_decl=1
11943 else
11944 ac_have_decl=0
11947 cat >>confdefs.h <<_ACEOF
11948 #define HAVE_DECL_STRSTR $ac_have_decl
11949 _ACEOF
11952 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11953 madvise stpcpy strnlen strsignal strverscmp \
11954 strtol strtoul strtoll strtoull setenv unsetenv \
11955 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11956 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
11958 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11960 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11961 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #undef $ac_tr_decl
11967 #define $ac_tr_decl 1
11969 #include "ansidecl.h"
11970 #include "system.h"
11973 main ()
11975 #ifndef $ac_func
11976 char *(*pfn) = (char *(*)) $ac_func ;
11977 #endif
11979 return 0;
11981 _ACEOF
11982 if ac_fn_cxx_try_compile "$LINENO"; then :
11983 eval "gcc_cv_have_decl_$ac_func=yes"
11984 else
11985 eval "gcc_cv_have_decl_$ac_func=no"
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11993 #define $ac_tr_decl 1
11994 _ACEOF
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11999 #define $ac_tr_decl 0
12000 _ACEOF
12004 done
12007 for ac_func in getrlimit setrlimit getrusage
12009 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12011 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12012 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #undef $ac_tr_decl
12018 #define $ac_tr_decl 1
12020 #include "ansidecl.h"
12021 #include "system.h"
12022 #ifdef HAVE_SYS_RESOURCE_H
12023 #include <sys/resource.h>
12024 #endif
12028 main ()
12030 #ifndef $ac_func
12031 char *(*pfn) = (char *(*)) $ac_func ;
12032 #endif
12034 return 0;
12036 _ACEOF
12037 if ac_fn_cxx_try_compile "$LINENO"; then :
12038 eval "gcc_cv_have_decl_$ac_func=yes"
12039 else
12040 eval "gcc_cv_have_decl_$ac_func=no"
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12048 #define $ac_tr_decl 1
12049 _ACEOF
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12054 #define $ac_tr_decl 0
12055 _ACEOF
12059 done
12062 for ac_func in mallinfo mallinfo2
12064 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12067 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #undef $ac_tr_decl
12073 #define $ac_tr_decl 1
12075 #include "ansidecl.h"
12076 #include "system.h"
12077 #ifdef HAVE_MALLOC_H
12078 #include <malloc.h>
12079 #endif
12083 main ()
12085 #ifndef $ac_func
12086 char *(*pfn) = (char *(*)) $ac_func ;
12087 #endif
12089 return 0;
12091 _ACEOF
12092 if ac_fn_cxx_try_compile "$LINENO"; then :
12093 eval "gcc_cv_have_decl_$ac_func=yes"
12094 else
12095 eval "gcc_cv_have_decl_$ac_func=no"
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12103 #define $ac_tr_decl 1
12104 _ACEOF
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12109 #define $ac_tr_decl 0
12110 _ACEOF
12114 done
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 #include "ansidecl.h"
12121 #include "system.h"
12122 #ifdef HAVE_SYS_RESOURCE_H
12123 #include <sys/resource.h>
12124 #endif
12127 main ()
12129 rlim_t l = 0;
12131 return 0;
12133 _ACEOF
12134 if ac_fn_cxx_try_compile "$LINENO"; then :
12136 else
12138 $as_echo "#define rlim_t long" >>confdefs.h
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12144 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12145 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12146 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12147 for ac_func in ldgetname
12149 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12151 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12152 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157 #undef $ac_tr_decl
12158 #define $ac_tr_decl 1
12160 #include "ansidecl.h"
12161 #include "system.h"
12162 #ifdef HAVE_LDFCN_H
12163 #undef FREAD
12164 #undef FWRITE
12165 #include <ldfcn.h>
12166 #endif
12170 main ()
12172 #ifndef $ac_func
12173 char *(*pfn) = (char *(*)) $ac_func ;
12174 #endif
12176 return 0;
12178 _ACEOF
12179 if ac_fn_cxx_try_compile "$LINENO"; then :
12180 eval "gcc_cv_have_decl_$ac_func=yes"
12181 else
12182 eval "gcc_cv_have_decl_$ac_func=no"
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12190 #define $ac_tr_decl 1
12191 _ACEOF
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12196 #define $ac_tr_decl 0
12197 _ACEOF
12201 done
12204 for ac_func in times
12206 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12208 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12209 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 #undef $ac_tr_decl
12215 #define $ac_tr_decl 1
12217 #include "ansidecl.h"
12218 #include "system.h"
12219 #ifdef HAVE_SYS_TIMES_H
12220 #include <sys/times.h>
12221 #endif
12225 main ()
12227 #ifndef $ac_func
12228 char *(*pfn) = (char *(*)) $ac_func ;
12229 #endif
12231 return 0;
12233 _ACEOF
12234 if ac_fn_cxx_try_compile "$LINENO"; then :
12235 eval "gcc_cv_have_decl_$ac_func=yes"
12236 else
12237 eval "gcc_cv_have_decl_$ac_func=no"
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12245 #define $ac_tr_decl 1
12246 _ACEOF
12248 else
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12251 #define $ac_tr_decl 0
12252 _ACEOF
12256 done
12259 for ac_func in sigaltstack
12261 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12264 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 #undef $ac_tr_decl
12270 #define $ac_tr_decl 1
12272 #include "ansidecl.h"
12273 #include "system.h"
12274 #include <signal.h>
12278 main ()
12280 #ifndef $ac_func
12281 char *(*pfn) = (char *(*)) $ac_func ;
12282 #endif
12284 return 0;
12286 _ACEOF
12287 if ac_fn_cxx_try_compile "$LINENO"; then :
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12289 else
12290 eval "gcc_cv_have_decl_$ac_func=no"
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12298 #define $ac_tr_decl 1
12299 _ACEOF
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12304 #define $ac_tr_decl 0
12305 _ACEOF
12309 done
12312 # More time-related stuff.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12314 $as_echo_n "checking for struct tms... " >&6; }
12315 if ${ac_cv_struct_tms+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 #include "ansidecl.h"
12323 #include "system.h"
12324 #ifdef HAVE_SYS_TIMES_H
12325 #include <sys/times.h>
12326 #endif
12329 main ()
12331 struct tms tms;
12333 return 0;
12335 _ACEOF
12336 if ac_fn_cxx_try_compile "$LINENO"; then :
12337 ac_cv_struct_tms=yes
12338 else
12339 ac_cv_struct_tms=no
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12344 $as_echo "$ac_cv_struct_tms" >&6; }
12345 if test $ac_cv_struct_tms = yes; then
12347 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12351 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12352 # revisit after autoconf 2.50.
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12354 $as_echo_n "checking for clock_t... " >&6; }
12355 if ${gcc_cv_type_clock_t+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 #include "ansidecl.h"
12363 #include "system.h"
12366 main ()
12368 clock_t x;
12370 return 0;
12372 _ACEOF
12373 if ac_fn_cxx_try_compile "$LINENO"; then :
12374 gcc_cv_type_clock_t=yes
12375 else
12376 gcc_cv_type_clock_t=no
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12381 $as_echo "$gcc_cv_type_clock_t" >&6; }
12382 if test $gcc_cv_type_clock_t = yes; then
12384 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12388 # Check if F_SETLKW is supported by fcntl.
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12390 $as_echo_n "checking for F_SETLKW... " >&6; }
12391 if ${ac_cv_f_setlkw+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12398 #include <fcntl.h>
12400 main ()
12403 struct flock fl;
12404 fl.l_whence = 0;
12405 fl.l_start = 0;
12406 fl.l_len = 0;
12407 fl.l_pid = 0;
12408 return fcntl (1, F_SETLKW, &fl);
12410 return 0;
12412 _ACEOF
12413 if ac_fn_cxx_try_compile "$LINENO"; then :
12414 ac_cv_f_setlkw=yes
12415 else
12416 ac_cv_f_setlkw=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12421 $as_echo "$ac_cv_f_setlkw" >&6; }
12422 if test $ac_cv_f_setlkw = yes; then
12424 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12428 # Check if O_CLOEXEC is defined by fcntl
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12430 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12431 if ${ac_cv_o_cloexec+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12438 #include <fcntl.h>
12440 main ()
12443 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12445 return 0;
12447 _ACEOF
12448 if ac_fn_cxx_try_compile "$LINENO"; then :
12449 ac_cv_o_cloexec=yes
12450 else
12451 ac_cv_o_cloexec=no
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12456 $as_echo "$ac_cv_o_cloexec" >&6; }
12457 if test $ac_cv_o_cloexec = yes; then
12459 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12463 # Check if O_NONBLOCK is defined by fcntl
12464 for ac_header in fcntl.h
12465 do :
12466 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12467 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_FCNTL_H 1
12470 _ACEOF
12473 done
12475 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12477 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12481 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12483 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12488 # C++ Modules would like some networking features to provide the mapping
12489 # server. You can still use modules without them though.
12490 # The following network-related checks could probably do with some
12491 # Windows and other non-linux defenses and checking.
12493 # Local socket connectivity wants AF_UNIX networking
12494 # Check for AF_UNIX networking
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12496 $as_echo_n "checking for AF_UNIX... " >&6; }
12497 if ${ac_cv_af_unix+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 #include <sys/types.h>
12505 #include <sys/socket.h>
12506 #include <sys/un.h>
12507 #include <netinet/in.h>
12509 main ()
12512 sockaddr_un un;
12513 un.sun_family = AF_UNSPEC;
12514 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12515 connect (fd, (sockaddr *)&un, sizeof (un));
12517 return 0;
12519 _ACEOF
12520 if ac_fn_cxx_try_compile "$LINENO"; then :
12521 ac_cv_af_unix=yes
12522 else
12523 ac_cv_af_unix=no
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12528 $as_echo "$ac_cv_af_unix" >&6; }
12529 if test $ac_cv_af_unix = yes; then
12531 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12535 # Remote socket connectivity wants AF_INET6 networking
12536 # Check for AF_INET6 networking
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12538 $as_echo_n "checking for AF_INET6... " >&6; }
12539 if ${ac_cv_af_inet6+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 #include <sys/types.h>
12547 #include <sys/socket.h>
12548 #include <netinet/in.h>
12549 #include <netdb.h>
12551 main ()
12554 sockaddr_in6 in6;
12555 in6.sin6_family = AF_UNSPEC;
12556 struct addrinfo *addrs = 0;
12557 struct addrinfo hints;
12558 hints.ai_flags = 0;
12559 hints.ai_family = AF_INET6;
12560 hints.ai_socktype = SOCK_STREAM;
12561 hints.ai_protocol = 0;
12562 hints.ai_canonname = 0;
12563 hints.ai_addr = 0;
12564 hints.ai_next = 0;
12565 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12566 const char *str = gai_strerror (e);
12567 freeaddrinfo (addrs);
12568 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12569 connect (fd, (sockaddr *)&in6, sizeof (in6));
12571 return 0;
12573 _ACEOF
12574 if ac_fn_cxx_try_compile "$LINENO"; then :
12575 ac_cv_af_inet6=yes
12576 else
12577 ac_cv_af_inet6=no
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12582 $as_echo "$ac_cv_af_inet6" >&6; }
12583 if test $ac_cv_af_inet6 = yes; then
12585 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12589 # Check if _LK_LOCK is supported by _locking
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12591 $as_echo_n "checking for _LK_LOCK... " >&6; }
12592 if ${ac_cv_lk_lock+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12599 #include <io.h>
12600 #include <sys/locking.h>
12602 main ()
12605 int fd;
12606 return _locking (fd, _LK_LOCK, 0);
12608 return 0;
12610 _ACEOF
12611 if ac_fn_cxx_try_compile "$LINENO"; then :
12612 ac_cv_lk_lock=yes
12613 else
12614 ac_cv_lk_lock=no
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12619 $as_echo "$ac_cv_lk_lock" >&6; }
12620 if test $ac_cv_lk_lock = yes; then
12622 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12626 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12627 CFLAGS="$saved_CFLAGS"
12628 CXXFLAGS="$saved_CXXFLAGS"
12630 # mkdir takes a single argument on some systems.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12632 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12633 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #ifdef HAVE_SYS_STAT_H
12641 # include <sys/stat.h>
12642 #endif
12643 #ifdef HAVE_UNISTD_H
12644 # include <unistd.h>
12645 #endif
12646 #ifdef HAVE_DIRECT_H
12647 # include <direct.h>
12648 #endif
12650 main ()
12652 mkdir ("foo", 0);
12654 return 0;
12656 _ACEOF
12657 if ac_fn_cxx_try_compile "$LINENO"; then :
12658 gcc_cv_mkdir_takes_one_arg=no
12659 else
12660 gcc_cv_mkdir_takes_one_arg=yes
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12665 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12666 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12668 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12673 # File extensions
12674 manext='.1'
12675 objext='.o'
12679 # With Setjmp/Longjmp based exception handling.
12680 # Check whether --enable-sjlj-exceptions was given.
12681 if test "${enable_sjlj_exceptions+set}" = set; then :
12682 enableval=$enable_sjlj_exceptions; case $target in
12683 lm32*-*-*)
12684 force_sjlj_exceptions=yes
12685 enableval=yes
12688 force_sjlj_exceptions=no
12690 esac
12693 if test $force_sjlj_exceptions = yes; then
12694 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12696 cat >>confdefs.h <<_ACEOF
12697 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12698 _ACEOF
12702 # --------------------------------------------------------
12703 # Build, host, and target specific configuration fragments
12704 # --------------------------------------------------------
12706 # Collect build-machine-specific information.
12707 . ${srcdir}/config.build || exit 1
12709 # Collect host-machine-specific information.
12710 . ${srcdir}/config.host || exit 1
12712 target_gtfiles=
12714 # Collect target-machine-specific information.
12715 . ${srcdir}/config.gcc || exit 1
12717 extra_objs="${host_extra_objs} ${extra_objs}"
12718 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12720 # Default the target-machine variables that were not explicitly set.
12721 if test x"$tm_file" = x
12722 then tm_file=$cpu_type/$cpu_type.h; fi
12724 if test x"$extra_headers" = x
12725 then extra_headers=; fi
12727 if test x$md_file = x
12728 then md_file=$cpu_type/$cpu_type.md; fi
12730 if test x$out_file = x
12731 then out_file=$cpu_type/$cpu_type.cc; fi
12733 if test x"$tmake_file" = x
12734 then tmake_file=$cpu_type/t-$cpu_type
12737 # Support --enable-initfini-array.
12738 if test x$enable_initfini_array != xno; then
12739 tm_file="${tm_file} initfini-array.h"
12742 if test x"$dwarf2" = xyes
12743 then tm_file="$tm_file tm-dwarf2.h"
12746 # Say what files are being used for the output code and MD file.
12747 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12748 echo "Using \`$srcdir/config/$md_file' as machine description file."
12750 # If any of the xm_file variables contain nonexistent files, warn
12751 # about them and drop them.
12754 for x in $build_xm_file; do
12755 if test -f $srcdir/config/$x
12756 then bx="$bx $x"
12757 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12758 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12760 done
12761 build_xm_file="$bx"
12764 for x in $host_xm_file; do
12765 if test -f $srcdir/config/$x
12766 then hx="$hx $x"
12767 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12768 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12770 done
12771 host_xm_file="$hx"
12774 for x in $xm_file; do
12775 if test -f $srcdir/config/$x
12776 then tx="$tx $x"
12777 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12778 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12780 done
12781 xm_file="$tx"
12783 count=a
12784 for f in $tm_file; do
12785 count=${count}x
12786 done
12787 if test $count = ax; then
12788 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12789 else
12790 echo "Using the following target machine macro files:"
12791 for f in $tm_file; do
12792 echo " $srcdir/config/$f"
12793 done
12796 if test x$use_long_long_for_widest_fast_int = xyes; then
12798 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12802 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12804 cat >>confdefs.h <<_ACEOF
12805 #define HAVE_GNU_LD $gnu_ld_bool
12806 _ACEOF
12809 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_GNU_AS $gnu_as_bool
12813 _ACEOF
12816 count=a
12817 for f in $host_xm_file; do
12818 count=${count}x
12819 done
12820 if test $count = a; then
12822 elif test $count = ax; then
12823 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12824 else
12825 echo "Using the following host machine macro files:"
12826 for f in $host_xm_file; do
12827 echo " $srcdir/config/$f"
12828 done
12830 echo "Using ${out_host_hook_obj} for host machine hooks."
12832 if test "$host_xm_file" != "$build_xm_file"; then
12833 count=a
12834 for f in $build_xm_file; do
12835 count=${count}x
12836 done
12837 if test $count = a; then
12839 elif test $count = ax; then
12840 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12841 else
12842 echo "Using the following build machine macro files:"
12843 for f in $build_xm_file; do
12844 echo " $srcdir/config/$f"
12845 done
12849 if test -n "$configured_native_system_header_dir"; then
12850 native_system_header_dir=$configured_native_system_header_dir
12852 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12855 case ${host} in
12856 powerpc*-*-darwin*)
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12858 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12859 if ${gcc_cv_mcontext_underscores+:} false; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 #include <sys/cdefs.h>
12866 #include <sys/signal.h>
12867 #include <ucontext.h>
12868 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12870 _ACEOF
12871 if ac_fn_cxx_try_compile "$LINENO"; then :
12872 gcc_cv_mcontext_underscores=no
12873 else
12874 gcc_cv_mcontext_underscores=yes
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12879 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12880 if test $gcc_cv_mcontext_underscores = yes; then
12882 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12886 esac
12888 # ---------
12889 # Threading
12890 # ---------
12892 # Check if a valid thread package
12893 case ${enable_threads} in
12894 "" | no)
12895 # No threads
12896 target_thread_file='single'
12898 yes)
12899 # default
12900 target_thread_file='single'
12902 aix | dce | lynx | mipssde | posix | rtems | \
12903 single | tpf | vxworks | win32)
12904 target_thread_file=${enable_threads}
12907 echo "${enable_threads} is an unknown thread package" 1>&2
12908 exit 1
12910 esac
12912 if test x${thread_file} = x; then
12913 # No thread file set by target-specific clauses in config.gcc,
12914 # so use file chosen by default logic above
12915 thread_file=${target_thread_file}
12918 # --------
12919 # UNSORTED
12920 # --------
12922 use_cxa_atexit=no
12923 if test x$enable___cxa_atexit = xyes || \
12924 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12925 if test x$host = x$target; then
12926 case $host in
12927 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12928 # keyed to flag_use_cxa_atexit
12929 *-*-mingw32*)
12930 use_cxa_atexit=yes
12932 powerpc-ibm-aix*)
12933 use_cxa_atexit=yes
12936 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12937 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12938 use_cxa_atexit=yes
12939 else
12940 echo "__cxa_atexit can't be enabled on this target"
12944 esac
12945 else
12946 # We can't check for __cxa_atexit when building a cross, so assume
12947 # it is available
12948 use_cxa_atexit=yes
12950 if test x$use_cxa_atexit = xyes; then
12952 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12957 # Look for a file containing extra machine modes.
12958 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12959 extra_modes_file='$(srcdir)'/config/${extra_modes}
12962 cat >>confdefs.h <<_ACEOF
12963 #define EXTRA_MODES_FILE "config/$extra_modes"
12964 _ACEOF
12968 # Convert extra_options into a form suitable for Makefile use.
12969 extra_opt_files=
12970 all_opt_files=
12971 for f in $extra_options; do
12972 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12973 all_opt_files="$all_opt_files $srcdir/config/$f"
12974 done
12977 # auto-host.h is the file containing items generated by autoconf and is
12978 # the first file included by config.h.
12979 # If host=build, it is correct to have bconfig include auto-host.h
12980 # as well. If host!=build, we are in error and need to do more
12981 # work to find out the build config parameters.
12982 if test x$host = x$build
12983 then
12984 build_auto=auto-host.h
12985 HAVE_AUTO_BUILD='# '
12986 else
12987 # We create a subdir, then run autoconf in the subdir.
12988 # To prevent recursion we set host and build for the new
12989 # invocation of configure to the build for this invocation
12990 # of configure.
12991 tempdir=build.$$
12992 rm -rf $tempdir
12993 mkdir $tempdir
12994 cd $tempdir
12995 case ${srcdir} in
12996 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12997 *) realsrcdir=../${srcdir};;
12998 esac
12999 # Clearing GMPINC is necessary to prevent host headers being
13000 # used by the build compiler. Defining GENERATOR_FILE stops
13001 # system.h from including gmp.h.
13002 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13003 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13004 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13005 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13006 ${realsrcdir}/configure \
13007 --enable-languages=${enable_languages-all} \
13008 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13009 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13010 --target=$target_alias --host=$build_alias \
13011 --build=$build_alias || exit # retaining $tempdir
13013 # We just finished tests for the build machine, so rename
13014 # the file auto-build.h in the gcc directory.
13015 mv auto-host.h ../auto-build.h
13016 cd ..
13017 rm -rf $tempdir
13018 build_auto=auto-build.h
13019 HAVE_AUTO_BUILD=
13024 tm_file="${tm_file} defaults.h"
13025 tm_p_file="${tm_p_file} tm-preds.h"
13026 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13027 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13028 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13029 # put this back in temporarily.
13030 xm_file="auto-host.h ansidecl.h ${xm_file}"
13032 # --------
13033 # UNSORTED
13034 # --------
13036 # Compile in configure arguments.
13037 if test -f configargs.h ; then
13038 # Being re-configured.
13039 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13040 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13041 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13042 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13044 else
13045 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13048 # Double all backslashes and backslash all quotes to turn
13049 # gcc_config_arguments into a C string.
13050 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13051 $gcc_config_arguments
13053 gcc_config_arguments_str=`cat conftest.out`
13054 rm -f conftest.out
13056 cat > configargs.h <<EOF
13057 /* Generated automatically. */
13058 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13059 static const char thread_model[] = "$thread_file";
13061 static const struct {
13062 const char *name, *value;
13063 } configure_default_options[] = $configure_default_options;
13066 gcc_BASEVER=`cat $srcdir/BASE-VER`
13067 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13068 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13069 if test -f $srcdir/REVISION ; then
13070 gcc_REVISION=`cat $srcdir/REVISION`
13071 else
13072 gcc_REVISION=""
13074 cat > plugin-version.h <<EOF
13075 #include "configargs.h"
13077 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13078 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13079 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13080 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13082 static char basever[] = "$gcc_BASEVER";
13083 static char datestamp[] = "$gcc_DATESTAMP";
13084 static char devphase[] = "$gcc_DEVPHASE";
13085 static char revision[] = "$gcc_REVISION";
13087 /* FIXME plugins: We should make the version information more precise.
13088 One way to do is to add a checksum. */
13090 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13091 devphase, revision,
13092 configuration_arguments};
13095 # Determine what GCC version number to use in filesystem paths.
13097 get_gcc_base_ver="cat"
13099 # Check whether --with-gcc-major-version-only was given.
13100 if test "${with_gcc_major_version_only+set}" = set; then :
13101 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13102 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13110 # Internationalization
13111 # If we haven't got the data from the intl directory,
13112 # assume NLS is disabled.
13113 USE_NLS=no
13114 LIBINTL=
13115 LIBINTL_DEP=
13116 INCINTL=
13117 XGETTEXT=
13118 GMSGFMT=
13119 POSUB=
13121 if test -f ../intl/config.intl; then
13122 . ../intl/config.intl
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13125 $as_echo_n "checking whether NLS is requested... " >&6; }
13126 if test x"$USE_NLS" != xyes; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13133 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13137 $as_echo_n "checking for catalogs to be installed... " >&6; }
13138 # Look for .po and .gmo files in the source directory.
13139 CATALOGS=
13140 XLINGUAS=
13141 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13142 # If there aren't any .gmo files the shell will give us the
13143 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13144 # weeded out.
13145 case "$cat" in *\**)
13146 continue;;
13147 esac
13148 # The quadruple backslash is collapsed to a double backslash
13149 # by the backticks, then collapsed again by the double quotes,
13150 # leaving us with one backslash in the sed expression (right
13151 # before the dot that mustn't act as a wildcard).
13152 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13153 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13154 # The user is allowed to set LINGUAS to a list of languages to
13155 # install catalogs for. If it's empty that means "all of them."
13156 if test "x$LINGUAS" = x; then
13157 CATALOGS="$CATALOGS $cat"
13158 XLINGUAS="$XLINGUAS $lang"
13159 else
13160 case "$LINGUAS" in *$lang*)
13161 CATALOGS="$CATALOGS $cat"
13162 XLINGUAS="$XLINGUAS $lang"
13164 esac
13166 done
13167 LINGUAS="$XLINGUAS"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13169 $as_echo "$LINGUAS" >&6; }
13172 DATADIRNAME=share
13174 INSTOBJEXT=.mo
13176 GENCAT=gencat
13178 CATOBJEXT=.gmo
13182 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13183 # -liconv on the link line twice.
13184 case "$LIBINTL" in *$LIBICONV*)
13185 LIBICONV= ;;
13186 esac
13188 # Check whether --enable-secureplt was given.
13189 if test "${enable_secureplt+set}" = set; then :
13190 enableval=$enable_secureplt;
13194 # Check whether --enable-mingw-wildcard was given.
13195 if test "${enable_mingw_wildcard+set}" = set; then :
13196 enableval=$enable_mingw_wildcard;
13197 else
13198 enable_mingw_wildcard=platform
13201 if test x"$enable_mingw_wildcard" != xplatform ; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13205 _ACEOF
13209 # Check whether --enable-large-address-aware was given.
13210 if test "${enable_large_address_aware+set}" = set; then :
13211 enableval=$enable_large_address_aware;
13214 if test x"$enable_large_address_aware" = xyes; then :
13216 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13220 # Check whether --enable-leading-mingw64-underscores was given.
13221 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13222 enableval=$enable_leading_mingw64_underscores;
13225 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13227 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13231 # Check whether --enable-cld was given.
13232 if test "${enable_cld+set}" = set; then :
13233 enableval=$enable_cld;
13234 else
13235 enable_cld=no
13239 # Check whether --enable-frame-pointer was given.
13240 if test "${enable_frame_pointer+set}" = set; then :
13241 enableval=$enable_frame_pointer;
13242 else
13244 case $target_os in
13245 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13246 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13247 enable_frame_pointer=no
13250 enable_frame_pointer=yes
13252 esac
13257 case $target in
13258 i[34567]86-*-* | x86_64-*-*)
13259 if test "x$enable_cld" = xyes; then
13260 tm_defines="${tm_defines} USE_IX86_CLD=1"
13262 if test "x$enable_frame_pointer" = xyes; then
13263 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13266 esac
13268 # Windows32 Registry support for specifying GCC installation paths.
13269 # Check whether --enable-win32-registry was given.
13270 if test "${enable_win32_registry+set}" = set; then :
13271 enableval=$enable_win32_registry;
13275 case $host_os in
13276 win32 | pe | cygwin* | mingw32*)
13277 if test "x$enable_win32_registry" != xno; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13279 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13280 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 ac_func_search_save_LIBS=$LIBS
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char RegOpenKeyExA ();
13295 main ()
13297 return RegOpenKeyExA ();
13299 return 0;
13301 _ACEOF
13302 for ac_lib in '' advapi32; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13305 else
13306 ac_res=-l$ac_lib
13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13309 if ac_fn_cxx_try_link "$LINENO"; then :
13310 ac_cv_search_RegOpenKeyExA=$ac_res
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext
13314 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13315 break
13317 done
13318 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13320 else
13321 ac_cv_search_RegOpenKeyExA=no
13323 rm conftest.$ac_ext
13324 LIBS=$ac_func_search_save_LIBS
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13327 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13328 ac_res=$ac_cv_search_RegOpenKeyExA
13329 if test "$ac_res" != no; then :
13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332 else
13333 enable_win32_registry=no
13338 if test "x$enable_win32_registry" != xno; then
13340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13343 if test "x$enable_win32_registry" != xyes \
13344 && test "x$enable_win32_registry" != x; then
13346 cat >>confdefs.h <<_ACEOF
13347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13348 _ACEOF
13353 esac
13355 # Get an absolute path to the GCC top-level source directory
13356 holddir=`${PWDCMD-pwd}`
13357 cd $srcdir
13358 topdir=`${PWDCMD-pwd}`
13359 cd $holddir
13361 # Conditionalize the makefile for this host machine.
13362 xmake_file=
13363 for f in ${host_xmake_file}
13365 if test -f ${srcdir}/config/$f
13366 then
13367 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13369 done
13371 # Conditionalize the makefile for this target machine.
13372 tmake_file_=
13373 for f in ${tmake_file}
13375 if test -f ${srcdir}/config/$f
13376 then
13377 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13379 done
13380 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13382 out_object_file=`basename $out_file .cc`.o
13383 common_out_object_file=`basename $common_out_file .cc`.o
13385 tm_file_list="options.h"
13386 tm_include_list="options.h insn-constants.h"
13387 for f in $tm_file; do
13388 case $f in
13389 ./* )
13390 f=`echo $f | sed 's/^..//'`
13391 tm_file_list="${tm_file_list} $f"
13392 tm_include_list="${tm_include_list} $f"
13394 defaults.h )
13395 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13396 tm_include_list="${tm_include_list} $f"
13399 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13400 tm_include_list="${tm_include_list} config/$f"
13402 esac
13403 done
13405 tm_p_file_list=
13406 tm_p_include_list=
13407 for f in $tm_p_file; do
13408 case $f in
13409 tm-preds.h )
13410 tm_p_file_list="${tm_p_file_list} $f"
13411 tm_p_include_list="${tm_p_include_list} $f"
13414 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13415 tm_p_include_list="${tm_p_include_list} config/$f"
13416 esac
13417 done
13419 tm_d_file_list=
13420 tm_d_include_list=
13421 for f in $tm_d_file; do
13422 case $f in
13424 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13425 tm_d_include_list="${tm_d_include_list} config/$f"
13427 esac
13428 done
13430 xm_file_list=
13431 xm_include_list=
13432 for f in $xm_file; do
13433 case $f in
13434 ansidecl.h )
13435 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13436 xm_include_list="${xm_include_list} $f"
13438 auto-host.h )
13439 xm_file_list="${xm_file_list} $f"
13440 xm_include_list="${xm_include_list} $f"
13443 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13444 xm_include_list="${xm_include_list} config/$f"
13446 esac
13447 done
13449 host_xm_file_list=
13450 host_xm_include_list=
13451 for f in $host_xm_file; do
13452 case $f in
13453 ansidecl.h )
13454 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13455 host_xm_include_list="${host_xm_include_list} $f"
13457 auto-host.h )
13458 host_xm_file_list="${host_xm_file_list} $f"
13459 host_xm_include_list="${host_xm_include_list} $f"
13462 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13463 host_xm_include_list="${host_xm_include_list} config/$f"
13465 esac
13466 done
13468 build_xm_file_list=
13469 for f in $build_xm_file; do
13470 case $f in
13471 ansidecl.h )
13472 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13473 build_xm_include_list="${build_xm_include_list} $f"
13475 auto-build.h | auto-host.h )
13476 build_xm_file_list="${build_xm_file_list} $f"
13477 build_xm_include_list="${build_xm_include_list} $f"
13480 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13481 build_xm_include_list="${build_xm_include_list} config/$f"
13483 esac
13484 done
13486 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13487 # cross-compiler which does not use the native headers and libraries.
13488 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13489 CROSS=
13490 ALL=all.internal
13491 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13492 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13494 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13495 test x$build != x$host || test "x$with_build_sysroot" != x; then
13496 if test "x$with_build_sysroot" != x; then
13497 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13498 else
13499 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13502 if test x$host != x$target
13503 then
13504 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13505 ALL=all.cross
13506 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13507 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13508 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13511 if test "x$with_build_sysroot" != "x"; then
13512 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13513 elif test "x$with_sysroot" = x; then
13514 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13515 elif test "x$with_sysroot" = xyes; then
13516 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13517 else
13518 target_header_dir="${with_sysroot}${native_system_header_dir}"
13520 else
13521 target_header_dir=${native_system_header_dir}
13524 # If this is a cross-compiler that does not
13525 # have its own set of headers then define
13526 # inhibit_libc
13528 # If this is using newlib, without having the headers available now,
13529 # then define inhibit_libc in LIBGCC2_CFLAGS.
13530 # This prevents libgcc2 from containing any code which requires libc
13531 # support.
13532 : ${inhibit_libc=false}
13533 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13534 test x$with_newlib = xyes ; } &&
13535 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13536 inhibit_libc=true
13540 # When building gcc with a cross-compiler, we need to adjust things so
13541 # that the generator programs are still built with the native compiler.
13542 # Also, we cannot run fixincludes.
13544 # These are the normal (build=host) settings:
13545 CC_FOR_BUILD='$(CC)'
13546 CXX_FOR_BUILD='$(CXX)'
13547 BUILD_CFLAGS='$(ALL_CFLAGS)'
13548 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13549 BUILD_LDFLAGS='$(LDFLAGS)'
13550 STMP_FIXINC=stmp-fixinc
13552 # And these apply if build != host, or we are generating coverage data
13553 if test x$build != x$host || test "x$coverage_flags" != x
13554 then
13555 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13556 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13557 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13561 if test x$enable_fixincludes = xno;
13562 then
13563 STMP_FIXINC=''
13566 # Expand extra_headers to include complete path.
13567 # This substitutes for lots of t-* files.
13568 extra_headers_list=
13569 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13570 for file in ${extra_headers} ; do
13571 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13572 done
13574 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13575 if test x"$use_gcc_tgmath" = xyes
13576 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13579 # Define collect2 in Makefile.
13580 case $host_can_use_collect2 in
13581 no) collect2= ;;
13582 *) collect2='collect2$(exeext)' ;;
13583 esac
13586 # Add a definition of USE_COLLECT2 if system wants one.
13587 case $use_collect2 in
13588 no) use_collect2= ;;
13589 "") ;;
13591 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13592 xm_defines="${xm_defines} USE_COLLECT2"
13593 case $host_can_use_collect2 in
13595 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13597 esac
13599 esac
13602 cat >>confdefs.h <<_ACEOF
13603 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13604 _ACEOF
13607 # ---------------------------
13608 # Assembler & linker features
13609 # ---------------------------
13611 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13612 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13613 # However when ld-new is first executed from the build tree, libtool will
13614 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13615 # to the build tree. While doing this we need to use the previous-stage
13616 # linker, or we have an infinite loop. The presence of a shell script as
13617 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13618 # the gcc/collect-ld script. So we need to know how libtool works, or
13619 # exec-tool will fail.
13622 case `pwd` in
13623 *\ * | *\ *)
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13626 esac
13630 macro_version='2.2.7a'
13631 macro_revision='1.3134'
13645 ltmain="$ac_aux_dir/ltmain.sh"
13647 # Backslashify metacharacters that are still active within
13648 # double-quoted strings.
13649 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13651 # Same as above, but do not quote variable references.
13652 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13654 # Sed substitution to delay expansion of an escaped shell variable in a
13655 # double_quote_subst'ed string.
13656 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13658 # Sed substitution to delay expansion of an escaped single quote.
13659 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13661 # Sed substitution to avoid accidental globbing in evaled expressions
13662 no_glob_subst='s/\*/\\\*/g'
13664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13669 $as_echo_n "checking how to print strings... " >&6; }
13670 # Test print first, because it will be a builtin if present.
13671 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13672 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13673 ECHO='print -r --'
13674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13675 ECHO='printf %s\n'
13676 else
13677 # Use this function as a fallback that always works.
13678 func_fallback_echo ()
13680 eval 'cat <<_LTECHO_EOF
13682 _LTECHO_EOF'
13684 ECHO='func_fallback_echo'
13687 # func_echo_all arg...
13688 # Invoke $ECHO with all args, space-separated.
13689 func_echo_all ()
13691 $ECHO ""
13694 case "$ECHO" in
13695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13696 $as_echo "printf" >&6; } ;;
13697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13698 $as_echo "print -r" >&6; } ;;
13699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13700 $as_echo "cat" >&6; } ;;
13701 esac
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13718 if ${ac_cv_path_SED+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13722 for ac_i in 1 2 3 4 5 6 7; do
13723 ac_script="$ac_script$as_nl$ac_script"
13724 done
13725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13726 { ac_script=; unset ac_script;}
13727 if test -z "$SED"; then
13728 ac_path_SED_found=false
13729 # Loop through the user's path and test for each of PROGNAME-LIST
13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 for ac_prog in sed gsed; do
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13738 as_fn_executable_p "$ac_path_SED" || continue
13739 # Check for GNU ac_path_SED and select it if it is found.
13740 # Check for GNU $ac_path_SED
13741 case `"$ac_path_SED" --version 2>&1` in
13742 *GNU*)
13743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13745 ac_count=0
13746 $as_echo_n 0123456789 >"conftest.in"
13747 while :
13749 cat "conftest.in" "conftest.in" >"conftest.tmp"
13750 mv "conftest.tmp" "conftest.in"
13751 cp "conftest.in" "conftest.nl"
13752 $as_echo '' >> "conftest.nl"
13753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13755 as_fn_arith $ac_count + 1 && ac_count=$as_val
13756 if test $ac_count -gt ${ac_path_SED_max-0}; then
13757 # Best one so far, save it but keep looking for a better one
13758 ac_cv_path_SED="$ac_path_SED"
13759 ac_path_SED_max=$ac_count
13761 # 10*(2^10) chars as input seems more than enough
13762 test $ac_count -gt 10 && break
13763 done
13764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13765 esac
13767 $ac_path_SED_found && break 3
13768 done
13769 done
13770 done
13771 IFS=$as_save_IFS
13772 if test -z "$ac_cv_path_SED"; then
13773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13775 else
13776 ac_cv_path_SED=$SED
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13781 $as_echo "$ac_cv_path_SED" >&6; }
13782 SED="$ac_cv_path_SED"
13783 rm -f conftest.sed
13785 test -z "$SED" && SED=sed
13786 Xsed="$SED -e 1s/^X//"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13799 $as_echo_n "checking for fgrep... " >&6; }
13800 if ${ac_cv_path_FGREP+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13804 then ac_cv_path_FGREP="$GREP -F"
13805 else
13806 if test -z "$FGREP"; then
13807 ac_path_FGREP_found=false
13808 # Loop through the user's path and test for each of PROGNAME-LIST
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_prog in fgrep; do
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13817 as_fn_executable_p "$ac_path_FGREP" || continue
13818 # Check for GNU ac_path_FGREP and select it if it is found.
13819 # Check for GNU $ac_path_FGREP
13820 case `"$ac_path_FGREP" --version 2>&1` in
13821 *GNU*)
13822 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13824 ac_count=0
13825 $as_echo_n 0123456789 >"conftest.in"
13826 while :
13828 cat "conftest.in" "conftest.in" >"conftest.tmp"
13829 mv "conftest.tmp" "conftest.in"
13830 cp "conftest.in" "conftest.nl"
13831 $as_echo 'FGREP' >> "conftest.nl"
13832 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13834 as_fn_arith $ac_count + 1 && ac_count=$as_val
13835 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13836 # Best one so far, save it but keep looking for a better one
13837 ac_cv_path_FGREP="$ac_path_FGREP"
13838 ac_path_FGREP_max=$ac_count
13840 # 10*(2^10) chars as input seems more than enough
13841 test $ac_count -gt 10 && break
13842 done
13843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13844 esac
13846 $ac_path_FGREP_found && break 3
13847 done
13848 done
13849 done
13850 IFS=$as_save_IFS
13851 if test -z "$ac_cv_path_FGREP"; then
13852 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13854 else
13855 ac_cv_path_FGREP=$FGREP
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13861 $as_echo "$ac_cv_path_FGREP" >&6; }
13862 FGREP="$ac_cv_path_FGREP"
13865 test -z "$GREP" && GREP=grep
13885 # Check whether --with-gnu-ld was given.
13886 if test "${with_gnu_ld+set}" = set; then :
13887 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13888 else
13889 with_gnu_ld=no
13892 ac_prog=ld
13893 if test "$GCC" = yes; then
13894 # Check if gcc -print-prog-name=ld gives a path.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13896 $as_echo_n "checking for ld used by $CC... " >&6; }
13897 case $host in
13898 *-*-mingw*)
13899 # gcc leaves a trailing carriage return which upsets mingw
13900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13903 esac
13904 case $ac_prog in
13905 # Accept absolute paths.
13906 [\\/]* | ?:[\\/]*)
13907 re_direlt='/[^/][^/]*/\.\./'
13908 # Canonicalize the pathname of ld
13909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13912 done
13913 test -z "$LD" && LD="$ac_prog"
13916 # If it fails, then pretend we aren't using GCC.
13917 ac_prog=ld
13920 # If it is relative, then search for the first ld in PATH.
13921 with_gnu_ld=unknown
13923 esac
13924 elif test "$with_gnu_ld" = yes; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13926 $as_echo_n "checking for GNU ld... " >&6; }
13927 else
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13929 $as_echo_n "checking for non-GNU ld... " >&6; }
13931 if ${lt_cv_path_LD+:} false; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 if test -z "$LD"; then
13935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13936 for ac_dir in $PATH; do
13937 IFS="$lt_save_ifs"
13938 test -z "$ac_dir" && ac_dir=.
13939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13940 lt_cv_path_LD="$ac_dir/$ac_prog"
13941 # Check to see if the program is GNU ld. I'd rather use --version,
13942 # but apparently some variants of GNU ld only accept -v.
13943 # Break only if it was the GNU/non-GNU ld that we prefer.
13944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13945 *GNU* | *'with BFD'*)
13946 test "$with_gnu_ld" != no && break
13949 test "$with_gnu_ld" != yes && break
13951 esac
13953 done
13954 IFS="$lt_save_ifs"
13955 else
13956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13960 LD="$lt_cv_path_LD"
13961 if test -n "$LD"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13963 $as_echo "$LD" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13971 if ${lt_cv_prog_gnu_ld+:} false; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13975 case `$LD -v 2>&1 </dev/null` in
13976 *GNU* | *'with BFD'*)
13977 lt_cv_prog_gnu_ld=yes
13980 lt_cv_prog_gnu_ld=no
13982 esac
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13986 with_gnu_ld=$lt_cv_prog_gnu_ld
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13998 if ${lt_cv_path_NM+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 if test -n "$NM"; then
14002 # Let the user override the test.
14003 lt_cv_path_NM="$NM"
14004 else
14005 lt_nm_to_check="${ac_tool_prefix}nm"
14006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14007 lt_nm_to_check="$lt_nm_to_check nm"
14009 for lt_tmp_nm in $lt_nm_to_check; do
14010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14012 IFS="$lt_save_ifs"
14013 test -z "$ac_dir" && ac_dir=.
14014 tmp_nm="$ac_dir/$lt_tmp_nm"
14015 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14016 # Check to see if the nm accepts a BSD-compat flag.
14017 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14018 # nm: unknown option "B" ignored
14019 # Tru64's nm complains that /dev/null is an invalid object file
14020 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14021 */dev/null* | *'Invalid file or object type'*)
14022 lt_cv_path_NM="$tmp_nm -B"
14023 break
14026 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14027 */dev/null*)
14028 lt_cv_path_NM="$tmp_nm -p"
14029 break
14032 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14033 continue # so that we can try to find one that supports BSD flags
14035 esac
14037 esac
14039 done
14040 IFS="$lt_save_ifs"
14041 done
14042 : ${lt_cv_path_NM=no}
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14046 $as_echo "$lt_cv_path_NM" >&6; }
14047 if test "$lt_cv_path_NM" != "no"; then
14048 NM="$lt_cv_path_NM"
14049 else
14050 # Didn't find any BSD compatible name lister, look for dumpbin.
14051 if test -n "$DUMPBIN"; then :
14052 # Let the user override the test.
14053 else
14054 if test -n "$ac_tool_prefix"; then
14055 for ac_prog in dumpbin "link -dump"
14057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if ${ac_cv_prog_DUMPBIN+:} false; then :
14062 $as_echo_n "(cached) " >&6
14063 else
14064 if test -n "$DUMPBIN"; then
14065 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14084 DUMPBIN=$ac_cv_prog_DUMPBIN
14085 if test -n "$DUMPBIN"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14087 $as_echo "$DUMPBIN" >&6; }
14088 else
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14094 test -n "$DUMPBIN" && break
14095 done
14097 if test -z "$DUMPBIN"; then
14098 ac_ct_DUMPBIN=$DUMPBIN
14099 for ac_prog in dumpbin "link -dump"
14101 # Extract the first word of "$ac_prog", so it can be a program name with args.
14102 set dummy $ac_prog; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test -n "$ac_ct_DUMPBIN"; then
14109 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14118 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14122 done
14123 done
14124 IFS=$as_save_IFS
14128 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14129 if test -n "$ac_ct_DUMPBIN"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14131 $as_echo "$ac_ct_DUMPBIN" >&6; }
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14138 test -n "$ac_ct_DUMPBIN" && break
14139 done
14141 if test "x$ac_ct_DUMPBIN" = x; then
14142 DUMPBIN=":"
14143 else
14144 case $cross_compiling:$ac_tool_warned in
14145 yes:)
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14148 ac_tool_warned=yes ;;
14149 esac
14150 DUMPBIN=$ac_ct_DUMPBIN
14154 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14155 *COFF*)
14156 DUMPBIN="$DUMPBIN -symbols"
14159 DUMPBIN=:
14161 esac
14164 if test "$DUMPBIN" != ":"; then
14165 NM="$DUMPBIN"
14168 test -z "$NM" && NM=nm
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14176 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14177 if ${lt_cv_nm_interface+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 lt_cv_nm_interface="BSD nm"
14181 echo "int some_variable = 0;" > conftest.$ac_ext
14182 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14183 (eval "$ac_compile" 2>conftest.err)
14184 cat conftest.err >&5
14185 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14186 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14187 cat conftest.err >&5
14188 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14189 cat conftest.out >&5
14190 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14191 lt_cv_nm_interface="MS dumpbin"
14193 rm -f conftest*
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14196 $as_echo "$lt_cv_nm_interface" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14199 $as_echo_n "checking whether ln -s works... " >&6; }
14200 LN_S=$as_ln_s
14201 if test "$LN_S" = "ln -s"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203 $as_echo "yes" >&6; }
14204 else
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14206 $as_echo "no, using $LN_S" >&6; }
14209 # find the maximum length of command line arguments
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14211 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14212 if ${lt_cv_sys_max_cmd_len+:} false; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14216 teststring="ABCD"
14218 case $build_os in
14219 msdosdjgpp*)
14220 # On DJGPP, this test can blow up pretty badly due to problems in libc
14221 # (any single argument exceeding 2000 bytes causes a buffer overrun
14222 # during glob expansion). Even if it were fixed, the result of this
14223 # check would be larger than it should be.
14224 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14227 gnu*)
14228 # Under GNU Hurd, this test is not required because there is
14229 # no limit to the length of command line arguments.
14230 # Libtool will interpret -1 as no limit whatsoever
14231 lt_cv_sys_max_cmd_len=-1;
14234 cygwin* | mingw* | cegcc*)
14235 # On Win9x/ME, this test blows up -- it succeeds, but takes
14236 # about 5 minutes as the teststring grows exponentially.
14237 # Worse, since 9x/ME are not pre-emptively multitasking,
14238 # you end up with a "frozen" computer, even though with patience
14239 # the test eventually succeeds (with a max line length of 256k).
14240 # Instead, let's just punt: use the minimum linelength reported by
14241 # all of the supported platforms: 8192 (on NT/2K/XP).
14242 lt_cv_sys_max_cmd_len=8192;
14245 mint*)
14246 # On MiNT this can take a long time and run out of memory.
14247 lt_cv_sys_max_cmd_len=8192;
14250 amigaos*)
14251 # On AmigaOS with pdksh, this test takes hours, literally.
14252 # So we just punt and use a minimum line length of 8192.
14253 lt_cv_sys_max_cmd_len=8192;
14256 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14257 # This has been around since 386BSD, at least. Likely further.
14258 if test -x /sbin/sysctl; then
14259 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14260 elif test -x /usr/sbin/sysctl; then
14261 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14262 else
14263 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14265 # And add a safety zone
14266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14270 interix*)
14271 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14272 lt_cv_sys_max_cmd_len=196608
14275 osf*)
14276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14278 # nice to cause kernel panics so lets avoid the loop below.
14279 # First set a reasonable default.
14280 lt_cv_sys_max_cmd_len=16384
14282 if test -x /sbin/sysconfig; then
14283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14284 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14285 esac
14288 sco3.2v5*)
14289 lt_cv_sys_max_cmd_len=102400
14291 sysv5* | sco5v6* | sysv4.2uw2*)
14292 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14293 if test -n "$kargmax"; then
14294 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14295 else
14296 lt_cv_sys_max_cmd_len=32768
14300 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14301 if test -n "$lt_cv_sys_max_cmd_len"; then
14302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14304 else
14305 # Make teststring a little bigger before we do anything with it.
14306 # a 1K string should be a reasonable start.
14307 for i in 1 2 3 4 5 6 7 8 ; do
14308 teststring=$teststring$teststring
14309 done
14310 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14311 # If test is not a shell built-in, we'll probably end up computing a
14312 # maximum length that is only half of the actual maximum length, but
14313 # we can't tell.
14314 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14315 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14316 test $i != 17 # 1/2 MB should be enough
14318 i=`expr $i + 1`
14319 teststring=$teststring$teststring
14320 done
14321 # Only check the string length outside the loop.
14322 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14323 teststring=
14324 # Add a significant safety factor because C++ compilers can tack on
14325 # massive amounts of additional arguments before passing them to the
14326 # linker. It appears as though 1/2 is a usable value.
14327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14330 esac
14334 if test -n $lt_cv_sys_max_cmd_len ; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14336 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14337 else
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14339 $as_echo "none" >&6; }
14341 max_cmd_len=$lt_cv_sys_max_cmd_len
14348 : ${CP="cp -f"}
14349 : ${MV="mv -f"}
14350 : ${RM="rm -f"}
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14353 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14354 # Try some XSI features
14355 xsi_shell=no
14356 ( _lt_dummy="a/b/c"
14357 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14358 = c,a/b,, \
14359 && eval 'test $(( 1 + 1 )) -eq 2 \
14360 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14361 && xsi_shell=yes
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14363 $as_echo "$xsi_shell" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14367 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14368 lt_shell_append=no
14369 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14370 >/dev/null 2>&1 \
14371 && lt_shell_append=yes
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14373 $as_echo "$lt_shell_append" >&6; }
14376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14377 lt_unset=unset
14378 else
14379 lt_unset=false
14386 # test EBCDIC or ASCII
14387 case `echo X|tr X '\101'` in
14388 A) # ASCII based system
14389 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14390 lt_SP2NL='tr \040 \012'
14391 lt_NL2SP='tr \015\012 \040\040'
14393 *) # EBCDIC based system
14394 lt_SP2NL='tr \100 \n'
14395 lt_NL2SP='tr \r\n \100\100'
14397 esac
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14408 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14409 if ${lt_cv_ld_reload_flag+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 lt_cv_ld_reload_flag='-r'
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14415 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14416 reload_flag=$lt_cv_ld_reload_flag
14417 case $reload_flag in
14418 "" | " "*) ;;
14419 *) reload_flag=" $reload_flag" ;;
14420 esac
14421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14422 case $host_os in
14423 darwin*)
14424 if test "$GCC" = yes; then
14425 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14426 else
14427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14430 esac
14440 if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14442 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_prog_OBJDUMP+:} false; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 if test -n "$OBJDUMP"; then
14449 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14450 else
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14454 IFS=$as_save_IFS
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14460 break 2
14462 done
14463 done
14464 IFS=$as_save_IFS
14468 OBJDUMP=$ac_cv_prog_OBJDUMP
14469 if test -n "$OBJDUMP"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14471 $as_echo "$OBJDUMP" >&6; }
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14479 if test -z "$ac_cv_prog_OBJDUMP"; then
14480 ac_ct_OBJDUMP=$OBJDUMP
14481 # Extract the first word of "objdump", so it can be a program name with args.
14482 set dummy objdump; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 $as_echo_n "checking for $ac_word... " >&6; }
14485 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 if test -n "$ac_ct_OBJDUMP"; then
14489 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14490 else
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14494 IFS=$as_save_IFS
14495 test -z "$as_dir" && as_dir=.
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14500 break 2
14502 done
14503 done
14504 IFS=$as_save_IFS
14508 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14509 if test -n "$ac_ct_OBJDUMP"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14511 $as_echo "$ac_ct_OBJDUMP" >&6; }
14512 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14517 if test "x$ac_ct_OBJDUMP" = x; then
14518 OBJDUMP="false"
14519 else
14520 case $cross_compiling:$ac_tool_warned in
14521 yes:)
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14524 ac_tool_warned=yes ;;
14525 esac
14526 OBJDUMP=$ac_ct_OBJDUMP
14528 else
14529 OBJDUMP="$ac_cv_prog_OBJDUMP"
14532 test -z "$OBJDUMP" && OBJDUMP=objdump
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14543 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14544 if ${lt_cv_deplibs_check_method+:} false; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547 lt_cv_file_magic_cmd='$MAGIC_CMD'
14548 lt_cv_file_magic_test_file=
14549 lt_cv_deplibs_check_method='unknown'
14550 # Need to set the preceding variable on all platforms that support
14551 # interlibrary dependencies.
14552 # 'none' -- dependencies not supported.
14553 # `unknown' -- same as none, but documents that we really don't know.
14554 # 'pass_all' -- all dependencies passed with no checks.
14555 # 'test_compile' -- check by making test program.
14556 # 'file_magic [[regex]]' -- check by looking for files in library path
14557 # which responds to the $file_magic_cmd with a given extended regex.
14558 # If you have `file' or equivalent on your system and you're not sure
14559 # whether `pass_all' will *always* work, you probably want this one.
14561 case $host_os in
14562 aix[4-9]*)
14563 lt_cv_deplibs_check_method=pass_all
14566 beos*)
14567 lt_cv_deplibs_check_method=pass_all
14570 bsdi[45]*)
14571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14572 lt_cv_file_magic_cmd='/usr/bin/file -L'
14573 lt_cv_file_magic_test_file=/shlib/libc.so
14576 cygwin*)
14577 # func_win32_libid is a shell function defined in ltmain.sh
14578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14579 lt_cv_file_magic_cmd='func_win32_libid'
14582 mingw* | pw32*)
14583 # Base MSYS/MinGW do not provide the 'file' command needed by
14584 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14585 # unless we find 'file', for example because we are cross-compiling.
14586 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14587 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14589 lt_cv_file_magic_cmd='func_win32_libid'
14590 else
14591 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14592 lt_cv_file_magic_cmd='$OBJDUMP -f'
14596 cegcc*)
14597 # use the weaker test based on 'objdump'. See mingw*.
14598 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14599 lt_cv_file_magic_cmd='$OBJDUMP -f'
14602 darwin* | rhapsody*)
14603 lt_cv_deplibs_check_method=pass_all
14606 freebsd* | dragonfly*)
14607 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14608 case $host_cpu in
14609 i*86 )
14610 # Not sure whether the presence of OpenBSD here was a mistake.
14611 # Let's accept both of them until this is cleared up.
14612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14613 lt_cv_file_magic_cmd=/usr/bin/file
14614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14616 esac
14617 else
14618 lt_cv_deplibs_check_method=pass_all
14622 gnu*)
14623 lt_cv_deplibs_check_method=pass_all
14626 haiku*)
14627 lt_cv_deplibs_check_method=pass_all
14630 hpux10.20* | hpux11*)
14631 lt_cv_file_magic_cmd=/usr/bin/file
14632 case $host_cpu in
14633 ia64*)
14634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14637 hppa*64*)
14638 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]'
14639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14645 esac
14648 interix[3-9]*)
14649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14653 irix5* | irix6* | nonstopux*)
14654 case $LD in
14655 *-32|*"-32 ") libmagic=32-bit;;
14656 *-n32|*"-n32 ") libmagic=N32;;
14657 *-64|*"-64 ") libmagic=64-bit;;
14658 *) libmagic=never-match;;
14659 esac
14660 lt_cv_deplibs_check_method=pass_all
14663 # This must be Linux ELF.
14664 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14665 lt_cv_deplibs_check_method=pass_all
14668 netbsd*)
14669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14671 else
14672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14676 newos6*)
14677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14678 lt_cv_file_magic_cmd=/usr/bin/file
14679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14682 *nto* | *qnx*)
14683 lt_cv_deplibs_check_method=pass_all
14686 openbsd*)
14687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14689 else
14690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14694 osf3* | osf4* | osf5*)
14695 lt_cv_deplibs_check_method=pass_all
14698 rdos*)
14699 lt_cv_deplibs_check_method=pass_all
14702 solaris*)
14703 lt_cv_deplibs_check_method=pass_all
14706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14707 lt_cv_deplibs_check_method=pass_all
14710 sysv4 | sysv4.3*)
14711 case $host_vendor in
14712 motorola)
14713 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]'
14714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14716 ncr)
14717 lt_cv_deplibs_check_method=pass_all
14719 sequent)
14720 lt_cv_file_magic_cmd='/bin/file'
14721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14723 sni)
14724 lt_cv_file_magic_cmd='/bin/file'
14725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14726 lt_cv_file_magic_test_file=/lib/libc.so
14728 siemens)
14729 lt_cv_deplibs_check_method=pass_all
14732 lt_cv_deplibs_check_method=pass_all
14734 esac
14737 tpf*)
14738 lt_cv_deplibs_check_method=pass_all
14740 vxworks*)
14741 # Assume VxWorks cross toolchains are built on Linux, possibly
14742 # as canadian for Windows hosts.
14743 lt_cv_deplibs_check_method=pass_all
14745 esac
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14750 file_magic_cmd=$lt_cv_file_magic_cmd
14751 deplibs_check_method=$lt_cv_deplibs_check_method
14752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14765 if test -n "$ac_tool_prefix"; then
14766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}ar; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_prog_AR+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 if test -n "$AR"; then
14774 ac_cv_prog_AR="$AR" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14779 IFS=$as_save_IFS
14780 test -z "$as_dir" && as_dir=.
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_AR="${ac_tool_prefix}ar"
14784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785 break 2
14787 done
14788 done
14789 IFS=$as_save_IFS
14793 AR=$ac_cv_prog_AR
14794 if test -n "$AR"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14796 $as_echo "$AR" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14804 if test -z "$ac_cv_prog_AR"; then
14805 ac_ct_AR=$AR
14806 # Extract the first word of "ar", so it can be a program name with args.
14807 set dummy ar; ac_word=$2
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14809 $as_echo_n "checking for $ac_word... " >&6; }
14810 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14811 $as_echo_n "(cached) " >&6
14812 else
14813 if test -n "$ac_ct_AR"; then
14814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14815 else
14816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14817 for as_dir in $PATH
14819 IFS=$as_save_IFS
14820 test -z "$as_dir" && as_dir=.
14821 for ac_exec_ext in '' $ac_executable_extensions; do
14822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14823 ac_cv_prog_ac_ct_AR="ar"
14824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14825 break 2
14827 done
14828 done
14829 IFS=$as_save_IFS
14833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14834 if test -n "$ac_ct_AR"; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14836 $as_echo "$ac_ct_AR" >&6; }
14837 else
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839 $as_echo "no" >&6; }
14842 if test "x$ac_ct_AR" = x; then
14843 AR="false"
14844 else
14845 case $cross_compiling:$ac_tool_warned in
14846 yes:)
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14849 ac_tool_warned=yes ;;
14850 esac
14851 AR=$ac_ct_AR
14853 else
14854 AR="$ac_cv_prog_AR"
14857 test -z "$AR" && AR=ar
14858 test -z "$AR_FLAGS" && AR_FLAGS=cru
14870 if test -n "$ac_tool_prefix"; then
14871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14872 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 if test -n "$STRIP"; then
14879 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
14899 if test -n "$STRIP"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14901 $as_echo "$STRIP" >&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_STRIP"; then
14910 ac_ct_STRIP=$STRIP
14911 # Extract the first word of "strip", so it can be a program name with args.
14912 set dummy strip; 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_STRIP+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 if test -n "$ac_ct_STRIP"; then
14919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
14939 if test -n "$ac_ct_STRIP"; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14941 $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
14948 STRIP=":"
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 STRIP=$ac_ct_STRIP
14958 else
14959 STRIP="$ac_cv_prog_STRIP"
14962 test -z "$STRIP" && STRIP=:
14969 if test -n "$ac_tool_prefix"; then
14970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 $as_echo_n "checking for $ac_word... " >&6; }
14974 if ${ac_cv_prog_RANLIB+:} false; then :
14975 $as_echo_n "(cached) " >&6
14976 else
14977 if test -n "$RANLIB"; then
14978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14979 else
14980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981 for as_dir in $PATH
14983 IFS=$as_save_IFS
14984 test -z "$as_dir" && as_dir=.
14985 for ac_exec_ext in '' $ac_executable_extensions; do
14986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14989 break 2
14991 done
14992 done
14993 IFS=$as_save_IFS
14997 RANLIB=$ac_cv_prog_RANLIB
14998 if test -n "$RANLIB"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15000 $as_echo "$RANLIB" >&6; }
15001 else
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 $as_echo "no" >&6; }
15008 if test -z "$ac_cv_prog_RANLIB"; then
15009 ac_ct_RANLIB=$RANLIB
15010 # Extract the first word of "ranlib", so it can be a program name with args.
15011 set dummy ranlib; ac_word=$2
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15013 $as_echo_n "checking for $ac_word... " >&6; }
15014 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 if test -n "$ac_ct_RANLIB"; then
15018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15019 else
15020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15021 for as_dir in $PATH
15023 IFS=$as_save_IFS
15024 test -z "$as_dir" && as_dir=.
15025 for ac_exec_ext in '' $ac_executable_extensions; do
15026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15027 ac_cv_prog_ac_ct_RANLIB="ranlib"
15028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15029 break 2
15031 done
15032 done
15033 IFS=$as_save_IFS
15037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15038 if test -n "$ac_ct_RANLIB"; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15040 $as_echo "$ac_ct_RANLIB" >&6; }
15041 else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043 $as_echo "no" >&6; }
15046 if test "x$ac_ct_RANLIB" = x; then
15047 RANLIB=":"
15048 else
15049 case $cross_compiling:$ac_tool_warned in
15050 yes:)
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15053 ac_tool_warned=yes ;;
15054 esac
15055 RANLIB=$ac_ct_RANLIB
15057 else
15058 RANLIB="$ac_cv_prog_RANLIB"
15061 test -z "$RANLIB" && RANLIB=:
15068 # Determine commands to create old-style static archives.
15069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15070 old_postinstall_cmds='chmod 644 $oldlib'
15071 old_postuninstall_cmds=
15073 if test -n "$RANLIB"; then
15074 case $host_os in
15075 openbsd*)
15076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15081 esac
15082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15085 case $host_os in
15086 darwin*)
15087 lock_old_archive_extraction=yes ;;
15089 lock_old_archive_extraction=no ;;
15090 esac
15130 # If no C compiler was specified, use CC.
15131 LTCC=${LTCC-"$CC"}
15133 # If no C compiler flags were specified, use CFLAGS.
15134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15136 # Allow CC to be a program name with arguments.
15137 compiler=$CC
15140 # Check for command to grab the raw symbol name followed by C symbol from nm.
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15142 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15143 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15147 # These are sane defaults that work on at least a few old systems.
15148 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15150 # Character class describing NM global symbol codes.
15151 symcode='[BCDEGRST]'
15153 # Regexp to match symbols that can be accessed directly from C.
15154 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15156 # Define system-specific variables.
15157 case $host_os in
15158 aix*)
15159 symcode='[BCDT]'
15161 cygwin* | mingw* | pw32* | cegcc*)
15162 symcode='[ABCDGISTW]'
15164 hpux*)
15165 if test "$host_cpu" = ia64; then
15166 symcode='[ABCDEGRST]'
15169 irix* | nonstopux*)
15170 symcode='[BCDEGRST]'
15172 osf*)
15173 symcode='[BCDEGQRST]'
15175 solaris*)
15176 symcode='[BDRT]'
15178 sco3.2v5*)
15179 symcode='[DT]'
15181 sysv4.2uw2*)
15182 symcode='[DT]'
15184 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15185 symcode='[ABDT]'
15187 sysv4)
15188 symcode='[DFNSTU]'
15190 esac
15192 # If we're using GNU nm, then use its standard symbol codes.
15193 case `$NM -V 2>&1` in
15194 *GNU* | *'with BFD'*)
15195 symcode='[ABCDGIRSTW]' ;;
15196 esac
15198 # Transform an extracted symbol line into a proper C declaration.
15199 # Some systems (esp. on ia64) link data and code symbols differently,
15200 # so use this general approach.
15201 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15203 # Transform an extracted symbol line into symbol name and symbol address
15204 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15205 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'"
15207 # Handle CRLF in mingw tool chain
15208 opt_cr=
15209 case $build_os in
15210 mingw*)
15211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15213 esac
15215 # Try without a prefix underscore, then with it.
15216 for ac_symprfx in "" "_"; do
15218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15219 symxfrm="\\1 $ac_symprfx\\2 \\2"
15221 # Write the raw and C identifiers.
15222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15223 # Fake it for dumpbin and say T for any non-static function
15224 # and D for any global variable.
15225 # Also find C++ and __fastcall symbols from MSVC++,
15226 # which start with @ or ?.
15227 lt_cv_sys_global_symbol_pipe="$AWK '"\
15228 " {last_section=section; section=\$ 3};"\
15229 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15230 " \$ 0!~/External *\|/{next};"\
15231 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15232 " {if(hide[section]) next};"\
15233 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15234 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15235 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15236 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15237 " ' prfx=^$ac_symprfx"
15238 else
15239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15242 # Check to see that the pipe works correctly.
15243 pipe_works=no
15245 rm -f conftest*
15246 cat > conftest.$ac_ext <<_LT_EOF
15247 #ifdef __cplusplus
15248 extern "C" {
15249 #endif
15250 char nm_test_var;
15251 void nm_test_func(void);
15252 void nm_test_func(void){}
15253 #ifdef __cplusplus
15255 #endif
15256 int main(){nm_test_var='a';nm_test_func();return(0);}
15257 _LT_EOF
15259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15260 (eval $ac_compile) 2>&5
15261 ac_status=$?
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }; then
15264 # Now try to grab the symbols.
15265 nlist=conftest.nm
15266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15268 ac_status=$?
15269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15270 test $ac_status = 0; } && test -s "$nlist"; then
15271 # Try sorting and uniquifying the output.
15272 if sort "$nlist" | uniq > "$nlist"T; then
15273 mv -f "$nlist"T "$nlist"
15274 else
15275 rm -f "$nlist"T
15278 # Make sure that we snagged all the symbols we need.
15279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15281 cat <<_LT_EOF > conftest.$ac_ext
15282 #ifdef __cplusplus
15283 extern "C" {
15284 #endif
15286 _LT_EOF
15287 # Now generate the symbol file.
15288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15290 cat <<_LT_EOF >> conftest.$ac_ext
15292 /* The mapping between symbol names and symbols. */
15293 const struct {
15294 const char *name;
15295 void *address;
15297 lt__PROGRAM__LTX_preloaded_symbols[] =
15299 { "@PROGRAM@", (void *) 0 },
15300 _LT_EOF
15301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15302 cat <<\_LT_EOF >> conftest.$ac_ext
15303 {0, (void *) 0}
15306 /* This works around a problem in FreeBSD linker */
15307 #ifdef FREEBSD_WORKAROUND
15308 static const void *lt_preloaded_setup() {
15309 return lt__PROGRAM__LTX_preloaded_symbols;
15311 #endif
15313 #ifdef __cplusplus
15315 #endif
15316 _LT_EOF
15317 # Now try linking the two files.
15318 mv conftest.$ac_objext conftstm.$ac_objext
15319 lt_save_LIBS="$LIBS"
15320 lt_save_CFLAGS="$CFLAGS"
15321 LIBS="conftstm.$ac_objext"
15322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15328 pipe_works=yes
15330 LIBS="$lt_save_LIBS"
15331 CFLAGS="$lt_save_CFLAGS"
15332 else
15333 echo "cannot find nm_test_func in $nlist" >&5
15335 else
15336 echo "cannot find nm_test_var in $nlist" >&5
15338 else
15339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15341 else
15342 echo "$progname: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15345 rm -rf conftest* conftst*
15347 # Do not use the global_symbol_pipe unless it works.
15348 if test "$pipe_works" = yes; then
15349 break
15350 else
15351 lt_cv_sys_global_symbol_pipe=
15353 done
15357 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15358 lt_cv_sys_global_symbol_to_cdecl=
15360 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15362 $as_echo "failed" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15365 $as_echo "ok" >&6; }
15389 # Check whether --enable-libtool-lock was given.
15390 if test "${enable_libtool_lock+set}" = set; then :
15391 enableval=$enable_libtool_lock;
15394 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15396 # Some flags need to be propagated to the compiler or linker for good
15397 # libtool support.
15398 case $host in
15399 ia64-*-hpux*)
15400 # Find out which ABI we are using.
15401 echo 'int i;' > conftest.$ac_ext
15402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15403 (eval $ac_compile) 2>&5
15404 ac_status=$?
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; then
15407 case `/usr/bin/file conftest.$ac_objext` in
15408 *ELF-32*)
15409 HPUX_IA64_MODE="32"
15411 *ELF-64*)
15412 HPUX_IA64_MODE="64"
15414 esac
15416 rm -rf conftest*
15418 *-*-irix6*)
15419 # Find out which ABI we are using.
15420 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15422 (eval $ac_compile) 2>&5
15423 ac_status=$?
15424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425 test $ac_status = 0; }; then
15426 if test "$lt_cv_prog_gnu_ld" = yes; then
15427 case `/usr/bin/file conftest.$ac_objext` in
15428 *32-bit*)
15429 LD="${LD-ld} -melf32bsmip"
15431 *N32*)
15432 LD="${LD-ld} -melf32bmipn32"
15434 *64-bit*)
15435 LD="${LD-ld} -melf64bmip"
15437 esac
15438 else
15439 case `/usr/bin/file conftest.$ac_objext` in
15440 *32-bit*)
15441 LD="${LD-ld} -32"
15443 *N32*)
15444 LD="${LD-ld} -n32"
15446 *64-bit*)
15447 LD="${LD-ld} -64"
15449 esac
15452 rm -rf conftest*
15455 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15456 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15457 # Find out which ABI we are using.
15458 echo 'int i;' > conftest.$ac_ext
15459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15460 (eval $ac_compile) 2>&5
15461 ac_status=$?
15462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463 test $ac_status = 0; }; then
15464 case `/usr/bin/file conftest.o` in
15465 *32-bit*)
15466 case $host in
15467 x86_64-*kfreebsd*-gnu)
15468 LD="${LD-ld} -m elf_i386_fbsd"
15470 x86_64-*linux*)
15471 case `/usr/bin/file conftest.o` in
15472 *x86-64*)
15473 LD="${LD-ld} -m elf32_x86_64"
15476 LD="${LD-ld} -m elf_i386"
15478 esac
15480 powerpc64le-*linux*)
15481 LD="${LD-ld} -m elf32lppclinux"
15483 powerpc64-*linux*)
15484 LD="${LD-ld} -m elf32ppclinux"
15486 s390x-*linux*)
15487 LD="${LD-ld} -m elf_s390"
15489 sparc64-*linux*)
15490 LD="${LD-ld} -m elf32_sparc"
15492 esac
15494 *64-bit*)
15495 case $host in
15496 x86_64-*kfreebsd*-gnu)
15497 LD="${LD-ld} -m elf_x86_64_fbsd"
15499 x86_64-*linux*)
15500 LD="${LD-ld} -m elf_x86_64"
15502 powerpcle-*linux*)
15503 LD="${LD-ld} -m elf64lppc"
15505 powerpc-*linux*)
15506 LD="${LD-ld} -m elf64ppc"
15508 s390*-*linux*|s390*-*tpf*)
15509 LD="${LD-ld} -m elf64_s390"
15511 sparc*-*linux*)
15512 LD="${LD-ld} -m elf64_sparc"
15514 esac
15516 esac
15518 rm -rf conftest*
15521 *-*-sco3.2v5*)
15522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15523 SAVE_CFLAGS="$CFLAGS"
15524 CFLAGS="$CFLAGS -belf"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15527 if ${lt_cv_cc_needs_belf+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 ac_ext=c
15531 ac_cpp='$CPP $CPPFLAGS'
15532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15540 main ()
15544 return 0;
15546 _ACEOF
15547 if ac_fn_c_try_link "$LINENO"; then :
15548 lt_cv_cc_needs_belf=yes
15549 else
15550 lt_cv_cc_needs_belf=no
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 ac_ext=c
15555 ac_cpp='$CPP $CPPFLAGS'
15556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15565 CFLAGS="$SAVE_CFLAGS"
15568 sparc*-*solaris*)
15569 # Find out which ABI we are using.
15570 echo 'int i;' > conftest.$ac_ext
15571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15572 (eval $ac_compile) 2>&5
15573 ac_status=$?
15574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575 test $ac_status = 0; }; then
15576 case `/usr/bin/file conftest.o` in
15577 *64-bit*)
15578 case $lt_cv_prog_gnu_ld in
15579 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15582 LD="${LD-ld} -64"
15585 esac
15587 esac
15589 rm -rf conftest*
15591 esac
15593 need_locks="$enable_libtool_lock"
15596 case $host_os in
15597 rhapsody* | darwin*)
15598 if test -n "$ac_tool_prefix"; then
15599 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15600 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15602 $as_echo_n "checking for $ac_word... " >&6; }
15603 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15604 $as_echo_n "(cached) " >&6
15605 else
15606 if test -n "$DSYMUTIL"; then
15607 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15608 else
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $PATH
15612 IFS=$as_save_IFS
15613 test -z "$as_dir" && as_dir=.
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618 break 2
15620 done
15621 done
15622 IFS=$as_save_IFS
15626 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15627 if test -n "$DSYMUTIL"; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15629 $as_echo "$DSYMUTIL" >&6; }
15630 else
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15632 $as_echo "no" >&6; }
15637 if test -z "$ac_cv_prog_DSYMUTIL"; then
15638 ac_ct_DSYMUTIL=$DSYMUTIL
15639 # Extract the first word of "dsymutil", so it can be a program name with args.
15640 set dummy dsymutil; ac_word=$2
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642 $as_echo_n "checking for $ac_word... " >&6; }
15643 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 if test -n "$ac_ct_DSYMUTIL"; then
15647 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15648 else
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 for as_dir in $PATH
15652 IFS=$as_save_IFS
15653 test -z "$as_dir" && as_dir=.
15654 for ac_exec_ext in '' $ac_executable_extensions; do
15655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15656 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15658 break 2
15660 done
15661 done
15662 IFS=$as_save_IFS
15666 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15667 if test -n "$ac_ct_DSYMUTIL"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15669 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15670 else
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672 $as_echo "no" >&6; }
15675 if test "x$ac_ct_DSYMUTIL" = x; then
15676 DSYMUTIL=":"
15677 else
15678 case $cross_compiling:$ac_tool_warned in
15679 yes:)
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15682 ac_tool_warned=yes ;;
15683 esac
15684 DSYMUTIL=$ac_ct_DSYMUTIL
15686 else
15687 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15690 if test -n "$ac_tool_prefix"; then
15691 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15692 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694 $as_echo_n "checking for $ac_word... " >&6; }
15695 if ${ac_cv_prog_NMEDIT+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 if test -n "$NMEDIT"; then
15699 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15700 else
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15704 IFS=$as_save_IFS
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15710 break 2
15712 done
15713 done
15714 IFS=$as_save_IFS
15718 NMEDIT=$ac_cv_prog_NMEDIT
15719 if test -n "$NMEDIT"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15721 $as_echo "$NMEDIT" >&6; }
15722 else
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15729 if test -z "$ac_cv_prog_NMEDIT"; then
15730 ac_ct_NMEDIT=$NMEDIT
15731 # Extract the first word of "nmedit", so it can be a program name with args.
15732 set dummy nmedit; ac_word=$2
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15734 $as_echo_n "checking for $ac_word... " >&6; }
15735 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738 if test -n "$ac_ct_NMEDIT"; then
15739 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15740 else
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15750 break 2
15752 done
15753 done
15754 IFS=$as_save_IFS
15758 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15759 if test -n "$ac_ct_NMEDIT"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15761 $as_echo "$ac_ct_NMEDIT" >&6; }
15762 else
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764 $as_echo "no" >&6; }
15767 if test "x$ac_ct_NMEDIT" = x; then
15768 NMEDIT=":"
15769 else
15770 case $cross_compiling:$ac_tool_warned in
15771 yes:)
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15774 ac_tool_warned=yes ;;
15775 esac
15776 NMEDIT=$ac_ct_NMEDIT
15778 else
15779 NMEDIT="$ac_cv_prog_NMEDIT"
15782 if test -n "$ac_tool_prefix"; then
15783 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15784 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15786 $as_echo_n "checking for $ac_word... " >&6; }
15787 if ${ac_cv_prog_LIPO+:} false; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790 if test -n "$LIPO"; then
15791 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15792 else
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15796 IFS=$as_save_IFS
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15802 break 2
15804 done
15805 done
15806 IFS=$as_save_IFS
15810 LIPO=$ac_cv_prog_LIPO
15811 if test -n "$LIPO"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15813 $as_echo "$LIPO" >&6; }
15814 else
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15821 if test -z "$ac_cv_prog_LIPO"; then
15822 ac_ct_LIPO=$LIPO
15823 # Extract the first word of "lipo", so it can be a program name with args.
15824 set dummy lipo; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15830 if test -n "$ac_ct_LIPO"; then
15831 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15832 else
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15836 IFS=$as_save_IFS
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_ac_ct_LIPO="lipo"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15842 break 2
15844 done
15845 done
15846 IFS=$as_save_IFS
15850 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15851 if test -n "$ac_ct_LIPO"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15853 $as_echo "$ac_ct_LIPO" >&6; }
15854 else
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15859 if test "x$ac_ct_LIPO" = x; then
15860 LIPO=":"
15861 else
15862 case $cross_compiling:$ac_tool_warned in
15863 yes:)
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15866 ac_tool_warned=yes ;;
15867 esac
15868 LIPO=$ac_ct_LIPO
15870 else
15871 LIPO="$ac_cv_prog_LIPO"
15874 if test -n "$ac_tool_prefix"; then
15875 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15876 set dummy ${ac_tool_prefix}otool; ac_word=$2
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15878 $as_echo_n "checking for $ac_word... " >&6; }
15879 if ${ac_cv_prog_OTOOL+:} false; then :
15880 $as_echo_n "(cached) " >&6
15881 else
15882 if test -n "$OTOOL"; then
15883 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15884 else
15885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15886 for as_dir in $PATH
15888 IFS=$as_save_IFS
15889 test -z "$as_dir" && as_dir=.
15890 for ac_exec_ext in '' $ac_executable_extensions; do
15891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15892 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15894 break 2
15896 done
15897 done
15898 IFS=$as_save_IFS
15902 OTOOL=$ac_cv_prog_OTOOL
15903 if test -n "$OTOOL"; then
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15905 $as_echo "$OTOOL" >&6; }
15906 else
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908 $as_echo "no" >&6; }
15913 if test -z "$ac_cv_prog_OTOOL"; then
15914 ac_ct_OTOOL=$OTOOL
15915 # Extract the first word of "otool", so it can be a program name with args.
15916 set dummy otool; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15920 $as_echo_n "(cached) " >&6
15921 else
15922 if test -n "$ac_ct_OTOOL"; then
15923 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15924 else
15925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926 for as_dir in $PATH
15928 IFS=$as_save_IFS
15929 test -z "$as_dir" && as_dir=.
15930 for ac_exec_ext in '' $ac_executable_extensions; do
15931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932 ac_cv_prog_ac_ct_OTOOL="otool"
15933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15934 break 2
15936 done
15937 done
15938 IFS=$as_save_IFS
15942 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15943 if test -n "$ac_ct_OTOOL"; then
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15945 $as_echo "$ac_ct_OTOOL" >&6; }
15946 else
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15948 $as_echo "no" >&6; }
15951 if test "x$ac_ct_OTOOL" = x; then
15952 OTOOL=":"
15953 else
15954 case $cross_compiling:$ac_tool_warned in
15955 yes:)
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15958 ac_tool_warned=yes ;;
15959 esac
15960 OTOOL=$ac_ct_OTOOL
15962 else
15963 OTOOL="$ac_cv_prog_OTOOL"
15966 if test -n "$ac_tool_prefix"; then
15967 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15968 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15970 $as_echo_n "checking for $ac_word... " >&6; }
15971 if ${ac_cv_prog_OTOOL64+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974 if test -n "$OTOOL64"; then
15975 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15976 else
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15980 IFS=$as_save_IFS
15981 test -z "$as_dir" && as_dir=.
15982 for ac_exec_ext in '' $ac_executable_extensions; do
15983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15986 break 2
15988 done
15989 done
15990 IFS=$as_save_IFS
15994 OTOOL64=$ac_cv_prog_OTOOL64
15995 if test -n "$OTOOL64"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15997 $as_echo "$OTOOL64" >&6; }
15998 else
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 $as_echo "no" >&6; }
16005 if test -z "$ac_cv_prog_OTOOL64"; then
16006 ac_ct_OTOOL64=$OTOOL64
16007 # Extract the first word of "otool64", so it can be a program name with args.
16008 set dummy otool64; ac_word=$2
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16010 $as_echo_n "checking for $ac_word... " >&6; }
16011 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 if test -n "$ac_ct_OTOOL64"; then
16015 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16016 else
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16020 IFS=$as_save_IFS
16021 test -z "$as_dir" && as_dir=.
16022 for ac_exec_ext in '' $ac_executable_extensions; do
16023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16024 ac_cv_prog_ac_ct_OTOOL64="otool64"
16025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16026 break 2
16028 done
16029 done
16030 IFS=$as_save_IFS
16034 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16035 if test -n "$ac_ct_OTOOL64"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16037 $as_echo "$ac_ct_OTOOL64" >&6; }
16038 else
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16043 if test "x$ac_ct_OTOOL64" = x; then
16044 OTOOL64=":"
16045 else
16046 case $cross_compiling:$ac_tool_warned in
16047 yes:)
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16050 ac_tool_warned=yes ;;
16051 esac
16052 OTOOL64=$ac_ct_OTOOL64
16054 else
16055 OTOOL64="$ac_cv_prog_OTOOL64"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16085 $as_echo_n "checking for -single_module linker flag... " >&6; }
16086 if ${lt_cv_apple_cc_single_mod+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 lt_cv_apple_cc_single_mod=no
16090 if test -z "${LT_MULTI_MODULE}"; then
16091 # By default we will add the -single_module flag. You can override
16092 # by either setting the environment variable LT_MULTI_MODULE
16093 # non-empty at configure time, or by adding -multi_module to the
16094 # link flags.
16095 rm -rf libconftest.dylib*
16096 echo "int foo(void){return 1;}" > conftest.c
16097 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16098 -dynamiclib -Wl,-single_module conftest.c" >&5
16099 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16100 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16101 _lt_result=$?
16102 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16103 lt_cv_apple_cc_single_mod=yes
16104 else
16105 cat conftest.err >&5
16107 rm -rf libconftest.dylib*
16108 rm -f conftest.*
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16112 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16114 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16115 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16116 $as_echo_n "(cached) " >&6
16117 else
16118 lt_cv_ld_exported_symbols_list=no
16119 save_LDFLAGS=$LDFLAGS
16120 echo "_main" > conftest.sym
16121 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16126 main ()
16130 return 0;
16132 _ACEOF
16133 if ac_fn_c_try_link "$LINENO"; then :
16134 lt_cv_ld_exported_symbols_list=yes
16135 else
16136 lt_cv_ld_exported_symbols_list=no
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16140 LDFLAGS="$save_LDFLAGS"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16144 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16146 $as_echo_n "checking for -force_load linker flag... " >&6; }
16147 if ${lt_cv_ld_force_load+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 lt_cv_ld_force_load=no
16151 cat > conftest.c << _LT_EOF
16152 int forced_loaded() { return 2;}
16153 _LT_EOF
16154 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16155 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16156 echo "$AR cru libconftest.a conftest.o" >&5
16157 $AR cru libconftest.a conftest.o 2>&5
16158 cat > conftest.c << _LT_EOF
16159 int main() { return 0;}
16160 _LT_EOF
16161 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16162 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16163 _lt_result=$?
16164 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16165 lt_cv_ld_force_load=yes
16166 else
16167 cat conftest.err >&5
16169 rm -f conftest.err libconftest.a conftest conftest.c
16170 rm -rf conftest.dSYM
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16174 $as_echo "$lt_cv_ld_force_load" >&6; }
16175 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16176 # build without first building modern cctools / linker.
16177 case $host_cpu-$host_os in
16178 *-rhapsody* | *-darwin1.[012])
16179 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16180 *-darwin1.*)
16181 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16182 *-darwin*)
16183 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16184 # deployment target is forced to an earlier version.
16185 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16186 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16188 10.[012][,.]*)
16189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16193 esac
16195 esac
16196 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16197 _lt_dar_single_mod='$single_module'
16199 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16200 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16201 else
16202 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16204 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16205 _lt_dsymutil='~$DSYMUTIL $lib || :'
16206 else
16207 _lt_dsymutil=
16210 esac
16213 for ac_header in dlfcn.h
16214 do :
16215 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16216 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_DLFCN_H 1
16219 _ACEOF
16222 done
16228 # Set options
16232 enable_dlopen=no
16235 enable_win32_dll=no
16238 # Check whether --enable-shared was given.
16239 if test "${enable_shared+set}" = set; then :
16240 enableval=$enable_shared; p=${PACKAGE-default}
16241 case $enableval in
16242 yes) enable_shared=yes ;;
16243 no) enable_shared=no ;;
16245 enable_shared=no
16246 # Look at the argument we got. We use all the common list separators.
16247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16248 for pkg in $enableval; do
16249 IFS="$lt_save_ifs"
16250 if test "X$pkg" = "X$p"; then
16251 enable_shared=yes
16253 done
16254 IFS="$lt_save_ifs"
16256 esac
16257 else
16258 enable_shared=yes
16269 # Check whether --enable-static was given.
16270 if test "${enable_static+set}" = set; then :
16271 enableval=$enable_static; p=${PACKAGE-default}
16272 case $enableval in
16273 yes) enable_static=yes ;;
16274 no) enable_static=no ;;
16276 enable_static=no
16277 # Look at the argument we got. We use all the common list separators.
16278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16279 for pkg in $enableval; do
16280 IFS="$lt_save_ifs"
16281 if test "X$pkg" = "X$p"; then
16282 enable_static=yes
16284 done
16285 IFS="$lt_save_ifs"
16287 esac
16288 else
16289 enable_static=yes
16301 # Check whether --with-pic was given.
16302 if test "${with_pic+set}" = set; then :
16303 withval=$with_pic; pic_mode="$withval"
16304 else
16305 pic_mode=default
16309 test -z "$pic_mode" && pic_mode=default
16317 # Check whether --enable-fast-install was given.
16318 if test "${enable_fast_install+set}" = set; then :
16319 enableval=$enable_fast_install; p=${PACKAGE-default}
16320 case $enableval in
16321 yes) enable_fast_install=yes ;;
16322 no) enable_fast_install=no ;;
16324 enable_fast_install=no
16325 # Look at the argument we got. We use all the common list separators.
16326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16327 for pkg in $enableval; do
16328 IFS="$lt_save_ifs"
16329 if test "X$pkg" = "X$p"; then
16330 enable_fast_install=yes
16332 done
16333 IFS="$lt_save_ifs"
16335 esac
16336 else
16337 enable_fast_install=yes
16350 # This can be used to rebuild libtool when needed
16351 LIBTOOL_DEPS="$ltmain"
16353 # Always use our own libtool.
16354 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16381 test -z "$LN_S" && LN_S="ln -s"
16396 if test -n "${ZSH_VERSION+set}" ; then
16397 setopt NO_GLOB_SUBST
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16401 $as_echo_n "checking for objdir... " >&6; }
16402 if ${lt_cv_objdir+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 rm -f .libs 2>/dev/null
16406 mkdir .libs 2>/dev/null
16407 if test -d .libs; then
16408 lt_cv_objdir=.libs
16409 else
16410 # MS-DOS does not allow filenames that begin with a dot.
16411 lt_cv_objdir=_libs
16413 rmdir .libs 2>/dev/null
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16416 $as_echo "$lt_cv_objdir" >&6; }
16417 objdir=$lt_cv_objdir
16423 cat >>confdefs.h <<_ACEOF
16424 #define LT_OBJDIR "$lt_cv_objdir/"
16425 _ACEOF
16430 case $host_os in
16431 aix3*)
16432 # AIX sometimes has problems with the GCC collect2 program. For some
16433 # reason, if we set the COLLECT_NAMES environment variable, the problems
16434 # vanish in a puff of smoke.
16435 if test "X${COLLECT_NAMES+set}" != Xset; then
16436 COLLECT_NAMES=
16437 export COLLECT_NAMES
16440 esac
16442 # Global variables:
16443 ofile=libtool
16444 can_build_shared=yes
16446 # All known linkers require a `.a' archive for static linking (except MSVC,
16447 # which needs '.lib').
16448 libext=a
16450 with_gnu_ld="$lt_cv_prog_gnu_ld"
16452 old_CC="$CC"
16453 old_CFLAGS="$CFLAGS"
16455 # Set sane defaults for various variables
16456 test -z "$CC" && CC=cc
16457 test -z "$LTCC" && LTCC=$CC
16458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16459 test -z "$LD" && LD=ld
16460 test -z "$ac_objext" && ac_objext=o
16462 for cc_temp in $compiler""; do
16463 case $cc_temp in
16464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16466 \-*) ;;
16467 *) break;;
16468 esac
16469 done
16470 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16473 # Only perform the check for file, if the check method requires it
16474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16475 case $deplibs_check_method in
16476 file_magic*)
16477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16479 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16480 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 case $MAGIC_CMD in
16484 [\\/*] | ?:[\\/]*)
16485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16488 lt_save_MAGIC_CMD="$MAGIC_CMD"
16489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16491 for ac_dir in $ac_dummy; do
16492 IFS="$lt_save_ifs"
16493 test -z "$ac_dir" && ac_dir=.
16494 if test -f $ac_dir/${ac_tool_prefix}file; then
16495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16496 if test -n "$file_magic_test_file"; then
16497 case $deplibs_check_method in
16498 "file_magic "*)
16499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16502 $EGREP "$file_magic_regex" > /dev/null; then
16504 else
16505 cat <<_LT_EOF 1>&2
16507 *** Warning: the command libtool uses to detect shared libraries,
16508 *** $file_magic_cmd, produces output that libtool cannot recognize.
16509 *** The result is that libtool may fail to recognize shared libraries
16510 *** as such. This will affect the creation of libtool libraries that
16511 *** depend on shared libraries, but programs linked with such libtool
16512 *** libraries will work regardless of this problem. Nevertheless, you
16513 *** may want to report the problem to your system manager and/or to
16514 *** bug-libtool@gnu.org
16516 _LT_EOF
16517 fi ;;
16518 esac
16520 break
16522 done
16523 IFS="$lt_save_ifs"
16524 MAGIC_CMD="$lt_save_MAGIC_CMD"
16526 esac
16529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16530 if test -n "$MAGIC_CMD"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16532 $as_echo "$MAGIC_CMD" >&6; }
16533 else
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16535 $as_echo "no" >&6; }
16542 if test -z "$lt_cv_path_MAGIC_CMD"; then
16543 if test -n "$ac_tool_prefix"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16545 $as_echo_n "checking for file... " >&6; }
16546 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16547 $as_echo_n "(cached) " >&6
16548 else
16549 case $MAGIC_CMD in
16550 [\\/*] | ?:[\\/]*)
16551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16554 lt_save_MAGIC_CMD="$MAGIC_CMD"
16555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16557 for ac_dir in $ac_dummy; do
16558 IFS="$lt_save_ifs"
16559 test -z "$ac_dir" && ac_dir=.
16560 if test -f $ac_dir/file; then
16561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16562 if test -n "$file_magic_test_file"; then
16563 case $deplibs_check_method in
16564 "file_magic "*)
16565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16568 $EGREP "$file_magic_regex" > /dev/null; then
16570 else
16571 cat <<_LT_EOF 1>&2
16573 *** Warning: the command libtool uses to detect shared libraries,
16574 *** $file_magic_cmd, produces output that libtool cannot recognize.
16575 *** The result is that libtool may fail to recognize shared libraries
16576 *** as such. This will affect the creation of libtool libraries that
16577 *** depend on shared libraries, but programs linked with such libtool
16578 *** libraries will work regardless of this problem. Nevertheless, you
16579 *** may want to report the problem to your system manager and/or to
16580 *** bug-libtool@gnu.org
16582 _LT_EOF
16583 fi ;;
16584 esac
16586 break
16588 done
16589 IFS="$lt_save_ifs"
16590 MAGIC_CMD="$lt_save_MAGIC_CMD"
16592 esac
16595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16596 if test -n "$MAGIC_CMD"; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16598 $as_echo "$MAGIC_CMD" >&6; }
16599 else
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16601 $as_echo "no" >&6; }
16605 else
16606 MAGIC_CMD=:
16612 esac
16614 # Use C for the default configuration in the libtool script
16616 lt_save_CC="$CC"
16617 ac_ext=c
16618 ac_cpp='$CPP $CPPFLAGS'
16619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624 # Source file extension for C test sources.
16625 ac_ext=c
16627 # Object file extension for compiled C test sources.
16628 objext=o
16629 objext=$objext
16631 # Code to be used in simple compile tests
16632 lt_simple_compile_test_code="int some_variable = 0;"
16634 # Code to be used in simple link tests
16635 lt_simple_link_test_code='int main(){return(0);}'
16643 # If no C compiler was specified, use CC.
16644 LTCC=${LTCC-"$CC"}
16646 # If no C compiler flags were specified, use CFLAGS.
16647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16649 # Allow CC to be a program name with arguments.
16650 compiler=$CC
16652 # Save the default compiler, since it gets overwritten when the other
16653 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16654 compiler_DEFAULT=$CC
16656 # save warnings/boilerplate of simple test code
16657 ac_outfile=conftest.$ac_objext
16658 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16660 _lt_compiler_boilerplate=`cat conftest.err`
16661 $RM conftest*
16663 ac_outfile=conftest.$ac_objext
16664 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16666 _lt_linker_boilerplate=`cat conftest.err`
16667 $RM -r conftest*
16670 ## CAVEAT EMPTOR:
16671 ## There is no encapsulation within the following macros, do not change
16672 ## the running order or otherwise move them around unless you know exactly
16673 ## what you are doing...
16674 if test -n "$compiler"; then
16676 lt_prog_compiler_no_builtin_flag=
16678 if test "$GCC" = yes; then
16679 case $cc_basename in
16680 nvcc*)
16681 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16683 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16684 esac
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16687 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16688 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 lt_cv_prog_compiler_rtti_exceptions=no
16692 ac_outfile=conftest.$ac_objext
16693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16694 lt_compiler_flag="-fno-rtti -fno-exceptions"
16695 # Insert the option either (1) after the last *FLAGS variable, or
16696 # (2) before a word containing "conftest.", or (3) at the end.
16697 # Note that $ac_compile itself does not contain backslashes and begins
16698 # with a dollar sign (not a hyphen), so the echo should work correctly.
16699 # The option is referenced via a variable to avoid confusing sed.
16700 lt_compile=`echo "$ac_compile" | $SED \
16701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16703 -e 's:$: $lt_compiler_flag:'`
16704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16705 (eval "$lt_compile" 2>conftest.err)
16706 ac_status=$?
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 if (exit $ac_status) && test -s "$ac_outfile"; then
16710 # The compiler can only warn and ignore the option if not recognized
16711 # So say no if there are warnings other than the usual output.
16712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16715 lt_cv_prog_compiler_rtti_exceptions=yes
16718 $RM conftest*
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16722 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16724 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16725 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16726 else
16737 lt_prog_compiler_wl=
16738 lt_prog_compiler_pic=
16739 lt_prog_compiler_static=
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16742 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16744 if test "$GCC" = yes; then
16745 lt_prog_compiler_wl='-Wl,'
16746 lt_prog_compiler_static='-static'
16748 case $host_os in
16749 aix*)
16750 # All AIX code is PIC.
16751 if test "$host_cpu" = ia64; then
16752 # AIX 5 now supports IA64 processor
16753 lt_prog_compiler_static='-Bstatic'
16755 lt_prog_compiler_pic='-fPIC'
16758 amigaos*)
16759 case $host_cpu in
16760 powerpc)
16761 # see comment about AmigaOS4 .so support
16762 lt_prog_compiler_pic='-fPIC'
16764 m68k)
16765 # FIXME: we need at least 68020 code to build shared libraries, but
16766 # adding the `-m68020' flag to GCC prevents building anything better,
16767 # like `-m68040'.
16768 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16770 esac
16773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774 # PIC is the default for these OSes.
16777 mingw* | cygwin* | pw32* | os2* | cegcc*)
16778 # This hack is so that the source file can tell whether it is being
16779 # built for inclusion in a dll (and should export symbols for example).
16780 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16781 # (--disable-auto-import) libraries
16782 lt_prog_compiler_pic='-DDLL_EXPORT'
16785 darwin* | rhapsody*)
16786 # PIC is the default on this platform
16787 # Common symbols not allowed in MH_DYLIB files
16788 lt_prog_compiler_pic='-fno-common'
16791 haiku*)
16792 # PIC is the default for Haiku.
16793 # The "-static" flag exists, but is broken.
16794 lt_prog_compiler_static=
16797 hpux*)
16798 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16799 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16800 # sets the default TLS model and affects inlining.
16801 case $host_cpu in
16802 hppa*64*)
16803 # +Z the default
16806 lt_prog_compiler_pic='-fPIC'
16808 esac
16811 interix[3-9]*)
16812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16813 # Instead, we relocate shared libraries at runtime.
16816 msdosdjgpp*)
16817 # Just because we use GCC doesn't mean we suddenly get shared libraries
16818 # on systems that don't support them.
16819 lt_prog_compiler_can_build_shared=no
16820 enable_shared=no
16823 *nto* | *qnx*)
16824 # QNX uses GNU C++, but need to define -shared option too, otherwise
16825 # it will coredump.
16826 lt_prog_compiler_pic='-fPIC -shared'
16829 sysv4*MP*)
16830 if test -d /usr/nec; then
16831 lt_prog_compiler_pic=-Kconform_pic
16836 lt_prog_compiler_pic='-fPIC'
16838 esac
16840 case $cc_basename in
16841 nvcc*) # Cuda Compiler Driver 2.2
16842 lt_prog_compiler_wl='-Xlinker '
16843 lt_prog_compiler_pic='-Xcompiler -fPIC'
16845 esac
16846 else
16847 # PORTME Check for flag to pass linker flags through the system compiler.
16848 case $host_os in
16849 aix*)
16850 lt_prog_compiler_wl='-Wl,'
16851 if test "$host_cpu" = ia64; then
16852 # AIX 5 now supports IA64 processor
16853 lt_prog_compiler_static='-Bstatic'
16854 else
16855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16859 mingw* | cygwin* | pw32* | os2* | cegcc*)
16860 # This hack is so that the source file can tell whether it is being
16861 # built for inclusion in a dll (and should export symbols for example).
16862 lt_prog_compiler_pic='-DDLL_EXPORT'
16865 hpux9* | hpux10* | hpux11*)
16866 lt_prog_compiler_wl='-Wl,'
16867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16868 # not for PA HP-UX.
16869 case $host_cpu in
16870 hppa*64*|ia64*)
16871 # +Z the default
16874 lt_prog_compiler_pic='+Z'
16876 esac
16877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16878 lt_prog_compiler_static='${wl}-a ${wl}archive'
16881 irix5* | irix6* | nonstopux*)
16882 lt_prog_compiler_wl='-Wl,'
16883 # PIC (with -KPIC) is the default.
16884 lt_prog_compiler_static='-non_shared'
16887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16888 case $cc_basename in
16889 # old Intel for x86_64 which still supported -KPIC.
16890 ecc*)
16891 lt_prog_compiler_wl='-Wl,'
16892 lt_prog_compiler_pic='-KPIC'
16893 lt_prog_compiler_static='-static'
16895 # icc used to be incompatible with GCC.
16896 # ICC 10 doesn't accept -KPIC any more.
16897 icc* | ifort*)
16898 lt_prog_compiler_wl='-Wl,'
16899 lt_prog_compiler_pic='-fPIC'
16900 lt_prog_compiler_static='-static'
16902 # Lahey Fortran 8.1.
16903 lf95*)
16904 lt_prog_compiler_wl='-Wl,'
16905 lt_prog_compiler_pic='--shared'
16906 lt_prog_compiler_static='--static'
16908 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16909 # Portland Group compilers (*not* the Pentium gcc compiler,
16910 # which looks to be a dead project)
16911 lt_prog_compiler_wl='-Wl,'
16912 lt_prog_compiler_pic='-fpic'
16913 lt_prog_compiler_static='-Bstatic'
16915 ccc*)
16916 lt_prog_compiler_wl='-Wl,'
16917 # All Alpha code is PIC.
16918 lt_prog_compiler_static='-non_shared'
16920 xl* | bgxl* | bgf* | mpixl*)
16921 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16922 lt_prog_compiler_wl='-Wl,'
16923 lt_prog_compiler_pic='-qpic'
16924 lt_prog_compiler_static='-qstaticlink'
16927 case `$CC -V 2>&1 | sed 5q` in
16928 *Sun\ F* | *Sun*Fortran*)
16929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16930 lt_prog_compiler_pic='-KPIC'
16931 lt_prog_compiler_static='-Bstatic'
16932 lt_prog_compiler_wl=''
16934 *Sun\ C*)
16935 # Sun C 5.9
16936 lt_prog_compiler_pic='-KPIC'
16937 lt_prog_compiler_static='-Bstatic'
16938 lt_prog_compiler_wl='-Wl,'
16940 esac
16942 esac
16945 newsos6)
16946 lt_prog_compiler_pic='-KPIC'
16947 lt_prog_compiler_static='-Bstatic'
16950 *nto* | *qnx*)
16951 # QNX uses GNU C++, but need to define -shared option too, otherwise
16952 # it will coredump.
16953 lt_prog_compiler_pic='-fPIC -shared'
16956 osf3* | osf4* | osf5*)
16957 lt_prog_compiler_wl='-Wl,'
16958 # All OSF/1 code is PIC.
16959 lt_prog_compiler_static='-non_shared'
16962 rdos*)
16963 lt_prog_compiler_static='-non_shared'
16966 solaris*)
16967 lt_prog_compiler_pic='-KPIC'
16968 lt_prog_compiler_static='-Bstatic'
16969 case $cc_basename in
16970 f77* | f90* | f95*)
16971 lt_prog_compiler_wl='-Qoption ld ';;
16973 lt_prog_compiler_wl='-Wl,';;
16974 esac
16977 sunos4*)
16978 lt_prog_compiler_wl='-Qoption ld '
16979 lt_prog_compiler_pic='-PIC'
16980 lt_prog_compiler_static='-Bstatic'
16983 sysv4 | sysv4.2uw2* | sysv4.3*)
16984 lt_prog_compiler_wl='-Wl,'
16985 lt_prog_compiler_pic='-KPIC'
16986 lt_prog_compiler_static='-Bstatic'
16989 sysv4*MP*)
16990 if test -d /usr/nec ;then
16991 lt_prog_compiler_pic='-Kconform_pic'
16992 lt_prog_compiler_static='-Bstatic'
16996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16997 lt_prog_compiler_wl='-Wl,'
16998 lt_prog_compiler_pic='-KPIC'
16999 lt_prog_compiler_static='-Bstatic'
17002 unicos*)
17003 lt_prog_compiler_wl='-Wl,'
17004 lt_prog_compiler_can_build_shared=no
17007 uts4*)
17008 lt_prog_compiler_pic='-pic'
17009 lt_prog_compiler_static='-Bstatic'
17013 lt_prog_compiler_can_build_shared=no
17015 esac
17018 case $host_os in
17019 # For platforms which do not support PIC, -DPIC is meaningless:
17020 *djgpp*)
17021 lt_prog_compiler_pic=
17024 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17026 esac
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17028 $as_echo "$lt_prog_compiler_pic" >&6; }
17036 # Check to make sure the PIC flag actually works.
17038 if test -n "$lt_prog_compiler_pic"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17042 $as_echo_n "(cached) " >&6
17043 else
17044 lt_cv_prog_compiler_pic_works=no
17045 ac_outfile=conftest.$ac_objext
17046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17048 # Insert the option either (1) after the last *FLAGS variable, or
17049 # (2) before a word containing "conftest.", or (3) at the end.
17050 # Note that $ac_compile itself does not contain backslashes and begins
17051 # with a dollar sign (not a hyphen), so the echo should work correctly.
17052 # The option is referenced via a variable to avoid confusing sed.
17053 lt_compile=`echo "$ac_compile" | $SED \
17054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17056 -e 's:$: $lt_compiler_flag:'`
17057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17058 (eval "$lt_compile" 2>conftest.err)
17059 ac_status=$?
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 if (exit $ac_status) && test -s "$ac_outfile"; then
17063 # The compiler can only warn and ignore the option if not recognized
17064 # So say no if there are warnings other than the usual output.
17065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17068 lt_cv_prog_compiler_pic_works=yes
17071 $RM conftest*
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17075 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17077 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17078 case $lt_prog_compiler_pic in
17079 "" | " "*) ;;
17080 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17081 esac
17082 else
17083 lt_prog_compiler_pic=
17084 lt_prog_compiler_can_build_shared=no
17095 # Check to make sure the static flag actually works.
17097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17100 if ${lt_cv_prog_compiler_static_works+:} false; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 lt_cv_prog_compiler_static_works=no
17104 save_LDFLAGS="$LDFLAGS"
17105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17108 # The linker can only warn and ignore the option if not recognized
17109 # So say no if there are warnings
17110 if test -s conftest.err; then
17111 # Append any errors to the config.log.
17112 cat conftest.err 1>&5
17113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17115 if diff conftest.exp conftest.er2 >/dev/null; then
17116 lt_cv_prog_compiler_static_works=yes
17118 else
17119 lt_cv_prog_compiler_static_works=yes
17122 $RM -r conftest*
17123 LDFLAGS="$save_LDFLAGS"
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17129 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17131 else
17132 lt_prog_compiler_static=
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17143 if ${lt_cv_prog_compiler_c_o+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 lt_cv_prog_compiler_c_o=no
17147 $RM -r conftest 2>/dev/null
17148 mkdir conftest
17149 cd conftest
17150 mkdir out
17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153 lt_compiler_flag="-o out/conftest2.$ac_objext"
17154 # Insert the option either (1) after the last *FLAGS variable, or
17155 # (2) before a word containing "conftest.", or (3) at the end.
17156 # Note that $ac_compile itself does not contain backslashes and begins
17157 # with a dollar sign (not a hyphen), so the echo should work correctly.
17158 lt_compile=`echo "$ac_compile" | $SED \
17159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17161 -e 's:$: $lt_compiler_flag:'`
17162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17163 (eval "$lt_compile" 2>out/conftest.err)
17164 ac_status=$?
17165 cat out/conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17168 then
17169 # The compiler can only warn and ignore the option if not recognized
17170 # So say no if there are warnings
17171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17174 lt_cv_prog_compiler_c_o=yes
17177 chmod u+w . 2>&5
17178 $RM conftest*
17179 # SGI C++ compiler will create directory out/ii_files/ for
17180 # template instantiation
17181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17182 $RM out/* && rmdir out
17183 cd ..
17184 $RM -r conftest
17185 $RM conftest*
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17198 if ${lt_cv_prog_compiler_c_o+:} false; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 lt_cv_prog_compiler_c_o=no
17202 $RM -r conftest 2>/dev/null
17203 mkdir conftest
17204 cd conftest
17205 mkdir out
17206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17208 lt_compiler_flag="-o out/conftest2.$ac_objext"
17209 # Insert the option either (1) after the last *FLAGS variable, or
17210 # (2) before a word containing "conftest.", or (3) at the end.
17211 # Note that $ac_compile itself does not contain backslashes and begins
17212 # with a dollar sign (not a hyphen), so the echo should work correctly.
17213 lt_compile=`echo "$ac_compile" | $SED \
17214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17216 -e 's:$: $lt_compiler_flag:'`
17217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17218 (eval "$lt_compile" 2>out/conftest.err)
17219 ac_status=$?
17220 cat out/conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17223 then
17224 # The compiler can only warn and ignore the option if not recognized
17225 # So say no if there are warnings
17226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17229 lt_cv_prog_compiler_c_o=yes
17232 chmod u+w . 2>&5
17233 $RM conftest*
17234 # SGI C++ compiler will create directory out/ii_files/ for
17235 # template instantiation
17236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17237 $RM out/* && rmdir out
17238 cd ..
17239 $RM -r conftest
17240 $RM conftest*
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17249 hard_links="nottested"
17250 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17251 # do not overwrite the value of need_locks provided by the user
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17253 $as_echo_n "checking if we can lock with hard links... " >&6; }
17254 hard_links=yes
17255 $RM conftest*
17256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17257 touch conftest.a
17258 ln conftest.a conftest.b 2>&5 || hard_links=no
17259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17261 $as_echo "$hard_links" >&6; }
17262 if test "$hard_links" = no; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17264 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17265 need_locks=warn
17267 else
17268 need_locks=no
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17279 runpath_var=
17280 allow_undefined_flag=
17281 always_export_symbols=no
17282 archive_cmds=
17283 archive_expsym_cmds=
17284 compiler_needs_object=no
17285 enable_shared_with_static_runtimes=no
17286 export_dynamic_flag_spec=
17287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17288 hardcode_automatic=no
17289 hardcode_direct=no
17290 hardcode_direct_absolute=no
17291 hardcode_libdir_flag_spec=
17292 hardcode_libdir_flag_spec_ld=
17293 hardcode_libdir_separator=
17294 hardcode_minus_L=no
17295 hardcode_shlibpath_var=unsupported
17296 inherit_rpath=no
17297 link_all_deplibs=unknown
17298 module_cmds=
17299 module_expsym_cmds=
17300 old_archive_from_new_cmds=
17301 old_archive_from_expsyms_cmds=
17302 thread_safe_flag_spec=
17303 whole_archive_flag_spec=
17304 # include_expsyms should be a list of space-separated symbols to be *always*
17305 # included in the symbol list
17306 include_expsyms=
17307 # exclude_expsyms can be an extended regexp of symbols to exclude
17308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17310 # as well as any symbol that contains `d'.
17311 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17313 # platforms (ab)use it in PIC code, but their linkers get confused if
17314 # the symbol is explicitly referenced. Since portable code cannot
17315 # rely on this symbol name, it's probably fine to never include it in
17316 # preloaded symbol tables.
17317 # Exclude shared library initialization/finalization symbols.
17318 extract_expsyms_cmds=
17320 case $host_os in
17321 cygwin* | mingw* | pw32* | cegcc*)
17322 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17323 # When not using gcc, we currently assume that we are using
17324 # Microsoft Visual C++.
17325 if test "$GCC" != yes; then
17326 with_gnu_ld=no
17329 interix*)
17330 # we just hope/assume this is gcc and not c89 (= MSVC++)
17331 with_gnu_ld=yes
17333 openbsd*)
17334 with_gnu_ld=no
17336 esac
17338 ld_shlibs=yes
17340 # On some targets, GNU ld is compatible enough with the native linker
17341 # that we're better off using the native interface for both.
17342 lt_use_gnu_ld_interface=no
17343 if test "$with_gnu_ld" = yes; then
17344 case $host_os in
17345 aix*)
17346 # The AIX port of GNU ld has always aspired to compatibility
17347 # with the native linker. However, as the warning in the GNU ld
17348 # block says, versions before 2.19.5* couldn't really create working
17349 # shared libraries, regardless of the interface used.
17350 case `$LD -v 2>&1` in
17351 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17352 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17353 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17355 lt_use_gnu_ld_interface=yes
17357 esac
17360 lt_use_gnu_ld_interface=yes
17362 esac
17365 if test "$lt_use_gnu_ld_interface" = yes; then
17366 # If archive_cmds runs LD, not CC, wlarc should be empty
17367 wlarc='${wl}'
17369 # Set some defaults for GNU ld with shared library support. These
17370 # are reset later if shared libraries are not supported. Putting them
17371 # here allows them to be overridden if necessary.
17372 runpath_var=LD_RUN_PATH
17373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17374 export_dynamic_flag_spec='${wl}--export-dynamic'
17375 # ancient GNU ld didn't support --whole-archive et. al.
17376 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17378 else
17379 whole_archive_flag_spec=
17381 supports_anon_versioning=no
17382 case `$LD -v 2>&1` in
17383 *GNU\ gold*) supports_anon_versioning=yes ;;
17384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17387 *\ 2.11.*) ;; # other 2.11 versions
17388 *) supports_anon_versioning=yes ;;
17389 esac
17391 # See if GNU ld supports shared libraries.
17392 case $host_os in
17393 aix[3-9]*)
17394 # On AIX/PPC, the GNU linker is very broken
17395 if test "$host_cpu" != ia64; then
17396 ld_shlibs=no
17397 cat <<_LT_EOF 1>&2
17399 *** Warning: the GNU linker, at least up to release 2.19, is reported
17400 *** to be unable to reliably create shared libraries on AIX.
17401 *** Therefore, libtool is disabling shared libraries support. If you
17402 *** really care for shared libraries, you may want to install binutils
17403 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17404 *** You will then need to restart the configuration process.
17406 _LT_EOF
17410 amigaos*)
17411 case $host_cpu in
17412 powerpc)
17413 # see comment about AmigaOS4 .so support
17414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 archive_expsym_cmds=''
17417 m68k)
17418 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)'
17419 hardcode_libdir_flag_spec='-L$libdir'
17420 hardcode_minus_L=yes
17422 esac
17425 beos*)
17426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17427 allow_undefined_flag=unsupported
17428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17429 # support --undefined. This deserves some investigation. FIXME
17430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 else
17432 ld_shlibs=no
17436 cygwin* | mingw* | pw32* | cegcc*)
17437 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17438 # as there is no search path for DLLs.
17439 hardcode_libdir_flag_spec='-L$libdir'
17440 export_dynamic_flag_spec='${wl}--export-all-symbols'
17441 allow_undefined_flag=unsupported
17442 always_export_symbols=no
17443 enable_shared_with_static_runtimes=yes
17444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17448 # If the export-symbols file already is a .def file (1st line
17449 # is EXPORTS), use it as is; otherwise, prepend...
17450 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17451 cp $export_symbols $output_objdir/$soname.def;
17452 else
17453 echo EXPORTS > $output_objdir/$soname.def;
17454 cat $export_symbols >> $output_objdir/$soname.def;
17456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17457 else
17458 ld_shlibs=no
17462 haiku*)
17463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 link_all_deplibs=yes
17467 interix[3-9]*)
17468 hardcode_direct=no
17469 hardcode_shlibpath_var=no
17470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17471 export_dynamic_flag_spec='${wl}-E'
17472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17473 # Instead, shared libraries are loaded at an image base (0x10000000 by
17474 # default) and relocated if they conflict, which is a slow very memory
17475 # consuming and fragmenting process. To avoid this, we pick a random,
17476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17479 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'
17482 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17483 tmp_diet=no
17484 if test "$host_os" = linux-dietlibc; then
17485 case $cc_basename in
17486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17487 esac
17489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17490 && test "$tmp_diet" = no
17491 then
17492 tmp_addflag=' $pic_flag'
17493 tmp_sharedflag='-shared'
17494 case $cc_basename,$host_cpu in
17495 pgcc*) # Portland Group C compiler
17496 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'
17497 tmp_addflag=' $pic_flag'
17499 pgf77* | pgf90* | pgf95* | pgfortran*)
17500 # Portland Group f77 and f90 compilers
17501 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'
17502 tmp_addflag=' $pic_flag -Mnomain' ;;
17503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17504 tmp_addflag=' -i_dynamic' ;;
17505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17506 tmp_addflag=' -i_dynamic -nofor_main' ;;
17507 ifc* | ifort*) # Intel Fortran compiler
17508 tmp_addflag=' -nofor_main' ;;
17509 lf95*) # Lahey Fortran 8.1
17510 whole_archive_flag_spec=
17511 tmp_sharedflag='--shared' ;;
17512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17513 tmp_sharedflag='-qmkshrobj'
17514 tmp_addflag= ;;
17515 nvcc*) # Cuda Compiler Driver 2.2
17516 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'
17517 compiler_needs_object=yes
17519 esac
17520 case `$CC -V 2>&1 | sed 5q` in
17521 *Sun\ C*) # Sun C 5.9
17522 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'
17523 compiler_needs_object=yes
17524 tmp_sharedflag='-G' ;;
17525 *Sun\ F*) # Sun Fortran 8.3
17526 tmp_sharedflag='-G' ;;
17527 esac
17528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17530 if test "x$supports_anon_versioning" = xyes; then
17531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17533 echo "local: *; };" >> $output_objdir/$libname.ver~
17534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17537 case $cc_basename in
17538 xlf* | bgf* | bgxlf* | mpixlf*)
17539 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17540 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17541 hardcode_libdir_flag_spec=
17542 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17543 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17544 if test "x$supports_anon_versioning" = xyes; then
17545 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547 echo "local: *; };" >> $output_objdir/$libname.ver~
17548 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17551 esac
17552 else
17553 ld_shlibs=no
17557 netbsd*)
17558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17559 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17560 wlarc=
17561 else
17562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17567 solaris*)
17568 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17569 ld_shlibs=no
17570 cat <<_LT_EOF 1>&2
17572 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17573 *** create shared libraries on Solaris systems. Therefore, libtool
17574 *** is disabling shared libraries support. We urge you to upgrade GNU
17575 *** binutils to release 2.9.1 or newer. Another option is to modify
17576 *** your PATH or compiler configuration so that the native linker is
17577 *** used, and then restart.
17579 _LT_EOF
17580 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17583 else
17584 ld_shlibs=no
17588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17589 case `$LD -v 2>&1` in
17590 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17591 ld_shlibs=no
17592 cat <<_LT_EOF 1>&2
17594 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17595 *** reliably create shared libraries on SCO systems. Therefore, libtool
17596 *** is disabling shared libraries support. We urge you to upgrade GNU
17597 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17598 *** your PATH or compiler configuration so that the native linker is
17599 *** used, and then restart.
17601 _LT_EOF
17604 # For security reasons, it is highly recommended that you always
17605 # use absolute paths for naming shared libraries, and exclude the
17606 # DT_RUNPATH tag from executables and libraries. But doing so
17607 # requires that you compile everything twice, which is a pain.
17608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17612 else
17613 ld_shlibs=no
17616 esac
17619 sunos4*)
17620 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17621 wlarc=
17622 hardcode_direct=yes
17623 hardcode_shlibpath_var=no
17627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17630 else
17631 ld_shlibs=no
17634 esac
17636 if test "$ld_shlibs" = no; then
17637 runpath_var=
17638 hardcode_libdir_flag_spec=
17639 export_dynamic_flag_spec=
17640 whole_archive_flag_spec=
17642 else
17643 # PORTME fill in a description of your system's linker (not GNU ld)
17644 case $host_os in
17645 aix3*)
17646 allow_undefined_flag=unsupported
17647 always_export_symbols=yes
17648 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'
17649 # Note: this linker hardcodes the directories in LIBPATH if there
17650 # are no directories specified by -L.
17651 hardcode_minus_L=yes
17652 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17653 # Neither direct hardcoding nor static linking is supported with a
17654 # broken collect2.
17655 hardcode_direct=unsupported
17659 aix[4-9]*)
17660 if test "$host_cpu" = ia64; then
17661 # On IA64, the linker does run time linking by default, so we don't
17662 # have to do anything special.
17663 aix_use_runtimelinking=no
17664 exp_sym_flag='-Bexport'
17665 no_entry_flag=""
17666 else
17667 # If we're using GNU nm, then we don't want the "-C" option.
17668 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17669 # Also, AIX nm treats weak defined symbols like other global
17670 # defined symbols, whereas GNU nm marks them as "W".
17671 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17672 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'
17673 else
17674 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'
17676 aix_use_runtimelinking=no
17678 # Test if we are trying to use run time linking or normal
17679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17680 # need to do runtime linking.
17681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17682 for ld_flag in $LDFLAGS; do
17683 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17684 aix_use_runtimelinking=yes
17685 break
17687 done
17689 esac
17691 exp_sym_flag='-bexport'
17692 no_entry_flag='-bnoentry'
17695 # When large executables or shared objects are built, AIX ld can
17696 # have problems creating the table of contents. If linking a library
17697 # or program results in "error TOC overflow" add -mminimal-toc to
17698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17701 archive_cmds=''
17702 hardcode_direct=yes
17703 hardcode_direct_absolute=yes
17704 hardcode_libdir_separator=':'
17705 link_all_deplibs=yes
17706 file_list_spec='${wl}-f,'
17708 if test "$GCC" = yes; then
17709 case $host_os in aix4.[012]|aix4.[012].*)
17710 # We only want to do this on AIX 4.2 and lower, the check
17711 # below for broken collect2 doesn't work under 4.3+
17712 collect2name=`${CC} -print-prog-name=collect2`
17713 if test -f "$collect2name" &&
17714 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17715 then
17716 # We have reworked collect2
17718 else
17719 # We have old collect2
17720 hardcode_direct=unsupported
17721 # It fails to find uninstalled libraries when the uninstalled
17722 # path is not listed in the libpath. Setting hardcode_minus_L
17723 # to unsupported forces relinking
17724 hardcode_minus_L=yes
17725 hardcode_libdir_flag_spec='-L$libdir'
17726 hardcode_libdir_separator=
17729 esac
17730 shared_flag='-shared'
17731 if test "$aix_use_runtimelinking" = yes; then
17732 shared_flag="$shared_flag "'${wl}-G'
17734 else
17735 # not using gcc
17736 if test "$host_cpu" = ia64; then
17737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17738 # chokes on -Wl,-G. The following line is correct:
17739 shared_flag='-G'
17740 else
17741 if test "$aix_use_runtimelinking" = yes; then
17742 shared_flag='${wl}-G'
17743 else
17744 shared_flag='${wl}-bM:SRE'
17749 export_dynamic_flag_spec='${wl}-bexpall'
17750 # It seems that -bexpall does not export symbols beginning with
17751 # underscore (_), so it is better to generate a list of symbols to export.
17752 always_export_symbols=yes
17753 if test "$aix_use_runtimelinking" = yes; then
17754 # Warning - without using the other runtime loading flags (-brtl),
17755 # -berok will link without error, but may produce a broken library.
17756 allow_undefined_flag='-berok'
17757 # Determine the default libpath from the value encoded in an
17758 # empty executable.
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17763 main ()
17767 return 0;
17769 _ACEOF
17770 if ac_fn_c_try_link "$LINENO"; then :
17772 lt_aix_libpath_sed='
17773 /Import File Strings/,/^$/ {
17774 /^0/ {
17775 s/^0 *\(.*\)$/\1/
17779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 # Check for a 64-bit object if we didn't find anything.
17781 if test -z "$aix_libpath"; then
17782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17790 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"
17791 else
17792 if test "$host_cpu" = ia64; then
17793 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17794 allow_undefined_flag="-z nodefs"
17795 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"
17796 else
17797 # Determine the default libpath from the value encoded in an
17798 # empty executable.
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17803 main ()
17807 return 0;
17809 _ACEOF
17810 if ac_fn_c_try_link "$LINENO"; then :
17812 lt_aix_libpath_sed='
17813 /Import File Strings/,/^$/ {
17814 /^0/ {
17815 s/^0 *\(.*\)$/\1/
17819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 # Check for a 64-bit object if we didn't find anything.
17821 if test -z "$aix_libpath"; then
17822 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17825 rm -f core conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17830 # Warning - without using the other run time loading flags,
17831 # -berok will link without error, but may produce a broken library.
17832 no_undefined_flag=' ${wl}-bernotok'
17833 allow_undefined_flag=' ${wl}-berok'
17834 if test "$with_gnu_ld" = yes; then
17835 # We only use this code for GNU lds that support --whole-archive.
17836 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17837 else
17838 # Exported symbols can be pulled into shared objects from archives
17839 whole_archive_flag_spec='$convenience'
17841 archive_cmds_need_lc=yes
17842 # This is similar to how AIX traditionally builds its shared libraries.
17843 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'
17848 amigaos*)
17849 case $host_cpu in
17850 powerpc)
17851 # see comment about AmigaOS4 .so support
17852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17853 archive_expsym_cmds=''
17855 m68k)
17856 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)'
17857 hardcode_libdir_flag_spec='-L$libdir'
17858 hardcode_minus_L=yes
17860 esac
17863 bsdi[45]*)
17864 export_dynamic_flag_spec=-rdynamic
17867 cygwin* | mingw* | pw32* | cegcc*)
17868 # When not using gcc, we currently assume that we are using
17869 # Microsoft Visual C++.
17870 # hardcode_libdir_flag_spec is actually meaningless, as there is
17871 # no search path for DLLs.
17872 hardcode_libdir_flag_spec=' '
17873 allow_undefined_flag=unsupported
17874 # Tell ltmain to make .lib files, not .a files.
17875 libext=lib
17876 # Tell ltmain to make .dll files, not .so files.
17877 shrext_cmds=".dll"
17878 # FIXME: Setting linknames here is a bad hack.
17879 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17880 # The linker will automatically build a .lib file if we build a DLL.
17881 old_archive_from_new_cmds='true'
17882 # FIXME: Should let the user specify the lib program.
17883 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17884 fix_srcfile_path='`cygpath -w "$srcfile"`'
17885 enable_shared_with_static_runtimes=yes
17888 darwin* | rhapsody*)
17891 archive_cmds_need_lc=no
17892 hardcode_direct=no
17893 hardcode_automatic=yes
17894 hardcode_shlibpath_var=unsupported
17895 if test "$lt_cv_ld_force_load" = "yes"; then
17896 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\"`'
17897 else
17898 whole_archive_flag_spec=''
17900 link_all_deplibs=yes
17901 allow_undefined_flag="$_lt_dar_allow_undefined"
17902 case $cc_basename in
17903 ifort*) _lt_dar_can_shared=yes ;;
17904 *) _lt_dar_can_shared=$GCC ;;
17905 esac
17906 if test "$_lt_dar_can_shared" = "yes"; then
17907 output_verbose_link_cmd=func_echo_all
17908 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17909 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17910 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}"
17911 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}"
17913 else
17914 ld_shlibs=no
17919 dgux*)
17920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17921 hardcode_libdir_flag_spec='-L$libdir'
17922 hardcode_shlibpath_var=no
17925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17926 # support. Future versions do this automatically, but an explicit c++rt0.o
17927 # does not break anything, and helps significantly (at the cost of a little
17928 # extra space).
17929 freebsd2.2*)
17930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17931 hardcode_libdir_flag_spec='-R$libdir'
17932 hardcode_direct=yes
17933 hardcode_shlibpath_var=no
17936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17937 freebsd2.*)
17938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct=yes
17940 hardcode_minus_L=yes
17941 hardcode_shlibpath_var=no
17944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17945 freebsd* | dragonfly*)
17946 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17947 hardcode_libdir_flag_spec='-R$libdir'
17948 hardcode_direct=yes
17949 hardcode_shlibpath_var=no
17952 hpux9*)
17953 if test "$GCC" = yes; then
17954 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'
17955 else
17956 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'
17958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17959 hardcode_libdir_separator=:
17960 hardcode_direct=yes
17962 # hardcode_minus_L: Not really in the search PATH,
17963 # but as the default location of the library.
17964 hardcode_minus_L=yes
17965 export_dynamic_flag_spec='${wl}-E'
17968 hpux10*)
17969 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17971 else
17972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17974 if test "$with_gnu_ld" = no; then
17975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17976 hardcode_libdir_flag_spec_ld='+b $libdir'
17977 hardcode_libdir_separator=:
17978 hardcode_direct=yes
17979 hardcode_direct_absolute=yes
17980 export_dynamic_flag_spec='${wl}-E'
17981 # hardcode_minus_L: Not really in the search PATH,
17982 # but as the default location of the library.
17983 hardcode_minus_L=yes
17987 hpux11*)
17988 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17989 case $host_cpu in
17990 hppa*64*)
17991 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17993 ia64*)
17994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17999 esac
18000 else
18001 case $host_cpu in
18002 hppa*64*)
18003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005 ia64*)
18006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18010 # Older versions of the 11.00 compiler do not understand -b yet
18011 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18013 $as_echo_n "checking if $CC understands -b... " >&6; }
18014 if ${lt_cv_prog_compiler__b+:} false; then :
18015 $as_echo_n "(cached) " >&6
18016 else
18017 lt_cv_prog_compiler__b=no
18018 save_LDFLAGS="$LDFLAGS"
18019 LDFLAGS="$LDFLAGS -b"
18020 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18022 # The linker can only warn and ignore the option if not recognized
18023 # So say no if there are warnings
18024 if test -s conftest.err; then
18025 # Append any errors to the config.log.
18026 cat conftest.err 1>&5
18027 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18029 if diff conftest.exp conftest.er2 >/dev/null; then
18030 lt_cv_prog_compiler__b=yes
18032 else
18033 lt_cv_prog_compiler__b=yes
18036 $RM -r conftest*
18037 LDFLAGS="$save_LDFLAGS"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18041 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18043 if test x"$lt_cv_prog_compiler__b" = xyes; then
18044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18045 else
18046 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18050 esac
18052 if test "$with_gnu_ld" = no; then
18053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18054 hardcode_libdir_separator=:
18056 case $host_cpu in
18057 hppa*64*|ia64*)
18058 hardcode_direct=no
18059 hardcode_shlibpath_var=no
18062 hardcode_direct=yes
18063 hardcode_direct_absolute=yes
18064 export_dynamic_flag_spec='${wl}-E'
18066 # hardcode_minus_L: Not really in the search PATH,
18067 # but as the default location of the library.
18068 hardcode_minus_L=yes
18070 esac
18074 irix5* | irix6* | nonstopux*)
18075 if test "$GCC" = yes; then
18076 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'
18077 # Try to use the -exported_symbol ld option, if it does not
18078 # work, assume that -exports_file does not work either and
18079 # implicitly export all symbols.
18080 save_LDFLAGS="$LDFLAGS"
18081 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18084 int foo(void) {}
18085 _ACEOF
18086 if ac_fn_c_try_link "$LINENO"; then :
18087 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'
18090 rm -f core conftest.err conftest.$ac_objext \
18091 conftest$ac_exeext conftest.$ac_ext
18092 LDFLAGS="$save_LDFLAGS"
18093 else
18094 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'
18095 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'
18097 archive_cmds_need_lc='no'
18098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18099 hardcode_libdir_separator=:
18100 inherit_rpath=yes
18101 link_all_deplibs=yes
18104 netbsd*)
18105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18107 else
18108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18110 hardcode_libdir_flag_spec='-R$libdir'
18111 hardcode_direct=yes
18112 hardcode_shlibpath_var=no
18115 newsos6)
18116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18117 hardcode_direct=yes
18118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18119 hardcode_libdir_separator=:
18120 hardcode_shlibpath_var=no
18123 *nto* | *qnx*)
18126 openbsd*)
18127 if test -f /usr/libexec/ld.so; then
18128 hardcode_direct=yes
18129 hardcode_shlibpath_var=no
18130 hardcode_direct_absolute=yes
18131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18135 export_dynamic_flag_spec='${wl}-E'
18136 else
18137 case $host_os in
18138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18140 hardcode_libdir_flag_spec='-R$libdir'
18143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18146 esac
18148 else
18149 ld_shlibs=no
18153 os2*)
18154 hardcode_libdir_flag_spec='-L$libdir'
18155 hardcode_minus_L=yes
18156 allow_undefined_flag=unsupported
18157 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'
18158 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18161 osf3*)
18162 if test "$GCC" = yes; then
18163 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18164 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'
18165 else
18166 allow_undefined_flag=' -expect_unresolved \*'
18167 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'
18169 archive_cmds_need_lc='no'
18170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18171 hardcode_libdir_separator=:
18174 osf4* | osf5*) # as osf3* with the addition of -msym flag
18175 if test "$GCC" = yes; then
18176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18177 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'
18178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18179 else
18180 allow_undefined_flag=' -expect_unresolved \*'
18181 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'
18182 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~
18183 $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'
18185 # Both c and cxx compiler support -rpath directly
18186 hardcode_libdir_flag_spec='-rpath $libdir'
18188 archive_cmds_need_lc='no'
18189 hardcode_libdir_separator=:
18192 solaris*)
18193 no_undefined_flag=' -z defs'
18194 if test "$GCC" = yes; then
18195 wlarc='${wl}'
18196 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18198 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18199 else
18200 case `$CC -V 2>&1` in
18201 *"Compilers 5.0"*)
18202 wlarc=''
18203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18208 wlarc='${wl}'
18209 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18211 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18213 esac
18215 hardcode_libdir_flag_spec='-R$libdir'
18216 hardcode_shlibpath_var=no
18217 case $host_os in
18218 solaris2.[0-5] | solaris2.[0-5].*) ;;
18220 # The compiler driver will combine and reorder linker options,
18221 # but understands `-z linker_flag'. GCC discards it without `$wl',
18222 # but is careful enough not to reorder.
18223 # Supported since Solaris 2.6 (maybe 2.5.1?)
18224 if test "$GCC" = yes; then
18225 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18226 else
18227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18230 esac
18231 link_all_deplibs=yes
18234 sunos4*)
18235 if test "x$host_vendor" = xsequent; then
18236 # Use $CC to link under sequent, because it throws in some extra .o
18237 # files that make .init and .fini sections work.
18238 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18239 else
18240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18242 hardcode_libdir_flag_spec='-L$libdir'
18243 hardcode_direct=yes
18244 hardcode_minus_L=yes
18245 hardcode_shlibpath_var=no
18248 sysv4)
18249 case $host_vendor in
18250 sni)
18251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 hardcode_direct=yes # is this really true???
18254 siemens)
18255 ## LD is ld it makes a PLAMLIB
18256 ## CC just makes a GrossModule.
18257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258 reload_cmds='$CC -r -o $output$reload_objs'
18259 hardcode_direct=no
18261 motorola)
18262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18265 esac
18266 runpath_var='LD_RUN_PATH'
18267 hardcode_shlibpath_var=no
18270 sysv4.3*)
18271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272 hardcode_shlibpath_var=no
18273 export_dynamic_flag_spec='-Bexport'
18276 sysv4*MP*)
18277 if test -d /usr/nec; then
18278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279 hardcode_shlibpath_var=no
18280 runpath_var=LD_RUN_PATH
18281 hardcode_runpath_var=yes
18282 ld_shlibs=yes
18286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18287 no_undefined_flag='${wl}-z,text'
18288 archive_cmds_need_lc=no
18289 hardcode_shlibpath_var=no
18290 runpath_var='LD_RUN_PATH'
18292 if test "$GCC" = yes; then
18293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18295 else
18296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 sysv5* | sco3.2v5* | sco5v6*)
18302 # Note: We can NOT use -z defs as we might desire, because we do not
18303 # link with -lc, and that would cause any symbols used from libc to
18304 # always be unresolved, which means just about no library would
18305 # ever link correctly. If we're not using GNU ld we use -z text
18306 # though, which does catch some bad symbols but isn't as heavy-handed
18307 # as -z defs.
18308 no_undefined_flag='${wl}-z,text'
18309 allow_undefined_flag='${wl}-z,nodefs'
18310 archive_cmds_need_lc=no
18311 hardcode_shlibpath_var=no
18312 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18313 hardcode_libdir_separator=':'
18314 link_all_deplibs=yes
18315 export_dynamic_flag_spec='${wl}-Bexport'
18316 runpath_var='LD_RUN_PATH'
18318 if test "$GCC" = yes; then
18319 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18321 else
18322 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18323 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18327 uts4*)
18328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18329 hardcode_libdir_flag_spec='-L$libdir'
18330 hardcode_shlibpath_var=no
18334 ld_shlibs=no
18336 esac
18338 if test x$host_vendor = xsni; then
18339 case $host in
18340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18341 export_dynamic_flag_spec='${wl}-Blargedynsym'
18343 esac
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18348 $as_echo "$ld_shlibs" >&6; }
18349 test "$ld_shlibs" = no && can_build_shared=no
18351 with_gnu_ld=$with_gnu_ld
18368 # Do we need to explicitly link libc?
18370 case "x$archive_cmds_need_lc" in
18371 x|xyes)
18372 # Assume -lc should be added
18373 archive_cmds_need_lc=yes
18375 if test "$enable_shared" = yes && test "$GCC" = yes; then
18376 case $archive_cmds in
18377 *'~'*)
18378 # FIXME: we may have to deal with multi-command sequences.
18380 '$CC '*)
18381 # Test whether the compiler implicitly links with -lc since on some
18382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18383 # to ld, don't add -lc before -lgcc.
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18385 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18386 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 $RM conftest*
18390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18393 (eval $ac_compile) 2>&5
18394 ac_status=$?
18395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18396 test $ac_status = 0; } 2>conftest.err; then
18397 soname=conftest
18398 lib=conftest
18399 libobjs=conftest.$ac_objext
18400 deplibs=
18401 wl=$lt_prog_compiler_wl
18402 pic_flag=$lt_prog_compiler_pic
18403 compiler_flags=-v
18404 linker_flags=-v
18405 verstring=
18406 output_objdir=.
18407 libname=conftest
18408 lt_save_allow_undefined_flag=$allow_undefined_flag
18409 allow_undefined_flag=
18410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18411 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18412 ac_status=$?
18413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18414 test $ac_status = 0; }
18415 then
18416 lt_cv_archive_cmds_need_lc=no
18417 else
18418 lt_cv_archive_cmds_need_lc=yes
18420 allow_undefined_flag=$lt_save_allow_undefined_flag
18421 else
18422 cat conftest.err 1>&5
18424 $RM conftest*
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18428 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18429 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18431 esac
18434 esac
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18593 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18595 if test "$GCC" = yes; then
18596 case $host_os in
18597 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18598 *) lt_awk_arg="/^libraries:/" ;;
18599 esac
18600 case $host_os in
18601 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18602 *) lt_sed_strip_eq="s,=/,/,g" ;;
18603 esac
18604 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18605 case $lt_search_path_spec in
18606 *\;*)
18607 # if the path contains ";" then we assume it to be the separator
18608 # otherwise default to the standard path separator (i.e. ":") - it is
18609 # assumed that no part of a normal pathname contains ";" but that should
18610 # okay in the real world where ";" in dirpaths is itself problematic.
18611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18616 esac
18617 # Ok, now we have the path, separated by spaces, we can step through it
18618 # and add multilib dir if necessary.
18619 lt_tmp_lt_search_path_spec=
18620 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18621 for lt_sys_path in $lt_search_path_spec; do
18622 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18624 else
18625 test -d "$lt_sys_path" && \
18626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18628 done
18629 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18630 BEGIN {RS=" "; FS="/|\n";} {
18631 lt_foo="";
18632 lt_count=0;
18633 for (lt_i = NF; lt_i > 0; lt_i--) {
18634 if ($lt_i != "" && $lt_i != ".") {
18635 if ($lt_i == "..") {
18636 lt_count++;
18637 } else {
18638 if (lt_count == 0) {
18639 lt_foo="/" $lt_i lt_foo;
18640 } else {
18641 lt_count--;
18646 if (lt_foo != "") { lt_freq[lt_foo]++; }
18647 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18649 # AWK program above erroneously prepends '/' to C:/dos/paths
18650 # for these hosts.
18651 case $host_os in
18652 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18653 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18654 esac
18655 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18656 else
18657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18659 library_names_spec=
18660 libname_spec='lib$name'
18661 soname_spec=
18662 shrext_cmds=".so"
18663 postinstall_cmds=
18664 postuninstall_cmds=
18665 finish_cmds=
18666 finish_eval=
18667 shlibpath_var=
18668 shlibpath_overrides_runpath=unknown
18669 version_type=none
18670 dynamic_linker="$host_os ld.so"
18671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18672 need_lib_prefix=unknown
18673 hardcode_into_libs=no
18675 # when you set need_version to no, make sure it does not cause -set_version
18676 # flags to be left without arguments
18677 need_version=unknown
18679 case $host_os in
18680 aix3*)
18681 version_type=linux
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18683 shlibpath_var=LIBPATH
18685 # AIX 3 has no versioning support, so we append a major version to the name.
18686 soname_spec='${libname}${release}${shared_ext}$major'
18689 aix[4-9]*)
18690 version_type=linux
18691 need_lib_prefix=no
18692 need_version=no
18693 hardcode_into_libs=yes
18694 if test "$host_cpu" = ia64; then
18695 # AIX 5 supports IA64
18696 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18697 shlibpath_var=LD_LIBRARY_PATH
18698 else
18699 # With GCC up to 2.95.x, collect2 would create an import file
18700 # for dependence libraries. The import file would start with
18701 # the line `#! .'. This would cause the generated library to
18702 # depend on `.', always an invalid library. This was fixed in
18703 # development snapshots of GCC prior to 3.0.
18704 case $host_os in
18705 aix4 | aix4.[01] | aix4.[01].*)
18706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18707 echo ' yes '
18708 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18710 else
18711 can_build_shared=no
18714 esac
18715 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18716 # soname into executable. Probably we can add versioning support to
18717 # collect2, so additional links can be useful in future.
18718 if test "$aix_use_runtimelinking" = yes; then
18719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18720 # instead of lib<name>.a to let people know that these are not
18721 # typical AIX shared libraries.
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 else
18724 # We preserve .a as extension for shared libraries through AIX4.2
18725 # and later when we are not doing run time linking.
18726 library_names_spec='${libname}${release}.a $libname.a'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18729 shlibpath_var=LIBPATH
18733 amigaos*)
18734 case $host_cpu in
18735 powerpc)
18736 # Since July 2007 AmigaOS4 officially supports .so libraries.
18737 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 m68k)
18741 library_names_spec='$libname.ixlibrary $libname.a'
18742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18743 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'
18745 esac
18748 beos*)
18749 library_names_spec='${libname}${shared_ext}'
18750 dynamic_linker="$host_os ld.so"
18751 shlibpath_var=LIBRARY_PATH
18754 bsdi[45]*)
18755 version_type=linux
18756 need_version=no
18757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18758 soname_spec='${libname}${release}${shared_ext}$major'
18759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18760 shlibpath_var=LD_LIBRARY_PATH
18761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18763 # the default ld.so.conf also contains /usr/contrib/lib and
18764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18765 # libtool to hard-code these into programs
18768 cygwin* | mingw* | pw32* | cegcc*)
18769 version_type=windows
18770 shrext_cmds=".dll"
18771 need_version=no
18772 need_lib_prefix=no
18774 case $GCC,$host_os in
18775 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18776 library_names_spec='$libname.dll.a'
18777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18778 postinstall_cmds='base_file=`basename \${file}`~
18779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18780 dldir=$destdir/`dirname \$dlpath`~
18781 test -d \$dldir || mkdir -p \$dldir~
18782 $install_prog $dir/$dlname \$dldir/$dlname~
18783 chmod a+x \$dldir/$dlname~
18784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18788 dlpath=$dir/\$dldll~
18789 $RM \$dlpath'
18790 shlibpath_overrides_runpath=yes
18792 case $host_os in
18793 cygwin*)
18794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18799 mingw* | cegcc*)
18800 # MinGW DLLs use traditional 'lib' prefix
18801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18803 pw32*)
18804 # pw32 DLLs use 'pw' prefix rather than 'lib'
18805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18807 esac
18811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18813 esac
18814 dynamic_linker='Win32 ld.exe'
18815 # FIXME: first we should search . and the directory the executable is in
18816 shlibpath_var=PATH
18819 darwin* | rhapsody*)
18820 dynamic_linker="$host_os dyld"
18821 version_type=darwin
18822 need_lib_prefix=no
18823 need_version=no
18824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18825 soname_spec='${libname}${release}${major}$shared_ext'
18826 shlibpath_overrides_runpath=yes
18827 shlibpath_var=DYLD_LIBRARY_PATH
18828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18834 dgux*)
18835 version_type=linux
18836 need_lib_prefix=no
18837 need_version=no
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18843 freebsd* | dragonfly*)
18844 # DragonFly does not have aout. When/if they implement a new
18845 # versioning mechanism, adjust this.
18846 if test -x /usr/bin/objformat; then
18847 objformat=`/usr/bin/objformat`
18848 else
18849 case $host_os in
18850 freebsd[23].*) objformat=aout ;;
18851 *) objformat=elf ;;
18852 esac
18854 version_type=freebsd-$objformat
18855 case $version_type in
18856 freebsd-elf*)
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18858 need_version=no
18859 need_lib_prefix=no
18861 freebsd-*)
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18863 need_version=yes
18865 esac
18866 shlibpath_var=LD_LIBRARY_PATH
18867 case $host_os in
18868 freebsd2.*)
18869 shlibpath_overrides_runpath=yes
18871 freebsd3.[01]* | freebsdelf3.[01]*)
18872 shlibpath_overrides_runpath=yes
18873 hardcode_into_libs=yes
18875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18877 shlibpath_overrides_runpath=no
18878 hardcode_into_libs=yes
18880 *) # from 4.6 on, and DragonFly
18881 shlibpath_overrides_runpath=yes
18882 hardcode_into_libs=yes
18884 esac
18887 haiku*)
18888 version_type=linux
18889 need_lib_prefix=no
18890 need_version=no
18891 dynamic_linker="$host_os runtime_loader"
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 shlibpath_var=LIBRARY_PATH
18895 shlibpath_overrides_runpath=yes
18896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18897 hardcode_into_libs=yes
18900 hpux9* | hpux10* | hpux11*)
18901 # Give a soname corresponding to the major version so that dld.sl refuses to
18902 # link against other versions.
18903 version_type=sunos
18904 need_lib_prefix=no
18905 need_version=no
18906 case $host_cpu in
18907 ia64*)
18908 shrext_cmds='.so'
18909 hardcode_into_libs=yes
18910 dynamic_linker="$host_os dld.so"
18911 shlibpath_var=LD_LIBRARY_PATH
18912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 if test "X$HPUX_IA64_MODE" = X32; then
18916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18917 else
18918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18922 hppa*64*)
18923 shrext_cmds='.sl'
18924 hardcode_into_libs=yes
18925 dynamic_linker="$host_os dld.sl"
18926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18934 shrext_cmds='.sl'
18935 dynamic_linker="$host_os dld.sl"
18936 shlibpath_var=SHLIB_PATH
18937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939 soname_spec='${libname}${release}${shared_ext}$major'
18941 esac
18942 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18943 postinstall_cmds='chmod 555 $lib'
18944 # or fails outright, so override atomically:
18945 install_override_mode=555
18948 interix[3-9]*)
18949 version_type=linux
18950 need_lib_prefix=no
18951 need_version=no
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 shlibpath_overrides_runpath=no
18957 hardcode_into_libs=yes
18960 irix5* | irix6* | nonstopux*)
18961 case $host_os in
18962 nonstopux*) version_type=nonstopux ;;
18964 if test "$lt_cv_prog_gnu_ld" = yes; then
18965 version_type=linux
18966 else
18967 version_type=irix
18968 fi ;;
18969 esac
18970 need_lib_prefix=no
18971 need_version=no
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18974 case $host_os in
18975 irix5* | nonstopux*)
18976 libsuff= shlibsuff=
18979 case $LD in # libtool.m4 will add one of these switches to LD
18980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18981 libsuff= shlibsuff= libmagic=32-bit;;
18982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18983 libsuff=32 shlibsuff=N32 libmagic=N32;;
18984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18986 *) libsuff= shlibsuff= libmagic=never-match;;
18987 esac
18989 esac
18990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18991 shlibpath_overrides_runpath=no
18992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18994 hardcode_into_libs=yes
18997 # No shared lib support for Linux oldld, aout, or coff.
18998 linux*oldld* | linux*aout* | linux*coff*)
18999 dynamic_linker=no
19002 # This must be Linux ELF.
19004 # uclinux* changes (here and below) have been submitted to the libtool
19005 # project, but have not yet been accepted: they are GCC-local changes
19006 # for the time being. (See
19007 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19009 version_type=linux
19010 need_lib_prefix=no
19011 need_version=no
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19015 shlibpath_var=LD_LIBRARY_PATH
19016 shlibpath_overrides_runpath=no
19018 # Some binutils ld are patched to set DT_RUNPATH
19019 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19020 $as_echo_n "(cached) " >&6
19021 else
19022 lt_cv_shlibpath_overrides_runpath=no
19023 save_LDFLAGS=$LDFLAGS
19024 save_libdir=$libdir
19025 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19026 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19031 main ()
19035 return 0;
19037 _ACEOF
19038 if ac_fn_c_try_link "$LINENO"; then :
19039 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19040 lt_cv_shlibpath_overrides_runpath=yes
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LDFLAGS=$save_LDFLAGS
19046 libdir=$save_libdir
19050 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19052 # This implies no fast_install, which is unacceptable.
19053 # Some rework will be needed to allow for fast_install
19054 # before this can be enabled.
19055 hardcode_into_libs=yes
19057 # Append ld.so.conf contents to the search path
19058 if test -f /etc/ld.so.conf; then
19059 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' ' '`
19060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19063 # We used to test for /lib/ld.so.1 and disable shared libraries on
19064 # powerpc, because MkLinux only supported shared libraries with the
19065 # GNU dynamic linker. Since this was broken with cross compilers,
19066 # most powerpc-linux boxes support dynamic linking these days and
19067 # people can always --disable-shared, the test was removed, and we
19068 # assume the GNU/Linux dynamic linker is in use.
19069 dynamic_linker='GNU/Linux ld.so'
19072 netbsd*)
19073 version_type=sunos
19074 need_lib_prefix=no
19075 need_version=no
19076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19079 dynamic_linker='NetBSD (a.out) ld.so'
19080 else
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 dynamic_linker='NetBSD ld.elf_so'
19085 shlibpath_var=LD_LIBRARY_PATH
19086 shlibpath_overrides_runpath=yes
19087 hardcode_into_libs=yes
19090 newsos6)
19091 version_type=linux
19092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093 shlibpath_var=LD_LIBRARY_PATH
19094 shlibpath_overrides_runpath=yes
19097 *nto* | *qnx*)
19098 version_type=qnx
19099 need_lib_prefix=no
19100 need_version=no
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 shlibpath_var=LD_LIBRARY_PATH
19104 shlibpath_overrides_runpath=no
19105 hardcode_into_libs=yes
19106 dynamic_linker='ldqnx.so'
19109 openbsd*)
19110 version_type=sunos
19111 sys_lib_dlsearch_path_spec="/usr/lib"
19112 need_lib_prefix=no
19113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19114 case $host_os in
19115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19116 *) need_version=no ;;
19117 esac
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19122 case $host_os in
19123 openbsd2.[89] | openbsd2.[89].*)
19124 shlibpath_overrides_runpath=no
19127 shlibpath_overrides_runpath=yes
19129 esac
19130 else
19131 shlibpath_overrides_runpath=yes
19135 os2*)
19136 libname_spec='$name'
19137 shrext_cmds=".dll"
19138 need_lib_prefix=no
19139 library_names_spec='$libname${shared_ext} $libname.a'
19140 dynamic_linker='OS/2 ld.exe'
19141 shlibpath_var=LIBPATH
19144 osf3* | osf4* | osf5*)
19145 version_type=osf
19146 need_lib_prefix=no
19147 need_version=no
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19155 rdos*)
19156 dynamic_linker=no
19159 solaris*)
19160 version_type=linux
19161 need_lib_prefix=no
19162 need_version=no
19163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19164 soname_spec='${libname}${release}${shared_ext}$major'
19165 shlibpath_var=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath=yes
19167 hardcode_into_libs=yes
19168 # ldd complains unless libraries are executable
19169 postinstall_cmds='chmod +x $lib'
19172 sunos4*)
19173 version_type=sunos
19174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19176 shlibpath_var=LD_LIBRARY_PATH
19177 shlibpath_overrides_runpath=yes
19178 if test "$with_gnu_ld" = yes; then
19179 need_lib_prefix=no
19181 need_version=yes
19184 sysv4 | sysv4.3*)
19185 version_type=linux
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 case $host_vendor in
19190 sni)
19191 shlibpath_overrides_runpath=no
19192 need_lib_prefix=no
19193 runpath_var=LD_RUN_PATH
19195 siemens)
19196 need_lib_prefix=no
19198 motorola)
19199 need_lib_prefix=no
19200 need_version=no
19201 shlibpath_overrides_runpath=no
19202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19204 esac
19207 sysv4*MP*)
19208 if test -d /usr/nec ;then
19209 version_type=linux
19210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19211 soname_spec='$libname${shared_ext}.$major'
19212 shlibpath_var=LD_LIBRARY_PATH
19216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19217 version_type=freebsd-elf
19218 need_lib_prefix=no
19219 need_version=no
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19221 soname_spec='${libname}${release}${shared_ext}$major'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=yes
19224 hardcode_into_libs=yes
19225 if test "$with_gnu_ld" = yes; then
19226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19227 else
19228 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19229 case $host_os in
19230 sco3.2v5*)
19231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19233 esac
19235 sys_lib_dlsearch_path_spec='/usr/lib'
19238 tpf*)
19239 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19240 version_type=linux
19241 need_lib_prefix=no
19242 need_version=no
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244 shlibpath_var=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath=no
19246 hardcode_into_libs=yes
19249 uts4*)
19250 version_type=linux
19251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19252 soname_spec='${libname}${release}${shared_ext}$major'
19253 shlibpath_var=LD_LIBRARY_PATH
19256 # Shared libraries for VwWorks, >= 7 only at this stage
19257 # and (fpic) still incompatible with "large" code models
19258 # in a few configurations. Only for RTP mode in any case,
19259 # and upon explicit request at configure time.
19260 vxworks7*)
19261 dynamic_linker=no
19262 case ${with_multisubdir}-${enable_shared} in
19263 *large*)
19265 *mrtp*-yes)
19266 version_type=linux
19267 need_lib_prefix=no
19268 need_version=no
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270 soname_spec='${libname}${release}${shared_ext}$major'
19271 dynamic_linker="$host_os module_loader"
19273 esac
19276 dynamic_linker=no
19278 esac
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19280 $as_echo "$dynamic_linker" >&6; }
19281 test "$dynamic_linker" = no && can_build_shared=no
19283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19284 if test "$GCC" = yes; then
19285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19388 hardcode_action=
19389 if test -n "$hardcode_libdir_flag_spec" ||
19390 test -n "$runpath_var" ||
19391 test "X$hardcode_automatic" = "Xyes" ; then
19393 # We can hardcode non-existent directories.
19394 if test "$hardcode_direct" != no &&
19395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19396 # have to relink, otherwise we might link with an installed library
19397 # when we should be linking with a yet-to-be-installed one
19398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19399 test "$hardcode_minus_L" != no; then
19400 # Linking always hardcodes the temporary library directory.
19401 hardcode_action=relink
19402 else
19403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19404 hardcode_action=immediate
19406 else
19407 # We cannot hardcode anything, or else we can only hardcode existing
19408 # directories.
19409 hardcode_action=unsupported
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19412 $as_echo "$hardcode_action" >&6; }
19414 if test "$hardcode_action" = relink ||
19415 test "$inherit_rpath" = yes; then
19416 # Fast installation is not supported
19417 enable_fast_install=no
19418 elif test "$shlibpath_overrides_runpath" = yes ||
19419 test "$enable_shared" = no; then
19420 # Fast installation is not necessary
19421 enable_fast_install=needless
19429 if test "x$enable_dlopen" != xyes; then
19430 enable_dlopen=unknown
19431 enable_dlopen_self=unknown
19432 enable_dlopen_self_static=unknown
19433 else
19434 lt_cv_dlopen=no
19435 lt_cv_dlopen_libs=
19437 case $host_os in
19438 beos*)
19439 lt_cv_dlopen="load_add_on"
19440 lt_cv_dlopen_libs=
19441 lt_cv_dlopen_self=yes
19444 mingw* | pw32* | cegcc*)
19445 lt_cv_dlopen="LoadLibrary"
19446 lt_cv_dlopen_libs=
19449 cygwin*)
19450 lt_cv_dlopen="dlopen"
19451 lt_cv_dlopen_libs=
19454 darwin*)
19455 # if libdl is installed we need to link against it
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19458 if ${ac_cv_lib_dl_dlopen+:} false; then :
19459 $as_echo_n "(cached) " >&6
19460 else
19461 ac_check_lib_save_LIBS=$LIBS
19462 LIBS="-ldl $LIBS"
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19469 #ifdef __cplusplus
19470 extern "C"
19471 #endif
19472 char dlopen ();
19474 main ()
19476 return dlopen ();
19478 return 0;
19480 _ACEOF
19481 if ac_fn_c_try_link "$LINENO"; then :
19482 ac_cv_lib_dl_dlopen=yes
19483 else
19484 ac_cv_lib_dl_dlopen=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19494 else
19496 lt_cv_dlopen="dyld"
19497 lt_cv_dlopen_libs=
19498 lt_cv_dlopen_self=yes
19505 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19506 if test "x$ac_cv_func_shl_load" = xyes; then :
19507 lt_cv_dlopen="shl_load"
19508 else
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19510 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19511 if ${ac_cv_lib_dld_shl_load+:} false; then :
19512 $as_echo_n "(cached) " >&6
19513 else
19514 ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-ldld $LIBS"
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19519 /* Override any GCC internal prototype to avoid an error.
19520 Use char because int might match the return type of a GCC
19521 builtin and then its argument prototype would still apply. */
19522 #ifdef __cplusplus
19523 extern "C"
19524 #endif
19525 char shl_load ();
19527 main ()
19529 return shl_load ();
19531 return 0;
19533 _ACEOF
19534 if ac_fn_c_try_link "$LINENO"; then :
19535 ac_cv_lib_dld_shl_load=yes
19536 else
19537 ac_cv_lib_dld_shl_load=no
19539 rm -f core conftest.err conftest.$ac_objext \
19540 conftest$ac_exeext conftest.$ac_ext
19541 LIBS=$ac_check_lib_save_LIBS
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19545 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19547 else
19548 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19549 if test "x$ac_cv_func_dlopen" = xyes; then :
19550 lt_cv_dlopen="dlopen"
19551 else
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19554 if ${ac_cv_lib_dl_dlopen+:} false; then :
19555 $as_echo_n "(cached) " >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-ldl $LIBS"
19559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19565 #ifdef __cplusplus
19566 extern "C"
19567 #endif
19568 char dlopen ();
19570 main ()
19572 return dlopen ();
19574 return 0;
19576 _ACEOF
19577 if ac_fn_c_try_link "$LINENO"; then :
19578 ac_cv_lib_dl_dlopen=yes
19579 else
19580 ac_cv_lib_dl_dlopen=no
19582 rm -f core conftest.err conftest.$ac_objext \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19590 else
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19593 if ${ac_cv_lib_svld_dlopen+:} false; then :
19594 $as_echo_n "(cached) " >&6
19595 else
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lsvld $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19604 #ifdef __cplusplus
19605 extern "C"
19606 #endif
19607 char dlopen ();
19609 main ()
19611 return dlopen ();
19613 return 0;
19615 _ACEOF
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 ac_cv_lib_svld_dlopen=yes
19618 else
19619 ac_cv_lib_svld_dlopen=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19626 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19627 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19629 else
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19631 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19632 if ${ac_cv_lib_dld_dld_link+:} false; then :
19633 $as_echo_n "(cached) " >&6
19634 else
19635 ac_check_lib_save_LIBS=$LIBS
19636 LIBS="-ldld $LIBS"
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19640 /* Override any GCC internal prototype to avoid an error.
19641 Use char because int might match the return type of a GCC
19642 builtin and then its argument prototype would still apply. */
19643 #ifdef __cplusplus
19644 extern "C"
19645 #endif
19646 char dld_link ();
19648 main ()
19650 return dld_link ();
19652 return 0;
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 ac_cv_lib_dld_dld_link=yes
19657 else
19658 ac_cv_lib_dld_dld_link=no
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19665 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19666 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19667 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19686 esac
19688 if test "x$lt_cv_dlopen" != xno; then
19689 enable_dlopen=yes
19690 else
19691 enable_dlopen=no
19694 case $lt_cv_dlopen in
19695 dlopen)
19696 save_CPPFLAGS="$CPPFLAGS"
19697 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19699 save_LDFLAGS="$LDFLAGS"
19700 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19702 save_LIBS="$LIBS"
19703 LIBS="$lt_cv_dlopen_libs $LIBS"
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19706 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19707 if ${lt_cv_dlopen_self+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 if test "$cross_compiling" = yes; then :
19711 lt_cv_dlopen_self=cross
19712 else
19713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19714 lt_status=$lt_dlunknown
19715 cat > conftest.$ac_ext <<_LT_EOF
19716 #line 19716 "configure"
19717 #include "confdefs.h"
19719 #if HAVE_DLFCN_H
19720 #include <dlfcn.h>
19721 #endif
19723 #include <stdio.h>
19725 #ifdef RTLD_GLOBAL
19726 # define LT_DLGLOBAL RTLD_GLOBAL
19727 #else
19728 # ifdef DL_GLOBAL
19729 # define LT_DLGLOBAL DL_GLOBAL
19730 # else
19731 # define LT_DLGLOBAL 0
19732 # endif
19733 #endif
19735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19736 find out it does not work in some platform. */
19737 #ifndef LT_DLLAZY_OR_NOW
19738 # ifdef RTLD_LAZY
19739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19740 # else
19741 # ifdef DL_LAZY
19742 # define LT_DLLAZY_OR_NOW DL_LAZY
19743 # else
19744 # ifdef RTLD_NOW
19745 # define LT_DLLAZY_OR_NOW RTLD_NOW
19746 # else
19747 # ifdef DL_NOW
19748 # define LT_DLLAZY_OR_NOW DL_NOW
19749 # else
19750 # define LT_DLLAZY_OR_NOW 0
19751 # endif
19752 # endif
19753 # endif
19754 # endif
19755 #endif
19757 /* When -fvisbility=hidden is used, assume the code has been annotated
19758 correspondingly for the symbols needed. */
19759 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19760 void fnord () __attribute__((visibility("default")));
19761 #endif
19763 void fnord () { int i=42; }
19764 int main ()
19766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19767 int status = $lt_dlunknown;
19769 if (self)
19771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19772 else
19774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19775 else puts (dlerror ());
19777 /* dlclose (self); */
19779 else
19780 puts (dlerror ());
19782 return status;
19784 _LT_EOF
19785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19786 (eval $ac_link) 2>&5
19787 ac_status=$?
19788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19790 (./conftest; exit; ) >&5 2>/dev/null
19791 lt_status=$?
19792 case x$lt_status in
19793 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19794 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19795 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19796 esac
19797 else :
19798 # compilation failed
19799 lt_cv_dlopen_self=no
19802 rm -fr conftest*
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19807 $as_echo "$lt_cv_dlopen_self" >&6; }
19809 if test "x$lt_cv_dlopen_self" = xyes; then
19810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19812 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19813 if ${lt_cv_dlopen_self_static+:} false; then :
19814 $as_echo_n "(cached) " >&6
19815 else
19816 if test "$cross_compiling" = yes; then :
19817 lt_cv_dlopen_self_static=cross
19818 else
19819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19820 lt_status=$lt_dlunknown
19821 cat > conftest.$ac_ext <<_LT_EOF
19822 #line 19822 "configure"
19823 #include "confdefs.h"
19825 #if HAVE_DLFCN_H
19826 #include <dlfcn.h>
19827 #endif
19829 #include <stdio.h>
19831 #ifdef RTLD_GLOBAL
19832 # define LT_DLGLOBAL RTLD_GLOBAL
19833 #else
19834 # ifdef DL_GLOBAL
19835 # define LT_DLGLOBAL DL_GLOBAL
19836 # else
19837 # define LT_DLGLOBAL 0
19838 # endif
19839 #endif
19841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19842 find out it does not work in some platform. */
19843 #ifndef LT_DLLAZY_OR_NOW
19844 # ifdef RTLD_LAZY
19845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19846 # else
19847 # ifdef DL_LAZY
19848 # define LT_DLLAZY_OR_NOW DL_LAZY
19849 # else
19850 # ifdef RTLD_NOW
19851 # define LT_DLLAZY_OR_NOW RTLD_NOW
19852 # else
19853 # ifdef DL_NOW
19854 # define LT_DLLAZY_OR_NOW DL_NOW
19855 # else
19856 # define LT_DLLAZY_OR_NOW 0
19857 # endif
19858 # endif
19859 # endif
19860 # endif
19861 #endif
19863 /* When -fvisbility=hidden is used, assume the code has been annotated
19864 correspondingly for the symbols needed. */
19865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19866 void fnord () __attribute__((visibility("default")));
19867 #endif
19869 void fnord () { int i=42; }
19870 int main ()
19872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19873 int status = $lt_dlunknown;
19875 if (self)
19877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19878 else
19880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19881 else puts (dlerror ());
19883 /* dlclose (self); */
19885 else
19886 puts (dlerror ());
19888 return status;
19890 _LT_EOF
19891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19892 (eval $ac_link) 2>&5
19893 ac_status=$?
19894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19895 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19896 (./conftest; exit; ) >&5 2>/dev/null
19897 lt_status=$?
19898 case x$lt_status in
19899 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19900 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19901 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19902 esac
19903 else :
19904 # compilation failed
19905 lt_cv_dlopen_self_static=no
19908 rm -fr conftest*
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19913 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19916 CPPFLAGS="$save_CPPFLAGS"
19917 LDFLAGS="$save_LDFLAGS"
19918 LIBS="$save_LIBS"
19920 esac
19922 case $lt_cv_dlopen_self in
19923 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19924 *) enable_dlopen_self=unknown ;;
19925 esac
19927 case $lt_cv_dlopen_self_static in
19928 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19929 *) enable_dlopen_self_static=unknown ;;
19930 esac
19949 striplib=
19950 old_striplib=
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19952 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19953 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19954 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19955 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957 $as_echo "yes" >&6; }
19958 else
19959 # FIXME - insert some real tests, host_os isn't really good enough
19960 case $host_os in
19961 darwin*)
19962 if test -n "$STRIP" ; then
19963 striplib="$STRIP -x"
19964 old_striplib="$STRIP -S"
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19966 $as_echo "yes" >&6; }
19967 else
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974 $as_echo "no" >&6; }
19976 esac
19990 # Report which library types will actually be built
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19994 $as_echo "$can_build_shared" >&6; }
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19997 $as_echo_n "checking whether to build shared libraries... " >&6; }
19998 test "$can_build_shared" = "no" && enable_shared=no
20000 # On AIX, shared libraries and static libraries use the same namespace, and
20001 # are all built from PIC.
20002 case $host_os in
20003 aix3*)
20004 test "$enable_shared" = yes && enable_static=no
20005 if test -n "$RANLIB"; then
20006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20007 postinstall_cmds='$RANLIB $lib'
20011 aix[4-9]*)
20012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20013 test "$enable_shared" = yes && enable_static=no
20016 esac
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20018 $as_echo "$enable_shared" >&6; }
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20021 $as_echo_n "checking whether to build static libraries... " >&6; }
20022 # Make sure either enable_shared or enable_static is yes.
20023 test "$enable_shared" = yes || enable_static=yes
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20025 $as_echo "$enable_static" >&6; }
20031 ac_ext=cpp
20032 ac_cpp='$CXXCPP $CPPFLAGS'
20033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037 CC="$lt_save_CC"
20039 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20040 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20041 (test "X$CXX" != "Xg++"))) ; then
20042 ac_ext=cpp
20043 ac_cpp='$CXXCPP $CPPFLAGS'
20044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20048 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20049 if test -z "$CXXCPP"; then
20050 if ${ac_cv_prog_CXXCPP+:} false; then :
20051 $as_echo_n "(cached) " >&6
20052 else
20053 # Double quotes because CXXCPP needs to be expanded
20054 for CXXCPP in "$CXX -E" "/lib/cpp"
20056 ac_preproc_ok=false
20057 for ac_cxx_preproc_warn_flag in '' yes
20059 # Use a header file that comes with gcc, so configuring glibc
20060 # with a fresh cross-compiler works.
20061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062 # <limits.h> exists even on freestanding compilers.
20063 # On the NeXT, cc -E runs the code through the compiler's parser,
20064 # not just through cpp. "Syntax error" is here to catch this case.
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h. */
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20072 Syntax error
20073 _ACEOF
20074 if ac_fn_cxx_try_cpp "$LINENO"; then :
20076 else
20077 # Broken: fails on valid input.
20078 continue
20080 rm -f conftest.err conftest.i conftest.$ac_ext
20082 # OK, works on sane cases. Now check whether nonexistent headers
20083 # can be detected and how.
20084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20085 /* end confdefs.h. */
20086 #include <ac_nonexistent.h>
20087 _ACEOF
20088 if ac_fn_cxx_try_cpp "$LINENO"; then :
20089 # Broken: success on invalid input.
20090 continue
20091 else
20092 # Passes both tests.
20093 ac_preproc_ok=:
20094 break
20096 rm -f conftest.err conftest.i conftest.$ac_ext
20098 done
20099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20100 rm -f conftest.i conftest.err conftest.$ac_ext
20101 if $ac_preproc_ok; then :
20102 break
20105 done
20106 ac_cv_prog_CXXCPP=$CXXCPP
20109 CXXCPP=$ac_cv_prog_CXXCPP
20110 else
20111 ac_cv_prog_CXXCPP=$CXXCPP
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20114 $as_echo "$CXXCPP" >&6; }
20115 ac_preproc_ok=false
20116 for ac_cxx_preproc_warn_flag in '' yes
20118 # Use a header file that comes with gcc, so configuring glibc
20119 # with a fresh cross-compiler works.
20120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121 # <limits.h> exists even on freestanding compilers.
20122 # On the NeXT, cc -E runs the code through the compiler's parser,
20123 # not just through cpp. "Syntax error" is here to catch this case.
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20126 #ifdef __STDC__
20127 # include <limits.h>
20128 #else
20129 # include <assert.h>
20130 #endif
20131 Syntax error
20132 _ACEOF
20133 if ac_fn_cxx_try_cpp "$LINENO"; then :
20135 else
20136 # Broken: fails on valid input.
20137 continue
20139 rm -f conftest.err conftest.i conftest.$ac_ext
20141 # OK, works on sane cases. Now check whether nonexistent headers
20142 # can be detected and how.
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <ac_nonexistent.h>
20146 _ACEOF
20147 if ac_fn_cxx_try_cpp "$LINENO"; then :
20148 # Broken: success on invalid input.
20149 continue
20150 else
20151 # Passes both tests.
20152 ac_preproc_ok=:
20153 break
20155 rm -f conftest.err conftest.i conftest.$ac_ext
20157 done
20158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20159 rm -f conftest.i conftest.err conftest.$ac_ext
20160 if $ac_preproc_ok; then :
20162 else
20163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20165 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20166 See \`config.log' for more details" "$LINENO" 5; }
20169 ac_ext=cpp
20170 ac_cpp='$CXXCPP $CPPFLAGS'
20171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20175 else
20176 _lt_caught_CXX_error=yes
20179 ac_ext=cpp
20180 ac_cpp='$CXXCPP $CPPFLAGS'
20181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20185 archive_cmds_need_lc_CXX=no
20186 allow_undefined_flag_CXX=
20187 always_export_symbols_CXX=no
20188 archive_expsym_cmds_CXX=
20189 compiler_needs_object_CXX=no
20190 export_dynamic_flag_spec_CXX=
20191 hardcode_direct_CXX=no
20192 hardcode_direct_absolute_CXX=no
20193 hardcode_libdir_flag_spec_CXX=
20194 hardcode_libdir_flag_spec_ld_CXX=
20195 hardcode_libdir_separator_CXX=
20196 hardcode_minus_L_CXX=no
20197 hardcode_shlibpath_var_CXX=unsupported
20198 hardcode_automatic_CXX=no
20199 inherit_rpath_CXX=no
20200 module_cmds_CXX=
20201 module_expsym_cmds_CXX=
20202 link_all_deplibs_CXX=unknown
20203 old_archive_cmds_CXX=$old_archive_cmds
20204 reload_flag_CXX=$reload_flag
20205 reload_cmds_CXX=$reload_cmds
20206 no_undefined_flag_CXX=
20207 whole_archive_flag_spec_CXX=
20208 enable_shared_with_static_runtimes_CXX=no
20210 # Source file extension for C++ test sources.
20211 ac_ext=cpp
20213 # Object file extension for compiled C++ test sources.
20214 objext=o
20215 objext_CXX=$objext
20217 # No sense in running all these tests if we already determined that
20218 # the CXX compiler isn't working. Some variables (like enable_shared)
20219 # are currently assumed to apply to all compilers on this platform,
20220 # and will be corrupted by setting them based on a non-working compiler.
20221 if test "$_lt_caught_CXX_error" != yes; then
20222 # Code to be used in simple compile tests
20223 lt_simple_compile_test_code="int some_variable = 0;"
20225 # Code to be used in simple link tests
20226 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20235 # If no C compiler was specified, use CC.
20236 LTCC=${LTCC-"$CC"}
20238 # If no C compiler flags were specified, use CFLAGS.
20239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20241 # Allow CC to be a program name with arguments.
20242 compiler=$CC
20245 # save warnings/boilerplate of simple test code
20246 ac_outfile=conftest.$ac_objext
20247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20249 _lt_compiler_boilerplate=`cat conftest.err`
20250 $RM conftest*
20252 ac_outfile=conftest.$ac_objext
20253 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20255 _lt_linker_boilerplate=`cat conftest.err`
20256 $RM -r conftest*
20259 # Allow CC to be a program name with arguments.
20260 lt_save_CC=$CC
20261 lt_save_LD=$LD
20262 lt_save_GCC=$GCC
20263 GCC=$GXX
20264 lt_save_with_gnu_ld=$with_gnu_ld
20265 lt_save_path_LD=$lt_cv_path_LD
20266 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20267 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20268 else
20269 $as_unset lt_cv_prog_gnu_ld
20271 if test -n "${lt_cv_path_LDCXX+set}"; then
20272 lt_cv_path_LD=$lt_cv_path_LDCXX
20273 else
20274 $as_unset lt_cv_path_LD
20276 test -z "${LDCXX+set}" || LD=$LDCXX
20277 CC=${CXX-"c++"}
20278 compiler=$CC
20279 compiler_CXX=$CC
20280 for cc_temp in $compiler""; do
20281 case $cc_temp in
20282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20284 \-*) ;;
20285 *) break;;
20286 esac
20287 done
20288 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20291 if test -n "$compiler"; then
20292 # We don't want -fno-exception when compiling C++ code, so set the
20293 # no_builtin_flag separately
20294 if test "$GXX" = yes; then
20295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20296 else
20297 lt_prog_compiler_no_builtin_flag_CXX=
20300 if test "$GXX" = yes; then
20301 # Set up default GNU C++ configuration
20305 # Check whether --with-gnu-ld was given.
20306 if test "${with_gnu_ld+set}" = set; then :
20307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20308 else
20309 with_gnu_ld=no
20312 ac_prog=ld
20313 if test "$GCC" = yes; then
20314 # Check if gcc -print-prog-name=ld gives a path.
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20316 $as_echo_n "checking for ld used by $CC... " >&6; }
20317 case $host in
20318 *-*-mingw*)
20319 # gcc leaves a trailing carriage return which upsets mingw
20320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20323 esac
20324 case $ac_prog in
20325 # Accept absolute paths.
20326 [\\/]* | ?:[\\/]*)
20327 re_direlt='/[^/][^/]*/\.\./'
20328 # Canonicalize the pathname of ld
20329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20332 done
20333 test -z "$LD" && LD="$ac_prog"
20336 # If it fails, then pretend we aren't using GCC.
20337 ac_prog=ld
20340 # If it is relative, then search for the first ld in PATH.
20341 with_gnu_ld=unknown
20343 esac
20344 elif test "$with_gnu_ld" = yes; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20346 $as_echo_n "checking for GNU ld... " >&6; }
20347 else
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20349 $as_echo_n "checking for non-GNU ld... " >&6; }
20351 if ${lt_cv_path_LD+:} false; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 if test -z "$LD"; then
20355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20356 for ac_dir in $PATH; do
20357 IFS="$lt_save_ifs"
20358 test -z "$ac_dir" && ac_dir=.
20359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20360 lt_cv_path_LD="$ac_dir/$ac_prog"
20361 # Check to see if the program is GNU ld. I'd rather use --version,
20362 # but apparently some variants of GNU ld only accept -v.
20363 # Break only if it was the GNU/non-GNU ld that we prefer.
20364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20365 *GNU* | *'with BFD'*)
20366 test "$with_gnu_ld" != no && break
20369 test "$with_gnu_ld" != yes && break
20371 esac
20373 done
20374 IFS="$lt_save_ifs"
20375 else
20376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20380 LD="$lt_cv_path_LD"
20381 if test -n "$LD"; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20383 $as_echo "$LD" >&6; }
20384 else
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20391 if ${lt_cv_prog_gnu_ld+:} false; then :
20392 $as_echo_n "(cached) " >&6
20393 else
20394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20395 case `$LD -v 2>&1 </dev/null` in
20396 *GNU* | *'with BFD'*)
20397 lt_cv_prog_gnu_ld=yes
20400 lt_cv_prog_gnu_ld=no
20402 esac
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20406 with_gnu_ld=$lt_cv_prog_gnu_ld
20414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20415 # archiving commands below assume that GNU ld is being used.
20416 if test "$with_gnu_ld" = yes; then
20417 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20418 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'
20420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20423 # If archive_cmds runs LD, not CC, wlarc should be empty
20424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20425 # investigate it a little bit more. (MM)
20426 wlarc='${wl}'
20428 # ancient GNU ld didn't support --whole-archive et. al.
20429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20430 $GREP 'no-whole-archive' > /dev/null; then
20431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20432 else
20433 whole_archive_flag_spec_CXX=
20435 else
20436 with_gnu_ld=no
20437 wlarc=
20439 # A generic and very simple default shared library creation
20440 # command for GNU C++ for the case where it uses the native
20441 # linker, instead of GNU ld. If possible, this setting should
20442 # overridden to take advantage of the native linker features on
20443 # the platform it is being used on.
20444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20447 # Commands to make compiler produce verbose output that lists
20448 # what "hidden" libraries, object files and flags are used when
20449 # linking a shared library.
20450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20452 else
20453 GXX=no
20454 with_gnu_ld=no
20455 wlarc=
20458 # PORTME: fill in a description of your system's C++ link characteristics
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20461 ld_shlibs_CXX=yes
20462 case $host_os in
20463 aix3*)
20464 # FIXME: insert proper C++ library support
20465 ld_shlibs_CXX=no
20467 aix[4-9]*)
20468 if test "$host_cpu" = ia64; then
20469 # On IA64, the linker does run time linking by default, so we don't
20470 # have to do anything special.
20471 aix_use_runtimelinking=no
20472 exp_sym_flag='-Bexport'
20473 no_entry_flag=""
20474 else
20475 aix_use_runtimelinking=no
20477 # Test if we are trying to use run time linking or normal
20478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20479 # need to do runtime linking.
20480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20481 for ld_flag in $LDFLAGS; do
20482 case $ld_flag in
20483 *-brtl*)
20484 aix_use_runtimelinking=yes
20485 break
20487 esac
20488 done
20490 esac
20492 exp_sym_flag='-bexport'
20493 no_entry_flag='-bnoentry'
20496 # When large executables or shared objects are built, AIX ld can
20497 # have problems creating the table of contents. If linking a library
20498 # or program results in "error TOC overflow" add -mminimal-toc to
20499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20502 archive_cmds_CXX=''
20503 hardcode_direct_CXX=yes
20504 hardcode_direct_absolute_CXX=yes
20505 hardcode_libdir_separator_CXX=':'
20506 link_all_deplibs_CXX=yes
20507 file_list_spec_CXX='${wl}-f,'
20509 if test "$GXX" = yes; then
20510 case $host_os in aix4.[012]|aix4.[012].*)
20511 # We only want to do this on AIX 4.2 and lower, the check
20512 # below for broken collect2 doesn't work under 4.3+
20513 collect2name=`${CC} -print-prog-name=collect2`
20514 if test -f "$collect2name" &&
20515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20516 then
20517 # We have reworked collect2
20519 else
20520 # We have old collect2
20521 hardcode_direct_CXX=unsupported
20522 # It fails to find uninstalled libraries when the uninstalled
20523 # path is not listed in the libpath. Setting hardcode_minus_L
20524 # to unsupported forces relinking
20525 hardcode_minus_L_CXX=yes
20526 hardcode_libdir_flag_spec_CXX='-L$libdir'
20527 hardcode_libdir_separator_CXX=
20529 esac
20530 shared_flag='-shared'
20531 if test "$aix_use_runtimelinking" = yes; then
20532 shared_flag="$shared_flag "'${wl}-G'
20534 else
20535 # not using gcc
20536 if test "$host_cpu" = ia64; then
20537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20538 # chokes on -Wl,-G. The following line is correct:
20539 shared_flag='-G'
20540 else
20541 if test "$aix_use_runtimelinking" = yes; then
20542 shared_flag='${wl}-G'
20543 else
20544 shared_flag='${wl}-bM:SRE'
20549 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20550 # It seems that -bexpall does not export symbols beginning with
20551 # underscore (_), so it is better to generate a list of symbols to
20552 # export.
20553 always_export_symbols_CXX=yes
20554 if test "$aix_use_runtimelinking" = yes; then
20555 # Warning - without using the other runtime loading flags (-brtl),
20556 # -berok will link without error, but may produce a broken library.
20557 allow_undefined_flag_CXX='-berok'
20558 # Determine the default libpath from the value encoded in an empty
20559 # executable.
20560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561 /* end confdefs.h. */
20564 main ()
20568 return 0;
20570 _ACEOF
20571 if ac_fn_cxx_try_link "$LINENO"; then :
20573 lt_aix_libpath_sed='
20574 /Import File Strings/,/^$/ {
20575 /^0/ {
20576 s/^0 *\(.*\)$/\1/
20580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20581 # Check for a 64-bit object if we didn't find anything.
20582 if test -z "$aix_libpath"; then
20583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20592 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"
20593 else
20594 if test "$host_cpu" = ia64; then
20595 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20596 allow_undefined_flag_CXX="-z nodefs"
20597 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"
20598 else
20599 # Determine the default libpath from the value encoded in an
20600 # empty executable.
20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h. */
20605 main ()
20609 return 0;
20611 _ACEOF
20612 if ac_fn_cxx_try_link "$LINENO"; then :
20614 lt_aix_libpath_sed='
20615 /Import File Strings/,/^$/ {
20616 /^0/ {
20617 s/^0 *\(.*\)$/\1/
20621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20622 # Check for a 64-bit object if we didn't find anything.
20623 if test -z "$aix_libpath"; then
20624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20627 rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20632 # Warning - without using the other run time loading flags,
20633 # -berok will link without error, but may produce a broken library.
20634 no_undefined_flag_CXX=' ${wl}-bernotok'
20635 allow_undefined_flag_CXX=' ${wl}-berok'
20636 if test "$with_gnu_ld" = yes; then
20637 # We only use this code for GNU lds that support --whole-archive.
20638 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20639 else
20640 # Exported symbols can be pulled into shared objects from archives
20641 whole_archive_flag_spec_CXX='$convenience'
20643 archive_cmds_need_lc_CXX=yes
20644 # This is similar to how AIX traditionally builds its shared
20645 # libraries.
20646 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'
20651 beos*)
20652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20653 allow_undefined_flag_CXX=unsupported
20654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20655 # support --undefined. This deserves some investigation. FIXME
20656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20657 else
20658 ld_shlibs_CXX=no
20662 chorus*)
20663 case $cc_basename in
20665 # FIXME: insert proper C++ library support
20666 ld_shlibs_CXX=no
20668 esac
20671 cygwin* | mingw* | pw32* | cegcc*)
20672 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20673 # as there is no search path for DLLs.
20674 hardcode_libdir_flag_spec_CXX='-L$libdir'
20675 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20676 allow_undefined_flag_CXX=unsupported
20677 always_export_symbols_CXX=no
20678 enable_shared_with_static_runtimes_CXX=yes
20680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20681 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'
20682 # If the export-symbols file already is a .def file (1st line
20683 # is EXPORTS), use it as is; otherwise, prepend...
20684 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20685 cp $export_symbols $output_objdir/$soname.def;
20686 else
20687 echo EXPORTS > $output_objdir/$soname.def;
20688 cat $export_symbols >> $output_objdir/$soname.def;
20690 $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'
20691 else
20692 ld_shlibs_CXX=no
20695 darwin* | rhapsody*)
20698 archive_cmds_need_lc_CXX=no
20699 hardcode_direct_CXX=no
20700 hardcode_automatic_CXX=yes
20701 hardcode_shlibpath_var_CXX=unsupported
20702 if test "$lt_cv_ld_force_load" = "yes"; then
20703 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\"`'
20704 else
20705 whole_archive_flag_spec_CXX=''
20707 link_all_deplibs_CXX=yes
20708 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20709 case $cc_basename in
20710 ifort*) _lt_dar_can_shared=yes ;;
20711 *) _lt_dar_can_shared=$GCC ;;
20712 esac
20713 if test "$_lt_dar_can_shared" = "yes"; then
20714 output_verbose_link_cmd=func_echo_all
20715 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}"
20716 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20717 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}"
20718 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}"
20719 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20720 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}"
20721 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}"
20724 else
20725 ld_shlibs_CXX=no
20730 dgux*)
20731 case $cc_basename in
20732 ec++*)
20733 # FIXME: insert proper C++ library support
20734 ld_shlibs_CXX=no
20736 ghcx*)
20737 # Green Hills C++ Compiler
20738 # FIXME: insert proper C++ library support
20739 ld_shlibs_CXX=no
20742 # FIXME: insert proper C++ library support
20743 ld_shlibs_CXX=no
20745 esac
20748 freebsd2.*)
20749 # C++ shared libraries reported to be fairly broken before
20750 # switch to ELF
20751 ld_shlibs_CXX=no
20754 freebsd-elf*)
20755 archive_cmds_need_lc_CXX=no
20758 freebsd* | dragonfly*)
20759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20760 # conventions
20761 ld_shlibs_CXX=yes
20764 gnu*)
20767 haiku*)
20768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20769 link_all_deplibs_CXX=yes
20772 hpux9*)
20773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20774 hardcode_libdir_separator_CXX=:
20775 export_dynamic_flag_spec_CXX='${wl}-E'
20776 hardcode_direct_CXX=yes
20777 hardcode_minus_L_CXX=yes # Not in the search PATH,
20778 # but as the default
20779 # location of the library.
20781 case $cc_basename in
20782 CC*)
20783 # FIXME: insert proper C++ library support
20784 ld_shlibs_CXX=no
20786 aCC*)
20787 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'
20788 # Commands to make compiler produce verbose output that lists
20789 # what "hidden" libraries, object files and flags are used when
20790 # linking a shared library.
20792 # There doesn't appear to be a way to prevent this compiler from
20793 # explicitly linking system object files so we need to strip them
20794 # from the output so that they don't get included in the library
20795 # dependencies.
20796 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"'
20799 if test "$GXX" = yes; then
20800 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'
20801 else
20802 # FIXME: insert proper C++ library support
20803 ld_shlibs_CXX=no
20806 esac
20809 hpux10*|hpux11*)
20810 if test $with_gnu_ld = no; then
20811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20812 hardcode_libdir_separator_CXX=:
20814 case $host_cpu in
20815 hppa*64*|ia64*)
20818 export_dynamic_flag_spec_CXX='${wl}-E'
20820 esac
20822 case $host_cpu in
20823 hppa*64*|ia64*)
20824 hardcode_direct_CXX=no
20825 hardcode_shlibpath_var_CXX=no
20828 hardcode_direct_CXX=yes
20829 hardcode_direct_absolute_CXX=yes
20830 hardcode_minus_L_CXX=yes # Not in the search PATH,
20831 # but as the default
20832 # location of the library.
20834 esac
20836 case $cc_basename in
20837 CC*)
20838 # FIXME: insert proper C++ library support
20839 ld_shlibs_CXX=no
20841 aCC*)
20842 case $host_cpu in
20843 hppa*64*)
20844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20846 ia64*)
20847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20852 esac
20853 # Commands to make compiler produce verbose output that lists
20854 # what "hidden" libraries, object files and flags are used when
20855 # linking a shared library.
20857 # There doesn't appear to be a way to prevent this compiler from
20858 # explicitly linking system object files so we need to strip them
20859 # from the output so that they don't get included in the library
20860 # dependencies.
20861 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"'
20864 if test "$GXX" = yes; then
20865 if test $with_gnu_ld = no; then
20866 case $host_cpu in
20867 hppa*64*)
20868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20870 ia64*)
20871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20874 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'
20876 esac
20878 else
20879 # FIXME: insert proper C++ library support
20880 ld_shlibs_CXX=no
20883 esac
20886 interix[3-9]*)
20887 hardcode_direct_CXX=no
20888 hardcode_shlibpath_var_CXX=no
20889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20890 export_dynamic_flag_spec_CXX='${wl}-E'
20891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20892 # Instead, shared libraries are loaded at an image base (0x10000000 by
20893 # default) and relocated if they conflict, which is a slow very memory
20894 # consuming and fragmenting process. To avoid this, we pick a random,
20895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20897 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'
20898 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'
20900 irix5* | irix6*)
20901 case $cc_basename in
20902 CC*)
20903 # SGI C++
20904 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'
20906 # Archives containing C++ object files must be created using
20907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20908 # necessary to make sure instantiated templates are included
20909 # in the archive.
20910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20913 if test "$GXX" = yes; then
20914 if test "$with_gnu_ld" = no; then
20915 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'
20916 else
20917 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'
20920 link_all_deplibs_CXX=yes
20922 esac
20923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20924 hardcode_libdir_separator_CXX=:
20925 inherit_rpath_CXX=yes
20928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20929 case $cc_basename in
20930 KCC*)
20931 # Kuck and Associates, Inc. (KAI) C++ Compiler
20933 # KCC will only create a shared library if the output file
20934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20935 # to its proper name (with version) after linking.
20936 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'
20937 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'
20938 # Commands to make compiler produce verbose output that lists
20939 # what "hidden" libraries, object files and flags are used when
20940 # linking a shared library.
20942 # There doesn't appear to be a way to prevent this compiler from
20943 # explicitly linking system object files so we need to strip them
20944 # from the output so that they don't get included in the library
20945 # dependencies.
20946 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"'
20948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20951 # Archives containing C++ object files must be created using
20952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20955 icpc* | ecpc* )
20956 # Intel C++
20957 with_gnu_ld=yes
20958 # version 8.0 and above of icpc choke on multiply defined symbols
20959 # if we add $predep_objects and $postdep_objects, however 7.1 and
20960 # earlier do not add the objects themselves.
20961 case `$CC -V 2>&1` in
20962 *"Version 7."*)
20963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20964 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'
20966 *) # Version 8.0 or newer
20967 tmp_idyn=
20968 case $host_cpu in
20969 ia64*) tmp_idyn=' -i_dynamic';;
20970 esac
20971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20972 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'
20974 esac
20975 archive_cmds_need_lc_CXX=no
20976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20980 pgCC* | pgcpp*)
20981 # Portland Group C++ compiler
20982 case `$CC -V` in
20983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20984 prelink_cmds_CXX='tpldir=Template.dir~
20985 rm -rf $tpldir~
20986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20988 old_archive_cmds_CXX='tpldir=Template.dir~
20989 rm -rf $tpldir~
20990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20992 $RANLIB $oldlib'
20993 archive_cmds_CXX='tpldir=Template.dir~
20994 rm -rf $tpldir~
20995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20997 archive_expsym_cmds_CXX='tpldir=Template.dir~
20998 rm -rf $tpldir~
20999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21000 $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'
21002 *) # Version 6 and above use weak symbols
21003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21004 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'
21006 esac
21008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21010 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'
21012 cxx*)
21013 # Compaq C++
21014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21015 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'
21017 runpath_var=LD_RUN_PATH
21018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21019 hardcode_libdir_separator_CXX=:
21021 # Commands to make compiler produce verbose output that lists
21022 # what "hidden" libraries, object files and flags are used when
21023 # linking a shared library.
21025 # There doesn't appear to be a way to prevent this compiler from
21026 # explicitly linking system object files so we need to strip them
21027 # from the output so that they don't get included in the library
21028 # dependencies.
21029 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'
21031 xl* | mpixl* | bgxl*)
21032 # IBM XL 8.0 on PPC, with GNU ld
21033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21036 if test "x$supports_anon_versioning" = xyes; then
21037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21039 echo "local: *; };" >> $output_objdir/$libname.ver~
21040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21044 case `$CC -V 2>&1 | sed 5q` in
21045 *Sun\ C*)
21046 # Sun C++ 5.9
21047 no_undefined_flag_CXX=' -zdefs'
21048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21049 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'
21050 hardcode_libdir_flag_spec_CXX='-R$libdir'
21051 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'
21052 compiler_needs_object_CXX=yes
21054 # Not sure whether something based on
21055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21056 # would be better.
21057 output_verbose_link_cmd='func_echo_all'
21059 # Archives containing C++ object files must be created using
21060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21061 # necessary to make sure instantiated templates are included
21062 # in the archive.
21063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21065 esac
21067 esac
21070 lynxos*)
21071 # FIXME: insert proper C++ library support
21072 ld_shlibs_CXX=no
21075 m88k*)
21076 # FIXME: insert proper C++ library support
21077 ld_shlibs_CXX=no
21080 mvs*)
21081 case $cc_basename in
21082 cxx*)
21083 # FIXME: insert proper C++ library support
21084 ld_shlibs_CXX=no
21087 # FIXME: insert proper C++ library support
21088 ld_shlibs_CXX=no
21090 esac
21093 netbsd*)
21094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21096 wlarc=
21097 hardcode_libdir_flag_spec_CXX='-R$libdir'
21098 hardcode_direct_CXX=yes
21099 hardcode_shlibpath_var_CXX=no
21101 # Workaround some broken pre-1.5 toolchains
21102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21105 *nto* | *qnx*)
21106 ld_shlibs_CXX=yes
21109 openbsd2*)
21110 # C++ shared libraries are fairly broken
21111 ld_shlibs_CXX=no
21114 openbsd*)
21115 if test -f /usr/libexec/ld.so; then
21116 hardcode_direct_CXX=yes
21117 hardcode_shlibpath_var_CXX=no
21118 hardcode_direct_absolute_CXX=yes
21119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21122 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21123 export_dynamic_flag_spec_CXX='${wl}-E'
21124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21126 output_verbose_link_cmd=func_echo_all
21127 else
21128 ld_shlibs_CXX=no
21132 osf3* | osf4* | osf5*)
21133 case $cc_basename in
21134 KCC*)
21135 # Kuck and Associates, Inc. (KAI) C++ Compiler
21137 # KCC will only create a shared library if the output file
21138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21139 # to its proper name (with version) after linking.
21140 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'
21142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21143 hardcode_libdir_separator_CXX=:
21145 # Archives containing C++ object files must be created using
21146 # the KAI C++ compiler.
21147 case $host in
21148 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21149 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21150 esac
21152 RCC*)
21153 # Rational C++ 2.4.1
21154 # FIXME: insert proper C++ library support
21155 ld_shlibs_CXX=no
21157 cxx*)
21158 case $host in
21159 osf3*)
21160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21161 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'
21162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21165 allow_undefined_flag_CXX=' -expect_unresolved \*'
21166 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'
21167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21168 echo "-hidden">> $lib.exp~
21169 $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~
21170 $RM $lib.exp'
21171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21173 esac
21175 hardcode_libdir_separator_CXX=:
21177 # Commands to make compiler produce verbose output that lists
21178 # what "hidden" libraries, object files and flags are used when
21179 # linking a shared library.
21181 # There doesn't appear to be a way to prevent this compiler from
21182 # explicitly linking system object files so we need to strip them
21183 # from the output so that they don't get included in the library
21184 # dependencies.
21185 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"'
21188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21190 case $host in
21191 osf3*)
21192 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'
21195 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'
21197 esac
21199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21200 hardcode_libdir_separator_CXX=:
21202 # Commands to make compiler produce verbose output that lists
21203 # what "hidden" libraries, object files and flags are used when
21204 # linking a shared library.
21205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21207 else
21208 # FIXME: insert proper C++ library support
21209 ld_shlibs_CXX=no
21212 esac
21215 psos*)
21216 # FIXME: insert proper C++ library support
21217 ld_shlibs_CXX=no
21220 sunos4*)
21221 case $cc_basename in
21222 CC*)
21223 # Sun C++ 4.x
21224 # FIXME: insert proper C++ library support
21225 ld_shlibs_CXX=no
21227 lcc*)
21228 # Lucid
21229 # FIXME: insert proper C++ library support
21230 ld_shlibs_CXX=no
21233 # FIXME: insert proper C++ library support
21234 ld_shlibs_CXX=no
21236 esac
21239 solaris*)
21240 case $cc_basename in
21241 CC*)
21242 # Sun C++ 4.2, 5.x and Centerline C++
21243 archive_cmds_need_lc_CXX=yes
21244 no_undefined_flag_CXX=' -zdefs'
21245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21247 $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'
21249 hardcode_libdir_flag_spec_CXX='-R$libdir'
21250 hardcode_shlibpath_var_CXX=no
21251 case $host_os in
21252 solaris2.[0-5] | solaris2.[0-5].*) ;;
21254 # The compiler driver will combine and reorder linker options,
21255 # but understands `-z linker_flag'.
21256 # Supported since Solaris 2.6 (maybe 2.5.1?)
21257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21259 esac
21260 link_all_deplibs_CXX=yes
21262 output_verbose_link_cmd='func_echo_all'
21264 # Archives containing C++ object files must be created using
21265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21266 # necessary to make sure instantiated templates are included
21267 # in the archive.
21268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21270 gcx*)
21271 # Green Hills C++ Compiler
21272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21274 # The C++ compiler must be used to create the archive.
21275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21278 # GNU C++ compiler with Solaris linker
21279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21282 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21283 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21284 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21286 # Commands to make compiler produce verbose output that lists
21287 # what "hidden" libraries, object files and flags are used when
21288 # linking a shared library.
21289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21290 else
21291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21292 # platform.
21293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21294 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21297 # Commands to make compiler produce verbose output that lists
21298 # what "hidden" libraries, object files and flags are used when
21299 # linking a shared library.
21300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21304 case $host_os in
21305 solaris2.[0-5] | solaris2.[0-5].*) ;;
21307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21309 esac
21312 esac
21315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21316 no_undefined_flag_CXX='${wl}-z,text'
21317 archive_cmds_need_lc_CXX=no
21318 hardcode_shlibpath_var_CXX=no
21319 runpath_var='LD_RUN_PATH'
21321 case $cc_basename in
21322 CC*)
21323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21330 esac
21333 sysv5* | sco3.2v5* | sco5v6*)
21334 # Note: We can NOT use -z defs as we might desire, because we do not
21335 # link with -lc, and that would cause any symbols used from libc to
21336 # always be unresolved, which means just about no library would
21337 # ever link correctly. If we're not using GNU ld we use -z text
21338 # though, which does catch some bad symbols but isn't as heavy-handed
21339 # as -z defs.
21340 no_undefined_flag_CXX='${wl}-z,text'
21341 allow_undefined_flag_CXX='${wl}-z,nodefs'
21342 archive_cmds_need_lc_CXX=no
21343 hardcode_shlibpath_var_CXX=no
21344 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21345 hardcode_libdir_separator_CXX=':'
21346 link_all_deplibs_CXX=yes
21347 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21348 runpath_var='LD_RUN_PATH'
21350 case $cc_basename in
21351 CC*)
21352 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21353 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21354 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21355 '"$old_archive_cmds_CXX"
21356 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21357 '"$reload_cmds_CXX"
21360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21363 esac
21366 tandem*)
21367 case $cc_basename in
21368 NCC*)
21369 # NonStop-UX NCC 3.20
21370 # FIXME: insert proper C++ library support
21371 ld_shlibs_CXX=no
21374 # FIXME: insert proper C++ library support
21375 ld_shlibs_CXX=no
21377 esac
21380 vxworks*)
21381 # For VxWorks ports, we assume the use of a GNU linker with
21382 # standard elf conventions.
21383 ld_shlibs_CXX=yes
21387 # FIXME: insert proper C++ library support
21388 ld_shlibs_CXX=no
21390 esac
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21393 $as_echo "$ld_shlibs_CXX" >&6; }
21394 test "$ld_shlibs_CXX" = no && can_build_shared=no
21396 GCC_CXX="$GXX"
21397 LD_CXX="$LD"
21399 ## CAVEAT EMPTOR:
21400 ## There is no encapsulation within the following macros, do not change
21401 ## the running order or otherwise move them around unless you know exactly
21402 ## what you are doing...
21403 # Dependencies to place before and after the object being linked:
21404 predep_objects_CXX=
21405 postdep_objects_CXX=
21406 predeps_CXX=
21407 postdeps_CXX=
21408 compiler_lib_search_path_CXX=
21410 cat > conftest.$ac_ext <<_LT_EOF
21411 class Foo
21413 public:
21414 Foo (void) { a = 0; }
21415 private:
21416 int a;
21418 _LT_EOF
21420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21421 (eval $ac_compile) 2>&5
21422 ac_status=$?
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; then
21425 # Parse the compiler output and extract the necessary
21426 # objects, libraries and library flags.
21428 # Sentinel used to keep track of whether or not we are before
21429 # the conftest object file.
21430 pre_test_object_deps_done=no
21432 for p in `eval "$output_verbose_link_cmd"`; do
21433 case $p in
21435 -L* | -R* | -l*)
21436 # Some compilers place space between "-{L,R}" and the path.
21437 # Remove the space.
21438 if test $p = "-L" ||
21439 test $p = "-R"; then
21440 prev=$p
21441 continue
21442 else
21443 prev=
21446 if test "$pre_test_object_deps_done" = no; then
21447 case $p in
21448 -L* | -R*)
21449 # Internal compiler library paths should come after those
21450 # provided the user. The postdeps already come after the
21451 # user supplied libs so there is no need to process them.
21452 if test -z "$compiler_lib_search_path_CXX"; then
21453 compiler_lib_search_path_CXX="${prev}${p}"
21454 else
21455 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21458 # The "-l" case would never come before the object being
21459 # linked, so don't bother handling this case.
21460 esac
21461 else
21462 if test -z "$postdeps_CXX"; then
21463 postdeps_CXX="${prev}${p}"
21464 else
21465 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21470 *.$objext)
21471 # This assumes that the test object file only shows up
21472 # once in the compiler output.
21473 if test "$p" = "conftest.$objext"; then
21474 pre_test_object_deps_done=yes
21475 continue
21478 if test "$pre_test_object_deps_done" = no; then
21479 if test -z "$predep_objects_CXX"; then
21480 predep_objects_CXX="$p"
21481 else
21482 predep_objects_CXX="$predep_objects_CXX $p"
21484 else
21485 if test -z "$postdep_objects_CXX"; then
21486 postdep_objects_CXX="$p"
21487 else
21488 postdep_objects_CXX="$postdep_objects_CXX $p"
21493 *) ;; # Ignore the rest.
21495 esac
21496 done
21498 # Clean up.
21499 rm -f a.out a.exe
21500 else
21501 echo "libtool.m4: error: problem compiling CXX test program"
21504 $RM -f confest.$objext
21506 # PORTME: override above test on systems where it is broken
21507 case $host_os in
21508 interix[3-9]*)
21509 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21510 # hack all around it, let's just trust "g++" to DTRT.
21511 predep_objects_CXX=
21512 postdep_objects_CXX=
21513 postdeps_CXX=
21516 linux*)
21517 case `$CC -V 2>&1 | sed 5q` in
21518 *Sun\ C*)
21519 # Sun C++ 5.9
21521 # The more standards-conforming stlport4 library is
21522 # incompatible with the Cstd library. Avoid specifying
21523 # it if it's in CXXFLAGS. Ignore libCrun as
21524 # -library=stlport4 depends on it.
21525 case " $CXX $CXXFLAGS " in
21526 *" -library=stlport4 "*)
21527 solaris_use_stlport4=yes
21529 esac
21531 if test "$solaris_use_stlport4" != yes; then
21532 postdeps_CXX='-library=Cstd -library=Crun'
21535 esac
21538 solaris*)
21539 case $cc_basename in
21540 CC*)
21541 # The more standards-conforming stlport4 library is
21542 # incompatible with the Cstd library. Avoid specifying
21543 # it if it's in CXXFLAGS. Ignore libCrun as
21544 # -library=stlport4 depends on it.
21545 case " $CXX $CXXFLAGS " in
21546 *" -library=stlport4 "*)
21547 solaris_use_stlport4=yes
21549 esac
21551 # Adding this requires a known-good setup of shared libraries for
21552 # Sun compiler versions before 5.6, else PIC objects from an old
21553 # archive will be linked into the output, leading to subtle bugs.
21554 if test "$solaris_use_stlport4" != yes; then
21555 postdeps_CXX='-library=Cstd -library=Crun'
21558 esac
21560 esac
21563 case " $postdeps_CXX " in
21564 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21565 esac
21566 compiler_lib_search_dirs_CXX=
21567 if test -n "${compiler_lib_search_path_CXX}"; then
21568 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21601 lt_prog_compiler_wl_CXX=
21602 lt_prog_compiler_pic_CXX=
21603 lt_prog_compiler_static_CXX=
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21608 # C++ specific cases for pic, static, wl, etc.
21609 if test "$GXX" = yes; then
21610 lt_prog_compiler_wl_CXX='-Wl,'
21611 lt_prog_compiler_static_CXX='-static'
21613 case $host_os in
21614 aix*)
21615 # All AIX code is PIC.
21616 if test "$host_cpu" = ia64; then
21617 # AIX 5 now supports IA64 processor
21618 lt_prog_compiler_static_CXX='-Bstatic'
21620 lt_prog_compiler_pic_CXX='-fPIC'
21623 amigaos*)
21624 case $host_cpu in
21625 powerpc)
21626 # see comment about AmigaOS4 .so support
21627 lt_prog_compiler_pic_CXX='-fPIC'
21629 m68k)
21630 # FIXME: we need at least 68020 code to build shared libraries, but
21631 # adding the `-m68020' flag to GCC prevents building anything better,
21632 # like `-m68040'.
21633 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21635 esac
21638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21639 # PIC is the default for these OSes.
21641 mingw* | cygwin* | os2* | pw32* | cegcc*)
21642 # This hack is so that the source file can tell whether it is being
21643 # built for inclusion in a dll (and should export symbols for example).
21644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21645 # (--disable-auto-import) libraries
21646 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21648 darwin* | rhapsody*)
21649 # PIC is the default on this platform
21650 # Common symbols not allowed in MH_DYLIB files
21651 lt_prog_compiler_pic_CXX='-fno-common'
21653 *djgpp*)
21654 # DJGPP does not support shared libraries at all
21655 lt_prog_compiler_pic_CXX=
21657 haiku*)
21658 # PIC is the default for Haiku.
21659 # The "-static" flag exists, but is broken.
21660 lt_prog_compiler_static_CXX=
21662 interix[3-9]*)
21663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21664 # Instead, we relocate shared libraries at runtime.
21666 sysv4*MP*)
21667 if test -d /usr/nec; then
21668 lt_prog_compiler_pic_CXX=-Kconform_pic
21671 hpux*)
21672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21674 # sets the default TLS model and affects inlining.
21675 case $host_cpu in
21676 hppa*64*)
21679 lt_prog_compiler_pic_CXX='-fPIC'
21681 esac
21683 *qnx* | *nto*)
21684 # QNX uses GNU C++, but need to define -shared option too, otherwise
21685 # it will coredump.
21686 lt_prog_compiler_pic_CXX='-fPIC -shared'
21689 lt_prog_compiler_pic_CXX='-fPIC'
21691 esac
21692 else
21693 case $host_os in
21694 aix[4-9]*)
21695 # All AIX code is PIC.
21696 if test "$host_cpu" = ia64; then
21697 # AIX 5 now supports IA64 processor
21698 lt_prog_compiler_static_CXX='-Bstatic'
21699 else
21700 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21703 chorus*)
21704 case $cc_basename in
21705 cxch68*)
21706 # Green Hills C++ Compiler
21707 # _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"
21709 esac
21711 dgux*)
21712 case $cc_basename in
21713 ec++*)
21714 lt_prog_compiler_pic_CXX='-KPIC'
21716 ghcx*)
21717 # Green Hills C++ Compiler
21718 lt_prog_compiler_pic_CXX='-pic'
21722 esac
21724 freebsd* | dragonfly*)
21725 # FreeBSD uses GNU C++
21727 hpux9* | hpux10* | hpux11*)
21728 case $cc_basename in
21729 CC*)
21730 lt_prog_compiler_wl_CXX='-Wl,'
21731 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21732 if test "$host_cpu" != ia64; then
21733 lt_prog_compiler_pic_CXX='+Z'
21736 aCC*)
21737 lt_prog_compiler_wl_CXX='-Wl,'
21738 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21739 case $host_cpu in
21740 hppa*64*|ia64*)
21741 # +Z the default
21744 lt_prog_compiler_pic_CXX='+Z'
21746 esac
21750 esac
21752 interix*)
21753 # This is c89, which is MS Visual C++ (no shared libs)
21754 # Anyone wants to do a port?
21756 irix5* | irix6* | nonstopux*)
21757 case $cc_basename in
21758 CC*)
21759 lt_prog_compiler_wl_CXX='-Wl,'
21760 lt_prog_compiler_static_CXX='-non_shared'
21761 # CC pic flag -KPIC is the default.
21765 esac
21767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21768 case $cc_basename in
21769 KCC*)
21770 # KAI C++ Compiler
21771 lt_prog_compiler_wl_CXX='--backend -Wl,'
21772 lt_prog_compiler_pic_CXX='-fPIC'
21774 ecpc* )
21775 # old Intel C++ for x86_64 which still supported -KPIC.
21776 lt_prog_compiler_wl_CXX='-Wl,'
21777 lt_prog_compiler_pic_CXX='-KPIC'
21778 lt_prog_compiler_static_CXX='-static'
21780 icpc* )
21781 # Intel C++, used to be incompatible with GCC.
21782 # ICC 10 doesn't accept -KPIC any more.
21783 lt_prog_compiler_wl_CXX='-Wl,'
21784 lt_prog_compiler_pic_CXX='-fPIC'
21785 lt_prog_compiler_static_CXX='-static'
21787 pgCC* | pgcpp*)
21788 # Portland Group C++ compiler
21789 lt_prog_compiler_wl_CXX='-Wl,'
21790 lt_prog_compiler_pic_CXX='-fpic'
21791 lt_prog_compiler_static_CXX='-Bstatic'
21793 cxx*)
21794 # Compaq C++
21795 # Make sure the PIC flag is empty. It appears that all Alpha
21796 # Linux and Compaq Tru64 Unix objects are PIC.
21797 lt_prog_compiler_pic_CXX=
21798 lt_prog_compiler_static_CXX='-non_shared'
21800 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21801 # IBM XL 8.0, 9.0 on PPC and BlueGene
21802 lt_prog_compiler_wl_CXX='-Wl,'
21803 lt_prog_compiler_pic_CXX='-qpic'
21804 lt_prog_compiler_static_CXX='-qstaticlink'
21807 case `$CC -V 2>&1 | sed 5q` in
21808 *Sun\ C*)
21809 # Sun C++ 5.9
21810 lt_prog_compiler_pic_CXX='-KPIC'
21811 lt_prog_compiler_static_CXX='-Bstatic'
21812 lt_prog_compiler_wl_CXX='-Qoption ld '
21814 esac
21816 esac
21818 lynxos*)
21820 m88k*)
21822 mvs*)
21823 case $cc_basename in
21824 cxx*)
21825 lt_prog_compiler_pic_CXX='-W c,exportall'
21829 esac
21831 netbsd*)
21833 *qnx* | *nto*)
21834 # QNX uses GNU C++, but need to define -shared option too, otherwise
21835 # it will coredump.
21836 lt_prog_compiler_pic_CXX='-fPIC -shared'
21838 osf3* | osf4* | osf5*)
21839 case $cc_basename in
21840 KCC*)
21841 lt_prog_compiler_wl_CXX='--backend -Wl,'
21843 RCC*)
21844 # Rational C++ 2.4.1
21845 lt_prog_compiler_pic_CXX='-pic'
21847 cxx*)
21848 # Digital/Compaq C++
21849 lt_prog_compiler_wl_CXX='-Wl,'
21850 # Make sure the PIC flag is empty. It appears that all Alpha
21851 # Linux and Compaq Tru64 Unix objects are PIC.
21852 lt_prog_compiler_pic_CXX=
21853 lt_prog_compiler_static_CXX='-non_shared'
21857 esac
21859 psos*)
21861 solaris*)
21862 case $cc_basename in
21863 CC*)
21864 # Sun C++ 4.2, 5.x and Centerline C++
21865 lt_prog_compiler_pic_CXX='-KPIC'
21866 lt_prog_compiler_static_CXX='-Bstatic'
21867 lt_prog_compiler_wl_CXX='-Qoption ld '
21869 gcx*)
21870 # Green Hills C++ Compiler
21871 lt_prog_compiler_pic_CXX='-PIC'
21875 esac
21877 sunos4*)
21878 case $cc_basename in
21879 CC*)
21880 # Sun C++ 4.x
21881 lt_prog_compiler_pic_CXX='-pic'
21882 lt_prog_compiler_static_CXX='-Bstatic'
21884 lcc*)
21885 # Lucid
21886 lt_prog_compiler_pic_CXX='-pic'
21890 esac
21892 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21893 case $cc_basename in
21894 CC*)
21895 lt_prog_compiler_wl_CXX='-Wl,'
21896 lt_prog_compiler_pic_CXX='-KPIC'
21897 lt_prog_compiler_static_CXX='-Bstatic'
21899 esac
21901 tandem*)
21902 case $cc_basename in
21903 NCC*)
21904 # NonStop-UX NCC 3.20
21905 lt_prog_compiler_pic_CXX='-KPIC'
21909 esac
21911 vxworks*)
21914 lt_prog_compiler_can_build_shared_CXX=no
21916 esac
21919 case $host_os in
21920 # For platforms which do not support PIC, -DPIC is meaningless:
21921 *djgpp*)
21922 lt_prog_compiler_pic_CXX=
21925 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21927 esac
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21929 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21934 # Check to make sure the PIC flag actually works.
21936 if test -n "$lt_prog_compiler_pic_CXX"; then
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21939 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21940 $as_echo_n "(cached) " >&6
21941 else
21942 lt_cv_prog_compiler_pic_works_CXX=no
21943 ac_outfile=conftest.$ac_objext
21944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21945 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21946 # Insert the option either (1) after the last *FLAGS variable, or
21947 # (2) before a word containing "conftest.", or (3) at the end.
21948 # Note that $ac_compile itself does not contain backslashes and begins
21949 # with a dollar sign (not a hyphen), so the echo should work correctly.
21950 # The option is referenced via a variable to avoid confusing sed.
21951 lt_compile=`echo "$ac_compile" | $SED \
21952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21954 -e 's:$: $lt_compiler_flag:'`
21955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21956 (eval "$lt_compile" 2>conftest.err)
21957 ac_status=$?
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 if (exit $ac_status) && test -s "$ac_outfile"; then
21961 # The compiler can only warn and ignore the option if not recognized
21962 # So say no if there are warnings other than the usual output.
21963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21966 lt_cv_prog_compiler_pic_works_CXX=yes
21969 $RM conftest*
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21973 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21975 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21976 case $lt_prog_compiler_pic_CXX in
21977 "" | " "*) ;;
21978 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21979 esac
21980 else
21981 lt_prog_compiler_pic_CXX=
21982 lt_prog_compiler_can_build_shared_CXX=no
21990 # Check to make sure the static flag actually works.
21992 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21994 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21995 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21996 $as_echo_n "(cached) " >&6
21997 else
21998 lt_cv_prog_compiler_static_works_CXX=no
21999 save_LDFLAGS="$LDFLAGS"
22000 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22003 # The linker can only warn and ignore the option if not recognized
22004 # So say no if there are warnings
22005 if test -s conftest.err; then
22006 # Append any errors to the config.log.
22007 cat conftest.err 1>&5
22008 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22010 if diff conftest.exp conftest.er2 >/dev/null; then
22011 lt_cv_prog_compiler_static_works_CXX=yes
22013 else
22014 lt_cv_prog_compiler_static_works_CXX=yes
22017 $RM -r conftest*
22018 LDFLAGS="$save_LDFLAGS"
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22022 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22024 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22026 else
22027 lt_prog_compiler_static_CXX=
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22035 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22036 $as_echo_n "(cached) " >&6
22037 else
22038 lt_cv_prog_compiler_c_o_CXX=no
22039 $RM -r conftest 2>/dev/null
22040 mkdir conftest
22041 cd conftest
22042 mkdir out
22043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22045 lt_compiler_flag="-o out/conftest2.$ac_objext"
22046 # Insert the option either (1) after the last *FLAGS variable, or
22047 # (2) before a word containing "conftest.", or (3) at the end.
22048 # Note that $ac_compile itself does not contain backslashes and begins
22049 # with a dollar sign (not a hyphen), so the echo should work correctly.
22050 lt_compile=`echo "$ac_compile" | $SED \
22051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22053 -e 's:$: $lt_compiler_flag:'`
22054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22055 (eval "$lt_compile" 2>out/conftest.err)
22056 ac_status=$?
22057 cat out/conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22060 then
22061 # The compiler can only warn and ignore the option if not recognized
22062 # So say no if there are warnings
22063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22066 lt_cv_prog_compiler_c_o_CXX=yes
22069 chmod u+w . 2>&5
22070 $RM conftest*
22071 # SGI C++ compiler will create directory out/ii_files/ for
22072 # template instantiation
22073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22074 $RM out/* && rmdir out
22075 cd ..
22076 $RM -r conftest
22077 $RM conftest*
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22081 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22087 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22088 $as_echo_n "(cached) " >&6
22089 else
22090 lt_cv_prog_compiler_c_o_CXX=no
22091 $RM -r conftest 2>/dev/null
22092 mkdir conftest
22093 cd conftest
22094 mkdir out
22095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22097 lt_compiler_flag="-o out/conftest2.$ac_objext"
22098 # Insert the option either (1) after the last *FLAGS variable, or
22099 # (2) before a word containing "conftest.", or (3) at the end.
22100 # Note that $ac_compile itself does not contain backslashes and begins
22101 # with a dollar sign (not a hyphen), so the echo should work correctly.
22102 lt_compile=`echo "$ac_compile" | $SED \
22103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22105 -e 's:$: $lt_compiler_flag:'`
22106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22107 (eval "$lt_compile" 2>out/conftest.err)
22108 ac_status=$?
22109 cat out/conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22112 then
22113 # The compiler can only warn and ignore the option if not recognized
22114 # So say no if there are warnings
22115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22118 lt_cv_prog_compiler_c_o_CXX=yes
22121 chmod u+w . 2>&5
22122 $RM conftest*
22123 # SGI C++ compiler will create directory out/ii_files/ for
22124 # template instantiation
22125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22126 $RM out/* && rmdir out
22127 cd ..
22128 $RM -r conftest
22129 $RM conftest*
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22133 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22138 hard_links="nottested"
22139 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22140 # do not overwrite the value of need_locks provided by the user
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22142 $as_echo_n "checking if we can lock with hard links... " >&6; }
22143 hard_links=yes
22144 $RM conftest*
22145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22146 touch conftest.a
22147 ln conftest.a conftest.b 2>&5 || hard_links=no
22148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22150 $as_echo "$hard_links" >&6; }
22151 if test "$hard_links" = no; then
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22154 need_locks=warn
22156 else
22157 need_locks=no
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22163 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22166 case $host_os in
22167 aix[4-9]*)
22168 # If we're using GNU nm, then we don't want the "-C" option.
22169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22170 # Also, AIX nm treats weak defined symbols like other global defined
22171 # symbols, whereas GNU nm marks them as "W".
22172 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22173 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'
22174 else
22175 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'
22178 pw32*)
22179 export_symbols_cmds_CXX="$ltdll_cmds"
22181 cygwin* | mingw* | cegcc*)
22182 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'
22185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22187 esac
22188 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22191 $as_echo "$ld_shlibs_CXX" >&6; }
22192 test "$ld_shlibs_CXX" = no && can_build_shared=no
22194 with_gnu_ld_CXX=$with_gnu_ld
22202 # Do we need to explicitly link libc?
22204 case "x$archive_cmds_need_lc_CXX" in
22205 x|xyes)
22206 # Assume -lc should be added
22207 archive_cmds_need_lc_CXX=yes
22209 if test "$enable_shared" = yes && test "$GCC" = yes; then
22210 case $archive_cmds_CXX in
22211 *'~'*)
22212 # FIXME: we may have to deal with multi-command sequences.
22214 '$CC '*)
22215 # Test whether the compiler implicitly links with -lc since on some
22216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22217 # to ld, don't add -lc before -lgcc.
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22219 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22220 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223 $RM conftest*
22224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22227 (eval $ac_compile) 2>&5
22228 ac_status=$?
22229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230 test $ac_status = 0; } 2>conftest.err; then
22231 soname=conftest
22232 lib=conftest
22233 libobjs=conftest.$ac_objext
22234 deplibs=
22235 wl=$lt_prog_compiler_wl_CXX
22236 pic_flag=$lt_prog_compiler_pic_CXX
22237 compiler_flags=-v
22238 linker_flags=-v
22239 verstring=
22240 output_objdir=.
22241 libname=conftest
22242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22243 allow_undefined_flag_CXX=
22244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22245 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22246 ac_status=$?
22247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22248 test $ac_status = 0; }
22249 then
22250 lt_cv_archive_cmds_need_lc_CXX=no
22251 else
22252 lt_cv_archive_cmds_need_lc_CXX=yes
22254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22255 else
22256 cat conftest.err 1>&5
22258 $RM conftest*
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22262 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22263 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22265 esac
22268 esac
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22336 library_names_spec=
22337 libname_spec='lib$name'
22338 soname_spec=
22339 shrext_cmds=".so"
22340 postinstall_cmds=
22341 postuninstall_cmds=
22342 finish_cmds=
22343 finish_eval=
22344 shlibpath_var=
22345 shlibpath_overrides_runpath=unknown
22346 version_type=none
22347 dynamic_linker="$host_os ld.so"
22348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22349 need_lib_prefix=unknown
22350 hardcode_into_libs=no
22352 # when you set need_version to no, make sure it does not cause -set_version
22353 # flags to be left without arguments
22354 need_version=unknown
22356 case $host_os in
22357 aix3*)
22358 version_type=linux
22359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22360 shlibpath_var=LIBPATH
22362 # AIX 3 has no versioning support, so we append a major version to the name.
22363 soname_spec='${libname}${release}${shared_ext}$major'
22366 aix[4-9]*)
22367 version_type=linux
22368 need_lib_prefix=no
22369 need_version=no
22370 hardcode_into_libs=yes
22371 if test "$host_cpu" = ia64; then
22372 # AIX 5 supports IA64
22373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22374 shlibpath_var=LD_LIBRARY_PATH
22375 else
22376 # With GCC up to 2.95.x, collect2 would create an import file
22377 # for dependence libraries. The import file would start with
22378 # the line `#! .'. This would cause the generated library to
22379 # depend on `.', always an invalid library. This was fixed in
22380 # development snapshots of GCC prior to 3.0.
22381 case $host_os in
22382 aix4 | aix4.[01] | aix4.[01].*)
22383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22384 echo ' yes '
22385 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22387 else
22388 can_build_shared=no
22391 esac
22392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22393 # soname into executable. Probably we can add versioning support to
22394 # collect2, so additional links can be useful in future.
22395 if test "$aix_use_runtimelinking" = yes; then
22396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22397 # instead of lib<name>.a to let people know that these are not
22398 # typical AIX shared libraries.
22399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22400 else
22401 # We preserve .a as extension for shared libraries through AIX4.2
22402 # and later when we are not doing run time linking.
22403 library_names_spec='${libname}${release}.a $libname.a'
22404 soname_spec='${libname}${release}${shared_ext}$major'
22406 shlibpath_var=LIBPATH
22410 amigaos*)
22411 case $host_cpu in
22412 powerpc)
22413 # Since July 2007 AmigaOS4 officially supports .so libraries.
22414 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22417 m68k)
22418 library_names_spec='$libname.ixlibrary $libname.a'
22419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22420 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'
22422 esac
22425 beos*)
22426 library_names_spec='${libname}${shared_ext}'
22427 dynamic_linker="$host_os ld.so"
22428 shlibpath_var=LIBRARY_PATH
22431 bsdi[45]*)
22432 version_type=linux
22433 need_version=no
22434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22435 soname_spec='${libname}${release}${shared_ext}$major'
22436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22437 shlibpath_var=LD_LIBRARY_PATH
22438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22440 # the default ld.so.conf also contains /usr/contrib/lib and
22441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22442 # libtool to hard-code these into programs
22445 cygwin* | mingw* | pw32* | cegcc*)
22446 version_type=windows
22447 shrext_cmds=".dll"
22448 need_version=no
22449 need_lib_prefix=no
22451 case $GCC,$host_os in
22452 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22453 library_names_spec='$libname.dll.a'
22454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22455 postinstall_cmds='base_file=`basename \${file}`~
22456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22457 dldir=$destdir/`dirname \$dlpath`~
22458 test -d \$dldir || mkdir -p \$dldir~
22459 $install_prog $dir/$dlname \$dldir/$dlname~
22460 chmod a+x \$dldir/$dlname~
22461 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22462 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22464 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22465 dlpath=$dir/\$dldll~
22466 $RM \$dlpath'
22467 shlibpath_overrides_runpath=yes
22469 case $host_os in
22470 cygwin*)
22471 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22472 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22475 mingw* | cegcc*)
22476 # MinGW DLLs use traditional 'lib' prefix
22477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22479 pw32*)
22480 # pw32 DLLs use 'pw' prefix rather than 'lib'
22481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22483 esac
22487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22489 esac
22490 dynamic_linker='Win32 ld.exe'
22491 # FIXME: first we should search . and the directory the executable is in
22492 shlibpath_var=PATH
22495 darwin* | rhapsody*)
22496 dynamic_linker="$host_os dyld"
22497 version_type=darwin
22498 need_lib_prefix=no
22499 need_version=no
22500 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22501 soname_spec='${libname}${release}${major}$shared_ext'
22502 shlibpath_overrides_runpath=yes
22503 shlibpath_var=DYLD_LIBRARY_PATH
22504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22509 dgux*)
22510 version_type=linux
22511 need_lib_prefix=no
22512 need_version=no
22513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22514 soname_spec='${libname}${release}${shared_ext}$major'
22515 shlibpath_var=LD_LIBRARY_PATH
22518 freebsd* | dragonfly*)
22519 # DragonFly does not have aout. When/if they implement a new
22520 # versioning mechanism, adjust this.
22521 if test -x /usr/bin/objformat; then
22522 objformat=`/usr/bin/objformat`
22523 else
22524 case $host_os in
22525 freebsd[23].*) objformat=aout ;;
22526 *) objformat=elf ;;
22527 esac
22529 version_type=freebsd-$objformat
22530 case $version_type in
22531 freebsd-elf*)
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22533 need_version=no
22534 need_lib_prefix=no
22536 freebsd-*)
22537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22538 need_version=yes
22540 esac
22541 shlibpath_var=LD_LIBRARY_PATH
22542 case $host_os in
22543 freebsd2.*)
22544 shlibpath_overrides_runpath=yes
22546 freebsd3.[01]* | freebsdelf3.[01]*)
22547 shlibpath_overrides_runpath=yes
22548 hardcode_into_libs=yes
22550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22552 shlibpath_overrides_runpath=no
22553 hardcode_into_libs=yes
22555 *) # from 4.6 on, and DragonFly
22556 shlibpath_overrides_runpath=yes
22557 hardcode_into_libs=yes
22559 esac
22562 haiku*)
22563 version_type=linux
22564 need_lib_prefix=no
22565 need_version=no
22566 dynamic_linker="$host_os runtime_loader"
22567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22568 soname_spec='${libname}${release}${shared_ext}$major'
22569 shlibpath_var=LIBRARY_PATH
22570 shlibpath_overrides_runpath=yes
22571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22572 hardcode_into_libs=yes
22575 hpux9* | hpux10* | hpux11*)
22576 # Give a soname corresponding to the major version so that dld.sl refuses to
22577 # link against other versions.
22578 version_type=sunos
22579 need_lib_prefix=no
22580 need_version=no
22581 case $host_cpu in
22582 ia64*)
22583 shrext_cmds='.so'
22584 hardcode_into_libs=yes
22585 dynamic_linker="$host_os dld.so"
22586 shlibpath_var=LD_LIBRARY_PATH
22587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22589 soname_spec='${libname}${release}${shared_ext}$major'
22590 if test "X$HPUX_IA64_MODE" = X32; then
22591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22592 else
22593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22597 hppa*64*)
22598 shrext_cmds='.sl'
22599 hardcode_into_libs=yes
22600 dynamic_linker="$host_os dld.sl"
22601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22604 soname_spec='${libname}${release}${shared_ext}$major'
22605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22609 shrext_cmds='.sl'
22610 dynamic_linker="$host_os dld.sl"
22611 shlibpath_var=SHLIB_PATH
22612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22616 esac
22617 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22618 postinstall_cmds='chmod 555 $lib'
22619 # or fails outright, so override atomically:
22620 install_override_mode=555
22623 interix[3-9]*)
22624 version_type=linux
22625 need_lib_prefix=no
22626 need_version=no
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=no
22632 hardcode_into_libs=yes
22635 irix5* | irix6* | nonstopux*)
22636 case $host_os in
22637 nonstopux*) version_type=nonstopux ;;
22639 if test "$lt_cv_prog_gnu_ld" = yes; then
22640 version_type=linux
22641 else
22642 version_type=irix
22643 fi ;;
22644 esac
22645 need_lib_prefix=no
22646 need_version=no
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22649 case $host_os in
22650 irix5* | nonstopux*)
22651 libsuff= shlibsuff=
22654 case $LD in # libtool.m4 will add one of these switches to LD
22655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22656 libsuff= shlibsuff= libmagic=32-bit;;
22657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22658 libsuff=32 shlibsuff=N32 libmagic=N32;;
22659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22661 *) libsuff= shlibsuff= libmagic=never-match;;
22662 esac
22664 esac
22665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22666 shlibpath_overrides_runpath=no
22667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22669 hardcode_into_libs=yes
22672 # No shared lib support for Linux oldld, aout, or coff.
22673 linux*oldld* | linux*aout* | linux*coff*)
22674 dynamic_linker=no
22677 # This must be Linux ELF.
22679 # uclinux* changes (here and below) have been submitted to the libtool
22680 # project, but have not yet been accepted: they are GCC-local changes
22681 # for the time being. (See
22682 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22684 version_type=linux
22685 need_lib_prefix=no
22686 need_version=no
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22690 shlibpath_var=LD_LIBRARY_PATH
22691 shlibpath_overrides_runpath=no
22693 # Some binutils ld are patched to set DT_RUNPATH
22694 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22695 $as_echo_n "(cached) " >&6
22696 else
22697 lt_cv_shlibpath_overrides_runpath=no
22698 save_LDFLAGS=$LDFLAGS
22699 save_libdir=$libdir
22700 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22701 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h. */
22706 main ()
22710 return 0;
22712 _ACEOF
22713 if ac_fn_cxx_try_link "$LINENO"; then :
22714 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22715 lt_cv_shlibpath_overrides_runpath=yes
22718 rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22720 LDFLAGS=$save_LDFLAGS
22721 libdir=$save_libdir
22725 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22727 # This implies no fast_install, which is unacceptable.
22728 # Some rework will be needed to allow for fast_install
22729 # before this can be enabled.
22730 hardcode_into_libs=yes
22732 # Append ld.so.conf contents to the search path
22733 if test -f /etc/ld.so.conf; then
22734 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' ' '`
22735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22738 # We used to test for /lib/ld.so.1 and disable shared libraries on
22739 # powerpc, because MkLinux only supported shared libraries with the
22740 # GNU dynamic linker. Since this was broken with cross compilers,
22741 # most powerpc-linux boxes support dynamic linking these days and
22742 # people can always --disable-shared, the test was removed, and we
22743 # assume the GNU/Linux dynamic linker is in use.
22744 dynamic_linker='GNU/Linux ld.so'
22747 netbsd*)
22748 version_type=sunos
22749 need_lib_prefix=no
22750 need_version=no
22751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22754 dynamic_linker='NetBSD (a.out) ld.so'
22755 else
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 dynamic_linker='NetBSD ld.elf_so'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 shlibpath_overrides_runpath=yes
22762 hardcode_into_libs=yes
22765 newsos6)
22766 version_type=linux
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 shlibpath_overrides_runpath=yes
22772 *nto* | *qnx*)
22773 version_type=qnx
22774 need_lib_prefix=no
22775 need_version=no
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 shlibpath_overrides_runpath=no
22780 hardcode_into_libs=yes
22781 dynamic_linker='ldqnx.so'
22784 openbsd*)
22785 version_type=sunos
22786 sys_lib_dlsearch_path_spec="/usr/lib"
22787 need_lib_prefix=no
22788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22789 case $host_os in
22790 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22791 *) need_version=no ;;
22792 esac
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22797 case $host_os in
22798 openbsd2.[89] | openbsd2.[89].*)
22799 shlibpath_overrides_runpath=no
22802 shlibpath_overrides_runpath=yes
22804 esac
22805 else
22806 shlibpath_overrides_runpath=yes
22810 os2*)
22811 libname_spec='$name'
22812 shrext_cmds=".dll"
22813 need_lib_prefix=no
22814 library_names_spec='$libname${shared_ext} $libname.a'
22815 dynamic_linker='OS/2 ld.exe'
22816 shlibpath_var=LIBPATH
22819 osf3* | osf4* | osf5*)
22820 version_type=osf
22821 need_lib_prefix=no
22822 need_version=no
22823 soname_spec='${libname}${release}${shared_ext}$major'
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22827 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22830 rdos*)
22831 dynamic_linker=no
22834 solaris*)
22835 version_type=linux
22836 need_lib_prefix=no
22837 need_version=no
22838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22839 soname_spec='${libname}${release}${shared_ext}$major'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath=yes
22842 hardcode_into_libs=yes
22843 # ldd complains unless libraries are executable
22844 postinstall_cmds='chmod +x $lib'
22847 sunos4*)
22848 version_type=sunos
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=yes
22853 if test "$with_gnu_ld" = yes; then
22854 need_lib_prefix=no
22856 need_version=yes
22859 sysv4 | sysv4.3*)
22860 version_type=linux
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 case $host_vendor in
22865 sni)
22866 shlibpath_overrides_runpath=no
22867 need_lib_prefix=no
22868 runpath_var=LD_RUN_PATH
22870 siemens)
22871 need_lib_prefix=no
22873 motorola)
22874 need_lib_prefix=no
22875 need_version=no
22876 shlibpath_overrides_runpath=no
22877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22879 esac
22882 sysv4*MP*)
22883 if test -d /usr/nec ;then
22884 version_type=linux
22885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22886 soname_spec='$libname${shared_ext}.$major'
22887 shlibpath_var=LD_LIBRARY_PATH
22891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22892 version_type=freebsd-elf
22893 need_lib_prefix=no
22894 need_version=no
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22900 if test "$with_gnu_ld" = yes; then
22901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22902 else
22903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22904 case $host_os in
22905 sco3.2v5*)
22906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22908 esac
22910 sys_lib_dlsearch_path_spec='/usr/lib'
22913 tpf*)
22914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22915 version_type=linux
22916 need_lib_prefix=no
22917 need_version=no
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath=no
22921 hardcode_into_libs=yes
22924 uts4*)
22925 version_type=linux
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22931 # Shared libraries for VwWorks, >= 7 only at this stage
22932 # and (fpic) still incompatible with "large" code models
22933 # in a few configurations. Only for RTP mode in any case,
22934 # and upon explicit request at configure time.
22935 vxworks7*)
22936 dynamic_linker=no
22937 case ${with_multisubdir}-${enable_shared} in
22938 *large*)
22940 *mrtp*-yes)
22941 version_type=linux
22942 need_lib_prefix=no
22943 need_version=no
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 dynamic_linker="$host_os module_loader"
22948 esac
22951 dynamic_linker=no
22953 esac
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22955 $as_echo "$dynamic_linker" >&6; }
22956 test "$dynamic_linker" = no && can_build_shared=no
22958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22959 if test "$GCC" = yes; then
22960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23009 hardcode_action_CXX=
23010 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23011 test -n "$runpath_var_CXX" ||
23012 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23014 # We can hardcode non-existent directories.
23015 if test "$hardcode_direct_CXX" != no &&
23016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23017 # have to relink, otherwise we might link with an installed library
23018 # when we should be linking with a yet-to-be-installed one
23019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23020 test "$hardcode_minus_L_CXX" != no; then
23021 # Linking always hardcodes the temporary library directory.
23022 hardcode_action_CXX=relink
23023 else
23024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23025 hardcode_action_CXX=immediate
23027 else
23028 # We cannot hardcode anything, or else we can only hardcode existing
23029 # directories.
23030 hardcode_action_CXX=unsupported
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23033 $as_echo "$hardcode_action_CXX" >&6; }
23035 if test "$hardcode_action_CXX" = relink ||
23036 test "$inherit_rpath_CXX" = yes; then
23037 # Fast installation is not supported
23038 enable_fast_install=no
23039 elif test "$shlibpath_overrides_runpath" = yes ||
23040 test "$enable_shared" = no; then
23041 # Fast installation is not necessary
23042 enable_fast_install=needless
23051 fi # test -n "$compiler"
23053 CC=$lt_save_CC
23054 LDCXX=$LD
23055 LD=$lt_save_LD
23056 GCC=$lt_save_GCC
23057 with_gnu_ld=$lt_save_with_gnu_ld
23058 lt_cv_path_LDCXX=$lt_cv_path_LD
23059 lt_cv_path_LD=$lt_save_path_LD
23060 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23061 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23062 fi # test "$_lt_caught_CXX_error" != yes
23064 ac_ext=cpp
23065 ac_cpp='$CXXCPP $CPPFLAGS'
23066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23085 # Only expand once:
23091 # Identify the assembler which will work hand-in-glove with the newly
23092 # built GCC, so that we can examine its features. This is the assembler
23093 # which will be driven by the driver program.
23095 # If build != host, and we aren't building gas in-tree, we identify a
23096 # build->target assembler and hope that it will have the same features
23097 # as the host->target assembler we'll be using.
23098 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23100 if ${gcc_cv_as+:} false; then :
23102 else
23104 if test -x "$DEFAULT_ASSEMBLER"; then
23105 gcc_cv_as="$DEFAULT_ASSEMBLER"
23106 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23107 && test -f ../gas/Makefile \
23108 && test x$build = x$host; then
23109 gcc_cv_as=../gas/as-new$build_exeext
23110 elif test -x as$build_exeext; then
23111 # Build using assembler in the current directory.
23112 gcc_cv_as=./as$build_exeext
23113 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23114 gcc_cv_as="$AS_FOR_TARGET"
23115 else
23116 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23117 set dummy $AS_FOR_TARGET; ac_word=$2
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23119 $as_echo_n "checking for $ac_word... " >&6; }
23120 if ${ac_cv_path_gcc_cv_as+:} false; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 case $gcc_cv_as in
23124 [\\/]* | ?:[\\/]*)
23125 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23129 for as_dir in $PATH
23131 IFS=$as_save_IFS
23132 test -z "$as_dir" && as_dir=.
23133 for ac_exec_ext in '' $ac_executable_extensions; do
23134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23135 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23137 break 2
23139 done
23140 done
23141 IFS=$as_save_IFS
23144 esac
23146 gcc_cv_as=$ac_cv_path_gcc_cv_as
23147 if test -n "$gcc_cv_as"; then
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23149 $as_echo "$gcc_cv_as" >&6; }
23150 else
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 $as_echo "no" >&6; }
23159 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23161 case "$ORIGINAL_AS_FOR_TARGET" in
23162 ./as | ./as$build_exeext) ;;
23163 *) ac_config_files="$ac_config_files as:exec-tool.in"
23165 esac
23167 default_ld=
23168 # Check whether --enable-ld was given.
23169 if test "${enable_ld+set}" = set; then :
23170 enableval=$enable_ld; case "${enableval}" in
23172 default_ld=ld.gold
23174 esac
23178 install_gold_as_default=no
23179 # Check whether --enable-gold was given.
23180 if test "${enable_gold+set}" = set; then :
23181 enableval=$enable_gold; case "${enableval}" in
23182 default)
23183 install_gold_as_default=yes
23185 yes)
23186 if test x${default_ld} != x; then
23187 install_gold_as_default=yes
23193 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23195 esac
23199 # Identify the linker which will work hand-in-glove with the newly
23200 # built GCC, so that we can examine its features. This is the linker
23201 # which will be driven by the driver program.
23203 # If build != host, and we aren't building gas in-tree, we identify a
23204 # build->target linker and hope that it will have the same features
23205 # as the host->target linker we'll be using.
23206 gcc_cv_gld_major_version=
23207 gcc_cv_gld_minor_version=
23208 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23209 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23210 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23212 if ${gcc_cv_ld+:} false; then :
23214 else
23216 if test -x "$DEFAULT_LINKER"; then
23217 gcc_cv_ld="$DEFAULT_LINKER"
23218 elif test $install_gold_as_default = yes \
23219 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23220 && test -f ../gold/Makefile \
23221 && test x$build = x$host; then
23222 gcc_cv_ld=../gold/ld-new$build_exeext
23223 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23224 && test -f ../ld/Makefile \
23225 && test x$build = x$host; then
23226 gcc_cv_ld=../ld/ld-new$build_exeext
23227 elif test -x collect-ld$build_exeext; then
23228 # Build using linker in the current directory.
23229 gcc_cv_ld=./collect-ld$build_exeext
23230 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23231 gcc_cv_ld="$LD_FOR_TARGET"
23232 else
23233 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23234 set dummy $LD_FOR_TARGET; ac_word=$2
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23236 $as_echo_n "checking for $ac_word... " >&6; }
23237 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23240 case $gcc_cv_ld in
23241 [\\/]* | ?:[\\/]*)
23242 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23246 for as_dir in $PATH
23248 IFS=$as_save_IFS
23249 test -z "$as_dir" && as_dir=.
23250 for ac_exec_ext in '' $ac_executable_extensions; do
23251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23252 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23254 break 2
23256 done
23257 done
23258 IFS=$as_save_IFS
23261 esac
23263 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23264 if test -n "$gcc_cv_ld"; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23266 $as_echo "$gcc_cv_ld" >&6; }
23267 else
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23276 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23277 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23278 # if the PLUGIN_LD is set ld-new, just have it as ld
23279 # as that is the installed named.
23280 if test x$PLUGIN_LD_SUFFIX = xld-new \
23281 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23282 PLUGIN_LD_SUFFIX=ld
23285 # Check whether --with-plugin-ld was given.
23286 if test "${with_plugin_ld+set}" = set; then :
23287 withval=$with_plugin_ld; if test x"$withval" != x; then
23288 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23289 PLUGIN_LD_SUFFIX="$withval"
23295 cat >>confdefs.h <<_ACEOF
23296 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23297 _ACEOF
23300 # Check to see if we are using gold instead of ld
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23302 $as_echo_n "checking whether we are using gold... " >&6; }
23303 ld_is_gold=no
23304 if test x$gcc_cv_ld != x; then
23305 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23306 | grep "GNU gold" > /dev/null; then
23307 ld_is_gold=yes
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23311 $as_echo "$ld_is_gold" >&6; }
23313 # Check to see if we are using mold instead of ld
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23315 $as_echo_n "checking whether we are using mold... " >&6; }
23316 ld_is_mold=no
23317 if test x$gcc_cv_ld != x; then
23318 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23319 | grep "mold" > /dev/null; then
23320 ld_is_mold=yes
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23324 $as_echo "$ld_is_mold" >&6; }
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23328 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23329 # Check to see if default ld is not gold, but gold is
23330 # available and has support for split stack. If gcc was configured
23331 # with gold then no checking is done.
23333 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23335 # For platforms other than powerpc64*, enable as appropriate.
23337 gold_non_default=no
23338 ld_gold=`which ${gcc_cv_ld}.gold`
23339 # Make sure this gold has minimal split stack support
23340 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23341 ld_vers=`$ld_gold --version | sed 1q`
23342 gold_vers=`echo $ld_vers | sed -n \
23343 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23344 case $target in
23345 # check that the gold version contains the complete split stack support
23346 # on powerpc64 big and little endian
23347 powerpc64*-*-*)
23348 case "$gold_vers" in
23349 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23351 *) gold_non_default=no
23353 esac
23355 esac
23357 if test $gold_non_default = yes; then
23359 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23364 $as_echo "$gold_non_default" >&6; }
23366 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23368 case "$ORIGINAL_LD_FOR_TARGET" in
23369 ./collect-ld | ./collect-ld$build_exeext) ;;
23370 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23372 esac
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23375 $as_echo_n "checking what linker to use... " >&6; }
23376 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23377 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23378 # Single tree build which includes ld. We want to prefer it
23379 # over whatever linker top-level may have detected, since
23380 # we'll use what we're building after installation anyway.
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23382 $as_echo "newly built ld" >&6; }
23383 in_tree_ld=yes
23384 in_tree_ld_is_elf=no
23385 if (grep 'EMUL = .*elf' ../ld/Makefile \
23386 || grep 'EMUL = .*linux' ../ld/Makefile \
23387 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23388 in_tree_ld_is_elf=yes
23389 elif test "$ld_is_gold" = yes; then
23390 in_tree_ld_is_elf=yes
23392 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
23394 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23395 if test x$gcc_cv_gld_version != x; then
23396 break
23398 done
23399 case $gcc_cv_gld_version in
23400 VERSION=[0-9]*) ;;
23401 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23402 esac
23403 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23404 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23405 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23406 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23407 else
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23409 $as_echo "$gcc_cv_ld" >&6; }
23410 in_tree_ld=no
23411 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23412 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23413 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23419 # Figure out what nm we will be using.
23420 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23421 if ${gcc_cv_nm+:} false; then :
23423 else
23425 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23426 && test -f ../binutils/Makefile \
23427 && test x$build = x$host; then
23428 gcc_cv_nm=../binutils/nm-new$build_exeext
23429 elif test -x nm$build_exeext; then
23430 gcc_cv_nm=./nm$build_exeext
23431 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23432 gcc_cv_nm="$NM_FOR_TARGET"
23433 else
23434 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23435 set dummy $NM_FOR_TARGET; ac_word=$2
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23437 $as_echo_n "checking for $ac_word... " >&6; }
23438 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23439 $as_echo_n "(cached) " >&6
23440 else
23441 case $gcc_cv_nm in
23442 [\\/]* | ?:[\\/]*)
23443 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23447 for as_dir in $PATH
23449 IFS=$as_save_IFS
23450 test -z "$as_dir" && as_dir=.
23451 for ac_exec_ext in '' $ac_executable_extensions; do
23452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23453 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23455 break 2
23457 done
23458 done
23459 IFS=$as_save_IFS
23462 esac
23464 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23465 if test -n "$gcc_cv_nm"; then
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23467 $as_echo "$gcc_cv_nm" >&6; }
23468 else
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23470 $as_echo "no" >&6; }
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23478 $as_echo_n "checking what nm to use... " >&6; }
23479 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23480 # Single tree build which includes binutils.
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23482 $as_echo "newly built nm" >&6; }
23483 in_tree_nm=yes
23484 else
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23486 $as_echo "$gcc_cv_nm" >&6; }
23487 in_tree_nm=no
23490 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23492 case "$ORIGINAL_NM_FOR_TARGET" in
23493 ./nm | ./nm$build_exeext) ;;
23494 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23496 esac
23499 # Figure out what objdump we will be using.
23500 if ${gcc_cv_objdump+:} false; then :
23502 else
23504 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23505 && test -f ../binutils/Makefile \
23506 && test x$build = x$host; then
23507 # Single tree build which includes binutils.
23508 gcc_cv_objdump=../binutils/objdump$build_exeext
23509 elif test -x objdump$build_exeext; then
23510 gcc_cv_objdump=./objdump$build_exeext
23511 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23512 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23513 else
23514 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23515 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23517 $as_echo_n "checking for $ac_word... " >&6; }
23518 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23519 $as_echo_n "(cached) " >&6
23520 else
23521 case $gcc_cv_objdump in
23522 [\\/]* | ?:[\\/]*)
23523 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23527 for as_dir in $PATH
23529 IFS=$as_save_IFS
23530 test -z "$as_dir" && as_dir=.
23531 for ac_exec_ext in '' $ac_executable_extensions; do
23532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23533 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23535 break 2
23537 done
23538 done
23539 IFS=$as_save_IFS
23542 esac
23544 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23545 if test -n "$gcc_cv_objdump"; then
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23547 $as_echo "$gcc_cv_objdump" >&6; }
23548 else
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 $as_echo "no" >&6; }
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23558 $as_echo_n "checking what objdump to use... " >&6; }
23559 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23560 # Single tree build which includes binutils.
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23562 $as_echo "newly built objdump" >&6; }
23563 elif test x$gcc_cv_objdump = x; then
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23565 $as_echo "not found" >&6; }
23566 else
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23568 $as_echo "$gcc_cv_objdump" >&6; }
23571 # Figure out what readelf we will be using.
23572 if ${gcc_cv_readelf+:} false; then :
23574 else
23576 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23577 && test -f ../binutils/Makefile \
23578 && test x$build = x$host; then
23579 # Single tree build which includes binutils.
23580 gcc_cv_readelf=../binutils/readelf$build_exeext
23581 elif test -x readelf$build_exeext; then
23582 gcc_cv_readelf=./readelf$build_exeext
23583 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23584 gcc_cv_readelf="$READELF_FOR_TARGET"
23585 else
23586 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23587 set dummy $READELF_FOR_TARGET; ac_word=$2
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23589 $as_echo_n "checking for $ac_word... " >&6; }
23590 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23591 $as_echo_n "(cached) " >&6
23592 else
23593 case $gcc_cv_readelf in
23594 [\\/]* | ?:[\\/]*)
23595 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23599 for as_dir in $PATH
23601 IFS=$as_save_IFS
23602 test -z "$as_dir" && as_dir=.
23603 for ac_exec_ext in '' $ac_executable_extensions; do
23604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23605 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23607 break 2
23609 done
23610 done
23611 IFS=$as_save_IFS
23614 esac
23616 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23617 if test -n "$gcc_cv_readelf"; then
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23619 $as_echo "$gcc_cv_readelf" >&6; }
23620 else
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23630 $as_echo_n "checking what readelf to use... " >&6; }
23631 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23632 # Single tree build which includes binutils.
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23634 $as_echo "newly built readelf" >&6; }
23635 elif test x$gcc_cv_readelf = x; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23637 $as_echo "not found" >&6; }
23638 else
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23640 $as_echo "$gcc_cv_readelf" >&6; }
23643 # Figure out what otool we will be using.
23644 if ${gcc_cv_otool+:} false; then :
23646 else
23648 if test -x otool$build_exeext; then
23649 gcc_cv_otool=./otool$build_exeext
23650 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23651 gcc_cv_otool="$OTOOL_FOR_TARGET"
23652 else
23653 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23654 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23656 $as_echo_n "checking for $ac_word... " >&6; }
23657 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 case $gcc_cv_otool in
23661 [\\/]* | ?:[\\/]*)
23662 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23666 for as_dir in $PATH
23668 IFS=$as_save_IFS
23669 test -z "$as_dir" && as_dir=.
23670 for ac_exec_ext in '' $ac_executable_extensions; do
23671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23672 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23674 break 2
23676 done
23677 done
23678 IFS=$as_save_IFS
23681 esac
23683 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23684 if test -n "$gcc_cv_otool"; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23686 $as_echo "$gcc_cv_otool" >&6; }
23687 else
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23689 $as_echo "no" >&6; }
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23697 $as_echo_n "checking what otool to use... " >&6; }
23698 if test x$gcc_cv_otool = x; then
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23700 $as_echo "not found" >&6; }
23701 else
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23703 $as_echo "$gcc_cv_otool" >&6; }
23706 # Figure out the dsymutil we will use.
23707 if ${gcc_cv_dsymutil+:} false; then :
23709 else
23711 if test -x "$DEFAULT_DSYMUTIL"; then
23712 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23713 elif test -x dsymutil$build_exeext; then
23714 gcc_cv_dsymutil=./dsymutil$build_exeext
23715 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23716 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23717 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23718 gcc_cv_dsymutil=$DSYMUTIL
23719 else
23720 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23721 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23723 $as_echo_n "checking for $ac_word... " >&6; }
23724 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 case $gcc_cv_dsymutil in
23728 [\\/]* | ?:[\\/]*)
23729 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23733 for as_dir in $PATH
23735 IFS=$as_save_IFS
23736 test -z "$as_dir" && as_dir=.
23737 for ac_exec_ext in '' $ac_executable_extensions; do
23738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23739 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23741 break 2
23743 done
23744 done
23745 IFS=$as_save_IFS
23748 esac
23750 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23751 if test -n "$gcc_cv_dsymutil"; then
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23753 $as_echo "$gcc_cv_dsymutil" >&6; }
23754 else
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23756 $as_echo "no" >&6; }
23763 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23765 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23766 ./dsymutil | ./dsymutil$build_exeext) ;;
23767 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23769 esac
23771 # Figure out what assembler alignment features are present.
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23773 $as_echo_n "checking assembler flags... " >&6; }
23774 if ${gcc_cv_as_flags+:} false; then :
23775 $as_echo_n "(cached) " >&6
23776 else
23777 case "$target" in
23778 i[34567]86-*-linux*)
23779 gcc_cv_as_flags=--32
23781 x86_64-*-linux-gnux32)
23782 gcc_cv_as_flags=--x32
23784 x86_64-*-linux*)
23785 gcc_cv_as_flags=--64
23787 powerpc*-*-darwin*)
23788 gcc_cv_as_flags="-arch ppc"
23791 gcc_cv_as_flags=" "
23793 esac
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23796 $as_echo "$gcc_cv_as_flags" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23799 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23800 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 gcc_cv_as_balign_and_p2align=no
23804 if test x$gcc_cv_as != x; then
23805 $as_echo '.balign 4
23806 .p2align 2' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_balign_and_p2align=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23823 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23824 if test $gcc_cv_as_balign_and_p2align = yes; then
23826 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23832 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23833 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23834 $as_echo_n "(cached) " >&6
23835 else
23836 gcc_cv_as_max_skip_p2align=no
23837 if test x$gcc_cv_as != x; then
23838 $as_echo '.p2align 4,,7' > conftest.s
23839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23845 then
23846 gcc_cv_as_max_skip_p2align=yes
23847 else
23848 echo "configure: failed program was" >&5
23849 cat conftest.s >&5
23851 rm -f conftest.o conftest.s
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23855 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23856 if test $gcc_cv_as_max_skip_p2align = yes; then
23858 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23864 $as_echo_n "checking assembler for .literal16... " >&6; }
23865 if ${gcc_cv_as_literal16+:} false; then :
23866 $as_echo_n "(cached) " >&6
23867 else
23868 gcc_cv_as_literal16=no
23869 if test x$gcc_cv_as != x; then
23870 $as_echo '.literal16' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23877 then
23878 gcc_cv_as_literal16=yes
23879 else
23880 echo "configure: failed program was" >&5
23881 cat conftest.s >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23887 $as_echo "$gcc_cv_as_literal16" >&6; }
23888 if test $gcc_cv_as_literal16 = yes; then
23890 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23896 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23897 if ${gcc_cv_as_subsection_m1+:} false; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 gcc_cv_as_subsection_m1=no
23901 if test x$gcc_cv_as != x; then
23902 $as_echo 'conftest_label1: .word 0
23903 .subsection -1
23904 conftest_label2: .word 0
23905 .previous' > conftest.s
23906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23911 test $ac_status = 0; }; }
23912 then
23913 if test x$gcc_cv_nm != x; then
23914 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23915 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23916 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23917 then :
23918 else gcc_cv_as_subsection_m1=yes
23920 rm -f conftest.nm1 conftest.nm2
23922 else
23923 echo "configure: failed program was" >&5
23924 cat conftest.s >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23930 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23931 if test $gcc_cv_as_subsection_m1 = yes; then
23933 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23939 $as_echo_n "checking assembler for .weak... " >&6; }
23940 if ${gcc_cv_as_weak+:} false; then :
23941 $as_echo_n "(cached) " >&6
23942 else
23943 gcc_cv_as_weak=no
23944 if test x$gcc_cv_as != x; then
23945 $as_echo ' .weak foobar' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23952 then
23953 gcc_cv_as_weak=yes
23954 else
23955 echo "configure: failed program was" >&5
23956 cat conftest.s >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23962 $as_echo "$gcc_cv_as_weak" >&6; }
23963 if test $gcc_cv_as_weak = yes; then
23965 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23971 $as_echo_n "checking assembler for .weakref... " >&6; }
23972 if ${gcc_cv_as_weakref+:} false; then :
23973 $as_echo_n "(cached) " >&6
23974 else
23975 gcc_cv_as_weakref=no
23976 if test x$gcc_cv_as != x; then
23977 $as_echo ' .weakref foobar, barfnot' > conftest.s
23978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23984 then
23985 gcc_cv_as_weakref=yes
23986 else
23987 echo "configure: failed program was" >&5
23988 cat conftest.s >&5
23990 rm -f conftest.o conftest.s
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23994 $as_echo "$gcc_cv_as_weakref" >&6; }
23995 if test $gcc_cv_as_weakref = yes; then
23997 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24003 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24004 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24005 $as_echo_n "(cached) " >&6
24006 else
24007 gcc_cv_as_nsubspa_comdat=no
24008 if test x$gcc_cv_as != x; then
24009 $as_echo ' .SPACE $TEXT$
24010 .NSUBSPA $CODE$,COMDAT' > conftest.s
24011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016 test $ac_status = 0; }; }
24017 then
24018 gcc_cv_as_nsubspa_comdat=yes
24019 else
24020 echo "configure: failed program was" >&5
24021 cat conftest.s >&5
24023 rm -f conftest.o conftest.s
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24027 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24028 if test $gcc_cv_as_nsubspa_comdat = yes; then
24030 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24035 # .hidden needs to be supported in both the assembler and the linker,
24036 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24037 # This is irritatingly difficult to feature test for; we have to check the
24038 # date string after the version number. If we've got an in-tree
24039 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24040 # to be safe.
24041 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24042 case "${target}" in
24043 *-*-aix*)
24044 conftest_s=' .globl foobar,hidden'
24047 conftest_s=' .hidden foobar
24048 foobar:'
24050 esac
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24052 $as_echo_n "checking assembler for .hidden... " >&6; }
24053 if ${gcc_cv_as_hidden+:} false; then :
24054 $as_echo_n "(cached) " >&6
24055 else
24056 gcc_cv_as_hidden=no
24057 if test x$gcc_cv_as != x; then
24058 $as_echo "$conftest_s" > conftest.s
24059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24065 then
24066 gcc_cv_as_hidden=yes
24067 else
24068 echo "configure: failed program was" >&5
24069 cat conftest.s >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24075 $as_echo "$gcc_cv_as_hidden" >&6; }
24078 case "${target}" in
24079 *-*-darwin*)
24080 # Darwin as has some visibility support, though with a different syntax.
24081 gcc_cv_as_hidden=yes
24083 esac
24085 # gnu_indirect_function type is an extension proposed at
24086 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24087 # selection of function implementation
24088 # Check whether --enable-gnu-indirect-function was given.
24089 if test "${enable_gnu_indirect_function+set}" = set; then :
24090 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24091 yes | no) ;;
24092 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24093 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24094 esac
24095 else
24096 enable_gnu_indirect_function="$default_gnu_indirect_function"
24100 case "${target}" in
24101 riscv*-*-linux*)
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24103 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24104 cat > conftest.s <<EOF
24105 .text
24106 .type foo_resolver, @function
24107 foo_resolver:
24109 .size foo_resolver, .-foo_resolver
24111 .globl foo
24112 .type foo, %gnu_indirect_function
24113 .set foo, foo_resolver
24115 .globl bar
24116 .type bar, @function
24117 bar:
24118 call foo
24120 .size bar, .-bar
24122 if test x$gcc_cv_as != x \
24123 && test x$gcc_cv_ld != x \
24124 && test x$gcc_cv_readelf != x \
24125 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24126 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24127 && $gcc_cv_readelf --relocs --wide conftest \
24128 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24129 enable_gnu_indirect_function=yes
24131 rm -f conftest conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24133 $as_echo "$enable_gnu_indirect_function" >&6; }
24135 esac
24137 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24139 cat >>confdefs.h <<_ACEOF
24140 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24141 _ACEOF
24145 if test $in_tree_ld != yes ; then
24146 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24147 if echo "$ld_ver" | grep GNU > /dev/null; then
24148 if test x"$ld_is_gold" = xyes; then
24149 # GNU gold --version looks like this:
24151 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24153 # We extract the binutils version which is more familiar and specific
24154 # than the gold version.
24155 ld_vers=`echo $ld_ver | sed -n \
24156 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24157 else
24158 # GNU ld --version looks like this:
24160 # GNU ld (GNU Binutils) 2.21.51.20110225
24161 ld_vers=`echo $ld_ver | sed -n \
24162 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24164 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
24165 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24166 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24167 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24168 else
24169 case "${target}" in
24170 *-*-solaris2*)
24171 # Solaris 2 ld -V output looks like this for a regular version:
24173 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24175 # but test versions add stuff at the end:
24177 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24179 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24180 # numbers can be used in ld.so.1 feature checks even if a different
24181 # linker is configured.
24182 ld_ver=`$gcc_cv_ld -V 2>&1`
24183 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24184 ld_vers=`echo $ld_ver | sed -n \
24185 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24186 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24187 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24190 esac
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24195 $as_echo_n "checking linker for .hidden support... " >&6; }
24196 if ${gcc_cv_ld_hidden+:} false; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 if test $in_tree_ld = yes ; then
24200 gcc_cv_ld_hidden=no
24201 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 \
24202 && test $in_tree_ld_is_elf = yes; then
24203 gcc_cv_ld_hidden=yes
24205 else
24206 gcc_cv_ld_hidden=yes
24207 if test x"$ld_is_gold" = xyes; then
24209 elif test x"$ld_is_mold" = xyes; then
24211 elif echo "$ld_ver" | grep GNU > /dev/null; then
24212 if test 0"$ld_date" -lt 20020404; then
24213 if test -n "$ld_date"; then
24214 # If there was date string, but was earlier than 2002-04-04, fail
24215 gcc_cv_ld_hidden=no
24216 elif test -z "$ld_vers"; then
24217 # If there was no date string nor ld version number, something is wrong
24218 gcc_cv_ld_hidden=no
24219 else
24220 test -z "$ld_vers_patch" && ld_vers_patch=0
24221 if test "$ld_vers_major" -lt 2; then
24222 gcc_cv_ld_hidden=no
24223 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24224 gcc_cv_ld_hidden="no"
24225 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24226 gcc_cv_ld_hidden=no
24230 else
24231 case "${target}" in
24232 *-*-aix[789]*)
24233 gcc_cv_ld_hidden=yes
24235 *-*-darwin*)
24236 # Darwin ld has some visibility support.
24237 gcc_cv_ld_hidden=yes
24239 hppa64*-*-hpux* | ia64*-*-hpux*)
24240 gcc_cv_ld_hidden=yes
24242 *-*-solaris2*)
24243 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24244 # .symbolic was only added in Solaris 9 12/02.
24245 gcc_cv_ld_hidden=yes
24248 gcc_cv_ld_hidden=no
24250 esac
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24255 $as_echo "$gcc_cv_ld_hidden" >&6; }
24256 libgcc_visibility=no
24259 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24260 libgcc_visibility=yes
24262 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24267 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24268 gcc_cv_ld_ro_rw_mix=unknown
24269 if test $in_tree_ld = yes ; then
24270 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 \
24271 && test $in_tree_ld_is_elf = yes; then
24272 gcc_cv_ld_ro_rw_mix=read-write
24274 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24275 echo '.section myfoosect, "a"' > conftest1.s
24276 echo '.section myfoosect, "aw"' > conftest2.s
24277 echo '.byte 1' >> conftest2.s
24278 echo '.section myfoosect, "a"' > conftest3.s
24279 echo '.byte 0' >> conftest3.s
24280 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24281 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24282 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24283 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24284 conftest2.o conftest3.o > /dev/null 2>&1; then
24285 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24286 | sed -e '/myfoosect/!d' -e N`
24287 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24288 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24289 gcc_cv_ld_ro_rw_mix=read-only
24290 else
24291 gcc_cv_ld_ro_rw_mix=read-write
24295 rm -f conftest.* conftest[123].*
24297 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24299 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24303 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24305 # Check whether --enable-initfini-array was given.
24306 if test "${enable_initfini_array+set}" = set; then :
24307 enableval=$enable_initfini_array;
24308 else
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24311 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24312 if ${gcc_cv_initfini_array+:} false; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24316 case "${target}" in
24317 ia64-*)
24318 if test "$cross_compiling" = yes; then :
24319 gcc_cv_initfini_array=no
24320 else
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24324 #ifndef __ELF__
24325 #error Not an ELF OS
24326 #endif
24327 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24328 if it can be used. */
24329 static int x = -1;
24330 int main (void) { return x; }
24331 int foo (void) { x = 0; }
24332 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24334 _ACEOF
24335 if ac_fn_cxx_try_run "$LINENO"; then :
24336 gcc_cv_initfini_array=yes
24337 else
24338 gcc_cv_initfini_array=no
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
24345 gcc_cv_initfini_array=no
24346 if test $in_tree_ld = yes ; then
24347 if test "$gcc_cv_gld_major_version" -eq 2 \
24348 -a "$gcc_cv_gld_minor_version" -ge 22 \
24349 -o "$gcc_cv_gld_major_version" -gt 2 \
24350 && test $in_tree_ld_is_elf = yes; then
24351 gcc_cv_initfini_array=yes
24353 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24354 case $target:$gas in
24355 *:yes)
24356 sh_flags='"a"'
24357 sh_type='%progbits'
24359 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24360 sh_flags='"a"'
24361 sh_type='@progbits'
24363 sparc*-*-solaris2*:no)
24364 sh_flags='#alloc'
24365 sh_type='#progbits'
24366 sh_quote='"'
24368 esac
24369 case "$target:$gnu_ld" in
24370 *:yes)
24371 cat > conftest.s <<EOF
24372 .section .dtors,$sh_flags,$sh_type
24373 .balign 4
24374 .byte 'A', 'A', 'A', 'A'
24375 .section .ctors,$sh_flags,$sh_type
24376 .balign 4
24377 .byte 'B', 'B', 'B', 'B'
24378 .section .fini_array.65530,$sh_flags,$sh_type
24379 .balign 4
24380 .byte 'C', 'C', 'C', 'C'
24381 .section .init_array.65530,$sh_flags,$sh_type
24382 .balign 4
24383 .byte 'D', 'D', 'D', 'D'
24384 .section .dtors.64528,$sh_flags,$sh_type
24385 .balign 4
24386 .byte 'E', 'E', 'E', 'E'
24387 .section .ctors.64528,$sh_flags,$sh_type
24388 .balign 4
24389 .byte 'F', 'F', 'F', 'F'
24390 .section .fini_array.01005,$sh_flags,$sh_type
24391 .balign 4
24392 .byte 'G', 'G', 'G', 'G'
24393 .section .init_array.01005,$sh_flags,$sh_type
24394 .balign 4
24395 .byte 'H', 'H', 'H', 'H'
24396 .text
24397 .globl _start
24398 _start:
24400 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24401 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24402 && $gcc_cv_objdump -s -j .init_array conftest \
24403 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24404 && $gcc_cv_objdump -s -j .fini_array conftest \
24405 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24406 gcc_cv_initfini_array=yes
24409 *-*-solaris2*:no)
24410 # When Solaris ld added constructor priority support, it was
24411 # decided to only handle .init_array.N/.fini_array.N since
24412 # there was no need for backwards compatibility with
24413 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24414 # sections with correct execution order resp. to
24415 # .init_array/.fini_array, while gld merges them into
24416 # .init_array/.fini_array.
24417 cat > conftest.s <<EOF
24418 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24419 .align 4
24420 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24421 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24422 .align 4
24423 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24424 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24425 .align 4
24426 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24427 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24428 .align 4
24429 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24430 .text
24431 .globl _start
24432 _start:
24434 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24435 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24436 && $gcc_cv_objdump -s -j .init_array conftest \
24437 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24438 && $gcc_cv_objdump -s -j .fini_array conftest \
24439 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24440 gcc_cv_initfini_array=yes
24443 esac
24444 rm -f conftest conftest.*
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h. */
24449 #ifndef __ELF__
24450 # error Not an ELF OS
24451 #endif
24452 #include <stdlib.h>
24453 #if defined __GLIBC_PREREQ
24454 # if __GLIBC_PREREQ (2, 4)
24455 # else
24456 # error GLIBC 2.4 required
24457 # endif
24458 #else
24459 # if defined __sun__ && defined __svr4__
24460 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24461 # else
24462 # error The C library not known to support .init_array/.fini_array
24463 # endif
24464 #endif
24466 _ACEOF
24467 if ac_fn_cxx_try_cpp "$LINENO"; then :
24469 else
24470 gcc_cv_initfini_array=no
24472 rm -f conftest.err conftest.i conftest.$ac_ext;;
24473 esac
24474 else
24475 case "${target}" in
24476 aarch64*-linux-gnu*)
24477 # AArch64 postdates glibc support for .init_array/.fini_array,
24478 # so we don't need the preprocessor test above.
24479 gcc_cv_initfini_array=yes
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24484 $as_echo_n "checking cross compile... guessing... " >&6; }
24485 gcc_cv_initfini_array=no
24487 esac
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24491 $as_echo "$gcc_cv_initfini_array" >&6; }
24492 enable_initfini_array=$gcc_cv_initfini_array
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24499 _ACEOF
24503 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24504 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24505 # these directives, even when they appear to accept them.
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24507 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24508 if ${gcc_cv_as_leb128+:} false; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_leb128=no
24512 if test x$gcc_cv_as != x; then
24513 $as_echo ' .data
24514 .uleb128 L2 - L1
24516 .uleb128 1280
24517 .sleb128 -1010
24519 .uleb128 0x8000000000000000
24520 ' > conftest.s
24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24527 then
24529 if test "x$gcc_cv_objdump" != x; then
24530 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24531 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24532 gcc_cv_as_leb128=yes
24534 elif test "x$gcc_cv_otool" != x; then
24535 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24536 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24537 gcc_cv_as_leb128=yes
24539 else
24540 # play safe, assume the assembler is broken.
24544 else
24545 echo "configure: failed program was" >&5
24546 cat conftest.s >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24552 $as_echo "$gcc_cv_as_leb128" >&6; }
24553 if test $gcc_cv_as_leb128 = yes; then
24555 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24558 if test $gcc_cv_as_leb128 != yes; then
24560 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24564 # Determine if an .eh_frame section is read-only.
24565 gcc_fn_eh_frame_ro () {
24566 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24567 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24568 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24571 # Check if we have assembler support for unwind directives.
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24573 $as_echo_n "checking assembler for cfi directives... " >&6; }
24574 if ${gcc_cv_as_cfi_directive+:} false; then :
24575 $as_echo_n "(cached) " >&6
24576 else
24577 gcc_cv_as_cfi_directive=no
24578 if test x$gcc_cv_as != x; then
24579 $as_echo ' .text
24580 .cfi_startproc
24581 .cfi_offset 0, 0
24582 .cfi_same_value 1
24583 .cfi_def_cfa 1, 2
24584 .cfi_escape 1, 2, 3, 4, 5
24585 .cfi_endproc' > conftest.s
24586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588 (eval $ac_try) 2>&5
24589 ac_status=$?
24590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591 test $ac_status = 0; }; }
24592 then
24593 case "$target" in
24594 *-*-solaris*)
24595 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24596 # read-only and read-write sections, we need to make sure that the
24597 # assembler used emits read-write .eh_frame sections.
24598 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24599 gcc_cv_as_cfi_directive=yes
24600 elif test "x$gcc_cv_objdump" = x; then
24601 # No objdump, err on the side of caution.
24602 gcc_cv_as_cfi_directive=no
24603 else
24604 if test x$gas = xyes; then
24605 as_32_opt="--32"
24606 as_64_opt="--64"
24607 else
24608 as_32_opt="-m32"
24609 as_64_opt="-m64"
24611 case "$target" in
24612 sparc*-*-solaris2.*)
24613 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24614 if gcc_fn_eh_frame_ro $as_32_opt \
24615 || gcc_fn_eh_frame_ro $as_64_opt; then
24616 gcc_cv_as_cfi_directive=no
24617 else
24618 gcc_cv_as_cfi_directive=yes
24621 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24622 # On Solaris/x86, make sure that GCC and assembler agree on using
24623 # read-only .eh_frame sections for 64-bit.
24624 if gcc_fn_eh_frame_ro $as_32_opt; then
24625 gcc_cv_as_cfi_directive=no
24626 elif gcc_fn_eh_frame_ro $as_64_opt; then
24627 gcc_cv_as_cfi_directive=yes
24628 else
24629 gcc_cv_as_cfi_directive=no
24632 esac
24635 *-*-*)
24636 gcc_cv_as_cfi_directive=yes
24638 esac
24639 else
24640 echo "configure: failed program was" >&5
24641 cat conftest.s >&5
24643 rm -f conftest.o conftest.s
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24647 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24650 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24652 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24653 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24654 $as_echo_n "(cached) " >&6
24655 else
24656 gcc_cv_as_cfi_advance_working=no
24657 if test x$gcc_cv_as != x; then
24658 $as_echo ' .text
24659 .cfi_startproc
24660 .cfi_adjust_cfa_offset 64
24661 .skip 75040, 0
24662 .cfi_adjust_cfa_offset 128
24663 .cfi_endproc' > conftest.s
24664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24669 test $ac_status = 0; }; }
24670 then
24672 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24673 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24674 gcc_cv_as_cfi_advance_working=yes
24677 else
24678 echo "configure: failed program was" >&5
24679 cat conftest.s >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24685 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24688 else
24689 # no objdump, err on the side of caution
24690 gcc_cv_as_cfi_advance_working=no
24694 cat >>confdefs.h <<_ACEOF
24695 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24696 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24697 _ACEOF
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24702 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24703 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24704 $as_echo_n "(cached) " >&6
24705 else
24706 gcc_cv_as_cfi_personality_directive=no
24707 if test x$gcc_cv_as != x; then
24708 $as_echo ' .text
24709 .cfi_startproc
24710 .cfi_personality 0, symbol
24711 .cfi_endproc' > conftest.s
24712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24717 test $ac_status = 0; }; }
24718 then
24719 gcc_cv_as_cfi_personality_directive=yes
24720 else
24721 echo "configure: failed program was" >&5
24722 cat conftest.s >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24728 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24732 cat >>confdefs.h <<_ACEOF
24733 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24734 _ACEOF
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24738 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24739 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24740 $as_echo_n "(cached) " >&6
24741 else
24742 gcc_cv_as_cfi_sections_directive=no
24743 if test x$gcc_cv_as != x; then
24744 $as_echo ' .text
24745 .cfi_sections .debug_frame, .eh_frame
24746 .cfi_startproc
24747 .cfi_endproc' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24751 ac_status=$?
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24754 then
24755 case $target_os in
24756 win32 | pe | cygwin* | mingw32*)
24757 # Need to check that we generated the correct relocation for the
24758 # .debug_frame section. This was fixed for binutils 2.21.
24759 gcc_cv_as_cfi_sections_directive=no
24760 if test "x$gcc_cv_objdump" != x; then
24761 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24762 grep secrel > /dev/null; then
24763 gcc_cv_as_cfi_sections_directive=yes
24768 gcc_cv_as_cfi_sections_directive=yes
24770 esac
24771 else
24772 echo "configure: failed program was" >&5
24773 cat conftest.s >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24779 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24784 cat >>confdefs.h <<_ACEOF
24785 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24786 _ACEOF
24789 # GAS versions up to and including 2.11.0 may mis-optimize
24790 # .eh_frame data.
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24792 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24793 if ${gcc_cv_as_eh_frame+:} false; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 gcc_cv_as_eh_frame=no
24797 if test x$gcc_cv_as != x; then
24798 $as_echo ' .text
24799 .LFB1:
24800 .4byte 0
24801 .L1:
24802 .4byte 0
24803 .LFE1:
24804 .section .eh_frame,"aw",@progbits
24805 __FRAME_BEGIN__:
24806 .4byte .LECIE1-.LSCIE1
24807 .LSCIE1:
24808 .4byte 0x0
24809 .byte 0x1
24810 .ascii "z\0"
24811 .byte 0x1
24812 .byte 0x78
24813 .byte 0x1a
24814 .byte 0x0
24815 .byte 0x4
24816 .4byte 1
24817 .p2align 1
24818 .LECIE1:
24819 .LSFDE1:
24820 .4byte .LEFDE1-.LASFDE1
24821 .LASFDE1:
24822 .4byte .LASFDE1-__FRAME_BEGIN__
24823 .4byte .LFB1
24824 .4byte .LFE1-.LFB1
24825 .byte 0x4
24826 .4byte .LFE1-.LFB1
24827 .byte 0x4
24828 .4byte .L1-.LFB1
24829 .LEFDE1:' > conftest.s
24830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; }
24836 then
24837 cat > conftest.lit <<EOF
24838 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24839 0010 01000000 12000000 18000000 00000000 ................
24840 0020 08000000 04080000 0044 .........D
24842 cat > conftest.big <<EOF
24843 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24844 0010 00000001 00000012 00000018 00000000 ................
24845 0020 00000008 04000000 0844 .........D
24847 # If the assembler didn't choke, and we can objdump,
24848 # and we got the correct data, then succeed.
24849 # The text in the here-document typically retains its unix-style line
24850 # endings, while the output of objdump will use host line endings.
24851 # Therefore, use diff -b for the comparisons.
24852 if test x$gcc_cv_objdump != x \
24853 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24854 | tail -3 > conftest.got \
24855 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24856 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24857 then
24858 gcc_cv_as_eh_frame=yes
24859 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24862 ac_status=$?
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; }; then
24865 gcc_cv_as_eh_frame=buggy
24866 else
24867 # Uh oh, what do we do now?
24868 gcc_cv_as_eh_frame=no
24870 else
24871 echo "configure: failed program was" >&5
24872 cat conftest.s >&5
24874 rm -f conftest.o conftest.s
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24878 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24882 if test $gcc_cv_as_eh_frame = buggy; then
24884 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24888 # Test if the assembler supports the section flag 'e' or #exclude for
24889 # specifying an excluded section.
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24891 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24892 if ${gcc_cv_as_section_exclude_e+:} false; then :
24893 $as_echo_n "(cached) " >&6
24894 else
24895 gcc_cv_as_section_exclude_e=no
24896 if test x$gcc_cv_as != x; then
24897 $as_echo '.section foo1,"e"
24898 .byte 0,0,0,0' > conftest.s
24899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901 (eval $ac_try) 2>&5
24902 ac_status=$?
24903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904 test $ac_status = 0; }; }
24905 then
24906 gcc_cv_as_section_exclude_e=yes
24907 else
24908 echo "configure: failed program was" >&5
24909 cat conftest.s >&5
24911 rm -f conftest.o conftest.s
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24915 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24918 if test $gcc_cv_as_section_exclude_e = no; then
24919 case "${target}" in
24920 # Solaris as uses #exclude instead.
24921 *-*-solaris2*)
24922 case "${target}" in
24923 sparc*-*-solaris2*)
24924 conftest_s='.section "foo1", #exclude'
24926 i?86-*-solaris2* | x86_64-*-solaris2*)
24927 conftest_s='.section foo1, #exclude'
24929 esac
24931 esac
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24933 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24934 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24935 $as_echo_n "(cached) " >&6
24936 else
24937 gcc_cv_as_section_exclude_hash=no
24938 if test x$gcc_cv_as != x; then
24939 $as_echo "$conftest_s
24940 .byte 0,0,0,0" > conftest.s
24941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24944 ac_status=$?
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24947 then
24948 gcc_cv_as_section_exclude_hash=yes
24949 else
24950 echo "configure: failed program was" >&5
24951 cat conftest.s >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24957 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24962 cat >>confdefs.h <<_ACEOF
24963 #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`
24964 _ACEOF
24967 # Test if the assembler supports the section flag 'R' for specifying
24968 # section with SHF_GNU_RETAIN.
24969 case "${target}" in
24970 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24971 # assembler supports the section flag 'R', it doesn't mean that
24972 # Solairs ld supports it.
24973 *-*-solaris2*)
24974 gcc_cv_as_shf_gnu_retain=no
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24978 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24979 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24980 $as_echo_n "(cached) " >&6
24981 else
24982 gcc_cv_as_shf_gnu_retain=no
24983 if test x$gcc_cv_as != x; then
24984 $as_echo '.section .foo,"awR",%progbits
24985 .byte 0' > conftest.s
24986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24989 ac_status=$?
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24992 then
24993 gcc_cv_as_shf_gnu_retain=yes
24994 else
24995 echo "configure: failed program was" >&5
24996 cat conftest.s >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25002 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25006 esac
25008 cat >>confdefs.h <<_ACEOF
25009 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25010 _ACEOF
25013 # Test if the assembler supports the section flag 'o' for specifying
25014 # section with link-order.
25015 case "${target}" in
25016 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25017 # assembler supports the section flag 'o', it doesn't mean that
25018 # Solairs ld supports it.
25019 *-*-solaris2*)
25020 gcc_cv_as_section_link_order=no
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25024 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25025 if ${gcc_cv_as_section_link_order+:} false; then :
25026 $as_echo_n "(cached) " >&6
25027 else
25028 gcc_cv_as_section_link_order=no
25029 if test x$gcc_cv_as != x; then
25030 $as_echo '.section .foo,"a"
25031 .byte 0
25032 .section __patchable_function_entries,"awo",%progbits,.foo
25033 .byte 0' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 gcc_cv_as_section_link_order=yes
25042 else
25043 echo "configure: failed program was" >&5
25044 cat conftest.s >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25050 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25054 esac
25056 cat >>confdefs.h <<_ACEOF
25057 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25058 _ACEOF
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25062 $as_echo_n "checking assembler for section merging support... " >&6; }
25063 if ${gcc_cv_as_shf_merge+:} false; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 gcc_cv_as_shf_merge=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25075 then
25076 gcc_cv_as_shf_merge=yes
25077 else
25078 echo "configure: failed program was" >&5
25079 cat conftest.s >&5
25081 rm -f conftest.o conftest.s
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25085 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25088 if test $gcc_cv_as_shf_merge = no; then
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25090 $as_echo_n "checking assembler for section merging support... " >&6; }
25091 if ${gcc_cv_as_shf_merge+:} false; then :
25092 $as_echo_n "(cached) " >&6
25093 else
25094 gcc_cv_as_shf_merge=no
25095 if test x$gcc_cv_as != x; then
25096 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_shf_merge=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25113 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25120 _ACEOF
25123 gcc_cv_ld_aligned_shf_merge=yes
25124 case "$target" in
25125 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25126 # alignment > 1.
25127 sparc*-*-solaris2.11*)
25128 if test x"$gnu_ld" = xno \
25129 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25130 gcc_cv_ld_aligned_shf_merge=no
25133 esac
25135 cat >>confdefs.h <<_ACEOF
25136 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25137 _ACEOF
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25141 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25142 if ${gcc_cv_as_comdat_group+:} false; then :
25143 $as_echo_n "(cached) " >&6
25144 else
25145 gcc_cv_as_comdat_group=no
25146 if test x$gcc_cv_as != x; then
25147 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25154 then
25155 gcc_cv_as_comdat_group=yes
25156 else
25157 echo "configure: failed program was" >&5
25158 cat conftest.s >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25164 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25167 if test $gcc_cv_as_comdat_group = yes; then
25168 gcc_cv_as_comdat_group_percent=no
25169 gcc_cv_as_comdat_group_group=no
25170 else
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25172 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25173 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25174 $as_echo_n "(cached) " >&6
25175 else
25176 gcc_cv_as_comdat_group_percent=no
25177 if test x$gcc_cv_as != x; then
25178 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25182 ac_status=$?
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25185 then
25186 gcc_cv_as_comdat_group_percent=yes
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25195 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25198 if test $gcc_cv_as_comdat_group_percent = yes; then
25199 gcc_cv_as_comdat_group_group=no
25200 else
25201 case "${target}" in
25202 # Sun as uses a completely different syntax.
25203 *-*-solaris2*)
25204 case "${target}" in
25205 sparc*-*-solaris2*)
25206 conftest_s='
25207 .group foo,".text%foo",#comdat
25208 .section ".text%foo", #alloc,#execinstr,#progbits
25209 .globl foo
25210 foo:
25213 i?86-*-solaris2* | x86_64-*-solaris2*)
25214 conftest_s='
25215 .group foo,.text%foo,#comdat
25216 .section .text%foo, "ax", @progbits
25217 .globl foo
25218 foo:
25221 esac
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25223 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25224 if ${gcc_cv_as_comdat_group_group+:} false; then :
25225 $as_echo_n "(cached) " >&6
25226 else
25227 gcc_cv_as_comdat_group_group=no
25228 if test x$gcc_cv_as != x; then
25229 $as_echo "$conftest_s" > conftest.s
25230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25232 (eval $ac_try) 2>&5
25233 ac_status=$?
25234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235 test $ac_status = 0; }; }
25236 then
25237 gcc_cv_as_comdat_group_group=yes
25238 else
25239 echo "configure: failed program was" >&5
25240 cat conftest.s >&5
25242 rm -f conftest.o conftest.s
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25246 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25250 esac
25251 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25252 gcc_cv_as_comdat_group_group=no
25256 if test x"$ld_is_gold" = xyes; then
25257 comdat_group=yes
25258 elif test x"$ld_is_mold" = xyes; then
25259 comdat_group=yes
25260 elif test $in_tree_ld = yes ; then
25261 comdat_group=no
25262 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 \
25263 && test $in_tree_ld_is_elf = yes; then
25264 comdat_group=yes
25266 elif echo "$ld_ver" | grep GNU > /dev/null; then
25267 comdat_group=yes
25268 if test 0"$ld_date" -lt 20050308; then
25269 if test -n "$ld_date"; then
25270 # If there was date string, but was earlier than 2005-03-08, fail
25271 comdat_group=no
25272 elif test "$ld_vers_major" -lt 2; then
25273 comdat_group=no
25274 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25275 comdat_group=no
25278 else
25279 case "${target}" in
25280 *-*-solaris2.1[1-9]*)
25281 comdat_group=no
25282 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25283 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25284 # version 1.688.
25286 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25287 # least ld version 1.2267.
25288 if test "$ld_vers_major" -gt 1; then
25289 comdat_group=yes
25290 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25291 comdat_group=yes
25292 elif test "$ld_vers_minor" -ge 2267; then
25293 comdat_group=yes
25297 # Assume linkers other than GNU ld don't support COMDAT group.
25298 comdat_group=no
25300 esac
25302 # Allow overriding the automatic COMDAT group tests above.
25303 # Check whether --enable-comdat was given.
25304 if test "${enable_comdat+set}" = set; then :
25305 enableval=$enable_comdat; comdat_group="$enable_comdat"
25308 if test $comdat_group = no; then
25309 gcc_cv_as_comdat_group=no
25310 gcc_cv_as_comdat_group_percent=no
25311 gcc_cv_as_comdat_group_group=no
25314 cat >>confdefs.h <<_ACEOF
25315 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25316 || test $gcc_cv_as_comdat_group_percent = yes \
25317 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25318 _ACEOF
25321 # Restrict this test to Solaris/x86: other targets define this statically.
25322 case "${target}" in
25323 i?86-*-solaris2* | x86_64-*-solaris2*)
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25325 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25326 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25327 hidden_linkonce=yes
25328 else
25329 case "${target}" in
25330 # Full support for hidden thunks in linkonce sections only appeared in
25331 # Solaris 11/OpenSolaris.
25332 *-*-solaris2.1[1-9]*)
25333 hidden_linkonce=yes
25336 hidden_linkonce=no
25338 esac
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25341 $as_echo "$hidden_linkonce" >&6; }
25343 cat >>confdefs.h <<_ACEOF
25344 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25345 _ACEOF
25348 esac
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25351 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25352 if ${gcc_cv_as_is_stmt+:} false; then :
25353 $as_echo_n "(cached) " >&6
25354 else
25355 gcc_cv_as_is_stmt=no
25356 if test x$gcc_cv_as != x; then
25357 $as_echo ' .text
25358 .file 1 "conf.c"
25359 .loc 1 1 0 is_stmt 1' > conftest.s
25360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25366 then
25367 gcc_cv_as_is_stmt=yes
25368 else
25369 echo "configure: failed program was" >&5
25370 cat conftest.s >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25376 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25377 if test $gcc_cv_as_is_stmt = yes; then
25379 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25385 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25386 if ${gcc_cv_as_discriminator+:} false; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_discriminator=no
25390 if test x$gcc_cv_as != x; then
25391 $as_echo ' .text
25392 .file 1 "conf.c"
25393 .loc 1 1 0 discriminator 1' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 then
25401 gcc_cv_as_discriminator=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25410 $as_echo "$gcc_cv_as_discriminator" >&6; }
25411 if test $gcc_cv_as_discriminator = yes; then
25413 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25418 # Catch the newlib flag of the same name so we can gate GCC features on it.
25419 # Check whether --enable-newlib-nano-formatted-io was given.
25420 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25421 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25422 yes|no)
25425 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25427 esac
25431 # Thread-local storage - the check is heavily parameterized.
25432 conftest_s=
25433 tls_as_opt=
25434 case "$target" in
25435 alpha*-*-*)
25436 conftest_s='
25437 .section ".tdata","awT",@progbits
25438 foo: .long 25
25439 .text
25440 ldq $27,__tls_get_addr($29) !literal!1
25441 lda $16,foo($29) !tlsgd!1
25442 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25443 ldq $27,__tls_get_addr($29) !literal!2
25444 lda $16,foo($29) !tlsldm!2
25445 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25446 ldq $1,foo($29) !gotdtprel
25447 ldah $2,foo($29) !dtprelhi
25448 lda $3,foo($2) !dtprello
25449 lda $4,foo($29) !dtprel
25450 ldq $1,foo($29) !gottprel
25451 ldah $2,foo($29) !tprelhi
25452 lda $3,foo($2) !tprello
25453 lda $4,foo($29) !tprel'
25454 tls_as_opt=--fatal-warnings
25456 arc*-*-*)
25457 conftest_s='
25458 add_s r0,r0, @foo@tpoff'
25460 cris-*-*|crisv32-*-*)
25461 conftest_s='
25462 .section ".tdata","awT",@progbits
25463 x: .long 25
25464 .text
25465 move.d x:IE,$r10
25466 nop'
25467 tls_as_opt=--fatal-warnings
25469 frv*-*-*)
25470 conftest_s='
25471 .section ".tdata","awT",@progbits
25472 x: .long 25
25473 .text
25474 call #gettlsoff(x)'
25476 hppa*-*-linux*)
25477 conftest_s='
25478 t1: .reg %r20
25479 t2: .reg %r21
25480 gp: .reg %r19
25481 .section ".tdata","awT",@progbits
25482 foo: .long 25
25483 .text
25484 .align 4
25485 addil LT%foo-$tls_gdidx$,gp
25486 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25487 b __tls_get_addr
25489 addil LT%foo-$tls_ldidx$,gp
25490 b __tls_get_addr
25491 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25492 addil LR%foo-$tls_dtpoff$,%ret0
25493 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25494 mfctl %cr27,%t1
25495 addil LT%foo-$tls_ieoff$,gp
25496 ldw RT%foo-$tls_ieoff$(%r1),%t2
25497 add %t1,%t2,%t3
25498 mfctl %cr27,%t1
25499 addil LR%foo-$tls_leoff$,%t1
25500 ldo RR%foo-$tls_leoff$(%r1),%t2'
25501 tls_as_opt=--fatal-warnings
25503 arm*-*-*)
25504 conftest_s='
25505 .section ".tdata","awT",%progbits
25506 foo: .long 25
25507 .text
25508 .word foo(gottpoff)
25509 .word foo(tpoff)
25510 .word foo(tlsgd)
25511 .word foo(tlsldm)
25512 .word foo(tlsldo)'
25514 i[34567]86-*-* | x86_64-*-*)
25515 case "$target" in
25516 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25517 on_solaris=yes
25520 on_solaris=no
25522 esac
25523 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25524 conftest_s='
25525 .section .tdata,"awt",@progbits'
25526 tls_section_flag=t
25528 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25530 else
25531 conftest_s='
25532 .section ".tdata","awT",@progbits'
25533 tls_section_flag=T
25534 tls_as_opt="--fatal-warnings"
25536 case "$target" in
25537 i[34567]86-*-*)
25538 if test x$on_solaris = xyes; then
25539 case $gas_flag in
25540 yes) tls_as_opt="$tls_as_opt --32" ;;
25541 esac
25543 conftest_s="$conftest_s
25544 foo: .long 25
25545 .text
25546 movl %gs:0, %eax
25547 leal foo@tlsgd(,%ebx,1), %eax
25548 leal foo@tlsldm(%ebx), %eax
25549 leal foo@dtpoff(%eax), %edx
25550 movl foo@gottpoff(%ebx), %eax
25551 subl foo@gottpoff(%ebx), %eax
25552 addl foo@gotntpoff(%ebx), %eax
25553 movl foo@indntpoff, %eax
25554 movl \$foo@tpoff, %eax
25555 subl \$foo@tpoff, %eax
25556 leal foo@ntpoff(%ecx), %eax"
25558 x86_64-*-*)
25559 if test x$on_solaris = xyes; then
25560 case $gas_flag in
25561 yes) tls_as_opt="$tls_as_opt --64" ;;
25562 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25563 esac
25565 conftest_s="$conftest_s
25566 foo: .long 25
25567 .text
25568 movq %fs:0, %rax
25569 leaq foo@tlsgd(%rip), %rdi
25570 leaq foo@tlsld(%rip), %rdi
25571 leaq foo@dtpoff(%rax), %rdx
25572 movq foo@gottpoff(%rip), %rax
25573 movq \$foo@tpoff, %rax"
25575 esac
25577 ia64-*-*)
25578 conftest_s='
25579 .section ".tdata","awT",@progbits
25580 foo: data8 25
25581 .text
25582 addl r16 = @ltoff(@dtpmod(foo#)), gp
25583 addl r17 = @ltoff(@dtprel(foo#)), gp
25584 addl r18 = @ltoff(@tprel(foo#)), gp
25585 addl r19 = @dtprel(foo#), gp
25586 adds r21 = @dtprel(foo#), r13
25587 movl r23 = @dtprel(foo#)
25588 addl r20 = @tprel(foo#), gp
25589 adds r22 = @tprel(foo#), r13
25590 movl r24 = @tprel(foo#)'
25591 tls_as_opt=--fatal-warnings
25593 loongarch*-*-*)
25594 conftest_s='
25595 .section .tdata,"awT",@progbits
25596 x: .word 2
25597 .text
25598 la.tls.gd $a0,x
25599 bl __tls_get_addr'
25600 tls_first_major=0
25601 tls_first_minor=0
25602 tls_as_opt='--fatal-warnings'
25604 microblaze*-*-*)
25605 conftest_s='
25606 .section .tdata,"awT",@progbits
25608 .word 2
25609 .text
25610 addik r5,r20,x@TLSGD
25611 addik r5,r20,x@TLSLDM'
25612 tls_as_opt='--fatal-warnings'
25614 mips*-*-*)
25615 conftest_s='
25616 .section .tdata,"awT",@progbits
25618 .word 2
25619 .text
25620 addiu $4, $28, %tlsgd(x)
25621 addiu $4, $28, %tlsldm(x)
25622 lui $4, %dtprel_hi(x)
25623 addiu $4, $4, %dtprel_lo(x)
25624 lw $4, %gottprel(x)($28)
25625 lui $4, %tprel_hi(x)
25626 addiu $4, $4, %tprel_lo(x)'
25627 tls_as_opt='-32 --fatal-warnings'
25629 m68k-*-*)
25630 conftest_s='
25631 .section .tdata,"awT",@progbits
25633 .word 2
25634 .text
25635 foo:
25636 move.l x@TLSGD(%a5),%a0
25637 move.l x@TLSLDM(%a5),%a0
25638 move.l x@TLSLDO(%a5),%a0
25639 move.l x@TLSIE(%a5),%a0
25640 move.l x@TLSLE(%a5),%a0'
25641 tls_as_opt='--fatal-warnings'
25643 nios2-*-*)
25644 conftest_s='
25645 .section ".tdata","awT",@progbits'
25646 tls_as_opt="--fatal-warnings"
25648 aarch64*-*-*)
25649 conftest_s='
25650 .section ".tdata","awT",%progbits
25651 foo: .long 25
25652 .text
25653 adrp x0, :tlsgd:x
25654 add x0, x0, #:tlsgd_lo12:x
25655 bl __tls_get_addr
25656 nop'
25657 tls_as_opt='--fatal-warnings'
25659 or1k*-*-*)
25660 conftest_s='
25661 .section ".tdata","awT",@progbits
25662 foo: .long 25
25663 .text
25664 l.movhi r3, tpoffha(foo)
25665 l.add r3, r3, r10
25666 l.lwz r4, tpofflo(foo)(r3)'
25667 tls_as_opt=--fatal-warnings
25669 powerpc-ibm-aix*)
25670 conftest_s='
25671 .extern __get_tpointer
25672 .toc
25673 LC..1:
25674 .tc a[TC],a[TL]@le
25675 .csect .text[PR]
25676 .tlstest:
25677 lwz 9,LC..1(2)
25678 bla __get_tpointer
25679 lwzx 3,9,3
25680 .globl a
25681 .csect a[TL],4
25683 .space 4'
25685 powerpc64*-*-*)
25686 conftest_s='
25687 .section ".tdata","awT",@progbits
25688 .align 3
25689 ld0: .space 8
25690 ld1: .space 8
25691 x1: .space 8
25692 x2: .space 8
25693 x3: .space 8
25694 .text
25695 addi 3,2,ld0@got@tlsgd
25696 bl .__tls_get_addr
25698 addi 3,2,ld1@toc
25699 bl .__tls_get_addr
25701 addi 3,2,x1@got@tlsld
25702 bl .__tls_get_addr
25704 addi 9,3,x1@dtprel
25705 bl .__tls_get_addr
25707 addis 9,3,x2@dtprel@ha
25708 addi 9,9,x2@dtprel@l
25709 bl .__tls_get_addr
25711 ld 9,x3@got@dtprel(2)
25712 add 9,9,3
25713 bl .__tls_get_addr
25714 nop'
25715 tls_as_opt="-a64 --fatal-warnings"
25717 powerpc*-*-*)
25718 conftest_s='
25719 .section ".tdata","awT",@progbits
25720 .align 2
25721 ld0: .space 4
25722 ld1: .space 4
25723 x1: .space 4
25724 x2: .space 4
25725 x3: .space 4
25726 .text
25727 addi 3,31,ld0@got@tlsgd
25728 bl __tls_get_addr
25729 addi 3,31,x1@got@tlsld
25730 bl __tls_get_addr
25731 addi 9,3,x1@dtprel
25732 addis 9,3,x2@dtprel@ha
25733 addi 9,9,x2@dtprel@l
25734 lwz 9,x3@got@tprel(31)
25735 add 9,9,x@tls
25736 addi 9,2,x1@tprel
25737 addis 9,2,x2@tprel@ha
25738 addi 9,9,x2@tprel@l'
25739 tls_as_opt="-a32 --fatal-warnings"
25741 riscv*-*-*)
25742 conftest_s='
25743 .section .tdata,"awT",@progbits
25744 x: .word 2
25745 .text
25746 la.tls.gd a0,x
25747 call __tls_get_addr'
25748 tls_as_opt='--fatal-warnings'
25750 s390-*-*)
25751 conftest_s='
25752 .section ".tdata","awT",@progbits
25753 foo: .long 25
25754 .text
25755 .long foo@TLSGD
25756 .long foo@TLSLDM
25757 .long foo@DTPOFF
25758 .long foo@NTPOFF
25759 .long foo@GOTNTPOFF
25760 .long foo@INDNTPOFF
25761 l %r1,foo@GOTNTPOFF(%r12)
25762 l %r1,0(%r1):tls_load:foo
25763 bas %r14,0(%r1,%r13):tls_gdcall:foo
25764 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25765 tls_as_opt="-m31 --fatal-warnings"
25767 s390x-*-*)
25768 conftest_s='
25769 .section ".tdata","awT",@progbits
25770 foo: .long 25
25771 .text
25772 .quad foo@TLSGD
25773 .quad foo@TLSLDM
25774 .quad foo@DTPOFF
25775 .quad foo@NTPOFF
25776 .quad foo@GOTNTPOFF
25777 lg %r1,foo@GOTNTPOFF(%r12)
25778 larl %r1,foo@INDNTPOFF
25779 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25780 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25781 tls_as_opt="-m64 -Aesame --fatal-warnings"
25783 sh-*-* | sh[123456789lbe]*-*-*)
25784 conftest_s='
25785 .section ".tdata","awT",@progbits
25786 foo: .long 25
25787 .text
25788 .long foo@TLSGD
25789 .long foo@TLSLDM
25790 .long foo@DTPOFF
25791 .long foo@GOTTPOFF
25792 .long foo@TPOFF'
25793 tls_as_opt=--fatal-warnings
25795 sparc*-*-*)
25796 case "$target" in
25797 sparc*-sun-solaris2.*)
25798 on_solaris=yes
25801 on_solaris=no
25803 esac
25804 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25805 conftest_s='
25806 .section ".tdata",#alloc,#write,#tls'
25807 else
25808 conftest_s='
25809 .section ".tdata","awT",@progbits'
25810 tls_as_opt="-32 --fatal-warnings"
25812 conftest_s="$conftest_s
25813 foo: .long 25
25814 .text
25815 sethi %tgd_hi22(foo), %o0
25816 add %o0, %tgd_lo10(foo), %o1
25817 add %l7, %o1, %o0, %tgd_add(foo)
25818 call __tls_get_addr, %tgd_call(foo)
25819 sethi %tldm_hi22(foo), %l1
25820 add %l1, %tldm_lo10(foo), %l2
25821 add %l7, %l2, %o0, %tldm_add(foo)
25822 call __tls_get_addr, %tldm_call(foo)
25823 sethi %tldo_hix22(foo), %l3
25824 xor %l3, %tldo_lox10(foo), %l4
25825 add %o0, %l4, %l5, %tldo_add(foo)
25826 sethi %tie_hi22(foo), %o3
25827 add %o3, %tie_lo10(foo), %o3
25828 ld [%l7 + %o3], %o2, %tie_ld(foo)
25829 add %g7, %o2, %o4, %tie_add(foo)
25830 sethi %tle_hix22(foo), %l1
25831 xor %l1, %tle_lox10(foo), %o5
25832 ld [%g7 + %o5], %o1"
25834 xtensa*-*-*)
25835 conftest_s='
25836 .section ".tdata","awT",@progbits
25837 foo: .long 25
25838 .text
25839 movi a8, foo@TLSFUNC
25840 movi a10, foo@TLSARG
25841 callx8.tls a8, foo@TLSCALL'
25843 esac
25844 set_have_as_tls=no
25845 if test "x$enable_tls" = xno ; then
25846 : # TLS explicitly disabled.
25847 elif test "x$enable_tls" = xyes ; then
25848 set_have_as_tls=yes # TLS explicitly enabled.
25849 elif test -z "$conftest_s"; then
25850 : # If we don't have a check, assume no support.
25851 else
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25853 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25854 if ${gcc_cv_as_tls+:} false; then :
25855 $as_echo_n "(cached) " >&6
25856 else
25857 gcc_cv_as_tls=no
25858 if test x$gcc_cv_as != x; then
25859 $as_echo "$conftest_s" > conftest.s
25860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862 (eval $ac_try) 2>&5
25863 ac_status=$?
25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865 test $ac_status = 0; }; }
25866 then
25867 gcc_cv_as_tls=yes
25868 else
25869 echo "configure: failed program was" >&5
25870 cat conftest.s >&5
25872 rm -f conftest.o conftest.s
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25876 $as_echo "$gcc_cv_as_tls" >&6; }
25877 if test $gcc_cv_as_tls = yes; then
25878 set_have_as_tls=yes
25882 if test $set_have_as_tls = yes ; then
25884 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25888 # Target-specific assembler checks.
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25891 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25892 gcc_cv_ld_static_dynamic=no
25893 gcc_cv_ld_static_option='-Bstatic'
25894 gcc_cv_ld_dynamic_option='-Bdynamic'
25895 if test $in_tree_ld = yes ; then
25896 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
25897 gcc_cv_ld_static_dynamic=yes
25899 elif test x$gcc_cv_ld != x; then
25900 # Check if linker supports -Bstatic/-Bdynamic option
25901 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25902 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25903 gcc_cv_ld_static_dynamic=yes
25904 else
25905 case "$target" in
25906 # AIX ld uses -b flags
25907 *-*-aix4.[23]* | *-*-aix[5-9]*)
25908 gcc_cv_ld_static_dynamic=yes
25909 gcc_cv_ld_static_option="-bstatic"
25910 gcc_cv_ld_dynamic_option="-bdynamic"
25912 # HP-UX ld uses -a flags to select between shared and archive.
25913 *-*-hpux*)
25914 if test x"$gnu_ld" = xno; then
25915 gcc_cv_ld_static_dynamic=yes
25916 gcc_cv_ld_static_option="-aarchive_shared"
25917 gcc_cv_ld_dynamic_option="-adefault"
25920 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25921 *-*-solaris2*)
25922 gcc_cv_ld_static_dynamic=yes
25924 esac
25927 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25929 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25932 cat >>confdefs.h <<_ACEOF
25933 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25934 _ACEOF
25937 cat >>confdefs.h <<_ACEOF
25938 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25939 _ACEOF
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25943 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25946 $as_echo_n "checking linker --version-script option... " >&6; }
25947 gcc_cv_ld_version_script=no
25948 ld_version_script_option=''
25949 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25950 gcc_cv_ld_version_script=yes
25951 ld_version_script_option='--version-script'
25952 elif test x$gcc_cv_ld != x; then
25953 case "$target" in
25954 # Solaris 2 ld always supports -M. It also supports a subset of
25955 # --version-script since Solaris 11.4, but requires
25956 # -z gnu-version-script-compat to activate.
25957 *-*-solaris2*)
25958 gcc_cv_ld_version_script=yes
25959 ld_version_script_option='-M'
25961 esac
25963 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25965 $as_echo "$gcc_cv_ld_version_script" >&6; }
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25969 $as_echo_n "checking linker soname option... " >&6; }
25970 gcc_cv_ld_soname=no
25971 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25972 gcc_cv_ld_soname=yes
25973 ld_soname_option='-soname'
25974 elif test x$gcc_cv_ld != x; then
25975 case "$target" in
25976 *-*-darwin*)
25977 gcc_cv_ld_soname=yes
25978 ld_soname_option='-install_name'
25980 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25981 # ld compatiblity since some Solaris 10 update.
25982 *-*-solaris2*)
25983 gcc_cv_ld_soname=yes
25984 ld_soname_option='-h'
25986 esac
25988 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25990 $as_echo "$gcc_cv_ld_soname" >&6; }
25993 if test x"$demangler_in_ld" = xyes; then
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25995 $as_echo_n "checking linker --demangle support... " >&6; }
25996 gcc_cv_ld_demangle=no
25997 if test $in_tree_ld = yes; then
25998 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 \
25999 gcc_cv_ld_demangle=yes
26001 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26002 # Check if the GNU linker supports --demangle option
26003 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26004 gcc_cv_ld_demangle=yes
26007 if test x"$gcc_cv_ld_demangle" = xyes; then
26009 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26013 $as_echo "$gcc_cv_ld_demangle" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26017 $as_echo_n "checking linker plugin support... " >&6; }
26018 gcc_cv_lto_plugin=0
26019 if test -f liblto_plugin.la; then
26020 save_ld_ver="$ld_ver"
26021 save_ld_vers_major="$ld_vers_major"
26022 save_ld_vers_minor="$ld_vers_minor"
26023 save_ld_is_gold="$ld_is_gold"
26025 ld_is_gold=no
26027 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26028 ld_ver="GNU ld"
26029 # FIXME: ld_is_gold?
26030 ld_vers_major="$gcc_cv_gld_major_version"
26031 ld_vers_minor="$gcc_cv_gld_minor_version"
26032 else
26033 # Determine plugin linker version.
26034 # FIXME: Partial duplicate from above, generalize.
26035 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26036 if echo "$ld_ver" | grep GNU > /dev/null; then
26037 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26038 ld_is_gold=yes
26039 ld_vers=`echo $ld_ver | sed -n \
26040 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26041 else
26042 ld_vers=`echo $ld_ver | sed -n \
26043 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26045 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26046 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26050 # Determine plugin support.
26051 if echo "$ld_ver" | grep GNU > /dev/null; then
26052 # Require GNU ld or gold 2.21+ for plugin support by default.
26053 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26054 gcc_cv_lto_plugin=2
26055 elif test "$ld_is_mold" = yes; then
26056 gcc_cv_lto_plugin=2
26057 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26058 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26059 gcc_cv_lto_plugin=1
26063 ld_ver="$save_ld_ver"
26064 ld_vers_major="$save_ld_vers_major"
26065 ld_vers_minor="$save_ld_vers_minor"
26066 ld_is_gold="$save_ld_is_gold"
26069 cat >>confdefs.h <<_ACEOF
26070 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26071 _ACEOF
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26074 $as_echo "$gcc_cv_lto_plugin" >&6; }
26076 # Target OS-specific assembler checks.
26078 case "$target_os" in
26079 darwin*)
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26081 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26082 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26083 $as_echo_n "(cached) " >&6
26084 else
26085 gcc_cv_as_mmacosx_version_min=no
26086 if test x$gcc_cv_as != x; then
26087 $as_echo '.text' > conftest.s
26088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26093 test $ac_status = 0; }; }
26094 then
26095 gcc_cv_as_mmacosx_version_min=yes
26096 else
26097 echo "configure: failed program was" >&5
26098 cat conftest.s >&5
26100 rm -f conftest.o conftest.s
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26104 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26105 if test $gcc_cv_as_mmacosx_version_min = yes; then
26107 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26112 esac
26114 # Target CPU-specific assembler checks.
26116 case "$target" in
26117 aarch64*-*-*)
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26119 $as_echo_n "checking assembler for -mabi option... " >&6; }
26120 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26121 $as_echo_n "(cached) " >&6
26122 else
26123 gcc_cv_as_aarch64_mabi=no
26124 if test x$gcc_cv_as != x; then
26125 $as_echo '.text' > conftest.s
26126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26128 (eval $ac_try) 2>&5
26129 ac_status=$?
26130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26131 test $ac_status = 0; }; }
26132 then
26133 gcc_cv_as_aarch64_mabi=yes
26134 else
26135 echo "configure: failed program was" >&5
26136 cat conftest.s >&5
26138 rm -f conftest.o conftest.s
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26142 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26145 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26147 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26149 else
26150 if test x$with_abi = xilp32; then
26151 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26152 Upgrade the Assembler." "$LINENO" 5
26154 if test x"$with_multilib_list" = xdefault; then
26155 TM_MULTILIB_CONFIG=lp64
26156 else
26157 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26158 for aarch64_multilib in ${aarch64_multilibs}; do
26159 case ${aarch64_multilib} in
26160 ilp32)
26161 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26162 Upgrade the Assembler." "$LINENO" 5
26166 esac
26167 done
26170 # Check if we have binutils support for relocations types needed by -fpic
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26172 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26173 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26174 $as_echo_n "(cached) " >&6
26175 else
26176 gcc_cv_as_aarch64_picreloc=no
26177 if test x$gcc_cv_as != x; then
26178 $as_echo '
26179 .text
26180 ldr x0, [x2, #:gotpage_lo15:globalsym]
26181 ' > conftest.s
26182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; }
26188 then
26189 gcc_cv_as_aarch64_picreloc=yes
26190 else
26191 echo "configure: failed program was" >&5
26192 cat conftest.s >&5
26194 rm -f conftest.o conftest.s
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26198 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26199 if test $gcc_cv_as_aarch64_picreloc = yes; then
26201 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26205 # Enable Branch Target Identification Mechanism and Return Address
26206 # Signing by default.
26207 # Check whether --enable-standard-branch-protection was given.
26208 if test "${enable_standard_branch_protection+set}" = set; then :
26209 enableval=$enable_standard_branch_protection;
26210 case $enableval in
26211 yes)
26212 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26217 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26218 Valid choices are 'yes' and 'no'." "$LINENO" 5
26220 esac
26224 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26225 # Check whether --enable-fix-cortex-a53-835769 was given.
26226 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26227 enableval=$enable_fix_cortex_a53_835769;
26228 case $enableval in
26229 yes)
26230 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26235 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26236 Valid choices are 'yes' and 'no'." "$LINENO" 5
26239 esac
26243 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26244 # Check whether --enable-fix-cortex-a53-843419 was given.
26245 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26246 enableval=$enable_fix_cortex_a53_843419;
26247 case $enableval in
26248 yes)
26249 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26254 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26255 Valid choices are 'yes' and 'no'." "$LINENO" 5
26258 esac
26264 # All TARGET_ABI_OSF targets.
26265 alpha*-*-linux* | alpha*-*-*bsd*)
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26267 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26268 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26269 $as_echo_n "(cached) " >&6
26270 else
26271 gcc_cv_as_alpha_explicit_relocs=no
26272 if test x$gcc_cv_as != x; then
26273 $as_echo ' .set nomacro
26274 .text
26275 extbl $3, $2, $3 !lituse_bytoff!1
26276 ldq $2, a($29) !literal!1
26277 ldq $4, b($29) !literal!2
26278 ldq_u $3, 0($2) !lituse_base!1
26279 ldq $27, f($29) !literal!5
26280 jsr $26, ($27), f !lituse_jsr!5
26281 ldah $29, 0($26) !gpdisp!3
26282 lda $0, c($29) !gprel
26283 ldah $1, d($29) !gprelhigh
26284 lda $1, d($1) !gprellow
26285 lda $29, 0($29) !gpdisp!3' > conftest.s
26286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26288 (eval $ac_try) 2>&5
26289 ac_status=$?
26290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26291 test $ac_status = 0; }; }
26292 then
26293 gcc_cv_as_alpha_explicit_relocs=yes
26294 else
26295 echo "configure: failed program was" >&5
26296 cat conftest.s >&5
26298 rm -f conftest.o conftest.s
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26302 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26303 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26305 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26310 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26311 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26312 $as_echo_n "(cached) " >&6
26313 else
26314 gcc_cv_as_alpha_jsrdirect_relocs=no
26315 if test x$gcc_cv_as != x; then
26316 $as_echo ' .set nomacro
26317 .text
26318 ldq $27, a($29) !literal!1
26319 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26326 then
26327 gcc_cv_as_alpha_jsrdirect_relocs=yes
26328 else
26329 echo "configure: failed program was" >&5
26330 cat conftest.s >&5
26332 rm -f conftest.o conftest.s
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26336 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26337 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26339 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26345 avr-*-*)
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26347 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26348 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26349 $as_echo_n "(cached) " >&6
26350 else
26351 gcc_cv_as_avr_mlink_relax=no
26352 if test x$gcc_cv_as != x; then
26353 $as_echo '.text' > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26360 then
26361 gcc_cv_as_avr_mlink_relax=yes
26362 else
26363 echo "configure: failed program was" >&5
26364 cat conftest.s >&5
26366 rm -f conftest.o conftest.s
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26370 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26371 if test $gcc_cv_as_avr_mlink_relax = yes; then
26373 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26379 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26380 if ${gcc_cv_as_avr_mrmw+:} false; then :
26381 $as_echo_n "(cached) " >&6
26382 else
26383 gcc_cv_as_avr_mrmw=no
26384 if test x$gcc_cv_as != x; then
26385 $as_echo '.text' > conftest.s
26386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26392 then
26393 gcc_cv_as_avr_mrmw=yes
26394 else
26395 echo "configure: failed program was" >&5
26396 cat conftest.s >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26402 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26403 if test $gcc_cv_as_avr_mrmw = yes; then
26405 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26411 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26412 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26413 $as_echo_n "(cached) " >&6
26414 else
26415 gcc_cv_as_avr_mgccisr=no
26416 if test x$gcc_cv_as != x; then
26417 $as_echo '.text
26418 __gcc_isr 1
26419 __gcc_isr 2
26420 __gcc_isr 0,r24
26421 ' > conftest.s
26422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26427 test $ac_status = 0; }; }
26428 then
26429 gcc_cv_as_avr_mgccisr=yes
26430 else
26431 echo "configure: failed program was" >&5
26432 cat conftest.s >&5
26434 rm -f conftest.o conftest.s
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26438 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26439 if test $gcc_cv_as_avr_mgccisr = yes; then
26441 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26446 # Check how default linker description file implements .rodata for
26447 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26448 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26450 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26451 cat > conftest.s <<EOF
26452 .section .rodata,"a",@progbits
26453 .global xxvaryy
26454 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26455 xxvaryy:
26456 .word 1
26458 rm -f conftest.nm
26459 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26465 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467 (eval $ac_try) 2>&5
26468 ac_status=$?
26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470 test $ac_status = 0; }; }
26471 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 if test -s conftest.nm
26478 then
26479 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26481 $as_echo "yes" >&6; }
26483 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26485 else
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26487 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26488 echo "$as_me: nm output was" >&5
26489 cat conftest.nm >&5
26490 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26491 { $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
26492 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26494 else
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26496 $as_echo "test failed" >&6; }
26497 echo "$as_me: failed program was" >&5
26498 cat conftest.s >&5
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26500 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26502 rm -f conftest.s conftest.o conftest.elf conftest.nm
26505 cris-*-*)
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26507 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26508 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26509 $as_echo_n "(cached) " >&6
26510 else
26511 gcc_cv_as_cris_no_mul_bug=no
26512 if test x$gcc_cv_as != x; then
26513 $as_echo '.text' > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26520 then
26521 gcc_cv_as_cris_no_mul_bug=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26530 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26531 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26533 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26539 sparc*-*-*)
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26541 $as_echo_n "checking assembler for -relax option... " >&6; }
26542 if ${gcc_cv_as_sparc_relax+:} false; then :
26543 $as_echo_n "(cached) " >&6
26544 else
26545 gcc_cv_as_sparc_relax=no
26546 if test x$gcc_cv_as != x; then
26547 $as_echo '.text' > conftest.s
26548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26550 (eval $ac_try) 2>&5
26551 ac_status=$?
26552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26553 test $ac_status = 0; }; }
26554 then
26555 gcc_cv_as_sparc_relax=yes
26556 else
26557 echo "configure: failed program was" >&5
26558 cat conftest.s >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26564 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26565 if test $gcc_cv_as_sparc_relax = yes; then
26567 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26573 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26574 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26575 $as_echo_n "(cached) " >&6
26576 else
26577 gcc_cv_as_sparc_gotdata_op=no
26578 if test x$gcc_cv_as != x; then
26579 $as_echo '.text
26580 .align 4
26581 foo:
26583 bar:
26584 sethi %gdop_hix22(foo), %g1
26585 xor %g1, %gdop_lox10(foo), %g1
26586 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26590 ac_status=$?
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26593 then
26594 if test x$gcc_cv_ld != x \
26595 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26596 if test x$gcc_cv_objdump != x; then
26597 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26598 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26599 gcc_cv_as_sparc_gotdata_op=no
26600 else
26601 gcc_cv_as_sparc_gotdata_op=yes
26605 rm -f conftest
26606 else
26607 echo "configure: failed program was" >&5
26608 cat conftest.s >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26614 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26615 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26617 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26623 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26624 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26625 $as_echo_n "(cached) " >&6
26626 else
26627 gcc_cv_as_sparc_ua_pcrel=no
26628 if test x$gcc_cv_as != x; then
26629 $as_echo '.text
26630 foo:
26632 .data
26633 .align 4
26634 .byte 0
26635 .uaword %r_disp32(foo)' > conftest.s
26636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641 test $ac_status = 0; }; }
26642 then
26643 if test x$gcc_cv_ld != x \
26644 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26645 gcc_cv_as_sparc_ua_pcrel=yes
26647 rm -f conftest
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_sparc_ua_pcrel" >&5
26656 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26657 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26659 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26663 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26664 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26665 $as_echo_n "(cached) " >&6
26666 else
26667 gcc_cv_as_sparc_ua_pcrel_hidden=no
26668 if test x$gcc_cv_as != x; then
26669 $as_echo '.data
26670 .align 4
26671 .byte 0x31
26672 .uaword %r_disp32(foo)
26673 .byte 0x32, 0x33, 0x34
26674 .global foo
26675 .hidden foo
26676 foo:
26677 .skip 4' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26684 then
26685 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26686 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26687 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26688 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26689 if $gcc_cv_objdump -R conftest 2> /dev/null \
26690 | grep 'DISP32' > /dev/null 2>&1; then
26692 else
26693 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26696 rm -f conftest
26697 else
26698 echo "configure: failed program was" >&5
26699 cat conftest.s >&5
26701 rm -f conftest.o conftest.s
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26705 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26706 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26708 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26714 # unaligned pcrel relocs
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26717 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26718 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26719 $as_echo_n "(cached) " >&6
26720 else
26721 gcc_cv_as_sparc_offsetable_lo10=no
26722 if test x$gcc_cv_as != x; then
26723 $as_echo '.text
26724 or %g1, %lo(ab) + 12, %g1
26725 or %g1, %lo(ab + 12), %g1' > conftest.s
26726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26728 (eval $ac_try) 2>&5
26729 ac_status=$?
26730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26731 test $ac_status = 0; }; }
26732 then
26733 if test x$gcc_cv_objdump != x \
26734 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26735 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26736 gcc_cv_as_sparc_offsetable_lo10=yes
26738 else
26739 echo "configure: failed program was" >&5
26740 cat conftest.s >&5
26742 rm -f conftest.o conftest.s
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26746 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26747 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26749 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26755 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26756 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26757 $as_echo_n "(cached) " >&6
26758 else
26759 gcc_cv_as_sparc_fmaf=no
26760 if test x$gcc_cv_as != x; then
26761 $as_echo '.text
26762 .register %g2, #scratch
26763 .register %g3, #scratch
26764 .align 4
26765 fmaddd %f0, %f2, %f4, %f6
26766 addxccc %g1, %g2, %g3
26767 fsrl32 %f2, %f4, %f8
26768 fnaddd %f10, %f12, %f14' > conftest.s
26769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26771 (eval $ac_try) 2>&5
26772 ac_status=$?
26773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; }
26775 then
26776 gcc_cv_as_sparc_fmaf=yes
26777 else
26778 echo "configure: failed program was" >&5
26779 cat conftest.s >&5
26781 rm -f conftest.o conftest.s
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26785 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26786 if test $gcc_cv_as_sparc_fmaf = yes; then
26788 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26794 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26795 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26796 $as_echo_n "(cached) " >&6
26797 else
26798 gcc_cv_as_sparc_sparc4=no
26799 if test x$gcc_cv_as != x; then
26800 $as_echo '.text
26801 .register %g2, #scratch
26802 .register %g3, #scratch
26803 .align 4
26804 cxbe %g2, %g3, 1f
26805 1: cwbneg %g2, %g3, 1f
26806 1: sha1
26808 aes_kexpand0 %f4, %f6, %f8
26809 des_round %f38, %f40, %f42, %f44
26810 camellia_f %f54, %f56, %f58, %f60
26811 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26815 ac_status=$?
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26818 then
26819 gcc_cv_as_sparc_sparc4=yes
26820 else
26821 echo "configure: failed program was" >&5
26822 cat conftest.s >&5
26824 rm -f conftest.o conftest.s
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26828 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26829 if test $gcc_cv_as_sparc_sparc4 = yes; then
26831 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26837 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26838 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26839 $as_echo_n "(cached) " >&6
26840 else
26841 gcc_cv_as_sparc_sparc5=no
26842 if test x$gcc_cv_as != x; then
26843 $as_echo '.text
26844 .register %g2, #scratch
26845 .register %g3, #scratch
26846 .align 4
26847 subxc %g1, %g2, %g3
26848 fpadd8 %f0, %f2, %f4' > conftest.s
26849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854 test $ac_status = 0; }; }
26855 then
26856 gcc_cv_as_sparc_sparc5=yes
26857 else
26858 echo "configure: failed program was" >&5
26859 cat conftest.s >&5
26861 rm -f conftest.o conftest.s
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26865 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26866 if test $gcc_cv_as_sparc_sparc5 = yes; then
26868 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26874 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26875 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26876 $as_echo_n "(cached) " >&6
26877 else
26878 gcc_cv_as_sparc_sparc6=no
26879 if test x$gcc_cv_as != x; then
26880 $as_echo '.text
26881 .register %g2, #scratch
26882 .register %g3, #scratch
26883 .align 4
26884 rd %entropy, %g1
26885 fpsll64x %f0, %f2, %f4' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26892 then
26893 gcc_cv_as_sparc_sparc6=yes
26894 else
26895 echo "configure: failed program was" >&5
26896 cat conftest.s >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26902 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26903 if test $gcc_cv_as_sparc_sparc6 = yes; then
26905 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26911 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26912 if ${gcc_cv_as_sparc_leon+:} false; then :
26913 $as_echo_n "(cached) " >&6
26914 else
26915 gcc_cv_as_sparc_leon=no
26916 if test x$gcc_cv_as != x; then
26917 $as_echo '.text
26918 .register %g2, #scratch
26919 .register %g3, #scratch
26920 .align 4
26921 smac %g2, %g3, %g1
26922 umac %g2, %g3, %g1
26923 casa [%g2] 0xb, %g3, %g1' > conftest.s
26924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }
26930 then
26931 gcc_cv_as_sparc_leon=yes
26932 else
26933 echo "configure: failed program was" >&5
26934 cat conftest.s >&5
26936 rm -f conftest.o conftest.s
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26940 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26941 if test $gcc_cv_as_sparc_leon = yes; then
26943 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26949 i[34567]86-*-* | x86_64-*-*)
26950 case $target_os in
26951 cygwin*)
26952 # Full C++ conformance when using a shared libstdc++-v3 requires some
26953 # support from the Cygwin DLL, which in more recent versions exports
26954 # wrappers to aid in interposing and redirecting operators new, delete,
26955 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26956 # are configuring for a version of Cygwin that exports the wrappers.
26957 if test x$host = x$target && test x$host_cpu = xi686; then
26958 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26959 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26960 gcc_ac_cygwin_dll_wrappers=yes
26961 else
26962 gcc_ac_cygwin_dll_wrappers=no
26965 else
26966 # Can't check presence of libc functions during cross-compile, so
26967 # we just have to assume we're building for an up-to-date target.
26968 gcc_ac_cygwin_dll_wrappers=yes
26971 cat >>confdefs.h <<_ACEOF
26972 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26973 _ACEOF
26975 esac
26976 case $target_os in
26977 cygwin* | pe | mingw32*)
26978 # Recent binutils allows the three-operand form of ".comm" on PE. This
26979 # definition is used unconditionally to initialise the default state of
26980 # the target option variable that governs usage of the feature.
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26982 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26983 if ${gcc_cv_as_comm_has_align+:} false; then :
26984 $as_echo_n "(cached) " >&6
26985 else
26986 gcc_cv_as_comm_has_align=no
26987 if test x$gcc_cv_as != x; then
26988 $as_echo '.comm foo,1,32' > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26995 then
26996 gcc_cv_as_comm_has_align=yes
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27005 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27009 cat >>confdefs.h <<_ACEOF
27010 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27011 _ACEOF
27013 # Used for DWARF 2 in PE
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27015 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27016 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27017 $as_echo_n "(cached) " >&6
27018 else
27019 gcc_cv_as_ix86_pe_secrel32=no
27020 if test x$gcc_cv_as != x; then
27021 $as_echo '.text
27022 foo: nop
27023 .data
27024 .secrel32 foo' > conftest.s
27025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27031 then
27032 if test x$gcc_cv_ld != x \
27033 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27034 gcc_cv_as_ix86_pe_secrel32=yes
27036 rm -f conftest
27037 else
27038 echo "configure: failed program was" >&5
27039 cat conftest.s >&5
27041 rm -f conftest.o conftest.s
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27045 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27046 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27048 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27052 # Test if the assembler supports the extended form of the .section
27053 # directive that specifies section alignment. LTO support uses this,
27054 # but normally only after installation, so we warn but don't fail the
27055 # configure if LTO is enabled but the assembler does not support it.
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27057 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27058 if ${gcc_cv_as_section_has_align+:} false; then :
27059 $as_echo_n "(cached) " >&6
27060 else
27061 gcc_cv_as_section_has_align=no
27062 if test x$gcc_cv_as != x; then
27063 $as_echo '.section lto_test,"dr0"' > conftest.s
27064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27070 then
27071 gcc_cv_as_section_has_align=yes
27072 else
27073 echo "configure: failed program was" >&5
27074 cat conftest.s >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27080 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27083 if test x$gcc_cv_as_section_has_align != xyes; then
27084 case ",$enable_languages," in
27085 *,lto,*)
27086 { $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
27087 $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;}
27089 esac
27092 esac
27093 case $target_os in
27094 darwin2* | darwin19*)
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27096 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27097 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27098 $as_echo_n "(cached) " >&6
27099 else
27100 gcc_cv_as_mllvm_x86_pad_for_align=no
27101 if test x$gcc_cv_as != x; then
27102 $as_echo '.text' > conftest.s
27103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27108 test $ac_status = 0; }; }
27109 then
27110 gcc_cv_as_mllvm_x86_pad_for_align=yes
27111 else
27112 echo "configure: failed program was" >&5
27113 cat conftest.s >&5
27115 rm -f conftest.o conftest.s
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27119 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27120 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27122 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27127 esac
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27130 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27131 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27132 $as_echo_n "(cached) " >&6
27133 else
27134 gcc_cv_as_ix86_xbrace_comment=no
27135 if test x$gcc_cv_as != x; then
27136 $as_echo '.text' > conftest.s
27137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27139 (eval $ac_try) 2>&5
27140 ac_status=$?
27141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27142 test $ac_status = 0; }; }
27143 then
27144 gcc_cv_as_ix86_xbrace_comment=yes
27145 else
27146 echo "configure: failed program was" >&5
27147 cat conftest.s >&5
27149 rm -f conftest.o conftest.s
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27153 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27154 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27156 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27162 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27163 if ${gcc_cv_as_ix86_filds+:} false; then :
27164 $as_echo_n "(cached) " >&6
27165 else
27166 gcc_cv_as_ix86_filds=no
27167 if test x$gcc_cv_as != x; then
27168 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27175 then
27176 gcc_cv_as_ix86_filds=yes
27177 else
27178 echo "configure: failed program was" >&5
27179 cat conftest.s >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27185 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27186 if test $gcc_cv_as_ix86_filds = yes; then
27188 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27194 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27195 if ${gcc_cv_as_ix86_fildq+:} false; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_as_ix86_fildq=no
27199 if test x$gcc_cv_as != x; then
27200 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27207 then
27208 gcc_cv_as_ix86_fildq=yes
27209 else
27210 echo "configure: failed program was" >&5
27211 cat conftest.s >&5
27213 rm -f conftest.o conftest.s
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27217 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27218 if test $gcc_cv_as_ix86_fildq = yes; then
27220 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27226 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27227 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27228 $as_echo_n "(cached) " >&6
27229 else
27230 gcc_cv_as_ix86_cmov_sun_syntax=no
27231 if test x$gcc_cv_as != x; then
27232 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27239 then
27240 gcc_cv_as_ix86_cmov_sun_syntax=yes
27241 else
27242 echo "configure: failed program was" >&5
27243 cat conftest.s >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27249 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27250 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27252 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27258 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27259 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27260 $as_echo_n "(cached) " >&6
27261 else
27262 gcc_cv_as_ix86_ffreep=no
27263 if test x$gcc_cv_as != x; then
27264 $as_echo 'ffreep %st(1)' > conftest.s
27265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27268 ac_status=$?
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27271 then
27272 gcc_cv_as_ix86_ffreep=yes
27273 else
27274 echo "configure: failed program was" >&5
27275 cat conftest.s >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27281 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27282 if test $gcc_cv_as_ix86_ffreep = yes; then
27284 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27290 $as_echo_n "checking assembler for .quad directive... " >&6; }
27291 if ${gcc_cv_as_ix86_quad+:} false; then :
27292 $as_echo_n "(cached) " >&6
27293 else
27294 gcc_cv_as_ix86_quad=no
27295 if test x$gcc_cv_as != x; then
27296 $as_echo '.quad 0' > conftest.s
27297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302 test $ac_status = 0; }; }
27303 then
27304 gcc_cv_as_ix86_quad=yes
27305 else
27306 echo "configure: failed program was" >&5
27307 cat conftest.s >&5
27309 rm -f conftest.o conftest.s
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27313 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27314 if test $gcc_cv_as_ix86_quad = yes; then
27316 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27322 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27323 if ${gcc_cv_as_ix86_sahf+:} false; then :
27324 $as_echo_n "(cached) " >&6
27325 else
27326 gcc_cv_as_ix86_sahf=no
27327 if test x$gcc_cv_as != x; then
27328 $as_echo '.code64
27329 sahf' > conftest.s
27330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27332 (eval $ac_try) 2>&5
27333 ac_status=$?
27334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27335 test $ac_status = 0; }; }
27336 then
27337 gcc_cv_as_ix86_sahf=yes
27338 else
27339 echo "configure: failed program was" >&5
27340 cat conftest.s >&5
27342 rm -f conftest.o conftest.s
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27346 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27347 if test $gcc_cv_as_ix86_sahf = yes; then
27349 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27355 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27356 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27357 $as_echo_n "(cached) " >&6
27358 else
27359 gcc_cv_as_ix86_interunit_movq=no
27360 if test x$gcc_cv_as != x; then
27361 $as_echo '.code64
27362 movq %mm0, %rax
27363 movq %rax, %xmm0' > conftest.s
27364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27367 ac_status=$?
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27370 then
27371 gcc_cv_as_ix86_interunit_movq=yes
27372 else
27373 echo "configure: failed program was" >&5
27374 cat conftest.s >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27380 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27384 cat >>confdefs.h <<_ACEOF
27385 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27386 _ACEOF
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27390 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27391 if ${gcc_cv_as_ix86_hle+:} false; then :
27392 $as_echo_n "(cached) " >&6
27393 else
27394 gcc_cv_as_ix86_hle=no
27395 if test x$gcc_cv_as != x; then
27396 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27402 test $ac_status = 0; }; }
27403 then
27404 gcc_cv_as_ix86_hle=yes
27405 else
27406 echo "configure: failed program was" >&5
27407 cat conftest.s >&5
27409 rm -f conftest.o conftest.s
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27413 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27414 if test $gcc_cv_as_ix86_hle = yes; then
27416 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27422 $as_echo_n "checking assembler for swap suffix... " >&6; }
27423 if ${gcc_cv_as_ix86_swap+:} false; then :
27424 $as_echo_n "(cached) " >&6
27425 else
27426 gcc_cv_as_ix86_swap=no
27427 if test x$gcc_cv_as != x; then
27428 $as_echo 'movl.s %esp, %ebp' > conftest.s
27429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27431 (eval $ac_try) 2>&5
27432 ac_status=$?
27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27434 test $ac_status = 0; }; }
27435 then
27436 gcc_cv_as_ix86_swap=yes
27437 else
27438 echo "configure: failed program was" >&5
27439 cat conftest.s >&5
27441 rm -f conftest.o conftest.s
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27445 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27446 if test $gcc_cv_as_ix86_swap = yes; then
27448 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27454 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27455 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27456 $as_echo_n "(cached) " >&6
27457 else
27458 gcc_cv_as_ix86_diff_sect_delta=no
27459 if test x$gcc_cv_as != x; then
27460 $as_echo '.section .rodata
27461 .L1:
27462 .long .L2-.L1
27463 .long .L3-.L1
27464 .text
27465 .L3: nop
27466 .L2: nop' > conftest.s
27467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27472 test $ac_status = 0; }; }
27473 then
27474 gcc_cv_as_ix86_diff_sect_delta=yes
27475 else
27476 echo "configure: failed program was" >&5
27477 cat conftest.s >&5
27479 rm -f conftest.o conftest.s
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27483 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27484 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27486 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27492 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27493 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27494 $as_echo_n "(cached) " >&6
27495 else
27496 gcc_cv_as_ix86_rep_lock_prefix=no
27497 if test x$gcc_cv_as != x; then
27498 $as_echo 'rep movsl
27499 rep ret
27500 rep nop
27501 rep bsf %ecx, %eax
27502 rep bsr %ecx, %eax
27503 lock addl %edi, (%eax,%esi)
27504 lock orl $0, (%esp)' > conftest.s
27505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27508 ac_status=$?
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }
27511 then
27512 gcc_cv_as_ix86_rep_lock_prefix=yes
27513 else
27514 echo "configure: failed program was" >&5
27515 cat conftest.s >&5
27517 rm -f conftest.o conftest.s
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27521 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27522 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27524 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27530 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27531 if ${gcc_cv_as_ix86_ud2+:} false; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27534 gcc_cv_as_ix86_ud2=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo 'ud2' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 gcc_cv_as_ix86_ud2=yes
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27553 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27554 if test $gcc_cv_as_ix86_ud2 = yes; then
27556 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27561 # Enforce 32-bit output with gas and gld.
27562 if test x$gas = xyes; then
27563 as_ix86_gas_32_opt="--32"
27565 if echo "$ld_ver" | grep GNU > /dev/null; then
27566 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27567 ld_ix86_gld_32_opt="-melf_i386_sol2"
27568 else
27569 ld_ix86_gld_32_opt="-melf_i386"
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27574 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27575 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27576 $as_echo_n "(cached) " >&6
27577 else
27578 gcc_cv_as_ix86_tlsgdplt=no
27579 if test x$gcc_cv_as != x; then
27580 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27584 ac_status=$?
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27587 then
27588 if test x$gcc_cv_ld != x \
27589 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27590 gcc_cv_as_ix86_tlsgdplt=yes
27592 rm -f conftest
27593 else
27594 echo "configure: failed program was" >&5
27595 cat conftest.s >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27601 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27602 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27604 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27609 conftest_s='
27610 .section .tdata,"aw'$tls_section_flag'",@progbits
27611 tls_ld:
27612 .section .text,"ax",@progbits
27613 call tls_ld@tlsldmplt'
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27616 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27617 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27618 $as_echo_n "(cached) " >&6
27619 else
27620 gcc_cv_as_ix86_tlsldmplt=no
27621 if test x$gcc_cv_as != x; then
27622 $as_echo "$conftest_s" > conftest.s
27623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27628 test $ac_status = 0; }; }
27629 then
27630 if test x$gcc_cv_ld != x \
27631 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27632 gcc_cv_as_ix86_tlsldmplt=yes
27634 rm -f conftest
27635 else
27636 echo "configure: failed program was" >&5
27637 cat conftest.s >&5
27639 rm -f conftest.o conftest.s
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27643 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27647 cat >>confdefs.h <<_ACEOF
27648 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27649 _ACEOF
27652 conftest_s='
27653 .section .text,"ax",@progbits
27654 .globl _start
27655 .type _start, @function
27656 _start:
27657 leal value@tlsldm(%ebx), %eax
27658 call ___tls_get_addr@plt
27660 .section .tdata,"aw'$tls_section_flag'",@progbits
27661 .type value, @object
27662 value:'
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27664 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27665 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27666 $as_echo_n "(cached) " >&6
27667 else
27668 gcc_cv_as_ix86_tlsldm=no
27669 if test x$gcc_cv_as != x; then
27670 $as_echo "$conftest_s" > conftest.s
27671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27673 (eval $ac_try) 2>&5
27674 ac_status=$?
27675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27676 test $ac_status = 0; }; }
27677 then
27678 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27679 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27680 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27681 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27682 gcc_cv_as_ix86_tlsldm=yes
27685 rm -f conftest
27686 else
27687 echo "configure: failed program was" >&5
27688 cat conftest.s >&5
27690 rm -f conftest.o conftest.s
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27694 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27700 _ACEOF
27703 conftest_s='
27704 .data
27705 bar:
27706 .byte 1
27707 .text
27708 .global _start
27709 _start:
27710 cmpl $0, bar@GOT
27711 jmp *_start@GOT'
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27713 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27714 if ${gcc_cv_as_ix86_got32x+:} false; then :
27715 $as_echo_n "(cached) " >&6
27716 else
27717 gcc_cv_as_ix86_got32x=no
27718 if test x$gcc_cv_as != x; then
27719 $as_echo "$conftest_s" > conftest.s
27720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27725 test $ac_status = 0; }; }
27726 then
27727 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27728 && test x$gcc_cv_readelf != x \
27729 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27730 | grep R_386_GOT32X > /dev/null 2>&1 \
27731 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27732 if $gcc_cv_objdump -dw conftest 2>&1 \
27733 | grep 0xffffff > /dev/null 2>&1; then
27734 gcc_cv_as_ix86_got32x=no
27735 else
27736 gcc_cv_as_ix86_got32x=yes
27739 rm -f conftest
27740 else
27741 echo "configure: failed program was" >&5
27742 cat conftest.s >&5
27744 rm -f conftest.o conftest.s
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27748 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27752 cat >>confdefs.h <<_ACEOF
27753 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27754 _ACEOF
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27758 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27759 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27760 $as_echo_n "(cached) " >&6
27761 else
27762 gcc_cv_as_ix86_gotoff_in_data=no
27763 if test x$gcc_cv_as != x; then
27764 $as_echo ' .text
27765 .L0:
27767 .data
27768 .long .L0@GOTOFF' > conftest.s
27769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27772 ac_status=$?
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27775 then
27776 gcc_cv_as_ix86_gotoff_in_data=yes
27777 else
27778 echo "configure: failed program was" >&5
27779 cat conftest.s >&5
27781 rm -f conftest.o conftest.s
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27785 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27789 cat >>confdefs.h <<_ACEOF
27790 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27791 _ACEOF
27794 conftest_s='
27795 .section .text,"ax",@progbits
27796 .globl _start
27797 .type _start, @function
27798 _start:
27799 leal ld@tlsldm(%ecx), %eax
27800 call *___tls_get_addr@GOT(%ecx)
27801 leal gd@tlsgd(%ecx), %eax
27802 call *___tls_get_addr@GOT(%ecx)
27804 .section .tdata,"aw'$tls_section_flag'",@progbits
27805 .type ld, @object
27807 .byte 0
27808 .globl gd
27809 .type gd, @object
27811 .byte 0'
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27813 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27814 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27815 $as_echo_n "(cached) " >&6
27816 else
27817 gcc_cv_as_ix86_tls_get_addr_via_got=no
27818 if test x$gcc_cv_as != x; then
27819 $as_echo "$conftest_s" > conftest.s
27820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27825 test $ac_status = 0; }; }
27826 then
27827 if test x$gcc_cv_ld != x \
27828 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27829 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27831 rm -f conftest
27832 else
27833 echo "configure: failed program was" >&5
27834 cat conftest.s >&5
27836 rm -f conftest.o conftest.s
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27840 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27844 cat >>confdefs.h <<_ACEOF
27845 #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`
27846 _ACEOF
27850 ia64*-*-*)
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27852 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27853 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27854 $as_echo_n "(cached) " >&6
27855 else
27856 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27857 if test x$gcc_cv_as != x; then
27858 $as_echo ' .text
27859 addl r15 = @ltoffx(x#), gp
27861 ld8.mov r16 = [r15], x#
27862 ' > conftest.s
27863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27865 (eval $ac_try) 2>&5
27866 ac_status=$?
27867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27868 test $ac_status = 0; }; }
27869 then
27870 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27871 else
27872 echo "configure: failed program was" >&5
27873 cat conftest.s >&5
27875 rm -f conftest.o conftest.s
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27879 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27880 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27882 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27889 powerpc*-*-*)
27891 case $target in
27892 *-*-darwin*)
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27894 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27895 if ${gcc_cv_as_machine_directive+:} false; then :
27896 $as_echo_n "(cached) " >&6
27897 else
27898 gcc_cv_as_machine_directive=no
27899 if test x$gcc_cv_as != x; then
27900 $as_echo ' .machine ppc7400' > conftest.s
27901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27906 test $ac_status = 0; }; }
27907 then
27908 gcc_cv_as_machine_directive=yes
27909 else
27910 echo "configure: failed program was" >&5
27911 cat conftest.s >&5
27913 rm -f conftest.o conftest.s
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27917 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27920 if test x$gcc_cv_as_machine_directive != xyes; then
27921 echo "*** This target requires an assembler supporting \".machine\"" >&2
27922 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27923 test x$build = x$target && exit 1
27926 esac
27928 case $target in
27929 *-*-aix*) conftest_s=' .machine "pwr5"
27930 .csect .text[PR]
27931 mfcr 3,128';;
27932 *-*-darwin*) conftest_s=' .text
27933 mfcr r3,128';;
27934 *) conftest_s=' .machine power4
27935 .text
27936 mfcr 3,128';;
27937 esac
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27940 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27941 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27942 $as_echo_n "(cached) " >&6
27943 else
27944 gcc_cv_as_powerpc_mfcrf=no
27945 if test x$gcc_cv_as != x; then
27946 $as_echo "$conftest_s" > 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_powerpc_mfcrf=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_powerpc_mfcrf" >&5
27963 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27964 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27966 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27971 case $target in
27972 *-*-aix*) conftest_s=' .csect .text[PR]
27973 LCF..0:
27974 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27975 *-*-darwin*)
27976 conftest_s=' .text
27977 LCF0:
27978 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27979 *) conftest_s=' .text
27980 .LCF0:
27981 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27982 esac
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27985 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27986 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27987 $as_echo_n "(cached) " >&6
27988 else
27989 gcc_cv_as_powerpc_rel16=no
27990 if test x$gcc_cv_as != x; then
27991 $as_echo "$conftest_s" > conftest.s
27992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27997 test $ac_status = 0; }; }
27998 then
27999 gcc_cv_as_powerpc_rel16=yes
28000 else
28001 echo "configure: failed program was" >&5
28002 cat conftest.s >&5
28004 rm -f conftest.o conftest.s
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28008 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28009 if test $gcc_cv_as_powerpc_rel16 = yes; then
28011 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28016 case $target in
28017 *-*-aix*) conftest_s=' .machine "pwr7"
28018 .csect .text[PR]
28019 lxvd2x 1,2,3';;
28020 *) conftest_s=' .machine power7
28021 .text
28022 lxvd2x 1,2,3';;
28023 esac
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28026 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28027 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28028 $as_echo_n "(cached) " >&6
28029 else
28030 gcc_cv_as_powerpc_vsx=no
28031 if test x$gcc_cv_as != x; then
28032 $as_echo "$conftest_s" > conftest.s
28033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28038 test $ac_status = 0; }; }
28039 then
28040 gcc_cv_as_powerpc_vsx=yes
28041 else
28042 echo "configure: failed program was" >&5
28043 cat conftest.s >&5
28045 rm -f conftest.o conftest.s
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28049 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28050 if test $gcc_cv_as_powerpc_vsx = yes; then
28052 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28059 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28060 $as_echo_n "(cached) " >&6
28061 else
28062 gcc_cv_as_powerpc_gnu_attribute=no
28063 if test x$gcc_cv_as != x; then
28064 $as_echo '.gnu_attribute 4,1' > conftest.s
28065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28067 (eval $ac_try) 2>&5
28068 ac_status=$?
28069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28070 test $ac_status = 0; }; }
28071 then
28072 gcc_cv_as_powerpc_gnu_attribute=yes
28073 else
28074 echo "configure: failed program was" >&5
28075 cat conftest.s >&5
28077 rm -f conftest.o conftest.s
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28081 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28082 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28084 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28090 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28091 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28092 $as_echo_n "(cached) " >&6
28093 else
28094 gcc_cv_as_powerpc_entry_markers=no
28095 if test x$gcc_cv_as != x; then
28096 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28099 (eval $ac_try) 2>&5
28100 ac_status=$?
28101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28102 test $ac_status = 0; }; }
28103 then
28104 gcc_cv_as_powerpc_entry_markers=yes
28105 else
28106 echo "configure: failed program was" >&5
28107 cat conftest.s >&5
28109 rm -f conftest.o conftest.s
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28113 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28114 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28116 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28122 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28123 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28124 $as_echo_n "(cached) " >&6
28125 else
28126 gcc_cv_as_powerpc_pltseq_markers=no
28127 if test x$gcc_cv_as != x; then
28128 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28131 (eval $ac_try) 2>&5
28132 ac_status=$?
28133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28134 test $ac_status = 0; }; }
28135 then
28136 gcc_cv_as_powerpc_pltseq_markers=yes
28137 else
28138 echo "configure: failed program was" >&5
28139 cat conftest.s >&5
28141 rm -f conftest.o conftest.s
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28145 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28146 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28148 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28153 case $target in
28154 *-*-aix*)
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28156 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28157 if ${gcc_cv_as_aix_ref+:} false; then :
28158 $as_echo_n "(cached) " >&6
28159 else
28160 gcc_cv_as_aix_ref=no
28161 if test x$gcc_cv_as != x; then
28162 $as_echo ' .csect stuff[rw]
28163 stuff:
28164 .long 1
28165 .extern sym
28166 .ref sym
28167 ' > conftest.s
28168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28174 then
28175 gcc_cv_as_aix_ref=yes
28176 else
28177 echo "configure: failed program was" >&5
28178 cat conftest.s >&5
28180 rm -f conftest.o conftest.s
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28184 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28185 if test $gcc_cv_as_aix_ref = yes; then
28187 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28193 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28194 if ${gcc_cv_as_aix_dwloc+:} false; then :
28195 $as_echo_n "(cached) " >&6
28196 else
28197 gcc_cv_as_aix_dwloc=no
28198 if test x$gcc_cv_as != x; then
28199 $as_echo ' .dwsect 0xA0000
28200 Lframe..0:
28201 .vbyte 4,Lframe..0
28202 ' > conftest.s
28203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28205 (eval $ac_try) 2>&5
28206 ac_status=$?
28207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28208 test $ac_status = 0; }; }
28209 then
28210 gcc_cv_as_aix_dwloc=yes
28211 else
28212 echo "configure: failed program was" >&5
28213 cat conftest.s >&5
28215 rm -f conftest.o conftest.s
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28219 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28220 if test $gcc_cv_as_aix_dwloc = yes; then
28222 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28227 esac
28230 mips*-*-*)
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28232 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28233 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28234 $as_echo_n "(cached) " >&6
28235 else
28236 gcc_cv_as_mips_explicit_relocs=no
28237 if test x$gcc_cv_as != x; then
28238 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28242 ac_status=$?
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28245 then
28246 gcc_cv_as_mips_explicit_relocs=yes
28247 else
28248 echo "configure: failed program was" >&5
28249 cat conftest.s >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28255 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28256 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28257 if test x$target_cpu_default = x
28258 then target_cpu_default=MASK_EXPLICIT_RELOCS
28259 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28265 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28266 if ${gcc_cv_as_mips_no_shared+:} false; then :
28267 $as_echo_n "(cached) " >&6
28268 else
28269 gcc_cv_as_mips_no_shared=no
28270 if test x$gcc_cv_as != x; then
28271 $as_echo 'nop' > conftest.s
28272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28274 (eval $ac_try) 2>&5
28275 ac_status=$?
28276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28277 test $ac_status = 0; }; }
28278 then
28279 gcc_cv_as_mips_no_shared=yes
28280 else
28281 echo "configure: failed program was" >&5
28282 cat conftest.s >&5
28284 rm -f conftest.o conftest.s
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28289 if test $gcc_cv_as_mips_no_shared = yes; then
28291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28297 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28298 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28299 $as_echo_n "(cached) " >&6
28300 else
28301 gcc_cv_as_mips_gnu_attribute=no
28302 if test x$gcc_cv_as != x; then
28303 $as_echo '.gnu_attribute 4,1' > conftest.s
28304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28309 test $ac_status = 0; }; }
28310 then
28311 gcc_cv_as_mips_gnu_attribute=yes
28312 else
28313 echo "configure: failed program was" >&5
28314 cat conftest.s >&5
28316 rm -f conftest.o conftest.s
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28320 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28321 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28323 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28329 $as_echo_n "checking assembler for .module support... " >&6; }
28330 if ${gcc_cv_as_mips_dot_module+:} false; then :
28331 $as_echo_n "(cached) " >&6
28332 else
28333 gcc_cv_as_mips_dot_module=no
28334 if test x$gcc_cv_as != x; then
28335 $as_echo '.module mips2
28336 .module fp=xx' > conftest.s
28337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28342 test $ac_status = 0; }; }
28343 then
28344 gcc_cv_as_mips_dot_module=yes
28345 else
28346 echo "configure: failed program was" >&5
28347 cat conftest.s >&5
28349 rm -f conftest.o conftest.s
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28353 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28354 if test $gcc_cv_as_mips_dot_module = yes; then
28356 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28360 if test x$gcc_cv_as_mips_dot_module = xno \
28361 && test x$with_fp_32 != x; then
28362 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28366 $as_echo_n "checking assembler for .micromips support... " >&6; }
28367 if ${gcc_cv_as_micromips_support+:} false; then :
28368 $as_echo_n "(cached) " >&6
28369 else
28370 gcc_cv_as_micromips_support=no
28371 if test x$gcc_cv_as != x; then
28372 $as_echo '.set micromips' > conftest.s
28373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28378 test $ac_status = 0; }; }
28379 then
28380 gcc_cv_as_micromips_support=yes
28381 else
28382 echo "configure: failed program was" >&5
28383 cat conftest.s >&5
28385 rm -f conftest.o conftest.s
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28389 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28390 if test $gcc_cv_as_micromips_support = yes; then
28392 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28398 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28399 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28400 $as_echo_n "(cached) " >&6
28401 else
28402 gcc_cv_as_mips_dtprelword=no
28403 if test x$gcc_cv_as != x; then
28404 $as_echo '.section .tdata,"awT",@progbits
28406 .word 2
28407 .text
28408 .dtprelword x+0x8000' > conftest.s
28409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28411 (eval $ac_try) 2>&5
28412 ac_status=$?
28413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28414 test $ac_status = 0; }; }
28415 then
28416 gcc_cv_as_mips_dtprelword=yes
28417 else
28418 echo "configure: failed program was" >&5
28419 cat conftest.s >&5
28421 rm -f conftest.o conftest.s
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28425 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28426 if test $gcc_cv_as_mips_dtprelword = yes; then
28428 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28434 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28435 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28436 $as_echo_n "(cached) " >&6
28437 else
28438 gcc_cv_as_mips_dspr1_mult=no
28439 if test x$gcc_cv_as != x; then
28440 $as_echo ' .set mips32r2
28441 .set nodspr2
28442 .set dsp
28443 madd $ac3,$4,$5
28444 maddu $ac3,$4,$5
28445 msub $ac3,$4,$5
28446 msubu $ac3,$4,$5
28447 mult $ac3,$4,$5
28448 multu $ac3,$4,$5' > conftest.s
28449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; }
28455 then
28456 gcc_cv_as_mips_dspr1_mult=yes
28457 else
28458 echo "configure: failed program was" >&5
28459 cat conftest.s >&5
28461 rm -f conftest.o conftest.s
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28465 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28466 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28468 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28474 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28475 gcc_cv_as_ld_jalr_reloc=no
28476 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28477 if test $in_tree_ld = yes ; then
28478 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
28479 && test $in_tree_ld_is_elf = yes; then
28480 gcc_cv_as_ld_jalr_reloc=yes
28482 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28483 echo ' .ent x' > conftest.s
28484 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28485 echo ' lw $25,%call16(y)($28)' >> conftest.s
28486 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28487 echo '1: jalr $25' >> conftest.s
28488 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28489 echo '1: jalr $25' >> conftest.s
28490 echo ' .end x' >> conftest.s
28491 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28492 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28493 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28494 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28495 gcc_cv_as_ld_jalr_reloc=yes
28498 rm -f conftest.*
28501 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28502 if test x$target_cpu_default = x; then
28503 target_cpu_default=MASK_RELAX_PIC_CALLS
28504 else
28505 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28509 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28512 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28513 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28514 $as_echo_n "(cached) " >&6
28515 else
28516 gcc_cv_ld_mips_personality_relaxation=no
28517 if test $in_tree_ld = yes ; then
28518 if test "$gcc_cv_gld_major_version" -eq 2 \
28519 -a "$gcc_cv_gld_minor_version" -ge 21 \
28520 -o "$gcc_cv_gld_major_version" -gt 2; then
28521 gcc_cv_ld_mips_personality_relaxation=yes
28523 elif test x$gcc_cv_as != x \
28524 -a x$gcc_cv_ld != x \
28525 -a x$gcc_cv_readelf != x ; then
28526 cat > conftest.s <<EOF
28527 .cfi_startproc
28528 .cfi_personality 0x80,indirect_ptr
28529 .ent test
28530 test:
28532 .end test
28533 .cfi_endproc
28535 .section .data,"aw",@progbits
28536 indirect_ptr:
28537 .dc.a personality
28539 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28540 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28541 if $gcc_cv_readelf -d conftest 2>&1 \
28542 | grep TEXTREL > /dev/null 2>&1; then
28544 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28545 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28547 else
28548 gcc_cv_ld_mips_personality_relaxation=yes
28552 rm -f conftest.s conftest.o conftest
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28555 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28556 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28558 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28563 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28564 if ${gcc_cv_as_mips_nan+:} false; then :
28565 $as_echo_n "(cached) " >&6
28566 else
28567 gcc_cv_as_mips_nan=no
28568 if test x$gcc_cv_as != x; then
28569 $as_echo '' > conftest.s
28570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28575 test $ac_status = 0; }; }
28576 then
28577 gcc_cv_as_mips_nan=yes
28578 else
28579 echo "configure: failed program was" >&5
28580 cat conftest.s >&5
28582 rm -f conftest.o conftest.s
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28586 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28587 if test $gcc_cv_as_mips_nan = yes; then
28589 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28593 if test x$gcc_cv_as_mips_nan = xno \
28594 && test x$with_nan != x; then
28595 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28598 msp430-*-*)
28599 # Earlier GAS versions generically support .gnu_attribute, but the
28600 # msp430 assembler will not do anything with it.
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28602 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28603 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28604 $as_echo_n "(cached) " >&6
28605 else
28606 gcc_cv_as_msp430_gnu_attribute=no
28607 if test x$gcc_cv_as != x; then
28608 $as_echo '.gnu_attribute 4,1' > conftest.s
28609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28614 test $ac_status = 0; }; }
28615 then
28616 gcc_cv_as_msp430_gnu_attribute=yes
28617 else
28618 echo "configure: failed program was" >&5
28619 cat conftest.s >&5
28621 rm -f conftest.o conftest.s
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28625 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28626 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28628 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28633 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28634 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28635 $as_echo_n "(cached) " >&6
28636 else
28637 gcc_cv_as_msp430_mspabi_attribute=no
28638 if test x$gcc_cv_as != x; then
28639 $as_echo '.mspabi_attribute 4,2' > conftest.s
28640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28642 (eval $ac_try) 2>&5
28643 ac_status=$?
28644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28645 test $ac_status = 0; }; }
28646 then
28647 gcc_cv_as_msp430_mspabi_attribute=yes
28648 else
28649 echo "configure: failed program was" >&5
28650 cat conftest.s >&5
28652 rm -f conftest.o conftest.s
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28656 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28657 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28659 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28663 if test x$enable_newlib_nano_formatted_io = xyes; then
28665 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28669 nios2-*-*)
28670 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28671 # syntax that is documented in the ABI specification.
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28673 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28674 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28675 $as_echo_n "(cached) " >&6
28676 else
28677 gcc_cv_as_nios2_gotoff_relocation=no
28678 if test x$gcc_cv_as != x; then
28679 $as_echo ' .extern foo
28680 .data
28681 .long %gotoff(foo)' > conftest.s
28682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28684 (eval $ac_try) 2>&5
28685 ac_status=$?
28686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28687 test $ac_status = 0; }; }
28688 then
28689 gcc_cv_as_nios2_gotoff_relocation=yes
28690 else
28691 echo "configure: failed program was" >&5
28692 cat conftest.s >&5
28694 rm -f conftest.o conftest.s
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28698 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28699 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28701 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28706 riscv*-*-*)
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28708 $as_echo_n "checking assembler for .attribute support... " >&6; }
28709 if ${gcc_cv_as_riscv_attribute+:} false; then :
28710 $as_echo_n "(cached) " >&6
28711 else
28712 gcc_cv_as_riscv_attribute=no
28713 if test x$gcc_cv_as != x; then
28714 $as_echo '.attribute stack_align,4' > conftest.s
28715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28720 test $ac_status = 0; }; }
28721 then
28722 gcc_cv_as_riscv_attribute=yes
28723 else
28724 echo "configure: failed program was" >&5
28725 cat conftest.s >&5
28727 rm -f conftest.o conftest.s
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28731 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28732 if test $gcc_cv_as_riscv_attribute = yes; then
28734 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28739 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28740 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28741 $as_echo_n "(cached) " >&6
28742 else
28743 gcc_cv_as_riscv_isa_spec=no
28744 if test x$gcc_cv_as != x; then
28745 $as_echo '' > conftest.s
28746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28749 ac_status=$?
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28752 then
28753 gcc_cv_as_riscv_isa_spec=yes
28754 else
28755 echo "configure: failed program was" >&5
28756 cat conftest.s >&5
28758 rm -f conftest.o conftest.s
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28762 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28763 if test $gcc_cv_as_riscv_isa_spec = yes; then
28765 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28770 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28771 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28772 $as_echo_n "(cached) " >&6
28773 else
28774 gcc_cv_as_riscv_march_zifencei=no
28775 if test x$gcc_cv_as != x; then
28776 $as_echo '' > conftest.s
28777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28779 (eval $ac_try) 2>&5
28780 ac_status=$?
28781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28782 test $ac_status = 0; }; }
28783 then
28784 gcc_cv_as_riscv_march_zifencei=yes
28785 else
28786 echo "configure: failed program was" >&5
28787 cat conftest.s >&5
28789 rm -f conftest.o conftest.s
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28793 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28794 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28796 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28801 loongarch*-*-*)
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28803 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28804 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28805 $as_echo_n "(cached) " >&6
28806 else
28807 gcc_cv_as_loongarch_dtprelword=no
28808 if test x$gcc_cv_as != x; then
28809 $as_echo '' > conftest.s
28810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28812 (eval $ac_try) 2>&5
28813 ac_status=$?
28814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28815 test $ac_status = 0; }; }
28816 then
28817 .section .tdata,"awT",@progbits
28819 .word 2
28820 .text
28821 .dtprelword x+0x8000
28822 else
28823 echo "configure: failed program was" >&5
28824 cat conftest.s >&5
28826 rm -f conftest.o conftest.s
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28830 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28832 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28834 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28838 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28839 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28840 $as_echo_n "(cached) " >&6
28841 else
28842 gcc_cv_as_loongarch_explicit_relocs=no
28843 if test x$gcc_cv_as != x; then
28844 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28847 (eval $ac_try) 2>&5
28848 ac_status=$?
28849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28850 test $ac_status = 0; }; }
28851 then
28852 gcc_cv_as_loongarch_explicit_relocs=yes
28853 else
28854 echo "configure: failed program was" >&5
28855 cat conftest.s >&5
28857 rm -f conftest.o conftest.s
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28861 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28862 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28864 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28869 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28870 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28871 $as_echo_n "(cached) " >&6
28872 else
28873 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28874 if test x$gcc_cv_as != x; then
28875 $as_echo '.cfi_startproc
28876 .cfi_personality 0x9b,a
28877 .cfi_lsda 0x1b,b
28878 .cfi_endproc' > conftest.s
28879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28884 test $ac_status = 0; }; }
28885 then
28886 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28887 else
28888 echo "configure: failed program was" >&5
28889 cat conftest.s >&5
28891 rm -f conftest.o conftest.s
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28895 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28896 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28898 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28903 s390*-*-*)
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28905 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28906 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28907 $as_echo_n "(cached) " >&6
28908 else
28909 gcc_cv_as_s390_gnu_attribute=no
28910 if test x$gcc_cv_as != x; then
28911 $as_echo '.gnu_attribute 8,1' > conftest.s
28912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28918 then
28919 gcc_cv_as_s390_gnu_attribute=yes
28920 else
28921 echo "configure: failed program was" >&5
28922 cat conftest.s >&5
28924 rm -f conftest.o conftest.s
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28928 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28929 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28931 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28936 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28937 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28938 $as_echo_n "(cached) " >&6
28939 else
28940 gcc_cv_as_s390_machine_machinemode=no
28941 if test x$gcc_cv_as != x; then
28942 $as_echo ' .machinemode push
28943 .machinemode pop
28944 .machine push
28945 .machine pop' > conftest.s
28946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28951 test $ac_status = 0; }; }
28952 then
28953 gcc_cv_as_s390_machine_machinemode=yes
28954 else
28955 echo "configure: failed program was" >&5
28956 cat conftest.s >&5
28958 rm -f conftest.o conftest.s
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28962 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28963 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28965 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28970 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28971 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28972 $as_echo_n "(cached) " >&6
28973 else
28974 gcc_cv_as_s390_architecture_modifiers=no
28975 if test x$gcc_cv_as != x; then
28976 $as_echo ' .machine z13+vx ' > conftest.s
28977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28979 (eval $ac_try) 2>&5
28980 ac_status=$?
28981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982 test $ac_status = 0; }; }
28983 then
28984 gcc_cv_as_s390_architecture_modifiers=yes
28985 else
28986 echo "configure: failed program was" >&5
28987 cat conftest.s >&5
28989 rm -f conftest.o conftest.s
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28993 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28994 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28996 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29001 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29002 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29003 $as_echo_n "(cached) " >&6
29004 else
29005 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29006 if test x$gcc_cv_as != x; then
29007 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29010 (eval $ac_try) 2>&5
29011 ac_status=$?
29012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29013 test $ac_status = 0; }; }
29014 then
29015 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29016 else
29017 echo "configure: failed program was" >&5
29018 cat conftest.s >&5
29020 rm -f conftest.o conftest.s
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29024 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29025 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29027 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29032 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29033 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29034 $as_echo_n "(cached) " >&6
29035 else
29036 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29037 if test x$gcc_cv_as != x; then
29038 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29041 (eval $ac_try) 2>&5
29042 ac_status=$?
29043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29044 test $ac_status = 0; }; }
29045 then
29046 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29047 else
29048 echo "configure: failed program was" >&5
29049 cat conftest.s >&5
29051 rm -f conftest.o conftest.s
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29055 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29056 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29058 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29064 esac
29066 # Mips, LoongArch and HP-UX need the GNU assembler.
29067 # Linux on IA64 might be able to use the Intel assembler.
29069 case "$target" in
29070 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29071 if test x$gas_flag = xyes \
29072 || test x"$host" != x"$build" \
29073 || test ! -x "$gcc_cv_as" \
29074 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29076 else
29077 echo "*** This configuration requires the GNU assembler" >&2
29078 exit 1
29081 esac
29083 # AMD GCN needs the LLVM assembler and linker.
29084 # Test that LLVM is at least 13.0.1.
29085 case "$target" in
29086 amdgcn-* | gcn-*)
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29088 $as_echo_n "checking llvm assembler version... " >&6; }
29089 gcc_cv_as_version="unknown"
29090 if test x$gcc_cv_as != x; then
29091 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29092 case "$gcc_cv_as_version" in
29093 13.0.[1-9]*) ;; # 13.0.1+
29094 13.[1-9]*) ;; # 13.1+
29095 1[4-9]*) ;; # 14..19
29096 [2-9][0-9]*) ;; # 20..99
29097 [1-9][0-9][0-9]*) ;; # 100+
29098 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29099 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29100 esac
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29103 $as_echo "$gcc_cv_as_version, ok" >&6; }
29105 esac
29107 case "$target" in
29108 arm*)
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29110 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29111 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29112 $as_echo_n "(cached) " >&6
29113 else
29114 gcc_cv_as_arm_option_extensions=no
29115 if test x$gcc_cv_as != x; then
29116 $as_echo '.text
29117 .thumb
29118 .syntax unified
29119 vmov.f32 s0, s1' > conftest.s
29120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29122 (eval $ac_try) 2>&5
29123 ac_status=$?
29124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29125 test $ac_status = 0; }; }
29126 then
29127 gcc_cv_as_arm_option_extensions=yes
29128 else
29129 echo "configure: failed program was" >&5
29130 cat conftest.s >&5
29132 rm -f conftest.o conftest.s
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29136 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29137 if test $gcc_cv_as_arm_option_extensions = yes; then
29139 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29143 esac
29145 # ??? Not all targets support dwarf2 debug_line, even within a version
29146 # of gas. Moreover, we need to emit a valid instruction to trigger any
29147 # info to the output file. So, as supported targets are added to gas 2.11,
29148 # add some instruction here to (also) show we expect this might work.
29149 # ??? Once 2.11 is released, probably need to add first known working
29150 # version to the per-target configury.
29151 case "$cpu_type" in
29152 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29153 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29154 | visium | xstormy16 | xtensa)
29155 insn="nop"
29157 ia64 | s390)
29158 insn="nop 0"
29160 mmix)
29161 insn="swym 0"
29163 esac
29164 if test x"$insn" != x; then
29165 conftest_s="\
29166 .file 1 \"conftest.s\"
29167 .loc 1 3 0
29168 $insn"
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29170 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29171 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29172 $as_echo_n "(cached) " >&6
29173 else
29174 gcc_cv_as_dwarf2_debug_line=no
29175 if test x$gcc_cv_as != x; then
29176 $as_echo "$conftest_s" > conftest.s
29177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29179 (eval $ac_try) 2>&5
29180 ac_status=$?
29181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29182 test $ac_status = 0; }; }
29183 then
29184 if test x$gcc_cv_objdump != x \
29185 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29186 | grep debug_line > /dev/null 2>&1; then
29187 gcc_cv_as_dwarf2_debug_line=yes
29188 elif test x$gcc_cv_otool != x \
29189 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29190 | grep debug_line > /dev/null 2>&1; then
29191 gcc_cv_as_dwarf2_debug_line=yes
29193 else
29194 echo "configure: failed program was" >&5
29195 cat conftest.s >&5
29197 rm -f conftest.o conftest.s
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29201 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29205 # The .debug_line file table must be in the exact order that
29206 # we specified the files, since these indices are also used
29207 # by DW_AT_decl_file. Approximate this test by testing if
29208 # the assembler bitches if the same index is assigned twice.
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29210 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29211 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29212 $as_echo_n "(cached) " >&6
29213 else
29214 gcc_cv_as_dwarf2_file_buggy=no
29215 if test x$gcc_cv_as != x; then
29216 $as_echo ' .file 1 "foo.s"
29217 .file 1 "bar.s"' > conftest.s
29218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29220 (eval $ac_try) 2>&5
29221 ac_status=$?
29222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29223 test $ac_status = 0; }; }
29224 then
29225 gcc_cv_as_dwarf2_file_buggy=yes
29226 else
29227 echo "configure: failed program was" >&5
29228 cat conftest.s >&5
29230 rm -f conftest.o conftest.s
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29234 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29238 if test $gcc_cv_as_dwarf2_debug_line = yes \
29239 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29241 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29244 if test $gcc_cv_as_leb128 = yes; then
29245 conftest_s="\
29246 .file 1 \"conftest.s\"
29247 .loc 1 3 0 view .LVU1
29248 $insn
29249 .data
29250 .uleb128 .LVU1
29251 .uleb128 .LVU1
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29254 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29255 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29256 $as_echo_n "(cached) " >&6
29257 else
29258 gcc_cv_as_dwarf2_debug_view=no
29259 if test x$gcc_cv_as != x; then
29260 $as_echo "$conftest_s" > conftest.s
29261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29266 test $ac_status = 0; }; }
29267 then
29268 gcc_cv_as_dwarf2_debug_view=yes
29269 else
29270 echo "configure: failed program was" >&5
29271 cat conftest.s >&5
29273 rm -f conftest.o conftest.s
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29277 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29278 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29280 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29288 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29289 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29290 $as_echo_n "(cached) " >&6
29291 else
29292 gcc_cv_as_gdwarf2_flag=no
29293 if test x$gcc_cv_as != x; then
29294 $as_echo "$insn" > conftest.s
29295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29297 (eval $ac_try) 2>&5
29298 ac_status=$?
29299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29300 test $ac_status = 0; }; }
29301 then
29302 gcc_cv_as_gdwarf2_flag=yes
29303 else
29304 echo "configure: failed program was" >&5
29305 cat conftest.s >&5
29307 rm -f conftest.o conftest.s
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29311 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29312 if test $gcc_cv_as_gdwarf2_flag = yes; then
29314 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29320 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29321 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29322 $as_echo_n "(cached) " >&6
29323 else
29324 gcc_cv_as_gdwarf_5_flag=no
29325 if test x$gcc_cv_as != x; then
29326 $as_echo "$insn" > conftest.s
29327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29329 (eval $ac_try) 2>&5
29330 ac_status=$?
29331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332 test $ac_status = 0; }; }
29333 then
29334 if test x$gcc_cv_objdump != x \
29335 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29336 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29337 gcc_cv_as_gdwarf_5_flag=yes;
29339 else
29340 echo "configure: failed program was" >&5
29341 cat conftest.s >&5
29343 rm -f conftest.o conftest.s
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29347 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29348 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29350 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29355 case $target_os in
29356 win32 | pe | cygwin* | mingw32*)
29357 section_flags=\"dr\"
29358 function_type=".def foo; .scl 2; .type 32; .endef"
29359 function_size="";;
29361 section_flags=\"\",%progbits
29362 function_type=".type foo, %function"
29363 function_size=".size foo, .-foo";;
29364 esac
29365 dwarf4_debug_info_size=0x46
29366 dwarf4_high_pc_form=7
29367 dwarf4_debug_aranges_size=0x2c
29368 dwarf4_line_sz=9
29369 for dwarf4_addr_size in 8 4; do
29370 conftest_s="\
29371 .file \"a.c\"
29372 .text
29373 .Ltext0:
29374 .p2align 4
29375 .globl foo
29376 $function_type
29377 foo:
29378 .LFB0:
29379 .LM1:
29380 $insn
29381 .LM2:
29382 .LFE0:
29383 $function_size
29384 .Letext0:
29385 .section .debug_info,$section_flags
29386 .Ldebug_info0:
29387 .4byte $dwarf4_debug_info_size
29388 .2byte 0x4
29389 .4byte .Ldebug_abbrev0
29390 .byte 0x$dwarf4_addr_size
29391 .byte 0x1
29392 .ascii \"GNU C17\\0\"
29393 .byte 0xc
29394 .ascii \"a.c\\0\"
29395 .ascii \"/\\0\"
29396 .${dwarf4_addr_size}byte .Ltext0
29397 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29398 .4byte .Ldebug_line0
29399 .byte 0x2
29400 .ascii \"foo\\0\"
29401 .byte 0x1
29402 .byte 0x2
29403 .byte 0x1
29404 .${dwarf4_addr_size}byte .LFB0
29405 .${dwarf4_addr_size}byte .LFE0-.LFB0
29406 .byte 0x1
29407 .byte 0x9c
29408 .byte 0
29409 .section .debug_abbrev,$section_flags
29410 .Ldebug_abbrev0:
29411 .byte 0x1
29412 .byte 0x11
29413 .byte 0x1
29414 .byte 0x25
29415 .byte 0x8
29416 .byte 0x13
29417 .byte 0xb
29418 .byte 0x3
29419 .byte 0x8
29420 .byte 0x1b
29421 .byte 0x8
29422 .byte 0x11
29423 .byte 0x1
29424 .byte 0x12
29425 .byte 0x$dwarf4_high_pc_form
29426 .byte 0x10
29427 .byte 0x17
29428 .byte 0
29429 .byte 0
29430 .byte 0x2
29431 .byte 0x2e
29432 .byte 0
29433 .byte 0x3f
29434 .byte 0x19
29435 .byte 0x3
29436 .byte 0x8
29437 .byte 0x3a
29438 .byte 0xb
29439 .byte 0x3b
29440 .byte 0xb
29441 .byte 0x39
29442 .byte 0xb
29443 .byte 0x11
29444 .byte 0x1
29445 .byte 0x12
29446 .byte 0x$dwarf4_high_pc_form
29447 .byte 0x40
29448 .byte 0x18
29449 .byte 0
29450 .byte 0
29451 .byte 0
29452 .section .debug_aranges,$section_flags
29453 .4byte $dwarf4_debug_aranges_size
29454 .2byte 0x2
29455 .4byte .Ldebug_info0
29456 .byte 0x8
29457 .byte 0
29458 .2byte 0
29459 .2byte 0
29460 .${dwarf4_addr_size}byte .Ltext0
29461 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29462 .${dwarf4_addr_size}byte 0
29463 .${dwarf4_addr_size}byte 0
29464 .section .debug_line,$section_flags
29465 .Ldebug_line0:
29466 .4byte .LELT0-.LSLT0
29467 .LSLT0:
29468 .2byte 0x4
29469 .4byte .LELTP0-.LASLTP0
29470 .LASLTP0:
29471 .byte 0x1
29472 .byte 0x1
29473 .byte 0x1
29474 .byte 0xf6
29475 .byte 0xf2
29476 .byte 0xd
29477 .byte 0
29478 .byte 0x1
29479 .byte 0x1
29480 .byte 0x1
29481 .byte 0x1
29482 .byte 0
29483 .byte 0
29484 .byte 0
29485 .byte 0x1
29486 .byte 0
29487 .byte 0
29488 .byte 0x1
29489 .byte 0
29490 .ascii \"a.c\\0\"
29491 .byte 0
29492 .byte 0
29493 .byte 0
29494 .byte 0
29495 .LELTP0:
29496 .byte 0
29497 .byte 0x$dwarf4_line_sz
29498 .byte 0x2
29499 .${dwarf4_addr_size}byte .LM1
29500 .byte 0x18
29501 .byte 0x5
29502 .byte 0x1
29503 .byte 0
29504 .byte 0x$dwarf4_line_sz
29505 .byte 0x2
29506 .${dwarf4_addr_size}byte .LM2
29507 .byte 0x1
29508 .byte 0x5
29509 .byte 0x1
29510 .byte 0
29511 .byte 0x$dwarf4_line_sz
29512 .byte 0x2
29513 .${dwarf4_addr_size}byte .Letext0
29514 .byte 0
29515 .byte 0x1
29516 .byte 0x1
29517 .LELT0:
29518 .section .debug_str,$section_flags
29519 .ident \"GCC\"
29521 dwarf4_success=no
29522 if test $dwarf4_addr_size = 4; then
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29524 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29525 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29526 $as_echo_n "(cached) " >&6
29527 else
29528 gcc_cv_as_debug_line_32_flag=no
29529 if test x$gcc_cv_as != x; then
29530 $as_echo "$conftest_s" > conftest.s
29531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29533 (eval $ac_try) 2>&5
29534 ac_status=$?
29535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29536 test $ac_status = 0; }; }
29537 then
29538 gcc_cv_as_debug_line_32_flag=yes
29539 else
29540 echo "configure: failed program was" >&5
29541 cat conftest.s >&5
29543 rm -f conftest.o conftest.s
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29547 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29548 if test $gcc_cv_as_debug_line_32_flag = yes; then
29549 dwarf4_success=yes
29552 else
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29554 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29555 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29556 $as_echo_n "(cached) " >&6
29557 else
29558 gcc_cv_as_debug_line_64_flag=no
29559 if test x$gcc_cv_as != x; then
29560 $as_echo "$conftest_s" > conftest.s
29561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29566 test $ac_status = 0; }; }
29567 then
29568 gcc_cv_as_debug_line_64_flag=yes
29569 else
29570 echo "configure: failed program was" >&5
29571 cat conftest.s >&5
29573 rm -f conftest.o conftest.s
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29577 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29578 if test $gcc_cv_as_debug_line_64_flag = yes; then
29579 dwarf4_success=yes
29583 if test $dwarf4_success = yes; then
29584 dwarf4_success=no
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29586 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29587 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29588 $as_echo_n "(cached) " >&6
29589 else
29590 gcc_cv_as_dwarf_4_debug_line_flag=no
29591 if test x$gcc_cv_as != x; then
29592 $as_echo "$conftest_s" > conftest.s
29593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; }
29599 then
29600 gcc_cv_as_dwarf_4_debug_line_flag=yes
29601 else
29602 echo "configure: failed program was" >&5
29603 cat conftest.s >&5
29605 rm -f conftest.o conftest.s
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29609 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29610 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29611 dwarf4_success=yes
29614 break
29616 dwarf4_debug_info_size=0x36
29617 dwarf4_high_pc_form=6
29618 dwarf4_debug_aranges_size=0x1c
29619 dwarf4_line_sz=5
29620 done
29622 if test $dwarf4_success = yes; then
29623 conftest_s="\
29624 .file \"foo.c\"
29625 .text
29626 bar:
29627 #APP
29628 # 82 \"xxx.h\" 1
29629 $insn
29630 # 0 \"\" 2
29631 #NO_APP
29632 $insn
29633 foo:
29634 .file 1 \"foo.c\"
29635 $insn
29636 .file 2 \"foo.h\"
29639 dwarf4_success=no
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29641 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29642 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29643 $as_echo_n "(cached) " >&6
29644 else
29645 gcc_cv_as_dwarf_4_app_flag=no
29646 if test x$gcc_cv_as != x; then
29647 $as_echo "$conftest_s" > conftest.s
29648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29650 (eval $ac_try) 2>&5
29651 ac_status=$?
29652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29653 test $ac_status = 0; }; }
29654 then
29655 gcc_cv_as_dwarf_4_app_flag=yes
29656 else
29657 echo "configure: failed program was" >&5
29658 cat conftest.s >&5
29660 rm -f conftest.o conftest.s
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29664 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29665 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29666 dwarf4_success=yes
29671 if test $dwarf4_success = yes; then
29672 conftest_s="\
29673 .text
29674 .globl foo
29675 $function_type
29676 foo:
29677 $insn
29678 $function_size
29679 .file 1 \"foo.c\"
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29682 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29683 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29684 $as_echo_n "(cached) " >&6
29685 else
29686 gcc_cv_as_working_gdwarf_n_flag=no
29687 if test x$gcc_cv_as != x; then
29688 $as_echo "$conftest_s" > conftest.s
29689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29691 (eval $ac_try) 2>&5
29692 ac_status=$?
29693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29694 test $ac_status = 0; }; }
29695 then
29696 if test x$gcc_cv_objdump != x \
29697 && $gcc_cv_objdump -W conftest.o 2>&1 \
29698 | grep conftest.s > /dev/null 2>&1; then
29699 gcc_cv_as_working_gdwarf_n_flag=no
29700 else
29701 gcc_cv_as_working_gdwarf_n_flag=yes
29703 else
29704 echo "configure: failed program was" >&5
29705 cat conftest.s >&5
29707 rm -f conftest.o conftest.s
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29711 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29714 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29716 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29722 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29723 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29724 $as_echo_n "(cached) " >&6
29725 else
29726 gcc_cv_as_debug_prefix_map_flag=no
29727 if test x$gcc_cv_as != x; then
29728 $as_echo "$insn" > conftest.s
29729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29731 (eval $ac_try) 2>&5
29732 ac_status=$?
29733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29734 test $ac_status = 0; }; }
29735 then
29736 gcc_cv_as_debug_prefix_map_flag=yes
29737 else
29738 echo "configure: failed program was" >&5
29739 cat conftest.s >&5
29741 rm -f conftest.o conftest.s
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29745 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29746 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29748 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29755 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29756 if ${gcc_cv_as_compress_debug+:} false; then :
29757 $as_echo_n "(cached) " >&6
29758 else
29759 gcc_cv_as_compress_debug=no
29760 if test x$gcc_cv_as != x; then
29761 $as_echo '' > conftest.s
29762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29764 (eval $ac_try) 2>&5
29765 ac_status=$?
29766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29767 test $ac_status = 0; }; }
29768 then
29769 # gas compiled without zlib cannot compress debug sections and warns
29770 # about it, but still exits successfully. So check for this, too.
29771 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29772 then
29773 gcc_cv_as_compress_debug=0
29774 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29775 then
29776 gcc_cv_as_compress_debug=1
29777 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29778 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29779 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29780 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29781 then
29782 gcc_cv_as_compress_debug=2
29784 else
29785 gcc_cv_as_compress_debug=0
29787 else
29788 echo "configure: failed program was" >&5
29789 cat conftest.s >&5
29791 rm -f conftest.o conftest.s
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29795 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29799 cat >>confdefs.h <<_ACEOF
29800 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29801 _ACEOF
29804 cat >>confdefs.h <<_ACEOF
29805 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29806 _ACEOF
29809 cat >>confdefs.h <<_ACEOF
29810 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29811 _ACEOF
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29815 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29816 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29817 $as_echo_n "(cached) " >&6
29818 else
29819 gcc_cv_as_lcomm_with_alignment=no
29820 if test x$gcc_cv_as != x; then
29821 $as_echo '.lcomm bar,4,16' > conftest.s
29822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29827 test $ac_status = 0; }; }
29828 then
29829 gcc_cv_as_lcomm_with_alignment=yes
29830 else
29831 echo "configure: failed program was" >&5
29832 cat conftest.s >&5
29834 rm -f conftest.o conftest.s
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29838 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29839 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29841 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29846 if test x$with_sysroot = x && test x$host = x$target \
29847 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29848 && test "$prefix" != "NONE"; then
29850 cat >>confdefs.h <<_ACEOF
29851 #define PREFIX_INCLUDE_DIR "$prefix/include"
29852 _ACEOF
29856 # Determine the version of glibc, if any, used on the target.
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29858 $as_echo_n "checking for target glibc version... " >&6; }
29860 # Check whether --with-glibc-version was given.
29861 if test "${with_glibc_version+set}" = set; then :
29862 withval=$with_glibc_version;
29863 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29864 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29865 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29866 else
29867 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29869 else
29871 glibc_version_major=0
29872 glibc_version_minor=0
29873 if test -f $target_header_dir/features.h \
29874 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29875 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29876 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29877 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29882 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29884 cat >>confdefs.h <<_ACEOF
29885 #define TARGET_GLIBC_MAJOR $glibc_version_major
29886 _ACEOF
29889 cat >>confdefs.h <<_ACEOF
29890 #define TARGET_GLIBC_MINOR $glibc_version_minor
29891 _ACEOF
29894 # Check whether --enable-gnu-unique-object was given.
29895 if test "${enable_gnu_unique_object+set}" = set; then :
29896 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29897 yes | no) ;;
29898 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29899 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29900 esac
29901 else
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29903 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29904 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29905 $as_echo_n "(cached) " >&6
29906 else
29907 gcc_cv_as_gnu_unique_object=no
29908 if test x$gcc_cv_as != x; then
29909 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29912 (eval $ac_try) 2>&5
29913 ac_status=$?
29914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29915 test $ac_status = 0; }; }
29916 then
29917 gcc_cv_as_gnu_unique_object=yes
29918 else
29919 echo "configure: failed program was" >&5
29920 cat conftest.s >&5
29922 rm -f conftest.o conftest.s
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29926 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29927 if test $gcc_cv_as_gnu_unique_object = yes; then
29928 # We need to unquote above to to use the definition from config.gcc.
29929 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29931 if test $glibc_version_major -gt 2 \
29932 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29933 enable_gnu_unique_object=yes
29940 if test x$enable_gnu_unique_object = xyes; then
29942 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29947 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29948 if ${gcc_cv_as_line_zero+:} false; then :
29949 $as_echo_n "(cached) " >&6
29950 else
29951 gcc_cv_as_line_zero=no
29952 if test "x$gcc_cv_as" != x; then
29953 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29954 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959 test $ac_status = 0; }; } &&
29960 test "x`cat conftest.out`" = x
29961 then
29962 gcc_cv_as_line_zero=yes
29963 else
29964 echo "configure: failed program was" >&5
29965 cat conftest.s >&5
29966 echo "configure: error output was" >&5
29967 cat conftest.out >&5
29969 rm -f conftest.o conftest.s conftest.out
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29973 $as_echo "$gcc_cv_as_line_zero" >&6; }
29974 if test "x$gcc_cv_as_line_zero" = xyes; then
29976 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29981 $as_echo_n "checking support for thin archives... " >&6; }
29982 thin_archive_support=no
29983 echo 'int main (void) { return 0; }' > conftest.c
29984 if ($AR --version | sed 1q | grep "GNU ar" \
29985 && $CC $CFLAGS -c conftest.c \
29986 && $AR rcT conftest.a conftest.o \
29987 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29988 thin_archive_support=yes
29990 rm -f conftest.c conftest.o conftest.a conftest
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29992 $as_echo "$thin_archive_support" >&6; }
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29996 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29997 gcc_cv_ld_eh_frame_hdr=no
29998 if test $in_tree_ld = yes ; then
29999 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 \
30000 && test $in_tree_ld_is_elf = yes; then
30001 gcc_cv_ld_eh_frame_hdr=yes
30003 elif test x$gcc_cv_ld != x; then
30004 if echo "$ld_ver" | grep GNU > /dev/null; then
30005 # Check if linker supports --eh-frame-hdr option
30006 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30007 gcc_cv_ld_eh_frame_hdr=yes
30009 else
30010 case "$target" in
30011 *-*-solaris2*)
30012 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30013 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30014 gcc_cv_ld_eh_frame_hdr=yes
30017 esac
30021 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30023 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30027 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30030 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30031 gcc_cv_ld_eh_frame_ciev3=no
30032 if test $in_tree_ld = yes ; then
30033 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 \
30034 && test $in_tree_ld_is_elf = yes; then
30035 gcc_cv_ld_eh_frame_ciev3=yes
30037 elif test x$gcc_cv_ld != x; then
30038 if echo "$ld_ver" | grep GNU > /dev/null; then
30039 gcc_cv_ld_eh_frame_ciev3=yes
30040 if test 0"$ld_date" -lt 20040513; then
30041 if test -n "$ld_date"; then
30042 # If there was date string, but was earlier than 2004-05-13, fail
30043 gcc_cv_ld_eh_frame_ciev3=no
30044 elif test "$ld_vers_major" -lt 2; then
30045 gcc_cv_ld_eh_frame_ciev3=no
30046 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30047 gcc_cv_ld_eh_frame_ciev3=no
30050 else
30051 case "$target" in
30052 *-*-solaris2*)
30053 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30054 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30055 gcc_cv_ld_eh_frame_ciev3=yes
30058 esac
30062 cat >>confdefs.h <<_ACEOF
30063 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30064 _ACEOF
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30067 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30070 $as_echo_n "checking linker position independent executable support... " >&6; }
30071 gcc_cv_ld_pie=no
30072 if test $in_tree_ld = yes ; then
30073 case "$target" in
30074 # Full PIE support on Solaris was only introduced in gld 2.26.
30075 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30076 *) gcc_gld_pie_min_version=15 ;;
30077 esac
30078 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 \
30079 && test $in_tree_ld_is_elf = yes; then
30080 gcc_cv_ld_pie=yes
30082 elif test x$gcc_cv_ld != x; then
30083 # Check if linker supports -pie option
30084 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30085 gcc_cv_ld_pie=yes
30086 case "$target" in
30087 *-*-solaris2*)
30088 if echo "$ld_ver" | grep GNU > /dev/null \
30089 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30090 gcc_cv_ld_pie=no
30093 esac
30094 else
30095 case "$target" in
30096 *-*-solaris2.1[1-9]*)
30097 # Solaris 11.3 added PIE support.
30098 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30099 gcc_cv_ld_pie=yes
30102 esac
30105 if test x"$gcc_cv_ld_pie" = xyes; then
30107 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30111 $as_echo "$gcc_cv_ld_pie" >&6; }
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30114 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30115 gcc_cv_ld_pie_copyreloc=no
30116 if test $gcc_cv_ld_pie = yes ; then
30117 if test $in_tree_ld = yes ; then
30118 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
30119 gcc_cv_ld_pie_copyreloc=yes
30121 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30122 # Check if linker supports -pie option with copy reloc
30123 case "$target" in
30124 i?86-*-linux* | x86_64-*-linux*)
30125 cat > conftest1.s <<EOF
30126 .globl a_glob
30127 .data
30128 .type a_glob, @object
30129 .size a_glob, 4
30130 a_glob:
30131 .long 2
30133 cat > conftest2.s <<EOF
30134 .text
30135 .globl main
30136 .type main, @function
30137 main:
30138 movl %eax, a_glob(%rip)
30139 .size main, .-main
30140 .globl ptr
30141 .section .data.rel,"aw",@progbits
30142 .type ptr, @object
30143 ptr:
30144 .quad a_glob
30146 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30147 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30148 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30149 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30150 gcc_cv_ld_pie_copyreloc=yes
30152 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30154 esac
30158 cat >>confdefs.h <<_ACEOF
30159 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30160 _ACEOF
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30163 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30166 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30167 gcc_cv_ld_eh_gc_sections=no
30168 if test $in_tree_ld = yes ; then
30169 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 \
30170 && test $in_tree_ld_is_elf = yes; then
30171 gcc_cv_ld_eh_gc_sections=yes
30173 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30174 cat > conftest.s <<EOF
30175 .section .text
30176 .globl _start
30177 .type _start, @function
30178 _start:
30179 .long foo
30180 .size _start, .-_start
30181 .section .text.foo,"ax",@progbits
30182 .type foo, @function
30183 foo:
30184 .long 0
30185 .size foo, .-foo
30186 .section .gcc_except_table.foo,"a",@progbits
30187 .L0:
30188 .long 0
30189 .section .eh_frame,"a",@progbits
30190 .long .L0
30192 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30193 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30194 | grep "gc-sections option ignored" > /dev/null; then
30195 gcc_cv_ld_eh_gc_sections=no
30196 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30197 | grep gcc_except_table > /dev/null; then
30198 gcc_cv_ld_eh_gc_sections=yes
30199 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30200 if test x$gcc_cv_as_comdat_group != xyes; then
30201 gcc_cv_ld_eh_gc_sections=no
30202 cat > conftest.s <<EOF
30203 .section .text
30204 .globl _start
30205 .type _start, @function
30206 _start:
30207 .long foo
30208 .size _start, .-_start
30209 .section .gnu.linkonce.t.foo,"ax",@progbits
30210 .type foo, @function
30211 foo:
30212 .long 0
30213 .size foo, .-foo
30214 .section .gcc_except_table.foo,"a",@progbits
30215 .L0:
30216 .long 0
30217 .section .eh_frame,"a",@progbits
30218 .long .L0
30220 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30221 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30222 | grep "gc-sections option ignored" > /dev/null; then
30223 gcc_cv_ld_eh_gc_sections=no
30224 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30225 | grep gcc_except_table > /dev/null; then
30226 gcc_cv_ld_eh_gc_sections=yes
30232 rm -f conftest.s conftest.o conftest
30234 case "$target" in
30235 hppa*-*-linux*)
30236 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30237 gcc_cv_ld_eh_gc_sections=no
30239 esac
30240 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30242 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30246 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30249 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30250 gcc_cv_ld_eh_gc_sections_bug=no
30251 if test $in_tree_ld = yes ; then
30252 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 \
30253 && test $in_tree_ld_is_elf = yes; then
30254 gcc_cv_ld_eh_gc_sections_bug=yes
30256 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
30257 gcc_cv_ld_eh_gc_sections_bug=yes
30258 cat > conftest.s <<EOF
30259 .section .text
30260 .globl _start
30261 .type _start, @function
30262 _start:
30263 .long foo
30264 .size _start, .-_start
30265 .section .text.startup.foo,"ax",@progbits
30266 .type foo, @function
30267 foo:
30268 .long 0
30269 .size foo, .-foo
30270 .section .gcc_except_table.foo,"a",@progbits
30271 .L0:
30272 .long 0
30273 .section .eh_frame,"a",@progbits
30274 .long .L0
30276 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30277 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30278 | grep "gc-sections option ignored" > /dev/null; then
30280 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30281 | grep gcc_except_table > /dev/null; then
30282 gcc_cv_ld_eh_gc_sections_bug=no
30285 rm -f conftest.s conftest.o conftest
30287 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30289 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30293 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30296 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30297 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30298 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30299 gcc_cv_ld_compress_debug=1
30300 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30301 # Detect zstd debug section compression support
30302 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30303 gcc_cv_ld_compress_debug=2
30305 else
30306 case "${target}" in
30307 *-*-solaris2*)
30308 # Introduced in Solaris 11.2.
30309 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30310 gcc_cv_ld_compress_debug=1
30311 gcc_cv_ld_compress_debug_option="-z compress-sections"
30312 else
30313 gcc_cv_ld_compress_debug=0
30317 # Assume linkers other than GNU ld don't support compessed debug
30318 # sections.
30319 gcc_cv_ld_compress_debug=0
30321 esac
30324 cat >>confdefs.h <<_ACEOF
30325 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30326 _ACEOF
30329 cat >>confdefs.h <<_ACEOF
30330 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30331 _ACEOF
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30334 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30336 if test x"$ld64_flag" = x"yes"; then
30338 # Set defaults for possibly untestable items.
30339 gcc_cv_ld64_export_dynamic=0
30340 gcc_cv_ld64_platform_version=0
30342 if test "$build" = "$host"; then
30343 darwin_try_test=1
30344 else
30345 darwin_try_test=0
30348 # On Darwin, because of FAT library support, it is often possible to execute
30349 # exes from compatible archs even when the host differs from the build system.
30350 case "$build","$host" in
30351 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30352 darwin_try_test=1;;
30353 *) ;;
30354 esac
30356 # If the configurer specified a minimum ld64 version to be supported, then use
30357 # that to determine feature support.
30358 if test x"${gcc_cv_ld64_version}" != x; then
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30360 $as_echo_n "checking ld64 specified version... " >&6; }
30361 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30363 $as_echo "$gcc_cv_ld64_major" >&6; }
30364 if test "$gcc_cv_ld64_major" -ge 236; then
30365 gcc_cv_ld64_export_dynamic=1
30367 if test "$gcc_cv_ld64_major" -ge 512; then
30368 gcc_cv_ld64_platform_version=1
30370 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30371 # If the version was not specified, try to find it.
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30373 $as_echo_n "checking linker version... " >&6; }
30374 if test x"${gcc_cv_ld64_version}" = x; then
30375 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30378 $as_echo "$gcc_cv_ld64_version" >&6; }
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30381 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30382 gcc_cv_ld64_export_dynamic=1
30383 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30384 gcc_cv_ld64_export_dynamic=0
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30387 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30390 $as_echo_n "checking linker for -platform_version support... " >&6; }
30391 gcc_cv_ld64_platform_version=1
30392 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30393 gcc_cv_ld64_platform_version=0
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30396 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30399 if test x"${gcc_cv_ld64_version}" != x; then
30401 cat >>confdefs.h <<_ACEOF
30402 #define LD64_VERSION "${gcc_cv_ld64_version}"
30403 _ACEOF
30408 cat >>confdefs.h <<_ACEOF
30409 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30410 _ACEOF
30414 cat >>confdefs.h <<_ACEOF
30415 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30416 _ACEOF
30420 if test x"$dsymutil_flag" = x"yes"; then
30422 # If the user specified a dsymutil path, then we will already have the
30423 # version string, otherwise, pick it up.
30424 if test x"$gcc_cv_dsymutil" = x; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30426 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30427 dsymutil_vers="tool unspecified"
30428 elif test x"$dsymutil_vers" = x; then
30429 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30432 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30434 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30435 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30436 dsymutil_kind=DWARFUTILS
30437 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30438 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30439 dsymutil_kind=CLANG
30440 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30441 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30442 dsymutil_kind=LLVM
30443 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30444 else
30445 dsymutil_kind=UNKNOWN
30446 dsymutil_vers="0.0"
30448 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30449 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30450 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30451 if test x"${dsymutil_minor}" = x; then
30452 dsymutil_minor=0
30454 if test x"${dsymutil_tiny}" = x; then
30455 dsymutil_tiny=0
30458 cat >>confdefs.h <<_ACEOF
30459 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30460 _ACEOF
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30463 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30466 case $target_os in
30467 win32 | pe | cygwin* | mingw32*)
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30469 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30470 gcc_cv_ld_broken_pe_dwarf5=yes
30471 if test $in_tree_ld = yes ; then
30472 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30473 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30474 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30475 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30476 gcc_cv_ld_broken_pe_dwarf5=no
30478 else
30479 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30480 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30481 gcc_cv_ld_broken_pe_dwarf5=no
30484 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30486 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30490 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30493 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30494 gcc_cv_ld_disable_dynamicbase=no
30495 if test $in_tree_ld = yes; then
30496 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
30497 gcc_cv_ld_disable_dynamicbase=yes
30499 else
30500 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30501 gcc_cv_ld_disable_dynamicbase=yes
30504 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30506 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30510 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30512 esac
30514 # --------
30515 # UNSORTED
30516 # --------
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30519 $as_echo_n "checking linker --as-needed support... " >&6; }
30520 if ${gcc_cv_ld_as_needed+:} false; then :
30521 $as_echo_n "(cached) " >&6
30522 else
30523 gcc_cv_ld_as_needed=no
30524 gcc_cv_ld_as_needed_option='--as-needed'
30525 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30526 if test $in_tree_ld = yes ; then
30527 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 \
30528 && test $in_tree_ld_is_elf = yes; then
30529 gcc_cv_ld_as_needed=yes
30530 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30531 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30532 gcc_cv_ld_no_as_needed_option='--pop-state'
30535 elif test x$gcc_cv_ld != x; then
30536 # Check if linker supports --as-needed and --no-as-needed options
30537 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30538 gcc_cv_ld_as_needed=yes
30539 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30540 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30541 && echo "$ld_ver" | grep GNU > /dev/null \
30542 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30543 # Use these options only when both ld.bfd and ld.gold support
30544 # --push-state/--pop-state, which unfortunately wasn't added
30545 # at the same time.
30546 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30547 gcc_cv_ld_no_as_needed_option='--pop-state'
30550 case "$target:$gnu_ld" in
30551 *-*-solaris2*:no)
30552 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30553 # forms.
30554 gcc_cv_ld_as_needed=yes
30555 gcc_cv_ld_as_needed_option="-z ignore"
30556 gcc_cv_ld_no_as_needed_option="-z record"
30558 esac
30560 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30561 # dl_iterate_phdr, i.e. since Solaris 11.
30562 case "$target" in
30563 *-*-solaris2.1[1-9]*)
30564 case "$target" in
30565 i?86-*-* | x86_64-*-*)
30566 if echo "$ld_ver" | grep GNU > /dev/null; then
30567 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30568 gcc_cv_ld_as_needed=no
30571 esac
30573 *-*-solaris2*)
30574 gcc_cv_ld_as_needed=no
30576 esac
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30580 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30581 if test x"$gcc_cv_ld_as_needed" = xyes; then
30583 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30586 cat >>confdefs.h <<_ACEOF
30587 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30588 _ACEOF
30591 cat >>confdefs.h <<_ACEOF
30592 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30593 _ACEOF
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30598 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30599 saved_LDFLAGS="$LDFLAGS"
30600 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30601 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30603 /* end confdefs.h. */
30604 int main(void) {return 0;}
30605 _ACEOF
30606 if ac_fn_cxx_try_link "$LINENO"; then :
30607 gcc_cv_ld_clearcap=yes; break
30608 else
30609 gcc_cv_ld_clearcap=no
30611 rm -f core conftest.err conftest.$ac_objext \
30612 conftest$ac_exeext conftest.$ac_ext
30613 done
30614 LDFLAGS="$saved_LDFLAGS"
30615 if test "x$gcc_cv_ld_clearcap" = xyes; then
30617 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30619 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30623 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30625 case "$target" in
30626 powerpc*-*-*)
30627 case "$target" in
30628 *le-*-linux*)
30629 emul_name="-melf32lppc"
30632 emul_name="-melf32ppc"
30634 esac
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30636 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30637 if ${gcc_cv_ld_ppc_attr+:} false; then :
30638 $as_echo_n "(cached) " >&6
30639 else
30640 gcc_cv_ld_ppc_attr=no
30641 if test x"$ld_is_gold" = xyes; then
30642 gcc_cv_ld_ppc_attr=yes
30643 elif test $in_tree_ld = yes ; then
30644 if test "$gcc_cv_gld_major_version" -eq 2 \
30645 -a "$gcc_cv_gld_minor_version" -ge 28 \
30646 -o "$gcc_cv_gld_major_version" -gt 2; then
30647 gcc_cv_ld_ppc_attr=yes
30649 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30650 # check that merging the long double .gnu_attribute doesn't warn
30651 cat > conftest1.s <<EOF
30652 .gnu_attribute 4,1
30654 cat > conftest2.s <<EOF
30655 .gnu_attribute 4,9
30657 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30658 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30659 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30660 && test ! -s conftest.err; then
30661 gcc_cv_ld_ppc_attr=yes
30663 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30668 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30669 if test x$gcc_cv_ld_ppc_attr = xyes; then
30671 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30675 esac
30677 case "$target:$tm_file" in
30678 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30679 case "$target" in
30680 *le-*-linux*)
30681 emul_name="-melf64lppc"
30683 *-*-linux*)
30684 emul_name="-melf64ppc"
30686 *le-*-freebsd*)
30687 emul_name="-melf64lppc_fbsd"
30689 *-*-freebsd*)
30690 emul_name="-melf64ppc_fbsd"
30692 esac
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30695 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30696 $as_echo_n "(cached) " >&6
30697 else
30698 gcc_cv_ld_no_dot_syms=no
30699 if test x"$ld_is_gold" = xyes; then
30700 gcc_cv_ld_no_dot_syms=yes
30701 elif test $in_tree_ld = yes ; then
30702 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
30703 gcc_cv_ld_no_dot_syms=yes
30705 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30706 cat > conftest1.s <<EOF
30707 .text
30708 bl .foo
30710 cat > conftest2.s <<EOF
30711 .section ".opd","aw"
30712 .align 3
30713 .globl foo
30714 .type foo,@function
30715 foo:
30716 .quad .LEfoo,.TOC.@tocbase,0
30717 .text
30718 .LEfoo:
30720 .size foo,.-.LEfoo
30722 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30723 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30724 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30725 gcc_cv_ld_no_dot_syms=yes
30727 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30732 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30733 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30735 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30740 $as_echo_n "checking linker large toc support... " >&6; }
30741 if ${gcc_cv_ld_large_toc+:} false; then :
30742 $as_echo_n "(cached) " >&6
30743 else
30744 gcc_cv_ld_large_toc=no
30745 if test x"$ld_is_gold" = xyes; then
30746 gcc_cv_ld_large_toc=yes
30747 elif test $in_tree_ld = yes ; then
30748 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
30749 gcc_cv_ld_large_toc=yes
30751 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30752 cat > conftest.s <<EOF
30753 .section ".tbss","awT",@nobits
30754 .align 3
30755 ie0: .space 8
30756 .global _start
30757 .text
30758 _start:
30759 addis 9,13,ie0@got@tprel@ha
30760 ld 9,ie0@got@tprel@l(9)
30762 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30763 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30764 gcc_cv_ld_large_toc=yes
30766 rm -f conftest conftest.o conftest.s
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30771 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30772 if test x"$gcc_cv_ld_large_toc" = xyes; then
30774 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30779 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30780 if ${gcc_cv_ld_toc_align+:} false; then :
30781 $as_echo_n "(cached) " >&6
30782 else
30783 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30784 cat > conftest.s <<EOF
30785 .global _start
30786 .text
30787 _start:
30788 addis 9,2,x@got@ha
30789 .section .data.rel.ro,"aw",@progbits
30790 .p2align 16
30791 .space 32768
30792 x: .quad .TOC.
30794 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30795 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30796 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)) }'`
30798 rm -f conftest conftest.o conftest.s
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30803 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30804 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30806 cat >>confdefs.h <<_ACEOF
30807 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30808 _ACEOF
30812 esac
30814 case "$target" in
30815 *-*-aix*)
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30817 $as_echo_n "checking linker large toc support... " >&6; }
30818 if ${gcc_cv_ld_large_toc+:} false; then :
30819 $as_echo_n "(cached) " >&6
30820 else
30821 gcc_cv_ld_large_toc=no
30822 if test x$gcc_cv_as != x ; then
30823 cat > conftest.s <<EOF
30824 .toc
30825 LC..1:
30826 .tc a[TC],a[RW]
30827 .extern a[RW]
30828 .csect .text[PR]
30829 .largetoctest:
30830 addis 9,LC..1@u(2)
30831 ld 3,LC..1@l(9)
30833 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30834 gcc_cv_ld_large_toc=yes
30836 rm -f conftest conftest.o conftest.s
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30841 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30842 if test x"$gcc_cv_ld_large_toc" = xyes; then
30844 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30848 esac
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30851 $as_echo_n "checking linker --build-id support... " >&6; }
30852 if ${gcc_cv_ld_buildid+:} false; then :
30853 $as_echo_n "(cached) " >&6
30854 else
30855 gcc_cv_ld_buildid=no
30856 if test $in_tree_ld = yes ; then
30857 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30858 "$gcc_cv_gld_minor_version" -ge 18 -o \
30859 "$gcc_cv_gld_major_version" -gt 2 \
30860 && test $in_tree_ld_is_elf = yes; then
30861 gcc_cv_ld_buildid=yes
30863 elif test x$gcc_cv_ld != x; then
30864 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30865 gcc_cv_ld_buildid=yes
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30870 $as_echo "$gcc_cv_ld_buildid" >&6; }
30871 if test x"$gcc_cv_ld_buildid" = xyes; then
30873 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30877 # Check whether --enable-linker-build-id was given.
30878 if test "${enable_linker_build_id+set}" = set; then :
30879 enableval=$enable_linker_build_id;
30880 else
30881 enable_linker_build_id=no
30885 if test x"$enable_linker_build_id" = xyes; then
30886 if test x"$gcc_cv_ld_buildid" = xyes; then
30888 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30890 else
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30892 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30896 # In binutils 2.21, GNU ld gained support for new emulations fully
30897 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30899 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30900 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30901 $as_echo_n "(cached) " >&6
30902 else
30903 gcc_cv_ld_sol2_emulation=no
30904 if test $in_tree_ld = yes ; then
30905 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30906 "$gcc_cv_gld_minor_version" -ge 21 -o \
30907 "$gcc_cv_gld_major_version" -gt 2 \
30908 && test $in_tree_ld_is_elf = yes; then
30909 gcc_cv_ld_sol2_emulation=yes
30911 elif test x$gcc_cv_ld != x; then
30912 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30913 grep _sol2 > /dev/null; then
30914 gcc_cv_ld_sol2_emulation=yes
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30919 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30920 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30922 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30927 $as_echo_n "checking linker --sysroot support... " >&6; }
30928 if ${gcc_cv_ld_sysroot+:} false; then :
30929 $as_echo_n "(cached) " >&6
30930 else
30931 gcc_cv_ld_sysroot=no
30932 if test $in_tree_ld = yes ; then
30933 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
30934 gcc_cv_ld_sysroot=yes
30936 elif test x$gcc_cv_ld != x; then
30937 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30938 gcc_cv_ld_sysroot=yes
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30943 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30944 if test x"$gcc_cv_ld_sysroot" = xyes; then
30946 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30950 case $target in
30951 *-*-solaris2*)
30952 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30954 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30955 if ${gcc_cv_solaris_crts+:} false; then :
30956 $as_echo_n "(cached) " >&6
30957 else
30958 gcc_cv_solaris_crts=no
30959 if test x$host != x$target; then
30960 if test "x$with_sysroot" = xyes; then
30961 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30962 else
30963 target_sysroot="${with_sysroot}"
30966 target_libdir="$target_sysroot/usr/lib"
30967 # At the time they were added, gcrt1.o became a symlink for backwards
30968 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30969 case $target in
30970 i?86-*-solaris2* | x86_64-*-solaris2*)
30971 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30973 sparc*-*-solaris2*)
30974 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30976 esac
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30979 $as_echo "$gcc_cv_solaris_crts" >&6; }
30981 esac
30982 if test x$gcc_cv_solaris_crts = xyes; then
30984 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30988 # Check whether --enable-libssp was given.
30989 if test "${enable_libssp+set}" = set; then :
30990 enableval=$enable_libssp; case "${enableval}" in
30991 yes|no)
30994 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30996 esac
31000 # Test for stack protector support in target C library.
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31002 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31003 if ${gcc_cv_libc_provides_ssp+:} false; then :
31004 $as_echo_n "(cached) " >&6
31005 else
31006 gcc_cv_libc_provides_ssp=no
31007 if test "x$enable_libssp" = "xno"; then
31008 gcc_cv_libc_provides_ssp=yes
31009 elif test "x$enable_libssp" = "xyes"; then
31010 gcc_cv_libc_provides_ssp=no
31011 else
31012 case "$target" in
31013 *-*-musl*)
31014 # All versions of musl provide stack protector
31015 gcc_cv_libc_provides_ssp=yes;;
31016 *-*-linux* | *-*-kfreebsd*-gnu)
31017 # glibc 2.4 and later provides __stack_chk_fail and
31018 # either __stack_chk_guard, or TLS access to stack guard canary.
31020 if test $glibc_version_major -gt 2 \
31021 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31022 gcc_cv_libc_provides_ssp=yes
31023 else
31025 if test -f $target_header_dir/features.h \
31026 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31027 $target_header_dir/features.h > /dev/null; then
31028 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31029 $target_header_dir/features.h > /dev/null && \
31030 test -f $target_header_dir/bits/uClibc_config.h && \
31031 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31032 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31033 gcc_cv_libc_provides_ssp=yes
31035 # all versions of Bionic support stack protector
31036 elif test -f $target_header_dir/sys/cdefs.h \
31037 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31038 $target_header_dir/sys/cdefs.h > /dev/null; then
31039 gcc_cv_libc_provides_ssp=yes
31043 *-*-gnu*)
31044 # Avoid complicated tests (see
31045 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31046 # simply assert that glibc does provide this, which is true for all
31047 # realistically usable GNU/Hurd configurations.
31048 # All supported versions of musl provide it as well
31049 gcc_cv_libc_provides_ssp=yes;;
31050 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31051 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31052 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31053 gcc_cv_libc_provides_ssp=yes
31054 else
31055 echo "no __stack_chk_fail on this target"
31059 *) gcc_cv_libc_provides_ssp=no ;;
31060 esac
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31064 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31066 if test x$gcc_cv_libc_provides_ssp = xyes; then
31068 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31072 # Check whether --enable-default-ssp was given.
31073 # Check whether --enable-default-ssp was given.
31074 if test "${enable_default_ssp+set}" = set; then :
31075 enableval=$enable_default_ssp;
31076 if test x$gcc_cv_libc_provides_ssp = xyes; then
31077 case "$target" in
31078 ia64*-*-*) enable_default_ssp=no ;;
31079 *) enable_default_ssp=$enableval ;;
31080 esac
31081 else
31082 enable_default_ssp=no
31084 else
31085 enable_default_ssp=no
31088 if test x$enable_default_ssp = xyes ; then
31090 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31095 # Test for <sys/sdt.h> on the target.
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31098 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31099 have_sys_sdt_h=no
31100 if test -f $target_header_dir/sys/sdt.h; then
31101 have_sys_sdt_h=yes
31103 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31107 $as_echo "$have_sys_sdt_h" >&6; }
31109 # Check if TFmode long double should be used by default or not.
31110 # Some glibc targets used DFmode long double, but with glibc 2.4
31111 # and later they can use TFmode.
31112 case "$target" in
31113 powerpc*-*-linux* | \
31114 sparc*-*-linux* | \
31115 s390*-*-linux* | \
31116 alpha*-*-linux*)
31118 # Check whether --with-long-double-128 was given.
31119 if test "${with_long_double_128+set}" = set; then :
31120 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31121 else
31123 case "$target" in
31124 s390*-*-linux-musl*)
31125 gcc_cv_target_ldbl128=yes
31127 powerpc*-*-linux-musl*)
31128 gcc_cv_target_ldbl128=no
31132 if test $glibc_version_major -gt 2 \
31133 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31134 gcc_cv_target_ldbl128=yes
31135 else
31137 gcc_cv_target_ldbl128=no
31138 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31139 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31140 && gcc_cv_target_ldbl128=yes
31145 esac
31150 esac
31151 if test x$gcc_cv_target_ldbl128 = xyes; then
31153 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31157 # Check if TFmode long double target should use the IBM extended double or IEEE
31158 # 128-bit floating point formats if long doubles are 128-bits long. The long
31159 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31160 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31161 # libgcc.
31163 # Check whether --with-long-double-format was given.
31164 if test "${with_long_double_format+set}" = set; then :
31165 withval=$with_long_double_format;
31166 case "$target:$with_long_double_format" in
31167 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31170 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31171 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31172 case "$with_cpu" in
31173 power7 | power8 | power9 | power1*)
31177 as_fn_error $? "Configuration option --with-long-double-format is only \
31178 supported if the default cpu is power7 or newer" "$LINENO" 5
31179 with_long_double_format=""
31181 esac
31183 powerpc64*-*-linux*:*)
31184 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31185 with_long_double_format=""
31188 as_fn_error $? "Configure option --with-long-double-format is only supported \
31189 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31190 with_long_double_format=""
31192 esac
31196 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31197 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31198 gcc_cv_libc_provides_hwcap_in_tcb=no
31199 case "$target" in
31200 powerpc*-*-linux*)
31202 if test $glibc_version_major -gt 2 \
31203 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31204 gcc_cv_libc_provides_hwcap_in_tcb=yes
31207 esac
31208 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31210 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31214 # Check if the target LIBC handles PT_GNU_STACK.
31215 gcc_cv_libc_gnustack=unknown
31216 case "$target" in
31217 mips*-*-linux-musl*)
31218 gcc_cv_libc_gnustack=yes
31220 mips*-*-linux*)
31222 if test $glibc_version_major -gt 2 \
31223 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31224 gcc_cv_libc_gnustack=yes
31227 esac
31228 if test x$gcc_cv_libc_gnustack = xyes; then
31230 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31235 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31236 gcc_cv_target_dl_iterate_phdr=unknown
31237 case "$target" in
31238 *-*-solaris2*)
31239 # <link.h> needs both a dl_iterate_phdr declaration and support for
31240 # compilation with largefile support.
31241 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31242 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31243 gcc_cv_target_dl_iterate_phdr=yes
31244 else
31245 gcc_cv_target_dl_iterate_phdr=no
31248 *-*-dragonfly* | *-*-freebsd*)
31249 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31250 gcc_cv_target_dl_iterate_phdr=yes
31251 else
31252 gcc_cv_target_dl_iterate_phdr=no
31255 *-linux-musl*)
31256 gcc_cv_target_dl_iterate_phdr=yes
31258 esac
31260 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31262 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31266 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31268 # We no longer support different GC mechanisms. Emit an error if
31269 # the user configures with --with-gc.
31271 # Check whether --with-gc was given.
31272 if test "${with_gc+set}" = set; then :
31273 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31277 # Libraries to use on the host. This will normally be set by the top
31278 # level Makefile. Here we simply capture the value for our Makefile.
31279 if test -z "${HOST_LIBS+set}"; then
31280 HOST_LIBS=
31284 # Use the system's zlib library.
31286 # Use the system's zlib library.
31287 zlibdir="-L\$(top_builddir)/../zlib"
31288 zlibinc="-I\$(top_srcdir)/../zlib"
31290 # Check whether --with-system-zlib was given.
31291 if test "${with_system_zlib+set}" = set; then :
31292 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31293 zlibdir=
31294 zlibinc=
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31306 # Check whether --enable-maintainer-mode was given.
31307 if test "${enable_maintainer_mode+set}" = set; then :
31308 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31309 else
31310 maintainer_mode=no
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31315 $as_echo "$maintainer_mode" >&6; }
31317 if test "$maintainer_mode" = "yes"; then
31318 MAINT=''
31319 else
31320 MAINT='#'
31323 if test -z "$CTAGS"; then
31324 CTAGS=ctags
31327 if test -z "$ETAGS"; then
31328 ETAGS=etags
31331 if test -z "$CSCOPE"; then
31332 CSCOPE=cscope
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31338 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31339 # Check whether --enable-link-mutex was given.
31340 if test "${enable_link_mutex+set}" = set; then :
31341 enableval=$enable_link_mutex; do_link_mutex=$enableval
31342 else
31343 do_link_mutex=no
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31347 $as_echo "$do_link_mutex" >&6; }
31349 if test "$do_link_mutex" = "yes"; then
31350 DO_LINK_MUTEX=true
31351 else
31352 DO_LINK_MUTEX=false
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31358 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31359 # Check whether --enable-link-serialization was given.
31360 if test "${enable_link_serialization+set}" = set; then :
31361 enableval=$enable_link_serialization; do_link_serialization=$enableval
31362 else
31363 do_link_serialization=no
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31367 $as_echo "$do_link_serialization" >&6; }
31369 case "$do_link_serialization" in
31370 yes)
31371 DO_LINK_SERIALIZATION=1;;
31372 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31373 DO_LINK_SERIALIZATION=$do_link_serialization;;
31375 DO_LINK_SERIALIZATION=;;
31377 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31378 esac
31381 # --------------
31382 # Language hooks
31383 # --------------
31385 # Make empty files to contain the specs and options for each language.
31386 # Then add #include lines to for a compiler that has specs and/or options.
31388 subdirs=
31389 lang_opt_files=
31390 lang_specs_files=
31391 lang_tree_files=
31392 # These (without "all_") are set in each config-lang.in.
31393 # `language' must be a single word so is spelled singularly.
31394 all_languages=
31395 all_compilers=
31396 all_outputs='Makefile'
31397 # List of language configure and makefile fragments.
31398 all_lang_configurefrags=
31399 all_lang_makefrags=
31400 # Additional files for gengtype
31401 all_gtfiles="$target_gtfiles"
31403 # These are the languages that are set in --enable-languages,
31404 # and are available in the GCC tree.
31405 all_selected_languages=
31407 # Add the language fragments.
31408 # Languages are added via two mechanisms. Some information must be
31409 # recorded in makefile variables, these are defined in config-lang.in.
31410 # We accumulate them and plug them into the main Makefile.
31411 # The other mechanism is a set of hooks for each of the main targets
31412 # like `clean', `install', etc.
31414 language_hooks="Make-hooks"
31416 for lang in ${srcdir}/*/config-lang.in
31418 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31420 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31421 if test "x$lang_alias" = x
31422 then
31423 echo "$lang doesn't set \$language." 1>&2
31424 exit 1
31426 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31427 subdirs="$subdirs $subdir"
31429 # $gcc_subdir is where the gcc integration files are to be found
31430 # for a language, both for internal compiler purposes (compiler
31431 # sources implementing front-end to GCC tree converters), and for
31432 # build infrastructure purposes (Make-lang.in, etc.)
31434 # This will be <subdir> (relative to $srcdir) if a line like
31435 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31436 # is found in <langdir>/config-lang.in, and will remain <langdir>
31437 # otherwise.
31439 # Except for the language alias (fetched above), the regular
31440 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31441 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31442 # only this and the language alias.
31444 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31445 if [ "$gcc_subdir" = "" ]; then
31446 gcc_subdir="$subdir"
31449 case ",$enable_languages," in
31450 *,$lang_alias,*)
31451 all_selected_languages="$all_selected_languages $lang_alias"
31452 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31453 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31456 esac
31458 language=
31459 boot_language=
31460 compilers=
31461 outputs=
31462 gtfiles=
31463 subdir_requires=
31464 . ${srcdir}/$gcc_subdir/config-lang.in
31465 if test "x$language" = x
31466 then
31467 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31468 exit 1
31471 ok=:
31472 case ",$enable_languages," in
31473 *,$lang_alias,*) ;;
31475 for i in $subdir_requires; do
31476 test -f "${srcdir}/$i/config-lang.in" && continue
31477 ok=false
31478 break
31479 done
31481 esac
31482 $ok || continue
31484 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31485 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31486 # Put c/Make-lang.in fragment first to match serialization languages order.
31487 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31488 else
31489 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31491 if test -f $srcdir/$gcc_subdir/lang.opt; then
31492 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31493 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31495 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31496 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31498 all_languages="$all_languages $language"
31499 all_compilers="$all_compilers $compilers"
31500 all_outputs="$all_outputs $outputs"
31501 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31502 case ",$enable_languages," in
31503 *,lto,*)
31505 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31507 enable_lto=yes
31510 *) ;;
31511 esac
31512 done
31514 check_languages=
31515 for language in $all_selected_languages
31517 check_languages="$check_languages check-$language"
31518 done
31520 selftest_languages=
31521 for language in $all_selected_languages
31523 selftest_languages="$selftest_languages selftest-$language"
31524 done
31526 # We link each language in with a set of hooks, reached indirectly via
31527 # lang.${target}. Only do so for selected languages.
31529 rm -f Make-hooks
31530 touch Make-hooks
31531 target_list="all.cross start.encap rest.encap tags \
31532 install-common install-man install-info install-dvi install-pdf \
31533 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31534 mostlyclean clean distclean maintainer-clean install-plugin"
31536 for t in $target_list
31539 for lang in $all_selected_languages
31541 x="$x $lang.$t"
31542 done
31543 echo "lang.$t: $x" >> Make-hooks
31544 done
31546 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31547 echo "SERIAL_LIST =" >> Make-hooks
31548 echo else >> Make-hooks
31549 lang_cnt=0
31550 lang_list=
31551 prev=c
31552 serialization_languages=c
31553 for lang in $all_selected_languages
31555 test $lang = c && continue
31556 if test $lang = lto; then
31557 serialization_languages="$serialization_languages lto1 lto2"
31558 else
31559 serialization_languages="$serialization_languages $lang"
31561 done
31562 for lang in $serialization_languages
31564 test $lang = c && continue
31565 lang_cnt=`expr $lang_cnt + 1`
31566 lang_list=" $prev$lang_list"
31567 prev=${lang}
31568 done
31569 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31570 echo endif >> Make-hooks
31571 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31572 echo "INDEX.c = 0" >> Make-hooks
31573 lang_idx=1
31574 for lang in $serialization_languages
31576 test $lang = c && continue
31577 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31578 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31579 lang_cnt=`expr $lang_cnt - 1`
31580 lang_idx=`expr $lang_idx + 1`
31581 done
31583 # --------
31584 # Option include files
31585 # --------
31587 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31588 option_includes="option-includes.mk"
31591 # --------
31592 # UNSORTED
31593 # --------
31595 # Create .gdbinit.
31597 echo "dir ." > .gdbinit
31598 echo "dir ${srcdir}" >> .gdbinit
31599 if test x$gdb_needs_out_file_path = xyes
31600 then
31601 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31603 if test "x$subdirs" != x; then
31604 for s in $subdirs
31606 echo "dir ${srcdir}/$s" >> .gdbinit
31607 done
31609 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31610 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31612 # Put a breakpoint on __asan_report_error to help with debugging buffer
31613 # overflow.
31614 case "$CFLAGS" in
31615 *-fsanitize=address*)
31616 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31618 esac
31620 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31624 # Find a directory in which to install a shared libgcc.
31626 # Check whether --enable-version-specific-runtime-libs was given.
31627 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31628 enableval=$enable_version_specific_runtime_libs;
31632 # Substitute configuration variables
31702 # Echo link setup.
31703 if test x${build} = x${host} ; then
31704 if test x${host} = x${target} ; then
31705 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31706 else
31707 echo "Links are now set up to build a cross-compiler" 1>&2
31708 echo " from ${host} to ${target}." 1>&2
31710 else
31711 if test x${host} = x${target} ; then
31712 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31713 echo " for ${target}." 1>&2
31714 else
31715 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31716 echo " from ${host} to ${target}." 1>&2
31725 if test "x${ISLLIBS}" != "x" ; then
31727 $as_echo "#define HAVE_isl 1" >>confdefs.h
31731 # Check for plugin support
31732 # Check whether --enable-plugin was given.
31733 if test "${enable_plugin+set}" = set; then :
31734 enableval=$enable_plugin; enable_plugin=$enableval
31735 else
31736 enable_plugin=yes; default_plugin=yes
31740 pluginlibs=
31741 plugin_check=yes
31743 case "${host}" in
31744 *-*-mingw*)
31745 # Since plugin support under MinGW is not as straightforward as on
31746 # other platforms (e.g., we have to link import library, etc), we
31747 # only enable it if explicitly requested.
31748 if test x"$default_plugin" = x"yes"; then
31749 enable_plugin=no
31750 elif test x"$enable_plugin" = x"yes"; then
31751 # Use make's target variable to derive import library name.
31752 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31753 plugin_check=no
31756 *-*-darwin*)
31757 if test x$build = x$host; then
31758 export_sym_check="nm${exeext} -g"
31759 elif test x$host = x$target; then
31760 export_sym_check="$gcc_cv_nm -g"
31761 else
31762 export_sym_check=
31766 if test x$build = x$host; then
31767 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31768 elif test x$host = x$target; then
31769 export_sym_check="$gcc_cv_objdump -T"
31770 else
31771 export_sym_check=
31774 esac
31776 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31779 $as_echo_n "checking for exported symbols... " >&6; }
31780 if test "x$export_sym_check" != x; then
31781 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31782 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31783 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31784 : # No need to use a flag
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31786 $as_echo "yes" >&6; }
31787 else
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31789 $as_echo "yes" >&6; }
31790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31791 $as_echo_n "checking for -rdynamic... " >&6; }
31792 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31793 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31794 plugin_rdynamic=yes
31795 pluginlibs="-rdynamic"
31796 else
31797 plugin_rdynamic=no
31798 enable_plugin=no
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31801 $as_echo "$plugin_rdynamic" >&6; }
31803 else
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31805 $as_echo "unable to check" >&6; }
31808 # Check -ldl
31809 saved_LIBS="$LIBS"
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31811 $as_echo_n "checking for library containing dlopen... " >&6; }
31812 if ${ac_cv_search_dlopen+:} false; then :
31813 $as_echo_n "(cached) " >&6
31814 else
31815 ac_func_search_save_LIBS=$LIBS
31816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817 /* end confdefs.h. */
31819 /* Override any GCC internal prototype to avoid an error.
31820 Use char because int might match the return type of a GCC
31821 builtin and then its argument prototype would still apply. */
31822 #ifdef __cplusplus
31823 extern "C"
31824 #endif
31825 char dlopen ();
31827 main ()
31829 return dlopen ();
31831 return 0;
31833 _ACEOF
31834 for ac_lib in '' dl; do
31835 if test -z "$ac_lib"; then
31836 ac_res="none required"
31837 else
31838 ac_res=-l$ac_lib
31839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31841 if ac_fn_cxx_try_link "$LINENO"; then :
31842 ac_cv_search_dlopen=$ac_res
31844 rm -f core conftest.err conftest.$ac_objext \
31845 conftest$ac_exeext
31846 if ${ac_cv_search_dlopen+:} false; then :
31847 break
31849 done
31850 if ${ac_cv_search_dlopen+:} false; then :
31852 else
31853 ac_cv_search_dlopen=no
31855 rm conftest.$ac_ext
31856 LIBS=$ac_func_search_save_LIBS
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31859 $as_echo "$ac_cv_search_dlopen" >&6; }
31860 ac_res=$ac_cv_search_dlopen
31861 if test "$ac_res" != no; then :
31862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31866 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31867 pluginlibs="$pluginlibs -ldl"
31869 LIBS="$saved_LIBS"
31871 # Check that we can build shared objects with -fPIC -shared
31872 saved_LDFLAGS="$LDFLAGS"
31873 saved_CFLAGS="$CFLAGS"
31874 saved_CXXFLAGS="$CXXFLAGS"
31875 case "${host}" in
31876 *-*-darwin*)
31877 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31878 CFLAGS="$CFLAGS -fPIC"
31879 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31880 CXXFLAGS="$CXXFLAGS -fPIC"
31881 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31884 CFLAGS="$CFLAGS -fPIC"
31885 CXXFLAGS="$CXXFLAGS -fPIC"
31886 LDFLAGS="$LDFLAGS -fPIC -shared"
31888 esac
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31890 $as_echo_n "checking for -fPIC -shared... " >&6; }
31891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31892 /* end confdefs.h. */
31893 extern int X;
31895 main ()
31897 return X == 0;
31899 return 0;
31901 _ACEOF
31902 if ac_fn_cxx_try_link "$LINENO"; then :
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31904 $as_echo "yes" >&6; }; have_pic_shared=yes
31905 else
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31907 $as_echo "no" >&6; }; have_pic_shared=no
31909 rm -f core conftest.err conftest.$ac_objext \
31910 conftest$ac_exeext conftest.$ac_ext
31911 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31912 pluginlibs=
31913 enable_plugin=no
31915 LDFLAGS="$saved_LDFLAGS"
31916 CFLAGS="$saved_CFLAGS"
31917 CXXFLAGS="$saved_CXXFLAGS"
31919 # If plugin support had been requested but not available, fail.
31920 if test x"$enable_plugin" = x"no" ; then
31921 if test x"$default_plugin" != x"yes"; then
31922 as_fn_error $? "
31923 Building GCC with plugin support requires a host that supports
31924 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31931 if test x"$enable_plugin" = x"yes"; then
31933 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31938 # Enable --enable-host-shared
31939 # Check whether --enable-host-shared was given.
31940 if test "${enable_host_shared+set}" = set; then :
31941 enableval=$enable_host_shared; PICFLAG=-fPIC
31942 else
31943 PICFLAG=
31950 # Check whether --enable-libquadmath-support was given.
31951 if test "${enable_libquadmath_support+set}" = set; then :
31952 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31953 else
31954 ENABLE_LIBQUADMATH_SUPPORT=yes
31957 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31959 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31964 # Specify what hash style to use by default.
31966 # Check whether --with-linker-hash-style was given.
31967 if test "${with_linker_hash_style+set}" = set; then :
31968 withval=$with_linker_hash_style; case x"$withval" in
31969 xsysv)
31970 LINKER_HASH_STYLE=sysv
31972 xgnu)
31973 LINKER_HASH_STYLE=gnu
31975 xboth)
31976 LINKER_HASH_STYLE=both
31979 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31981 esac
31982 else
31983 LINKER_HASH_STYLE=''
31986 if test x"${LINKER_HASH_STYLE}" != x; then
31988 cat >>confdefs.h <<_ACEOF
31989 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31990 _ACEOF
31994 # Specify what should be the default of -fdiagnostics-color option.
31996 # Check whether --with-diagnostics-color was given.
31997 if test "${with_diagnostics_color+set}" = set; then :
31998 withval=$with_diagnostics_color; case x"$withval" in
31999 xnever)
32000 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32002 xauto)
32003 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32005 xauto-if-env)
32006 DIAGNOSTICS_COLOR_DEFAULT=-1
32008 xalways)
32009 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32012 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32014 esac
32015 else
32016 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32020 cat >>confdefs.h <<_ACEOF
32021 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32022 _ACEOF
32025 # Specify what should be the default of -fdiagnostics-urls option.
32027 # Check whether --with-diagnostics-urls was given.
32028 if test "${with_diagnostics_urls+set}" = set; then :
32029 withval=$with_diagnostics_urls; case x"$withval" in
32030 xnever)
32031 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32033 xauto)
32034 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32036 xauto-if-env)
32037 DIAGNOSTICS_URLS_DEFAULT=-1
32039 xalways)
32040 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32043 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32045 esac
32046 else
32047 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32051 cat >>confdefs.h <<_ACEOF
32052 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32053 _ACEOF
32056 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32057 # of jit/jit-playback.cc.
32058 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32059 echo "gcc_driver_version: ${gcc_driver_version}"
32060 cat > gcc-driver-name.h <<EOF
32061 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32064 # Check whether --enable-default-pie was given.
32065 # Check whether --enable-default-pie was given.
32066 if test "${enable_default_pie+set}" = set; then :
32067 enableval=$enable_default_pie; enable_default_pie=$enableval
32068 else
32069 enable_default_pie=no
32072 if test x$enable_default_pie = xyes ; then
32074 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32079 # Check if -fno-PIE works.
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32081 $as_echo_n "checking for -fno-PIE option... " >&6; }
32082 if ${gcc_cv_c_no_fpie+:} false; then :
32083 $as_echo_n "(cached) " >&6
32084 else
32085 saved_CXXFLAGS="$CXXFLAGS"
32086 CXXFLAGS="$CXXFLAGS -fno-PIE"
32087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32088 /* end confdefs.h. */
32089 int main(void) {return 0;}
32090 _ACEOF
32091 if ac_fn_cxx_try_compile "$LINENO"; then :
32092 gcc_cv_c_no_fpie=yes
32093 else
32094 gcc_cv_c_no_fpie=no
32096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32097 CXXFLAGS="$saved_CXXFLAGS"
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32100 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32101 if test "$gcc_cv_c_no_fpie" = "yes"; then
32102 NO_PIE_CFLAGS="-fno-PIE"
32106 # Check if -no-pie works.
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32108 $as_echo_n "checking for -no-pie option... " >&6; }
32109 if ${gcc_cv_no_pie+:} false; then :
32110 $as_echo_n "(cached) " >&6
32111 else
32112 saved_LDFLAGS="$LDFLAGS"
32113 LDFLAGS="$LDFLAGS -no-pie"
32114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32115 /* end confdefs.h. */
32116 int main(void) {return 0;}
32117 _ACEOF
32118 if ac_fn_cxx_try_link "$LINENO"; then :
32119 gcc_cv_no_pie=yes
32120 else
32121 gcc_cv_no_pie=no
32123 rm -f core conftest.err conftest.$ac_objext \
32124 conftest$ac_exeext conftest.$ac_ext
32125 LDFLAGS="$saved_LDFLAGS"
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32128 $as_echo "$gcc_cv_no_pie" >&6; }
32129 if test "$gcc_cv_no_pie" = "yes"; then
32130 NO_PIE_FLAG="-no-pie"
32134 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32135 # Check whether --enable-cet was given.
32136 if test "${enable_cet+set}" = set; then :
32137 enableval=$enable_cet;
32138 case "$enableval" in
32139 yes|no|auto) ;;
32140 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32141 esac
32143 else
32144 enable_cet=auto
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32149 $as_echo_n "checking for CET support... " >&6; }
32151 case "$host" in
32152 i[34567]86-*-linux* | x86_64-*-linux*)
32153 may_have_cet=yes
32154 cet_save_CFLAGS="$CFLAGS"
32155 CFLAGS="$CFLAGS -fcf-protection"
32156 case "$enable_cet" in
32157 auto)
32158 # Check if target supports multi-byte NOPs
32159 # and if compiler and assembler support CET.
32160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32161 /* end confdefs.h. */
32164 main ()
32167 #if !defined(__SSE2__)
32168 #error target does not support multi-byte NOPs
32169 #else
32170 asm ("setssbsy");
32171 #endif
32174 return 0;
32176 _ACEOF
32177 if ac_fn_cxx_try_compile "$LINENO"; then :
32178 enable_cet=yes
32179 else
32180 enable_cet=no
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32184 yes)
32185 # Check if compiler and assembler support CET.
32186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32187 /* end confdefs.h. */
32190 main ()
32192 asm ("setssbsy");
32194 return 0;
32196 _ACEOF
32197 if ac_fn_cxx_try_compile "$LINENO"; then :
32198 support_cet=yes
32199 else
32200 support_cet=no
32202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 if test $support_cet = "no"; then
32204 if test x$enable_bootstrap != xno \
32205 && test -z "${with_build_subdir}" \
32206 && (test ! -f ../stage_current \
32207 || test `cat ../stage_current` != "stage1"); then
32208 # Require CET support only for the final GCC build.
32209 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32210 else
32211 # Don't enable CET without CET support for non-bootstrap
32212 # build, in stage1 nor for build support.
32213 enable_cet=no
32217 esac
32218 CFLAGS="$cet_save_CFLAGS"
32221 may_have_cet=no
32222 enable_cet=no
32224 esac
32226 cet_save_CFLAGS="$CFLAGS"
32227 CFLAGS="$CFLAGS -fcf-protection=none"
32228 cet_save_LDFLAGS="$LDFLAGS"
32229 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32230 if test x$may_have_cet = xyes; then
32231 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32233 /* end confdefs.h. */
32236 main ()
32238 return 0;
32240 return 0;
32242 _ACEOF
32243 if ac_fn_cxx_try_link "$LINENO"; then :
32244 may_have_cet=yes
32245 else
32246 may_have_cet=no
32248 rm -f core conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
32252 if test x$may_have_cet = xyes; then
32253 if test x$cross_compiling = xno; then
32254 if test "$cross_compiling" = yes; then :
32255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32257 as_fn_error $? "cannot run test program while cross compiling
32258 See \`config.log' for more details" "$LINENO" 5; }
32259 else
32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h. */
32264 main ()
32266 asm ("endbr32");
32267 return 0;
32270 _ACEOF
32271 if ac_fn_cxx_try_run "$LINENO"; then :
32272 have_multi_byte_nop=yes
32273 else
32274 have_multi_byte_nop=no
32276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32277 conftest.$ac_objext conftest.beam conftest.$ac_ext
32280 have_cet=no
32281 if test x$have_multi_byte_nop = xyes; then
32282 if test "$cross_compiling" = yes; then :
32283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32285 as_fn_error $? "cannot run test program while cross compiling
32286 See \`config.log' for more details" "$LINENO" 5; }
32287 else
32288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32289 /* end confdefs.h. */
32291 static void
32292 foo (void)
32296 static void
32297 __attribute__ ((noinline, noclone))
32298 xxx (void (*f) (void))
32300 f ();
32303 static void
32304 __attribute__ ((noinline, noclone))
32305 bar (void)
32307 xxx (foo);
32311 main ()
32313 bar ();
32314 return 0;
32317 _ACEOF
32318 if ac_fn_cxx_try_run "$LINENO"; then :
32319 have_cet=no
32320 else
32321 have_cet=yes
32323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32324 conftest.$ac_objext conftest.beam conftest.$ac_ext
32328 if test x$enable_cet = xno -a x$have_cet = xyes; then
32329 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32332 else
32333 # Enable CET in cross compiler if possible so that it will run on both
32334 # CET and non-CET hosts.
32335 have_cet=yes
32337 if test x$enable_cet = xyes; then
32338 CET_HOST_FLAGS="-fcf-protection"
32339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32340 $as_echo "yes" >&6; }
32341 else
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32343 $as_echo "no" >&6; }
32345 CFLAGS="$cet_save_CFLAGS"
32346 LDFLAGS="$cet_save_LDFLAGS"
32348 case x$enable_languages in
32349 *jit*)
32352 CET_HOST_FLAGS=
32354 esac
32357 # Check linker supports '-z bndplt'
32358 ld_bndplt_support=no
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32360 $as_echo_n "checking linker -z bndplt option... " >&6; }
32361 if test x"$ld_is_gold" = xno; then
32362 if test $in_tree_ld = yes ; then
32363 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
32364 ld_bndplt_support=yes
32366 elif test x$gcc_cv_ld != x; then
32367 # Check if linker supports -a bndplt option
32368 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32369 ld_bndplt_support=yes
32373 if test x"$ld_bndplt_support" = xyes; then
32375 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32379 $as_echo "$ld_bndplt_support" >&6; }
32381 # Check linker supports '--push-state'/'--pop-state'
32382 ld_pushpopstate_support=no
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32384 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32385 if test x"$ld_is_gold" = xno; then
32386 if test $in_tree_ld = yes ; then
32387 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
32388 ld_pushpopstate_support=yes
32390 elif test x$gcc_cv_ld != x; then
32391 # Check if linker supports --push-state/--pop-state options
32392 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32393 ld_pushpopstate_support=yes
32397 if test x"$ld_pushpopstate_support" = xyes; then
32399 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32403 $as_echo "$ld_pushpopstate_support" >&6; }
32405 # On s390, float_t has historically been statically defined as double for no
32406 # good reason. To comply with the C standard in the light of this definition,
32407 # gcc has evaluated float expressions in double precision when in
32408 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32409 # a smooth transition towards the new model used by most architectures, where
32410 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32411 # float_t from that, this behavior can be configured with
32412 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32413 # the old model. When omitted, native builds and cross compiles that have target
32414 # libc headers will detect whether libc clamps float_t to double and in that
32415 # case maintain the old model. Otherwise, they will default to the new model.
32416 # Check whether --enable-s390-excess-float-precision was given.
32417 if test "${enable_s390_excess_float_precision+set}" = set; then :
32418 enableval=$enable_s390_excess_float_precision;
32419 else
32420 enable_s390_excess_float_precision=auto
32424 case $target in
32425 s390*-linux*)
32426 if test x"$enable_s390_excess_float_precision" = xauto; then
32427 # Can we autodetect the behavior of the target libc?
32428 if test "$target" = "$host" -a "$host" = "$build"; then
32429 enable_s390_excess_float_precision=autodetect
32430 elif test "x$with_headers" != xno; then
32431 # cross build. are target headers available?
32432 # carefully coerce the build-system compiler to use target headers
32433 saved_CXXFLAGS="$CXXFLAGS"
32434 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32435 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32436 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32438 /* end confdefs.h. */
32440 #include <math.h>
32442 _ACEOF
32443 if ac_fn_cxx_try_compile "$LINENO"; then :
32444 enable_s390_excess_float_precision=autodetect
32446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32447 CXXFLAGS="$saved_CXXFLAGS"
32450 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32451 saved_CXXFLAGS="$CXXFLAGS"
32452 if ! test "$target" = "$host" -a "$host" = "$build"; then
32453 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32454 unset CROSS_TEST_CXXFLAGS
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32457 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32458 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32459 $as_echo_n "(cached) " >&6
32460 else
32462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32463 /* end confdefs.h. */
32465 #define __FLT_EVAL_METHOD__ 0
32466 #include <math.h>
32467 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32469 _ACEOF
32470 if ac_fn_cxx_try_compile "$LINENO"; then :
32471 gcc_cv_float_t_clamped_to_double=yes
32472 else
32473 gcc_cv_float_t_clamped_to_double=no
32475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32478 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32479 CXXFLAGS="$saved_CXXFLAGS"
32480 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32481 else
32482 # no way to detect behavior of target libc, default to new model
32483 enable_s390_excess_float_precision=no
32488 if test x"$enable_s390_excess_float_precision" = xyes; then
32490 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32494 esac
32496 # Configure the subdirectories
32497 # AC_CONFIG_SUBDIRS($subdirs)
32499 # Create the Makefile
32500 # and configure language subdirectories
32501 ac_config_files="$ac_config_files $all_outputs"
32504 ac_config_commands="$ac_config_commands default"
32506 cat >confcache <<\_ACEOF
32507 # This file is a shell script that caches the results of configure
32508 # tests run on this system so they can be shared between configure
32509 # scripts and configure runs, see configure's option --config-cache.
32510 # It is not useful on other systems. If it contains results you don't
32511 # want to keep, you may remove or edit it.
32513 # config.status only pays attention to the cache file if you give it
32514 # the --recheck option to rerun configure.
32516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32518 # following values.
32520 _ACEOF
32522 # The following way of writing the cache mishandles newlines in values,
32523 # but we know of no workaround that is simple, portable, and efficient.
32524 # So, we kill variables containing newlines.
32525 # Ultrix sh set writes to stderr and can't be redirected directly,
32526 # and sets the high bit in the cache file unless we assign to the vars.
32528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32529 eval ac_val=\$$ac_var
32530 case $ac_val in #(
32531 *${as_nl}*)
32532 case $ac_var in #(
32533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32535 esac
32536 case $ac_var in #(
32537 _ | IFS | as_nl) ;; #(
32538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32539 *) { eval $ac_var=; unset $ac_var;} ;;
32540 esac ;;
32541 esac
32542 done
32544 (set) 2>&1 |
32545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32546 *${as_nl}ac_space=\ *)
32547 # `set' does not quote correctly, so add quotes: double-quote
32548 # substitution turns \\\\ into \\, and sed turns \\ into \.
32549 sed -n \
32550 "s/'/'\\\\''/g;
32551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32552 ;; #(
32554 # `set' quotes correctly as required by POSIX, so do not add quotes.
32555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32557 esac |
32558 sort
32560 sed '
32561 /^ac_cv_env_/b end
32562 t clear
32563 :clear
32564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32565 t end
32566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32567 :end' >>confcache
32568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32569 if test -w "$cache_file"; then
32570 if test "x$cache_file" != "x/dev/null"; then
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32572 $as_echo "$as_me: updating cache $cache_file" >&6;}
32573 if test ! -f "$cache_file" || test -h "$cache_file"; then
32574 cat confcache >"$cache_file"
32575 else
32576 case $cache_file in #(
32577 */* | ?:*)
32578 mv -f confcache "$cache_file"$$ &&
32579 mv -f "$cache_file"$$ "$cache_file" ;; #(
32581 mv -f confcache "$cache_file" ;;
32582 esac
32585 else
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32590 rm -f confcache
32592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32593 # Let make expand exec_prefix.
32594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32596 DEFS=-DHAVE_CONFIG_H
32598 ac_libobjs=
32599 ac_ltlibobjs=
32601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32602 # 1. Remove the extension, and $U if already installed.
32603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32606 # will be set to the directory where LIBOBJS objects are built.
32607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32609 done
32610 LIBOBJS=$ac_libobjs
32612 LTLIBOBJS=$ac_ltlibobjs
32617 : "${CONFIG_STATUS=./config.status}"
32618 ac_write_fail=0
32619 ac_clean_files_save=$ac_clean_files
32620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32623 as_write_fail=0
32624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32625 #! $SHELL
32626 # Generated by $as_me.
32627 # Run this file to recreate the current configuration.
32628 # Compiler output produced by configure, useful for debugging
32629 # configure, is in config.log if it exists.
32631 debug=false
32632 ac_cs_recheck=false
32633 ac_cs_silent=false
32635 SHELL=\${CONFIG_SHELL-$SHELL}
32636 export SHELL
32637 _ASEOF
32638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32639 ## -------------------- ##
32640 ## M4sh Initialization. ##
32641 ## -------------------- ##
32643 # Be more Bourne compatible
32644 DUALCASE=1; export DUALCASE # for MKS sh
32645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32646 emulate sh
32647 NULLCMD=:
32648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32649 # is contrary to our usage. Disable this feature.
32650 alias -g '${1+"$@"}'='"$@"'
32651 setopt NO_GLOB_SUBST
32652 else
32653 case `(set -o) 2>/dev/null` in #(
32654 *posix*) :
32655 set -o posix ;; #(
32656 *) :
32658 esac
32662 as_nl='
32664 export as_nl
32665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32669 # Prefer a ksh shell builtin over an external printf program on Solaris,
32670 # but without wasting forks for bash or zsh.
32671 if test -z "$BASH_VERSION$ZSH_VERSION" \
32672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32673 as_echo='print -r --'
32674 as_echo_n='print -rn --'
32675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32676 as_echo='printf %s\n'
32677 as_echo_n='printf %s'
32678 else
32679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32681 as_echo_n='/usr/ucb/echo -n'
32682 else
32683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32684 as_echo_n_body='eval
32685 arg=$1;
32686 case $arg in #(
32687 *"$as_nl"*)
32688 expr "X$arg" : "X\\(.*\\)$as_nl";
32689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32690 esac;
32691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32693 export as_echo_n_body
32694 as_echo_n='sh -c $as_echo_n_body as_echo'
32696 export as_echo_body
32697 as_echo='sh -c $as_echo_body as_echo'
32700 # The user is always right.
32701 if test "${PATH_SEPARATOR+set}" != set; then
32702 PATH_SEPARATOR=:
32703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32705 PATH_SEPARATOR=';'
32710 # IFS
32711 # We need space, tab and new line, in precisely that order. Quoting is
32712 # there to prevent editors from complaining about space-tab.
32713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32714 # splitting by setting IFS to empty value.)
32715 IFS=" "" $as_nl"
32717 # Find who we are. Look in the path if we contain no directory separator.
32718 as_myself=
32719 case $0 in #((
32720 *[\\/]* ) as_myself=$0 ;;
32721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722 for as_dir in $PATH
32724 IFS=$as_save_IFS
32725 test -z "$as_dir" && as_dir=.
32726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32727 done
32728 IFS=$as_save_IFS
32731 esac
32732 # We did not find ourselves, most probably we were run as `sh COMMAND'
32733 # in which case we are not to be found in the path.
32734 if test "x$as_myself" = x; then
32735 as_myself=$0
32737 if test ! -f "$as_myself"; then
32738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32739 exit 1
32742 # Unset variables that we do not need and which cause bugs (e.g. in
32743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32744 # suppresses any "Segmentation fault" message there. '((' could
32745 # trigger a bug in pdksh 5.2.14.
32746 for as_var in BASH_ENV ENV MAIL MAILPATH
32747 do eval test x\${$as_var+set} = xset \
32748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32749 done
32750 PS1='$ '
32751 PS2='> '
32752 PS4='+ '
32754 # NLS nuisances.
32755 LC_ALL=C
32756 export LC_ALL
32757 LANGUAGE=C
32758 export LANGUAGE
32760 # CDPATH.
32761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32765 # ----------------------------------------
32766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32768 # script with STATUS, using 1 if that was 0.
32769 as_fn_error ()
32771 as_status=$1; test $as_status -eq 0 && as_status=1
32772 if test "$4"; then
32773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32776 $as_echo "$as_me: error: $2" >&2
32777 as_fn_exit $as_status
32778 } # as_fn_error
32781 # as_fn_set_status STATUS
32782 # -----------------------
32783 # Set $? to STATUS, without forking.
32784 as_fn_set_status ()
32786 return $1
32787 } # as_fn_set_status
32789 # as_fn_exit STATUS
32790 # -----------------
32791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32792 as_fn_exit ()
32794 set +e
32795 as_fn_set_status $1
32796 exit $1
32797 } # as_fn_exit
32799 # as_fn_unset VAR
32800 # ---------------
32801 # Portably unset VAR.
32802 as_fn_unset ()
32804 { eval $1=; unset $1;}
32806 as_unset=as_fn_unset
32807 # as_fn_append VAR VALUE
32808 # ----------------------
32809 # Append the text in VALUE to the end of the definition contained in VAR. Take
32810 # advantage of any shell optimizations that allow amortized linear growth over
32811 # repeated appends, instead of the typical quadratic growth present in naive
32812 # implementations.
32813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32814 eval 'as_fn_append ()
32816 eval $1+=\$2
32818 else
32819 as_fn_append ()
32821 eval $1=\$$1\$2
32823 fi # as_fn_append
32825 # as_fn_arith ARG...
32826 # ------------------
32827 # Perform arithmetic evaluation on the ARGs, and store the result in the
32828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32829 # must be portable across $(()) and expr.
32830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32831 eval 'as_fn_arith ()
32833 as_val=$(( $* ))
32835 else
32836 as_fn_arith ()
32838 as_val=`expr "$@" || test $? -eq 1`
32840 fi # as_fn_arith
32843 if expr a : '\(a\)' >/dev/null 2>&1 &&
32844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32845 as_expr=expr
32846 else
32847 as_expr=false
32850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32851 as_basename=basename
32852 else
32853 as_basename=false
32856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32857 as_dirname=dirname
32858 else
32859 as_dirname=false
32862 as_me=`$as_basename -- "$0" ||
32863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32864 X"$0" : 'X\(//\)$' \| \
32865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32866 $as_echo X/"$0" |
32867 sed '/^.*\/\([^/][^/]*\)\/*$/{
32868 s//\1/
32871 /^X\/\(\/\/\)$/{
32872 s//\1/
32875 /^X\/\(\/\).*/{
32876 s//\1/
32879 s/.*/./; q'`
32881 # Avoid depending upon Character Ranges.
32882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32885 as_cr_digits='0123456789'
32886 as_cr_alnum=$as_cr_Letters$as_cr_digits
32888 ECHO_C= ECHO_N= ECHO_T=
32889 case `echo -n x` in #(((((
32890 -n*)
32891 case `echo 'xy\c'` in
32892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32893 xy) ECHO_C='\c';;
32894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32895 ECHO_T=' ';;
32896 esac;;
32898 ECHO_N='-n';;
32899 esac
32901 rm -f conf$$ conf$$.exe conf$$.file
32902 if test -d conf$$.dir; then
32903 rm -f conf$$.dir/conf$$.file
32904 else
32905 rm -f conf$$.dir
32906 mkdir conf$$.dir 2>/dev/null
32908 if (echo >conf$$.file) 2>/dev/null; then
32909 if ln -s conf$$.file conf$$ 2>/dev/null; then
32910 as_ln_s='ln -s'
32911 # ... but there are two gotchas:
32912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32914 # In both cases, we have to default to `cp -pR'.
32915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32916 as_ln_s='cp -pR'
32917 elif ln conf$$.file conf$$ 2>/dev/null; then
32918 as_ln_s=ln
32919 else
32920 as_ln_s='cp -pR'
32922 else
32923 as_ln_s='cp -pR'
32925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32926 rmdir conf$$.dir 2>/dev/null
32929 # as_fn_mkdir_p
32930 # -------------
32931 # Create "$as_dir" as a directory, including parents if necessary.
32932 as_fn_mkdir_p ()
32935 case $as_dir in #(
32936 -*) as_dir=./$as_dir;;
32937 esac
32938 test -d "$as_dir" || eval $as_mkdir_p || {
32939 as_dirs=
32940 while :; do
32941 case $as_dir in #(
32942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32943 *) as_qdir=$as_dir;;
32944 esac
32945 as_dirs="'$as_qdir' $as_dirs"
32946 as_dir=`$as_dirname -- "$as_dir" ||
32947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32948 X"$as_dir" : 'X\(//\)[^/]' \| \
32949 X"$as_dir" : 'X\(//\)$' \| \
32950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32951 $as_echo X"$as_dir" |
32952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32953 s//\1/
32956 /^X\(\/\/\)[^/].*/{
32957 s//\1/
32960 /^X\(\/\/\)$/{
32961 s//\1/
32964 /^X\(\/\).*/{
32965 s//\1/
32968 s/.*/./; q'`
32969 test -d "$as_dir" && break
32970 done
32971 test -z "$as_dirs" || eval "mkdir $as_dirs"
32972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32975 } # as_fn_mkdir_p
32976 if mkdir -p . 2>/dev/null; then
32977 as_mkdir_p='mkdir -p "$as_dir"'
32978 else
32979 test -d ./-p && rmdir ./-p
32980 as_mkdir_p=false
32984 # as_fn_executable_p FILE
32985 # -----------------------
32986 # Test if FILE is an executable regular file.
32987 as_fn_executable_p ()
32989 test -f "$1" && test -x "$1"
32990 } # as_fn_executable_p
32991 as_test_x='test -x'
32992 as_executable_p=as_fn_executable_p
32994 # Sed expression to map a string onto a valid CPP name.
32995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32997 # Sed expression to map a string onto a valid variable name.
32998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33001 exec 6>&1
33002 ## ----------------------------------- ##
33003 ## Main body of $CONFIG_STATUS script. ##
33004 ## ----------------------------------- ##
33005 _ASEOF
33006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33009 # Save the log message, to keep $0 and so on meaningful, and to
33010 # report actual input values of CONFIG_FILES etc. instead of their
33011 # values after options handling.
33012 ac_log="
33013 This file was extended by $as_me, which was
33014 generated by GNU Autoconf 2.69. Invocation command line was
33016 CONFIG_FILES = $CONFIG_FILES
33017 CONFIG_HEADERS = $CONFIG_HEADERS
33018 CONFIG_LINKS = $CONFIG_LINKS
33019 CONFIG_COMMANDS = $CONFIG_COMMANDS
33020 $ $0 $@
33022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33025 _ACEOF
33027 case $ac_config_files in *"
33028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33029 esac
33031 case $ac_config_headers in *"
33032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33033 esac
33036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33037 # Files that config.status was made for.
33038 config_files="$ac_config_files"
33039 config_headers="$ac_config_headers"
33040 config_links="$ac_config_links"
33041 config_commands="$ac_config_commands"
33043 _ACEOF
33045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33046 ac_cs_usage="\
33047 \`$as_me' instantiates files and other configuration actions
33048 from templates according to the current configuration. Unless the files
33049 and actions are specified as TAGs, all are instantiated by default.
33051 Usage: $0 [OPTION]... [TAG]...
33053 -h, --help print this help, then exit
33054 -V, --version print version number and configuration settings, then exit
33055 --config print configuration, then exit
33056 -q, --quiet, --silent
33057 do not print progress messages
33058 -d, --debug don't remove temporary files
33059 --recheck update $as_me by reconfiguring in the same conditions
33060 --file=FILE[:TEMPLATE]
33061 instantiate the configuration file FILE
33062 --header=FILE[:TEMPLATE]
33063 instantiate the configuration header FILE
33065 Configuration files:
33066 $config_files
33068 Configuration headers:
33069 $config_headers
33071 Configuration links:
33072 $config_links
33074 Configuration commands:
33075 $config_commands
33077 Report bugs to the package provider."
33079 _ACEOF
33080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33082 ac_cs_version="\\
33083 config.status
33084 configured by $0, generated by GNU Autoconf 2.69,
33085 with options \\"\$ac_cs_config\\"
33087 Copyright (C) 2012 Free Software Foundation, Inc.
33088 This config.status script is free software; the Free Software Foundation
33089 gives unlimited permission to copy, distribute and modify it."
33091 ac_pwd='$ac_pwd'
33092 srcdir='$srcdir'
33093 AWK='$AWK'
33094 test -n "\$AWK" || AWK=awk
33095 _ACEOF
33097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33098 # The default lists apply if the user does not specify any file.
33099 ac_need_defaults=:
33100 while test $# != 0
33102 case $1 in
33103 --*=?*)
33104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33106 ac_shift=:
33108 --*=)
33109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33110 ac_optarg=
33111 ac_shift=:
33114 ac_option=$1
33115 ac_optarg=$2
33116 ac_shift=shift
33118 esac
33120 case $ac_option in
33121 # Handling of the options.
33122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33123 ac_cs_recheck=: ;;
33124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33125 $as_echo "$ac_cs_version"; exit ;;
33126 --config | --confi | --conf | --con | --co | --c )
33127 $as_echo "$ac_cs_config"; exit ;;
33128 --debug | --debu | --deb | --de | --d | -d )
33129 debug=: ;;
33130 --file | --fil | --fi | --f )
33131 $ac_shift
33132 case $ac_optarg in
33133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33134 '') as_fn_error $? "missing file argument" ;;
33135 esac
33136 as_fn_append CONFIG_FILES " '$ac_optarg'"
33137 ac_need_defaults=false;;
33138 --header | --heade | --head | --hea )
33139 $ac_shift
33140 case $ac_optarg in
33141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33142 esac
33143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33144 ac_need_defaults=false;;
33145 --he | --h)
33146 # Conflict between --help and --header
33147 as_fn_error $? "ambiguous option: \`$1'
33148 Try \`$0 --help' for more information.";;
33149 --help | --hel | -h )
33150 $as_echo "$ac_cs_usage"; exit ;;
33151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33153 ac_cs_silent=: ;;
33155 # This is an error.
33156 -*) as_fn_error $? "unrecognized option: \`$1'
33157 Try \`$0 --help' for more information." ;;
33159 *) as_fn_append ac_config_targets " $1"
33160 ac_need_defaults=false ;;
33162 esac
33163 shift
33164 done
33166 ac_configure_extra_args=
33168 if $ac_cs_silent; then
33169 exec 6>/dev/null
33170 ac_configure_extra_args="$ac_configure_extra_args --silent"
33173 _ACEOF
33174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33175 if \$ac_cs_recheck; then
33176 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33177 shift
33178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33179 CONFIG_SHELL='$SHELL'
33180 export CONFIG_SHELL
33181 exec "\$@"
33184 _ACEOF
33185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33186 exec 5>>config.log
33188 echo
33189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33190 ## Running $as_me. ##
33191 _ASBOX
33192 $as_echo "$ac_log"
33193 } >&5
33195 _ACEOF
33196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33198 # INIT-COMMANDS
33200 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33201 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33202 subdirs='$subdirs'
33204 _ACEOF
33206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33208 # Handling of arguments.
33209 for ac_config_target in $ac_config_targets
33211 case $ac_config_target in
33212 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33213 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33214 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33215 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33216 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33217 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33218 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33219 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33220 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33221 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33224 esac
33225 done
33228 # If the user did not use the arguments to specify the items to instantiate,
33229 # then the envvar interface is used. Set only those that are not.
33230 # We use the long form for the default assignment because of an extremely
33231 # bizarre bug on SunOS 4.1.3.
33232 if $ac_need_defaults; then
33233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33235 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33239 # Have a temporary directory for convenience. Make it in the build tree
33240 # simply because there is no reason against having it here, and in addition,
33241 # creating and moving files from /tmp can sometimes cause problems.
33242 # Hook for its removal unless debugging.
33243 # Note that there is a small window in which the directory will not be cleaned:
33244 # after its creation but before its name has been assigned to `$tmp'.
33245 $debug ||
33247 tmp= ac_tmp=
33248 trap 'exit_status=$?
33249 : "${ac_tmp:=$tmp}"
33250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33252 trap 'as_fn_exit 1' 1 2 13 15
33254 # Create a (secure) tmp directory for tmp files.
33257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33258 test -d "$tmp"
33259 } ||
33261 tmp=./conf$$-$RANDOM
33262 (umask 077 && mkdir "$tmp")
33263 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33264 ac_tmp=$tmp
33266 # Set up the scripts for CONFIG_FILES section.
33267 # No need to generate them if there are no CONFIG_FILES.
33268 # This happens for instance with `./config.status config.h'.
33269 if test -n "$CONFIG_FILES"; then
33271 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33272 ac_cs_awk_getline=:
33273 ac_cs_awk_pipe_init=
33274 ac_cs_awk_read_file='
33275 while ((getline aline < (F[key])) > 0)
33276 print(aline)
33277 close(F[key])'
33278 ac_cs_awk_pipe_fini=
33279 else
33280 ac_cs_awk_getline=false
33281 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33282 ac_cs_awk_read_file='
33283 print "|#_!!_#|"
33284 print "cat " F[key] " &&"
33285 '$ac_cs_awk_pipe_init
33286 # The final `:' finishes the AND list.
33287 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33289 ac_cr=`echo X | tr X '\015'`
33290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33291 # But we know of no other shell where ac_cr would be empty at this
33292 # point, so we can use a bashism as a fallback.
33293 if test "x$ac_cr" = x; then
33294 eval ac_cr=\$\'\\r\'
33296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33298 ac_cs_awk_cr='\\r'
33299 else
33300 ac_cs_awk_cr=$ac_cr
33303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33304 _ACEOF
33306 # Create commands to substitute file output variables.
33308 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33309 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33310 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33311 echo "_ACAWK" &&
33312 echo "_ACEOF"
33313 } >conf$$files.sh &&
33314 . ./conf$$files.sh ||
33315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33316 rm -f conf$$files.sh
33319 echo "cat >conf$$subs.awk <<_ACEOF" &&
33320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33321 echo "_ACEOF"
33322 } >conf$$subs.sh ||
33323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33325 ac_delim='%!_!# '
33326 for ac_last_try in false false false false false :; do
33327 . ./conf$$subs.sh ||
33328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33330 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33331 if test $ac_delim_n = $ac_delim_num; then
33332 break
33333 elif $ac_last_try; then
33334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33335 else
33336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33338 done
33339 rm -f conf$$subs.sh
33341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33343 _ACEOF
33344 sed -n '
33346 s/^/S["/; s/!.*/"]=/
33349 s/^[^!]*!//
33350 :repl
33351 t repl
33352 s/'"$ac_delim"'$//
33353 t delim
33356 s/\(.\{148\}\)..*/\1/
33357 t more1
33358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33361 b repl
33362 :more1
33363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33366 s/.\{148\}//
33367 t nl
33368 :delim
33370 s/\(.\{148\}\)..*/\1/
33371 t more2
33372 s/["\\]/\\&/g; s/^/"/; s/$/"/
33375 :more2
33376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33379 s/.\{148\}//
33380 t delim
33381 ' <conf$$subs.awk | sed '
33382 /^[^""]/{
33384 s/\n//
33386 ' >>$CONFIG_STATUS || ac_write_fail=1
33387 rm -f conf$$subs.awk
33388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33389 _ACAWK
33390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33391 for (key in S) S_is_set[key] = 1
33392 FS = "\a"
33393 \$ac_cs_awk_pipe_init
33396 line = $ 0
33397 nfields = split(line, field, "@")
33398 substed = 0
33399 len = length(field[1])
33400 for (i = 2; i < nfields; i++) {
33401 key = field[i]
33402 keylen = length(key)
33403 if (S_is_set[key]) {
33404 value = S[key]
33405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33406 len += length(value) + length(field[++i])
33407 substed = 1
33408 } else
33409 len += 1 + keylen
33411 if (nfields == 3 && !substed) {
33412 key = field[2]
33413 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33414 \$ac_cs_awk_read_file
33415 next
33418 print line
33420 \$ac_cs_awk_pipe_fini
33421 _ACAWK
33422 _ACEOF
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33426 else
33428 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33429 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33430 _ACEOF
33432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33434 # trailing colons and then remove the whole line if VPATH becomes empty
33435 # (actually we leave an empty line to preserve line numbers).
33436 if test "x$srcdir" = x.; then
33437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33439 s///
33440 s/^/:/
33441 s/[ ]*$/:/
33442 s/:\$(srcdir):/:/g
33443 s/:\${srcdir}:/:/g
33444 s/:@srcdir@:/:/g
33445 s/^:*//
33446 s/:*$//
33448 s/\(=[ ]*\).*/\1/
33450 s/\n//
33451 s/^[^=]*=[ ]*$//
33455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33456 fi # test -n "$CONFIG_FILES"
33458 # Set up the scripts for CONFIG_HEADERS section.
33459 # No need to generate them if there are no CONFIG_HEADERS.
33460 # This happens for instance with `./config.status Makefile'.
33461 if test -n "$CONFIG_HEADERS"; then
33462 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33463 BEGIN {
33464 _ACEOF
33466 # Transform confdefs.h into an awk script `defines.awk', embedded as
33467 # here-document in config.status, that substitutes the proper values into
33468 # config.h.in to produce config.h.
33470 # Create a delimiter string that does not exist in confdefs.h, to ease
33471 # handling of long lines.
33472 ac_delim='%!_!# '
33473 for ac_last_try in false false :; do
33474 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33475 if test -z "$ac_tt"; then
33476 break
33477 elif $ac_last_try; then
33478 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33479 else
33480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33482 done
33484 # For the awk script, D is an array of macro values keyed by name,
33485 # likewise P contains macro parameters if any. Preserve backslash
33486 # newline sequences.
33488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33489 sed -n '
33490 s/.\{148\}/&'"$ac_delim"'/g
33491 t rset
33492 :rset
33493 s/^[ ]*#[ ]*define[ ][ ]*/ /
33494 t def
33496 :def
33497 s/\\$//
33498 t bsnl
33499 s/["\\]/\\&/g
33500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33501 D["\1"]=" \3"/p
33502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33504 :bsnl
33505 s/["\\]/\\&/g
33506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33507 D["\1"]=" \3\\\\\\n"\\/p
33508 t cont
33509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33510 t cont
33512 :cont
33514 s/.\{148\}/&'"$ac_delim"'/g
33515 t clear
33516 :clear
33517 s/\\$//
33518 t bsnlc
33519 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33521 :bsnlc
33522 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33523 b cont
33524 ' <confdefs.h | sed '
33525 s/'"$ac_delim"'/"\\\
33526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33529 for (key in D) D_is_set[key] = 1
33530 FS = "\a"
33532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33533 line = \$ 0
33534 split(line, arg, " ")
33535 if (arg[1] == "#") {
33536 defundef = arg[2]
33537 mac1 = arg[3]
33538 } else {
33539 defundef = substr(arg[1], 2)
33540 mac1 = arg[2]
33542 split(mac1, mac2, "(") #)
33543 macro = mac2[1]
33544 prefix = substr(line, 1, index(line, defundef) - 1)
33545 if (D_is_set[macro]) {
33546 # Preserve the white space surrounding the "#".
33547 print prefix "define", macro P[macro] D[macro]
33548 next
33549 } else {
33550 # Replace #undef with comments. This is necessary, for example,
33551 # in the case of _POSIX_SOURCE, which is predefined and required
33552 # on some systems where configure will not decide to define it.
33553 if (defundef == "undef") {
33554 print "/*", prefix defundef, macro, "*/"
33555 next
33559 { print }
33560 _ACAWK
33561 _ACEOF
33562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33563 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33564 fi # test -n "$CONFIG_HEADERS"
33567 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33568 shift
33569 for ac_tag
33571 case $ac_tag in
33572 :[FHLC]) ac_mode=$ac_tag; continue;;
33573 esac
33574 case $ac_mode$ac_tag in
33575 :[FHL]*:*);;
33576 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33577 :[FH]-) ac_tag=-:-;;
33578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33579 esac
33580 ac_save_IFS=$IFS
33581 IFS=:
33582 set x $ac_tag
33583 IFS=$ac_save_IFS
33584 shift
33585 ac_file=$1
33586 shift
33588 case $ac_mode in
33589 :L) ac_source=$1;;
33590 :[FH])
33591 ac_file_inputs=
33592 for ac_f
33594 case $ac_f in
33595 -) ac_f="$ac_tmp/stdin";;
33596 *) # Look for the file first in the build tree, then in the source tree
33597 # (if the path is not absolute). The absolute path cannot be DOS-style,
33598 # because $ac_f cannot contain `:'.
33599 test -f "$ac_f" ||
33600 case $ac_f in
33601 [\\/$]*) false;;
33602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33603 esac ||
33604 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33605 esac
33606 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33607 as_fn_append ac_file_inputs " '$ac_f'"
33608 done
33610 # Let's still pretend it is `configure' which instantiates (i.e., don't
33611 # use $as_me), people would be surprised to read:
33612 # /* config.h. Generated by config.status. */
33613 configure_input='Generated from '`
33614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33615 `' by configure.'
33616 if test x"$ac_file" != x-; then
33617 configure_input="$ac_file. $configure_input"
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33619 $as_echo "$as_me: creating $ac_file" >&6;}
33621 # Neutralize special characters interpreted by sed in replacement strings.
33622 case $configure_input in #(
33623 *\&* | *\|* | *\\* )
33624 ac_sed_conf_input=`$as_echo "$configure_input" |
33625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33626 *) ac_sed_conf_input=$configure_input;;
33627 esac
33629 case $ac_tag in
33630 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33632 esac
33634 esac
33636 ac_dir=`$as_dirname -- "$ac_file" ||
33637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33638 X"$ac_file" : 'X\(//\)[^/]' \| \
33639 X"$ac_file" : 'X\(//\)$' \| \
33640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33641 $as_echo X"$ac_file" |
33642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33643 s//\1/
33646 /^X\(\/\/\)[^/].*/{
33647 s//\1/
33650 /^X\(\/\/\)$/{
33651 s//\1/
33654 /^X\(\/\).*/{
33655 s//\1/
33658 s/.*/./; q'`
33659 as_dir="$ac_dir"; as_fn_mkdir_p
33660 ac_builddir=.
33662 case "$ac_dir" in
33663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33666 # A ".." for each directory in $ac_dir_suffix.
33667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33668 case $ac_top_builddir_sub in
33669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33671 esac ;;
33672 esac
33673 ac_abs_top_builddir=$ac_pwd
33674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33675 # for backward compatibility:
33676 ac_top_builddir=$ac_top_build_prefix
33678 case $srcdir in
33679 .) # We are building in place.
33680 ac_srcdir=.
33681 ac_top_srcdir=$ac_top_builddir_sub
33682 ac_abs_top_srcdir=$ac_pwd ;;
33683 [\\/]* | ?:[\\/]* ) # Absolute name.
33684 ac_srcdir=$srcdir$ac_dir_suffix;
33685 ac_top_srcdir=$srcdir
33686 ac_abs_top_srcdir=$srcdir ;;
33687 *) # Relative name.
33688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33689 ac_top_srcdir=$ac_top_build_prefix$srcdir
33690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33691 esac
33692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33695 case $ac_mode in
33698 # CONFIG_FILE
33701 _ACEOF
33703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33704 # If the template does not know about datarootdir, expand it.
33705 # FIXME: This hack should be removed a few years after 2.60.
33706 ac_datarootdir_hack=; ac_datarootdir_seen=
33707 ac_sed_dataroot='
33708 /datarootdir/ {
33712 /@datadir@/p
33713 /@docdir@/p
33714 /@infodir@/p
33715 /@localedir@/p
33716 /@mandir@/p'
33717 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33718 *datarootdir*) ac_datarootdir_seen=yes;;
33719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33721 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33722 _ACEOF
33723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33724 ac_datarootdir_hack='
33725 s&@datadir@&$datadir&g
33726 s&@docdir@&$docdir&g
33727 s&@infodir@&$infodir&g
33728 s&@localedir@&$localedir&g
33729 s&@mandir@&$mandir&g
33730 s&\\\${datarootdir}&$datarootdir&g' ;;
33731 esac
33732 _ACEOF
33734 # Neutralize VPATH when `$srcdir' = `.'.
33735 # Shell code in configure.ac might set extrasub.
33736 # FIXME: do we really want to maintain this feature?
33737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33738 ac_sed_extra="$ac_vpsub
33739 $extrasub
33740 _ACEOF
33741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33744 s|@configure_input@|$ac_sed_conf_input|;t t
33745 s&@top_builddir@&$ac_top_builddir_sub&;t t
33746 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33747 s&@srcdir@&$ac_srcdir&;t t
33748 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33749 s&@top_srcdir@&$ac_top_srcdir&;t t
33750 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33751 s&@builddir@&$ac_builddir&;t t
33752 s&@abs_builddir@&$ac_abs_builddir&;t t
33753 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33754 $ac_datarootdir_hack
33756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33757 if $ac_cs_awk_getline; then
33758 $AWK -f "$ac_tmp/subs.awk"
33759 else
33760 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33761 fi \
33762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33767 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33769 which seems to be undefined. Please make sure it is defined" >&5
33770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33771 which seems to be undefined. Please make sure it is defined" >&2;}
33773 rm -f "$ac_tmp/stdin"
33774 case $ac_file in
33775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33777 esac \
33778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33782 # CONFIG_HEADER
33784 if test x"$ac_file" != x-; then
33786 $as_echo "/* $configure_input */" \
33787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33788 } >"$ac_tmp/config.h" \
33789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33793 else
33794 rm -f "$ac_file"
33795 mv "$ac_tmp/config.h" "$ac_file" \
33796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33798 else
33799 $as_echo "/* $configure_input */" \
33800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33801 || as_fn_error $? "could not create -" "$LINENO" 5
33806 # CONFIG_LINK
33809 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33811 else
33812 # Prefer the file from the source tree if names are identical.
33813 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33814 ac_source=$srcdir/$ac_source
33817 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33818 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33820 if test ! -r "$ac_source"; then
33821 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33823 rm -f "$ac_file"
33825 # Try a relative symlink, then a hard link, then a copy.
33826 case $ac_source in
33827 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33828 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33829 esac
33830 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33831 ln "$ac_source" "$ac_file" 2>/dev/null ||
33832 cp -p "$ac_source" "$ac_file" ||
33833 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33837 $as_echo "$as_me: executing $ac_file commands" >&6;}
33839 esac
33842 case $ac_file$ac_mode in
33843 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33844 "gccdepdir":C)
33845 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33846 for lang in $subdirs c-family common analyzer rtl-ssa
33848 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33849 done ;;
33850 "as":F) chmod +x as ;;
33851 "collect-ld":F) chmod +x collect-ld ;;
33852 "nm":F) chmod +x nm ;;
33853 "dsymutil":F) chmod +x dsymutil ;;
33854 "default":C)
33855 case ${CONFIG_HEADERS} in
33856 *auto-host.h:config.in*)
33857 echo > cstamp-h ;;
33858 esac
33859 # Make sure all the subdirs exist.
33860 for d in $subdirs doc build common c-family
33862 test -d $d || mkdir $d
33863 done
33866 esac
33867 done # for ac_tag
33870 as_fn_exit 0
33871 _ACEOF
33872 ac_clean_files=$ac_clean_files_save
33874 test $ac_write_fail = 0 ||
33875 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33878 # configure is writing to config.log, and then calls config.status.
33879 # config.status does its own redirection, appending to config.log.
33880 # Unfortunately, on DOS this fails, as config.log is still kept open
33881 # by configure, so config.status won't be able to write to it; its
33882 # output is simply discarded. So we exec the FD to /dev/null,
33883 # effectively closing config.log, so it can be properly (re)opened and
33884 # appended to by config.status. When coming back to configure, we
33885 # need to make the FD available again.
33886 if test "$no_create" != yes; then
33887 ac_cs_success=:
33888 ac_config_status_args=
33889 test "$silent" = yes &&
33890 ac_config_status_args="$ac_config_status_args --quiet"
33891 exec 5>/dev/null
33892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33893 exec 5>>config.log
33894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33895 # would make configure fail if this is the last instruction.
33896 $ac_cs_success || as_fn_exit 1
33898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}