c++: top level bind when rewriting coroutines [PR106188]
[official-gcc.git] / gcc / configure
blob39f7ed129a4713846de18e9883f25e7fc4dc7342
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/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
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 esac
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14744 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14745 file_magic_cmd=$lt_cv_file_magic_cmd
14746 deplibs_check_method=$lt_cv_deplibs_check_method
14747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14760 if test -n "$ac_tool_prefix"; then
14761 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14762 set dummy ${ac_tool_prefix}ar; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764 $as_echo_n "checking for $ac_word... " >&6; }
14765 if ${ac_cv_prog_AR+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 if test -n "$AR"; then
14769 ac_cv_prog_AR="$AR" # Let the user override the test.
14770 else
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14774 IFS=$as_save_IFS
14775 test -z "$as_dir" && as_dir=.
14776 for ac_exec_ext in '' $ac_executable_extensions; do
14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778 ac_cv_prog_AR="${ac_tool_prefix}ar"
14779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780 break 2
14782 done
14783 done
14784 IFS=$as_save_IFS
14788 AR=$ac_cv_prog_AR
14789 if test -n "$AR"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14791 $as_echo "$AR" >&6; }
14792 else
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794 $as_echo "no" >&6; }
14799 if test -z "$ac_cv_prog_AR"; then
14800 ac_ct_AR=$AR
14801 # Extract the first word of "ar", so it can be a program name with args.
14802 set dummy ar; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14804 $as_echo_n "checking for $ac_word... " >&6; }
14805 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14806 $as_echo_n "(cached) " >&6
14807 else
14808 if test -n "$ac_ct_AR"; then
14809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14810 else
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $PATH
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_ac_ct_AR="ar"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 break 2
14822 done
14823 done
14824 IFS=$as_save_IFS
14828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14829 if test -n "$ac_ct_AR"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14831 $as_echo "$ac_ct_AR" >&6; }
14832 else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834 $as_echo "no" >&6; }
14837 if test "x$ac_ct_AR" = x; then
14838 AR="false"
14839 else
14840 case $cross_compiling:$ac_tool_warned in
14841 yes:)
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14844 ac_tool_warned=yes ;;
14845 esac
14846 AR=$ac_ct_AR
14848 else
14849 AR="$ac_cv_prog_AR"
14852 test -z "$AR" && AR=ar
14853 test -z "$AR_FLAGS" && AR_FLAGS=cru
14865 if test -n "$ac_tool_prefix"; then
14866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14867 set dummy ${ac_tool_prefix}strip; ac_word=$2
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14869 $as_echo_n "checking for $ac_word... " >&6; }
14870 if ${ac_cv_prog_STRIP+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872 else
14873 if test -n "$STRIP"; then
14874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14875 else
14876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877 for as_dir in $PATH
14879 IFS=$as_save_IFS
14880 test -z "$as_dir" && as_dir=.
14881 for ac_exec_ext in '' $ac_executable_extensions; do
14882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14885 break 2
14887 done
14888 done
14889 IFS=$as_save_IFS
14893 STRIP=$ac_cv_prog_STRIP
14894 if test -n "$STRIP"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14896 $as_echo "$STRIP" >&6; }
14897 else
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 $as_echo "no" >&6; }
14904 if test -z "$ac_cv_prog_STRIP"; then
14905 ac_ct_STRIP=$STRIP
14906 # Extract the first word of "strip", so it can be a program name with args.
14907 set dummy strip; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14909 $as_echo_n "checking for $ac_word... " >&6; }
14910 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14911 $as_echo_n "(cached) " >&6
14912 else
14913 if test -n "$ac_ct_STRIP"; then
14914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14915 else
14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14919 IFS=$as_save_IFS
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_ac_ct_STRIP="strip"
14924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14925 break 2
14927 done
14928 done
14929 IFS=$as_save_IFS
14933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14934 if test -n "$ac_ct_STRIP"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14936 $as_echo "$ac_ct_STRIP" >&6; }
14937 else
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14939 $as_echo "no" >&6; }
14942 if test "x$ac_ct_STRIP" = x; then
14943 STRIP=":"
14944 else
14945 case $cross_compiling:$ac_tool_warned in
14946 yes:)
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14949 ac_tool_warned=yes ;;
14950 esac
14951 STRIP=$ac_ct_STRIP
14953 else
14954 STRIP="$ac_cv_prog_STRIP"
14957 test -z "$STRIP" && STRIP=:
14964 if test -n "$ac_tool_prefix"; then
14965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14968 $as_echo_n "checking for $ac_word... " >&6; }
14969 if ${ac_cv_prog_RANLIB+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 if test -n "$RANLIB"; then
14973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14974 else
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14984 break 2
14986 done
14987 done
14988 IFS=$as_save_IFS
14992 RANLIB=$ac_cv_prog_RANLIB
14993 if test -n "$RANLIB"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14995 $as_echo "$RANLIB" >&6; }
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
15003 if test -z "$ac_cv_prog_RANLIB"; then
15004 ac_ct_RANLIB=$RANLIB
15005 # Extract the first word of "ranlib", so it can be a program name with args.
15006 set dummy ranlib; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15008 $as_echo_n "checking for $ac_word... " >&6; }
15009 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011 else
15012 if test -n "$ac_ct_RANLIB"; then
15013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15014 else
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15018 IFS=$as_save_IFS
15019 test -z "$as_dir" && as_dir=.
15020 for ac_exec_ext in '' $ac_executable_extensions; do
15021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15022 ac_cv_prog_ac_ct_RANLIB="ranlib"
15023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15024 break 2
15026 done
15027 done
15028 IFS=$as_save_IFS
15032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15033 if test -n "$ac_ct_RANLIB"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15035 $as_echo "$ac_ct_RANLIB" >&6; }
15036 else
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15041 if test "x$ac_ct_RANLIB" = x; then
15042 RANLIB=":"
15043 else
15044 case $cross_compiling:$ac_tool_warned in
15045 yes:)
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15048 ac_tool_warned=yes ;;
15049 esac
15050 RANLIB=$ac_ct_RANLIB
15052 else
15053 RANLIB="$ac_cv_prog_RANLIB"
15056 test -z "$RANLIB" && RANLIB=:
15063 # Determine commands to create old-style static archives.
15064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15065 old_postinstall_cmds='chmod 644 $oldlib'
15066 old_postuninstall_cmds=
15068 if test -n "$RANLIB"; then
15069 case $host_os in
15070 openbsd*)
15071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15076 esac
15077 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15080 case $host_os in
15081 darwin*)
15082 lock_old_archive_extraction=yes ;;
15084 lock_old_archive_extraction=no ;;
15085 esac
15125 # If no C compiler was specified, use CC.
15126 LTCC=${LTCC-"$CC"}
15128 # If no C compiler flags were specified, use CFLAGS.
15129 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15131 # Allow CC to be a program name with arguments.
15132 compiler=$CC
15135 # Check for command to grab the raw symbol name followed by C symbol from nm.
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15137 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15138 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15139 $as_echo_n "(cached) " >&6
15140 else
15142 # These are sane defaults that work on at least a few old systems.
15143 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15145 # Character class describing NM global symbol codes.
15146 symcode='[BCDEGRST]'
15148 # Regexp to match symbols that can be accessed directly from C.
15149 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15151 # Define system-specific variables.
15152 case $host_os in
15153 aix*)
15154 symcode='[BCDT]'
15156 cygwin* | mingw* | pw32* | cegcc*)
15157 symcode='[ABCDGISTW]'
15159 hpux*)
15160 if test "$host_cpu" = ia64; then
15161 symcode='[ABCDEGRST]'
15164 irix* | nonstopux*)
15165 symcode='[BCDEGRST]'
15167 osf*)
15168 symcode='[BCDEGQRST]'
15170 solaris*)
15171 symcode='[BDRT]'
15173 sco3.2v5*)
15174 symcode='[DT]'
15176 sysv4.2uw2*)
15177 symcode='[DT]'
15179 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15180 symcode='[ABDT]'
15182 sysv4)
15183 symcode='[DFNSTU]'
15185 esac
15187 # If we're using GNU nm, then use its standard symbol codes.
15188 case `$NM -V 2>&1` in
15189 *GNU* | *'with BFD'*)
15190 symcode='[ABCDGIRSTW]' ;;
15191 esac
15193 # Transform an extracted symbol line into a proper C declaration.
15194 # Some systems (esp. on ia64) link data and code symbols differently,
15195 # so use this general approach.
15196 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15198 # Transform an extracted symbol line into symbol name and symbol address
15199 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15200 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'"
15202 # Handle CRLF in mingw tool chain
15203 opt_cr=
15204 case $build_os in
15205 mingw*)
15206 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15208 esac
15210 # Try without a prefix underscore, then with it.
15211 for ac_symprfx in "" "_"; do
15213 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15214 symxfrm="\\1 $ac_symprfx\\2 \\2"
15216 # Write the raw and C identifiers.
15217 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15218 # Fake it for dumpbin and say T for any non-static function
15219 # and D for any global variable.
15220 # Also find C++ and __fastcall symbols from MSVC++,
15221 # which start with @ or ?.
15222 lt_cv_sys_global_symbol_pipe="$AWK '"\
15223 " {last_section=section; section=\$ 3};"\
15224 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15225 " \$ 0!~/External *\|/{next};"\
15226 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15227 " {if(hide[section]) next};"\
15228 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15229 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15230 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15231 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15232 " ' prfx=^$ac_symprfx"
15233 else
15234 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15237 # Check to see that the pipe works correctly.
15238 pipe_works=no
15240 rm -f conftest*
15241 cat > conftest.$ac_ext <<_LT_EOF
15242 #ifdef __cplusplus
15243 extern "C" {
15244 #endif
15245 char nm_test_var;
15246 void nm_test_func(void);
15247 void nm_test_func(void){}
15248 #ifdef __cplusplus
15250 #endif
15251 int main(){nm_test_var='a';nm_test_func();return(0);}
15252 _LT_EOF
15254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15255 (eval $ac_compile) 2>&5
15256 ac_status=$?
15257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258 test $ac_status = 0; }; then
15259 # Now try to grab the symbols.
15260 nlist=conftest.nm
15261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15262 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15263 ac_status=$?
15264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15265 test $ac_status = 0; } && test -s "$nlist"; then
15266 # Try sorting and uniquifying the output.
15267 if sort "$nlist" | uniq > "$nlist"T; then
15268 mv -f "$nlist"T "$nlist"
15269 else
15270 rm -f "$nlist"T
15273 # Make sure that we snagged all the symbols we need.
15274 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15275 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15276 cat <<_LT_EOF > conftest.$ac_ext
15277 #ifdef __cplusplus
15278 extern "C" {
15279 #endif
15281 _LT_EOF
15282 # Now generate the symbol file.
15283 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15285 cat <<_LT_EOF >> conftest.$ac_ext
15287 /* The mapping between symbol names and symbols. */
15288 const struct {
15289 const char *name;
15290 void *address;
15292 lt__PROGRAM__LTX_preloaded_symbols[] =
15294 { "@PROGRAM@", (void *) 0 },
15295 _LT_EOF
15296 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15297 cat <<\_LT_EOF >> conftest.$ac_ext
15298 {0, (void *) 0}
15301 /* This works around a problem in FreeBSD linker */
15302 #ifdef FREEBSD_WORKAROUND
15303 static const void *lt_preloaded_setup() {
15304 return lt__PROGRAM__LTX_preloaded_symbols;
15306 #endif
15308 #ifdef __cplusplus
15310 #endif
15311 _LT_EOF
15312 # Now try linking the two files.
15313 mv conftest.$ac_objext conftstm.$ac_objext
15314 lt_save_LIBS="$LIBS"
15315 lt_save_CFLAGS="$CFLAGS"
15316 LIBS="conftstm.$ac_objext"
15317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15319 (eval $ac_link) 2>&5
15320 ac_status=$?
15321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15322 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15323 pipe_works=yes
15325 LIBS="$lt_save_LIBS"
15326 CFLAGS="$lt_save_CFLAGS"
15327 else
15328 echo "cannot find nm_test_func in $nlist" >&5
15330 else
15331 echo "cannot find nm_test_var in $nlist" >&5
15333 else
15334 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15336 else
15337 echo "$progname: failed program was:" >&5
15338 cat conftest.$ac_ext >&5
15340 rm -rf conftest* conftst*
15342 # Do not use the global_symbol_pipe unless it works.
15343 if test "$pipe_works" = yes; then
15344 break
15345 else
15346 lt_cv_sys_global_symbol_pipe=
15348 done
15352 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15353 lt_cv_sys_global_symbol_to_cdecl=
15355 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15357 $as_echo "failed" >&6; }
15358 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15360 $as_echo "ok" >&6; }
15384 # Check whether --enable-libtool-lock was given.
15385 if test "${enable_libtool_lock+set}" = set; then :
15386 enableval=$enable_libtool_lock;
15389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15391 # Some flags need to be propagated to the compiler or linker for good
15392 # libtool support.
15393 case $host in
15394 ia64-*-hpux*)
15395 # Find out which ABI we are using.
15396 echo 'int i;' > conftest.$ac_ext
15397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15398 (eval $ac_compile) 2>&5
15399 ac_status=$?
15400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15401 test $ac_status = 0; }; then
15402 case `/usr/bin/file conftest.$ac_objext` in
15403 *ELF-32*)
15404 HPUX_IA64_MODE="32"
15406 *ELF-64*)
15407 HPUX_IA64_MODE="64"
15409 esac
15411 rm -rf conftest*
15413 *-*-irix6*)
15414 # Find out which ABI we are using.
15415 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15417 (eval $ac_compile) 2>&5
15418 ac_status=$?
15419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420 test $ac_status = 0; }; then
15421 if test "$lt_cv_prog_gnu_ld" = yes; then
15422 case `/usr/bin/file conftest.$ac_objext` in
15423 *32-bit*)
15424 LD="${LD-ld} -melf32bsmip"
15426 *N32*)
15427 LD="${LD-ld} -melf32bmipn32"
15429 *64-bit*)
15430 LD="${LD-ld} -melf64bmip"
15432 esac
15433 else
15434 case `/usr/bin/file conftest.$ac_objext` in
15435 *32-bit*)
15436 LD="${LD-ld} -32"
15438 *N32*)
15439 LD="${LD-ld} -n32"
15441 *64-bit*)
15442 LD="${LD-ld} -64"
15444 esac
15447 rm -rf conftest*
15450 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15451 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15452 # Find out which ABI we are using.
15453 echo 'int i;' > conftest.$ac_ext
15454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15455 (eval $ac_compile) 2>&5
15456 ac_status=$?
15457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15458 test $ac_status = 0; }; then
15459 case `/usr/bin/file conftest.o` in
15460 *32-bit*)
15461 case $host in
15462 x86_64-*kfreebsd*-gnu)
15463 LD="${LD-ld} -m elf_i386_fbsd"
15465 x86_64-*linux*)
15466 case `/usr/bin/file conftest.o` in
15467 *x86-64*)
15468 LD="${LD-ld} -m elf32_x86_64"
15471 LD="${LD-ld} -m elf_i386"
15473 esac
15475 powerpc64le-*linux*)
15476 LD="${LD-ld} -m elf32lppclinux"
15478 powerpc64-*linux*)
15479 LD="${LD-ld} -m elf32ppclinux"
15481 s390x-*linux*)
15482 LD="${LD-ld} -m elf_s390"
15484 sparc64-*linux*)
15485 LD="${LD-ld} -m elf32_sparc"
15487 esac
15489 *64-bit*)
15490 case $host in
15491 x86_64-*kfreebsd*-gnu)
15492 LD="${LD-ld} -m elf_x86_64_fbsd"
15494 x86_64-*linux*)
15495 LD="${LD-ld} -m elf_x86_64"
15497 powerpcle-*linux*)
15498 LD="${LD-ld} -m elf64lppc"
15500 powerpc-*linux*)
15501 LD="${LD-ld} -m elf64ppc"
15503 s390*-*linux*|s390*-*tpf*)
15504 LD="${LD-ld} -m elf64_s390"
15506 sparc*-*linux*)
15507 LD="${LD-ld} -m elf64_sparc"
15509 esac
15511 esac
15513 rm -rf conftest*
15516 *-*-sco3.2v5*)
15517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15518 SAVE_CFLAGS="$CFLAGS"
15519 CFLAGS="$CFLAGS -belf"
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15521 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15522 if ${lt_cv_cc_needs_belf+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524 else
15525 ac_ext=c
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15535 main ()
15539 return 0;
15541 _ACEOF
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 lt_cv_cc_needs_belf=yes
15544 else
15545 lt_cv_cc_needs_belf=no
15547 rm -f core conftest.err conftest.$ac_objext \
15548 conftest$ac_exeext conftest.$ac_ext
15549 ac_ext=c
15550 ac_cpp='$CPP $CPPFLAGS'
15551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15557 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15560 CFLAGS="$SAVE_CFLAGS"
15563 sparc*-*solaris*)
15564 # Find out which ABI we are using.
15565 echo 'int i;' > conftest.$ac_ext
15566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15567 (eval $ac_compile) 2>&5
15568 ac_status=$?
15569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15570 test $ac_status = 0; }; then
15571 case `/usr/bin/file conftest.o` in
15572 *64-bit*)
15573 case $lt_cv_prog_gnu_ld in
15574 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15576 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15577 LD="${LD-ld} -64"
15580 esac
15582 esac
15584 rm -rf conftest*
15586 esac
15588 need_locks="$enable_libtool_lock"
15591 case $host_os in
15592 rhapsody* | darwin*)
15593 if test -n "$ac_tool_prefix"; then
15594 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15595 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15597 $as_echo_n "checking for $ac_word... " >&6; }
15598 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15599 $as_echo_n "(cached) " >&6
15600 else
15601 if test -n "$DSYMUTIL"; then
15602 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15603 else
15604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15605 for as_dir in $PATH
15607 IFS=$as_save_IFS
15608 test -z "$as_dir" && as_dir=.
15609 for ac_exec_ext in '' $ac_executable_extensions; do
15610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15611 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15613 break 2
15615 done
15616 done
15617 IFS=$as_save_IFS
15621 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15622 if test -n "$DSYMUTIL"; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15624 $as_echo "$DSYMUTIL" >&6; }
15625 else
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15627 $as_echo "no" >&6; }
15632 if test -z "$ac_cv_prog_DSYMUTIL"; then
15633 ac_ct_DSYMUTIL=$DSYMUTIL
15634 # Extract the first word of "dsymutil", so it can be a program name with args.
15635 set dummy dsymutil; ac_word=$2
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15637 $as_echo_n "checking for $ac_word... " >&6; }
15638 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 if test -n "$ac_ct_DSYMUTIL"; then
15642 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15643 else
15644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15645 for as_dir in $PATH
15647 IFS=$as_save_IFS
15648 test -z "$as_dir" && as_dir=.
15649 for ac_exec_ext in '' $ac_executable_extensions; do
15650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15651 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15653 break 2
15655 done
15656 done
15657 IFS=$as_save_IFS
15661 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15662 if test -n "$ac_ct_DSYMUTIL"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15664 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15665 else
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667 $as_echo "no" >&6; }
15670 if test "x$ac_ct_DSYMUTIL" = x; then
15671 DSYMUTIL=":"
15672 else
15673 case $cross_compiling:$ac_tool_warned in
15674 yes:)
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15677 ac_tool_warned=yes ;;
15678 esac
15679 DSYMUTIL=$ac_ct_DSYMUTIL
15681 else
15682 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15685 if test -n "$ac_tool_prefix"; then
15686 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15687 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15689 $as_echo_n "checking for $ac_word... " >&6; }
15690 if ${ac_cv_prog_NMEDIT+:} false; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 if test -n "$NMEDIT"; then
15694 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15695 else
15696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15697 for as_dir in $PATH
15699 IFS=$as_save_IFS
15700 test -z "$as_dir" && as_dir=.
15701 for ac_exec_ext in '' $ac_executable_extensions; do
15702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15703 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15705 break 2
15707 done
15708 done
15709 IFS=$as_save_IFS
15713 NMEDIT=$ac_cv_prog_NMEDIT
15714 if test -n "$NMEDIT"; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15716 $as_echo "$NMEDIT" >&6; }
15717 else
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15724 if test -z "$ac_cv_prog_NMEDIT"; then
15725 ac_ct_NMEDIT=$NMEDIT
15726 # Extract the first word of "nmedit", so it can be a program name with args.
15727 set dummy nmedit; ac_word=$2
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729 $as_echo_n "checking for $ac_word... " >&6; }
15730 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 if test -n "$ac_ct_NMEDIT"; then
15734 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15735 else
15736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15737 for as_dir in $PATH
15739 IFS=$as_save_IFS
15740 test -z "$as_dir" && as_dir=.
15741 for ac_exec_ext in '' $ac_executable_extensions; do
15742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15743 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15745 break 2
15747 done
15748 done
15749 IFS=$as_save_IFS
15753 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15754 if test -n "$ac_ct_NMEDIT"; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15756 $as_echo "$ac_ct_NMEDIT" >&6; }
15757 else
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15759 $as_echo "no" >&6; }
15762 if test "x$ac_ct_NMEDIT" = x; then
15763 NMEDIT=":"
15764 else
15765 case $cross_compiling:$ac_tool_warned in
15766 yes:)
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15769 ac_tool_warned=yes ;;
15770 esac
15771 NMEDIT=$ac_ct_NMEDIT
15773 else
15774 NMEDIT="$ac_cv_prog_NMEDIT"
15777 if test -n "$ac_tool_prefix"; then
15778 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15779 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15781 $as_echo_n "checking for $ac_word... " >&6; }
15782 if ${ac_cv_prog_LIPO+:} false; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 if test -n "$LIPO"; then
15786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15787 else
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 for as_dir in $PATH
15791 IFS=$as_save_IFS
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15795 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15797 break 2
15799 done
15800 done
15801 IFS=$as_save_IFS
15805 LIPO=$ac_cv_prog_LIPO
15806 if test -n "$LIPO"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15808 $as_echo "$LIPO" >&6; }
15809 else
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15816 if test -z "$ac_cv_prog_LIPO"; then
15817 ac_ct_LIPO=$LIPO
15818 # Extract the first word of "lipo", so it can be a program name with args.
15819 set dummy lipo; ac_word=$2
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15821 $as_echo_n "checking for $ac_word... " >&6; }
15822 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825 if test -n "$ac_ct_LIPO"; then
15826 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15827 else
15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829 for as_dir in $PATH
15831 IFS=$as_save_IFS
15832 test -z "$as_dir" && as_dir=.
15833 for ac_exec_ext in '' $ac_executable_extensions; do
15834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15835 ac_cv_prog_ac_ct_LIPO="lipo"
15836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15837 break 2
15839 done
15840 done
15841 IFS=$as_save_IFS
15845 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15846 if test -n "$ac_ct_LIPO"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15848 $as_echo "$ac_ct_LIPO" >&6; }
15849 else
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15854 if test "x$ac_ct_LIPO" = x; then
15855 LIPO=":"
15856 else
15857 case $cross_compiling:$ac_tool_warned in
15858 yes:)
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15861 ac_tool_warned=yes ;;
15862 esac
15863 LIPO=$ac_ct_LIPO
15865 else
15866 LIPO="$ac_cv_prog_LIPO"
15869 if test -n "$ac_tool_prefix"; then
15870 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15871 set dummy ${ac_tool_prefix}otool; ac_word=$2
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15873 $as_echo_n "checking for $ac_word... " >&6; }
15874 if ${ac_cv_prog_OTOOL+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 if test -n "$OTOOL"; then
15878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15879 else
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15883 IFS=$as_save_IFS
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15889 break 2
15891 done
15892 done
15893 IFS=$as_save_IFS
15897 OTOOL=$ac_cv_prog_OTOOL
15898 if test -n "$OTOOL"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15900 $as_echo "$OTOOL" >&6; }
15901 else
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15908 if test -z "$ac_cv_prog_OTOOL"; then
15909 ac_ct_OTOOL=$OTOOL
15910 # Extract the first word of "otool", so it can be a program name with args.
15911 set dummy otool; ac_word=$2
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15913 $as_echo_n "checking for $ac_word... " >&6; }
15914 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 if test -n "$ac_ct_OTOOL"; then
15918 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15919 else
15920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15921 for as_dir in $PATH
15923 IFS=$as_save_IFS
15924 test -z "$as_dir" && as_dir=.
15925 for ac_exec_ext in '' $ac_executable_extensions; do
15926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15927 ac_cv_prog_ac_ct_OTOOL="otool"
15928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15929 break 2
15931 done
15932 done
15933 IFS=$as_save_IFS
15937 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15938 if test -n "$ac_ct_OTOOL"; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15940 $as_echo "$ac_ct_OTOOL" >&6; }
15941 else
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15943 $as_echo "no" >&6; }
15946 if test "x$ac_ct_OTOOL" = x; then
15947 OTOOL=":"
15948 else
15949 case $cross_compiling:$ac_tool_warned in
15950 yes:)
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15953 ac_tool_warned=yes ;;
15954 esac
15955 OTOOL=$ac_ct_OTOOL
15957 else
15958 OTOOL="$ac_cv_prog_OTOOL"
15961 if test -n "$ac_tool_prefix"; then
15962 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15963 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15965 $as_echo_n "checking for $ac_word... " >&6; }
15966 if ${ac_cv_prog_OTOOL64+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 if test -n "$OTOOL64"; then
15970 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15971 else
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15975 IFS=$as_save_IFS
15976 test -z "$as_dir" && as_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15981 break 2
15983 done
15984 done
15985 IFS=$as_save_IFS
15989 OTOOL64=$ac_cv_prog_OTOOL64
15990 if test -n "$OTOOL64"; then
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15992 $as_echo "$OTOOL64" >&6; }
15993 else
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995 $as_echo "no" >&6; }
16000 if test -z "$ac_cv_prog_OTOOL64"; then
16001 ac_ct_OTOOL64=$OTOOL64
16002 # Extract the first word of "otool64", so it can be a program name with args.
16003 set dummy otool64; ac_word=$2
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16005 $as_echo_n "checking for $ac_word... " >&6; }
16006 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16009 if test -n "$ac_ct_OTOOL64"; then
16010 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16011 else
16012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16013 for as_dir in $PATH
16015 IFS=$as_save_IFS
16016 test -z "$as_dir" && as_dir=.
16017 for ac_exec_ext in '' $ac_executable_extensions; do
16018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16019 ac_cv_prog_ac_ct_OTOOL64="otool64"
16020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16021 break 2
16023 done
16024 done
16025 IFS=$as_save_IFS
16029 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16030 if test -n "$ac_ct_OTOOL64"; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16032 $as_echo "$ac_ct_OTOOL64" >&6; }
16033 else
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16035 $as_echo "no" >&6; }
16038 if test "x$ac_ct_OTOOL64" = x; then
16039 OTOOL64=":"
16040 else
16041 case $cross_compiling:$ac_tool_warned in
16042 yes:)
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16045 ac_tool_warned=yes ;;
16046 esac
16047 OTOOL64=$ac_ct_OTOOL64
16049 else
16050 OTOOL64="$ac_cv_prog_OTOOL64"
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16080 $as_echo_n "checking for -single_module linker flag... " >&6; }
16081 if ${lt_cv_apple_cc_single_mod+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 lt_cv_apple_cc_single_mod=no
16085 if test -z "${LT_MULTI_MODULE}"; then
16086 # By default we will add the -single_module flag. You can override
16087 # by either setting the environment variable LT_MULTI_MODULE
16088 # non-empty at configure time, or by adding -multi_module to the
16089 # link flags.
16090 rm -rf libconftest.dylib*
16091 echo "int foo(void){return 1;}" > conftest.c
16092 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16093 -dynamiclib -Wl,-single_module conftest.c" >&5
16094 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16095 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16096 _lt_result=$?
16097 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16098 lt_cv_apple_cc_single_mod=yes
16099 else
16100 cat conftest.err >&5
16102 rm -rf libconftest.dylib*
16103 rm -f conftest.*
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16107 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16109 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16110 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 lt_cv_ld_exported_symbols_list=no
16114 save_LDFLAGS=$LDFLAGS
16115 echo "_main" > conftest.sym
16116 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16121 main ()
16125 return 0;
16127 _ACEOF
16128 if ac_fn_c_try_link "$LINENO"; then :
16129 lt_cv_ld_exported_symbols_list=yes
16130 else
16131 lt_cv_ld_exported_symbols_list=no
16133 rm -f core conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16135 LDFLAGS="$save_LDFLAGS"
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16139 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16141 $as_echo_n "checking for -force_load linker flag... " >&6; }
16142 if ${lt_cv_ld_force_load+:} false; then :
16143 $as_echo_n "(cached) " >&6
16144 else
16145 lt_cv_ld_force_load=no
16146 cat > conftest.c << _LT_EOF
16147 int forced_loaded() { return 2;}
16148 _LT_EOF
16149 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16150 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16151 echo "$AR cru libconftest.a conftest.o" >&5
16152 $AR cru libconftest.a conftest.o 2>&5
16153 cat > conftest.c << _LT_EOF
16154 int main() { return 0;}
16155 _LT_EOF
16156 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16157 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16158 _lt_result=$?
16159 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16160 lt_cv_ld_force_load=yes
16161 else
16162 cat conftest.err >&5
16164 rm -f conftest.err libconftest.a conftest conftest.c
16165 rm -rf conftest.dSYM
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16169 $as_echo "$lt_cv_ld_force_load" >&6; }
16170 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16171 # build without first building modern cctools / linker.
16172 case $host_cpu-$host_os in
16173 *-rhapsody* | *-darwin1.[012])
16174 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16175 *-darwin1.*)
16176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16177 *-darwin*)
16178 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16179 # deployment target is forced to an earlier version.
16180 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16181 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16183 10.[012][,.]*)
16184 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16188 esac
16190 esac
16191 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16192 _lt_dar_single_mod='$single_module'
16194 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16195 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16196 else
16197 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16199 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16200 _lt_dsymutil='~$DSYMUTIL $lib || :'
16201 else
16202 _lt_dsymutil=
16205 esac
16208 for ac_header in dlfcn.h
16209 do :
16210 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16211 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16212 cat >>confdefs.h <<_ACEOF
16213 #define HAVE_DLFCN_H 1
16214 _ACEOF
16217 done
16223 # Set options
16227 enable_dlopen=no
16230 enable_win32_dll=no
16233 # Check whether --enable-shared was given.
16234 if test "${enable_shared+set}" = set; then :
16235 enableval=$enable_shared; p=${PACKAGE-default}
16236 case $enableval in
16237 yes) enable_shared=yes ;;
16238 no) enable_shared=no ;;
16240 enable_shared=no
16241 # Look at the argument we got. We use all the common list separators.
16242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16243 for pkg in $enableval; do
16244 IFS="$lt_save_ifs"
16245 if test "X$pkg" = "X$p"; then
16246 enable_shared=yes
16248 done
16249 IFS="$lt_save_ifs"
16251 esac
16252 else
16253 enable_shared=yes
16264 # Check whether --enable-static was given.
16265 if test "${enable_static+set}" = set; then :
16266 enableval=$enable_static; p=${PACKAGE-default}
16267 case $enableval in
16268 yes) enable_static=yes ;;
16269 no) enable_static=no ;;
16271 enable_static=no
16272 # Look at the argument we got. We use all the common list separators.
16273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16274 for pkg in $enableval; do
16275 IFS="$lt_save_ifs"
16276 if test "X$pkg" = "X$p"; then
16277 enable_static=yes
16279 done
16280 IFS="$lt_save_ifs"
16282 esac
16283 else
16284 enable_static=yes
16296 # Check whether --with-pic was given.
16297 if test "${with_pic+set}" = set; then :
16298 withval=$with_pic; pic_mode="$withval"
16299 else
16300 pic_mode=default
16304 test -z "$pic_mode" && pic_mode=default
16312 # Check whether --enable-fast-install was given.
16313 if test "${enable_fast_install+set}" = set; then :
16314 enableval=$enable_fast_install; p=${PACKAGE-default}
16315 case $enableval in
16316 yes) enable_fast_install=yes ;;
16317 no) enable_fast_install=no ;;
16319 enable_fast_install=no
16320 # Look at the argument we got. We use all the common list separators.
16321 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16322 for pkg in $enableval; do
16323 IFS="$lt_save_ifs"
16324 if test "X$pkg" = "X$p"; then
16325 enable_fast_install=yes
16327 done
16328 IFS="$lt_save_ifs"
16330 esac
16331 else
16332 enable_fast_install=yes
16345 # This can be used to rebuild libtool when needed
16346 LIBTOOL_DEPS="$ltmain"
16348 # Always use our own libtool.
16349 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16376 test -z "$LN_S" && LN_S="ln -s"
16391 if test -n "${ZSH_VERSION+set}" ; then
16392 setopt NO_GLOB_SUBST
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16396 $as_echo_n "checking for objdir... " >&6; }
16397 if ${lt_cv_objdir+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 rm -f .libs 2>/dev/null
16401 mkdir .libs 2>/dev/null
16402 if test -d .libs; then
16403 lt_cv_objdir=.libs
16404 else
16405 # MS-DOS does not allow filenames that begin with a dot.
16406 lt_cv_objdir=_libs
16408 rmdir .libs 2>/dev/null
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16411 $as_echo "$lt_cv_objdir" >&6; }
16412 objdir=$lt_cv_objdir
16418 cat >>confdefs.h <<_ACEOF
16419 #define LT_OBJDIR "$lt_cv_objdir/"
16420 _ACEOF
16425 case $host_os in
16426 aix3*)
16427 # AIX sometimes has problems with the GCC collect2 program. For some
16428 # reason, if we set the COLLECT_NAMES environment variable, the problems
16429 # vanish in a puff of smoke.
16430 if test "X${COLLECT_NAMES+set}" != Xset; then
16431 COLLECT_NAMES=
16432 export COLLECT_NAMES
16435 esac
16437 # Global variables:
16438 ofile=libtool
16439 can_build_shared=yes
16441 # All known linkers require a `.a' archive for static linking (except MSVC,
16442 # which needs '.lib').
16443 libext=a
16445 with_gnu_ld="$lt_cv_prog_gnu_ld"
16447 old_CC="$CC"
16448 old_CFLAGS="$CFLAGS"
16450 # Set sane defaults for various variables
16451 test -z "$CC" && CC=cc
16452 test -z "$LTCC" && LTCC=$CC
16453 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16454 test -z "$LD" && LD=ld
16455 test -z "$ac_objext" && ac_objext=o
16457 for cc_temp in $compiler""; do
16458 case $cc_temp in
16459 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16460 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16461 \-*) ;;
16462 *) break;;
16463 esac
16464 done
16465 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16468 # Only perform the check for file, if the check method requires it
16469 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16470 case $deplibs_check_method in
16471 file_magic*)
16472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16474 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16475 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16476 $as_echo_n "(cached) " >&6
16477 else
16478 case $MAGIC_CMD in
16479 [\\/*] | ?:[\\/]*)
16480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16483 lt_save_MAGIC_CMD="$MAGIC_CMD"
16484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16486 for ac_dir in $ac_dummy; do
16487 IFS="$lt_save_ifs"
16488 test -z "$ac_dir" && ac_dir=.
16489 if test -f $ac_dir/${ac_tool_prefix}file; then
16490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16491 if test -n "$file_magic_test_file"; then
16492 case $deplibs_check_method in
16493 "file_magic "*)
16494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16497 $EGREP "$file_magic_regex" > /dev/null; then
16499 else
16500 cat <<_LT_EOF 1>&2
16502 *** Warning: the command libtool uses to detect shared libraries,
16503 *** $file_magic_cmd, produces output that libtool cannot recognize.
16504 *** The result is that libtool may fail to recognize shared libraries
16505 *** as such. This will affect the creation of libtool libraries that
16506 *** depend on shared libraries, but programs linked with such libtool
16507 *** libraries will work regardless of this problem. Nevertheless, you
16508 *** may want to report the problem to your system manager and/or to
16509 *** bug-libtool@gnu.org
16511 _LT_EOF
16512 fi ;;
16513 esac
16515 break
16517 done
16518 IFS="$lt_save_ifs"
16519 MAGIC_CMD="$lt_save_MAGIC_CMD"
16521 esac
16524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16525 if test -n "$MAGIC_CMD"; then
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16527 $as_echo "$MAGIC_CMD" >&6; }
16528 else
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16537 if test -z "$lt_cv_path_MAGIC_CMD"; then
16538 if test -n "$ac_tool_prefix"; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16540 $as_echo_n "checking for file... " >&6; }
16541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 case $MAGIC_CMD in
16545 [\\/*] | ?:[\\/]*)
16546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16549 lt_save_MAGIC_CMD="$MAGIC_CMD"
16550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16552 for ac_dir in $ac_dummy; do
16553 IFS="$lt_save_ifs"
16554 test -z "$ac_dir" && ac_dir=.
16555 if test -f $ac_dir/file; then
16556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16557 if test -n "$file_magic_test_file"; then
16558 case $deplibs_check_method in
16559 "file_magic "*)
16560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16563 $EGREP "$file_magic_regex" > /dev/null; then
16565 else
16566 cat <<_LT_EOF 1>&2
16568 *** Warning: the command libtool uses to detect shared libraries,
16569 *** $file_magic_cmd, produces output that libtool cannot recognize.
16570 *** The result is that libtool may fail to recognize shared libraries
16571 *** as such. This will affect the creation of libtool libraries that
16572 *** depend on shared libraries, but programs linked with such libtool
16573 *** libraries will work regardless of this problem. Nevertheless, you
16574 *** may want to report the problem to your system manager and/or to
16575 *** bug-libtool@gnu.org
16577 _LT_EOF
16578 fi ;;
16579 esac
16581 break
16583 done
16584 IFS="$lt_save_ifs"
16585 MAGIC_CMD="$lt_save_MAGIC_CMD"
16587 esac
16590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16591 if test -n "$MAGIC_CMD"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16593 $as_echo "$MAGIC_CMD" >&6; }
16594 else
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16600 else
16601 MAGIC_CMD=:
16607 esac
16609 # Use C for the default configuration in the libtool script
16611 lt_save_CC="$CC"
16612 ac_ext=c
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16619 # Source file extension for C test sources.
16620 ac_ext=c
16622 # Object file extension for compiled C test sources.
16623 objext=o
16624 objext=$objext
16626 # Code to be used in simple compile tests
16627 lt_simple_compile_test_code="int some_variable = 0;"
16629 # Code to be used in simple link tests
16630 lt_simple_link_test_code='int main(){return(0);}'
16638 # If no C compiler was specified, use CC.
16639 LTCC=${LTCC-"$CC"}
16641 # If no C compiler flags were specified, use CFLAGS.
16642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16644 # Allow CC to be a program name with arguments.
16645 compiler=$CC
16647 # Save the default compiler, since it gets overwritten when the other
16648 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16649 compiler_DEFAULT=$CC
16651 # save warnings/boilerplate of simple test code
16652 ac_outfile=conftest.$ac_objext
16653 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16654 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16655 _lt_compiler_boilerplate=`cat conftest.err`
16656 $RM conftest*
16658 ac_outfile=conftest.$ac_objext
16659 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16660 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16661 _lt_linker_boilerplate=`cat conftest.err`
16662 $RM -r conftest*
16665 ## CAVEAT EMPTOR:
16666 ## There is no encapsulation within the following macros, do not change
16667 ## the running order or otherwise move them around unless you know exactly
16668 ## what you are doing...
16669 if test -n "$compiler"; then
16671 lt_prog_compiler_no_builtin_flag=
16673 if test "$GCC" = yes; then
16674 case $cc_basename in
16675 nvcc*)
16676 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16678 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16679 esac
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16682 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16683 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16684 $as_echo_n "(cached) " >&6
16685 else
16686 lt_cv_prog_compiler_rtti_exceptions=no
16687 ac_outfile=conftest.$ac_objext
16688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16689 lt_compiler_flag="-fno-rtti -fno-exceptions"
16690 # Insert the option either (1) after the last *FLAGS variable, or
16691 # (2) before a word containing "conftest.", or (3) at the end.
16692 # Note that $ac_compile itself does not contain backslashes and begins
16693 # with a dollar sign (not a hyphen), so the echo should work correctly.
16694 # The option is referenced via a variable to avoid confusing sed.
16695 lt_compile=`echo "$ac_compile" | $SED \
16696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16698 -e 's:$: $lt_compiler_flag:'`
16699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16700 (eval "$lt_compile" 2>conftest.err)
16701 ac_status=$?
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 if (exit $ac_status) && test -s "$ac_outfile"; then
16705 # The compiler can only warn and ignore the option if not recognized
16706 # So say no if there are warnings other than the usual output.
16707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16710 lt_cv_prog_compiler_rtti_exceptions=yes
16713 $RM conftest*
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16717 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16719 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16720 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16721 else
16732 lt_prog_compiler_wl=
16733 lt_prog_compiler_pic=
16734 lt_prog_compiler_static=
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16737 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16739 if test "$GCC" = yes; then
16740 lt_prog_compiler_wl='-Wl,'
16741 lt_prog_compiler_static='-static'
16743 case $host_os in
16744 aix*)
16745 # All AIX code is PIC.
16746 if test "$host_cpu" = ia64; then
16747 # AIX 5 now supports IA64 processor
16748 lt_prog_compiler_static='-Bstatic'
16750 lt_prog_compiler_pic='-fPIC'
16753 amigaos*)
16754 case $host_cpu in
16755 powerpc)
16756 # see comment about AmigaOS4 .so support
16757 lt_prog_compiler_pic='-fPIC'
16759 m68k)
16760 # FIXME: we need at least 68020 code to build shared libraries, but
16761 # adding the `-m68020' flag to GCC prevents building anything better,
16762 # like `-m68040'.
16763 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16765 esac
16768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16769 # PIC is the default for these OSes.
16772 mingw* | cygwin* | pw32* | os2* | cegcc*)
16773 # This hack is so that the source file can tell whether it is being
16774 # built for inclusion in a dll (and should export symbols for example).
16775 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16776 # (--disable-auto-import) libraries
16777 lt_prog_compiler_pic='-DDLL_EXPORT'
16780 darwin* | rhapsody*)
16781 # PIC is the default on this platform
16782 # Common symbols not allowed in MH_DYLIB files
16783 lt_prog_compiler_pic='-fno-common'
16786 haiku*)
16787 # PIC is the default for Haiku.
16788 # The "-static" flag exists, but is broken.
16789 lt_prog_compiler_static=
16792 hpux*)
16793 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16794 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16795 # sets the default TLS model and affects inlining.
16796 case $host_cpu in
16797 hppa*64*)
16798 # +Z the default
16801 lt_prog_compiler_pic='-fPIC'
16803 esac
16806 interix[3-9]*)
16807 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16808 # Instead, we relocate shared libraries at runtime.
16811 msdosdjgpp*)
16812 # Just because we use GCC doesn't mean we suddenly get shared libraries
16813 # on systems that don't support them.
16814 lt_prog_compiler_can_build_shared=no
16815 enable_shared=no
16818 *nto* | *qnx*)
16819 # QNX uses GNU C++, but need to define -shared option too, otherwise
16820 # it will coredump.
16821 lt_prog_compiler_pic='-fPIC -shared'
16824 sysv4*MP*)
16825 if test -d /usr/nec; then
16826 lt_prog_compiler_pic=-Kconform_pic
16831 lt_prog_compiler_pic='-fPIC'
16833 esac
16835 case $cc_basename in
16836 nvcc*) # Cuda Compiler Driver 2.2
16837 lt_prog_compiler_wl='-Xlinker '
16838 lt_prog_compiler_pic='-Xcompiler -fPIC'
16840 esac
16841 else
16842 # PORTME Check for flag to pass linker flags through the system compiler.
16843 case $host_os in
16844 aix*)
16845 lt_prog_compiler_wl='-Wl,'
16846 if test "$host_cpu" = ia64; then
16847 # AIX 5 now supports IA64 processor
16848 lt_prog_compiler_static='-Bstatic'
16849 else
16850 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16854 mingw* | cygwin* | pw32* | os2* | cegcc*)
16855 # This hack is so that the source file can tell whether it is being
16856 # built for inclusion in a dll (and should export symbols for example).
16857 lt_prog_compiler_pic='-DDLL_EXPORT'
16860 hpux9* | hpux10* | hpux11*)
16861 lt_prog_compiler_wl='-Wl,'
16862 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16863 # not for PA HP-UX.
16864 case $host_cpu in
16865 hppa*64*|ia64*)
16866 # +Z the default
16869 lt_prog_compiler_pic='+Z'
16871 esac
16872 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16873 lt_prog_compiler_static='${wl}-a ${wl}archive'
16876 irix5* | irix6* | nonstopux*)
16877 lt_prog_compiler_wl='-Wl,'
16878 # PIC (with -KPIC) is the default.
16879 lt_prog_compiler_static='-non_shared'
16882 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16883 case $cc_basename in
16884 # old Intel for x86_64 which still supported -KPIC.
16885 ecc*)
16886 lt_prog_compiler_wl='-Wl,'
16887 lt_prog_compiler_pic='-KPIC'
16888 lt_prog_compiler_static='-static'
16890 # icc used to be incompatible with GCC.
16891 # ICC 10 doesn't accept -KPIC any more.
16892 icc* | ifort*)
16893 lt_prog_compiler_wl='-Wl,'
16894 lt_prog_compiler_pic='-fPIC'
16895 lt_prog_compiler_static='-static'
16897 # Lahey Fortran 8.1.
16898 lf95*)
16899 lt_prog_compiler_wl='-Wl,'
16900 lt_prog_compiler_pic='--shared'
16901 lt_prog_compiler_static='--static'
16903 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16904 # Portland Group compilers (*not* the Pentium gcc compiler,
16905 # which looks to be a dead project)
16906 lt_prog_compiler_wl='-Wl,'
16907 lt_prog_compiler_pic='-fpic'
16908 lt_prog_compiler_static='-Bstatic'
16910 ccc*)
16911 lt_prog_compiler_wl='-Wl,'
16912 # All Alpha code is PIC.
16913 lt_prog_compiler_static='-non_shared'
16915 xl* | bgxl* | bgf* | mpixl*)
16916 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16917 lt_prog_compiler_wl='-Wl,'
16918 lt_prog_compiler_pic='-qpic'
16919 lt_prog_compiler_static='-qstaticlink'
16922 case `$CC -V 2>&1 | sed 5q` in
16923 *Sun\ F* | *Sun*Fortran*)
16924 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16925 lt_prog_compiler_pic='-KPIC'
16926 lt_prog_compiler_static='-Bstatic'
16927 lt_prog_compiler_wl=''
16929 *Sun\ C*)
16930 # Sun C 5.9
16931 lt_prog_compiler_pic='-KPIC'
16932 lt_prog_compiler_static='-Bstatic'
16933 lt_prog_compiler_wl='-Wl,'
16935 esac
16937 esac
16940 newsos6)
16941 lt_prog_compiler_pic='-KPIC'
16942 lt_prog_compiler_static='-Bstatic'
16945 *nto* | *qnx*)
16946 # QNX uses GNU C++, but need to define -shared option too, otherwise
16947 # it will coredump.
16948 lt_prog_compiler_pic='-fPIC -shared'
16951 osf3* | osf4* | osf5*)
16952 lt_prog_compiler_wl='-Wl,'
16953 # All OSF/1 code is PIC.
16954 lt_prog_compiler_static='-non_shared'
16957 rdos*)
16958 lt_prog_compiler_static='-non_shared'
16961 solaris*)
16962 lt_prog_compiler_pic='-KPIC'
16963 lt_prog_compiler_static='-Bstatic'
16964 case $cc_basename in
16965 f77* | f90* | f95*)
16966 lt_prog_compiler_wl='-Qoption ld ';;
16968 lt_prog_compiler_wl='-Wl,';;
16969 esac
16972 sunos4*)
16973 lt_prog_compiler_wl='-Qoption ld '
16974 lt_prog_compiler_pic='-PIC'
16975 lt_prog_compiler_static='-Bstatic'
16978 sysv4 | sysv4.2uw2* | sysv4.3*)
16979 lt_prog_compiler_wl='-Wl,'
16980 lt_prog_compiler_pic='-KPIC'
16981 lt_prog_compiler_static='-Bstatic'
16984 sysv4*MP*)
16985 if test -d /usr/nec ;then
16986 lt_prog_compiler_pic='-Kconform_pic'
16987 lt_prog_compiler_static='-Bstatic'
16991 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16992 lt_prog_compiler_wl='-Wl,'
16993 lt_prog_compiler_pic='-KPIC'
16994 lt_prog_compiler_static='-Bstatic'
16997 unicos*)
16998 lt_prog_compiler_wl='-Wl,'
16999 lt_prog_compiler_can_build_shared=no
17002 uts4*)
17003 lt_prog_compiler_pic='-pic'
17004 lt_prog_compiler_static='-Bstatic'
17008 lt_prog_compiler_can_build_shared=no
17010 esac
17013 case $host_os in
17014 # For platforms which do not support PIC, -DPIC is meaningless:
17015 *djgpp*)
17016 lt_prog_compiler_pic=
17019 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17021 esac
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17023 $as_echo "$lt_prog_compiler_pic" >&6; }
17031 # Check to make sure the PIC flag actually works.
17033 if test -n "$lt_prog_compiler_pic"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 lt_cv_prog_compiler_pic_works=no
17040 ac_outfile=conftest.$ac_objext
17041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17043 # Insert the option either (1) after the last *FLAGS variable, or
17044 # (2) before a word containing "conftest.", or (3) at the end.
17045 # Note that $ac_compile itself does not contain backslashes and begins
17046 # with a dollar sign (not a hyphen), so the echo should work correctly.
17047 # The option is referenced via a variable to avoid confusing sed.
17048 lt_compile=`echo "$ac_compile" | $SED \
17049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17051 -e 's:$: $lt_compiler_flag:'`
17052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17053 (eval "$lt_compile" 2>conftest.err)
17054 ac_status=$?
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 if (exit $ac_status) && test -s "$ac_outfile"; then
17058 # The compiler can only warn and ignore the option if not recognized
17059 # So say no if there are warnings other than the usual output.
17060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17063 lt_cv_prog_compiler_pic_works=yes
17066 $RM conftest*
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17072 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17073 case $lt_prog_compiler_pic in
17074 "" | " "*) ;;
17075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17076 esac
17077 else
17078 lt_prog_compiler_pic=
17079 lt_prog_compiler_can_build_shared=no
17090 # Check to make sure the static flag actually works.
17092 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17095 if ${lt_cv_prog_compiler_static_works+:} false; then :
17096 $as_echo_n "(cached) " >&6
17097 else
17098 lt_cv_prog_compiler_static_works=no
17099 save_LDFLAGS="$LDFLAGS"
17100 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17103 # The linker can only warn and ignore the option if not recognized
17104 # So say no if there are warnings
17105 if test -s conftest.err; then
17106 # Append any errors to the config.log.
17107 cat conftest.err 1>&5
17108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17110 if diff conftest.exp conftest.er2 >/dev/null; then
17111 lt_cv_prog_compiler_static_works=yes
17113 else
17114 lt_cv_prog_compiler_static_works=yes
17117 $RM -r conftest*
17118 LDFLAGS="$save_LDFLAGS"
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17122 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17124 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17126 else
17127 lt_prog_compiler_static=
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17137 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17138 if ${lt_cv_prog_compiler_c_o+:} false; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 lt_cv_prog_compiler_c_o=no
17142 $RM -r conftest 2>/dev/null
17143 mkdir conftest
17144 cd conftest
17145 mkdir out
17146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17148 lt_compiler_flag="-o out/conftest2.$ac_objext"
17149 # Insert the option either (1) after the last *FLAGS variable, or
17150 # (2) before a word containing "conftest.", or (3) at the end.
17151 # Note that $ac_compile itself does not contain backslashes and begins
17152 # with a dollar sign (not a hyphen), so the echo should work correctly.
17153 lt_compile=`echo "$ac_compile" | $SED \
17154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156 -e 's:$: $lt_compiler_flag:'`
17157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17158 (eval "$lt_compile" 2>out/conftest.err)
17159 ac_status=$?
17160 cat out/conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17163 then
17164 # The compiler can only warn and ignore the option if not recognized
17165 # So say no if there are warnings
17166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17169 lt_cv_prog_compiler_c_o=yes
17172 chmod u+w . 2>&5
17173 $RM conftest*
17174 # SGI C++ compiler will create directory out/ii_files/ for
17175 # template instantiation
17176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17177 $RM out/* && rmdir out
17178 cd ..
17179 $RM -r conftest
17180 $RM conftest*
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17193 if ${lt_cv_prog_compiler_c_o+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 lt_cv_prog_compiler_c_o=no
17197 $RM -r conftest 2>/dev/null
17198 mkdir conftest
17199 cd conftest
17200 mkdir out
17201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17203 lt_compiler_flag="-o out/conftest2.$ac_objext"
17204 # Insert the option either (1) after the last *FLAGS variable, or
17205 # (2) before a word containing "conftest.", or (3) at the end.
17206 # Note that $ac_compile itself does not contain backslashes and begins
17207 # with a dollar sign (not a hyphen), so the echo should work correctly.
17208 lt_compile=`echo "$ac_compile" | $SED \
17209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17211 -e 's:$: $lt_compiler_flag:'`
17212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17213 (eval "$lt_compile" 2>out/conftest.err)
17214 ac_status=$?
17215 cat out/conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17218 then
17219 # The compiler can only warn and ignore the option if not recognized
17220 # So say no if there are warnings
17221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17224 lt_cv_prog_compiler_c_o=yes
17227 chmod u+w . 2>&5
17228 $RM conftest*
17229 # SGI C++ compiler will create directory out/ii_files/ for
17230 # template instantiation
17231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17232 $RM out/* && rmdir out
17233 cd ..
17234 $RM -r conftest
17235 $RM conftest*
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17239 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17244 hard_links="nottested"
17245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17246 # do not overwrite the value of need_locks provided by the user
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17248 $as_echo_n "checking if we can lock with hard links... " >&6; }
17249 hard_links=yes
17250 $RM conftest*
17251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17252 touch conftest.a
17253 ln conftest.a conftest.b 2>&5 || hard_links=no
17254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17256 $as_echo "$hard_links" >&6; }
17257 if test "$hard_links" = no; then
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17260 need_locks=warn
17262 else
17263 need_locks=no
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17272 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17274 runpath_var=
17275 allow_undefined_flag=
17276 always_export_symbols=no
17277 archive_cmds=
17278 archive_expsym_cmds=
17279 compiler_needs_object=no
17280 enable_shared_with_static_runtimes=no
17281 export_dynamic_flag_spec=
17282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17283 hardcode_automatic=no
17284 hardcode_direct=no
17285 hardcode_direct_absolute=no
17286 hardcode_libdir_flag_spec=
17287 hardcode_libdir_flag_spec_ld=
17288 hardcode_libdir_separator=
17289 hardcode_minus_L=no
17290 hardcode_shlibpath_var=unsupported
17291 inherit_rpath=no
17292 link_all_deplibs=unknown
17293 module_cmds=
17294 module_expsym_cmds=
17295 old_archive_from_new_cmds=
17296 old_archive_from_expsyms_cmds=
17297 thread_safe_flag_spec=
17298 whole_archive_flag_spec=
17299 # include_expsyms should be a list of space-separated symbols to be *always*
17300 # included in the symbol list
17301 include_expsyms=
17302 # exclude_expsyms can be an extended regexp of symbols to exclude
17303 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17305 # as well as any symbol that contains `d'.
17306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17308 # platforms (ab)use it in PIC code, but their linkers get confused if
17309 # the symbol is explicitly referenced. Since portable code cannot
17310 # rely on this symbol name, it's probably fine to never include it in
17311 # preloaded symbol tables.
17312 # Exclude shared library initialization/finalization symbols.
17313 extract_expsyms_cmds=
17315 case $host_os in
17316 cygwin* | mingw* | pw32* | cegcc*)
17317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17318 # When not using gcc, we currently assume that we are using
17319 # Microsoft Visual C++.
17320 if test "$GCC" != yes; then
17321 with_gnu_ld=no
17324 interix*)
17325 # we just hope/assume this is gcc and not c89 (= MSVC++)
17326 with_gnu_ld=yes
17328 openbsd*)
17329 with_gnu_ld=no
17331 esac
17333 ld_shlibs=yes
17335 # On some targets, GNU ld is compatible enough with the native linker
17336 # that we're better off using the native interface for both.
17337 lt_use_gnu_ld_interface=no
17338 if test "$with_gnu_ld" = yes; then
17339 case $host_os in
17340 aix*)
17341 # The AIX port of GNU ld has always aspired to compatibility
17342 # with the native linker. However, as the warning in the GNU ld
17343 # block says, versions before 2.19.5* couldn't really create working
17344 # shared libraries, regardless of the interface used.
17345 case `$LD -v 2>&1` in
17346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17350 lt_use_gnu_ld_interface=yes
17352 esac
17355 lt_use_gnu_ld_interface=yes
17357 esac
17360 if test "$lt_use_gnu_ld_interface" = yes; then
17361 # If archive_cmds runs LD, not CC, wlarc should be empty
17362 wlarc='${wl}'
17364 # Set some defaults for GNU ld with shared library support. These
17365 # are reset later if shared libraries are not supported. Putting them
17366 # here allows them to be overridden if necessary.
17367 runpath_var=LD_RUN_PATH
17368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17369 export_dynamic_flag_spec='${wl}--export-dynamic'
17370 # ancient GNU ld didn't support --whole-archive et. al.
17371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17372 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17373 else
17374 whole_archive_flag_spec=
17376 supports_anon_versioning=no
17377 case `$LD -v 2>&1` in
17378 *GNU\ gold*) supports_anon_versioning=yes ;;
17379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17382 *\ 2.11.*) ;; # other 2.11 versions
17383 *) supports_anon_versioning=yes ;;
17384 esac
17386 # See if GNU ld supports shared libraries.
17387 case $host_os in
17388 aix[3-9]*)
17389 # On AIX/PPC, the GNU linker is very broken
17390 if test "$host_cpu" != ia64; then
17391 ld_shlibs=no
17392 cat <<_LT_EOF 1>&2
17394 *** Warning: the GNU linker, at least up to release 2.19, is reported
17395 *** to be unable to reliably create shared libraries on AIX.
17396 *** Therefore, libtool is disabling shared libraries support. If you
17397 *** really care for shared libraries, you may want to install binutils
17398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17399 *** You will then need to restart the configuration process.
17401 _LT_EOF
17405 amigaos*)
17406 case $host_cpu in
17407 powerpc)
17408 # see comment about AmigaOS4 .so support
17409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 archive_expsym_cmds=''
17412 m68k)
17413 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)'
17414 hardcode_libdir_flag_spec='-L$libdir'
17415 hardcode_minus_L=yes
17417 esac
17420 beos*)
17421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17422 allow_undefined_flag=unsupported
17423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17424 # support --undefined. This deserves some investigation. FIXME
17425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17426 else
17427 ld_shlibs=no
17431 cygwin* | mingw* | pw32* | cegcc*)
17432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17433 # as there is no search path for DLLs.
17434 hardcode_libdir_flag_spec='-L$libdir'
17435 export_dynamic_flag_spec='${wl}--export-all-symbols'
17436 allow_undefined_flag=unsupported
17437 always_export_symbols=no
17438 enable_shared_with_static_runtimes=yes
17439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17443 # If the export-symbols file already is a .def file (1st line
17444 # is EXPORTS), use it as is; otherwise, prepend...
17445 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17446 cp $export_symbols $output_objdir/$soname.def;
17447 else
17448 echo EXPORTS > $output_objdir/$soname.def;
17449 cat $export_symbols >> $output_objdir/$soname.def;
17451 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17452 else
17453 ld_shlibs=no
17457 haiku*)
17458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17459 link_all_deplibs=yes
17462 interix[3-9]*)
17463 hardcode_direct=no
17464 hardcode_shlibpath_var=no
17465 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17466 export_dynamic_flag_spec='${wl}-E'
17467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17468 # Instead, shared libraries are loaded at an image base (0x10000000 by
17469 # default) and relocated if they conflict, which is a slow very memory
17470 # consuming and fragmenting process. To avoid this, we pick a random,
17471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17474 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'
17477 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17478 tmp_diet=no
17479 if test "$host_os" = linux-dietlibc; then
17480 case $cc_basename in
17481 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17482 esac
17484 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17485 && test "$tmp_diet" = no
17486 then
17487 tmp_addflag=' $pic_flag'
17488 tmp_sharedflag='-shared'
17489 case $cc_basename,$host_cpu in
17490 pgcc*) # Portland Group C compiler
17491 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'
17492 tmp_addflag=' $pic_flag'
17494 pgf77* | pgf90* | pgf95* | pgfortran*)
17495 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
17498 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17499 tmp_addflag=' -i_dynamic' ;;
17500 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17501 tmp_addflag=' -i_dynamic -nofor_main' ;;
17502 ifc* | ifort*) # Intel Fortran compiler
17503 tmp_addflag=' -nofor_main' ;;
17504 lf95*) # Lahey Fortran 8.1
17505 whole_archive_flag_spec=
17506 tmp_sharedflag='--shared' ;;
17507 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17508 tmp_sharedflag='-qmkshrobj'
17509 tmp_addflag= ;;
17510 nvcc*) # Cuda Compiler Driver 2.2
17511 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'
17512 compiler_needs_object=yes
17514 esac
17515 case `$CC -V 2>&1 | sed 5q` in
17516 *Sun\ C*) # Sun C 5.9
17517 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'
17518 compiler_needs_object=yes
17519 tmp_sharedflag='-G' ;;
17520 *Sun\ F*) # Sun Fortran 8.3
17521 tmp_sharedflag='-G' ;;
17522 esac
17523 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17525 if test "x$supports_anon_versioning" = xyes; then
17526 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17528 echo "local: *; };" >> $output_objdir/$libname.ver~
17529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17532 case $cc_basename in
17533 xlf* | bgf* | bgxlf* | mpixlf*)
17534 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17535 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17536 hardcode_libdir_flag_spec=
17537 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17538 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17539 if test "x$supports_anon_versioning" = xyes; then
17540 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17542 echo "local: *; };" >> $output_objdir/$libname.ver~
17543 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17546 esac
17547 else
17548 ld_shlibs=no
17552 netbsd*)
17553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17554 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17555 wlarc=
17556 else
17557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17562 solaris*)
17563 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17564 ld_shlibs=no
17565 cat <<_LT_EOF 1>&2
17567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17568 *** create shared libraries on Solaris systems. Therefore, libtool
17569 *** is disabling shared libraries support. We urge you to upgrade GNU
17570 *** binutils to release 2.9.1 or newer. Another option is to modify
17571 *** your PATH or compiler configuration so that the native linker is
17572 *** used, and then restart.
17574 _LT_EOF
17575 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17578 else
17579 ld_shlibs=no
17583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17584 case `$LD -v 2>&1` in
17585 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17586 ld_shlibs=no
17587 cat <<_LT_EOF 1>&2
17589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17590 *** reliably create shared libraries on SCO systems. Therefore, libtool
17591 *** is disabling shared libraries support. We urge you to upgrade GNU
17592 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17593 *** your PATH or compiler configuration so that the native linker is
17594 *** used, and then restart.
17596 _LT_EOF
17599 # For security reasons, it is highly recommended that you always
17600 # use absolute paths for naming shared libraries, and exclude the
17601 # DT_RUNPATH tag from executables and libraries. But doing so
17602 # requires that you compile everything twice, which is a pain.
17603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17607 else
17608 ld_shlibs=no
17611 esac
17614 sunos4*)
17615 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17616 wlarc=
17617 hardcode_direct=yes
17618 hardcode_shlibpath_var=no
17622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17625 else
17626 ld_shlibs=no
17629 esac
17631 if test "$ld_shlibs" = no; then
17632 runpath_var=
17633 hardcode_libdir_flag_spec=
17634 export_dynamic_flag_spec=
17635 whole_archive_flag_spec=
17637 else
17638 # PORTME fill in a description of your system's linker (not GNU ld)
17639 case $host_os in
17640 aix3*)
17641 allow_undefined_flag=unsupported
17642 always_export_symbols=yes
17643 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'
17644 # Note: this linker hardcodes the directories in LIBPATH if there
17645 # are no directories specified by -L.
17646 hardcode_minus_L=yes
17647 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17648 # Neither direct hardcoding nor static linking is supported with a
17649 # broken collect2.
17650 hardcode_direct=unsupported
17654 aix[4-9]*)
17655 if test "$host_cpu" = ia64; then
17656 # On IA64, the linker does run time linking by default, so we don't
17657 # have to do anything special.
17658 aix_use_runtimelinking=no
17659 exp_sym_flag='-Bexport'
17660 no_entry_flag=""
17661 else
17662 # If we're using GNU nm, then we don't want the "-C" option.
17663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17664 # Also, AIX nm treats weak defined symbols like other global
17665 # defined symbols, whereas GNU nm marks them as "W".
17666 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17667 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'
17668 else
17669 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'
17671 aix_use_runtimelinking=no
17673 # Test if we are trying to use run time linking or normal
17674 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17675 # need to do runtime linking.
17676 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17677 for ld_flag in $LDFLAGS; do
17678 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17679 aix_use_runtimelinking=yes
17680 break
17682 done
17684 esac
17686 exp_sym_flag='-bexport'
17687 no_entry_flag='-bnoentry'
17690 # When large executables or shared objects are built, AIX ld can
17691 # have problems creating the table of contents. If linking a library
17692 # or program results in "error TOC overflow" add -mminimal-toc to
17693 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17694 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17696 archive_cmds=''
17697 hardcode_direct=yes
17698 hardcode_direct_absolute=yes
17699 hardcode_libdir_separator=':'
17700 link_all_deplibs=yes
17701 file_list_spec='${wl}-f,'
17703 if test "$GCC" = yes; then
17704 case $host_os in aix4.[012]|aix4.[012].*)
17705 # We only want to do this on AIX 4.2 and lower, the check
17706 # below for broken collect2 doesn't work under 4.3+
17707 collect2name=`${CC} -print-prog-name=collect2`
17708 if test -f "$collect2name" &&
17709 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17710 then
17711 # We have reworked collect2
17713 else
17714 # We have old collect2
17715 hardcode_direct=unsupported
17716 # It fails to find uninstalled libraries when the uninstalled
17717 # path is not listed in the libpath. Setting hardcode_minus_L
17718 # to unsupported forces relinking
17719 hardcode_minus_L=yes
17720 hardcode_libdir_flag_spec='-L$libdir'
17721 hardcode_libdir_separator=
17724 esac
17725 shared_flag='-shared'
17726 if test "$aix_use_runtimelinking" = yes; then
17727 shared_flag="$shared_flag "'${wl}-G'
17729 else
17730 # not using gcc
17731 if test "$host_cpu" = ia64; then
17732 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17733 # chokes on -Wl,-G. The following line is correct:
17734 shared_flag='-G'
17735 else
17736 if test "$aix_use_runtimelinking" = yes; then
17737 shared_flag='${wl}-G'
17738 else
17739 shared_flag='${wl}-bM:SRE'
17744 export_dynamic_flag_spec='${wl}-bexpall'
17745 # It seems that -bexpall does not export symbols beginning with
17746 # underscore (_), so it is better to generate a list of symbols to export.
17747 always_export_symbols=yes
17748 if test "$aix_use_runtimelinking" = yes; then
17749 # Warning - without using the other runtime loading flags (-brtl),
17750 # -berok will link without error, but may produce a broken library.
17751 allow_undefined_flag='-berok'
17752 # Determine the default libpath from the value encoded in an
17753 # empty executable.
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17758 main ()
17762 return 0;
17764 _ACEOF
17765 if ac_fn_c_try_link "$LINENO"; then :
17767 lt_aix_libpath_sed='
17768 /Import File Strings/,/^$/ {
17769 /^0/ {
17770 s/^0 *\(.*\)$/\1/
17774 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17775 # Check for a 64-bit object if we didn't find anything.
17776 if test -z "$aix_libpath"; then
17777 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17784 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17785 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"
17786 else
17787 if test "$host_cpu" = ia64; then
17788 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17789 allow_undefined_flag="-z nodefs"
17790 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"
17791 else
17792 # Determine the default libpath from the value encoded in an
17793 # empty executable.
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17798 main ()
17802 return 0;
17804 _ACEOF
17805 if ac_fn_c_try_link "$LINENO"; then :
17807 lt_aix_libpath_sed='
17808 /Import File Strings/,/^$/ {
17809 /^0/ {
17810 s/^0 *\(.*\)$/\1/
17814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17815 # Check for a 64-bit object if we didn't find anything.
17816 if test -z "$aix_libpath"; then
17817 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 rm -f core conftest.err conftest.$ac_objext \
17821 conftest$ac_exeext conftest.$ac_ext
17822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17825 # Warning - without using the other run time loading flags,
17826 # -berok will link without error, but may produce a broken library.
17827 no_undefined_flag=' ${wl}-bernotok'
17828 allow_undefined_flag=' ${wl}-berok'
17829 if test "$with_gnu_ld" = yes; then
17830 # We only use this code for GNU lds that support --whole-archive.
17831 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17832 else
17833 # Exported symbols can be pulled into shared objects from archives
17834 whole_archive_flag_spec='$convenience'
17836 archive_cmds_need_lc=yes
17837 # This is similar to how AIX traditionally builds its shared libraries.
17838 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'
17843 amigaos*)
17844 case $host_cpu in
17845 powerpc)
17846 # see comment about AmigaOS4 .so support
17847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17848 archive_expsym_cmds=''
17850 m68k)
17851 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)'
17852 hardcode_libdir_flag_spec='-L$libdir'
17853 hardcode_minus_L=yes
17855 esac
17858 bsdi[45]*)
17859 export_dynamic_flag_spec=-rdynamic
17862 cygwin* | mingw* | pw32* | cegcc*)
17863 # When not using gcc, we currently assume that we are using
17864 # Microsoft Visual C++.
17865 # hardcode_libdir_flag_spec is actually meaningless, as there is
17866 # no search path for DLLs.
17867 hardcode_libdir_flag_spec=' '
17868 allow_undefined_flag=unsupported
17869 # Tell ltmain to make .lib files, not .a files.
17870 libext=lib
17871 # Tell ltmain to make .dll files, not .so files.
17872 shrext_cmds=".dll"
17873 # FIXME: Setting linknames here is a bad hack.
17874 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17875 # The linker will automatically build a .lib file if we build a DLL.
17876 old_archive_from_new_cmds='true'
17877 # FIXME: Should let the user specify the lib program.
17878 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17879 fix_srcfile_path='`cygpath -w "$srcfile"`'
17880 enable_shared_with_static_runtimes=yes
17883 darwin* | rhapsody*)
17886 archive_cmds_need_lc=no
17887 hardcode_direct=no
17888 hardcode_automatic=yes
17889 hardcode_shlibpath_var=unsupported
17890 if test "$lt_cv_ld_force_load" = "yes"; then
17891 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\"`'
17892 else
17893 whole_archive_flag_spec=''
17895 link_all_deplibs=yes
17896 allow_undefined_flag="$_lt_dar_allow_undefined"
17897 case $cc_basename in
17898 ifort*) _lt_dar_can_shared=yes ;;
17899 *) _lt_dar_can_shared=$GCC ;;
17900 esac
17901 if test "$_lt_dar_can_shared" = "yes"; then
17902 output_verbose_link_cmd=func_echo_all
17903 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17904 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17905 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}"
17906 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}"
17908 else
17909 ld_shlibs=no
17914 dgux*)
17915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17916 hardcode_libdir_flag_spec='-L$libdir'
17917 hardcode_shlibpath_var=no
17920 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17921 # support. Future versions do this automatically, but an explicit c++rt0.o
17922 # does not break anything, and helps significantly (at the cost of a little
17923 # extra space).
17924 freebsd2.2*)
17925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17926 hardcode_libdir_flag_spec='-R$libdir'
17927 hardcode_direct=yes
17928 hardcode_shlibpath_var=no
17931 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17932 freebsd2.*)
17933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17934 hardcode_direct=yes
17935 hardcode_minus_L=yes
17936 hardcode_shlibpath_var=no
17939 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17940 freebsd* | dragonfly*)
17941 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17942 hardcode_libdir_flag_spec='-R$libdir'
17943 hardcode_direct=yes
17944 hardcode_shlibpath_var=no
17947 hpux9*)
17948 if test "$GCC" = yes; then
17949 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'
17950 else
17951 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'
17953 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17954 hardcode_libdir_separator=:
17955 hardcode_direct=yes
17957 # hardcode_minus_L: Not really in the search PATH,
17958 # but as the default location of the library.
17959 hardcode_minus_L=yes
17960 export_dynamic_flag_spec='${wl}-E'
17963 hpux10*)
17964 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17965 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17966 else
17967 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17969 if test "$with_gnu_ld" = no; then
17970 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17971 hardcode_libdir_flag_spec_ld='+b $libdir'
17972 hardcode_libdir_separator=:
17973 hardcode_direct=yes
17974 hardcode_direct_absolute=yes
17975 export_dynamic_flag_spec='${wl}-E'
17976 # hardcode_minus_L: Not really in the search PATH,
17977 # but as the default location of the library.
17978 hardcode_minus_L=yes
17982 hpux11*)
17983 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17984 case $host_cpu in
17985 hppa*64*)
17986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17988 ia64*)
17989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17992 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17994 esac
17995 else
17996 case $host_cpu in
17997 hppa*64*)
17998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18000 ia64*)
18001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005 # Older versions of the 11.00 compiler do not understand -b yet
18006 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18008 $as_echo_n "checking if $CC understands -b... " >&6; }
18009 if ${lt_cv_prog_compiler__b+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 lt_cv_prog_compiler__b=no
18013 save_LDFLAGS="$LDFLAGS"
18014 LDFLAGS="$LDFLAGS -b"
18015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18017 # The linker can only warn and ignore the option if not recognized
18018 # So say no if there are warnings
18019 if test -s conftest.err; then
18020 # Append any errors to the config.log.
18021 cat conftest.err 1>&5
18022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18024 if diff conftest.exp conftest.er2 >/dev/null; then
18025 lt_cv_prog_compiler__b=yes
18027 else
18028 lt_cv_prog_compiler__b=yes
18031 $RM -r conftest*
18032 LDFLAGS="$save_LDFLAGS"
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18036 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18038 if test x"$lt_cv_prog_compiler__b" = xyes; then
18039 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18040 else
18041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18045 esac
18047 if test "$with_gnu_ld" = no; then
18048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18049 hardcode_libdir_separator=:
18051 case $host_cpu in
18052 hppa*64*|ia64*)
18053 hardcode_direct=no
18054 hardcode_shlibpath_var=no
18057 hardcode_direct=yes
18058 hardcode_direct_absolute=yes
18059 export_dynamic_flag_spec='${wl}-E'
18061 # hardcode_minus_L: Not really in the search PATH,
18062 # but as the default location of the library.
18063 hardcode_minus_L=yes
18065 esac
18069 irix5* | irix6* | nonstopux*)
18070 if test "$GCC" = yes; then
18071 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'
18072 # Try to use the -exported_symbol ld option, if it does not
18073 # work, assume that -exports_file does not work either and
18074 # implicitly export all symbols.
18075 save_LDFLAGS="$LDFLAGS"
18076 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18079 int foo(void) {}
18080 _ACEOF
18081 if ac_fn_c_try_link "$LINENO"; then :
18082 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'
18085 rm -f core conftest.err conftest.$ac_objext \
18086 conftest$ac_exeext conftest.$ac_ext
18087 LDFLAGS="$save_LDFLAGS"
18088 else
18089 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'
18090 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'
18092 archive_cmds_need_lc='no'
18093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18094 hardcode_libdir_separator=:
18095 inherit_rpath=yes
18096 link_all_deplibs=yes
18099 netbsd*)
18100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18102 else
18103 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18105 hardcode_libdir_flag_spec='-R$libdir'
18106 hardcode_direct=yes
18107 hardcode_shlibpath_var=no
18110 newsos6)
18111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_direct=yes
18113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18114 hardcode_libdir_separator=:
18115 hardcode_shlibpath_var=no
18118 *nto* | *qnx*)
18121 openbsd*)
18122 if test -f /usr/libexec/ld.so; then
18123 hardcode_direct=yes
18124 hardcode_shlibpath_var=no
18125 hardcode_direct_absolute=yes
18126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18129 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18130 export_dynamic_flag_spec='${wl}-E'
18131 else
18132 case $host_os in
18133 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18135 hardcode_libdir_flag_spec='-R$libdir'
18138 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18139 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18141 esac
18143 else
18144 ld_shlibs=no
18148 os2*)
18149 hardcode_libdir_flag_spec='-L$libdir'
18150 hardcode_minus_L=yes
18151 allow_undefined_flag=unsupported
18152 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'
18153 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18156 osf3*)
18157 if test "$GCC" = yes; then
18158 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18159 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'
18160 else
18161 allow_undefined_flag=' -expect_unresolved \*'
18162 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'
18164 archive_cmds_need_lc='no'
18165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18166 hardcode_libdir_separator=:
18169 osf4* | osf5*) # as osf3* with the addition of -msym flag
18170 if test "$GCC" = yes; then
18171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18172 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'
18173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18174 else
18175 allow_undefined_flag=' -expect_unresolved \*'
18176 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'
18177 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~
18178 $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'
18180 # Both c and cxx compiler support -rpath directly
18181 hardcode_libdir_flag_spec='-rpath $libdir'
18183 archive_cmds_need_lc='no'
18184 hardcode_libdir_separator=:
18187 solaris*)
18188 no_undefined_flag=' -z defs'
18189 if test "$GCC" = yes; then
18190 wlarc='${wl}'
18191 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18193 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18194 else
18195 case `$CC -V 2>&1` in
18196 *"Compilers 5.0"*)
18197 wlarc=''
18198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18203 wlarc='${wl}'
18204 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18206 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18208 esac
18210 hardcode_libdir_flag_spec='-R$libdir'
18211 hardcode_shlibpath_var=no
18212 case $host_os in
18213 solaris2.[0-5] | solaris2.[0-5].*) ;;
18215 # The compiler driver will combine and reorder linker options,
18216 # but understands `-z linker_flag'. GCC discards it without `$wl',
18217 # but is careful enough not to reorder.
18218 # Supported since Solaris 2.6 (maybe 2.5.1?)
18219 if test "$GCC" = yes; then
18220 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18221 else
18222 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18225 esac
18226 link_all_deplibs=yes
18229 sunos4*)
18230 if test "x$host_vendor" = xsequent; then
18231 # Use $CC to link under sequent, because it throws in some extra .o
18232 # files that make .init and .fini sections work.
18233 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18234 else
18235 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18237 hardcode_libdir_flag_spec='-L$libdir'
18238 hardcode_direct=yes
18239 hardcode_minus_L=yes
18240 hardcode_shlibpath_var=no
18243 sysv4)
18244 case $host_vendor in
18245 sni)
18246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18247 hardcode_direct=yes # is this really true???
18249 siemens)
18250 ## LD is ld it makes a PLAMLIB
18251 ## CC just makes a GrossModule.
18252 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18253 reload_cmds='$CC -r -o $output$reload_objs'
18254 hardcode_direct=no
18256 motorola)
18257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18258 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18260 esac
18261 runpath_var='LD_RUN_PATH'
18262 hardcode_shlibpath_var=no
18265 sysv4.3*)
18266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267 hardcode_shlibpath_var=no
18268 export_dynamic_flag_spec='-Bexport'
18271 sysv4*MP*)
18272 if test -d /usr/nec; then
18273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18274 hardcode_shlibpath_var=no
18275 runpath_var=LD_RUN_PATH
18276 hardcode_runpath_var=yes
18277 ld_shlibs=yes
18281 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18282 no_undefined_flag='${wl}-z,text'
18283 archive_cmds_need_lc=no
18284 hardcode_shlibpath_var=no
18285 runpath_var='LD_RUN_PATH'
18287 if test "$GCC" = yes; then
18288 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18289 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18290 else
18291 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18292 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18296 sysv5* | sco3.2v5* | sco5v6*)
18297 # Note: We can NOT use -z defs as we might desire, because we do not
18298 # link with -lc, and that would cause any symbols used from libc to
18299 # always be unresolved, which means just about no library would
18300 # ever link correctly. If we're not using GNU ld we use -z text
18301 # though, which does catch some bad symbols but isn't as heavy-handed
18302 # as -z defs.
18303 no_undefined_flag='${wl}-z,text'
18304 allow_undefined_flag='${wl}-z,nodefs'
18305 archive_cmds_need_lc=no
18306 hardcode_shlibpath_var=no
18307 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18308 hardcode_libdir_separator=':'
18309 link_all_deplibs=yes
18310 export_dynamic_flag_spec='${wl}-Bexport'
18311 runpath_var='LD_RUN_PATH'
18313 if test "$GCC" = yes; then
18314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18316 else
18317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18322 uts4*)
18323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18324 hardcode_libdir_flag_spec='-L$libdir'
18325 hardcode_shlibpath_var=no
18329 ld_shlibs=no
18331 esac
18333 if test x$host_vendor = xsni; then
18334 case $host in
18335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18336 export_dynamic_flag_spec='${wl}-Blargedynsym'
18338 esac
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18343 $as_echo "$ld_shlibs" >&6; }
18344 test "$ld_shlibs" = no && can_build_shared=no
18346 with_gnu_ld=$with_gnu_ld
18363 # Do we need to explicitly link libc?
18365 case "x$archive_cmds_need_lc" in
18366 x|xyes)
18367 # Assume -lc should be added
18368 archive_cmds_need_lc=yes
18370 if test "$enable_shared" = yes && test "$GCC" = yes; then
18371 case $archive_cmds in
18372 *'~'*)
18373 # FIXME: we may have to deal with multi-command sequences.
18375 '$CC '*)
18376 # Test whether the compiler implicitly links with -lc since on some
18377 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18378 # to ld, don't add -lc before -lgcc.
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18380 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18381 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18382 $as_echo_n "(cached) " >&6
18383 else
18384 $RM conftest*
18385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18388 (eval $ac_compile) 2>&5
18389 ac_status=$?
18390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18391 test $ac_status = 0; } 2>conftest.err; then
18392 soname=conftest
18393 lib=conftest
18394 libobjs=conftest.$ac_objext
18395 deplibs=
18396 wl=$lt_prog_compiler_wl
18397 pic_flag=$lt_prog_compiler_pic
18398 compiler_flags=-v
18399 linker_flags=-v
18400 verstring=
18401 output_objdir=.
18402 libname=conftest
18403 lt_save_allow_undefined_flag=$allow_undefined_flag
18404 allow_undefined_flag=
18405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18406 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18407 ac_status=$?
18408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18409 test $ac_status = 0; }
18410 then
18411 lt_cv_archive_cmds_need_lc=no
18412 else
18413 lt_cv_archive_cmds_need_lc=yes
18415 allow_undefined_flag=$lt_save_allow_undefined_flag
18416 else
18417 cat conftest.err 1>&5
18419 $RM conftest*
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18423 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18424 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18426 esac
18429 esac
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18588 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18590 if test "$GCC" = yes; then
18591 case $host_os in
18592 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18593 *) lt_awk_arg="/^libraries:/" ;;
18594 esac
18595 case $host_os in
18596 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18597 *) lt_sed_strip_eq="s,=/,/,g" ;;
18598 esac
18599 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18600 case $lt_search_path_spec in
18601 *\;*)
18602 # if the path contains ";" then we assume it to be the separator
18603 # otherwise default to the standard path separator (i.e. ":") - it is
18604 # assumed that no part of a normal pathname contains ";" but that should
18605 # okay in the real world where ";" in dirpaths is itself problematic.
18606 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18609 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18611 esac
18612 # Ok, now we have the path, separated by spaces, we can step through it
18613 # and add multilib dir if necessary.
18614 lt_tmp_lt_search_path_spec=
18615 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18616 for lt_sys_path in $lt_search_path_spec; do
18617 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18618 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18619 else
18620 test -d "$lt_sys_path" && \
18621 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18623 done
18624 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18625 BEGIN {RS=" "; FS="/|\n";} {
18626 lt_foo="";
18627 lt_count=0;
18628 for (lt_i = NF; lt_i > 0; lt_i--) {
18629 if ($lt_i != "" && $lt_i != ".") {
18630 if ($lt_i == "..") {
18631 lt_count++;
18632 } else {
18633 if (lt_count == 0) {
18634 lt_foo="/" $lt_i lt_foo;
18635 } else {
18636 lt_count--;
18641 if (lt_foo != "") { lt_freq[lt_foo]++; }
18642 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18644 # AWK program above erroneously prepends '/' to C:/dos/paths
18645 # for these hosts.
18646 case $host_os in
18647 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18648 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18649 esac
18650 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18651 else
18652 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18654 library_names_spec=
18655 libname_spec='lib$name'
18656 soname_spec=
18657 shrext_cmds=".so"
18658 postinstall_cmds=
18659 postuninstall_cmds=
18660 finish_cmds=
18661 finish_eval=
18662 shlibpath_var=
18663 shlibpath_overrides_runpath=unknown
18664 version_type=none
18665 dynamic_linker="$host_os ld.so"
18666 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18667 need_lib_prefix=unknown
18668 hardcode_into_libs=no
18670 # when you set need_version to no, make sure it does not cause -set_version
18671 # flags to be left without arguments
18672 need_version=unknown
18674 case $host_os in
18675 aix3*)
18676 version_type=linux
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18678 shlibpath_var=LIBPATH
18680 # AIX 3 has no versioning support, so we append a major version to the name.
18681 soname_spec='${libname}${release}${shared_ext}$major'
18684 aix[4-9]*)
18685 version_type=linux
18686 need_lib_prefix=no
18687 need_version=no
18688 hardcode_into_libs=yes
18689 if test "$host_cpu" = ia64; then
18690 # AIX 5 supports IA64
18691 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 else
18694 # With GCC up to 2.95.x, collect2 would create an import file
18695 # for dependence libraries. The import file would start with
18696 # the line `#! .'. This would cause the generated library to
18697 # depend on `.', always an invalid library. This was fixed in
18698 # development snapshots of GCC prior to 3.0.
18699 case $host_os in
18700 aix4 | aix4.[01] | aix4.[01].*)
18701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18702 echo ' yes '
18703 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18705 else
18706 can_build_shared=no
18709 esac
18710 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18711 # soname into executable. Probably we can add versioning support to
18712 # collect2, so additional links can be useful in future.
18713 if test "$aix_use_runtimelinking" = yes; then
18714 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18715 # instead of lib<name>.a to let people know that these are not
18716 # typical AIX shared libraries.
18717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18718 else
18719 # We preserve .a as extension for shared libraries through AIX4.2
18720 # and later when we are not doing run time linking.
18721 library_names_spec='${libname}${release}.a $libname.a'
18722 soname_spec='${libname}${release}${shared_ext}$major'
18724 shlibpath_var=LIBPATH
18728 amigaos*)
18729 case $host_cpu in
18730 powerpc)
18731 # Since July 2007 AmigaOS4 officially supports .so libraries.
18732 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735 m68k)
18736 library_names_spec='$libname.ixlibrary $libname.a'
18737 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18738 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'
18740 esac
18743 beos*)
18744 library_names_spec='${libname}${shared_ext}'
18745 dynamic_linker="$host_os ld.so"
18746 shlibpath_var=LIBRARY_PATH
18749 bsdi[45]*)
18750 version_type=linux
18751 need_version=no
18752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753 soname_spec='${libname}${release}${shared_ext}$major'
18754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18755 shlibpath_var=LD_LIBRARY_PATH
18756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18758 # the default ld.so.conf also contains /usr/contrib/lib and
18759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18760 # libtool to hard-code these into programs
18763 cygwin* | mingw* | pw32* | cegcc*)
18764 version_type=windows
18765 shrext_cmds=".dll"
18766 need_version=no
18767 need_lib_prefix=no
18769 case $GCC,$host_os in
18770 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18771 library_names_spec='$libname.dll.a'
18772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18773 postinstall_cmds='base_file=`basename \${file}`~
18774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18775 dldir=$destdir/`dirname \$dlpath`~
18776 test -d \$dldir || mkdir -p \$dldir~
18777 $install_prog $dir/$dlname \$dldir/$dlname~
18778 chmod a+x \$dldir/$dlname~
18779 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18780 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18783 dlpath=$dir/\$dldll~
18784 $RM \$dlpath'
18785 shlibpath_overrides_runpath=yes
18787 case $host_os in
18788 cygwin*)
18789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18792 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18794 mingw* | cegcc*)
18795 # MinGW DLLs use traditional 'lib' prefix
18796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18798 pw32*)
18799 # pw32 DLLs use 'pw' prefix rather than 'lib'
18800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18802 esac
18806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18808 esac
18809 dynamic_linker='Win32 ld.exe'
18810 # FIXME: first we should search . and the directory the executable is in
18811 shlibpath_var=PATH
18814 darwin* | rhapsody*)
18815 dynamic_linker="$host_os dyld"
18816 version_type=darwin
18817 need_lib_prefix=no
18818 need_version=no
18819 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18820 soname_spec='${libname}${release}${major}$shared_ext'
18821 shlibpath_overrides_runpath=yes
18822 shlibpath_var=DYLD_LIBRARY_PATH
18823 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18829 dgux*)
18830 version_type=linux
18831 need_lib_prefix=no
18832 need_version=no
18833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18834 soname_spec='${libname}${release}${shared_ext}$major'
18835 shlibpath_var=LD_LIBRARY_PATH
18838 freebsd* | dragonfly*)
18839 # DragonFly does not have aout. When/if they implement a new
18840 # versioning mechanism, adjust this.
18841 if test -x /usr/bin/objformat; then
18842 objformat=`/usr/bin/objformat`
18843 else
18844 case $host_os in
18845 freebsd[23].*) objformat=aout ;;
18846 *) objformat=elf ;;
18847 esac
18849 version_type=freebsd-$objformat
18850 case $version_type in
18851 freebsd-elf*)
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18853 need_version=no
18854 need_lib_prefix=no
18856 freebsd-*)
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18858 need_version=yes
18860 esac
18861 shlibpath_var=LD_LIBRARY_PATH
18862 case $host_os in
18863 freebsd2.*)
18864 shlibpath_overrides_runpath=yes
18866 freebsd3.[01]* | freebsdelf3.[01]*)
18867 shlibpath_overrides_runpath=yes
18868 hardcode_into_libs=yes
18870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18872 shlibpath_overrides_runpath=no
18873 hardcode_into_libs=yes
18875 *) # from 4.6 on, and DragonFly
18876 shlibpath_overrides_runpath=yes
18877 hardcode_into_libs=yes
18879 esac
18882 haiku*)
18883 version_type=linux
18884 need_lib_prefix=no
18885 need_version=no
18886 dynamic_linker="$host_os runtime_loader"
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18889 shlibpath_var=LIBRARY_PATH
18890 shlibpath_overrides_runpath=yes
18891 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18892 hardcode_into_libs=yes
18895 hpux9* | hpux10* | hpux11*)
18896 # Give a soname corresponding to the major version so that dld.sl refuses to
18897 # link against other versions.
18898 version_type=sunos
18899 need_lib_prefix=no
18900 need_version=no
18901 case $host_cpu in
18902 ia64*)
18903 shrext_cmds='.so'
18904 hardcode_into_libs=yes
18905 dynamic_linker="$host_os dld.so"
18906 shlibpath_var=LD_LIBRARY_PATH
18907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 if test "X$HPUX_IA64_MODE" = X32; then
18911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18912 else
18913 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18917 hppa*64*)
18918 shrext_cmds='.sl'
18919 hardcode_into_libs=yes
18920 dynamic_linker="$host_os dld.sl"
18921 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924 soname_spec='${libname}${release}${shared_ext}$major'
18925 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18929 shrext_cmds='.sl'
18930 dynamic_linker="$host_os dld.sl"
18931 shlibpath_var=SHLIB_PATH
18932 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934 soname_spec='${libname}${release}${shared_ext}$major'
18936 esac
18937 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18938 postinstall_cmds='chmod 555 $lib'
18939 # or fails outright, so override atomically:
18940 install_override_mode=555
18943 interix[3-9]*)
18944 version_type=linux
18945 need_lib_prefix=no
18946 need_version=no
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18950 shlibpath_var=LD_LIBRARY_PATH
18951 shlibpath_overrides_runpath=no
18952 hardcode_into_libs=yes
18955 irix5* | irix6* | nonstopux*)
18956 case $host_os in
18957 nonstopux*) version_type=nonstopux ;;
18959 if test "$lt_cv_prog_gnu_ld" = yes; then
18960 version_type=linux
18961 else
18962 version_type=irix
18963 fi ;;
18964 esac
18965 need_lib_prefix=no
18966 need_version=no
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18969 case $host_os in
18970 irix5* | nonstopux*)
18971 libsuff= shlibsuff=
18974 case $LD in # libtool.m4 will add one of these switches to LD
18975 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18976 libsuff= shlibsuff= libmagic=32-bit;;
18977 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18978 libsuff=32 shlibsuff=N32 libmagic=N32;;
18979 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18980 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18981 *) libsuff= shlibsuff= libmagic=never-match;;
18982 esac
18984 esac
18985 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18986 shlibpath_overrides_runpath=no
18987 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18988 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18989 hardcode_into_libs=yes
18992 # No shared lib support for Linux oldld, aout, or coff.
18993 linux*oldld* | linux*aout* | linux*coff*)
18994 dynamic_linker=no
18997 # This must be Linux ELF.
18999 # uclinux* changes (here and below) have been submitted to the libtool
19000 # project, but have not yet been accepted: they are GCC-local changes
19001 # for the time being. (See
19002 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19003 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19004 version_type=linux
19005 need_lib_prefix=no
19006 need_version=no
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19010 shlibpath_var=LD_LIBRARY_PATH
19011 shlibpath_overrides_runpath=no
19013 # Some binutils ld are patched to set DT_RUNPATH
19014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19015 $as_echo_n "(cached) " >&6
19016 else
19017 lt_cv_shlibpath_overrides_runpath=no
19018 save_LDFLAGS=$LDFLAGS
19019 save_libdir=$libdir
19020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19026 main ()
19030 return 0;
19032 _ACEOF
19033 if ac_fn_c_try_link "$LINENO"; then :
19034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19035 lt_cv_shlibpath_overrides_runpath=yes
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040 LDFLAGS=$save_LDFLAGS
19041 libdir=$save_libdir
19045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19047 # This implies no fast_install, which is unacceptable.
19048 # Some rework will be needed to allow for fast_install
19049 # before this can be enabled.
19050 hardcode_into_libs=yes
19052 # Append ld.so.conf contents to the search path
19053 if test -f /etc/ld.so.conf; then
19054 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' ' '`
19055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19058 # We used to test for /lib/ld.so.1 and disable shared libraries on
19059 # powerpc, because MkLinux only supported shared libraries with the
19060 # GNU dynamic linker. Since this was broken with cross compilers,
19061 # most powerpc-linux boxes support dynamic linking these days and
19062 # people can always --disable-shared, the test was removed, and we
19063 # assume the GNU/Linux dynamic linker is in use.
19064 dynamic_linker='GNU/Linux ld.so'
19067 netbsd*)
19068 version_type=sunos
19069 need_lib_prefix=no
19070 need_version=no
19071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19074 dynamic_linker='NetBSD (a.out) ld.so'
19075 else
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 dynamic_linker='NetBSD ld.elf_so'
19080 shlibpath_var=LD_LIBRARY_PATH
19081 shlibpath_overrides_runpath=yes
19082 hardcode_into_libs=yes
19085 newsos6)
19086 version_type=linux
19087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19088 shlibpath_var=LD_LIBRARY_PATH
19089 shlibpath_overrides_runpath=yes
19092 *nto* | *qnx*)
19093 version_type=qnx
19094 need_lib_prefix=no
19095 need_version=no
19096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097 soname_spec='${libname}${release}${shared_ext}$major'
19098 shlibpath_var=LD_LIBRARY_PATH
19099 shlibpath_overrides_runpath=no
19100 hardcode_into_libs=yes
19101 dynamic_linker='ldqnx.so'
19104 openbsd*)
19105 version_type=sunos
19106 sys_lib_dlsearch_path_spec="/usr/lib"
19107 need_lib_prefix=no
19108 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19109 case $host_os in
19110 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19111 *) need_version=no ;;
19112 esac
19113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19115 shlibpath_var=LD_LIBRARY_PATH
19116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19117 case $host_os in
19118 openbsd2.[89] | openbsd2.[89].*)
19119 shlibpath_overrides_runpath=no
19122 shlibpath_overrides_runpath=yes
19124 esac
19125 else
19126 shlibpath_overrides_runpath=yes
19130 os2*)
19131 libname_spec='$name'
19132 shrext_cmds=".dll"
19133 need_lib_prefix=no
19134 library_names_spec='$libname${shared_ext} $libname.a'
19135 dynamic_linker='OS/2 ld.exe'
19136 shlibpath_var=LIBPATH
19139 osf3* | osf4* | osf5*)
19140 version_type=osf
19141 need_lib_prefix=no
19142 need_version=no
19143 soname_spec='${libname}${release}${shared_ext}$major'
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145 shlibpath_var=LD_LIBRARY_PATH
19146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19150 rdos*)
19151 dynamic_linker=no
19154 solaris*)
19155 version_type=linux
19156 need_lib_prefix=no
19157 need_version=no
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19159 soname_spec='${libname}${release}${shared_ext}$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath=yes
19162 hardcode_into_libs=yes
19163 # ldd complains unless libraries are executable
19164 postinstall_cmds='chmod +x $lib'
19167 sunos4*)
19168 version_type=sunos
19169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19171 shlibpath_var=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath=yes
19173 if test "$with_gnu_ld" = yes; then
19174 need_lib_prefix=no
19176 need_version=yes
19179 sysv4 | sysv4.3*)
19180 version_type=linux
19181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19182 soname_spec='${libname}${release}${shared_ext}$major'
19183 shlibpath_var=LD_LIBRARY_PATH
19184 case $host_vendor in
19185 sni)
19186 shlibpath_overrides_runpath=no
19187 need_lib_prefix=no
19188 runpath_var=LD_RUN_PATH
19190 siemens)
19191 need_lib_prefix=no
19193 motorola)
19194 need_lib_prefix=no
19195 need_version=no
19196 shlibpath_overrides_runpath=no
19197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19199 esac
19202 sysv4*MP*)
19203 if test -d /usr/nec ;then
19204 version_type=linux
19205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19206 soname_spec='$libname${shared_ext}.$major'
19207 shlibpath_var=LD_LIBRARY_PATH
19211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19212 version_type=freebsd-elf
19213 need_lib_prefix=no
19214 need_version=no
19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19216 soname_spec='${libname}${release}${shared_ext}$major'
19217 shlibpath_var=LD_LIBRARY_PATH
19218 shlibpath_overrides_runpath=yes
19219 hardcode_into_libs=yes
19220 if test "$with_gnu_ld" = yes; then
19221 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19222 else
19223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19224 case $host_os in
19225 sco3.2v5*)
19226 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19228 esac
19230 sys_lib_dlsearch_path_spec='/usr/lib'
19233 tpf*)
19234 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19235 version_type=linux
19236 need_lib_prefix=no
19237 need_version=no
19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19239 shlibpath_var=LD_LIBRARY_PATH
19240 shlibpath_overrides_runpath=no
19241 hardcode_into_libs=yes
19244 uts4*)
19245 version_type=linux
19246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247 soname_spec='${libname}${release}${shared_ext}$major'
19248 shlibpath_var=LD_LIBRARY_PATH
19252 dynamic_linker=no
19254 esac
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19256 $as_echo "$dynamic_linker" >&6; }
19257 test "$dynamic_linker" = no && can_build_shared=no
19259 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19260 if test "$GCC" = yes; then
19261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19264 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19265 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19267 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19268 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19363 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19364 hardcode_action=
19365 if test -n "$hardcode_libdir_flag_spec" ||
19366 test -n "$runpath_var" ||
19367 test "X$hardcode_automatic" = "Xyes" ; then
19369 # We can hardcode non-existent directories.
19370 if test "$hardcode_direct" != no &&
19371 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19372 # have to relink, otherwise we might link with an installed library
19373 # when we should be linking with a yet-to-be-installed one
19374 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19375 test "$hardcode_minus_L" != no; then
19376 # Linking always hardcodes the temporary library directory.
19377 hardcode_action=relink
19378 else
19379 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19380 hardcode_action=immediate
19382 else
19383 # We cannot hardcode anything, or else we can only hardcode existing
19384 # directories.
19385 hardcode_action=unsupported
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19388 $as_echo "$hardcode_action" >&6; }
19390 if test "$hardcode_action" = relink ||
19391 test "$inherit_rpath" = yes; then
19392 # Fast installation is not supported
19393 enable_fast_install=no
19394 elif test "$shlibpath_overrides_runpath" = yes ||
19395 test "$enable_shared" = no; then
19396 # Fast installation is not necessary
19397 enable_fast_install=needless
19405 if test "x$enable_dlopen" != xyes; then
19406 enable_dlopen=unknown
19407 enable_dlopen_self=unknown
19408 enable_dlopen_self_static=unknown
19409 else
19410 lt_cv_dlopen=no
19411 lt_cv_dlopen_libs=
19413 case $host_os in
19414 beos*)
19415 lt_cv_dlopen="load_add_on"
19416 lt_cv_dlopen_libs=
19417 lt_cv_dlopen_self=yes
19420 mingw* | pw32* | cegcc*)
19421 lt_cv_dlopen="LoadLibrary"
19422 lt_cv_dlopen_libs=
19425 cygwin*)
19426 lt_cv_dlopen="dlopen"
19427 lt_cv_dlopen_libs=
19430 darwin*)
19431 # if libdl is installed we need to link against it
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19434 if ${ac_cv_lib_dl_dlopen+:} false; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 ac_check_lib_save_LIBS=$LIBS
19438 LIBS="-ldl $LIBS"
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 char dlopen ();
19450 main ()
19452 return dlopen ();
19454 return 0;
19456 _ACEOF
19457 if ac_fn_c_try_link "$LINENO"; then :
19458 ac_cv_lib_dl_dlopen=yes
19459 else
19460 ac_cv_lib_dl_dlopen=no
19462 rm -f core conftest.err conftest.$ac_objext \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19468 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19470 else
19472 lt_cv_dlopen="dyld"
19473 lt_cv_dlopen_libs=
19474 lt_cv_dlopen_self=yes
19481 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19482 if test "x$ac_cv_func_shl_load" = xyes; then :
19483 lt_cv_dlopen="shl_load"
19484 else
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19487 if ${ac_cv_lib_dld_shl_load+:} false; then :
19488 $as_echo_n "(cached) " >&6
19489 else
19490 ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-ldld $LIBS"
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19498 #ifdef __cplusplus
19499 extern "C"
19500 #endif
19501 char shl_load ();
19503 main ()
19505 return shl_load ();
19507 return 0;
19509 _ACEOF
19510 if ac_fn_c_try_link "$LINENO"; then :
19511 ac_cv_lib_dld_shl_load=yes
19512 else
19513 ac_cv_lib_dld_shl_load=no
19515 rm -f core conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19520 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19521 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19522 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19523 else
19524 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19525 if test "x$ac_cv_func_dlopen" = xyes; then :
19526 lt_cv_dlopen="dlopen"
19527 else
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19530 if ${ac_cv_lib_dl_dlopen+:} false; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-ldl $LIBS"
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char dlopen ();
19546 main ()
19548 return dlopen ();
19550 return 0;
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"; then :
19554 ac_cv_lib_dl_dlopen=yes
19555 else
19556 ac_cv_lib_dl_dlopen=no
19558 rm -f core conftest.err conftest.$ac_objext \
19559 conftest$ac_exeext conftest.$ac_ext
19560 LIBS=$ac_check_lib_save_LIBS
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19563 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19564 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19566 else
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19568 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19569 if ${ac_cv_lib_svld_dlopen+:} false; then :
19570 $as_echo_n "(cached) " >&6
19571 else
19572 ac_check_lib_save_LIBS=$LIBS
19573 LIBS="-lsvld $LIBS"
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19580 #ifdef __cplusplus
19581 extern "C"
19582 #endif
19583 char dlopen ();
19585 main ()
19587 return dlopen ();
19589 return 0;
19591 _ACEOF
19592 if ac_fn_c_try_link "$LINENO"; then :
19593 ac_cv_lib_svld_dlopen=yes
19594 else
19595 ac_cv_lib_svld_dlopen=no
19597 rm -f core conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19602 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19603 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19604 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19605 else
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19607 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19608 if ${ac_cv_lib_dld_dld_link+:} false; then :
19609 $as_echo_n "(cached) " >&6
19610 else
19611 ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-ldld $LIBS"
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19616 /* Override any GCC internal prototype to avoid an error.
19617 Use char because int might match the return type of a GCC
19618 builtin and then its argument prototype would still apply. */
19619 #ifdef __cplusplus
19620 extern "C"
19621 #endif
19622 char dld_link ();
19624 main ()
19626 return dld_link ();
19628 return 0;
19630 _ACEOF
19631 if ac_fn_c_try_link "$LINENO"; then :
19632 ac_cv_lib_dld_dld_link=yes
19633 else
19634 ac_cv_lib_dld_dld_link=no
19636 rm -f core conftest.err conftest.$ac_objext \
19637 conftest$ac_exeext conftest.$ac_ext
19638 LIBS=$ac_check_lib_save_LIBS
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19641 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19642 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19643 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19662 esac
19664 if test "x$lt_cv_dlopen" != xno; then
19665 enable_dlopen=yes
19666 else
19667 enable_dlopen=no
19670 case $lt_cv_dlopen in
19671 dlopen)
19672 save_CPPFLAGS="$CPPFLAGS"
19673 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19675 save_LDFLAGS="$LDFLAGS"
19676 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19678 save_LIBS="$LIBS"
19679 LIBS="$lt_cv_dlopen_libs $LIBS"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19682 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19683 if ${lt_cv_dlopen_self+:} false; then :
19684 $as_echo_n "(cached) " >&6
19685 else
19686 if test "$cross_compiling" = yes; then :
19687 lt_cv_dlopen_self=cross
19688 else
19689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19690 lt_status=$lt_dlunknown
19691 cat > conftest.$ac_ext <<_LT_EOF
19692 #line 19692 "configure"
19693 #include "confdefs.h"
19695 #if HAVE_DLFCN_H
19696 #include <dlfcn.h>
19697 #endif
19699 #include <stdio.h>
19701 #ifdef RTLD_GLOBAL
19702 # define LT_DLGLOBAL RTLD_GLOBAL
19703 #else
19704 # ifdef DL_GLOBAL
19705 # define LT_DLGLOBAL DL_GLOBAL
19706 # else
19707 # define LT_DLGLOBAL 0
19708 # endif
19709 #endif
19711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19712 find out it does not work in some platform. */
19713 #ifndef LT_DLLAZY_OR_NOW
19714 # ifdef RTLD_LAZY
19715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19716 # else
19717 # ifdef DL_LAZY
19718 # define LT_DLLAZY_OR_NOW DL_LAZY
19719 # else
19720 # ifdef RTLD_NOW
19721 # define LT_DLLAZY_OR_NOW RTLD_NOW
19722 # else
19723 # ifdef DL_NOW
19724 # define LT_DLLAZY_OR_NOW DL_NOW
19725 # else
19726 # define LT_DLLAZY_OR_NOW 0
19727 # endif
19728 # endif
19729 # endif
19730 # endif
19731 #endif
19733 /* When -fvisbility=hidden is used, assume the code has been annotated
19734 correspondingly for the symbols needed. */
19735 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19736 void fnord () __attribute__((visibility("default")));
19737 #endif
19739 void fnord () { int i=42; }
19740 int main ()
19742 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19743 int status = $lt_dlunknown;
19745 if (self)
19747 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19748 else
19750 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19751 else puts (dlerror ());
19753 /* dlclose (self); */
19755 else
19756 puts (dlerror ());
19758 return status;
19760 _LT_EOF
19761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19762 (eval $ac_link) 2>&5
19763 ac_status=$?
19764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19765 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19766 (./conftest; exit; ) >&5 2>/dev/null
19767 lt_status=$?
19768 case x$lt_status in
19769 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19770 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19771 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19772 esac
19773 else :
19774 # compilation failed
19775 lt_cv_dlopen_self=no
19778 rm -fr conftest*
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19783 $as_echo "$lt_cv_dlopen_self" >&6; }
19785 if test "x$lt_cv_dlopen_self" = xyes; then
19786 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19788 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19789 if ${lt_cv_dlopen_self_static+:} false; then :
19790 $as_echo_n "(cached) " >&6
19791 else
19792 if test "$cross_compiling" = yes; then :
19793 lt_cv_dlopen_self_static=cross
19794 else
19795 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19796 lt_status=$lt_dlunknown
19797 cat > conftest.$ac_ext <<_LT_EOF
19798 #line 19798 "configure"
19799 #include "confdefs.h"
19801 #if HAVE_DLFCN_H
19802 #include <dlfcn.h>
19803 #endif
19805 #include <stdio.h>
19807 #ifdef RTLD_GLOBAL
19808 # define LT_DLGLOBAL RTLD_GLOBAL
19809 #else
19810 # ifdef DL_GLOBAL
19811 # define LT_DLGLOBAL DL_GLOBAL
19812 # else
19813 # define LT_DLGLOBAL 0
19814 # endif
19815 #endif
19817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19818 find out it does not work in some platform. */
19819 #ifndef LT_DLLAZY_OR_NOW
19820 # ifdef RTLD_LAZY
19821 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19822 # else
19823 # ifdef DL_LAZY
19824 # define LT_DLLAZY_OR_NOW DL_LAZY
19825 # else
19826 # ifdef RTLD_NOW
19827 # define LT_DLLAZY_OR_NOW RTLD_NOW
19828 # else
19829 # ifdef DL_NOW
19830 # define LT_DLLAZY_OR_NOW DL_NOW
19831 # else
19832 # define LT_DLLAZY_OR_NOW 0
19833 # endif
19834 # endif
19835 # endif
19836 # endif
19837 #endif
19839 /* When -fvisbility=hidden is used, assume the code has been annotated
19840 correspondingly for the symbols needed. */
19841 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19842 void fnord () __attribute__((visibility("default")));
19843 #endif
19845 void fnord () { int i=42; }
19846 int main ()
19848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19849 int status = $lt_dlunknown;
19851 if (self)
19853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19854 else
19856 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19857 else puts (dlerror ());
19859 /* dlclose (self); */
19861 else
19862 puts (dlerror ());
19864 return status;
19866 _LT_EOF
19867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19868 (eval $ac_link) 2>&5
19869 ac_status=$?
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19872 (./conftest; exit; ) >&5 2>/dev/null
19873 lt_status=$?
19874 case x$lt_status in
19875 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19876 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19877 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19878 esac
19879 else :
19880 # compilation failed
19881 lt_cv_dlopen_self_static=no
19884 rm -fr conftest*
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19889 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19892 CPPFLAGS="$save_CPPFLAGS"
19893 LDFLAGS="$save_LDFLAGS"
19894 LIBS="$save_LIBS"
19896 esac
19898 case $lt_cv_dlopen_self in
19899 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19900 *) enable_dlopen_self=unknown ;;
19901 esac
19903 case $lt_cv_dlopen_self_static in
19904 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19905 *) enable_dlopen_self_static=unknown ;;
19906 esac
19925 striplib=
19926 old_striplib=
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19928 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19929 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19933 $as_echo "yes" >&6; }
19934 else
19935 # FIXME - insert some real tests, host_os isn't really good enough
19936 case $host_os in
19937 darwin*)
19938 if test -n "$STRIP" ; then
19939 striplib="$STRIP -x"
19940 old_striplib="$STRIP -S"
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19942 $as_echo "yes" >&6; }
19943 else
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19950 $as_echo "no" >&6; }
19952 esac
19966 # Report which library types will actually be built
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19968 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19970 $as_echo "$can_build_shared" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19973 $as_echo_n "checking whether to build shared libraries... " >&6; }
19974 test "$can_build_shared" = "no" && enable_shared=no
19976 # On AIX, shared libraries and static libraries use the same namespace, and
19977 # are all built from PIC.
19978 case $host_os in
19979 aix3*)
19980 test "$enable_shared" = yes && enable_static=no
19981 if test -n "$RANLIB"; then
19982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19983 postinstall_cmds='$RANLIB $lib'
19987 aix[4-9]*)
19988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19989 test "$enable_shared" = yes && enable_static=no
19992 esac
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19994 $as_echo "$enable_shared" >&6; }
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19997 $as_echo_n "checking whether to build static libraries... " >&6; }
19998 # Make sure either enable_shared or enable_static is yes.
19999 test "$enable_shared" = yes || enable_static=yes
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20001 $as_echo "$enable_static" >&6; }
20007 ac_ext=cpp
20008 ac_cpp='$CXXCPP $CPPFLAGS'
20009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20013 CC="$lt_save_CC"
20015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20016 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20017 (test "X$CXX" != "Xg++"))) ; then
20018 ac_ext=cpp
20019 ac_cpp='$CXXCPP $CPPFLAGS'
20020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20024 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20025 if test -z "$CXXCPP"; then
20026 if ${ac_cv_prog_CXXCPP+:} false; then :
20027 $as_echo_n "(cached) " >&6
20028 else
20029 # Double quotes because CXXCPP needs to be expanded
20030 for CXXCPP in "$CXX -E" "/lib/cpp"
20032 ac_preproc_ok=false
20033 for ac_cxx_preproc_warn_flag in '' yes
20035 # Use a header file that comes with gcc, so configuring glibc
20036 # with a fresh cross-compiler works.
20037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20038 # <limits.h> exists even on freestanding compilers.
20039 # On the NeXT, cc -E runs the code through the compiler's parser,
20040 # not just through cpp. "Syntax error" is here to catch this case.
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043 #ifdef __STDC__
20044 # include <limits.h>
20045 #else
20046 # include <assert.h>
20047 #endif
20048 Syntax error
20049 _ACEOF
20050 if ac_fn_cxx_try_cpp "$LINENO"; then :
20052 else
20053 # Broken: fails on valid input.
20054 continue
20056 rm -f conftest.err conftest.i conftest.$ac_ext
20058 # OK, works on sane cases. Now check whether nonexistent headers
20059 # can be detected and how.
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062 #include <ac_nonexistent.h>
20063 _ACEOF
20064 if ac_fn_cxx_try_cpp "$LINENO"; then :
20065 # Broken: success on invalid input.
20066 continue
20067 else
20068 # Passes both tests.
20069 ac_preproc_ok=:
20070 break
20072 rm -f conftest.err conftest.i conftest.$ac_ext
20074 done
20075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20076 rm -f conftest.i conftest.err conftest.$ac_ext
20077 if $ac_preproc_ok; then :
20078 break
20081 done
20082 ac_cv_prog_CXXCPP=$CXXCPP
20085 CXXCPP=$ac_cv_prog_CXXCPP
20086 else
20087 ac_cv_prog_CXXCPP=$CXXCPP
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20090 $as_echo "$CXXCPP" >&6; }
20091 ac_preproc_ok=false
20092 for ac_cxx_preproc_warn_flag in '' yes
20094 # Use a header file that comes with gcc, so configuring glibc
20095 # with a fresh cross-compiler works.
20096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20097 # <limits.h> exists even on freestanding compilers.
20098 # On the NeXT, cc -E runs the code through the compiler's parser,
20099 # not just through cpp. "Syntax error" is here to catch this case.
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20102 #ifdef __STDC__
20103 # include <limits.h>
20104 #else
20105 # include <assert.h>
20106 #endif
20107 Syntax error
20108 _ACEOF
20109 if ac_fn_cxx_try_cpp "$LINENO"; then :
20111 else
20112 # Broken: fails on valid input.
20113 continue
20115 rm -f conftest.err conftest.i conftest.$ac_ext
20117 # OK, works on sane cases. Now check whether nonexistent headers
20118 # can be detected and how.
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20121 #include <ac_nonexistent.h>
20122 _ACEOF
20123 if ac_fn_cxx_try_cpp "$LINENO"; then :
20124 # Broken: success on invalid input.
20125 continue
20126 else
20127 # Passes both tests.
20128 ac_preproc_ok=:
20129 break
20131 rm -f conftest.err conftest.i conftest.$ac_ext
20133 done
20134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20135 rm -f conftest.i conftest.err conftest.$ac_ext
20136 if $ac_preproc_ok; then :
20138 else
20139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20141 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20142 See \`config.log' for more details" "$LINENO" 5; }
20145 ac_ext=cpp
20146 ac_cpp='$CXXCPP $CPPFLAGS'
20147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20151 else
20152 _lt_caught_CXX_error=yes
20155 ac_ext=cpp
20156 ac_cpp='$CXXCPP $CPPFLAGS'
20157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20161 archive_cmds_need_lc_CXX=no
20162 allow_undefined_flag_CXX=
20163 always_export_symbols_CXX=no
20164 archive_expsym_cmds_CXX=
20165 compiler_needs_object_CXX=no
20166 export_dynamic_flag_spec_CXX=
20167 hardcode_direct_CXX=no
20168 hardcode_direct_absolute_CXX=no
20169 hardcode_libdir_flag_spec_CXX=
20170 hardcode_libdir_flag_spec_ld_CXX=
20171 hardcode_libdir_separator_CXX=
20172 hardcode_minus_L_CXX=no
20173 hardcode_shlibpath_var_CXX=unsupported
20174 hardcode_automatic_CXX=no
20175 inherit_rpath_CXX=no
20176 module_cmds_CXX=
20177 module_expsym_cmds_CXX=
20178 link_all_deplibs_CXX=unknown
20179 old_archive_cmds_CXX=$old_archive_cmds
20180 reload_flag_CXX=$reload_flag
20181 reload_cmds_CXX=$reload_cmds
20182 no_undefined_flag_CXX=
20183 whole_archive_flag_spec_CXX=
20184 enable_shared_with_static_runtimes_CXX=no
20186 # Source file extension for C++ test sources.
20187 ac_ext=cpp
20189 # Object file extension for compiled C++ test sources.
20190 objext=o
20191 objext_CXX=$objext
20193 # No sense in running all these tests if we already determined that
20194 # the CXX compiler isn't working. Some variables (like enable_shared)
20195 # are currently assumed to apply to all compilers on this platform,
20196 # and will be corrupted by setting them based on a non-working compiler.
20197 if test "$_lt_caught_CXX_error" != yes; then
20198 # Code to be used in simple compile tests
20199 lt_simple_compile_test_code="int some_variable = 0;"
20201 # Code to be used in simple link tests
20202 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20204 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20211 # If no C compiler was specified, use CC.
20212 LTCC=${LTCC-"$CC"}
20214 # If no C compiler flags were specified, use CFLAGS.
20215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20217 # Allow CC to be a program name with arguments.
20218 compiler=$CC
20221 # save warnings/boilerplate of simple test code
20222 ac_outfile=conftest.$ac_objext
20223 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20224 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20225 _lt_compiler_boilerplate=`cat conftest.err`
20226 $RM conftest*
20228 ac_outfile=conftest.$ac_objext
20229 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20230 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20231 _lt_linker_boilerplate=`cat conftest.err`
20232 $RM -r conftest*
20235 # Allow CC to be a program name with arguments.
20236 lt_save_CC=$CC
20237 lt_save_LD=$LD
20238 lt_save_GCC=$GCC
20239 GCC=$GXX
20240 lt_save_with_gnu_ld=$with_gnu_ld
20241 lt_save_path_LD=$lt_cv_path_LD
20242 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20243 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20244 else
20245 $as_unset lt_cv_prog_gnu_ld
20247 if test -n "${lt_cv_path_LDCXX+set}"; then
20248 lt_cv_path_LD=$lt_cv_path_LDCXX
20249 else
20250 $as_unset lt_cv_path_LD
20252 test -z "${LDCXX+set}" || LD=$LDCXX
20253 CC=${CXX-"c++"}
20254 compiler=$CC
20255 compiler_CXX=$CC
20256 for cc_temp in $compiler""; do
20257 case $cc_temp in
20258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20260 \-*) ;;
20261 *) break;;
20262 esac
20263 done
20264 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20267 if test -n "$compiler"; then
20268 # We don't want -fno-exception when compiling C++ code, so set the
20269 # no_builtin_flag separately
20270 if test "$GXX" = yes; then
20271 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20272 else
20273 lt_prog_compiler_no_builtin_flag_CXX=
20276 if test "$GXX" = yes; then
20277 # Set up default GNU C++ configuration
20281 # Check whether --with-gnu-ld was given.
20282 if test "${with_gnu_ld+set}" = set; then :
20283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20284 else
20285 with_gnu_ld=no
20288 ac_prog=ld
20289 if test "$GCC" = yes; then
20290 # Check if gcc -print-prog-name=ld gives a path.
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20292 $as_echo_n "checking for ld used by $CC... " >&6; }
20293 case $host in
20294 *-*-mingw*)
20295 # gcc leaves a trailing carriage return which upsets mingw
20296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20299 esac
20300 case $ac_prog in
20301 # Accept absolute paths.
20302 [\\/]* | ?:[\\/]*)
20303 re_direlt='/[^/][^/]*/\.\./'
20304 # Canonicalize the pathname of ld
20305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20308 done
20309 test -z "$LD" && LD="$ac_prog"
20312 # If it fails, then pretend we aren't using GCC.
20313 ac_prog=ld
20316 # If it is relative, then search for the first ld in PATH.
20317 with_gnu_ld=unknown
20319 esac
20320 elif test "$with_gnu_ld" = yes; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20322 $as_echo_n "checking for GNU ld... " >&6; }
20323 else
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20325 $as_echo_n "checking for non-GNU ld... " >&6; }
20327 if ${lt_cv_path_LD+:} false; then :
20328 $as_echo_n "(cached) " >&6
20329 else
20330 if test -z "$LD"; then
20331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20332 for ac_dir in $PATH; do
20333 IFS="$lt_save_ifs"
20334 test -z "$ac_dir" && ac_dir=.
20335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20336 lt_cv_path_LD="$ac_dir/$ac_prog"
20337 # Check to see if the program is GNU ld. I'd rather use --version,
20338 # but apparently some variants of GNU ld only accept -v.
20339 # Break only if it was the GNU/non-GNU ld that we prefer.
20340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20341 *GNU* | *'with BFD'*)
20342 test "$with_gnu_ld" != no && break
20345 test "$with_gnu_ld" != yes && break
20347 esac
20349 done
20350 IFS="$lt_save_ifs"
20351 else
20352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20356 LD="$lt_cv_path_LD"
20357 if test -n "$LD"; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20359 $as_echo "$LD" >&6; }
20360 else
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20362 $as_echo "no" >&6; }
20364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20367 if ${lt_cv_prog_gnu_ld+:} false; then :
20368 $as_echo_n "(cached) " >&6
20369 else
20370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20371 case `$LD -v 2>&1 </dev/null` in
20372 *GNU* | *'with BFD'*)
20373 lt_cv_prog_gnu_ld=yes
20376 lt_cv_prog_gnu_ld=no
20378 esac
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20382 with_gnu_ld=$lt_cv_prog_gnu_ld
20390 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20391 # archiving commands below assume that GNU ld is being used.
20392 if test "$with_gnu_ld" = yes; then
20393 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20394 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'
20396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20397 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20399 # If archive_cmds runs LD, not CC, wlarc should be empty
20400 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20401 # investigate it a little bit more. (MM)
20402 wlarc='${wl}'
20404 # ancient GNU ld didn't support --whole-archive et. al.
20405 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20406 $GREP 'no-whole-archive' > /dev/null; then
20407 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20408 else
20409 whole_archive_flag_spec_CXX=
20411 else
20412 with_gnu_ld=no
20413 wlarc=
20415 # A generic and very simple default shared library creation
20416 # command for GNU C++ for the case where it uses the native
20417 # linker, instead of GNU ld. If possible, this setting should
20418 # overridden to take advantage of the native linker features on
20419 # the platform it is being used on.
20420 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20423 # Commands to make compiler produce verbose output that lists
20424 # what "hidden" libraries, object files and flags are used when
20425 # linking a shared library.
20426 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20428 else
20429 GXX=no
20430 with_gnu_ld=no
20431 wlarc=
20434 # PORTME: fill in a description of your system's C++ link characteristics
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20437 ld_shlibs_CXX=yes
20438 case $host_os in
20439 aix3*)
20440 # FIXME: insert proper C++ library support
20441 ld_shlibs_CXX=no
20443 aix[4-9]*)
20444 if test "$host_cpu" = ia64; then
20445 # On IA64, the linker does run time linking by default, so we don't
20446 # have to do anything special.
20447 aix_use_runtimelinking=no
20448 exp_sym_flag='-Bexport'
20449 no_entry_flag=""
20450 else
20451 aix_use_runtimelinking=no
20453 # Test if we are trying to use run time linking or normal
20454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20455 # need to do runtime linking.
20456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20457 for ld_flag in $LDFLAGS; do
20458 case $ld_flag in
20459 *-brtl*)
20460 aix_use_runtimelinking=yes
20461 break
20463 esac
20464 done
20466 esac
20468 exp_sym_flag='-bexport'
20469 no_entry_flag='-bnoentry'
20472 # When large executables or shared objects are built, AIX ld can
20473 # have problems creating the table of contents. If linking a library
20474 # or program results in "error TOC overflow" add -mminimal-toc to
20475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20478 archive_cmds_CXX=''
20479 hardcode_direct_CXX=yes
20480 hardcode_direct_absolute_CXX=yes
20481 hardcode_libdir_separator_CXX=':'
20482 link_all_deplibs_CXX=yes
20483 file_list_spec_CXX='${wl}-f,'
20485 if test "$GXX" = yes; then
20486 case $host_os in aix4.[012]|aix4.[012].*)
20487 # We only want to do this on AIX 4.2 and lower, the check
20488 # below for broken collect2 doesn't work under 4.3+
20489 collect2name=`${CC} -print-prog-name=collect2`
20490 if test -f "$collect2name" &&
20491 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20492 then
20493 # We have reworked collect2
20495 else
20496 # We have old collect2
20497 hardcode_direct_CXX=unsupported
20498 # It fails to find uninstalled libraries when the uninstalled
20499 # path is not listed in the libpath. Setting hardcode_minus_L
20500 # to unsupported forces relinking
20501 hardcode_minus_L_CXX=yes
20502 hardcode_libdir_flag_spec_CXX='-L$libdir'
20503 hardcode_libdir_separator_CXX=
20505 esac
20506 shared_flag='-shared'
20507 if test "$aix_use_runtimelinking" = yes; then
20508 shared_flag="$shared_flag "'${wl}-G'
20510 else
20511 # not using gcc
20512 if test "$host_cpu" = ia64; then
20513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20514 # chokes on -Wl,-G. The following line is correct:
20515 shared_flag='-G'
20516 else
20517 if test "$aix_use_runtimelinking" = yes; then
20518 shared_flag='${wl}-G'
20519 else
20520 shared_flag='${wl}-bM:SRE'
20525 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20526 # It seems that -bexpall does not export symbols beginning with
20527 # underscore (_), so it is better to generate a list of symbols to
20528 # export.
20529 always_export_symbols_CXX=yes
20530 if test "$aix_use_runtimelinking" = yes; then
20531 # Warning - without using the other runtime loading flags (-brtl),
20532 # -berok will link without error, but may produce a broken library.
20533 allow_undefined_flag_CXX='-berok'
20534 # Determine the default libpath from the value encoded in an empty
20535 # executable.
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20540 main ()
20544 return 0;
20546 _ACEOF
20547 if ac_fn_cxx_try_link "$LINENO"; then :
20549 lt_aix_libpath_sed='
20550 /Import File Strings/,/^$/ {
20551 /^0/ {
20552 s/^0 *\(.*\)$/\1/
20556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20557 # Check for a 64-bit object if we didn't find anything.
20558 if test -z "$aix_libpath"; then
20559 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20566 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20568 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"
20569 else
20570 if test "$host_cpu" = ia64; then
20571 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20572 allow_undefined_flag_CXX="-z nodefs"
20573 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"
20574 else
20575 # Determine the default libpath from the value encoded in an
20576 # empty executable.
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20581 main ()
20585 return 0;
20587 _ACEOF
20588 if ac_fn_cxx_try_link "$LINENO"; then :
20590 lt_aix_libpath_sed='
20591 /Import File Strings/,/^$/ {
20592 /^0/ {
20593 s/^0 *\(.*\)$/\1/
20597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20598 # Check for a 64-bit object if we didn't find anything.
20599 if test -z "$aix_libpath"; then
20600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20603 rm -f core conftest.err conftest.$ac_objext \
20604 conftest$ac_exeext conftest.$ac_ext
20605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20607 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20608 # Warning - without using the other run time loading flags,
20609 # -berok will link without error, but may produce a broken library.
20610 no_undefined_flag_CXX=' ${wl}-bernotok'
20611 allow_undefined_flag_CXX=' ${wl}-berok'
20612 if test "$with_gnu_ld" = yes; then
20613 # We only use this code for GNU lds that support --whole-archive.
20614 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20615 else
20616 # Exported symbols can be pulled into shared objects from archives
20617 whole_archive_flag_spec_CXX='$convenience'
20619 archive_cmds_need_lc_CXX=yes
20620 # This is similar to how AIX traditionally builds its shared
20621 # libraries.
20622 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'
20627 beos*)
20628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20629 allow_undefined_flag_CXX=unsupported
20630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20631 # support --undefined. This deserves some investigation. FIXME
20632 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20633 else
20634 ld_shlibs_CXX=no
20638 chorus*)
20639 case $cc_basename in
20641 # FIXME: insert proper C++ library support
20642 ld_shlibs_CXX=no
20644 esac
20647 cygwin* | mingw* | pw32* | cegcc*)
20648 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20649 # as there is no search path for DLLs.
20650 hardcode_libdir_flag_spec_CXX='-L$libdir'
20651 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20652 allow_undefined_flag_CXX=unsupported
20653 always_export_symbols_CXX=no
20654 enable_shared_with_static_runtimes_CXX=yes
20656 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20657 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'
20658 # If the export-symbols file already is a .def file (1st line
20659 # is EXPORTS), use it as is; otherwise, prepend...
20660 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20661 cp $export_symbols $output_objdir/$soname.def;
20662 else
20663 echo EXPORTS > $output_objdir/$soname.def;
20664 cat $export_symbols >> $output_objdir/$soname.def;
20666 $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'
20667 else
20668 ld_shlibs_CXX=no
20671 darwin* | rhapsody*)
20674 archive_cmds_need_lc_CXX=no
20675 hardcode_direct_CXX=no
20676 hardcode_automatic_CXX=yes
20677 hardcode_shlibpath_var_CXX=unsupported
20678 if test "$lt_cv_ld_force_load" = "yes"; then
20679 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\"`'
20680 else
20681 whole_archive_flag_spec_CXX=''
20683 link_all_deplibs_CXX=yes
20684 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20685 case $cc_basename in
20686 ifort*) _lt_dar_can_shared=yes ;;
20687 *) _lt_dar_can_shared=$GCC ;;
20688 esac
20689 if test "$_lt_dar_can_shared" = "yes"; then
20690 output_verbose_link_cmd=func_echo_all
20691 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}"
20692 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20693 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}"
20694 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}"
20695 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20696 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}"
20697 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}"
20700 else
20701 ld_shlibs_CXX=no
20706 dgux*)
20707 case $cc_basename in
20708 ec++*)
20709 # FIXME: insert proper C++ library support
20710 ld_shlibs_CXX=no
20712 ghcx*)
20713 # Green Hills C++ Compiler
20714 # FIXME: insert proper C++ library support
20715 ld_shlibs_CXX=no
20718 # FIXME: insert proper C++ library support
20719 ld_shlibs_CXX=no
20721 esac
20724 freebsd2.*)
20725 # C++ shared libraries reported to be fairly broken before
20726 # switch to ELF
20727 ld_shlibs_CXX=no
20730 freebsd-elf*)
20731 archive_cmds_need_lc_CXX=no
20734 freebsd* | dragonfly*)
20735 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20736 # conventions
20737 ld_shlibs_CXX=yes
20740 gnu*)
20743 haiku*)
20744 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20745 link_all_deplibs_CXX=yes
20748 hpux9*)
20749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20750 hardcode_libdir_separator_CXX=:
20751 export_dynamic_flag_spec_CXX='${wl}-E'
20752 hardcode_direct_CXX=yes
20753 hardcode_minus_L_CXX=yes # Not in the search PATH,
20754 # but as the default
20755 # location of the library.
20757 case $cc_basename in
20758 CC*)
20759 # FIXME: insert proper C++ library support
20760 ld_shlibs_CXX=no
20762 aCC*)
20763 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'
20764 # Commands to make compiler produce verbose output that lists
20765 # what "hidden" libraries, object files and flags are used when
20766 # linking a shared library.
20768 # There doesn't appear to be a way to prevent this compiler from
20769 # explicitly linking system object files so we need to strip them
20770 # from the output so that they don't get included in the library
20771 # dependencies.
20772 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"'
20775 if test "$GXX" = yes; then
20776 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'
20777 else
20778 # FIXME: insert proper C++ library support
20779 ld_shlibs_CXX=no
20782 esac
20785 hpux10*|hpux11*)
20786 if test $with_gnu_ld = no; then
20787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20788 hardcode_libdir_separator_CXX=:
20790 case $host_cpu in
20791 hppa*64*|ia64*)
20794 export_dynamic_flag_spec_CXX='${wl}-E'
20796 esac
20798 case $host_cpu in
20799 hppa*64*|ia64*)
20800 hardcode_direct_CXX=no
20801 hardcode_shlibpath_var_CXX=no
20804 hardcode_direct_CXX=yes
20805 hardcode_direct_absolute_CXX=yes
20806 hardcode_minus_L_CXX=yes # Not in the search PATH,
20807 # but as the default
20808 # location of the library.
20810 esac
20812 case $cc_basename in
20813 CC*)
20814 # FIXME: insert proper C++ library support
20815 ld_shlibs_CXX=no
20817 aCC*)
20818 case $host_cpu in
20819 hppa*64*)
20820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20822 ia64*)
20823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20826 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20828 esac
20829 # Commands to make compiler produce verbose output that lists
20830 # what "hidden" libraries, object files and flags are used when
20831 # linking a shared library.
20833 # There doesn't appear to be a way to prevent this compiler from
20834 # explicitly linking system object files so we need to strip them
20835 # from the output so that they don't get included in the library
20836 # dependencies.
20837 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"'
20840 if test "$GXX" = yes; then
20841 if test $with_gnu_ld = no; then
20842 case $host_cpu in
20843 hppa*64*)
20844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20846 ia64*)
20847 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20850 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'
20852 esac
20854 else
20855 # FIXME: insert proper C++ library support
20856 ld_shlibs_CXX=no
20859 esac
20862 interix[3-9]*)
20863 hardcode_direct_CXX=no
20864 hardcode_shlibpath_var_CXX=no
20865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20866 export_dynamic_flag_spec_CXX='${wl}-E'
20867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20868 # Instead, shared libraries are loaded at an image base (0x10000000 by
20869 # default) and relocated if they conflict, which is a slow very memory
20870 # consuming and fragmenting process. To avoid this, we pick a random,
20871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20873 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'
20874 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'
20876 irix5* | irix6*)
20877 case $cc_basename in
20878 CC*)
20879 # SGI C++
20880 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'
20882 # Archives containing C++ object files must be created using
20883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20884 # necessary to make sure instantiated templates are included
20885 # in the archive.
20886 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20889 if test "$GXX" = yes; then
20890 if test "$with_gnu_ld" = no; then
20891 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'
20892 else
20893 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'
20896 link_all_deplibs_CXX=yes
20898 esac
20899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20900 hardcode_libdir_separator_CXX=:
20901 inherit_rpath_CXX=yes
20904 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20905 case $cc_basename in
20906 KCC*)
20907 # Kuck and Associates, Inc. (KAI) C++ Compiler
20909 # KCC will only create a shared library if the output file
20910 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20911 # to its proper name (with version) after linking.
20912 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'
20913 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'
20914 # Commands to make compiler produce verbose output that lists
20915 # what "hidden" libraries, object files and flags are used when
20916 # linking a shared library.
20918 # There doesn't appear to be a way to prevent this compiler from
20919 # explicitly linking system object files so we need to strip them
20920 # from the output so that they don't get included in the library
20921 # dependencies.
20922 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"'
20924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20925 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20927 # Archives containing C++ object files must be created using
20928 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20929 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20931 icpc* | ecpc* )
20932 # Intel C++
20933 with_gnu_ld=yes
20934 # version 8.0 and above of icpc choke on multiply defined symbols
20935 # if we add $predep_objects and $postdep_objects, however 7.1 and
20936 # earlier do not add the objects themselves.
20937 case `$CC -V 2>&1` in
20938 *"Version 7."*)
20939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20940 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'
20942 *) # Version 8.0 or newer
20943 tmp_idyn=
20944 case $host_cpu in
20945 ia64*) tmp_idyn=' -i_dynamic';;
20946 esac
20947 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20948 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'
20950 esac
20951 archive_cmds_need_lc_CXX=no
20952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20954 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20956 pgCC* | pgcpp*)
20957 # Portland Group C++ compiler
20958 case `$CC -V` in
20959 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20960 prelink_cmds_CXX='tpldir=Template.dir~
20961 rm -rf $tpldir~
20962 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20963 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20964 old_archive_cmds_CXX='tpldir=Template.dir~
20965 rm -rf $tpldir~
20966 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20967 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20968 $RANLIB $oldlib'
20969 archive_cmds_CXX='tpldir=Template.dir~
20970 rm -rf $tpldir~
20971 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20972 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20973 archive_expsym_cmds_CXX='tpldir=Template.dir~
20974 rm -rf $tpldir~
20975 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20976 $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'
20978 *) # Version 6 and above use weak symbols
20979 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20980 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'
20982 esac
20984 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20986 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'
20988 cxx*)
20989 # Compaq C++
20990 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20991 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'
20993 runpath_var=LD_RUN_PATH
20994 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20995 hardcode_libdir_separator_CXX=:
20997 # Commands to make compiler produce verbose output that lists
20998 # what "hidden" libraries, object files and flags are used when
20999 # linking a shared library.
21001 # There doesn't appear to be a way to prevent this compiler from
21002 # explicitly linking system object files so we need to strip them
21003 # from the output so that they don't get included in the library
21004 # dependencies.
21005 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'
21007 xl* | mpixl* | bgxl*)
21008 # IBM XL 8.0 on PPC, with GNU ld
21009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21010 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21011 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21012 if test "x$supports_anon_versioning" = xyes; then
21013 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21014 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21015 echo "local: *; };" >> $output_objdir/$libname.ver~
21016 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21020 case `$CC -V 2>&1 | sed 5q` in
21021 *Sun\ C*)
21022 # Sun C++ 5.9
21023 no_undefined_flag_CXX=' -zdefs'
21024 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21025 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'
21026 hardcode_libdir_flag_spec_CXX='-R$libdir'
21027 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'
21028 compiler_needs_object_CXX=yes
21030 # Not sure whether something based on
21031 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21032 # would be better.
21033 output_verbose_link_cmd='func_echo_all'
21035 # Archives containing C++ object files must be created using
21036 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21037 # necessary to make sure instantiated templates are included
21038 # in the archive.
21039 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21041 esac
21043 esac
21046 lynxos*)
21047 # FIXME: insert proper C++ library support
21048 ld_shlibs_CXX=no
21051 m88k*)
21052 # FIXME: insert proper C++ library support
21053 ld_shlibs_CXX=no
21056 mvs*)
21057 case $cc_basename in
21058 cxx*)
21059 # FIXME: insert proper C++ library support
21060 ld_shlibs_CXX=no
21063 # FIXME: insert proper C++ library support
21064 ld_shlibs_CXX=no
21066 esac
21069 netbsd*)
21070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21071 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21072 wlarc=
21073 hardcode_libdir_flag_spec_CXX='-R$libdir'
21074 hardcode_direct_CXX=yes
21075 hardcode_shlibpath_var_CXX=no
21077 # Workaround some broken pre-1.5 toolchains
21078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21081 *nto* | *qnx*)
21082 ld_shlibs_CXX=yes
21085 openbsd2*)
21086 # C++ shared libraries are fairly broken
21087 ld_shlibs_CXX=no
21090 openbsd*)
21091 if test -f /usr/libexec/ld.so; then
21092 hardcode_direct_CXX=yes
21093 hardcode_shlibpath_var_CXX=no
21094 hardcode_direct_absolute_CXX=yes
21095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21098 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21099 export_dynamic_flag_spec_CXX='${wl}-E'
21100 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21102 output_verbose_link_cmd=func_echo_all
21103 else
21104 ld_shlibs_CXX=no
21108 osf3* | osf4* | osf5*)
21109 case $cc_basename in
21110 KCC*)
21111 # Kuck and Associates, Inc. (KAI) C++ Compiler
21113 # KCC will only create a shared library if the output file
21114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21115 # to its proper name (with version) after linking.
21116 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'
21118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21119 hardcode_libdir_separator_CXX=:
21121 # Archives containing C++ object files must be created using
21122 # the KAI C++ compiler.
21123 case $host in
21124 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21125 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21126 esac
21128 RCC*)
21129 # Rational C++ 2.4.1
21130 # FIXME: insert proper C++ library support
21131 ld_shlibs_CXX=no
21133 cxx*)
21134 case $host in
21135 osf3*)
21136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21137 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'
21138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21141 allow_undefined_flag_CXX=' -expect_unresolved \*'
21142 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'
21143 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21144 echo "-hidden">> $lib.exp~
21145 $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~
21146 $RM $lib.exp'
21147 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21149 esac
21151 hardcode_libdir_separator_CXX=:
21153 # Commands to make compiler produce verbose output that lists
21154 # what "hidden" libraries, object files and flags are used when
21155 # linking a shared library.
21157 # There doesn't appear to be a way to prevent this compiler from
21158 # explicitly linking system object files so we need to strip them
21159 # from the output so that they don't get included in the library
21160 # dependencies.
21161 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"'
21164 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21165 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21166 case $host in
21167 osf3*)
21168 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'
21171 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'
21173 esac
21175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21176 hardcode_libdir_separator_CXX=:
21178 # Commands to make compiler produce verbose output that lists
21179 # what "hidden" libraries, object files and flags are used when
21180 # linking a shared library.
21181 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21183 else
21184 # FIXME: insert proper C++ library support
21185 ld_shlibs_CXX=no
21188 esac
21191 psos*)
21192 # FIXME: insert proper C++ library support
21193 ld_shlibs_CXX=no
21196 sunos4*)
21197 case $cc_basename in
21198 CC*)
21199 # Sun C++ 4.x
21200 # FIXME: insert proper C++ library support
21201 ld_shlibs_CXX=no
21203 lcc*)
21204 # Lucid
21205 # FIXME: insert proper C++ library support
21206 ld_shlibs_CXX=no
21209 # FIXME: insert proper C++ library support
21210 ld_shlibs_CXX=no
21212 esac
21215 solaris*)
21216 case $cc_basename in
21217 CC*)
21218 # Sun C++ 4.2, 5.x and Centerline C++
21219 archive_cmds_need_lc_CXX=yes
21220 no_undefined_flag_CXX=' -zdefs'
21221 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21222 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21223 $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'
21225 hardcode_libdir_flag_spec_CXX='-R$libdir'
21226 hardcode_shlibpath_var_CXX=no
21227 case $host_os in
21228 solaris2.[0-5] | solaris2.[0-5].*) ;;
21230 # The compiler driver will combine and reorder linker options,
21231 # but understands `-z linker_flag'.
21232 # Supported since Solaris 2.6 (maybe 2.5.1?)
21233 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21235 esac
21236 link_all_deplibs_CXX=yes
21238 output_verbose_link_cmd='func_echo_all'
21240 # Archives containing C++ object files must be created using
21241 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21242 # necessary to make sure instantiated templates are included
21243 # in the archive.
21244 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21246 gcx*)
21247 # Green Hills C++ Compiler
21248 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21250 # The C++ compiler must be used to create the archive.
21251 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21254 # GNU C++ compiler with Solaris linker
21255 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21256 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21257 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21258 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21259 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21260 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21262 # Commands to make compiler produce verbose output that lists
21263 # what "hidden" libraries, object files and flags are used when
21264 # linking a shared library.
21265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21266 else
21267 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21268 # platform.
21269 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21270 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21271 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21273 # Commands to make compiler produce verbose output that lists
21274 # what "hidden" libraries, object files and flags are used when
21275 # linking a shared library.
21276 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21279 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21280 case $host_os in
21281 solaris2.[0-5] | solaris2.[0-5].*) ;;
21283 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21285 esac
21288 esac
21291 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21292 no_undefined_flag_CXX='${wl}-z,text'
21293 archive_cmds_need_lc_CXX=no
21294 hardcode_shlibpath_var_CXX=no
21295 runpath_var='LD_RUN_PATH'
21297 case $cc_basename in
21298 CC*)
21299 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21300 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21303 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21304 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21306 esac
21309 sysv5* | sco3.2v5* | sco5v6*)
21310 # Note: We can NOT use -z defs as we might desire, because we do not
21311 # link with -lc, and that would cause any symbols used from libc to
21312 # always be unresolved, which means just about no library would
21313 # ever link correctly. If we're not using GNU ld we use -z text
21314 # though, which does catch some bad symbols but isn't as heavy-handed
21315 # as -z defs.
21316 no_undefined_flag_CXX='${wl}-z,text'
21317 allow_undefined_flag_CXX='${wl}-z,nodefs'
21318 archive_cmds_need_lc_CXX=no
21319 hardcode_shlibpath_var_CXX=no
21320 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21321 hardcode_libdir_separator_CXX=':'
21322 link_all_deplibs_CXX=yes
21323 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21324 runpath_var='LD_RUN_PATH'
21326 case $cc_basename in
21327 CC*)
21328 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21329 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21330 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21331 '"$old_archive_cmds_CXX"
21332 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21333 '"$reload_cmds_CXX"
21336 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21337 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21339 esac
21342 tandem*)
21343 case $cc_basename in
21344 NCC*)
21345 # NonStop-UX NCC 3.20
21346 # FIXME: insert proper C++ library support
21347 ld_shlibs_CXX=no
21350 # FIXME: insert proper C++ library support
21351 ld_shlibs_CXX=no
21353 esac
21356 vxworks*)
21357 # FIXME: insert proper C++ library support
21358 ld_shlibs_CXX=no
21362 # FIXME: insert proper C++ library support
21363 ld_shlibs_CXX=no
21365 esac
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21368 $as_echo "$ld_shlibs_CXX" >&6; }
21369 test "$ld_shlibs_CXX" = no && can_build_shared=no
21371 GCC_CXX="$GXX"
21372 LD_CXX="$LD"
21374 ## CAVEAT EMPTOR:
21375 ## There is no encapsulation within the following macros, do not change
21376 ## the running order or otherwise move them around unless you know exactly
21377 ## what you are doing...
21378 # Dependencies to place before and after the object being linked:
21379 predep_objects_CXX=
21380 postdep_objects_CXX=
21381 predeps_CXX=
21382 postdeps_CXX=
21383 compiler_lib_search_path_CXX=
21385 cat > conftest.$ac_ext <<_LT_EOF
21386 class Foo
21388 public:
21389 Foo (void) { a = 0; }
21390 private:
21391 int a;
21393 _LT_EOF
21395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21396 (eval $ac_compile) 2>&5
21397 ac_status=$?
21398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399 test $ac_status = 0; }; then
21400 # Parse the compiler output and extract the necessary
21401 # objects, libraries and library flags.
21403 # Sentinel used to keep track of whether or not we are before
21404 # the conftest object file.
21405 pre_test_object_deps_done=no
21407 for p in `eval "$output_verbose_link_cmd"`; do
21408 case $p in
21410 -L* | -R* | -l*)
21411 # Some compilers place space between "-{L,R}" and the path.
21412 # Remove the space.
21413 if test $p = "-L" ||
21414 test $p = "-R"; then
21415 prev=$p
21416 continue
21417 else
21418 prev=
21421 if test "$pre_test_object_deps_done" = no; then
21422 case $p in
21423 -L* | -R*)
21424 # Internal compiler library paths should come after those
21425 # provided the user. The postdeps already come after the
21426 # user supplied libs so there is no need to process them.
21427 if test -z "$compiler_lib_search_path_CXX"; then
21428 compiler_lib_search_path_CXX="${prev}${p}"
21429 else
21430 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21433 # The "-l" case would never come before the object being
21434 # linked, so don't bother handling this case.
21435 esac
21436 else
21437 if test -z "$postdeps_CXX"; then
21438 postdeps_CXX="${prev}${p}"
21439 else
21440 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21445 *.$objext)
21446 # This assumes that the test object file only shows up
21447 # once in the compiler output.
21448 if test "$p" = "conftest.$objext"; then
21449 pre_test_object_deps_done=yes
21450 continue
21453 if test "$pre_test_object_deps_done" = no; then
21454 if test -z "$predep_objects_CXX"; then
21455 predep_objects_CXX="$p"
21456 else
21457 predep_objects_CXX="$predep_objects_CXX $p"
21459 else
21460 if test -z "$postdep_objects_CXX"; then
21461 postdep_objects_CXX="$p"
21462 else
21463 postdep_objects_CXX="$postdep_objects_CXX $p"
21468 *) ;; # Ignore the rest.
21470 esac
21471 done
21473 # Clean up.
21474 rm -f a.out a.exe
21475 else
21476 echo "libtool.m4: error: problem compiling CXX test program"
21479 $RM -f confest.$objext
21481 # PORTME: override above test on systems where it is broken
21482 case $host_os in
21483 interix[3-9]*)
21484 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21485 # hack all around it, let's just trust "g++" to DTRT.
21486 predep_objects_CXX=
21487 postdep_objects_CXX=
21488 postdeps_CXX=
21491 linux*)
21492 case `$CC -V 2>&1 | sed 5q` in
21493 *Sun\ C*)
21494 # Sun C++ 5.9
21496 # The more standards-conforming stlport4 library is
21497 # incompatible with the Cstd library. Avoid specifying
21498 # it if it's in CXXFLAGS. Ignore libCrun as
21499 # -library=stlport4 depends on it.
21500 case " $CXX $CXXFLAGS " in
21501 *" -library=stlport4 "*)
21502 solaris_use_stlport4=yes
21504 esac
21506 if test "$solaris_use_stlport4" != yes; then
21507 postdeps_CXX='-library=Cstd -library=Crun'
21510 esac
21513 solaris*)
21514 case $cc_basename in
21515 CC*)
21516 # The more standards-conforming stlport4 library is
21517 # incompatible with the Cstd library. Avoid specifying
21518 # it if it's in CXXFLAGS. Ignore libCrun as
21519 # -library=stlport4 depends on it.
21520 case " $CXX $CXXFLAGS " in
21521 *" -library=stlport4 "*)
21522 solaris_use_stlport4=yes
21524 esac
21526 # Adding this requires a known-good setup of shared libraries for
21527 # Sun compiler versions before 5.6, else PIC objects from an old
21528 # archive will be linked into the output, leading to subtle bugs.
21529 if test "$solaris_use_stlport4" != yes; then
21530 postdeps_CXX='-library=Cstd -library=Crun'
21533 esac
21535 esac
21538 case " $postdeps_CXX " in
21539 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21540 esac
21541 compiler_lib_search_dirs_CXX=
21542 if test -n "${compiler_lib_search_path_CXX}"; then
21543 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21576 lt_prog_compiler_wl_CXX=
21577 lt_prog_compiler_pic_CXX=
21578 lt_prog_compiler_static_CXX=
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21583 # C++ specific cases for pic, static, wl, etc.
21584 if test "$GXX" = yes; then
21585 lt_prog_compiler_wl_CXX='-Wl,'
21586 lt_prog_compiler_static_CXX='-static'
21588 case $host_os in
21589 aix*)
21590 # All AIX code is PIC.
21591 if test "$host_cpu" = ia64; then
21592 # AIX 5 now supports IA64 processor
21593 lt_prog_compiler_static_CXX='-Bstatic'
21595 lt_prog_compiler_pic_CXX='-fPIC'
21598 amigaos*)
21599 case $host_cpu in
21600 powerpc)
21601 # see comment about AmigaOS4 .so support
21602 lt_prog_compiler_pic_CXX='-fPIC'
21604 m68k)
21605 # FIXME: we need at least 68020 code to build shared libraries, but
21606 # adding the `-m68020' flag to GCC prevents building anything better,
21607 # like `-m68040'.
21608 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21610 esac
21613 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21614 # PIC is the default for these OSes.
21616 mingw* | cygwin* | os2* | pw32* | cegcc*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21620 # (--disable-auto-import) libraries
21621 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21623 darwin* | rhapsody*)
21624 # PIC is the default on this platform
21625 # Common symbols not allowed in MH_DYLIB files
21626 lt_prog_compiler_pic_CXX='-fno-common'
21628 *djgpp*)
21629 # DJGPP does not support shared libraries at all
21630 lt_prog_compiler_pic_CXX=
21632 haiku*)
21633 # PIC is the default for Haiku.
21634 # The "-static" flag exists, but is broken.
21635 lt_prog_compiler_static_CXX=
21637 interix[3-9]*)
21638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21639 # Instead, we relocate shared libraries at runtime.
21641 sysv4*MP*)
21642 if test -d /usr/nec; then
21643 lt_prog_compiler_pic_CXX=-Kconform_pic
21646 hpux*)
21647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21649 # sets the default TLS model and affects inlining.
21650 case $host_cpu in
21651 hppa*64*)
21654 lt_prog_compiler_pic_CXX='-fPIC'
21656 esac
21658 *qnx* | *nto*)
21659 # QNX uses GNU C++, but need to define -shared option too, otherwise
21660 # it will coredump.
21661 lt_prog_compiler_pic_CXX='-fPIC -shared'
21664 lt_prog_compiler_pic_CXX='-fPIC'
21666 esac
21667 else
21668 case $host_os in
21669 aix[4-9]*)
21670 # All AIX code is PIC.
21671 if test "$host_cpu" = ia64; then
21672 # AIX 5 now supports IA64 processor
21673 lt_prog_compiler_static_CXX='-Bstatic'
21674 else
21675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21678 chorus*)
21679 case $cc_basename in
21680 cxch68*)
21681 # Green Hills C++ Compiler
21682 # _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"
21684 esac
21686 dgux*)
21687 case $cc_basename in
21688 ec++*)
21689 lt_prog_compiler_pic_CXX='-KPIC'
21691 ghcx*)
21692 # Green Hills C++ Compiler
21693 lt_prog_compiler_pic_CXX='-pic'
21697 esac
21699 freebsd* | dragonfly*)
21700 # FreeBSD uses GNU C++
21702 hpux9* | hpux10* | hpux11*)
21703 case $cc_basename in
21704 CC*)
21705 lt_prog_compiler_wl_CXX='-Wl,'
21706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21707 if test "$host_cpu" != ia64; then
21708 lt_prog_compiler_pic_CXX='+Z'
21711 aCC*)
21712 lt_prog_compiler_wl_CXX='-Wl,'
21713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21714 case $host_cpu in
21715 hppa*64*|ia64*)
21716 # +Z the default
21719 lt_prog_compiler_pic_CXX='+Z'
21721 esac
21725 esac
21727 interix*)
21728 # This is c89, which is MS Visual C++ (no shared libs)
21729 # Anyone wants to do a port?
21731 irix5* | irix6* | nonstopux*)
21732 case $cc_basename in
21733 CC*)
21734 lt_prog_compiler_wl_CXX='-Wl,'
21735 lt_prog_compiler_static_CXX='-non_shared'
21736 # CC pic flag -KPIC is the default.
21740 esac
21742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21743 case $cc_basename in
21744 KCC*)
21745 # KAI C++ Compiler
21746 lt_prog_compiler_wl_CXX='--backend -Wl,'
21747 lt_prog_compiler_pic_CXX='-fPIC'
21749 ecpc* )
21750 # old Intel C++ for x86_64 which still supported -KPIC.
21751 lt_prog_compiler_wl_CXX='-Wl,'
21752 lt_prog_compiler_pic_CXX='-KPIC'
21753 lt_prog_compiler_static_CXX='-static'
21755 icpc* )
21756 # Intel C++, used to be incompatible with GCC.
21757 # ICC 10 doesn't accept -KPIC any more.
21758 lt_prog_compiler_wl_CXX='-Wl,'
21759 lt_prog_compiler_pic_CXX='-fPIC'
21760 lt_prog_compiler_static_CXX='-static'
21762 pgCC* | pgcpp*)
21763 # Portland Group C++ compiler
21764 lt_prog_compiler_wl_CXX='-Wl,'
21765 lt_prog_compiler_pic_CXX='-fpic'
21766 lt_prog_compiler_static_CXX='-Bstatic'
21768 cxx*)
21769 # Compaq C++
21770 # Make sure the PIC flag is empty. It appears that all Alpha
21771 # Linux and Compaq Tru64 Unix objects are PIC.
21772 lt_prog_compiler_pic_CXX=
21773 lt_prog_compiler_static_CXX='-non_shared'
21775 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21776 # IBM XL 8.0, 9.0 on PPC and BlueGene
21777 lt_prog_compiler_wl_CXX='-Wl,'
21778 lt_prog_compiler_pic_CXX='-qpic'
21779 lt_prog_compiler_static_CXX='-qstaticlink'
21782 case `$CC -V 2>&1 | sed 5q` in
21783 *Sun\ C*)
21784 # Sun C++ 5.9
21785 lt_prog_compiler_pic_CXX='-KPIC'
21786 lt_prog_compiler_static_CXX='-Bstatic'
21787 lt_prog_compiler_wl_CXX='-Qoption ld '
21789 esac
21791 esac
21793 lynxos*)
21795 m88k*)
21797 mvs*)
21798 case $cc_basename in
21799 cxx*)
21800 lt_prog_compiler_pic_CXX='-W c,exportall'
21804 esac
21806 netbsd*)
21808 *qnx* | *nto*)
21809 # QNX uses GNU C++, but need to define -shared option too, otherwise
21810 # it will coredump.
21811 lt_prog_compiler_pic_CXX='-fPIC -shared'
21813 osf3* | osf4* | osf5*)
21814 case $cc_basename in
21815 KCC*)
21816 lt_prog_compiler_wl_CXX='--backend -Wl,'
21818 RCC*)
21819 # Rational C++ 2.4.1
21820 lt_prog_compiler_pic_CXX='-pic'
21822 cxx*)
21823 # Digital/Compaq C++
21824 lt_prog_compiler_wl_CXX='-Wl,'
21825 # Make sure the PIC flag is empty. It appears that all Alpha
21826 # Linux and Compaq Tru64 Unix objects are PIC.
21827 lt_prog_compiler_pic_CXX=
21828 lt_prog_compiler_static_CXX='-non_shared'
21832 esac
21834 psos*)
21836 solaris*)
21837 case $cc_basename in
21838 CC*)
21839 # Sun C++ 4.2, 5.x and Centerline C++
21840 lt_prog_compiler_pic_CXX='-KPIC'
21841 lt_prog_compiler_static_CXX='-Bstatic'
21842 lt_prog_compiler_wl_CXX='-Qoption ld '
21844 gcx*)
21845 # Green Hills C++ Compiler
21846 lt_prog_compiler_pic_CXX='-PIC'
21850 esac
21852 sunos4*)
21853 case $cc_basename in
21854 CC*)
21855 # Sun C++ 4.x
21856 lt_prog_compiler_pic_CXX='-pic'
21857 lt_prog_compiler_static_CXX='-Bstatic'
21859 lcc*)
21860 # Lucid
21861 lt_prog_compiler_pic_CXX='-pic'
21865 esac
21867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21868 case $cc_basename in
21869 CC*)
21870 lt_prog_compiler_wl_CXX='-Wl,'
21871 lt_prog_compiler_pic_CXX='-KPIC'
21872 lt_prog_compiler_static_CXX='-Bstatic'
21874 esac
21876 tandem*)
21877 case $cc_basename in
21878 NCC*)
21879 # NonStop-UX NCC 3.20
21880 lt_prog_compiler_pic_CXX='-KPIC'
21884 esac
21886 vxworks*)
21889 lt_prog_compiler_can_build_shared_CXX=no
21891 esac
21894 case $host_os in
21895 # For platforms which do not support PIC, -DPIC is meaningless:
21896 *djgpp*)
21897 lt_prog_compiler_pic_CXX=
21900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21902 esac
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21909 # Check to make sure the PIC flag actually works.
21911 if test -n "$lt_prog_compiler_pic_CXX"; then
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21914 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21915 $as_echo_n "(cached) " >&6
21916 else
21917 lt_cv_prog_compiler_pic_works_CXX=no
21918 ac_outfile=conftest.$ac_objext
21919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21920 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 # The option is referenced via a variable to avoid confusing sed.
21926 lt_compile=`echo "$ac_compile" | $SED \
21927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21929 -e 's:$: $lt_compiler_flag:'`
21930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21931 (eval "$lt_compile" 2>conftest.err)
21932 ac_status=$?
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 if (exit $ac_status) && test -s "$ac_outfile"; then
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings other than the usual output.
21938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21941 lt_cv_prog_compiler_pic_works_CXX=yes
21944 $RM conftest*
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21951 case $lt_prog_compiler_pic_CXX in
21952 "" | " "*) ;;
21953 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21954 esac
21955 else
21956 lt_prog_compiler_pic_CXX=
21957 lt_prog_compiler_can_build_shared_CXX=no
21965 # Check to make sure the static flag actually works.
21967 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21970 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 lt_cv_prog_compiler_static_works_CXX=no
21974 save_LDFLAGS="$LDFLAGS"
21975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21978 # The linker can only warn and ignore the option if not recognized
21979 # So say no if there are warnings
21980 if test -s conftest.err; then
21981 # Append any errors to the config.log.
21982 cat conftest.err 1>&5
21983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21985 if diff conftest.exp conftest.er2 >/dev/null; then
21986 lt_cv_prog_compiler_static_works_CXX=yes
21988 else
21989 lt_cv_prog_compiler_static_works_CXX=yes
21992 $RM -r conftest*
21993 LDFLAGS="$save_LDFLAGS"
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21999 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22001 else
22002 lt_prog_compiler_static_CXX=
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22010 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22011 $as_echo_n "(cached) " >&6
22012 else
22013 lt_cv_prog_compiler_c_o_CXX=no
22014 $RM -r conftest 2>/dev/null
22015 mkdir conftest
22016 cd conftest
22017 mkdir out
22018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22020 lt_compiler_flag="-o out/conftest2.$ac_objext"
22021 # Insert the option either (1) after the last *FLAGS variable, or
22022 # (2) before a word containing "conftest.", or (3) at the end.
22023 # Note that $ac_compile itself does not contain backslashes and begins
22024 # with a dollar sign (not a hyphen), so the echo should work correctly.
22025 lt_compile=`echo "$ac_compile" | $SED \
22026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22028 -e 's:$: $lt_compiler_flag:'`
22029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22030 (eval "$lt_compile" 2>out/conftest.err)
22031 ac_status=$?
22032 cat out/conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22035 then
22036 # The compiler can only warn and ignore the option if not recognized
22037 # So say no if there are warnings
22038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22041 lt_cv_prog_compiler_c_o_CXX=yes
22044 chmod u+w . 2>&5
22045 $RM conftest*
22046 # SGI C++ compiler will create directory out/ii_files/ for
22047 # template instantiation
22048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22049 $RM out/* && rmdir out
22050 cd ..
22051 $RM -r conftest
22052 $RM conftest*
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22062 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22063 $as_echo_n "(cached) " >&6
22064 else
22065 lt_cv_prog_compiler_c_o_CXX=no
22066 $RM -r conftest 2>/dev/null
22067 mkdir conftest
22068 cd conftest
22069 mkdir out
22070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22072 lt_compiler_flag="-o out/conftest2.$ac_objext"
22073 # Insert the option either (1) after the last *FLAGS variable, or
22074 # (2) before a word containing "conftest.", or (3) at the end.
22075 # Note that $ac_compile itself does not contain backslashes and begins
22076 # with a dollar sign (not a hyphen), so the echo should work correctly.
22077 lt_compile=`echo "$ac_compile" | $SED \
22078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22080 -e 's:$: $lt_compiler_flag:'`
22081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22082 (eval "$lt_compile" 2>out/conftest.err)
22083 ac_status=$?
22084 cat out/conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22087 then
22088 # The compiler can only warn and ignore the option if not recognized
22089 # So say no if there are warnings
22090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22093 lt_cv_prog_compiler_c_o_CXX=yes
22096 chmod u+w . 2>&5
22097 $RM conftest*
22098 # SGI C++ compiler will create directory out/ii_files/ for
22099 # template instantiation
22100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22101 $RM out/* && rmdir out
22102 cd ..
22103 $RM -r conftest
22104 $RM conftest*
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22113 hard_links="nottested"
22114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22115 # do not overwrite the value of need_locks provided by the user
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22117 $as_echo_n "checking if we can lock with hard links... " >&6; }
22118 hard_links=yes
22119 $RM conftest*
22120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22121 touch conftest.a
22122 ln conftest.a conftest.b 2>&5 || hard_links=no
22123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22125 $as_echo "$hard_links" >&6; }
22126 if test "$hard_links" = no; then
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22129 need_locks=warn
22131 else
22132 need_locks=no
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22141 case $host_os in
22142 aix[4-9]*)
22143 # If we're using GNU nm, then we don't want the "-C" option.
22144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22145 # Also, AIX nm treats weak defined symbols like other global defined
22146 # symbols, whereas GNU nm marks them as "W".
22147 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22148 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'
22149 else
22150 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'
22153 pw32*)
22154 export_symbols_cmds_CXX="$ltdll_cmds"
22156 cygwin* | mingw* | cegcc*)
22157 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'
22160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22162 esac
22163 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22166 $as_echo "$ld_shlibs_CXX" >&6; }
22167 test "$ld_shlibs_CXX" = no && can_build_shared=no
22169 with_gnu_ld_CXX=$with_gnu_ld
22177 # Do we need to explicitly link libc?
22179 case "x$archive_cmds_need_lc_CXX" in
22180 x|xyes)
22181 # Assume -lc should be added
22182 archive_cmds_need_lc_CXX=yes
22184 if test "$enable_shared" = yes && test "$GCC" = yes; then
22185 case $archive_cmds_CXX in
22186 *'~'*)
22187 # FIXME: we may have to deal with multi-command sequences.
22189 '$CC '*)
22190 # Test whether the compiler implicitly links with -lc since on some
22191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22192 # to ld, don't add -lc before -lgcc.
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22194 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22195 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22196 $as_echo_n "(cached) " >&6
22197 else
22198 $RM conftest*
22199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22202 (eval $ac_compile) 2>&5
22203 ac_status=$?
22204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22205 test $ac_status = 0; } 2>conftest.err; then
22206 soname=conftest
22207 lib=conftest
22208 libobjs=conftest.$ac_objext
22209 deplibs=
22210 wl=$lt_prog_compiler_wl_CXX
22211 pic_flag=$lt_prog_compiler_pic_CXX
22212 compiler_flags=-v
22213 linker_flags=-v
22214 verstring=
22215 output_objdir=.
22216 libname=conftest
22217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22218 allow_undefined_flag_CXX=
22219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22221 ac_status=$?
22222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22223 test $ac_status = 0; }
22224 then
22225 lt_cv_archive_cmds_need_lc_CXX=no
22226 else
22227 lt_cv_archive_cmds_need_lc_CXX=yes
22229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22230 else
22231 cat conftest.err 1>&5
22233 $RM conftest*
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22237 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22238 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22240 esac
22243 esac
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22309 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22311 library_names_spec=
22312 libname_spec='lib$name'
22313 soname_spec=
22314 shrext_cmds=".so"
22315 postinstall_cmds=
22316 postuninstall_cmds=
22317 finish_cmds=
22318 finish_eval=
22319 shlibpath_var=
22320 shlibpath_overrides_runpath=unknown
22321 version_type=none
22322 dynamic_linker="$host_os ld.so"
22323 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22324 need_lib_prefix=unknown
22325 hardcode_into_libs=no
22327 # when you set need_version to no, make sure it does not cause -set_version
22328 # flags to be left without arguments
22329 need_version=unknown
22331 case $host_os in
22332 aix3*)
22333 version_type=linux
22334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22335 shlibpath_var=LIBPATH
22337 # AIX 3 has no versioning support, so we append a major version to the name.
22338 soname_spec='${libname}${release}${shared_ext}$major'
22341 aix[4-9]*)
22342 version_type=linux
22343 need_lib_prefix=no
22344 need_version=no
22345 hardcode_into_libs=yes
22346 if test "$host_cpu" = ia64; then
22347 # AIX 5 supports IA64
22348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22349 shlibpath_var=LD_LIBRARY_PATH
22350 else
22351 # With GCC up to 2.95.x, collect2 would create an import file
22352 # for dependence libraries. The import file would start with
22353 # the line `#! .'. This would cause the generated library to
22354 # depend on `.', always an invalid library. This was fixed in
22355 # development snapshots of GCC prior to 3.0.
22356 case $host_os in
22357 aix4 | aix4.[01] | aix4.[01].*)
22358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22359 echo ' yes '
22360 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22362 else
22363 can_build_shared=no
22366 esac
22367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22368 # soname into executable. Probably we can add versioning support to
22369 # collect2, so additional links can be useful in future.
22370 if test "$aix_use_runtimelinking" = yes; then
22371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22372 # instead of lib<name>.a to let people know that these are not
22373 # typical AIX shared libraries.
22374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22375 else
22376 # We preserve .a as extension for shared libraries through AIX4.2
22377 # and later when we are not doing run time linking.
22378 library_names_spec='${libname}${release}.a $libname.a'
22379 soname_spec='${libname}${release}${shared_ext}$major'
22381 shlibpath_var=LIBPATH
22385 amigaos*)
22386 case $host_cpu in
22387 powerpc)
22388 # Since July 2007 AmigaOS4 officially supports .so libraries.
22389 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22392 m68k)
22393 library_names_spec='$libname.ixlibrary $libname.a'
22394 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22395 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'
22397 esac
22400 beos*)
22401 library_names_spec='${libname}${shared_ext}'
22402 dynamic_linker="$host_os ld.so"
22403 shlibpath_var=LIBRARY_PATH
22406 bsdi[45]*)
22407 version_type=linux
22408 need_version=no
22409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22410 soname_spec='${libname}${release}${shared_ext}$major'
22411 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22412 shlibpath_var=LD_LIBRARY_PATH
22413 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22414 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22415 # the default ld.so.conf also contains /usr/contrib/lib and
22416 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22417 # libtool to hard-code these into programs
22420 cygwin* | mingw* | pw32* | cegcc*)
22421 version_type=windows
22422 shrext_cmds=".dll"
22423 need_version=no
22424 need_lib_prefix=no
22426 case $GCC,$host_os in
22427 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22428 library_names_spec='$libname.dll.a'
22429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22430 postinstall_cmds='base_file=`basename \${file}`~
22431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22432 dldir=$destdir/`dirname \$dlpath`~
22433 test -d \$dldir || mkdir -p \$dldir~
22434 $install_prog $dir/$dlname \$dldir/$dlname~
22435 chmod a+x \$dldir/$dlname~
22436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22440 dlpath=$dir/\$dldll~
22441 $RM \$dlpath'
22442 shlibpath_overrides_runpath=yes
22444 case $host_os in
22445 cygwin*)
22446 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22447 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22450 mingw* | cegcc*)
22451 # MinGW DLLs use traditional 'lib' prefix
22452 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22454 pw32*)
22455 # pw32 DLLs use 'pw' prefix rather than 'lib'
22456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22458 esac
22462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22464 esac
22465 dynamic_linker='Win32 ld.exe'
22466 # FIXME: first we should search . and the directory the executable is in
22467 shlibpath_var=PATH
22470 darwin* | rhapsody*)
22471 dynamic_linker="$host_os dyld"
22472 version_type=darwin
22473 need_lib_prefix=no
22474 need_version=no
22475 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22476 soname_spec='${libname}${release}${major}$shared_ext'
22477 shlibpath_overrides_runpath=yes
22478 shlibpath_var=DYLD_LIBRARY_PATH
22479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22484 dgux*)
22485 version_type=linux
22486 need_lib_prefix=no
22487 need_version=no
22488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22489 soname_spec='${libname}${release}${shared_ext}$major'
22490 shlibpath_var=LD_LIBRARY_PATH
22493 freebsd* | dragonfly*)
22494 # DragonFly does not have aout. When/if they implement a new
22495 # versioning mechanism, adjust this.
22496 if test -x /usr/bin/objformat; then
22497 objformat=`/usr/bin/objformat`
22498 else
22499 case $host_os in
22500 freebsd[23].*) objformat=aout ;;
22501 *) objformat=elf ;;
22502 esac
22504 version_type=freebsd-$objformat
22505 case $version_type in
22506 freebsd-elf*)
22507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22508 need_version=no
22509 need_lib_prefix=no
22511 freebsd-*)
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22513 need_version=yes
22515 esac
22516 shlibpath_var=LD_LIBRARY_PATH
22517 case $host_os in
22518 freebsd2.*)
22519 shlibpath_overrides_runpath=yes
22521 freebsd3.[01]* | freebsdelf3.[01]*)
22522 shlibpath_overrides_runpath=yes
22523 hardcode_into_libs=yes
22525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22527 shlibpath_overrides_runpath=no
22528 hardcode_into_libs=yes
22530 *) # from 4.6 on, and DragonFly
22531 shlibpath_overrides_runpath=yes
22532 hardcode_into_libs=yes
22534 esac
22537 haiku*)
22538 version_type=linux
22539 need_lib_prefix=no
22540 need_version=no
22541 dynamic_linker="$host_os runtime_loader"
22542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22543 soname_spec='${libname}${release}${shared_ext}$major'
22544 shlibpath_var=LIBRARY_PATH
22545 shlibpath_overrides_runpath=yes
22546 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22547 hardcode_into_libs=yes
22550 hpux9* | hpux10* | hpux11*)
22551 # Give a soname corresponding to the major version so that dld.sl refuses to
22552 # link against other versions.
22553 version_type=sunos
22554 need_lib_prefix=no
22555 need_version=no
22556 case $host_cpu in
22557 ia64*)
22558 shrext_cmds='.so'
22559 hardcode_into_libs=yes
22560 dynamic_linker="$host_os dld.so"
22561 shlibpath_var=LD_LIBRARY_PATH
22562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22564 soname_spec='${libname}${release}${shared_ext}$major'
22565 if test "X$HPUX_IA64_MODE" = X32; then
22566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22567 else
22568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22572 hppa*64*)
22573 shrext_cmds='.sl'
22574 hardcode_into_libs=yes
22575 dynamic_linker="$host_os dld.sl"
22576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22579 soname_spec='${libname}${release}${shared_ext}$major'
22580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22584 shrext_cmds='.sl'
22585 dynamic_linker="$host_os dld.sl"
22586 shlibpath_var=SHLIB_PATH
22587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
22591 esac
22592 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22593 postinstall_cmds='chmod 555 $lib'
22594 # or fails outright, so override atomically:
22595 install_override_mode=555
22598 interix[3-9]*)
22599 version_type=linux
22600 need_lib_prefix=no
22601 need_version=no
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22605 shlibpath_var=LD_LIBRARY_PATH
22606 shlibpath_overrides_runpath=no
22607 hardcode_into_libs=yes
22610 irix5* | irix6* | nonstopux*)
22611 case $host_os in
22612 nonstopux*) version_type=nonstopux ;;
22614 if test "$lt_cv_prog_gnu_ld" = yes; then
22615 version_type=linux
22616 else
22617 version_type=irix
22618 fi ;;
22619 esac
22620 need_lib_prefix=no
22621 need_version=no
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22624 case $host_os in
22625 irix5* | nonstopux*)
22626 libsuff= shlibsuff=
22629 case $LD in # libtool.m4 will add one of these switches to LD
22630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22631 libsuff= shlibsuff= libmagic=32-bit;;
22632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22633 libsuff=32 shlibsuff=N32 libmagic=N32;;
22634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22635 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22636 *) libsuff= shlibsuff= libmagic=never-match;;
22637 esac
22639 esac
22640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22641 shlibpath_overrides_runpath=no
22642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22644 hardcode_into_libs=yes
22647 # No shared lib support for Linux oldld, aout, or coff.
22648 linux*oldld* | linux*aout* | linux*coff*)
22649 dynamic_linker=no
22652 # This must be Linux ELF.
22654 # uclinux* changes (here and below) have been submitted to the libtool
22655 # project, but have not yet been accepted: they are GCC-local changes
22656 # for the time being. (See
22657 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22659 version_type=linux
22660 need_lib_prefix=no
22661 need_version=no
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22663 soname_spec='${libname}${release}${shared_ext}$major'
22664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22665 shlibpath_var=LD_LIBRARY_PATH
22666 shlibpath_overrides_runpath=no
22668 # Some binutils ld are patched to set DT_RUNPATH
22669 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22670 $as_echo_n "(cached) " >&6
22671 else
22672 lt_cv_shlibpath_overrides_runpath=no
22673 save_LDFLAGS=$LDFLAGS
22674 save_libdir=$libdir
22675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22681 main ()
22685 return 0;
22687 _ACEOF
22688 if ac_fn_cxx_try_link "$LINENO"; then :
22689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22690 lt_cv_shlibpath_overrides_runpath=yes
22693 rm -f core conftest.err conftest.$ac_objext \
22694 conftest$ac_exeext conftest.$ac_ext
22695 LDFLAGS=$save_LDFLAGS
22696 libdir=$save_libdir
22700 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22702 # This implies no fast_install, which is unacceptable.
22703 # Some rework will be needed to allow for fast_install
22704 # before this can be enabled.
22705 hardcode_into_libs=yes
22707 # Append ld.so.conf contents to the search path
22708 if test -f /etc/ld.so.conf; then
22709 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' ' '`
22710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22713 # We used to test for /lib/ld.so.1 and disable shared libraries on
22714 # powerpc, because MkLinux only supported shared libraries with the
22715 # GNU dynamic linker. Since this was broken with cross compilers,
22716 # most powerpc-linux boxes support dynamic linking these days and
22717 # people can always --disable-shared, the test was removed, and we
22718 # assume the GNU/Linux dynamic linker is in use.
22719 dynamic_linker='GNU/Linux ld.so'
22722 netbsd*)
22723 version_type=sunos
22724 need_lib_prefix=no
22725 need_version=no
22726 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22729 dynamic_linker='NetBSD (a.out) ld.so'
22730 else
22731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 dynamic_linker='NetBSD ld.elf_so'
22735 shlibpath_var=LD_LIBRARY_PATH
22736 shlibpath_overrides_runpath=yes
22737 hardcode_into_libs=yes
22740 newsos6)
22741 version_type=linux
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 shlibpath_var=LD_LIBRARY_PATH
22744 shlibpath_overrides_runpath=yes
22747 *nto* | *qnx*)
22748 version_type=qnx
22749 need_lib_prefix=no
22750 need_version=no
22751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22752 soname_spec='${libname}${release}${shared_ext}$major'
22753 shlibpath_var=LD_LIBRARY_PATH
22754 shlibpath_overrides_runpath=no
22755 hardcode_into_libs=yes
22756 dynamic_linker='ldqnx.so'
22759 openbsd*)
22760 version_type=sunos
22761 sys_lib_dlsearch_path_spec="/usr/lib"
22762 need_lib_prefix=no
22763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22764 case $host_os in
22765 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22766 *) need_version=no ;;
22767 esac
22768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22770 shlibpath_var=LD_LIBRARY_PATH
22771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22772 case $host_os in
22773 openbsd2.[89] | openbsd2.[89].*)
22774 shlibpath_overrides_runpath=no
22777 shlibpath_overrides_runpath=yes
22779 esac
22780 else
22781 shlibpath_overrides_runpath=yes
22785 os2*)
22786 libname_spec='$name'
22787 shrext_cmds=".dll"
22788 need_lib_prefix=no
22789 library_names_spec='$libname${shared_ext} $libname.a'
22790 dynamic_linker='OS/2 ld.exe'
22791 shlibpath_var=LIBPATH
22794 osf3* | osf4* | osf5*)
22795 version_type=osf
22796 need_lib_prefix=no
22797 need_version=no
22798 soname_spec='${libname}${release}${shared_ext}$major'
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22800 shlibpath_var=LD_LIBRARY_PATH
22801 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22802 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22805 rdos*)
22806 dynamic_linker=no
22809 solaris*)
22810 version_type=linux
22811 need_lib_prefix=no
22812 need_version=no
22813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 shlibpath_var=LD_LIBRARY_PATH
22816 shlibpath_overrides_runpath=yes
22817 hardcode_into_libs=yes
22818 # ldd complains unless libraries are executable
22819 postinstall_cmds='chmod +x $lib'
22822 sunos4*)
22823 version_type=sunos
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22825 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 shlibpath_overrides_runpath=yes
22828 if test "$with_gnu_ld" = yes; then
22829 need_lib_prefix=no
22831 need_version=yes
22834 sysv4 | sysv4.3*)
22835 version_type=linux
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 soname_spec='${libname}${release}${shared_ext}$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 case $host_vendor in
22840 sni)
22841 shlibpath_overrides_runpath=no
22842 need_lib_prefix=no
22843 runpath_var=LD_RUN_PATH
22845 siemens)
22846 need_lib_prefix=no
22848 motorola)
22849 need_lib_prefix=no
22850 need_version=no
22851 shlibpath_overrides_runpath=no
22852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22854 esac
22857 sysv4*MP*)
22858 if test -d /usr/nec ;then
22859 version_type=linux
22860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22861 soname_spec='$libname${shared_ext}.$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22867 version_type=freebsd-elf
22868 need_lib_prefix=no
22869 need_version=no
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22871 soname_spec='${libname}${release}${shared_ext}$major'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 shlibpath_overrides_runpath=yes
22874 hardcode_into_libs=yes
22875 if test "$with_gnu_ld" = yes; then
22876 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22877 else
22878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22879 case $host_os in
22880 sco3.2v5*)
22881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22883 esac
22885 sys_lib_dlsearch_path_spec='/usr/lib'
22888 tpf*)
22889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22890 version_type=linux
22891 need_lib_prefix=no
22892 need_version=no
22893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22894 shlibpath_var=LD_LIBRARY_PATH
22895 shlibpath_overrides_runpath=no
22896 hardcode_into_libs=yes
22899 uts4*)
22900 version_type=linux
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec='${libname}${release}${shared_ext}$major'
22903 shlibpath_var=LD_LIBRARY_PATH
22907 dynamic_linker=no
22909 esac
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22911 $as_echo "$dynamic_linker" >&6; }
22912 test "$dynamic_linker" = no && can_build_shared=no
22914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22915 if test "$GCC" = yes; then
22916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22919 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22920 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22922 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22923 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22965 hardcode_action_CXX=
22966 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22967 test -n "$runpath_var_CXX" ||
22968 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22970 # We can hardcode non-existent directories.
22971 if test "$hardcode_direct_CXX" != no &&
22972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22973 # have to relink, otherwise we might link with an installed library
22974 # when we should be linking with a yet-to-be-installed one
22975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22976 test "$hardcode_minus_L_CXX" != no; then
22977 # Linking always hardcodes the temporary library directory.
22978 hardcode_action_CXX=relink
22979 else
22980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22981 hardcode_action_CXX=immediate
22983 else
22984 # We cannot hardcode anything, or else we can only hardcode existing
22985 # directories.
22986 hardcode_action_CXX=unsupported
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22989 $as_echo "$hardcode_action_CXX" >&6; }
22991 if test "$hardcode_action_CXX" = relink ||
22992 test "$inherit_rpath_CXX" = yes; then
22993 # Fast installation is not supported
22994 enable_fast_install=no
22995 elif test "$shlibpath_overrides_runpath" = yes ||
22996 test "$enable_shared" = no; then
22997 # Fast installation is not necessary
22998 enable_fast_install=needless
23007 fi # test -n "$compiler"
23009 CC=$lt_save_CC
23010 LDCXX=$LD
23011 LD=$lt_save_LD
23012 GCC=$lt_save_GCC
23013 with_gnu_ld=$lt_save_with_gnu_ld
23014 lt_cv_path_LDCXX=$lt_cv_path_LD
23015 lt_cv_path_LD=$lt_save_path_LD
23016 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23017 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23018 fi # test "$_lt_caught_CXX_error" != yes
23020 ac_ext=cpp
23021 ac_cpp='$CXXCPP $CPPFLAGS'
23022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23041 # Only expand once:
23047 # Identify the assembler which will work hand-in-glove with the newly
23048 # built GCC, so that we can examine its features. This is the assembler
23049 # which will be driven by the driver program.
23051 # If build != host, and we aren't building gas in-tree, we identify a
23052 # build->target assembler and hope that it will have the same features
23053 # as the host->target assembler we'll be using.
23054 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23056 if ${gcc_cv_as+:} false; then :
23058 else
23060 if test -x "$DEFAULT_ASSEMBLER"; then
23061 gcc_cv_as="$DEFAULT_ASSEMBLER"
23062 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23063 && test -f ../gas/Makefile \
23064 && test x$build = x$host; then
23065 gcc_cv_as=../gas/as-new$build_exeext
23066 elif test -x as$build_exeext; then
23067 # Build using assembler in the current directory.
23068 gcc_cv_as=./as$build_exeext
23069 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23070 gcc_cv_as="$AS_FOR_TARGET"
23071 else
23072 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23073 set dummy $AS_FOR_TARGET; ac_word=$2
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23075 $as_echo_n "checking for $ac_word... " >&6; }
23076 if ${ac_cv_path_gcc_cv_as+:} false; then :
23077 $as_echo_n "(cached) " >&6
23078 else
23079 case $gcc_cv_as in
23080 [\\/]* | ?:[\\/]*)
23081 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23085 for as_dir in $PATH
23087 IFS=$as_save_IFS
23088 test -z "$as_dir" && as_dir=.
23089 for ac_exec_ext in '' $ac_executable_extensions; do
23090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23091 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23093 break 2
23095 done
23096 done
23097 IFS=$as_save_IFS
23100 esac
23102 gcc_cv_as=$ac_cv_path_gcc_cv_as
23103 if test -n "$gcc_cv_as"; then
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23105 $as_echo "$gcc_cv_as" >&6; }
23106 else
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23108 $as_echo "no" >&6; }
23115 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23117 case "$ORIGINAL_AS_FOR_TARGET" in
23118 ./as | ./as$build_exeext) ;;
23119 *) ac_config_files="$ac_config_files as:exec-tool.in"
23121 esac
23123 default_ld=
23124 # Check whether --enable-ld was given.
23125 if test "${enable_ld+set}" = set; then :
23126 enableval=$enable_ld; case "${enableval}" in
23128 default_ld=ld.gold
23130 esac
23134 install_gold_as_default=no
23135 # Check whether --enable-gold was given.
23136 if test "${enable_gold+set}" = set; then :
23137 enableval=$enable_gold; case "${enableval}" in
23138 default)
23139 install_gold_as_default=yes
23141 yes)
23142 if test x${default_ld} != x; then
23143 install_gold_as_default=yes
23149 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23151 esac
23155 # Identify the linker which will work hand-in-glove with the newly
23156 # built GCC, so that we can examine its features. This is the linker
23157 # which will be driven by the driver program.
23159 # If build != host, and we aren't building gas in-tree, we identify a
23160 # build->target linker and hope that it will have the same features
23161 # as the host->target linker we'll be using.
23162 gcc_cv_gld_major_version=
23163 gcc_cv_gld_minor_version=
23164 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23165 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23166 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23168 if ${gcc_cv_ld+:} false; then :
23170 else
23172 if test -x "$DEFAULT_LINKER"; then
23173 gcc_cv_ld="$DEFAULT_LINKER"
23174 elif test $install_gold_as_default = yes \
23175 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23176 && test -f ../gold/Makefile \
23177 && test x$build = x$host; then
23178 gcc_cv_ld=../gold/ld-new$build_exeext
23179 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23180 && test -f ../ld/Makefile \
23181 && test x$build = x$host; then
23182 gcc_cv_ld=../ld/ld-new$build_exeext
23183 elif test -x collect-ld$build_exeext; then
23184 # Build using linker in the current directory.
23185 gcc_cv_ld=./collect-ld$build_exeext
23186 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23187 gcc_cv_ld="$LD_FOR_TARGET"
23188 else
23189 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23190 set dummy $LD_FOR_TARGET; ac_word=$2
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23192 $as_echo_n "checking for $ac_word... " >&6; }
23193 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 case $gcc_cv_ld in
23197 [\\/]* | ?:[\\/]*)
23198 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23202 for as_dir in $PATH
23204 IFS=$as_save_IFS
23205 test -z "$as_dir" && as_dir=.
23206 for ac_exec_ext in '' $ac_executable_extensions; do
23207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23208 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23210 break 2
23212 done
23213 done
23214 IFS=$as_save_IFS
23217 esac
23219 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23220 if test -n "$gcc_cv_ld"; then
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23222 $as_echo "$gcc_cv_ld" >&6; }
23223 else
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23225 $as_echo "no" >&6; }
23232 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23233 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23234 # if the PLUGIN_LD is set ld-new, just have it as ld
23235 # as that is the installed named.
23236 if test x$PLUGIN_LD_SUFFIX = xld-new \
23237 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23238 PLUGIN_LD_SUFFIX=ld
23241 # Check whether --with-plugin-ld was given.
23242 if test "${with_plugin_ld+set}" = set; then :
23243 withval=$with_plugin_ld; if test x"$withval" != x; then
23244 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23245 PLUGIN_LD_SUFFIX="$withval"
23251 cat >>confdefs.h <<_ACEOF
23252 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23253 _ACEOF
23256 # Check to see if we are using gold instead of ld
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23258 $as_echo_n "checking whether we are using gold... " >&6; }
23259 ld_is_gold=no
23260 if test x$gcc_cv_ld != x; then
23261 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23262 | grep "GNU gold" > /dev/null; then
23263 ld_is_gold=yes
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23267 $as_echo "$ld_is_gold" >&6; }
23269 # Check to see if we are using mold instead of ld
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23271 $as_echo_n "checking whether we are using mold... " >&6; }
23272 ld_is_mold=no
23273 if test x$gcc_cv_ld != x; then
23274 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23275 | grep "mold" > /dev/null; then
23276 ld_is_mold=yes
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23280 $as_echo "$ld_is_mold" >&6; }
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23284 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23285 # Check to see if default ld is not gold, but gold is
23286 # available and has support for split stack. If gcc was configured
23287 # with gold then no checking is done.
23289 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23291 # For platforms other than powerpc64*, enable as appropriate.
23293 gold_non_default=no
23294 ld_gold=`which ${gcc_cv_ld}.gold`
23295 # Make sure this gold has minimal split stack support
23296 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23297 ld_vers=`$ld_gold --version | sed 1q`
23298 gold_vers=`echo $ld_vers | sed -n \
23299 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23300 case $target in
23301 # check that the gold version contains the complete split stack support
23302 # on powerpc64 big and little endian
23303 powerpc64*-*-*)
23304 case "$gold_vers" in
23305 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23307 *) gold_non_default=no
23309 esac
23311 esac
23313 if test $gold_non_default = yes; then
23315 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23320 $as_echo "$gold_non_default" >&6; }
23322 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23324 case "$ORIGINAL_LD_FOR_TARGET" in
23325 ./collect-ld | ./collect-ld$build_exeext) ;;
23326 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23328 esac
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23331 $as_echo_n "checking what linker to use... " >&6; }
23332 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23333 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23334 # Single tree build which includes ld. We want to prefer it
23335 # over whatever linker top-level may have detected, since
23336 # we'll use what we're building after installation anyway.
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23338 $as_echo "newly built ld" >&6; }
23339 in_tree_ld=yes
23340 in_tree_ld_is_elf=no
23341 if (grep 'EMUL = .*elf' ../ld/Makefile \
23342 || grep 'EMUL = .*linux' ../ld/Makefile \
23343 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23344 in_tree_ld_is_elf=yes
23345 elif test "$ld_is_gold" = yes; then
23346 in_tree_ld_is_elf=yes
23348 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
23350 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23351 if test x$gcc_cv_gld_version != x; then
23352 break
23354 done
23355 case $gcc_cv_gld_version in
23356 VERSION=[0-9]*) ;;
23357 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23358 esac
23359 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23360 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23361 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23362 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23363 else
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23365 $as_echo "$gcc_cv_ld" >&6; }
23366 in_tree_ld=no
23367 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23368 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23369 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23375 # Figure out what nm we will be using.
23376 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23377 if ${gcc_cv_nm+:} false; then :
23379 else
23381 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23382 && test -f ../binutils/Makefile \
23383 && test x$build = x$host; then
23384 gcc_cv_nm=../binutils/nm-new$build_exeext
23385 elif test -x nm$build_exeext; then
23386 gcc_cv_nm=./nm$build_exeext
23387 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23388 gcc_cv_nm="$NM_FOR_TARGET"
23389 else
23390 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23391 set dummy $NM_FOR_TARGET; ac_word=$2
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23393 $as_echo_n "checking for $ac_word... " >&6; }
23394 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23395 $as_echo_n "(cached) " >&6
23396 else
23397 case $gcc_cv_nm in
23398 [\\/]* | ?:[\\/]*)
23399 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23403 for as_dir in $PATH
23405 IFS=$as_save_IFS
23406 test -z "$as_dir" && as_dir=.
23407 for ac_exec_ext in '' $ac_executable_extensions; do
23408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23409 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23411 break 2
23413 done
23414 done
23415 IFS=$as_save_IFS
23418 esac
23420 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23421 if test -n "$gcc_cv_nm"; then
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23423 $as_echo "$gcc_cv_nm" >&6; }
23424 else
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23426 $as_echo "no" >&6; }
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23434 $as_echo_n "checking what nm to use... " >&6; }
23435 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23436 # Single tree build which includes binutils.
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23438 $as_echo "newly built nm" >&6; }
23439 in_tree_nm=yes
23440 else
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23442 $as_echo "$gcc_cv_nm" >&6; }
23443 in_tree_nm=no
23446 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23448 case "$ORIGINAL_NM_FOR_TARGET" in
23449 ./nm | ./nm$build_exeext) ;;
23450 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23452 esac
23455 # Figure out what objdump we will be using.
23456 if ${gcc_cv_objdump+:} false; then :
23458 else
23460 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23461 && test -f ../binutils/Makefile \
23462 && test x$build = x$host; then
23463 # Single tree build which includes binutils.
23464 gcc_cv_objdump=../binutils/objdump$build_exeext
23465 elif test -x objdump$build_exeext; then
23466 gcc_cv_objdump=./objdump$build_exeext
23467 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23468 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23469 else
23470 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23471 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23473 $as_echo_n "checking for $ac_word... " >&6; }
23474 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23475 $as_echo_n "(cached) " >&6
23476 else
23477 case $gcc_cv_objdump in
23478 [\\/]* | ?:[\\/]*)
23479 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23483 for as_dir in $PATH
23485 IFS=$as_save_IFS
23486 test -z "$as_dir" && as_dir=.
23487 for ac_exec_ext in '' $ac_executable_extensions; do
23488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23489 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23491 break 2
23493 done
23494 done
23495 IFS=$as_save_IFS
23498 esac
23500 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23501 if test -n "$gcc_cv_objdump"; then
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23503 $as_echo "$gcc_cv_objdump" >&6; }
23504 else
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23506 $as_echo "no" >&6; }
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23514 $as_echo_n "checking what objdump to use... " >&6; }
23515 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23516 # Single tree build which includes binutils.
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23518 $as_echo "newly built objdump" >&6; }
23519 elif test x$gcc_cv_objdump = x; then
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23521 $as_echo "not found" >&6; }
23522 else
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23524 $as_echo "$gcc_cv_objdump" >&6; }
23527 # Figure out what readelf we will be using.
23528 if ${gcc_cv_readelf+:} false; then :
23530 else
23532 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23533 && test -f ../binutils/Makefile \
23534 && test x$build = x$host; then
23535 # Single tree build which includes binutils.
23536 gcc_cv_readelf=../binutils/readelf$build_exeext
23537 elif test -x readelf$build_exeext; then
23538 gcc_cv_readelf=./readelf$build_exeext
23539 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23540 gcc_cv_readelf="$READELF_FOR_TARGET"
23541 else
23542 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23543 set dummy $READELF_FOR_TARGET; ac_word=$2
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23545 $as_echo_n "checking for $ac_word... " >&6; }
23546 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23547 $as_echo_n "(cached) " >&6
23548 else
23549 case $gcc_cv_readelf in
23550 [\\/]* | ?:[\\/]*)
23551 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23555 for as_dir in $PATH
23557 IFS=$as_save_IFS
23558 test -z "$as_dir" && as_dir=.
23559 for ac_exec_ext in '' $ac_executable_extensions; do
23560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23561 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23563 break 2
23565 done
23566 done
23567 IFS=$as_save_IFS
23570 esac
23572 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23573 if test -n "$gcc_cv_readelf"; then
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23575 $as_echo "$gcc_cv_readelf" >&6; }
23576 else
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23578 $as_echo "no" >&6; }
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23586 $as_echo_n "checking what readelf to use... " >&6; }
23587 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23588 # Single tree build which includes binutils.
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23590 $as_echo "newly built readelf" >&6; }
23591 elif test x$gcc_cv_readelf = x; then
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23593 $as_echo "not found" >&6; }
23594 else
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23596 $as_echo "$gcc_cv_readelf" >&6; }
23599 # Figure out what otool we will be using.
23600 if ${gcc_cv_otool+:} false; then :
23602 else
23604 if test -x otool$build_exeext; then
23605 gcc_cv_otool=./otool$build_exeext
23606 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23607 gcc_cv_otool="$OTOOL_FOR_TARGET"
23608 else
23609 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23610 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23612 $as_echo_n "checking for $ac_word... " >&6; }
23613 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23614 $as_echo_n "(cached) " >&6
23615 else
23616 case $gcc_cv_otool in
23617 [\\/]* | ?:[\\/]*)
23618 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23622 for as_dir in $PATH
23624 IFS=$as_save_IFS
23625 test -z "$as_dir" && as_dir=.
23626 for ac_exec_ext in '' $ac_executable_extensions; do
23627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23628 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23630 break 2
23632 done
23633 done
23634 IFS=$as_save_IFS
23637 esac
23639 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23640 if test -n "$gcc_cv_otool"; then
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23642 $as_echo "$gcc_cv_otool" >&6; }
23643 else
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23645 $as_echo "no" >&6; }
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23653 $as_echo_n "checking what otool to use... " >&6; }
23654 if test x$gcc_cv_otool = x; then
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23656 $as_echo "not found" >&6; }
23657 else
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23659 $as_echo "$gcc_cv_otool" >&6; }
23662 # Figure out the dsymutil we will use.
23663 if ${gcc_cv_dsymutil+:} false; then :
23665 else
23667 if test -x "$DEFAULT_DSYMUTIL"; then
23668 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23669 elif test -x dsymutil$build_exeext; then
23670 gcc_cv_dsymutil=./dsymutil$build_exeext
23671 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23672 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23673 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23674 gcc_cv_dsymutil=$DSYMUTIL
23675 else
23676 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23677 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23679 $as_echo_n "checking for $ac_word... " >&6; }
23680 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23681 $as_echo_n "(cached) " >&6
23682 else
23683 case $gcc_cv_dsymutil in
23684 [\\/]* | ?:[\\/]*)
23685 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23689 for as_dir in $PATH
23691 IFS=$as_save_IFS
23692 test -z "$as_dir" && as_dir=.
23693 for ac_exec_ext in '' $ac_executable_extensions; do
23694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23695 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23697 break 2
23699 done
23700 done
23701 IFS=$as_save_IFS
23704 esac
23706 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23707 if test -n "$gcc_cv_dsymutil"; then
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23709 $as_echo "$gcc_cv_dsymutil" >&6; }
23710 else
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712 $as_echo "no" >&6; }
23719 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23721 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23722 ./dsymutil | ./dsymutil$build_exeext) ;;
23723 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23725 esac
23727 # Figure out what assembler alignment features are present.
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23729 $as_echo_n "checking assembler flags... " >&6; }
23730 if ${gcc_cv_as_flags+:} false; then :
23731 $as_echo_n "(cached) " >&6
23732 else
23733 case "$target" in
23734 i[34567]86-*-linux*)
23735 gcc_cv_as_flags=--32
23737 x86_64-*-linux-gnux32)
23738 gcc_cv_as_flags=--x32
23740 x86_64-*-linux*)
23741 gcc_cv_as_flags=--64
23743 powerpc*-*-darwin*)
23744 gcc_cv_as_flags="-arch ppc"
23747 gcc_cv_as_flags=" "
23749 esac
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23752 $as_echo "$gcc_cv_as_flags" >&6; }
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23755 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23756 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23757 $as_echo_n "(cached) " >&6
23758 else
23759 gcc_cv_as_balign_and_p2align=no
23760 if test x$gcc_cv_as != x; then
23761 $as_echo '.balign 4
23762 .p2align 2' > conftest.s
23763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; }
23769 then
23770 gcc_cv_as_balign_and_p2align=yes
23771 else
23772 echo "configure: failed program was" >&5
23773 cat conftest.s >&5
23775 rm -f conftest.o conftest.s
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23779 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23780 if test $gcc_cv_as_balign_and_p2align = yes; then
23782 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23788 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23789 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23790 $as_echo_n "(cached) " >&6
23791 else
23792 gcc_cv_as_max_skip_p2align=no
23793 if test x$gcc_cv_as != x; then
23794 $as_echo '.p2align 4,,7' > conftest.s
23795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; }
23801 then
23802 gcc_cv_as_max_skip_p2align=yes
23803 else
23804 echo "configure: failed program was" >&5
23805 cat conftest.s >&5
23807 rm -f conftest.o conftest.s
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23811 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23812 if test $gcc_cv_as_max_skip_p2align = yes; then
23814 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23820 $as_echo_n "checking assembler for .literal16... " >&6; }
23821 if ${gcc_cv_as_literal16+:} false; then :
23822 $as_echo_n "(cached) " >&6
23823 else
23824 gcc_cv_as_literal16=no
23825 if test x$gcc_cv_as != x; then
23826 $as_echo '.literal16' > conftest.s
23827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; }
23833 then
23834 gcc_cv_as_literal16=yes
23835 else
23836 echo "configure: failed program was" >&5
23837 cat conftest.s >&5
23839 rm -f conftest.o conftest.s
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23843 $as_echo "$gcc_cv_as_literal16" >&6; }
23844 if test $gcc_cv_as_literal16 = yes; then
23846 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23852 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23853 if ${gcc_cv_as_subsection_m1+:} false; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_subsection_m1=no
23857 if test x$gcc_cv_as != x; then
23858 $as_echo 'conftest_label1: .word 0
23859 .subsection -1
23860 conftest_label2: .word 0
23861 .previous' > conftest.s
23862 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23864 (eval $ac_try) 2>&5
23865 ac_status=$?
23866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23867 test $ac_status = 0; }; }
23868 then
23869 if test x$gcc_cv_nm != x; then
23870 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23871 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23872 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23873 then :
23874 else gcc_cv_as_subsection_m1=yes
23876 rm -f conftest.nm1 conftest.nm2
23878 else
23879 echo "configure: failed program was" >&5
23880 cat conftest.s >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23886 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23887 if test $gcc_cv_as_subsection_m1 = yes; then
23889 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23895 $as_echo_n "checking assembler for .weak... " >&6; }
23896 if ${gcc_cv_as_weak+:} false; then :
23897 $as_echo_n "(cached) " >&6
23898 else
23899 gcc_cv_as_weak=no
23900 if test x$gcc_cv_as != x; then
23901 $as_echo ' .weak foobar' > conftest.s
23902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23907 test $ac_status = 0; }; }
23908 then
23909 gcc_cv_as_weak=yes
23910 else
23911 echo "configure: failed program was" >&5
23912 cat conftest.s >&5
23914 rm -f conftest.o conftest.s
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23918 $as_echo "$gcc_cv_as_weak" >&6; }
23919 if test $gcc_cv_as_weak = yes; then
23921 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23927 $as_echo_n "checking assembler for .weakref... " >&6; }
23928 if ${gcc_cv_as_weakref+:} false; then :
23929 $as_echo_n "(cached) " >&6
23930 else
23931 gcc_cv_as_weakref=no
23932 if test x$gcc_cv_as != x; then
23933 $as_echo ' .weakref foobar, barfnot' > conftest.s
23934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; }
23940 then
23941 gcc_cv_as_weakref=yes
23942 else
23943 echo "configure: failed program was" >&5
23944 cat conftest.s >&5
23946 rm -f conftest.o conftest.s
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23950 $as_echo "$gcc_cv_as_weakref" >&6; }
23951 if test $gcc_cv_as_weakref = yes; then
23953 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23959 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23960 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
23961 $as_echo_n "(cached) " >&6
23962 else
23963 gcc_cv_as_nsubspa_comdat=no
23964 if test x$gcc_cv_as != x; then
23965 $as_echo ' .SPACE $TEXT$
23966 .NSUBSPA $CODE$,COMDAT' > conftest.s
23967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969 (eval $ac_try) 2>&5
23970 ac_status=$?
23971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972 test $ac_status = 0; }; }
23973 then
23974 gcc_cv_as_nsubspa_comdat=yes
23975 else
23976 echo "configure: failed program was" >&5
23977 cat conftest.s >&5
23979 rm -f conftest.o conftest.s
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23983 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23984 if test $gcc_cv_as_nsubspa_comdat = yes; then
23986 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23991 # .hidden needs to be supported in both the assembler and the linker,
23992 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23993 # This is irritatingly difficult to feature test for; we have to check the
23994 # date string after the version number. If we've got an in-tree
23995 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23996 # to be safe.
23997 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23998 case "${target}" in
23999 *-*-aix*)
24000 conftest_s=' .globl foobar,hidden'
24003 conftest_s=' .hidden foobar
24004 foobar:'
24006 esac
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24008 $as_echo_n "checking assembler for .hidden... " >&6; }
24009 if ${gcc_cv_as_hidden+:} false; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 gcc_cv_as_hidden=no
24013 if test x$gcc_cv_as != x; then
24014 $as_echo "$conftest_s" > conftest.s
24015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24020 test $ac_status = 0; }; }
24021 then
24022 gcc_cv_as_hidden=yes
24023 else
24024 echo "configure: failed program was" >&5
24025 cat conftest.s >&5
24027 rm -f conftest.o conftest.s
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24031 $as_echo "$gcc_cv_as_hidden" >&6; }
24034 case "${target}" in
24035 *-*-darwin*)
24036 # Darwin as has some visibility support, though with a different syntax.
24037 gcc_cv_as_hidden=yes
24039 esac
24041 # gnu_indirect_function type is an extension proposed at
24042 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24043 # selection of function implementation
24044 # Check whether --enable-gnu-indirect-function was given.
24045 if test "${enable_gnu_indirect_function+set}" = set; then :
24046 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24047 yes | no) ;;
24048 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24049 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24050 esac
24051 else
24052 enable_gnu_indirect_function="$default_gnu_indirect_function"
24056 case "${target}" in
24057 riscv*-*-linux*)
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24059 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24060 cat > conftest.s <<EOF
24061 .text
24062 .type foo_resolver, @function
24063 foo_resolver:
24065 .size foo_resolver, .-foo_resolver
24067 .globl foo
24068 .type foo, %gnu_indirect_function
24069 .set foo, foo_resolver
24071 .globl bar
24072 .type bar, @function
24073 bar:
24074 call foo
24076 .size bar, .-bar
24078 if test x$gcc_cv_as != x \
24079 && test x$gcc_cv_ld != x \
24080 && test x$gcc_cv_readelf != x \
24081 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24082 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24083 && $gcc_cv_readelf --relocs --wide conftest \
24084 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24085 enable_gnu_indirect_function=yes
24087 rm -f conftest conftest.o conftest.s
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24089 $as_echo "$enable_gnu_indirect_function" >&6; }
24091 esac
24093 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24095 cat >>confdefs.h <<_ACEOF
24096 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24097 _ACEOF
24101 if test $in_tree_ld != yes ; then
24102 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24103 if echo "$ld_ver" | grep GNU > /dev/null; then
24104 if test x"$ld_is_gold" = xyes; then
24105 # GNU gold --version looks like this:
24107 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24109 # We extract the binutils version which is more familiar and specific
24110 # than the gold version.
24111 ld_vers=`echo $ld_ver | sed -n \
24112 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24113 else
24114 # GNU ld --version looks like this:
24116 # GNU ld (GNU Binutils) 2.21.51.20110225
24117 ld_vers=`echo $ld_ver | sed -n \
24118 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24120 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'`
24121 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24122 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24123 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24124 else
24125 case "${target}" in
24126 *-*-solaris2*)
24127 # Solaris 2 ld -V output looks like this for a regular version:
24129 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24131 # but test versions add stuff at the end:
24133 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24135 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24136 # numbers can be used in ld.so.1 feature checks even if a different
24137 # linker is configured.
24138 ld_ver=`$gcc_cv_ld -V 2>&1`
24139 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24140 ld_vers=`echo $ld_ver | sed -n \
24141 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24142 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24143 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24146 esac
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24151 $as_echo_n "checking linker for .hidden support... " >&6; }
24152 if ${gcc_cv_ld_hidden+:} false; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 if test $in_tree_ld = yes ; then
24156 gcc_cv_ld_hidden=no
24157 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 \
24158 && test $in_tree_ld_is_elf = yes; then
24159 gcc_cv_ld_hidden=yes
24161 else
24162 gcc_cv_ld_hidden=yes
24163 if test x"$ld_is_gold" = xyes; then
24165 elif test x"$ld_is_mold" = xyes; then
24167 elif echo "$ld_ver" | grep GNU > /dev/null; then
24168 if test 0"$ld_date" -lt 20020404; then
24169 if test -n "$ld_date"; then
24170 # If there was date string, but was earlier than 2002-04-04, fail
24171 gcc_cv_ld_hidden=no
24172 elif test -z "$ld_vers"; then
24173 # If there was no date string nor ld version number, something is wrong
24174 gcc_cv_ld_hidden=no
24175 else
24176 test -z "$ld_vers_patch" && ld_vers_patch=0
24177 if test "$ld_vers_major" -lt 2; then
24178 gcc_cv_ld_hidden=no
24179 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24180 gcc_cv_ld_hidden="no"
24181 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24182 gcc_cv_ld_hidden=no
24186 else
24187 case "${target}" in
24188 *-*-aix[789]*)
24189 gcc_cv_ld_hidden=yes
24191 *-*-darwin*)
24192 # Darwin ld has some visibility support.
24193 gcc_cv_ld_hidden=yes
24195 hppa64*-*-hpux* | ia64*-*-hpux*)
24196 gcc_cv_ld_hidden=yes
24198 *-*-solaris2*)
24199 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24200 # .symbolic was only added in Solaris 9 12/02.
24201 gcc_cv_ld_hidden=yes
24204 gcc_cv_ld_hidden=no
24206 esac
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24211 $as_echo "$gcc_cv_ld_hidden" >&6; }
24212 libgcc_visibility=no
24215 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24216 libgcc_visibility=yes
24218 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24223 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24224 gcc_cv_ld_ro_rw_mix=unknown
24225 if test $in_tree_ld = yes ; then
24226 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 \
24227 && test $in_tree_ld_is_elf = yes; then
24228 gcc_cv_ld_ro_rw_mix=read-write
24230 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24231 echo '.section myfoosect, "a"' > conftest1.s
24232 echo '.section myfoosect, "aw"' > conftest2.s
24233 echo '.byte 1' >> conftest2.s
24234 echo '.section myfoosect, "a"' > conftest3.s
24235 echo '.byte 0' >> conftest3.s
24236 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24237 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24238 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24239 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24240 conftest2.o conftest3.o > /dev/null 2>&1; then
24241 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24242 | sed -e '/myfoosect/!d' -e N`
24243 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24244 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24245 gcc_cv_ld_ro_rw_mix=read-only
24246 else
24247 gcc_cv_ld_ro_rw_mix=read-write
24251 rm -f conftest.* conftest[123].*
24253 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24255 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24259 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24261 # Check whether --enable-initfini-array was given.
24262 if test "${enable_initfini_array+set}" = set; then :
24263 enableval=$enable_initfini_array;
24264 else
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24267 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24268 if ${gcc_cv_initfini_array+:} false; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24272 case "${target}" in
24273 ia64-*)
24274 if test "$cross_compiling" = yes; then :
24275 gcc_cv_initfini_array=no
24276 else
24277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h. */
24280 #ifndef __ELF__
24281 #error Not an ELF OS
24282 #endif
24283 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24284 if it can be used. */
24285 static int x = -1;
24286 int main (void) { return x; }
24287 int foo (void) { x = 0; }
24288 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24290 _ACEOF
24291 if ac_fn_cxx_try_run "$LINENO"; then :
24292 gcc_cv_initfini_array=yes
24293 else
24294 gcc_cv_initfini_array=no
24296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24297 conftest.$ac_objext conftest.beam conftest.$ac_ext
24301 gcc_cv_initfini_array=no
24302 if test $in_tree_ld = yes ; then
24303 if test "$gcc_cv_gld_major_version" -eq 2 \
24304 -a "$gcc_cv_gld_minor_version" -ge 22 \
24305 -o "$gcc_cv_gld_major_version" -gt 2 \
24306 && test $in_tree_ld_is_elf = yes; then
24307 gcc_cv_initfini_array=yes
24309 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24310 case $target:$gas in
24311 *:yes)
24312 sh_flags='"a"'
24313 sh_type='%progbits'
24315 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24316 sh_flags='"a"'
24317 sh_type='@progbits'
24319 sparc*-*-solaris2*:no)
24320 sh_flags='#alloc'
24321 sh_type='#progbits'
24322 sh_quote='"'
24324 esac
24325 case "$target:$gnu_ld" in
24326 *:yes)
24327 cat > conftest.s <<EOF
24328 .section .dtors,$sh_flags,$sh_type
24329 .balign 4
24330 .byte 'A', 'A', 'A', 'A'
24331 .section .ctors,$sh_flags,$sh_type
24332 .balign 4
24333 .byte 'B', 'B', 'B', 'B'
24334 .section .fini_array.65530,$sh_flags,$sh_type
24335 .balign 4
24336 .byte 'C', 'C', 'C', 'C'
24337 .section .init_array.65530,$sh_flags,$sh_type
24338 .balign 4
24339 .byte 'D', 'D', 'D', 'D'
24340 .section .dtors.64528,$sh_flags,$sh_type
24341 .balign 4
24342 .byte 'E', 'E', 'E', 'E'
24343 .section .ctors.64528,$sh_flags,$sh_type
24344 .balign 4
24345 .byte 'F', 'F', 'F', 'F'
24346 .section .fini_array.01005,$sh_flags,$sh_type
24347 .balign 4
24348 .byte 'G', 'G', 'G', 'G'
24349 .section .init_array.01005,$sh_flags,$sh_type
24350 .balign 4
24351 .byte 'H', 'H', 'H', 'H'
24352 .text
24353 .globl _start
24354 _start:
24356 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24357 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24358 && $gcc_cv_objdump -s -j .init_array conftest \
24359 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24360 && $gcc_cv_objdump -s -j .fini_array conftest \
24361 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24362 gcc_cv_initfini_array=yes
24365 *-*-solaris2*:no)
24366 # When Solaris ld added constructor priority support, it was
24367 # decided to only handle .init_array.N/.fini_array.N since
24368 # there was no need for backwards compatibility with
24369 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24370 # sections with correct execution order resp. to
24371 # .init_array/.fini_array, while gld merges them into
24372 # .init_array/.fini_array.
24373 cat > conftest.s <<EOF
24374 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24375 .align 4
24376 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24377 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24378 .align 4
24379 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24380 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24381 .align 4
24382 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24383 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24384 .align 4
24385 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24386 .text
24387 .globl _start
24388 _start:
24390 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24391 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24392 && $gcc_cv_objdump -s -j .init_array conftest \
24393 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24394 && $gcc_cv_objdump -s -j .fini_array conftest \
24395 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24396 gcc_cv_initfini_array=yes
24399 esac
24400 rm -f conftest conftest.*
24402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24403 /* end confdefs.h. */
24405 #ifndef __ELF__
24406 # error Not an ELF OS
24407 #endif
24408 #include <stdlib.h>
24409 #if defined __GLIBC_PREREQ
24410 # if __GLIBC_PREREQ (2, 4)
24411 # else
24412 # error GLIBC 2.4 required
24413 # endif
24414 #else
24415 # if defined __sun__ && defined __svr4__
24416 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24417 # else
24418 # error The C library not known to support .init_array/.fini_array
24419 # endif
24420 #endif
24422 _ACEOF
24423 if ac_fn_cxx_try_cpp "$LINENO"; then :
24425 else
24426 gcc_cv_initfini_array=no
24428 rm -f conftest.err conftest.i conftest.$ac_ext;;
24429 esac
24430 else
24431 case "${target}" in
24432 aarch64*-linux-gnu*)
24433 # AArch64 postdates glibc support for .init_array/.fini_array,
24434 # so we don't need the preprocessor test above.
24435 gcc_cv_initfini_array=yes
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24440 $as_echo_n "checking cross compile... guessing... " >&6; }
24441 gcc_cv_initfini_array=no
24443 esac
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24447 $as_echo "$gcc_cv_initfini_array" >&6; }
24448 enable_initfini_array=$gcc_cv_initfini_array
24453 cat >>confdefs.h <<_ACEOF
24454 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24455 _ACEOF
24459 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24460 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24461 # these directives, even when they appear to accept them.
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24463 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24464 if ${gcc_cv_as_leb128+:} false; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_leb128=no
24468 if test x$gcc_cv_as != x; then
24469 $as_echo ' .data
24470 .uleb128 L2 - L1
24472 .uleb128 1280
24473 .sleb128 -1010
24475 .uleb128 0x8000000000000000
24476 ' > conftest.s
24477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24483 then
24485 if test "x$gcc_cv_objdump" != x; then
24486 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24487 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24488 gcc_cv_as_leb128=yes
24490 elif test "x$gcc_cv_otool" != x; then
24491 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24492 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24493 gcc_cv_as_leb128=yes
24495 else
24496 # play safe, assume the assembler is broken.
24500 else
24501 echo "configure: failed program was" >&5
24502 cat conftest.s >&5
24504 rm -f conftest.o conftest.s
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24508 $as_echo "$gcc_cv_as_leb128" >&6; }
24509 if test $gcc_cv_as_leb128 = yes; then
24511 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24514 if test $gcc_cv_as_leb128 != yes; then
24516 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24520 # Determine if an .eh_frame section is read-only.
24521 gcc_fn_eh_frame_ro () {
24522 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24523 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24524 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24527 # Check if we have assembler support for unwind directives.
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24529 $as_echo_n "checking assembler for cfi directives... " >&6; }
24530 if ${gcc_cv_as_cfi_directive+:} false; then :
24531 $as_echo_n "(cached) " >&6
24532 else
24533 gcc_cv_as_cfi_directive=no
24534 if test x$gcc_cv_as != x; then
24535 $as_echo ' .text
24536 .cfi_startproc
24537 .cfi_offset 0, 0
24538 .cfi_same_value 1
24539 .cfi_def_cfa 1, 2
24540 .cfi_escape 1, 2, 3, 4, 5
24541 .cfi_endproc' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 case "$target" in
24550 *-*-solaris*)
24551 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24552 # read-only and read-write sections, we need to make sure that the
24553 # assembler used emits read-write .eh_frame sections.
24554 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24555 gcc_cv_as_cfi_directive=yes
24556 elif test "x$gcc_cv_objdump" = x; then
24557 # No objdump, err on the side of caution.
24558 gcc_cv_as_cfi_directive=no
24559 else
24560 if test x$gas = xyes; then
24561 as_32_opt="--32"
24562 as_64_opt="--64"
24563 else
24564 as_32_opt="-m32"
24565 as_64_opt="-m64"
24567 case "$target" in
24568 sparc*-*-solaris2.*)
24569 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24570 if gcc_fn_eh_frame_ro $as_32_opt \
24571 || gcc_fn_eh_frame_ro $as_64_opt; then
24572 gcc_cv_as_cfi_directive=no
24573 else
24574 gcc_cv_as_cfi_directive=yes
24577 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24578 # On Solaris/x86, make sure that GCC and assembler agree on using
24579 # read-only .eh_frame sections for 64-bit.
24580 if gcc_fn_eh_frame_ro $as_32_opt; then
24581 gcc_cv_as_cfi_directive=no
24582 elif gcc_fn_eh_frame_ro $as_64_opt; then
24583 gcc_cv_as_cfi_directive=yes
24584 else
24585 gcc_cv_as_cfi_directive=no
24588 esac
24591 *-*-*)
24592 gcc_cv_as_cfi_directive=yes
24594 esac
24595 else
24596 echo "configure: failed program was" >&5
24597 cat conftest.s >&5
24599 rm -f conftest.o conftest.s
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24603 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24606 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24608 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24609 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24610 $as_echo_n "(cached) " >&6
24611 else
24612 gcc_cv_as_cfi_advance_working=no
24613 if test x$gcc_cv_as != x; then
24614 $as_echo ' .text
24615 .cfi_startproc
24616 .cfi_adjust_cfa_offset 64
24617 .skip 75040, 0
24618 .cfi_adjust_cfa_offset 128
24619 .cfi_endproc' > conftest.s
24620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622 (eval $ac_try) 2>&5
24623 ac_status=$?
24624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625 test $ac_status = 0; }; }
24626 then
24628 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24629 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24630 gcc_cv_as_cfi_advance_working=yes
24633 else
24634 echo "configure: failed program was" >&5
24635 cat conftest.s >&5
24637 rm -f conftest.o conftest.s
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24641 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24644 else
24645 # no objdump, err on the side of caution
24646 gcc_cv_as_cfi_advance_working=no
24650 cat >>confdefs.h <<_ACEOF
24651 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24652 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24653 _ACEOF
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24658 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24659 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24660 $as_echo_n "(cached) " >&6
24661 else
24662 gcc_cv_as_cfi_personality_directive=no
24663 if test x$gcc_cv_as != x; then
24664 $as_echo ' .text
24665 .cfi_startproc
24666 .cfi_personality 0, symbol
24667 .cfi_endproc' > conftest.s
24668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24670 (eval $ac_try) 2>&5
24671 ac_status=$?
24672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24673 test $ac_status = 0; }; }
24674 then
24675 gcc_cv_as_cfi_personality_directive=yes
24676 else
24677 echo "configure: failed program was" >&5
24678 cat conftest.s >&5
24680 rm -f conftest.o conftest.s
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24684 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24688 cat >>confdefs.h <<_ACEOF
24689 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24690 _ACEOF
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24694 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24695 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24696 $as_echo_n "(cached) " >&6
24697 else
24698 gcc_cv_as_cfi_sections_directive=no
24699 if test x$gcc_cv_as != x; then
24700 $as_echo ' .text
24701 .cfi_sections .debug_frame, .eh_frame
24702 .cfi_startproc
24703 .cfi_endproc' > conftest.s
24704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24707 ac_status=$?
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24710 then
24711 case $target_os in
24712 win32 | pe | cygwin* | mingw32*)
24713 # Need to check that we generated the correct relocation for the
24714 # .debug_frame section. This was fixed for binutils 2.21.
24715 gcc_cv_as_cfi_sections_directive=no
24716 if test "x$gcc_cv_objdump" != x; then
24717 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24718 grep secrel > /dev/null; then
24719 gcc_cv_as_cfi_sections_directive=yes
24724 gcc_cv_as_cfi_sections_directive=yes
24726 esac
24727 else
24728 echo "configure: failed program was" >&5
24729 cat conftest.s >&5
24731 rm -f conftest.o conftest.s
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24735 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24740 cat >>confdefs.h <<_ACEOF
24741 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24742 _ACEOF
24745 # GAS versions up to and including 2.11.0 may mis-optimize
24746 # .eh_frame data.
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24748 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24749 if ${gcc_cv_as_eh_frame+:} false; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_eh_frame=no
24753 if test x$gcc_cv_as != x; then
24754 $as_echo ' .text
24755 .LFB1:
24756 .4byte 0
24757 .L1:
24758 .4byte 0
24759 .LFE1:
24760 .section .eh_frame,"aw",@progbits
24761 __FRAME_BEGIN__:
24762 .4byte .LECIE1-.LSCIE1
24763 .LSCIE1:
24764 .4byte 0x0
24765 .byte 0x1
24766 .ascii "z\0"
24767 .byte 0x1
24768 .byte 0x78
24769 .byte 0x1a
24770 .byte 0x0
24771 .byte 0x4
24772 .4byte 1
24773 .p2align 1
24774 .LECIE1:
24775 .LSFDE1:
24776 .4byte .LEFDE1-.LASFDE1
24777 .LASFDE1:
24778 .4byte .LASFDE1-__FRAME_BEGIN__
24779 .4byte .LFB1
24780 .4byte .LFE1-.LFB1
24781 .byte 0x4
24782 .4byte .LFE1-.LFB1
24783 .byte 0x4
24784 .4byte .L1-.LFB1
24785 .LEFDE1:' > conftest.s
24786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24789 ac_status=$?
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24792 then
24793 cat > conftest.lit <<EOF
24794 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24795 0010 01000000 12000000 18000000 00000000 ................
24796 0020 08000000 04080000 0044 .........D
24798 cat > conftest.big <<EOF
24799 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24800 0010 00000001 00000012 00000018 00000000 ................
24801 0020 00000008 04000000 0844 .........D
24803 # If the assembler didn't choke, and we can objdump,
24804 # and we got the correct data, then succeed.
24805 # The text in the here-document typically retains its unix-style line
24806 # endings, while the output of objdump will use host line endings.
24807 # Therefore, use diff -b for the comparisons.
24808 if test x$gcc_cv_objdump != x \
24809 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24810 | tail -3 > conftest.got \
24811 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24812 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24813 then
24814 gcc_cv_as_eh_frame=yes
24815 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }; then
24821 gcc_cv_as_eh_frame=buggy
24822 else
24823 # Uh oh, what do we do now?
24824 gcc_cv_as_eh_frame=no
24826 else
24827 echo "configure: failed program was" >&5
24828 cat conftest.s >&5
24830 rm -f conftest.o conftest.s
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24834 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24838 if test $gcc_cv_as_eh_frame = buggy; then
24840 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24844 # Test if the assembler supports the section flag 'e' or #exclude for
24845 # specifying an excluded section.
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24847 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24848 if ${gcc_cv_as_section_exclude_e+:} false; then :
24849 $as_echo_n "(cached) " >&6
24850 else
24851 gcc_cv_as_section_exclude_e=no
24852 if test x$gcc_cv_as != x; then
24853 $as_echo '.section foo1,"e"
24854 .byte 0,0,0,0' > conftest.s
24855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24860 test $ac_status = 0; }; }
24861 then
24862 gcc_cv_as_section_exclude_e=yes
24863 else
24864 echo "configure: failed program was" >&5
24865 cat conftest.s >&5
24867 rm -f conftest.o conftest.s
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24871 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24874 if test $gcc_cv_as_section_exclude_e = no; then
24875 case "${target}" in
24876 # Solaris as uses #exclude instead.
24877 *-*-solaris2*)
24878 case "${target}" in
24879 sparc*-*-solaris2*)
24880 conftest_s='.section "foo1", #exclude'
24882 i?86-*-solaris2* | x86_64-*-solaris2*)
24883 conftest_s='.section foo1, #exclude'
24885 esac
24887 esac
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24889 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24890 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_as_section_exclude_hash=no
24894 if test x$gcc_cv_as != x; then
24895 $as_echo "$conftest_s
24896 .byte 0,0,0,0" > conftest.s
24897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24902 test $ac_status = 0; }; }
24903 then
24904 gcc_cv_as_section_exclude_hash=yes
24905 else
24906 echo "configure: failed program was" >&5
24907 cat conftest.s >&5
24909 rm -f conftest.o conftest.s
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24913 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24918 cat >>confdefs.h <<_ACEOF
24919 #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`
24920 _ACEOF
24923 # Test if the assembler supports the section flag 'R' for specifying
24924 # section with SHF_GNU_RETAIN.
24925 case "${target}" in
24926 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24927 # assembler supports the section flag 'R', it doesn't mean that
24928 # Solairs ld supports it.
24929 *-*-solaris2*)
24930 gcc_cv_as_shf_gnu_retain=no
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24934 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24935 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24936 $as_echo_n "(cached) " >&6
24937 else
24938 gcc_cv_as_shf_gnu_retain=no
24939 if test x$gcc_cv_as != x; then
24940 $as_echo '.section .foo,"awR",%progbits
24941 .byte 0' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 gcc_cv_as_shf_gnu_retain=yes
24950 else
24951 echo "configure: failed program was" >&5
24952 cat conftest.s >&5
24954 rm -f conftest.o conftest.s
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
24958 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
24962 esac
24964 cat >>confdefs.h <<_ACEOF
24965 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
24966 _ACEOF
24969 # Test if the assembler supports the section flag 'o' for specifying
24970 # section with link-order.
24971 case "${target}" in
24972 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24973 # assembler supports the section flag 'o', it doesn't mean that
24974 # Solairs ld supports it.
24975 *-*-solaris2*)
24976 gcc_cv_as_section_link_order=no
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
24980 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
24981 if ${gcc_cv_as_section_link_order+:} false; then :
24982 $as_echo_n "(cached) " >&6
24983 else
24984 gcc_cv_as_section_link_order=no
24985 if test x$gcc_cv_as != x; then
24986 $as_echo '.section .foo,"a"
24987 .byte 0
24988 .section __patchable_function_entries,"awo",%progbits,.foo
24989 .byte 0' > conftest.s
24990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24992 (eval $ac_try) 2>&5
24993 ac_status=$?
24994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24995 test $ac_status = 0; }; }
24996 then
24997 gcc_cv_as_section_link_order=yes
24998 else
24999 echo "configure: failed program was" >&5
25000 cat conftest.s >&5
25002 rm -f conftest.o conftest.s
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25006 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25010 esac
25012 cat >>confdefs.h <<_ACEOF
25013 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25014 _ACEOF
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25018 $as_echo_n "checking assembler for section merging support... " >&6; }
25019 if ${gcc_cv_as_shf_merge+:} false; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25022 gcc_cv_as_shf_merge=no
25023 if test x$gcc_cv_as != x; then
25024 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25030 test $ac_status = 0; }; }
25031 then
25032 gcc_cv_as_shf_merge=yes
25033 else
25034 echo "configure: failed program was" >&5
25035 cat conftest.s >&5
25037 rm -f conftest.o conftest.s
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25041 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25044 if test $gcc_cv_as_shf_merge = no; then
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25046 $as_echo_n "checking assembler for section merging support... " >&6; }
25047 if ${gcc_cv_as_shf_merge+:} false; then :
25048 $as_echo_n "(cached) " >&6
25049 else
25050 gcc_cv_as_shf_merge=no
25051 if test x$gcc_cv_as != x; then
25052 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25059 then
25060 gcc_cv_as_shf_merge=yes
25061 else
25062 echo "configure: failed program was" >&5
25063 cat conftest.s >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25069 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25074 cat >>confdefs.h <<_ACEOF
25075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25076 _ACEOF
25079 gcc_cv_ld_aligned_shf_merge=yes
25080 case "$target" in
25081 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25082 # alignment > 1.
25083 sparc*-*-solaris2.11*)
25084 if test x"$gnu_ld" = xno \
25085 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25086 gcc_cv_ld_aligned_shf_merge=no
25089 esac
25091 cat >>confdefs.h <<_ACEOF
25092 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25093 _ACEOF
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25097 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25098 if ${gcc_cv_as_comdat_group+:} false; then :
25099 $as_echo_n "(cached) " >&6
25100 else
25101 gcc_cv_as_comdat_group=no
25102 if test x$gcc_cv_as != x; then
25103 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25110 then
25111 gcc_cv_as_comdat_group=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25120 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25123 if test $gcc_cv_as_comdat_group = yes; then
25124 gcc_cv_as_comdat_group_percent=no
25125 gcc_cv_as_comdat_group_group=no
25126 else
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25128 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25129 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_comdat_group_percent=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25137 (eval $ac_try) 2>&5
25138 ac_status=$?
25139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25140 test $ac_status = 0; }; }
25141 then
25142 gcc_cv_as_comdat_group_percent=yes
25143 else
25144 echo "configure: failed program was" >&5
25145 cat conftest.s >&5
25147 rm -f conftest.o conftest.s
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25151 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25154 if test $gcc_cv_as_comdat_group_percent = yes; then
25155 gcc_cv_as_comdat_group_group=no
25156 else
25157 case "${target}" in
25158 # Sun as uses a completely different syntax.
25159 *-*-solaris2*)
25160 case "${target}" in
25161 sparc*-*-solaris2*)
25162 conftest_s='
25163 .group foo,".text%foo",#comdat
25164 .section ".text%foo", #alloc,#execinstr,#progbits
25165 .globl foo
25166 foo:
25169 i?86-*-solaris2* | x86_64-*-solaris2*)
25170 conftest_s='
25171 .group foo,.text%foo,#comdat
25172 .section .text%foo, "ax", @progbits
25173 .globl foo
25174 foo:
25177 esac
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25179 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25180 if ${gcc_cv_as_comdat_group_group+:} false; then :
25181 $as_echo_n "(cached) " >&6
25182 else
25183 gcc_cv_as_comdat_group_group=no
25184 if test x$gcc_cv_as != x; then
25185 $as_echo "$conftest_s" > conftest.s
25186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25192 then
25193 gcc_cv_as_comdat_group_group=yes
25194 else
25195 echo "configure: failed program was" >&5
25196 cat conftest.s >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25202 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25206 esac
25207 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25208 gcc_cv_as_comdat_group_group=no
25212 if test x"$ld_is_gold" = xyes; then
25213 comdat_group=yes
25214 elif test x"$ld_is_mold" = xyes; then
25215 comdat_group=yes
25216 elif test $in_tree_ld = yes ; then
25217 comdat_group=no
25218 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 \
25219 && test $in_tree_ld_is_elf = yes; then
25220 comdat_group=yes
25222 elif echo "$ld_ver" | grep GNU > /dev/null; then
25223 comdat_group=yes
25224 if test 0"$ld_date" -lt 20050308; then
25225 if test -n "$ld_date"; then
25226 # If there was date string, but was earlier than 2005-03-08, fail
25227 comdat_group=no
25228 elif test "$ld_vers_major" -lt 2; then
25229 comdat_group=no
25230 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25231 comdat_group=no
25234 else
25235 case "${target}" in
25236 *-*-solaris2.1[1-9]*)
25237 comdat_group=no
25238 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25239 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25240 # version 1.688.
25242 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25243 # least ld version 1.2267.
25244 if test "$ld_vers_major" -gt 1; then
25245 comdat_group=yes
25246 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25247 comdat_group=yes
25248 elif test "$ld_vers_minor" -ge 2267; then
25249 comdat_group=yes
25253 # Assume linkers other than GNU ld don't support COMDAT group.
25254 comdat_group=no
25256 esac
25258 # Allow overriding the automatic COMDAT group tests above.
25259 # Check whether --enable-comdat was given.
25260 if test "${enable_comdat+set}" = set; then :
25261 enableval=$enable_comdat; comdat_group="$enable_comdat"
25264 if test $comdat_group = no; then
25265 gcc_cv_as_comdat_group=no
25266 gcc_cv_as_comdat_group_percent=no
25267 gcc_cv_as_comdat_group_group=no
25270 cat >>confdefs.h <<_ACEOF
25271 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25272 || test $gcc_cv_as_comdat_group_percent = yes \
25273 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25274 _ACEOF
25277 # Restrict this test to Solaris/x86: other targets define this statically.
25278 case "${target}" in
25279 i?86-*-solaris2* | x86_64-*-solaris2*)
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25281 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25282 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25283 hidden_linkonce=yes
25284 else
25285 case "${target}" in
25286 # Full support for hidden thunks in linkonce sections only appeared in
25287 # Solaris 11/OpenSolaris.
25288 *-*-solaris2.1[1-9]*)
25289 hidden_linkonce=yes
25292 hidden_linkonce=no
25294 esac
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25297 $as_echo "$hidden_linkonce" >&6; }
25299 cat >>confdefs.h <<_ACEOF
25300 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25301 _ACEOF
25304 esac
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25307 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25308 if ${gcc_cv_as_is_stmt+:} false; then :
25309 $as_echo_n "(cached) " >&6
25310 else
25311 gcc_cv_as_is_stmt=no
25312 if test x$gcc_cv_as != x; then
25313 $as_echo ' .text
25314 .file 1 "conf.c"
25315 .loc 1 1 0 is_stmt 1' > conftest.s
25316 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25318 (eval $ac_try) 2>&5
25319 ac_status=$?
25320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321 test $ac_status = 0; }; }
25322 then
25323 gcc_cv_as_is_stmt=yes
25324 else
25325 echo "configure: failed program was" >&5
25326 cat conftest.s >&5
25328 rm -f conftest.o conftest.s
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25332 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25333 if test $gcc_cv_as_is_stmt = yes; then
25335 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25341 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25342 if ${gcc_cv_as_discriminator+:} false; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25345 gcc_cv_as_discriminator=no
25346 if test x$gcc_cv_as != x; then
25347 $as_echo ' .text
25348 .file 1 "conf.c"
25349 .loc 1 1 0 discriminator 1' > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 gcc_cv_as_discriminator=yes
25358 else
25359 echo "configure: failed program was" >&5
25360 cat conftest.s >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25366 $as_echo "$gcc_cv_as_discriminator" >&6; }
25367 if test $gcc_cv_as_discriminator = yes; then
25369 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25374 # Catch the newlib flag of the same name so we can gate GCC features on it.
25375 # Check whether --enable-newlib-nano-formatted-io was given.
25376 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25377 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25378 yes|no)
25381 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25383 esac
25387 # Thread-local storage - the check is heavily parameterized.
25388 conftest_s=
25389 tls_as_opt=
25390 case "$target" in
25391 alpha*-*-*)
25392 conftest_s='
25393 .section ".tdata","awT",@progbits
25394 foo: .long 25
25395 .text
25396 ldq $27,__tls_get_addr($29) !literal!1
25397 lda $16,foo($29) !tlsgd!1
25398 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25399 ldq $27,__tls_get_addr($29) !literal!2
25400 lda $16,foo($29) !tlsldm!2
25401 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25402 ldq $1,foo($29) !gotdtprel
25403 ldah $2,foo($29) !dtprelhi
25404 lda $3,foo($2) !dtprello
25405 lda $4,foo($29) !dtprel
25406 ldq $1,foo($29) !gottprel
25407 ldah $2,foo($29) !tprelhi
25408 lda $3,foo($2) !tprello
25409 lda $4,foo($29) !tprel'
25410 tls_as_opt=--fatal-warnings
25412 arc*-*-*)
25413 conftest_s='
25414 add_s r0,r0, @foo@tpoff'
25416 cris-*-*|crisv32-*-*)
25417 conftest_s='
25418 .section ".tdata","awT",@progbits
25419 x: .long 25
25420 .text
25421 move.d x:IE,$r10
25422 nop'
25423 tls_as_opt=--fatal-warnings
25425 frv*-*-*)
25426 conftest_s='
25427 .section ".tdata","awT",@progbits
25428 x: .long 25
25429 .text
25430 call #gettlsoff(x)'
25432 hppa*-*-linux*)
25433 conftest_s='
25434 t1: .reg %r20
25435 t2: .reg %r21
25436 gp: .reg %r19
25437 .section ".tdata","awT",@progbits
25438 foo: .long 25
25439 .text
25440 .align 4
25441 addil LT%foo-$tls_gdidx$,gp
25442 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25443 b __tls_get_addr
25445 addil LT%foo-$tls_ldidx$,gp
25446 b __tls_get_addr
25447 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25448 addil LR%foo-$tls_dtpoff$,%ret0
25449 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25450 mfctl %cr27,%t1
25451 addil LT%foo-$tls_ieoff$,gp
25452 ldw RT%foo-$tls_ieoff$(%r1),%t2
25453 add %t1,%t2,%t3
25454 mfctl %cr27,%t1
25455 addil LR%foo-$tls_leoff$,%t1
25456 ldo RR%foo-$tls_leoff$(%r1),%t2'
25457 tls_as_opt=--fatal-warnings
25459 arm*-*-*)
25460 conftest_s='
25461 .section ".tdata","awT",%progbits
25462 foo: .long 25
25463 .text
25464 .word foo(gottpoff)
25465 .word foo(tpoff)
25466 .word foo(tlsgd)
25467 .word foo(tlsldm)
25468 .word foo(tlsldo)'
25470 i[34567]86-*-* | x86_64-*-*)
25471 case "$target" in
25472 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25473 on_solaris=yes
25476 on_solaris=no
25478 esac
25479 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25480 conftest_s='
25481 .section .tdata,"awt",@progbits'
25482 tls_section_flag=t
25484 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25486 else
25487 conftest_s='
25488 .section ".tdata","awT",@progbits'
25489 tls_section_flag=T
25490 tls_as_opt="--fatal-warnings"
25492 case "$target" in
25493 i[34567]86-*-*)
25494 if test x$on_solaris = xyes; then
25495 case $gas_flag in
25496 yes) tls_as_opt="$tls_as_opt --32" ;;
25497 esac
25499 conftest_s="$conftest_s
25500 foo: .long 25
25501 .text
25502 movl %gs:0, %eax
25503 leal foo@tlsgd(,%ebx,1), %eax
25504 leal foo@tlsldm(%ebx), %eax
25505 leal foo@dtpoff(%eax), %edx
25506 movl foo@gottpoff(%ebx), %eax
25507 subl foo@gottpoff(%ebx), %eax
25508 addl foo@gotntpoff(%ebx), %eax
25509 movl foo@indntpoff, %eax
25510 movl \$foo@tpoff, %eax
25511 subl \$foo@tpoff, %eax
25512 leal foo@ntpoff(%ecx), %eax"
25514 x86_64-*-*)
25515 if test x$on_solaris = xyes; then
25516 case $gas_flag in
25517 yes) tls_as_opt="$tls_as_opt --64" ;;
25518 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25519 esac
25521 conftest_s="$conftest_s
25522 foo: .long 25
25523 .text
25524 movq %fs:0, %rax
25525 leaq foo@tlsgd(%rip), %rdi
25526 leaq foo@tlsld(%rip), %rdi
25527 leaq foo@dtpoff(%rax), %rdx
25528 movq foo@gottpoff(%rip), %rax
25529 movq \$foo@tpoff, %rax"
25531 esac
25533 ia64-*-*)
25534 conftest_s='
25535 .section ".tdata","awT",@progbits
25536 foo: data8 25
25537 .text
25538 addl r16 = @ltoff(@dtpmod(foo#)), gp
25539 addl r17 = @ltoff(@dtprel(foo#)), gp
25540 addl r18 = @ltoff(@tprel(foo#)), gp
25541 addl r19 = @dtprel(foo#), gp
25542 adds r21 = @dtprel(foo#), r13
25543 movl r23 = @dtprel(foo#)
25544 addl r20 = @tprel(foo#), gp
25545 adds r22 = @tprel(foo#), r13
25546 movl r24 = @tprel(foo#)'
25547 tls_as_opt=--fatal-warnings
25549 loongarch*-*-*)
25550 conftest_s='
25551 .section .tdata,"awT",@progbits
25552 x: .word 2
25553 .text
25554 la.tls.gd $a0,x
25555 bl __tls_get_addr'
25556 tls_first_major=0
25557 tls_first_minor=0
25558 tls_as_opt='--fatal-warnings'
25560 microblaze*-*-*)
25561 conftest_s='
25562 .section .tdata,"awT",@progbits
25564 .word 2
25565 .text
25566 addik r5,r20,x@TLSGD
25567 addik r5,r20,x@TLSLDM'
25568 tls_as_opt='--fatal-warnings'
25570 mips*-*-*)
25571 conftest_s='
25572 .section .tdata,"awT",@progbits
25574 .word 2
25575 .text
25576 addiu $4, $28, %tlsgd(x)
25577 addiu $4, $28, %tlsldm(x)
25578 lui $4, %dtprel_hi(x)
25579 addiu $4, $4, %dtprel_lo(x)
25580 lw $4, %gottprel(x)($28)
25581 lui $4, %tprel_hi(x)
25582 addiu $4, $4, %tprel_lo(x)'
25583 tls_as_opt='-32 --fatal-warnings'
25585 m68k-*-*)
25586 conftest_s='
25587 .section .tdata,"awT",@progbits
25589 .word 2
25590 .text
25591 foo:
25592 move.l x@TLSGD(%a5),%a0
25593 move.l x@TLSLDM(%a5),%a0
25594 move.l x@TLSLDO(%a5),%a0
25595 move.l x@TLSIE(%a5),%a0
25596 move.l x@TLSLE(%a5),%a0'
25597 tls_as_opt='--fatal-warnings'
25599 nios2-*-*)
25600 conftest_s='
25601 .section ".tdata","awT",@progbits'
25602 tls_as_opt="--fatal-warnings"
25604 aarch64*-*-*)
25605 conftest_s='
25606 .section ".tdata","awT",%progbits
25607 foo: .long 25
25608 .text
25609 adrp x0, :tlsgd:x
25610 add x0, x0, #:tlsgd_lo12:x
25611 bl __tls_get_addr
25612 nop'
25613 tls_as_opt='--fatal-warnings'
25615 or1k*-*-*)
25616 conftest_s='
25617 .section ".tdata","awT",@progbits
25618 foo: .long 25
25619 .text
25620 l.movhi r3, tpoffha(foo)
25621 l.add r3, r3, r10
25622 l.lwz r4, tpofflo(foo)(r3)'
25623 tls_as_opt=--fatal-warnings
25625 powerpc-ibm-aix*)
25626 conftest_s='
25627 .extern __get_tpointer
25628 .toc
25629 LC..1:
25630 .tc a[TC],a[TL]@le
25631 .csect .text[PR]
25632 .tlstest:
25633 lwz 9,LC..1(2)
25634 bla __get_tpointer
25635 lwzx 3,9,3
25636 .globl a
25637 .csect a[TL],4
25639 .space 4'
25641 powerpc64*-*-*)
25642 conftest_s='
25643 .section ".tdata","awT",@progbits
25644 .align 3
25645 ld0: .space 8
25646 ld1: .space 8
25647 x1: .space 8
25648 x2: .space 8
25649 x3: .space 8
25650 .text
25651 addi 3,2,ld0@got@tlsgd
25652 bl .__tls_get_addr
25654 addi 3,2,ld1@toc
25655 bl .__tls_get_addr
25657 addi 3,2,x1@got@tlsld
25658 bl .__tls_get_addr
25660 addi 9,3,x1@dtprel
25661 bl .__tls_get_addr
25663 addis 9,3,x2@dtprel@ha
25664 addi 9,9,x2@dtprel@l
25665 bl .__tls_get_addr
25667 ld 9,x3@got@dtprel(2)
25668 add 9,9,3
25669 bl .__tls_get_addr
25670 nop'
25671 tls_as_opt="-a64 --fatal-warnings"
25673 powerpc*-*-*)
25674 conftest_s='
25675 .section ".tdata","awT",@progbits
25676 .align 2
25677 ld0: .space 4
25678 ld1: .space 4
25679 x1: .space 4
25680 x2: .space 4
25681 x3: .space 4
25682 .text
25683 addi 3,31,ld0@got@tlsgd
25684 bl __tls_get_addr
25685 addi 3,31,x1@got@tlsld
25686 bl __tls_get_addr
25687 addi 9,3,x1@dtprel
25688 addis 9,3,x2@dtprel@ha
25689 addi 9,9,x2@dtprel@l
25690 lwz 9,x3@got@tprel(31)
25691 add 9,9,x@tls
25692 addi 9,2,x1@tprel
25693 addis 9,2,x2@tprel@ha
25694 addi 9,9,x2@tprel@l'
25695 tls_as_opt="-a32 --fatal-warnings"
25697 riscv*-*-*)
25698 conftest_s='
25699 .section .tdata,"awT",@progbits
25700 x: .word 2
25701 .text
25702 la.tls.gd a0,x
25703 call __tls_get_addr'
25704 tls_as_opt='--fatal-warnings'
25706 s390-*-*)
25707 conftest_s='
25708 .section ".tdata","awT",@progbits
25709 foo: .long 25
25710 .text
25711 .long foo@TLSGD
25712 .long foo@TLSLDM
25713 .long foo@DTPOFF
25714 .long foo@NTPOFF
25715 .long foo@GOTNTPOFF
25716 .long foo@INDNTPOFF
25717 l %r1,foo@GOTNTPOFF(%r12)
25718 l %r1,0(%r1):tls_load:foo
25719 bas %r14,0(%r1,%r13):tls_gdcall:foo
25720 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25721 tls_as_opt="-m31 --fatal-warnings"
25723 s390x-*-*)
25724 conftest_s='
25725 .section ".tdata","awT",@progbits
25726 foo: .long 25
25727 .text
25728 .quad foo@TLSGD
25729 .quad foo@TLSLDM
25730 .quad foo@DTPOFF
25731 .quad foo@NTPOFF
25732 .quad foo@GOTNTPOFF
25733 lg %r1,foo@GOTNTPOFF(%r12)
25734 larl %r1,foo@INDNTPOFF
25735 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25736 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25737 tls_as_opt="-m64 -Aesame --fatal-warnings"
25739 sh-*-* | sh[123456789lbe]*-*-*)
25740 conftest_s='
25741 .section ".tdata","awT",@progbits
25742 foo: .long 25
25743 .text
25744 .long foo@TLSGD
25745 .long foo@TLSLDM
25746 .long foo@DTPOFF
25747 .long foo@GOTTPOFF
25748 .long foo@TPOFF'
25749 tls_as_opt=--fatal-warnings
25751 sparc*-*-*)
25752 case "$target" in
25753 sparc*-sun-solaris2.*)
25754 on_solaris=yes
25757 on_solaris=no
25759 esac
25760 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25761 conftest_s='
25762 .section ".tdata",#alloc,#write,#tls'
25763 else
25764 conftest_s='
25765 .section ".tdata","awT",@progbits'
25766 tls_as_opt="-32 --fatal-warnings"
25768 conftest_s="$conftest_s
25769 foo: .long 25
25770 .text
25771 sethi %tgd_hi22(foo), %o0
25772 add %o0, %tgd_lo10(foo), %o1
25773 add %l7, %o1, %o0, %tgd_add(foo)
25774 call __tls_get_addr, %tgd_call(foo)
25775 sethi %tldm_hi22(foo), %l1
25776 add %l1, %tldm_lo10(foo), %l2
25777 add %l7, %l2, %o0, %tldm_add(foo)
25778 call __tls_get_addr, %tldm_call(foo)
25779 sethi %tldo_hix22(foo), %l3
25780 xor %l3, %tldo_lox10(foo), %l4
25781 add %o0, %l4, %l5, %tldo_add(foo)
25782 sethi %tie_hi22(foo), %o3
25783 add %o3, %tie_lo10(foo), %o3
25784 ld [%l7 + %o3], %o2, %tie_ld(foo)
25785 add %g7, %o2, %o4, %tie_add(foo)
25786 sethi %tle_hix22(foo), %l1
25787 xor %l1, %tle_lox10(foo), %o5
25788 ld [%g7 + %o5], %o1"
25790 xtensa*-*-*)
25791 conftest_s='
25792 .section ".tdata","awT",@progbits
25793 foo: .long 25
25794 .text
25795 movi a8, foo@TLSFUNC
25796 movi a10, foo@TLSARG
25797 callx8.tls a8, foo@TLSCALL'
25799 esac
25800 set_have_as_tls=no
25801 if test "x$enable_tls" = xno ; then
25802 : # TLS explicitly disabled.
25803 elif test "x$enable_tls" = xyes ; then
25804 set_have_as_tls=yes # TLS explicitly enabled.
25805 elif test -z "$conftest_s"; then
25806 : # If we don't have a check, assume no support.
25807 else
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25809 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25810 if ${gcc_cv_as_tls+:} false; then :
25811 $as_echo_n "(cached) " >&6
25812 else
25813 gcc_cv_as_tls=no
25814 if test x$gcc_cv_as != x; then
25815 $as_echo "$conftest_s" > conftest.s
25816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25818 (eval $ac_try) 2>&5
25819 ac_status=$?
25820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25821 test $ac_status = 0; }; }
25822 then
25823 gcc_cv_as_tls=yes
25824 else
25825 echo "configure: failed program was" >&5
25826 cat conftest.s >&5
25828 rm -f conftest.o conftest.s
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25832 $as_echo "$gcc_cv_as_tls" >&6; }
25833 if test $gcc_cv_as_tls = yes; then
25834 set_have_as_tls=yes
25838 if test $set_have_as_tls = yes ; then
25840 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25844 # Target-specific assembler checks.
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25847 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25848 gcc_cv_ld_static_dynamic=no
25849 gcc_cv_ld_static_option='-Bstatic'
25850 gcc_cv_ld_dynamic_option='-Bdynamic'
25851 if test $in_tree_ld = yes ; then
25852 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
25853 gcc_cv_ld_static_dynamic=yes
25855 elif test x$gcc_cv_ld != x; then
25856 # Check if linker supports -Bstatic/-Bdynamic option
25857 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25858 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25859 gcc_cv_ld_static_dynamic=yes
25860 else
25861 case "$target" in
25862 # AIX ld uses -b flags
25863 *-*-aix4.[23]* | *-*-aix[5-9]*)
25864 gcc_cv_ld_static_dynamic=yes
25865 gcc_cv_ld_static_option="-bstatic"
25866 gcc_cv_ld_dynamic_option="-bdynamic"
25868 # HP-UX ld uses -a flags to select between shared and archive.
25869 *-*-hpux*)
25870 if test x"$gnu_ld" = xno; then
25871 gcc_cv_ld_static_dynamic=yes
25872 gcc_cv_ld_static_option="-aarchive_shared"
25873 gcc_cv_ld_dynamic_option="-adefault"
25876 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25877 *-*-solaris2*)
25878 gcc_cv_ld_static_dynamic=yes
25880 esac
25883 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25885 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25888 cat >>confdefs.h <<_ACEOF
25889 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25890 _ACEOF
25893 cat >>confdefs.h <<_ACEOF
25894 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25895 _ACEOF
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25899 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25902 $as_echo_n "checking linker --version-script option... " >&6; }
25903 gcc_cv_ld_version_script=no
25904 ld_version_script_option=''
25905 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25906 gcc_cv_ld_version_script=yes
25907 ld_version_script_option='--version-script'
25908 elif test x$gcc_cv_ld != x; then
25909 case "$target" in
25910 # Solaris 2 ld always supports -M. It also supports a subset of
25911 # --version-script since Solaris 11.4, but requires
25912 # -z gnu-version-script-compat to activate.
25913 *-*-solaris2*)
25914 gcc_cv_ld_version_script=yes
25915 ld_version_script_option='-M'
25917 esac
25919 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25921 $as_echo "$gcc_cv_ld_version_script" >&6; }
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25925 $as_echo_n "checking linker soname option... " >&6; }
25926 gcc_cv_ld_soname=no
25927 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25928 gcc_cv_ld_soname=yes
25929 ld_soname_option='-soname'
25930 elif test x$gcc_cv_ld != x; then
25931 case "$target" in
25932 *-*-darwin*)
25933 gcc_cv_ld_soname=yes
25934 ld_soname_option='-install_name'
25936 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25937 # ld compatiblity since some Solaris 10 update.
25938 *-*-solaris2*)
25939 gcc_cv_ld_soname=yes
25940 ld_soname_option='-h'
25942 esac
25944 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25946 $as_echo "$gcc_cv_ld_soname" >&6; }
25949 if test x"$demangler_in_ld" = xyes; then
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25951 $as_echo_n "checking linker --demangle support... " >&6; }
25952 gcc_cv_ld_demangle=no
25953 if test $in_tree_ld = yes; then
25954 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 \
25955 gcc_cv_ld_demangle=yes
25957 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
25958 # Check if the GNU linker supports --demangle option
25959 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
25960 gcc_cv_ld_demangle=yes
25963 if test x"$gcc_cv_ld_demangle" = xyes; then
25965 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25969 $as_echo "$gcc_cv_ld_demangle" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25973 $as_echo_n "checking linker plugin support... " >&6; }
25974 gcc_cv_lto_plugin=0
25975 if test -f liblto_plugin.la; then
25976 save_ld_ver="$ld_ver"
25977 save_ld_vers_major="$ld_vers_major"
25978 save_ld_vers_minor="$ld_vers_minor"
25979 save_ld_is_gold="$ld_is_gold"
25981 ld_is_gold=no
25983 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
25984 ld_ver="GNU ld"
25985 # FIXME: ld_is_gold?
25986 ld_vers_major="$gcc_cv_gld_major_version"
25987 ld_vers_minor="$gcc_cv_gld_minor_version"
25988 else
25989 # Determine plugin linker version.
25990 # FIXME: Partial duplicate from above, generalize.
25991 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25992 if echo "$ld_ver" | grep GNU > /dev/null; then
25993 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
25994 ld_is_gold=yes
25995 ld_vers=`echo $ld_ver | sed -n \
25996 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25997 else
25998 ld_vers=`echo $ld_ver | sed -n \
25999 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26001 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26002 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26006 # Determine plugin support.
26007 if echo "$ld_ver" | grep GNU > /dev/null; then
26008 # Require GNU ld or gold 2.21+ for plugin support by default.
26009 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26010 gcc_cv_lto_plugin=2
26011 elif test "$ld_is_mold" = yes; then
26012 gcc_cv_lto_plugin=2
26013 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26014 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26015 gcc_cv_lto_plugin=1
26019 ld_ver="$save_ld_ver"
26020 ld_vers_major="$save_ld_vers_major"
26021 ld_vers_minor="$save_ld_vers_minor"
26022 ld_is_gold="$save_ld_is_gold"
26025 cat >>confdefs.h <<_ACEOF
26026 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26027 _ACEOF
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26030 $as_echo "$gcc_cv_lto_plugin" >&6; }
26032 # Target OS-specific assembler checks.
26034 case "$target_os" in
26035 darwin*)
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26037 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26038 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26039 $as_echo_n "(cached) " >&6
26040 else
26041 gcc_cv_as_mmacosx_version_min=no
26042 if test x$gcc_cv_as != x; then
26043 $as_echo '.text' > conftest.s
26044 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26046 (eval $ac_try) 2>&5
26047 ac_status=$?
26048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26049 test $ac_status = 0; }; }
26050 then
26051 gcc_cv_as_mmacosx_version_min=yes
26052 else
26053 echo "configure: failed program was" >&5
26054 cat conftest.s >&5
26056 rm -f conftest.o conftest.s
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26060 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26061 if test $gcc_cv_as_mmacosx_version_min = yes; then
26063 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26068 esac
26070 # Target CPU-specific assembler checks.
26072 case "$target" in
26073 aarch64*-*-*)
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26075 $as_echo_n "checking assembler for -mabi option... " >&6; }
26076 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26077 $as_echo_n "(cached) " >&6
26078 else
26079 gcc_cv_as_aarch64_mabi=no
26080 if test x$gcc_cv_as != x; then
26081 $as_echo '.text' > conftest.s
26082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26087 test $ac_status = 0; }; }
26088 then
26089 gcc_cv_as_aarch64_mabi=yes
26090 else
26091 echo "configure: failed program was" >&5
26092 cat conftest.s >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26098 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26101 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26103 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26105 else
26106 if test x$with_abi = xilp32; then
26107 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26108 Upgrade the Assembler." "$LINENO" 5
26110 if test x"$with_multilib_list" = xdefault; then
26111 TM_MULTILIB_CONFIG=lp64
26112 else
26113 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26114 for aarch64_multilib in ${aarch64_multilibs}; do
26115 case ${aarch64_multilib} in
26116 ilp32)
26117 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26118 Upgrade the Assembler." "$LINENO" 5
26122 esac
26123 done
26126 # Check if we have binutils support for relocations types needed by -fpic
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26128 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26129 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26130 $as_echo_n "(cached) " >&6
26131 else
26132 gcc_cv_as_aarch64_picreloc=no
26133 if test x$gcc_cv_as != x; then
26134 $as_echo '
26135 .text
26136 ldr x0, [x2, #:gotpage_lo15:globalsym]
26137 ' > conftest.s
26138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26140 (eval $ac_try) 2>&5
26141 ac_status=$?
26142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26143 test $ac_status = 0; }; }
26144 then
26145 gcc_cv_as_aarch64_picreloc=yes
26146 else
26147 echo "configure: failed program was" >&5
26148 cat conftest.s >&5
26150 rm -f conftest.o conftest.s
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26154 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26155 if test $gcc_cv_as_aarch64_picreloc = yes; then
26157 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26161 # Enable Branch Target Identification Mechanism and Return Address
26162 # Signing by default.
26163 # Check whether --enable-standard-branch-protection was given.
26164 if test "${enable_standard_branch_protection+set}" = set; then :
26165 enableval=$enable_standard_branch_protection;
26166 case $enableval in
26167 yes)
26168 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26173 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26174 Valid choices are 'yes' and 'no'." "$LINENO" 5
26176 esac
26180 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26181 # Check whether --enable-fix-cortex-a53-835769 was given.
26182 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26183 enableval=$enable_fix_cortex_a53_835769;
26184 case $enableval in
26185 yes)
26186 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26191 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26192 Valid choices are 'yes' and 'no'." "$LINENO" 5
26195 esac
26199 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26200 # Check whether --enable-fix-cortex-a53-843419 was given.
26201 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26202 enableval=$enable_fix_cortex_a53_843419;
26203 case $enableval in
26204 yes)
26205 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26210 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26211 Valid choices are 'yes' and 'no'." "$LINENO" 5
26214 esac
26220 # All TARGET_ABI_OSF targets.
26221 alpha*-*-linux* | alpha*-*-*bsd*)
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26223 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26224 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26225 $as_echo_n "(cached) " >&6
26226 else
26227 gcc_cv_as_alpha_explicit_relocs=no
26228 if test x$gcc_cv_as != x; then
26229 $as_echo ' .set nomacro
26230 .text
26231 extbl $3, $2, $3 !lituse_bytoff!1
26232 ldq $2, a($29) !literal!1
26233 ldq $4, b($29) !literal!2
26234 ldq_u $3, 0($2) !lituse_base!1
26235 ldq $27, f($29) !literal!5
26236 jsr $26, ($27), f !lituse_jsr!5
26237 ldah $29, 0($26) !gpdisp!3
26238 lda $0, c($29) !gprel
26239 ldah $1, d($29) !gprelhigh
26240 lda $1, d($1) !gprellow
26241 lda $29, 0($29) !gpdisp!3' > conftest.s
26242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26244 (eval $ac_try) 2>&5
26245 ac_status=$?
26246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26247 test $ac_status = 0; }; }
26248 then
26249 gcc_cv_as_alpha_explicit_relocs=yes
26250 else
26251 echo "configure: failed program was" >&5
26252 cat conftest.s >&5
26254 rm -f conftest.o conftest.s
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26258 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26259 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26261 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26266 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26267 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26268 $as_echo_n "(cached) " >&6
26269 else
26270 gcc_cv_as_alpha_jsrdirect_relocs=no
26271 if test x$gcc_cv_as != x; then
26272 $as_echo ' .set nomacro
26273 .text
26274 ldq $27, a($29) !literal!1
26275 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26282 then
26283 gcc_cv_as_alpha_jsrdirect_relocs=yes
26284 else
26285 echo "configure: failed program was" >&5
26286 cat conftest.s >&5
26288 rm -f conftest.o conftest.s
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26292 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26293 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26295 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26301 avr-*-*)
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26303 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26304 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26305 $as_echo_n "(cached) " >&6
26306 else
26307 gcc_cv_as_avr_mlink_relax=no
26308 if test x$gcc_cv_as != x; then
26309 $as_echo '.text' > conftest.s
26310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26316 then
26317 gcc_cv_as_avr_mlink_relax=yes
26318 else
26319 echo "configure: failed program was" >&5
26320 cat conftest.s >&5
26322 rm -f conftest.o conftest.s
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26326 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26327 if test $gcc_cv_as_avr_mlink_relax = yes; then
26329 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26335 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26336 if ${gcc_cv_as_avr_mrmw+:} false; then :
26337 $as_echo_n "(cached) " >&6
26338 else
26339 gcc_cv_as_avr_mrmw=no
26340 if test x$gcc_cv_as != x; then
26341 $as_echo '.text' > conftest.s
26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26348 then
26349 gcc_cv_as_avr_mrmw=yes
26350 else
26351 echo "configure: failed program was" >&5
26352 cat conftest.s >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26358 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26359 if test $gcc_cv_as_avr_mrmw = yes; then
26361 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26367 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26368 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26369 $as_echo_n "(cached) " >&6
26370 else
26371 gcc_cv_as_avr_mgccisr=no
26372 if test x$gcc_cv_as != x; then
26373 $as_echo '.text
26374 __gcc_isr 1
26375 __gcc_isr 2
26376 __gcc_isr 0,r24
26377 ' > conftest.s
26378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; }
26384 then
26385 gcc_cv_as_avr_mgccisr=yes
26386 else
26387 echo "configure: failed program was" >&5
26388 cat conftest.s >&5
26390 rm -f conftest.o conftest.s
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26394 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26395 if test $gcc_cv_as_avr_mgccisr = yes; then
26397 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26402 # Check how default linker description file implements .rodata for
26403 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26404 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26406 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26407 cat > conftest.s <<EOF
26408 .section .rodata,"a",@progbits
26409 .global xxvaryy
26410 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26411 xxvaryy:
26412 .word 1
26414 rm -f conftest.nm
26415 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26421 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26427 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 if test -s conftest.nm
26434 then
26435 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26437 $as_echo "yes" >&6; }
26439 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26441 else
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26443 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26444 echo "$as_me: nm output was" >&5
26445 cat conftest.nm >&5
26446 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26447 { $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
26448 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26450 else
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26452 $as_echo "test failed" >&6; }
26453 echo "$as_me: failed program was" >&5
26454 cat conftest.s >&5
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26456 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26458 rm -f conftest.s conftest.o conftest.elf conftest.nm
26461 cris-*-*)
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26463 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26464 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26465 $as_echo_n "(cached) " >&6
26466 else
26467 gcc_cv_as_cris_no_mul_bug=no
26468 if test x$gcc_cv_as != x; then
26469 $as_echo '.text' > conftest.s
26470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26475 test $ac_status = 0; }; }
26476 then
26477 gcc_cv_as_cris_no_mul_bug=yes
26478 else
26479 echo "configure: failed program was" >&5
26480 cat conftest.s >&5
26482 rm -f conftest.o conftest.s
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26486 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26487 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26489 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26495 sparc*-*-*)
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26497 $as_echo_n "checking assembler for -relax option... " >&6; }
26498 if ${gcc_cv_as_sparc_relax+:} false; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_as_sparc_relax=no
26502 if test x$gcc_cv_as != x; then
26503 $as_echo '.text' > conftest.s
26504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26506 (eval $ac_try) 2>&5
26507 ac_status=$?
26508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26509 test $ac_status = 0; }; }
26510 then
26511 gcc_cv_as_sparc_relax=yes
26512 else
26513 echo "configure: failed program was" >&5
26514 cat conftest.s >&5
26516 rm -f conftest.o conftest.s
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26520 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26521 if test $gcc_cv_as_sparc_relax = yes; then
26523 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26529 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26530 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26531 $as_echo_n "(cached) " >&6
26532 else
26533 gcc_cv_as_sparc_gotdata_op=no
26534 if test x$gcc_cv_as != x; then
26535 $as_echo '.text
26536 .align 4
26537 foo:
26539 bar:
26540 sethi %gdop_hix22(foo), %g1
26541 xor %g1, %gdop_lox10(foo), %g1
26542 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26545 (eval $ac_try) 2>&5
26546 ac_status=$?
26547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26548 test $ac_status = 0; }; }
26549 then
26550 if test x$gcc_cv_ld != x \
26551 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26552 if test x$gcc_cv_objdump != x; then
26553 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26554 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26555 gcc_cv_as_sparc_gotdata_op=no
26556 else
26557 gcc_cv_as_sparc_gotdata_op=yes
26561 rm -f conftest
26562 else
26563 echo "configure: failed program was" >&5
26564 cat conftest.s >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26570 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26571 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26573 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26579 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26580 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26581 $as_echo_n "(cached) " >&6
26582 else
26583 gcc_cv_as_sparc_ua_pcrel=no
26584 if test x$gcc_cv_as != x; then
26585 $as_echo '.text
26586 foo:
26588 .data
26589 .align 4
26590 .byte 0
26591 .uaword %r_disp32(foo)' > conftest.s
26592 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26594 (eval $ac_try) 2>&5
26595 ac_status=$?
26596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26597 test $ac_status = 0; }; }
26598 then
26599 if test x$gcc_cv_ld != x \
26600 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26601 gcc_cv_as_sparc_ua_pcrel=yes
26603 rm -f conftest
26604 else
26605 echo "configure: failed program was" >&5
26606 cat conftest.s >&5
26608 rm -f conftest.o conftest.s
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26612 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26613 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26615 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26619 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26620 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_sparc_ua_pcrel_hidden=no
26624 if test x$gcc_cv_as != x; then
26625 $as_echo '.data
26626 .align 4
26627 .byte 0x31
26628 .uaword %r_disp32(foo)
26629 .byte 0x32, 0x33, 0x34
26630 .global foo
26631 .hidden foo
26632 foo:
26633 .skip 4' > conftest.s
26634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26639 test $ac_status = 0; }; }
26640 then
26641 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26642 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26643 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26644 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26645 if $gcc_cv_objdump -R conftest 2> /dev/null \
26646 | grep 'DISP32' > /dev/null 2>&1; then
26648 else
26649 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26652 rm -f conftest
26653 else
26654 echo "configure: failed program was" >&5
26655 cat conftest.s >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26661 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26662 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26664 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26670 # unaligned pcrel relocs
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26673 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26674 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26675 $as_echo_n "(cached) " >&6
26676 else
26677 gcc_cv_as_sparc_offsetable_lo10=no
26678 if test x$gcc_cv_as != x; then
26679 $as_echo '.text
26680 or %g1, %lo(ab) + 12, %g1
26681 or %g1, %lo(ab + 12), %g1' > conftest.s
26682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26684 (eval $ac_try) 2>&5
26685 ac_status=$?
26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26687 test $ac_status = 0; }; }
26688 then
26689 if test x$gcc_cv_objdump != x \
26690 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26691 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26692 gcc_cv_as_sparc_offsetable_lo10=yes
26694 else
26695 echo "configure: failed program was" >&5
26696 cat conftest.s >&5
26698 rm -f conftest.o conftest.s
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26702 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26703 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26705 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26711 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26712 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26713 $as_echo_n "(cached) " >&6
26714 else
26715 gcc_cv_as_sparc_fmaf=no
26716 if test x$gcc_cv_as != x; then
26717 $as_echo '.text
26718 .register %g2, #scratch
26719 .register %g3, #scratch
26720 .align 4
26721 fmaddd %f0, %f2, %f4, %f6
26722 addxccc %g1, %g2, %g3
26723 fsrl32 %f2, %f4, %f8
26724 fnaddd %f10, %f12, %f14' > conftest.s
26725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26727 (eval $ac_try) 2>&5
26728 ac_status=$?
26729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26730 test $ac_status = 0; }; }
26731 then
26732 gcc_cv_as_sparc_fmaf=yes
26733 else
26734 echo "configure: failed program was" >&5
26735 cat conftest.s >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26741 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26742 if test $gcc_cv_as_sparc_fmaf = yes; then
26744 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26750 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26751 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26752 $as_echo_n "(cached) " >&6
26753 else
26754 gcc_cv_as_sparc_sparc4=no
26755 if test x$gcc_cv_as != x; then
26756 $as_echo '.text
26757 .register %g2, #scratch
26758 .register %g3, #scratch
26759 .align 4
26760 cxbe %g2, %g3, 1f
26761 1: cwbneg %g2, %g3, 1f
26762 1: sha1
26764 aes_kexpand0 %f4, %f6, %f8
26765 des_round %f38, %f40, %f42, %f44
26766 camellia_f %f54, %f56, %f58, %f60
26767 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26771 ac_status=$?
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; }
26774 then
26775 gcc_cv_as_sparc_sparc4=yes
26776 else
26777 echo "configure: failed program was" >&5
26778 cat conftest.s >&5
26780 rm -f conftest.o conftest.s
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26784 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26785 if test $gcc_cv_as_sparc_sparc4 = yes; then
26787 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26793 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26794 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26795 $as_echo_n "(cached) " >&6
26796 else
26797 gcc_cv_as_sparc_sparc5=no
26798 if test x$gcc_cv_as != x; then
26799 $as_echo '.text
26800 .register %g2, #scratch
26801 .register %g3, #scratch
26802 .align 4
26803 subxc %g1, %g2, %g3
26804 fpadd8 %f0, %f2, %f4' > conftest.s
26805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810 test $ac_status = 0; }; }
26811 then
26812 gcc_cv_as_sparc_sparc5=yes
26813 else
26814 echo "configure: failed program was" >&5
26815 cat conftest.s >&5
26817 rm -f conftest.o conftest.s
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26821 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26822 if test $gcc_cv_as_sparc_sparc5 = yes; then
26824 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26830 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26831 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_as_sparc_sparc6=no
26835 if test x$gcc_cv_as != x; then
26836 $as_echo '.text
26837 .register %g2, #scratch
26838 .register %g3, #scratch
26839 .align 4
26840 rd %entropy, %g1
26841 fpsll64x %f0, %f2, %f4' > conftest.s
26842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26847 test $ac_status = 0; }; }
26848 then
26849 gcc_cv_as_sparc_sparc6=yes
26850 else
26851 echo "configure: failed program was" >&5
26852 cat conftest.s >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26858 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26859 if test $gcc_cv_as_sparc_sparc6 = yes; then
26861 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26867 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26868 if ${gcc_cv_as_sparc_leon+:} false; then :
26869 $as_echo_n "(cached) " >&6
26870 else
26871 gcc_cv_as_sparc_leon=no
26872 if test x$gcc_cv_as != x; then
26873 $as_echo '.text
26874 .register %g2, #scratch
26875 .register %g3, #scratch
26876 .align 4
26877 smac %g2, %g3, %g1
26878 umac %g2, %g3, %g1
26879 casa [%g2] 0xb, %g3, %g1' > conftest.s
26880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26886 then
26887 gcc_cv_as_sparc_leon=yes
26888 else
26889 echo "configure: failed program was" >&5
26890 cat conftest.s >&5
26892 rm -f conftest.o conftest.s
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26896 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26897 if test $gcc_cv_as_sparc_leon = yes; then
26899 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26905 i[34567]86-*-* | x86_64-*-*)
26906 case $target_os in
26907 cygwin*)
26908 # Full C++ conformance when using a shared libstdc++-v3 requires some
26909 # support from the Cygwin DLL, which in more recent versions exports
26910 # wrappers to aid in interposing and redirecting operators new, delete,
26911 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26912 # are configuring for a version of Cygwin that exports the wrappers.
26913 if test x$host = x$target && test x$host_cpu = xi686; then
26914 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26915 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26916 gcc_ac_cygwin_dll_wrappers=yes
26917 else
26918 gcc_ac_cygwin_dll_wrappers=no
26921 else
26922 # Can't check presence of libc functions during cross-compile, so
26923 # we just have to assume we're building for an up-to-date target.
26924 gcc_ac_cygwin_dll_wrappers=yes
26927 cat >>confdefs.h <<_ACEOF
26928 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26929 _ACEOF
26931 esac
26932 case $target_os in
26933 cygwin* | pe | mingw32*)
26934 # Recent binutils allows the three-operand form of ".comm" on PE. This
26935 # definition is used unconditionally to initialise the default state of
26936 # the target option variable that governs usage of the feature.
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26938 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26939 if ${gcc_cv_as_comm_has_align+:} false; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26942 gcc_cv_as_comm_has_align=no
26943 if test x$gcc_cv_as != x; then
26944 $as_echo '.comm foo,1,32' > conftest.s
26945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26947 (eval $ac_try) 2>&5
26948 ac_status=$?
26949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26950 test $ac_status = 0; }; }
26951 then
26952 gcc_cv_as_comm_has_align=yes
26953 else
26954 echo "configure: failed program was" >&5
26955 cat conftest.s >&5
26957 rm -f conftest.o conftest.s
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26961 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26965 cat >>confdefs.h <<_ACEOF
26966 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26967 _ACEOF
26969 # Used for DWARF 2 in PE
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26971 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26972 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
26973 $as_echo_n "(cached) " >&6
26974 else
26975 gcc_cv_as_ix86_pe_secrel32=no
26976 if test x$gcc_cv_as != x; then
26977 $as_echo '.text
26978 foo: nop
26979 .data
26980 .secrel32 foo' > conftest.s
26981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; }
26987 then
26988 if test x$gcc_cv_ld != x \
26989 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26990 gcc_cv_as_ix86_pe_secrel32=yes
26992 rm -f conftest
26993 else
26994 echo "configure: failed program was" >&5
26995 cat conftest.s >&5
26997 rm -f conftest.o conftest.s
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27001 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27002 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27004 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27008 # Test if the assembler supports the extended form of the .section
27009 # directive that specifies section alignment. LTO support uses this,
27010 # but normally only after installation, so we warn but don't fail the
27011 # configure if LTO is enabled but the assembler does not support it.
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27013 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27014 if ${gcc_cv_as_section_has_align+:} false; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_section_has_align=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.section lto_test,"dr0"' > conftest.s
27020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27022 (eval $ac_try) 2>&5
27023 ac_status=$?
27024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27025 test $ac_status = 0; }; }
27026 then
27027 gcc_cv_as_section_has_align=yes
27028 else
27029 echo "configure: failed program was" >&5
27030 cat conftest.s >&5
27032 rm -f conftest.o conftest.s
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27036 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27039 if test x$gcc_cv_as_section_has_align != xyes; then
27040 case ",$enable_languages," in
27041 *,lto,*)
27042 { $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
27043 $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;}
27045 esac
27048 esac
27049 case $target_os in
27050 darwin2* | darwin19*)
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27052 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27053 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27054 $as_echo_n "(cached) " >&6
27055 else
27056 gcc_cv_as_mllvm_x86_pad_for_align=no
27057 if test x$gcc_cv_as != x; then
27058 $as_echo '.text' > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 gcc_cv_as_mllvm_x86_pad_for_align=yes
27067 else
27068 echo "configure: failed program was" >&5
27069 cat conftest.s >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27075 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27076 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27078 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27083 esac
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27086 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27087 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27088 $as_echo_n "(cached) " >&6
27089 else
27090 gcc_cv_as_ix86_xbrace_comment=no
27091 if test x$gcc_cv_as != x; then
27092 $as_echo '.text' > conftest.s
27093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27095 (eval $ac_try) 2>&5
27096 ac_status=$?
27097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27098 test $ac_status = 0; }; }
27099 then
27100 gcc_cv_as_ix86_xbrace_comment=yes
27101 else
27102 echo "configure: failed program was" >&5
27103 cat conftest.s >&5
27105 rm -f conftest.o conftest.s
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27109 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27110 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27112 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27118 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27119 if ${gcc_cv_as_ix86_filds+:} false; then :
27120 $as_echo_n "(cached) " >&6
27121 else
27122 gcc_cv_as_ix86_filds=no
27123 if test x$gcc_cv_as != x; then
27124 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; }
27131 then
27132 gcc_cv_as_ix86_filds=yes
27133 else
27134 echo "configure: failed program was" >&5
27135 cat conftest.s >&5
27137 rm -f conftest.o conftest.s
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27141 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27142 if test $gcc_cv_as_ix86_filds = yes; then
27144 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27150 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27151 if ${gcc_cv_as_ix86_fildq+:} false; then :
27152 $as_echo_n "(cached) " >&6
27153 else
27154 gcc_cv_as_ix86_fildq=no
27155 if test x$gcc_cv_as != x; then
27156 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27159 (eval $ac_try) 2>&5
27160 ac_status=$?
27161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27162 test $ac_status = 0; }; }
27163 then
27164 gcc_cv_as_ix86_fildq=yes
27165 else
27166 echo "configure: failed program was" >&5
27167 cat conftest.s >&5
27169 rm -f conftest.o conftest.s
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27173 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27174 if test $gcc_cv_as_ix86_fildq = yes; then
27176 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27182 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27183 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27184 $as_echo_n "(cached) " >&6
27185 else
27186 gcc_cv_as_ix86_cmov_sun_syntax=no
27187 if test x$gcc_cv_as != x; then
27188 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27191 (eval $ac_try) 2>&5
27192 ac_status=$?
27193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27194 test $ac_status = 0; }; }
27195 then
27196 gcc_cv_as_ix86_cmov_sun_syntax=yes
27197 else
27198 echo "configure: failed program was" >&5
27199 cat conftest.s >&5
27201 rm -f conftest.o conftest.s
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27205 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27206 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27208 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27214 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27215 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27216 $as_echo_n "(cached) " >&6
27217 else
27218 gcc_cv_as_ix86_ffreep=no
27219 if test x$gcc_cv_as != x; then
27220 $as_echo 'ffreep %st(1)' > conftest.s
27221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27226 test $ac_status = 0; }; }
27227 then
27228 gcc_cv_as_ix86_ffreep=yes
27229 else
27230 echo "configure: failed program was" >&5
27231 cat conftest.s >&5
27233 rm -f conftest.o conftest.s
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27237 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27238 if test $gcc_cv_as_ix86_ffreep = yes; then
27240 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27246 $as_echo_n "checking assembler for .quad directive... " >&6; }
27247 if ${gcc_cv_as_ix86_quad+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 gcc_cv_as_ix86_quad=no
27251 if test x$gcc_cv_as != x; then
27252 $as_echo '.quad 0' > conftest.s
27253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }
27259 then
27260 gcc_cv_as_ix86_quad=yes
27261 else
27262 echo "configure: failed program was" >&5
27263 cat conftest.s >&5
27265 rm -f conftest.o conftest.s
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27269 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27270 if test $gcc_cv_as_ix86_quad = yes; then
27272 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27278 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27279 if ${gcc_cv_as_ix86_sahf+:} false; then :
27280 $as_echo_n "(cached) " >&6
27281 else
27282 gcc_cv_as_ix86_sahf=no
27283 if test x$gcc_cv_as != x; then
27284 $as_echo '.code64
27285 sahf' > conftest.s
27286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27288 (eval $ac_try) 2>&5
27289 ac_status=$?
27290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27291 test $ac_status = 0; }; }
27292 then
27293 gcc_cv_as_ix86_sahf=yes
27294 else
27295 echo "configure: failed program was" >&5
27296 cat conftest.s >&5
27298 rm -f conftest.o conftest.s
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27302 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27303 if test $gcc_cv_as_ix86_sahf = yes; then
27305 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27311 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27312 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27313 $as_echo_n "(cached) " >&6
27314 else
27315 gcc_cv_as_ix86_interunit_movq=no
27316 if test x$gcc_cv_as != x; then
27317 $as_echo '.code64
27318 movq %mm0, %rax
27319 movq %rax, %xmm0' > conftest.s
27320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27325 test $ac_status = 0; }; }
27326 then
27327 gcc_cv_as_ix86_interunit_movq=yes
27328 else
27329 echo "configure: failed program was" >&5
27330 cat conftest.s >&5
27332 rm -f conftest.o conftest.s
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27336 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27340 cat >>confdefs.h <<_ACEOF
27341 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27342 _ACEOF
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27346 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27347 if ${gcc_cv_as_ix86_hle+:} false; then :
27348 $as_echo_n "(cached) " >&6
27349 else
27350 gcc_cv_as_ix86_hle=no
27351 if test x$gcc_cv_as != x; then
27352 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27353 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27355 (eval $ac_try) 2>&5
27356 ac_status=$?
27357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27358 test $ac_status = 0; }; }
27359 then
27360 gcc_cv_as_ix86_hle=yes
27361 else
27362 echo "configure: failed program was" >&5
27363 cat conftest.s >&5
27365 rm -f conftest.o conftest.s
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27369 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27370 if test $gcc_cv_as_ix86_hle = yes; then
27372 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27378 $as_echo_n "checking assembler for swap suffix... " >&6; }
27379 if ${gcc_cv_as_ix86_swap+:} false; then :
27380 $as_echo_n "(cached) " >&6
27381 else
27382 gcc_cv_as_ix86_swap=no
27383 if test x$gcc_cv_as != x; then
27384 $as_echo 'movl.s %esp, %ebp' > conftest.s
27385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27390 test $ac_status = 0; }; }
27391 then
27392 gcc_cv_as_ix86_swap=yes
27393 else
27394 echo "configure: failed program was" >&5
27395 cat conftest.s >&5
27397 rm -f conftest.o conftest.s
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27401 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27402 if test $gcc_cv_as_ix86_swap = yes; then
27404 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27410 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27411 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27412 $as_echo_n "(cached) " >&6
27413 else
27414 gcc_cv_as_ix86_diff_sect_delta=no
27415 if test x$gcc_cv_as != x; then
27416 $as_echo '.section .rodata
27417 .L1:
27418 .long .L2-.L1
27419 .long .L3-.L1
27420 .text
27421 .L3: nop
27422 .L2: nop' > conftest.s
27423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27429 then
27430 gcc_cv_as_ix86_diff_sect_delta=yes
27431 else
27432 echo "configure: failed program was" >&5
27433 cat conftest.s >&5
27435 rm -f conftest.o conftest.s
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27439 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27440 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27442 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27448 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27449 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_ix86_rep_lock_prefix=no
27453 if test x$gcc_cv_as != x; then
27454 $as_echo 'rep movsl
27455 rep ret
27456 rep nop
27457 rep bsf %ecx, %eax
27458 rep bsr %ecx, %eax
27459 lock addl %edi, (%eax,%esi)
27460 lock orl $0, (%esp)' > conftest.s
27461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27466 test $ac_status = 0; }; }
27467 then
27468 gcc_cv_as_ix86_rep_lock_prefix=yes
27469 else
27470 echo "configure: failed program was" >&5
27471 cat conftest.s >&5
27473 rm -f conftest.o conftest.s
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27477 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27478 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27480 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27486 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27487 if ${gcc_cv_as_ix86_ud2+:} false; then :
27488 $as_echo_n "(cached) " >&6
27489 else
27490 gcc_cv_as_ix86_ud2=no
27491 if test x$gcc_cv_as != x; then
27492 $as_echo 'ud2' > conftest.s
27493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27495 (eval $ac_try) 2>&5
27496 ac_status=$?
27497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27498 test $ac_status = 0; }; }
27499 then
27500 gcc_cv_as_ix86_ud2=yes
27501 else
27502 echo "configure: failed program was" >&5
27503 cat conftest.s >&5
27505 rm -f conftest.o conftest.s
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27509 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27510 if test $gcc_cv_as_ix86_ud2 = yes; then
27512 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27517 # Enforce 32-bit output with gas and gld.
27518 if test x$gas = xyes; then
27519 as_ix86_gas_32_opt="--32"
27521 if echo "$ld_ver" | grep GNU > /dev/null; then
27522 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27523 ld_ix86_gld_32_opt="-melf_i386_sol2"
27524 else
27525 ld_ix86_gld_32_opt="-melf_i386"
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27530 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27531 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27534 gcc_cv_as_ix86_tlsgdplt=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x$gcc_cv_ld != x \
27545 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27546 gcc_cv_as_ix86_tlsgdplt=yes
27548 rm -f conftest
27549 else
27550 echo "configure: failed program was" >&5
27551 cat conftest.s >&5
27553 rm -f conftest.o conftest.s
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27557 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27558 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27560 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27565 conftest_s='
27566 .section .tdata,"aw'$tls_section_flag'",@progbits
27567 tls_ld:
27568 .section .text,"ax",@progbits
27569 call tls_ld@tlsldmplt'
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27572 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27573 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27574 $as_echo_n "(cached) " >&6
27575 else
27576 gcc_cv_as_ix86_tlsldmplt=no
27577 if test x$gcc_cv_as != x; then
27578 $as_echo "$conftest_s" > conftest.s
27579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }
27585 then
27586 if test x$gcc_cv_ld != x \
27587 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27588 gcc_cv_as_ix86_tlsldmplt=yes
27590 rm -f conftest
27591 else
27592 echo "configure: failed program was" >&5
27593 cat conftest.s >&5
27595 rm -f conftest.o conftest.s
27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27599 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27603 cat >>confdefs.h <<_ACEOF
27604 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27605 _ACEOF
27608 conftest_s='
27609 .section .text,"ax",@progbits
27610 .globl _start
27611 .type _start, @function
27612 _start:
27613 leal value@tlsldm(%ebx), %eax
27614 call ___tls_get_addr@plt
27616 .section .tdata,"aw'$tls_section_flag'",@progbits
27617 .type value, @object
27618 value:'
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27620 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27621 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27622 $as_echo_n "(cached) " >&6
27623 else
27624 gcc_cv_as_ix86_tlsldm=no
27625 if test x$gcc_cv_as != x; then
27626 $as_echo "$conftest_s" > conftest.s
27627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27632 test $ac_status = 0; }; }
27633 then
27634 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27635 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27636 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27637 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27638 gcc_cv_as_ix86_tlsldm=yes
27641 rm -f conftest
27642 else
27643 echo "configure: failed program was" >&5
27644 cat conftest.s >&5
27646 rm -f conftest.o conftest.s
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27650 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27654 cat >>confdefs.h <<_ACEOF
27655 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27656 _ACEOF
27659 conftest_s='
27660 .data
27661 bar:
27662 .byte 1
27663 .text
27664 .global _start
27665 _start:
27666 cmpl $0, bar@GOT
27667 jmp *_start@GOT'
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27669 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27670 if ${gcc_cv_as_ix86_got32x+:} false; then :
27671 $as_echo_n "(cached) " >&6
27672 else
27673 gcc_cv_as_ix86_got32x=no
27674 if test x$gcc_cv_as != x; then
27675 $as_echo "$conftest_s" > conftest.s
27676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27678 (eval $ac_try) 2>&5
27679 ac_status=$?
27680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27681 test $ac_status = 0; }; }
27682 then
27683 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27684 && test x$gcc_cv_readelf != x \
27685 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27686 | grep R_386_GOT32X > /dev/null 2>&1 \
27687 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27688 if $gcc_cv_objdump -dw conftest 2>&1 \
27689 | grep 0xffffff > /dev/null 2>&1; then
27690 gcc_cv_as_ix86_got32x=no
27691 else
27692 gcc_cv_as_ix86_got32x=yes
27695 rm -f conftest
27696 else
27697 echo "configure: failed program was" >&5
27698 cat conftest.s >&5
27700 rm -f conftest.o conftest.s
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27704 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27708 cat >>confdefs.h <<_ACEOF
27709 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27710 _ACEOF
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27714 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27715 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27716 $as_echo_n "(cached) " >&6
27717 else
27718 gcc_cv_as_ix86_gotoff_in_data=no
27719 if test x$gcc_cv_as != x; then
27720 $as_echo ' .text
27721 .L0:
27723 .data
27724 .long .L0@GOTOFF' > conftest.s
27725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27730 test $ac_status = 0; }; }
27731 then
27732 gcc_cv_as_ix86_gotoff_in_data=yes
27733 else
27734 echo "configure: failed program was" >&5
27735 cat conftest.s >&5
27737 rm -f conftest.o conftest.s
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27741 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27747 _ACEOF
27750 conftest_s='
27751 .section .text,"ax",@progbits
27752 .globl _start
27753 .type _start, @function
27754 _start:
27755 leal ld@tlsldm(%ecx), %eax
27756 call *___tls_get_addr@GOT(%ecx)
27757 leal gd@tlsgd(%ecx), %eax
27758 call *___tls_get_addr@GOT(%ecx)
27760 .section .tdata,"aw'$tls_section_flag'",@progbits
27761 .type ld, @object
27763 .byte 0
27764 .globl gd
27765 .type gd, @object
27767 .byte 0'
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27769 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27770 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27771 $as_echo_n "(cached) " >&6
27772 else
27773 gcc_cv_as_ix86_tls_get_addr_via_got=no
27774 if test x$gcc_cv_as != x; then
27775 $as_echo "$conftest_s" > conftest.s
27776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27781 test $ac_status = 0; }; }
27782 then
27783 if test x$gcc_cv_ld != x \
27784 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27785 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27787 rm -f conftest
27788 else
27789 echo "configure: failed program was" >&5
27790 cat conftest.s >&5
27792 rm -f conftest.o conftest.s
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27796 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27800 cat >>confdefs.h <<_ACEOF
27801 #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`
27802 _ACEOF
27806 ia64*-*-*)
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27808 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27809 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27810 $as_echo_n "(cached) " >&6
27811 else
27812 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27813 if test x$gcc_cv_as != x; then
27814 $as_echo ' .text
27815 addl r15 = @ltoffx(x#), gp
27817 ld8.mov r16 = [r15], x#
27818 ' > conftest.s
27819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27821 (eval $ac_try) 2>&5
27822 ac_status=$?
27823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27824 test $ac_status = 0; }; }
27825 then
27826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27827 else
27828 echo "configure: failed program was" >&5
27829 cat conftest.s >&5
27831 rm -f conftest.o conftest.s
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27835 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27836 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27838 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27845 powerpc*-*-*)
27847 case $target in
27848 *-*-darwin*)
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27850 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27851 if ${gcc_cv_as_machine_directive+:} false; then :
27852 $as_echo_n "(cached) " >&6
27853 else
27854 gcc_cv_as_machine_directive=no
27855 if test x$gcc_cv_as != x; then
27856 $as_echo ' .machine ppc7400' > conftest.s
27857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27859 (eval $ac_try) 2>&5
27860 ac_status=$?
27861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27862 test $ac_status = 0; }; }
27863 then
27864 gcc_cv_as_machine_directive=yes
27865 else
27866 echo "configure: failed program was" >&5
27867 cat conftest.s >&5
27869 rm -f conftest.o conftest.s
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27873 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27876 if test x$gcc_cv_as_machine_directive != xyes; then
27877 echo "*** This target requires an assembler supporting \".machine\"" >&2
27878 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27879 test x$build = x$target && exit 1
27882 esac
27884 case $target in
27885 *-*-aix*) conftest_s=' .machine "pwr5"
27886 .csect .text[PR]
27887 mfcr 3,128';;
27888 *-*-darwin*) conftest_s=' .text
27889 mfcr r3,128';;
27890 *) conftest_s=' .machine power4
27891 .text
27892 mfcr 3,128';;
27893 esac
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27896 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27897 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27898 $as_echo_n "(cached) " >&6
27899 else
27900 gcc_cv_as_powerpc_mfcrf=no
27901 if test x$gcc_cv_as != x; then
27902 $as_echo "$conftest_s" > conftest.s
27903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27905 (eval $ac_try) 2>&5
27906 ac_status=$?
27907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27908 test $ac_status = 0; }; }
27909 then
27910 gcc_cv_as_powerpc_mfcrf=yes
27911 else
27912 echo "configure: failed program was" >&5
27913 cat conftest.s >&5
27915 rm -f conftest.o conftest.s
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27919 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27920 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27922 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27927 case $target in
27928 *-*-aix*) conftest_s=' .csect .text[PR]
27929 LCF..0:
27930 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27931 *-*-darwin*)
27932 conftest_s=' .text
27933 LCF0:
27934 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27935 *) conftest_s=' .text
27936 .LCF0:
27937 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27938 esac
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27941 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27942 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27943 $as_echo_n "(cached) " >&6
27944 else
27945 gcc_cv_as_powerpc_rel16=no
27946 if test x$gcc_cv_as != x; then
27947 $as_echo "$conftest_s" > conftest.s
27948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27953 test $ac_status = 0; }; }
27954 then
27955 gcc_cv_as_powerpc_rel16=yes
27956 else
27957 echo "configure: failed program was" >&5
27958 cat conftest.s >&5
27960 rm -f conftest.o conftest.s
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27964 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27965 if test $gcc_cv_as_powerpc_rel16 = yes; then
27967 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27972 case $target in
27973 *-*-aix*) conftest_s=' .machine "pwr7"
27974 .csect .text[PR]
27975 lxvd2x 1,2,3';;
27976 *) conftest_s=' .machine power7
27977 .text
27978 lxvd2x 1,2,3';;
27979 esac
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27982 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27983 if ${gcc_cv_as_powerpc_vsx+:} false; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 gcc_cv_as_powerpc_vsx=no
27987 if test x$gcc_cv_as != x; then
27988 $as_echo "$conftest_s" > conftest.s
27989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27991 (eval $ac_try) 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; }
27995 then
27996 gcc_cv_as_powerpc_vsx=yes
27997 else
27998 echo "configure: failed program was" >&5
27999 cat conftest.s >&5
28001 rm -f conftest.o conftest.s
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28005 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28006 if test $gcc_cv_as_powerpc_vsx = yes; then
28008 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28014 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28015 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28016 $as_echo_n "(cached) " >&6
28017 else
28018 gcc_cv_as_powerpc_gnu_attribute=no
28019 if test x$gcc_cv_as != x; then
28020 $as_echo '.gnu_attribute 4,1' > conftest.s
28021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28023 (eval $ac_try) 2>&5
28024 ac_status=$?
28025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28026 test $ac_status = 0; }; }
28027 then
28028 gcc_cv_as_powerpc_gnu_attribute=yes
28029 else
28030 echo "configure: failed program was" >&5
28031 cat conftest.s >&5
28033 rm -f conftest.o conftest.s
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28037 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28038 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28040 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28046 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28047 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28048 $as_echo_n "(cached) " >&6
28049 else
28050 gcc_cv_as_powerpc_entry_markers=no
28051 if test x$gcc_cv_as != x; then
28052 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; }
28059 then
28060 gcc_cv_as_powerpc_entry_markers=yes
28061 else
28062 echo "configure: failed program was" >&5
28063 cat conftest.s >&5
28065 rm -f conftest.o conftest.s
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28069 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28070 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28072 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28078 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28079 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28080 $as_echo_n "(cached) " >&6
28081 else
28082 gcc_cv_as_powerpc_pltseq_markers=no
28083 if test x$gcc_cv_as != x; then
28084 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28087 (eval $ac_try) 2>&5
28088 ac_status=$?
28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28090 test $ac_status = 0; }; }
28091 then
28092 gcc_cv_as_powerpc_pltseq_markers=yes
28093 else
28094 echo "configure: failed program was" >&5
28095 cat conftest.s >&5
28097 rm -f conftest.o conftest.s
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28101 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28102 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28104 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28109 case $target in
28110 *-*-aix*)
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28112 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28113 if ${gcc_cv_as_aix_ref+:} false; then :
28114 $as_echo_n "(cached) " >&6
28115 else
28116 gcc_cv_as_aix_ref=no
28117 if test x$gcc_cv_as != x; then
28118 $as_echo ' .csect stuff[rw]
28119 stuff:
28120 .long 1
28121 .extern sym
28122 .ref sym
28123 ' > conftest.s
28124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28129 test $ac_status = 0; }; }
28130 then
28131 gcc_cv_as_aix_ref=yes
28132 else
28133 echo "configure: failed program was" >&5
28134 cat conftest.s >&5
28136 rm -f conftest.o conftest.s
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28140 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28141 if test $gcc_cv_as_aix_ref = yes; then
28143 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28148 esac
28151 mips*-*-*)
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28153 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28154 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28155 $as_echo_n "(cached) " >&6
28156 else
28157 gcc_cv_as_mips_explicit_relocs=no
28158 if test x$gcc_cv_as != x; then
28159 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28162 (eval $ac_try) 2>&5
28163 ac_status=$?
28164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28165 test $ac_status = 0; }; }
28166 then
28167 gcc_cv_as_mips_explicit_relocs=yes
28168 else
28169 echo "configure: failed program was" >&5
28170 cat conftest.s >&5
28172 rm -f conftest.o conftest.s
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28176 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28177 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28178 if test x$target_cpu_default = x
28179 then target_cpu_default=MASK_EXPLICIT_RELOCS
28180 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28186 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28187 if ${gcc_cv_as_mips_no_shared+:} false; then :
28188 $as_echo_n "(cached) " >&6
28189 else
28190 gcc_cv_as_mips_no_shared=no
28191 if test x$gcc_cv_as != x; then
28192 $as_echo 'nop' > conftest.s
28193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28195 (eval $ac_try) 2>&5
28196 ac_status=$?
28197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28198 test $ac_status = 0; }; }
28199 then
28200 gcc_cv_as_mips_no_shared=yes
28201 else
28202 echo "configure: failed program was" >&5
28203 cat conftest.s >&5
28205 rm -f conftest.o conftest.s
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28209 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28210 if test $gcc_cv_as_mips_no_shared = yes; then
28212 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28218 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28219 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28220 $as_echo_n "(cached) " >&6
28221 else
28222 gcc_cv_as_mips_gnu_attribute=no
28223 if test x$gcc_cv_as != x; then
28224 $as_echo '.gnu_attribute 4,1' > conftest.s
28225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28227 (eval $ac_try) 2>&5
28228 ac_status=$?
28229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28230 test $ac_status = 0; }; }
28231 then
28232 gcc_cv_as_mips_gnu_attribute=yes
28233 else
28234 echo "configure: failed program was" >&5
28235 cat conftest.s >&5
28237 rm -f conftest.o conftest.s
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28241 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28242 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28244 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28250 $as_echo_n "checking assembler for .module support... " >&6; }
28251 if ${gcc_cv_as_mips_dot_module+:} false; then :
28252 $as_echo_n "(cached) " >&6
28253 else
28254 gcc_cv_as_mips_dot_module=no
28255 if test x$gcc_cv_as != x; then
28256 $as_echo '.module mips2
28257 .module fp=xx' > conftest.s
28258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28260 (eval $ac_try) 2>&5
28261 ac_status=$?
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; }
28264 then
28265 gcc_cv_as_mips_dot_module=yes
28266 else
28267 echo "configure: failed program was" >&5
28268 cat conftest.s >&5
28270 rm -f conftest.o conftest.s
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28274 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28275 if test $gcc_cv_as_mips_dot_module = yes; then
28277 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28281 if test x$gcc_cv_as_mips_dot_module = xno \
28282 && test x$with_fp_32 != x; then
28283 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28287 $as_echo_n "checking assembler for .micromips support... " >&6; }
28288 if ${gcc_cv_as_micromips_support+:} false; then :
28289 $as_echo_n "(cached) " >&6
28290 else
28291 gcc_cv_as_micromips_support=no
28292 if test x$gcc_cv_as != x; then
28293 $as_echo '.set micromips' > conftest.s
28294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28299 test $ac_status = 0; }; }
28300 then
28301 gcc_cv_as_micromips_support=yes
28302 else
28303 echo "configure: failed program was" >&5
28304 cat conftest.s >&5
28306 rm -f conftest.o conftest.s
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28310 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28311 if test $gcc_cv_as_micromips_support = yes; then
28313 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28319 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28320 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28321 $as_echo_n "(cached) " >&6
28322 else
28323 gcc_cv_as_mips_dtprelword=no
28324 if test x$gcc_cv_as != x; then
28325 $as_echo '.section .tdata,"awT",@progbits
28327 .word 2
28328 .text
28329 .dtprelword x+0x8000' > conftest.s
28330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28332 (eval $ac_try) 2>&5
28333 ac_status=$?
28334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28335 test $ac_status = 0; }; }
28336 then
28337 gcc_cv_as_mips_dtprelword=yes
28338 else
28339 echo "configure: failed program was" >&5
28340 cat conftest.s >&5
28342 rm -f conftest.o conftest.s
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28346 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28347 if test $gcc_cv_as_mips_dtprelword = yes; then
28349 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28355 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28356 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28357 $as_echo_n "(cached) " >&6
28358 else
28359 gcc_cv_as_mips_dspr1_mult=no
28360 if test x$gcc_cv_as != x; then
28361 $as_echo ' .set mips32r2
28362 .set nodspr2
28363 .set dsp
28364 madd $ac3,$4,$5
28365 maddu $ac3,$4,$5
28366 msub $ac3,$4,$5
28367 msubu $ac3,$4,$5
28368 mult $ac3,$4,$5
28369 multu $ac3,$4,$5' > conftest.s
28370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28375 test $ac_status = 0; }; }
28376 then
28377 gcc_cv_as_mips_dspr1_mult=yes
28378 else
28379 echo "configure: failed program was" >&5
28380 cat conftest.s >&5
28382 rm -f conftest.o conftest.s
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28386 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28387 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28389 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28395 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28396 gcc_cv_as_ld_jalr_reloc=no
28397 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28398 if test $in_tree_ld = yes ; then
28399 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 \
28400 && test $in_tree_ld_is_elf = yes; then
28401 gcc_cv_as_ld_jalr_reloc=yes
28403 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28404 echo ' .ent x' > conftest.s
28405 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28406 echo ' lw $25,%call16(y)($28)' >> conftest.s
28407 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28408 echo '1: jalr $25' >> conftest.s
28409 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28410 echo '1: jalr $25' >> conftest.s
28411 echo ' .end x' >> conftest.s
28412 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28413 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28414 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28415 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28416 gcc_cv_as_ld_jalr_reloc=yes
28419 rm -f conftest.*
28422 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28423 if test x$target_cpu_default = x; then
28424 target_cpu_default=MASK_RELAX_PIC_CALLS
28425 else
28426 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28430 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28433 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28434 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28435 $as_echo_n "(cached) " >&6
28436 else
28437 gcc_cv_ld_mips_personality_relaxation=no
28438 if test $in_tree_ld = yes ; then
28439 if test "$gcc_cv_gld_major_version" -eq 2 \
28440 -a "$gcc_cv_gld_minor_version" -ge 21 \
28441 -o "$gcc_cv_gld_major_version" -gt 2; then
28442 gcc_cv_ld_mips_personality_relaxation=yes
28444 elif test x$gcc_cv_as != x \
28445 -a x$gcc_cv_ld != x \
28446 -a x$gcc_cv_readelf != x ; then
28447 cat > conftest.s <<EOF
28448 .cfi_startproc
28449 .cfi_personality 0x80,indirect_ptr
28450 .ent test
28451 test:
28453 .end test
28454 .cfi_endproc
28456 .section .data,"aw",@progbits
28457 indirect_ptr:
28458 .dc.a personality
28460 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28461 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28462 if $gcc_cv_readelf -d conftest 2>&1 \
28463 | grep TEXTREL > /dev/null 2>&1; then
28465 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28466 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28468 else
28469 gcc_cv_ld_mips_personality_relaxation=yes
28473 rm -f conftest.s conftest.o conftest
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28476 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28477 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28479 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28484 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28485 if ${gcc_cv_as_mips_nan+:} false; then :
28486 $as_echo_n "(cached) " >&6
28487 else
28488 gcc_cv_as_mips_nan=no
28489 if test x$gcc_cv_as != x; then
28490 $as_echo '' > conftest.s
28491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28496 test $ac_status = 0; }; }
28497 then
28498 gcc_cv_as_mips_nan=yes
28499 else
28500 echo "configure: failed program was" >&5
28501 cat conftest.s >&5
28503 rm -f conftest.o conftest.s
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28507 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28508 if test $gcc_cv_as_mips_nan = yes; then
28510 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28514 if test x$gcc_cv_as_mips_nan = xno \
28515 && test x$with_nan != x; then
28516 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28519 msp430-*-*)
28520 # Earlier GAS versions generically support .gnu_attribute, but the
28521 # msp430 assembler will not do anything with it.
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28523 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28524 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28525 $as_echo_n "(cached) " >&6
28526 else
28527 gcc_cv_as_msp430_gnu_attribute=no
28528 if test x$gcc_cv_as != x; then
28529 $as_echo '.gnu_attribute 4,1' > conftest.s
28530 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28532 (eval $ac_try) 2>&5
28533 ac_status=$?
28534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28535 test $ac_status = 0; }; }
28536 then
28537 gcc_cv_as_msp430_gnu_attribute=yes
28538 else
28539 echo "configure: failed program was" >&5
28540 cat conftest.s >&5
28542 rm -f conftest.o conftest.s
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28546 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28547 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28549 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28554 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28555 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28556 $as_echo_n "(cached) " >&6
28557 else
28558 gcc_cv_as_msp430_mspabi_attribute=no
28559 if test x$gcc_cv_as != x; then
28560 $as_echo '.mspabi_attribute 4,2' > conftest.s
28561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28566 test $ac_status = 0; }; }
28567 then
28568 gcc_cv_as_msp430_mspabi_attribute=yes
28569 else
28570 echo "configure: failed program was" >&5
28571 cat conftest.s >&5
28573 rm -f conftest.o conftest.s
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28577 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28578 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28580 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28584 if test x$enable_newlib_nano_formatted_io = xyes; then
28586 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28590 nios2-*-*)
28591 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28592 # syntax that is documented in the ABI specification.
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28594 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28595 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28596 $as_echo_n "(cached) " >&6
28597 else
28598 gcc_cv_as_nios2_gotoff_relocation=no
28599 if test x$gcc_cv_as != x; then
28600 $as_echo ' .extern foo
28601 .data
28602 .long %gotoff(foo)' > conftest.s
28603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28608 test $ac_status = 0; }; }
28609 then
28610 gcc_cv_as_nios2_gotoff_relocation=yes
28611 else
28612 echo "configure: failed program was" >&5
28613 cat conftest.s >&5
28615 rm -f conftest.o conftest.s
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28619 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28620 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28622 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28627 riscv*-*-*)
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28629 $as_echo_n "checking assembler for .attribute support... " >&6; }
28630 if ${gcc_cv_as_riscv_attribute+:} false; then :
28631 $as_echo_n "(cached) " >&6
28632 else
28633 gcc_cv_as_riscv_attribute=no
28634 if test x$gcc_cv_as != x; then
28635 $as_echo '.attribute stack_align,4' > conftest.s
28636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28641 test $ac_status = 0; }; }
28642 then
28643 gcc_cv_as_riscv_attribute=yes
28644 else
28645 echo "configure: failed program was" >&5
28646 cat conftest.s >&5
28648 rm -f conftest.o conftest.s
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28652 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28653 if test $gcc_cv_as_riscv_attribute = yes; then
28655 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28660 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28661 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28662 $as_echo_n "(cached) " >&6
28663 else
28664 gcc_cv_as_riscv_isa_spec=no
28665 if test x$gcc_cv_as != x; then
28666 $as_echo '' > conftest.s
28667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28669 (eval $ac_try) 2>&5
28670 ac_status=$?
28671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28672 test $ac_status = 0; }; }
28673 then
28674 gcc_cv_as_riscv_isa_spec=yes
28675 else
28676 echo "configure: failed program was" >&5
28677 cat conftest.s >&5
28679 rm -f conftest.o conftest.s
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28683 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28684 if test $gcc_cv_as_riscv_isa_spec = yes; then
28686 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28691 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28692 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28693 $as_echo_n "(cached) " >&6
28694 else
28695 gcc_cv_as_riscv_march_zifencei=no
28696 if test x$gcc_cv_as != x; then
28697 $as_echo '' > conftest.s
28698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28700 (eval $ac_try) 2>&5
28701 ac_status=$?
28702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28703 test $ac_status = 0; }; }
28704 then
28705 gcc_cv_as_riscv_march_zifencei=yes
28706 else
28707 echo "configure: failed program was" >&5
28708 cat conftest.s >&5
28710 rm -f conftest.o conftest.s
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28714 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28715 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28717 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28722 loongarch*-*-*)
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28724 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28725 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28726 $as_echo_n "(cached) " >&6
28727 else
28728 gcc_cv_as_loongarch_dtprelword=no
28729 if test x$gcc_cv_as != x; then
28730 $as_echo '' > conftest.s
28731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28736 test $ac_status = 0; }; }
28737 then
28738 .section .tdata,"awT",@progbits
28740 .word 2
28741 .text
28742 .dtprelword x+0x8000
28743 else
28744 echo "configure: failed program was" >&5
28745 cat conftest.s >&5
28747 rm -f conftest.o conftest.s
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28751 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28753 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28755 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28759 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28760 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28761 $as_echo_n "(cached) " >&6
28762 else
28763 gcc_cv_as_loongarch_explicit_relocs=no
28764 if test x$gcc_cv_as != x; then
28765 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28768 (eval $ac_try) 2>&5
28769 ac_status=$?
28770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28771 test $ac_status = 0; }; }
28772 then
28773 gcc_cv_as_loongarch_explicit_relocs=yes
28774 else
28775 echo "configure: failed program was" >&5
28776 cat conftest.s >&5
28778 rm -f conftest.o conftest.s
28781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28782 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28783 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28785 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28790 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28791 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28792 $as_echo_n "(cached) " >&6
28793 else
28794 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28795 if test x$gcc_cv_as != x; then
28796 $as_echo '.cfi_startproc
28797 .cfi_personality 0x9b,a
28798 .cfi_lsda 0x1b,b
28799 .cfi_endproc' > conftest.s
28800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28805 test $ac_status = 0; }; }
28806 then
28807 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28808 else
28809 echo "configure: failed program was" >&5
28810 cat conftest.s >&5
28812 rm -f conftest.o conftest.s
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28816 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28817 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28819 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28824 s390*-*-*)
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28826 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28827 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28828 $as_echo_n "(cached) " >&6
28829 else
28830 gcc_cv_as_s390_gnu_attribute=no
28831 if test x$gcc_cv_as != x; then
28832 $as_echo '.gnu_attribute 8,1' > conftest.s
28833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28835 (eval $ac_try) 2>&5
28836 ac_status=$?
28837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28838 test $ac_status = 0; }; }
28839 then
28840 gcc_cv_as_s390_gnu_attribute=yes
28841 else
28842 echo "configure: failed program was" >&5
28843 cat conftest.s >&5
28845 rm -f conftest.o conftest.s
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28849 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28850 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28852 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28857 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28858 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28859 $as_echo_n "(cached) " >&6
28860 else
28861 gcc_cv_as_s390_machine_machinemode=no
28862 if test x$gcc_cv_as != x; then
28863 $as_echo ' .machinemode push
28864 .machinemode pop
28865 .machine push
28866 .machine pop' > conftest.s
28867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28869 (eval $ac_try) 2>&5
28870 ac_status=$?
28871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28872 test $ac_status = 0; }; }
28873 then
28874 gcc_cv_as_s390_machine_machinemode=yes
28875 else
28876 echo "configure: failed program was" >&5
28877 cat conftest.s >&5
28879 rm -f conftest.o conftest.s
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28883 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28884 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28886 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28891 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28892 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28893 $as_echo_n "(cached) " >&6
28894 else
28895 gcc_cv_as_s390_architecture_modifiers=no
28896 if test x$gcc_cv_as != x; then
28897 $as_echo ' .machine z13+vx ' > conftest.s
28898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28903 test $ac_status = 0; }; }
28904 then
28905 gcc_cv_as_s390_architecture_modifiers=yes
28906 else
28907 echo "configure: failed program was" >&5
28908 cat conftest.s >&5
28910 rm -f conftest.o conftest.s
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28914 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28915 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28917 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28922 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28923 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
28924 $as_echo_n "(cached) " >&6
28925 else
28926 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
28927 if test x$gcc_cv_as != x; then
28928 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28931 (eval $ac_try) 2>&5
28932 ac_status=$?
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; }
28935 then
28936 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
28937 else
28938 echo "configure: failed program was" >&5
28939 cat conftest.s >&5
28941 rm -f conftest.o conftest.s
28944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28945 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28946 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28948 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
28953 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
28954 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
28955 $as_echo_n "(cached) " >&6
28956 else
28957 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
28958 if test x$gcc_cv_as != x; then
28959 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
28961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28962 (eval $ac_try) 2>&5
28963 ac_status=$?
28964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28965 test $ac_status = 0; }; }
28966 then
28967 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
28968 else
28969 echo "configure: failed program was" >&5
28970 cat conftest.s >&5
28972 rm -f conftest.o conftest.s
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
28976 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
28977 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
28979 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
28985 esac
28987 # Mips, LoongArch and HP-UX need the GNU assembler.
28988 # Linux on IA64 might be able to use the Intel assembler.
28990 case "$target" in
28991 mips*-*-* | loongarch*-*-* | *-*-hpux* )
28992 if test x$gas_flag = xyes \
28993 || test x"$host" != x"$build" \
28994 || test ! -x "$gcc_cv_as" \
28995 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
28997 else
28998 echo "*** This configuration requires the GNU assembler" >&2
28999 exit 1
29002 esac
29004 # AMD GCN needs the LLVM assembler and linker.
29005 # Test that LLVM is at least 13.0.1.
29006 case "$target" in
29007 amdgcn-* | gcn-*)
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29009 $as_echo_n "checking llvm assembler version... " >&6; }
29010 gcc_cv_as_version="unknown"
29011 if test x$gcc_cv_as != x; then
29012 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29013 case "$gcc_cv_as_version" in
29014 13.0.[1-9]*) ;; # 13.0.1+
29015 13.[1-9]*) ;; # 13.1+
29016 1[4-9]*) ;; # 14..19
29017 [2-9][0-9]*) ;; # 20..99
29018 [1-9][0-9][0-9]*) ;; # 100+
29019 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29020 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29021 esac
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29024 $as_echo "$gcc_cv_as_version, ok" >&6; }
29026 esac
29028 case "$target" in
29029 arm*)
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29031 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29032 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29033 $as_echo_n "(cached) " >&6
29034 else
29035 gcc_cv_as_arm_option_extensions=no
29036 if test x$gcc_cv_as != x; then
29037 $as_echo '.text
29038 .thumb
29039 .syntax unified
29040 vmov.f32 s0, s1' > conftest.s
29041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29046 test $ac_status = 0; }; }
29047 then
29048 gcc_cv_as_arm_option_extensions=yes
29049 else
29050 echo "configure: failed program was" >&5
29051 cat conftest.s >&5
29053 rm -f conftest.o conftest.s
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29057 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29058 if test $gcc_cv_as_arm_option_extensions = yes; then
29060 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29064 esac
29066 # ??? Not all targets support dwarf2 debug_line, even within a version
29067 # of gas. Moreover, we need to emit a valid instruction to trigger any
29068 # info to the output file. So, as supported targets are added to gas 2.11,
29069 # add some instruction here to (also) show we expect this might work.
29070 # ??? Once 2.11 is released, probably need to add first known working
29071 # version to the per-target configury.
29072 case "$cpu_type" in
29073 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29074 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29075 | visium | xstormy16 | xtensa)
29076 insn="nop"
29078 ia64 | s390)
29079 insn="nop 0"
29081 mmix)
29082 insn="swym 0"
29084 esac
29085 if test x"$insn" != x; then
29086 conftest_s="\
29087 .file 1 \"conftest.s\"
29088 .loc 1 3 0
29089 $insn"
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29091 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29092 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29093 $as_echo_n "(cached) " >&6
29094 else
29095 gcc_cv_as_dwarf2_debug_line=no
29096 if test x$gcc_cv_as != x; then
29097 $as_echo "$conftest_s" > conftest.s
29098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; }
29104 then
29105 if test x$gcc_cv_objdump != x \
29106 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29107 | grep debug_line > /dev/null 2>&1; then
29108 gcc_cv_as_dwarf2_debug_line=yes
29109 elif test x$gcc_cv_otool != x \
29110 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29111 | grep debug_line > /dev/null 2>&1; then
29112 gcc_cv_as_dwarf2_debug_line=yes
29114 else
29115 echo "configure: failed program was" >&5
29116 cat conftest.s >&5
29118 rm -f conftest.o conftest.s
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29122 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29126 # The .debug_line file table must be in the exact order that
29127 # we specified the files, since these indices are also used
29128 # by DW_AT_decl_file. Approximate this test by testing if
29129 # the assembler bitches if the same index is assigned twice.
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29131 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29132 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29133 $as_echo_n "(cached) " >&6
29134 else
29135 gcc_cv_as_dwarf2_file_buggy=no
29136 if test x$gcc_cv_as != x; then
29137 $as_echo ' .file 1 "foo.s"
29138 .file 1 "bar.s"' > conftest.s
29139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29141 (eval $ac_try) 2>&5
29142 ac_status=$?
29143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29144 test $ac_status = 0; }; }
29145 then
29146 gcc_cv_as_dwarf2_file_buggy=yes
29147 else
29148 echo "configure: failed program was" >&5
29149 cat conftest.s >&5
29151 rm -f conftest.o conftest.s
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29155 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29159 if test $gcc_cv_as_dwarf2_debug_line = yes \
29160 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29162 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29165 if test $gcc_cv_as_leb128 = yes; then
29166 conftest_s="\
29167 .file 1 \"conftest.s\"
29168 .loc 1 3 0 view .LVU1
29169 $insn
29170 .data
29171 .uleb128 .LVU1
29172 .uleb128 .LVU1
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29175 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29176 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29177 $as_echo_n "(cached) " >&6
29178 else
29179 gcc_cv_as_dwarf2_debug_view=no
29180 if test x$gcc_cv_as != x; then
29181 $as_echo "$conftest_s" > conftest.s
29182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29187 test $ac_status = 0; }; }
29188 then
29189 gcc_cv_as_dwarf2_debug_view=yes
29190 else
29191 echo "configure: failed program was" >&5
29192 cat conftest.s >&5
29194 rm -f conftest.o conftest.s
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29198 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29199 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29201 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29209 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29210 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29211 $as_echo_n "(cached) " >&6
29212 else
29213 gcc_cv_as_gdwarf2_flag=no
29214 if test x$gcc_cv_as != x; then
29215 $as_echo "$insn" > conftest.s
29216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29221 test $ac_status = 0; }; }
29222 then
29223 gcc_cv_as_gdwarf2_flag=yes
29224 else
29225 echo "configure: failed program was" >&5
29226 cat conftest.s >&5
29228 rm -f conftest.o conftest.s
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29232 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29233 if test $gcc_cv_as_gdwarf2_flag = yes; then
29235 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29241 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29242 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29243 $as_echo_n "(cached) " >&6
29244 else
29245 gcc_cv_as_gdwarf_5_flag=no
29246 if test x$gcc_cv_as != x; then
29247 $as_echo "$insn" > conftest.s
29248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29250 (eval $ac_try) 2>&5
29251 ac_status=$?
29252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29253 test $ac_status = 0; }; }
29254 then
29255 if test x$gcc_cv_objdump != x \
29256 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29257 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29258 gcc_cv_as_gdwarf_5_flag=yes;
29260 else
29261 echo "configure: failed program was" >&5
29262 cat conftest.s >&5
29264 rm -f conftest.o conftest.s
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29268 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29269 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29271 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29276 case $target_os in
29277 win32 | pe | cygwin* | mingw32*)
29278 section_flags=\"dr\"
29279 function_type=".def foo; .scl 2; .type 32; .endef"
29280 function_size="";;
29282 section_flags=\"\",%progbits
29283 function_type=".type foo, %function"
29284 function_size=".size foo, .-foo";;
29285 esac
29286 dwarf4_debug_info_size=0x46
29287 dwarf4_high_pc_form=7
29288 dwarf4_debug_aranges_size=0x2c
29289 dwarf4_line_sz=9
29290 for dwarf4_addr_size in 8 4; do
29291 conftest_s="\
29292 .file \"a.c\"
29293 .text
29294 .Ltext0:
29295 .p2align 4
29296 .globl foo
29297 $function_type
29298 foo:
29299 .LFB0:
29300 .LM1:
29301 $insn
29302 .LM2:
29303 .LFE0:
29304 $function_size
29305 .Letext0:
29306 .section .debug_info,$section_flags
29307 .Ldebug_info0:
29308 .4byte $dwarf4_debug_info_size
29309 .2byte 0x4
29310 .4byte .Ldebug_abbrev0
29311 .byte 0x$dwarf4_addr_size
29312 .byte 0x1
29313 .ascii \"GNU C17\\0\"
29314 .byte 0xc
29315 .ascii \"a.c\\0\"
29316 .ascii \"/\\0\"
29317 .${dwarf4_addr_size}byte .Ltext0
29318 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29319 .4byte .Ldebug_line0
29320 .byte 0x2
29321 .ascii \"foo\\0\"
29322 .byte 0x1
29323 .byte 0x2
29324 .byte 0x1
29325 .${dwarf4_addr_size}byte .LFB0
29326 .${dwarf4_addr_size}byte .LFE0-.LFB0
29327 .byte 0x1
29328 .byte 0x9c
29329 .byte 0
29330 .section .debug_abbrev,$section_flags
29331 .Ldebug_abbrev0:
29332 .byte 0x1
29333 .byte 0x11
29334 .byte 0x1
29335 .byte 0x25
29336 .byte 0x8
29337 .byte 0x13
29338 .byte 0xb
29339 .byte 0x3
29340 .byte 0x8
29341 .byte 0x1b
29342 .byte 0x8
29343 .byte 0x11
29344 .byte 0x1
29345 .byte 0x12
29346 .byte 0x$dwarf4_high_pc_form
29347 .byte 0x10
29348 .byte 0x17
29349 .byte 0
29350 .byte 0
29351 .byte 0x2
29352 .byte 0x2e
29353 .byte 0
29354 .byte 0x3f
29355 .byte 0x19
29356 .byte 0x3
29357 .byte 0x8
29358 .byte 0x3a
29359 .byte 0xb
29360 .byte 0x3b
29361 .byte 0xb
29362 .byte 0x39
29363 .byte 0xb
29364 .byte 0x11
29365 .byte 0x1
29366 .byte 0x12
29367 .byte 0x$dwarf4_high_pc_form
29368 .byte 0x40
29369 .byte 0x18
29370 .byte 0
29371 .byte 0
29372 .byte 0
29373 .section .debug_aranges,$section_flags
29374 .4byte $dwarf4_debug_aranges_size
29375 .2byte 0x2
29376 .4byte .Ldebug_info0
29377 .byte 0x8
29378 .byte 0
29379 .2byte 0
29380 .2byte 0
29381 .${dwarf4_addr_size}byte .Ltext0
29382 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29383 .${dwarf4_addr_size}byte 0
29384 .${dwarf4_addr_size}byte 0
29385 .section .debug_line,$section_flags
29386 .Ldebug_line0:
29387 .4byte .LELT0-.LSLT0
29388 .LSLT0:
29389 .2byte 0x4
29390 .4byte .LELTP0-.LASLTP0
29391 .LASLTP0:
29392 .byte 0x1
29393 .byte 0x1
29394 .byte 0x1
29395 .byte 0xf6
29396 .byte 0xf2
29397 .byte 0xd
29398 .byte 0
29399 .byte 0x1
29400 .byte 0x1
29401 .byte 0x1
29402 .byte 0x1
29403 .byte 0
29404 .byte 0
29405 .byte 0
29406 .byte 0x1
29407 .byte 0
29408 .byte 0
29409 .byte 0x1
29410 .byte 0
29411 .ascii \"a.c\\0\"
29412 .byte 0
29413 .byte 0
29414 .byte 0
29415 .byte 0
29416 .LELTP0:
29417 .byte 0
29418 .byte 0x$dwarf4_line_sz
29419 .byte 0x2
29420 .${dwarf4_addr_size}byte .LM1
29421 .byte 0x18
29422 .byte 0x5
29423 .byte 0x1
29424 .byte 0
29425 .byte 0x$dwarf4_line_sz
29426 .byte 0x2
29427 .${dwarf4_addr_size}byte .LM2
29428 .byte 0x1
29429 .byte 0x5
29430 .byte 0x1
29431 .byte 0
29432 .byte 0x$dwarf4_line_sz
29433 .byte 0x2
29434 .${dwarf4_addr_size}byte .Letext0
29435 .byte 0
29436 .byte 0x1
29437 .byte 0x1
29438 .LELT0:
29439 .section .debug_str,$section_flags
29440 .ident \"GCC\"
29442 dwarf4_success=no
29443 if test $dwarf4_addr_size = 4; then
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29445 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29446 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29447 $as_echo_n "(cached) " >&6
29448 else
29449 gcc_cv_as_debug_line_32_flag=no
29450 if test x$gcc_cv_as != x; then
29451 $as_echo "$conftest_s" > conftest.s
29452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29454 (eval $ac_try) 2>&5
29455 ac_status=$?
29456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29457 test $ac_status = 0; }; }
29458 then
29459 gcc_cv_as_debug_line_32_flag=yes
29460 else
29461 echo "configure: failed program was" >&5
29462 cat conftest.s >&5
29464 rm -f conftest.o conftest.s
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29468 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29469 if test $gcc_cv_as_debug_line_32_flag = yes; then
29470 dwarf4_success=yes
29473 else
29474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29475 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29476 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29477 $as_echo_n "(cached) " >&6
29478 else
29479 gcc_cv_as_debug_line_64_flag=no
29480 if test x$gcc_cv_as != x; then
29481 $as_echo "$conftest_s" > conftest.s
29482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29487 test $ac_status = 0; }; }
29488 then
29489 gcc_cv_as_debug_line_64_flag=yes
29490 else
29491 echo "configure: failed program was" >&5
29492 cat conftest.s >&5
29494 rm -f conftest.o conftest.s
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29498 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29499 if test $gcc_cv_as_debug_line_64_flag = yes; then
29500 dwarf4_success=yes
29504 if test $dwarf4_success = yes; then
29505 dwarf4_success=no
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29507 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29508 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29509 $as_echo_n "(cached) " >&6
29510 else
29511 gcc_cv_as_dwarf_4_debug_line_flag=no
29512 if test x$gcc_cv_as != x; then
29513 $as_echo "$conftest_s" > conftest.s
29514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29516 (eval $ac_try) 2>&5
29517 ac_status=$?
29518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29519 test $ac_status = 0; }; }
29520 then
29521 gcc_cv_as_dwarf_4_debug_line_flag=yes
29522 else
29523 echo "configure: failed program was" >&5
29524 cat conftest.s >&5
29526 rm -f conftest.o conftest.s
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29530 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29531 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29532 dwarf4_success=yes
29535 break
29537 dwarf4_debug_info_size=0x36
29538 dwarf4_high_pc_form=6
29539 dwarf4_debug_aranges_size=0x1c
29540 dwarf4_line_sz=5
29541 done
29543 if test $dwarf4_success = yes; then
29544 conftest_s="\
29545 .file \"foo.c\"
29546 .text
29547 bar:
29548 #APP
29549 # 82 \"xxx.h\" 1
29550 $insn
29551 # 0 \"\" 2
29552 #NO_APP
29553 $insn
29554 foo:
29555 .file 1 \"foo.c\"
29556 $insn
29557 .file 2 \"foo.h\"
29560 dwarf4_success=no
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29562 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29563 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29564 $as_echo_n "(cached) " >&6
29565 else
29566 gcc_cv_as_dwarf_4_app_flag=no
29567 if test x$gcc_cv_as != x; then
29568 $as_echo "$conftest_s" > conftest.s
29569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29571 (eval $ac_try) 2>&5
29572 ac_status=$?
29573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29574 test $ac_status = 0; }; }
29575 then
29576 gcc_cv_as_dwarf_4_app_flag=yes
29577 else
29578 echo "configure: failed program was" >&5
29579 cat conftest.s >&5
29581 rm -f conftest.o conftest.s
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29585 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29586 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29587 dwarf4_success=yes
29592 if test $dwarf4_success = yes; then
29593 conftest_s="\
29594 .text
29595 .globl foo
29596 $function_type
29597 foo:
29598 $insn
29599 $function_size
29600 .file 1 \"foo.c\"
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29603 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29604 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29605 $as_echo_n "(cached) " >&6
29606 else
29607 gcc_cv_as_working_gdwarf_n_flag=no
29608 if test x$gcc_cv_as != x; then
29609 $as_echo "$conftest_s" > conftest.s
29610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29612 (eval $ac_try) 2>&5
29613 ac_status=$?
29614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29615 test $ac_status = 0; }; }
29616 then
29617 if test x$gcc_cv_objdump != x \
29618 && $gcc_cv_objdump -W conftest.o 2>&1 \
29619 | grep conftest.s > /dev/null 2>&1; then
29620 gcc_cv_as_working_gdwarf_n_flag=no
29621 else
29622 gcc_cv_as_working_gdwarf_n_flag=yes
29624 else
29625 echo "configure: failed program was" >&5
29626 cat conftest.s >&5
29628 rm -f conftest.o conftest.s
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29632 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29635 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29637 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29643 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29644 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29645 $as_echo_n "(cached) " >&6
29646 else
29647 gcc_cv_as_debug_prefix_map_flag=no
29648 if test x$gcc_cv_as != x; then
29649 $as_echo "$insn" > conftest.s
29650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29652 (eval $ac_try) 2>&5
29653 ac_status=$?
29654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29655 test $ac_status = 0; }; }
29656 then
29657 gcc_cv_as_debug_prefix_map_flag=yes
29658 else
29659 echo "configure: failed program was" >&5
29660 cat conftest.s >&5
29662 rm -f conftest.o conftest.s
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29666 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29667 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29669 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29676 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29677 if ${gcc_cv_as_compress_debug+:} false; then :
29678 $as_echo_n "(cached) " >&6
29679 else
29680 gcc_cv_as_compress_debug=no
29681 if test x$gcc_cv_as != x; then
29682 $as_echo '' > conftest.s
29683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29685 (eval $ac_try) 2>&5
29686 ac_status=$?
29687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29688 test $ac_status = 0; }; }
29689 then
29690 # gas compiled without zlib cannot compress debug sections and warns
29691 # about it, but still exits successfully. So check for this, too.
29692 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29693 then
29694 gcc_cv_as_compress_debug=0
29695 # Since binutils 2.26, gas supports --compress-debug-sections=type,
29696 # defaulting to the ELF gABI format.
29697 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
29698 then
29699 gcc_cv_as_compress_debug=2
29700 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29701 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29702 # Before binutils 2.26, gas only supported --compress-debug-options and
29703 # emitted the traditional GNU format.
29704 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
29705 then
29706 gcc_cv_as_compress_debug=1
29707 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29708 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29709 else
29710 gcc_cv_as_compress_debug=0
29712 else
29713 echo "configure: failed program was" >&5
29714 cat conftest.s >&5
29716 rm -f conftest.o conftest.s
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29720 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29724 cat >>confdefs.h <<_ACEOF
29725 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29726 _ACEOF
29729 cat >>confdefs.h <<_ACEOF
29730 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29731 _ACEOF
29734 cat >>confdefs.h <<_ACEOF
29735 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29736 _ACEOF
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29740 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29741 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29742 $as_echo_n "(cached) " >&6
29743 else
29744 gcc_cv_as_lcomm_with_alignment=no
29745 if test x$gcc_cv_as != x; then
29746 $as_echo '.lcomm bar,4,16' > conftest.s
29747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29749 (eval $ac_try) 2>&5
29750 ac_status=$?
29751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29752 test $ac_status = 0; }; }
29753 then
29754 gcc_cv_as_lcomm_with_alignment=yes
29755 else
29756 echo "configure: failed program was" >&5
29757 cat conftest.s >&5
29759 rm -f conftest.o conftest.s
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29763 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29764 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29766 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29771 if test x$with_sysroot = x && test x$host = x$target \
29772 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29773 && test "$prefix" != "NONE"; then
29775 cat >>confdefs.h <<_ACEOF
29776 #define PREFIX_INCLUDE_DIR "$prefix/include"
29777 _ACEOF
29781 # Determine the version of glibc, if any, used on the target.
29782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29783 $as_echo_n "checking for target glibc version... " >&6; }
29785 # Check whether --with-glibc-version was given.
29786 if test "${with_glibc_version+set}" = set; then :
29787 withval=$with_glibc_version;
29788 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29789 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29790 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29791 else
29792 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29794 else
29796 glibc_version_major=0
29797 glibc_version_minor=0
29798 if test -f $target_header_dir/features.h \
29799 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29800 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29801 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29802 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29807 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29809 cat >>confdefs.h <<_ACEOF
29810 #define TARGET_GLIBC_MAJOR $glibc_version_major
29811 _ACEOF
29814 cat >>confdefs.h <<_ACEOF
29815 #define TARGET_GLIBC_MINOR $glibc_version_minor
29816 _ACEOF
29819 # Check whether --enable-gnu-unique-object was given.
29820 if test "${enable_gnu_unique_object+set}" = set; then :
29821 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29822 yes | no) ;;
29823 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29824 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29825 esac
29826 else
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29828 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29829 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29830 $as_echo_n "(cached) " >&6
29831 else
29832 gcc_cv_as_gnu_unique_object=no
29833 if test x$gcc_cv_as != x; then
29834 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29837 (eval $ac_try) 2>&5
29838 ac_status=$?
29839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29840 test $ac_status = 0; }; }
29841 then
29842 gcc_cv_as_gnu_unique_object=yes
29843 else
29844 echo "configure: failed program was" >&5
29845 cat conftest.s >&5
29847 rm -f conftest.o conftest.s
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29851 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29852 if test $gcc_cv_as_gnu_unique_object = yes; then
29853 # We need to unquote above to to use the definition from config.gcc.
29854 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29856 if test $glibc_version_major -gt 2 \
29857 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29858 enable_gnu_unique_object=yes
29865 if test x$enable_gnu_unique_object = xyes; then
29867 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29872 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29873 if ${gcc_cv_as_line_zero+:} false; then :
29874 $as_echo_n "(cached) " >&6
29875 else
29876 gcc_cv_as_line_zero=no
29877 if test "x$gcc_cv_as" != x; then
29878 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29879 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29884 test $ac_status = 0; }; } &&
29885 test "x`cat conftest.out`" = x
29886 then
29887 gcc_cv_as_line_zero=yes
29888 else
29889 echo "configure: failed program was" >&5
29890 cat conftest.s >&5
29891 echo "configure: error output was" >&5
29892 cat conftest.out >&5
29894 rm -f conftest.o conftest.s conftest.out
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29898 $as_echo "$gcc_cv_as_line_zero" >&6; }
29899 if test "x$gcc_cv_as_line_zero" = xyes; then
29901 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29906 $as_echo_n "checking support for thin archives... " >&6; }
29907 thin_archive_support=no
29908 echo 'int main (void) { return 0; }' > conftest.c
29909 if ($AR --version | sed 1q | grep "GNU ar" \
29910 && $CC $CFLAGS -c conftest.c \
29911 && $AR rcT conftest.a conftest.o \
29912 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29913 thin_archive_support=yes
29915 rm -f conftest.c conftest.o conftest.a conftest
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29917 $as_echo "$thin_archive_support" >&6; }
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29921 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29922 gcc_cv_ld_eh_frame_hdr=no
29923 if test $in_tree_ld = yes ; then
29924 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 \
29925 && test $in_tree_ld_is_elf = yes; then
29926 gcc_cv_ld_eh_frame_hdr=yes
29928 elif test x$gcc_cv_ld != x; then
29929 if echo "$ld_ver" | grep GNU > /dev/null; then
29930 # Check if linker supports --eh-frame-hdr option
29931 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
29932 gcc_cv_ld_eh_frame_hdr=yes
29934 else
29935 case "$target" in
29936 *-*-solaris2*)
29937 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
29938 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
29939 gcc_cv_ld_eh_frame_hdr=yes
29942 esac
29946 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
29948 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
29952 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
29955 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
29956 gcc_cv_ld_eh_frame_ciev3=no
29957 if test $in_tree_ld = yes ; then
29958 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 \
29959 && test $in_tree_ld_is_elf = yes; then
29960 gcc_cv_ld_eh_frame_ciev3=yes
29962 elif test x$gcc_cv_ld != x; then
29963 if echo "$ld_ver" | grep GNU > /dev/null; then
29964 gcc_cv_ld_eh_frame_ciev3=yes
29965 if test 0"$ld_date" -lt 20040513; then
29966 if test -n "$ld_date"; then
29967 # If there was date string, but was earlier than 2004-05-13, fail
29968 gcc_cv_ld_eh_frame_ciev3=no
29969 elif test "$ld_vers_major" -lt 2; then
29970 gcc_cv_ld_eh_frame_ciev3=no
29971 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
29972 gcc_cv_ld_eh_frame_ciev3=no
29975 else
29976 case "$target" in
29977 *-*-solaris2*)
29978 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
29979 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
29980 gcc_cv_ld_eh_frame_ciev3=yes
29983 esac
29987 cat >>confdefs.h <<_ACEOF
29988 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
29989 _ACEOF
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
29992 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
29995 $as_echo_n "checking linker position independent executable support... " >&6; }
29996 gcc_cv_ld_pie=no
29997 if test $in_tree_ld = yes ; then
29998 case "$target" in
29999 # Full PIE support on Solaris was only introduced in gld 2.26.
30000 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30001 *) gcc_gld_pie_min_version=15 ;;
30002 esac
30003 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 \
30004 && test $in_tree_ld_is_elf = yes; then
30005 gcc_cv_ld_pie=yes
30007 elif test x$gcc_cv_ld != x; then
30008 # Check if linker supports -pie option
30009 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30010 gcc_cv_ld_pie=yes
30011 case "$target" in
30012 *-*-solaris2*)
30013 if echo "$ld_ver" | grep GNU > /dev/null \
30014 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30015 gcc_cv_ld_pie=no
30018 esac
30019 else
30020 case "$target" in
30021 *-*-solaris2.1[1-9]*)
30022 # Solaris 11.3 added PIE support.
30023 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30024 gcc_cv_ld_pie=yes
30027 esac
30030 if test x"$gcc_cv_ld_pie" = xyes; then
30032 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30036 $as_echo "$gcc_cv_ld_pie" >&6; }
30038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30039 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30040 gcc_cv_ld_pie_copyreloc=no
30041 if test $gcc_cv_ld_pie = yes ; then
30042 if test $in_tree_ld = yes ; then
30043 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
30044 gcc_cv_ld_pie_copyreloc=yes
30046 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30047 # Check if linker supports -pie option with copy reloc
30048 case "$target" in
30049 i?86-*-linux* | x86_64-*-linux*)
30050 cat > conftest1.s <<EOF
30051 .globl a_glob
30052 .data
30053 .type a_glob, @object
30054 .size a_glob, 4
30055 a_glob:
30056 .long 2
30058 cat > conftest2.s <<EOF
30059 .text
30060 .globl main
30061 .type main, @function
30062 main:
30063 movl %eax, a_glob(%rip)
30064 .size main, .-main
30065 .globl ptr
30066 .section .data.rel,"aw",@progbits
30067 .type ptr, @object
30068 ptr:
30069 .quad a_glob
30071 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30072 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30073 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30074 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30075 gcc_cv_ld_pie_copyreloc=yes
30077 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30079 esac
30083 cat >>confdefs.h <<_ACEOF
30084 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30085 _ACEOF
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30088 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30091 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30092 gcc_cv_ld_eh_gc_sections=no
30093 if test $in_tree_ld = yes ; then
30094 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 \
30095 && test $in_tree_ld_is_elf = yes; then
30096 gcc_cv_ld_eh_gc_sections=yes
30098 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30099 cat > conftest.s <<EOF
30100 .section .text
30101 .globl _start
30102 .type _start, @function
30103 _start:
30104 .long foo
30105 .size _start, .-_start
30106 .section .text.foo,"ax",@progbits
30107 .type foo, @function
30108 foo:
30109 .long 0
30110 .size foo, .-foo
30111 .section .gcc_except_table.foo,"a",@progbits
30112 .L0:
30113 .long 0
30114 .section .eh_frame,"a",@progbits
30115 .long .L0
30117 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30118 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30119 | grep "gc-sections option ignored" > /dev/null; then
30120 gcc_cv_ld_eh_gc_sections=no
30121 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30122 | grep gcc_except_table > /dev/null; then
30123 gcc_cv_ld_eh_gc_sections=yes
30124 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30125 if test x$gcc_cv_as_comdat_group != xyes; then
30126 gcc_cv_ld_eh_gc_sections=no
30127 cat > conftest.s <<EOF
30128 .section .text
30129 .globl _start
30130 .type _start, @function
30131 _start:
30132 .long foo
30133 .size _start, .-_start
30134 .section .gnu.linkonce.t.foo,"ax",@progbits
30135 .type foo, @function
30136 foo:
30137 .long 0
30138 .size foo, .-foo
30139 .section .gcc_except_table.foo,"a",@progbits
30140 .L0:
30141 .long 0
30142 .section .eh_frame,"a",@progbits
30143 .long .L0
30145 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30146 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30147 | grep "gc-sections option ignored" > /dev/null; then
30148 gcc_cv_ld_eh_gc_sections=no
30149 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30150 | grep gcc_except_table > /dev/null; then
30151 gcc_cv_ld_eh_gc_sections=yes
30157 rm -f conftest.s conftest.o conftest
30159 case "$target" in
30160 hppa*-*-linux*)
30161 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30162 gcc_cv_ld_eh_gc_sections=no
30164 esac
30165 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30167 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30171 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30174 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30175 gcc_cv_ld_eh_gc_sections_bug=no
30176 if test $in_tree_ld = yes ; then
30177 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 \
30178 && test $in_tree_ld_is_elf = yes; then
30179 gcc_cv_ld_eh_gc_sections_bug=yes
30181 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
30182 gcc_cv_ld_eh_gc_sections_bug=yes
30183 cat > conftest.s <<EOF
30184 .section .text
30185 .globl _start
30186 .type _start, @function
30187 _start:
30188 .long foo
30189 .size _start, .-_start
30190 .section .text.startup.foo,"ax",@progbits
30191 .type foo, @function
30192 foo:
30193 .long 0
30194 .size foo, .-foo
30195 .section .gcc_except_table.foo,"a",@progbits
30196 .L0:
30197 .long 0
30198 .section .eh_frame,"a",@progbits
30199 .long .L0
30201 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30202 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30203 | grep "gc-sections option ignored" > /dev/null; then
30205 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30206 | grep gcc_except_table > /dev/null; then
30207 gcc_cv_ld_eh_gc_sections_bug=no
30210 rm -f conftest.s conftest.o conftest
30212 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30214 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30218 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30221 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30222 # gold/gld support compressed debug sections since binutils 2.19/2.21
30223 # In binutils 2.26, gld gained support for the ELF gABI format.
30224 if test $in_tree_ld = yes ; then
30225 gcc_cv_ld_compress_debug=0
30226 if test $ld_is_mold = yes; then
30227 gcc_cv_ld_compress_debug=3
30228 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30229 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
30230 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
30231 gcc_cv_ld_compress_debug=2
30232 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30233 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
30234 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
30235 gcc_cv_ld_compress_debug=3
30236 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30237 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
30238 && test $in_tree_ld_is_elf = yes; then
30239 gcc_cv_ld_compress_debug=1
30241 elif echo "$ld_ver" | grep GNU > /dev/null; then
30242 if test $ld_is_mold = yes; then
30243 gcc_cv_ld_compress_debug=3
30244 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30245 elif test "$ld_vers_major" -lt 2 \
30246 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
30247 gcc_cv_ld_compress_debug=0
30248 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30249 gcc_cv_ld_compress_debug=1
30250 else
30251 gcc_cv_ld_compress_debug=3
30252 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30254 if test $ld_is_gold = yes; then
30255 gcc_cv_ld_compress_debug=2
30256 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30258 else
30259 case "${target}" in
30260 *-*-solaris2*)
30261 # Introduced in Solaris 11.2.
30262 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30263 gcc_cv_ld_compress_debug=3
30264 gcc_cv_ld_compress_debug_option="-z compress-sections"
30265 else
30266 gcc_cv_ld_compress_debug=0
30270 # Assume linkers other than GNU ld don't support compessed debug
30271 # sections.
30272 gcc_cv_ld_compress_debug=0
30274 esac
30277 cat >>confdefs.h <<_ACEOF
30278 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30279 _ACEOF
30282 cat >>confdefs.h <<_ACEOF
30283 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30284 _ACEOF
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30287 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30289 if test x"$ld64_flag" = x"yes"; then
30291 # Set defaults for possibly untestable items.
30292 gcc_cv_ld64_export_dynamic=0
30293 gcc_cv_ld64_platform_version=0
30295 if test "$build" = "$host"; then
30296 darwin_try_test=1
30297 else
30298 darwin_try_test=0
30301 # On Darwin, because of FAT library support, it is often possible to execute
30302 # exes from compatible archs even when the host differs from the build system.
30303 case "$build","$host" in
30304 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30305 darwin_try_test=1;;
30306 *) ;;
30307 esac
30309 # If the configurer specified a minimum ld64 version to be supported, then use
30310 # that to determine feature support.
30311 if test x"${gcc_cv_ld64_version}" != x; then
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30313 $as_echo_n "checking ld64 specified version... " >&6; }
30314 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30316 $as_echo "$gcc_cv_ld64_major" >&6; }
30317 if test "$gcc_cv_ld64_major" -ge 236; then
30318 gcc_cv_ld64_export_dynamic=1
30320 if test "$gcc_cv_ld64_major" -ge 512; then
30321 gcc_cv_ld64_platform_version=1
30323 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30324 # If the version was not specified, try to find it.
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30326 $as_echo_n "checking linker version... " >&6; }
30327 if test x"${gcc_cv_ld64_version}" = x; then
30328 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30331 $as_echo "$gcc_cv_ld64_version" >&6; }
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30334 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30335 gcc_cv_ld64_export_dynamic=1
30336 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30337 gcc_cv_ld64_export_dynamic=0
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30340 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30343 $as_echo_n "checking linker for -platform_version support... " >&6; }
30344 gcc_cv_ld64_platform_version=1
30345 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30346 gcc_cv_ld64_platform_version=0
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30349 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30352 if test x"${gcc_cv_ld64_version}" != x; then
30354 cat >>confdefs.h <<_ACEOF
30355 #define LD64_VERSION "${gcc_cv_ld64_version}"
30356 _ACEOF
30361 cat >>confdefs.h <<_ACEOF
30362 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30363 _ACEOF
30367 cat >>confdefs.h <<_ACEOF
30368 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30369 _ACEOF
30373 if test x"$dsymutil_flag" = x"yes"; then
30375 # If the user specified a dsymutil path, then we will already have the
30376 # version string, otherwise, pick it up.
30377 if test x"$gcc_cv_dsymutil" = x; then
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30379 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30380 dsymutil_vers="tool unspecified"
30381 elif test x"$dsymutil_vers" = x; then
30382 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30385 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30387 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30388 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30389 dsymutil_kind=DWARFUTILS
30390 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30391 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30392 dsymutil_kind=CLANG
30393 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30394 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30395 dsymutil_kind=LLVM
30396 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30397 else
30398 dsymutil_kind=UNKNOWN
30399 dsymutil_vers="0.0"
30401 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30402 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30403 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30404 if test x"${dsymutil_minor}" = x; then
30405 dsymutil_minor=0
30407 if test x"${dsymutil_tiny}" = x; then
30408 dsymutil_tiny=0
30411 cat >>confdefs.h <<_ACEOF
30412 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30413 _ACEOF
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30416 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30419 case $target_os in
30420 win32 | pe | cygwin* | mingw32*)
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30422 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30423 gcc_cv_ld_broken_pe_dwarf5=yes
30424 if test $in_tree_ld = yes ; then
30425 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30426 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30427 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30428 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30429 gcc_cv_ld_broken_pe_dwarf5=no
30431 else
30432 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30433 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30434 gcc_cv_ld_broken_pe_dwarf5=no
30437 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30439 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30443 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30446 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30447 gcc_cv_ld_disable_dynamicbase=no
30448 if test $in_tree_ld = yes; then
30449 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 \
30450 gcc_cv_ld_disable_dynamicbase=yes
30452 else
30453 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30454 gcc_cv_ld_disable_dynamicbase=yes
30457 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30459 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30463 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30465 esac
30467 # --------
30468 # UNSORTED
30469 # --------
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30472 $as_echo_n "checking linker --as-needed support... " >&6; }
30473 if ${gcc_cv_ld_as_needed+:} false; then :
30474 $as_echo_n "(cached) " >&6
30475 else
30476 gcc_cv_ld_as_needed=no
30477 gcc_cv_ld_as_needed_option='--as-needed'
30478 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30479 if test $in_tree_ld = yes ; then
30480 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 \
30481 && test $in_tree_ld_is_elf = yes; then
30482 gcc_cv_ld_as_needed=yes
30483 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30484 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30485 gcc_cv_ld_no_as_needed_option='--pop-state'
30488 elif test x$gcc_cv_ld != x; then
30489 # Check if linker supports --as-needed and --no-as-needed options
30490 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30491 gcc_cv_ld_as_needed=yes
30492 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30493 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30494 && echo "$ld_ver" | grep GNU > /dev/null \
30495 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30496 # Use these options only when both ld.bfd and ld.gold support
30497 # --push-state/--pop-state, which unfortunately wasn't added
30498 # at the same time.
30499 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30500 gcc_cv_ld_no_as_needed_option='--pop-state'
30503 case "$target:$gnu_ld" in
30504 *-*-solaris2*:no)
30505 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30506 # forms.
30507 gcc_cv_ld_as_needed=yes
30508 gcc_cv_ld_as_needed_option="-z ignore"
30509 gcc_cv_ld_no_as_needed_option="-z record"
30511 esac
30513 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30514 # dl_iterate_phdr, i.e. since Solaris 11.
30515 case "$target" in
30516 *-*-solaris2.1[1-9]*)
30517 case "$target" in
30518 i?86-*-* | x86_64-*-*)
30519 if echo "$ld_ver" | grep GNU > /dev/null; then
30520 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30521 gcc_cv_ld_as_needed=no
30524 esac
30526 *-*-solaris2*)
30527 gcc_cv_ld_as_needed=no
30529 esac
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30533 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30534 if test x"$gcc_cv_ld_as_needed" = xyes; then
30536 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30539 cat >>confdefs.h <<_ACEOF
30540 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30541 _ACEOF
30544 cat >>confdefs.h <<_ACEOF
30545 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30546 _ACEOF
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30551 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30552 saved_LDFLAGS="$LDFLAGS"
30553 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30554 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30556 /* end confdefs.h. */
30557 int main(void) {return 0;}
30558 _ACEOF
30559 if ac_fn_cxx_try_link "$LINENO"; then :
30560 gcc_cv_ld_clearcap=yes; break
30561 else
30562 gcc_cv_ld_clearcap=no
30564 rm -f core conftest.err conftest.$ac_objext \
30565 conftest$ac_exeext conftest.$ac_ext
30566 done
30567 LDFLAGS="$saved_LDFLAGS"
30568 if test "x$gcc_cv_ld_clearcap" = xyes; then
30570 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30572 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30576 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30578 case "$target" in
30579 powerpc*-*-*)
30580 case "$target" in
30581 *le-*-linux*)
30582 emul_name="-melf32lppc"
30585 emul_name="-melf32ppc"
30587 esac
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30589 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30590 if ${gcc_cv_ld_ppc_attr+:} false; then :
30591 $as_echo_n "(cached) " >&6
30592 else
30593 gcc_cv_ld_ppc_attr=no
30594 if test x"$ld_is_gold" = xyes; then
30595 gcc_cv_ld_ppc_attr=yes
30596 elif test $in_tree_ld = yes ; then
30597 if test "$gcc_cv_gld_major_version" -eq 2 \
30598 -a "$gcc_cv_gld_minor_version" -ge 28 \
30599 -o "$gcc_cv_gld_major_version" -gt 2; then
30600 gcc_cv_ld_ppc_attr=yes
30602 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30603 # check that merging the long double .gnu_attribute doesn't warn
30604 cat > conftest1.s <<EOF
30605 .gnu_attribute 4,1
30607 cat > conftest2.s <<EOF
30608 .gnu_attribute 4,9
30610 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30611 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30612 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30613 && test ! -s conftest.err; then
30614 gcc_cv_ld_ppc_attr=yes
30616 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30621 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30622 if test x$gcc_cv_ld_ppc_attr = xyes; then
30624 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30628 esac
30630 case "$target:$tm_file" in
30631 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30632 case "$target" in
30633 *le-*-linux*)
30634 emul_name="-melf64lppc"
30636 *-*-linux*)
30637 emul_name="-melf64ppc"
30639 *le-*-freebsd*)
30640 emul_name="-melf64lppc_fbsd"
30642 *-*-freebsd*)
30643 emul_name="-melf64ppc_fbsd"
30645 esac
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30647 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30648 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30649 $as_echo_n "(cached) " >&6
30650 else
30651 gcc_cv_ld_no_dot_syms=no
30652 if test x"$ld_is_gold" = xyes; then
30653 gcc_cv_ld_no_dot_syms=yes
30654 elif test $in_tree_ld = yes ; then
30655 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
30656 gcc_cv_ld_no_dot_syms=yes
30658 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30659 cat > conftest1.s <<EOF
30660 .text
30661 bl .foo
30663 cat > conftest2.s <<EOF
30664 .section ".opd","aw"
30665 .align 3
30666 .globl foo
30667 .type foo,@function
30668 foo:
30669 .quad .LEfoo,.TOC.@tocbase,0
30670 .text
30671 .LEfoo:
30673 .size foo,.-.LEfoo
30675 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30676 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30677 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30678 gcc_cv_ld_no_dot_syms=yes
30680 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30685 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30686 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30688 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30693 $as_echo_n "checking linker large toc support... " >&6; }
30694 if ${gcc_cv_ld_large_toc+:} false; then :
30695 $as_echo_n "(cached) " >&6
30696 else
30697 gcc_cv_ld_large_toc=no
30698 if test x"$ld_is_gold" = xyes; then
30699 gcc_cv_ld_large_toc=yes
30700 elif test $in_tree_ld = yes ; then
30701 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
30702 gcc_cv_ld_large_toc=yes
30704 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30705 cat > conftest.s <<EOF
30706 .section ".tbss","awT",@nobits
30707 .align 3
30708 ie0: .space 8
30709 .global _start
30710 .text
30711 _start:
30712 addis 9,13,ie0@got@tprel@ha
30713 ld 9,ie0@got@tprel@l(9)
30715 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30716 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30717 gcc_cv_ld_large_toc=yes
30719 rm -f conftest conftest.o conftest.s
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30724 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30725 if test x"$gcc_cv_ld_large_toc" = xyes; then
30727 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30732 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30733 if ${gcc_cv_ld_toc_align+:} false; then :
30734 $as_echo_n "(cached) " >&6
30735 else
30736 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30737 cat > conftest.s <<EOF
30738 .global _start
30739 .text
30740 _start:
30741 addis 9,2,x@got@ha
30742 .section .data.rel.ro,"aw",@progbits
30743 .p2align 16
30744 .space 32768
30745 x: .quad .TOC.
30747 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30748 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30749 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)) }'`
30751 rm -f conftest conftest.o conftest.s
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30756 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30757 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30759 cat >>confdefs.h <<_ACEOF
30760 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30761 _ACEOF
30765 esac
30767 case "$target" in
30768 *-*-aix*)
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30770 $as_echo_n "checking linker large toc support... " >&6; }
30771 if ${gcc_cv_ld_large_toc+:} false; then :
30772 $as_echo_n "(cached) " >&6
30773 else
30774 gcc_cv_ld_large_toc=no
30775 if test x$gcc_cv_as != x ; then
30776 cat > conftest.s <<EOF
30777 .toc
30778 LC..1:
30779 .tc a[TC],a[RW]
30780 .extern a[RW]
30781 .csect .text[PR]
30782 .largetoctest:
30783 addis 9,LC..1@u(2)
30784 ld 3,LC..1@l(9)
30786 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30787 gcc_cv_ld_large_toc=yes
30789 rm -f conftest conftest.o conftest.s
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30794 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30795 if test x"$gcc_cv_ld_large_toc" = xyes; then
30797 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30801 esac
30803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30804 $as_echo_n "checking linker --build-id support... " >&6; }
30805 if ${gcc_cv_ld_buildid+:} false; then :
30806 $as_echo_n "(cached) " >&6
30807 else
30808 gcc_cv_ld_buildid=no
30809 if test $in_tree_ld = yes ; then
30810 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30811 "$gcc_cv_gld_minor_version" -ge 18 -o \
30812 "$gcc_cv_gld_major_version" -gt 2 \
30813 && test $in_tree_ld_is_elf = yes; then
30814 gcc_cv_ld_buildid=yes
30816 elif test x$gcc_cv_ld != x; then
30817 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30818 gcc_cv_ld_buildid=yes
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30823 $as_echo "$gcc_cv_ld_buildid" >&6; }
30824 if test x"$gcc_cv_ld_buildid" = xyes; then
30826 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30830 # Check whether --enable-linker-build-id was given.
30831 if test "${enable_linker_build_id+set}" = set; then :
30832 enableval=$enable_linker_build_id;
30833 else
30834 enable_linker_build_id=no
30838 if test x"$enable_linker_build_id" = xyes; then
30839 if test x"$gcc_cv_ld_buildid" = xyes; then
30841 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30843 else
30844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30845 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30849 # In binutils 2.21, GNU ld gained support for new emulations fully
30850 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30852 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30853 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30854 $as_echo_n "(cached) " >&6
30855 else
30856 gcc_cv_ld_sol2_emulation=no
30857 if test $in_tree_ld = yes ; then
30858 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30859 "$gcc_cv_gld_minor_version" -ge 21 -o \
30860 "$gcc_cv_gld_major_version" -gt 2 \
30861 && test $in_tree_ld_is_elf = yes; then
30862 gcc_cv_ld_sol2_emulation=yes
30864 elif test x$gcc_cv_ld != x; then
30865 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30866 grep _sol2 > /dev/null; then
30867 gcc_cv_ld_sol2_emulation=yes
30871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30872 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30873 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30875 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30880 $as_echo_n "checking linker --sysroot support... " >&6; }
30881 if ${gcc_cv_ld_sysroot+:} false; then :
30882 $as_echo_n "(cached) " >&6
30883 else
30884 gcc_cv_ld_sysroot=no
30885 if test $in_tree_ld = yes ; then
30886 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
30887 gcc_cv_ld_sysroot=yes
30889 elif test x$gcc_cv_ld != x; then
30890 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30891 gcc_cv_ld_sysroot=yes
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30896 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30897 if test x"$gcc_cv_ld_sysroot" = xyes; then
30899 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30903 case $target in
30904 *-*-solaris2*)
30905 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30907 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30908 if ${gcc_cv_solaris_crts+:} false; then :
30909 $as_echo_n "(cached) " >&6
30910 else
30911 gcc_cv_solaris_crts=no
30912 if test x$host != x$target; then
30913 if test "x$with_sysroot" = xyes; then
30914 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30915 else
30916 target_sysroot="${with_sysroot}"
30919 target_libdir="$target_sysroot/usr/lib"
30920 # At the time they were added, gcrt1.o became a symlink for backwards
30921 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30922 case $target in
30923 i?86-*-solaris2* | x86_64-*-solaris2*)
30924 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30926 sparc*-*-solaris2*)
30927 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30929 esac
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30932 $as_echo "$gcc_cv_solaris_crts" >&6; }
30934 esac
30935 if test x$gcc_cv_solaris_crts = xyes; then
30937 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30941 # Check whether --enable-libssp was given.
30942 if test "${enable_libssp+set}" = set; then :
30943 enableval=$enable_libssp; case "${enableval}" in
30944 yes|no)
30947 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
30949 esac
30953 # Test for stack protector support in target C library.
30954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
30955 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
30956 if ${gcc_cv_libc_provides_ssp+:} false; then :
30957 $as_echo_n "(cached) " >&6
30958 else
30959 gcc_cv_libc_provides_ssp=no
30960 if test "x$enable_libssp" = "xno"; then
30961 gcc_cv_libc_provides_ssp=yes
30962 elif test "x$enable_libssp" = "xyes"; then
30963 gcc_cv_libc_provides_ssp=no
30964 else
30965 case "$target" in
30966 *-*-musl*)
30967 # All versions of musl provide stack protector
30968 gcc_cv_libc_provides_ssp=yes;;
30969 *-*-linux* | *-*-kfreebsd*-gnu)
30970 # glibc 2.4 and later provides __stack_chk_fail and
30971 # either __stack_chk_guard, or TLS access to stack guard canary.
30973 if test $glibc_version_major -gt 2 \
30974 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
30975 gcc_cv_libc_provides_ssp=yes
30976 else
30978 if test -f $target_header_dir/features.h \
30979 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
30980 $target_header_dir/features.h > /dev/null; then
30981 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
30982 $target_header_dir/features.h > /dev/null && \
30983 test -f $target_header_dir/bits/uClibc_config.h && \
30984 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
30985 $target_header_dir/bits/uClibc_config.h > /dev/null; then
30986 gcc_cv_libc_provides_ssp=yes
30988 # all versions of Bionic support stack protector
30989 elif test -f $target_header_dir/sys/cdefs.h \
30990 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
30991 $target_header_dir/sys/cdefs.h > /dev/null; then
30992 gcc_cv_libc_provides_ssp=yes
30996 *-*-gnu*)
30997 # Avoid complicated tests (see
30998 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
30999 # simply assert that glibc does provide this, which is true for all
31000 # realistically usable GNU/Hurd configurations.
31001 # All supported versions of musl provide it as well
31002 gcc_cv_libc_provides_ssp=yes;;
31003 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31004 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31005 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31006 gcc_cv_libc_provides_ssp=yes
31007 else
31008 echo "no __stack_chk_fail on this target"
31012 *) gcc_cv_libc_provides_ssp=no ;;
31013 esac
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31017 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31019 if test x$gcc_cv_libc_provides_ssp = xyes; then
31021 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31025 # Check whether --enable-default-ssp was given.
31026 # Check whether --enable-default-ssp was given.
31027 if test "${enable_default_ssp+set}" = set; then :
31028 enableval=$enable_default_ssp;
31029 if test x$gcc_cv_libc_provides_ssp = xyes; then
31030 case "$target" in
31031 ia64*-*-*) enable_default_ssp=no ;;
31032 *) enable_default_ssp=$enableval ;;
31033 esac
31034 else
31035 enable_default_ssp=no
31037 else
31038 enable_default_ssp=no
31041 if test x$enable_default_ssp = xyes ; then
31043 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31048 # Test for <sys/sdt.h> on the target.
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31051 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31052 have_sys_sdt_h=no
31053 if test -f $target_header_dir/sys/sdt.h; then
31054 have_sys_sdt_h=yes
31056 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31060 $as_echo "$have_sys_sdt_h" >&6; }
31062 # Check if TFmode long double should be used by default or not.
31063 # Some glibc targets used DFmode long double, but with glibc 2.4
31064 # and later they can use TFmode.
31065 case "$target" in
31066 powerpc*-*-linux* | \
31067 sparc*-*-linux* | \
31068 s390*-*-linux* | \
31069 alpha*-*-linux*)
31071 # Check whether --with-long-double-128 was given.
31072 if test "${with_long_double_128+set}" = set; then :
31073 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31074 else
31076 case "$target" in
31077 s390*-*-linux-musl*)
31078 gcc_cv_target_ldbl128=yes
31080 powerpc*-*-linux-musl*)
31081 gcc_cv_target_ldbl128=no
31085 if test $glibc_version_major -gt 2 \
31086 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31087 gcc_cv_target_ldbl128=yes
31088 else
31090 gcc_cv_target_ldbl128=no
31091 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31092 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31093 && gcc_cv_target_ldbl128=yes
31098 esac
31103 esac
31104 if test x$gcc_cv_target_ldbl128 = xyes; then
31106 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31110 # Check if TFmode long double target should use the IBM extended double or IEEE
31111 # 128-bit floating point formats if long doubles are 128-bits long. The long
31112 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31113 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31114 # libgcc.
31116 # Check whether --with-long-double-format was given.
31117 if test "${with_long_double_format+set}" = set; then :
31118 withval=$with_long_double_format;
31119 case "$target:$with_long_double_format" in
31120 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31123 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31124 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31125 case "$with_cpu" in
31126 power7 | power8 | power9 | power1*)
31130 as_fn_error $? "Configuration option --with-long-double-format is only \
31131 supported if the default cpu is power7 or newer" "$LINENO" 5
31132 with_long_double_format=""
31134 esac
31136 powerpc64*-*-linux*:*)
31137 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31138 with_long_double_format=""
31141 as_fn_error $? "Configure option --with-long-double-format is only supported \
31142 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31143 with_long_double_format=""
31145 esac
31149 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31150 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31151 gcc_cv_libc_provides_hwcap_in_tcb=no
31152 case "$target" in
31153 powerpc*-*-linux*)
31155 if test $glibc_version_major -gt 2 \
31156 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31157 gcc_cv_libc_provides_hwcap_in_tcb=yes
31160 esac
31161 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31163 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31167 # Check if the target LIBC handles PT_GNU_STACK.
31168 gcc_cv_libc_gnustack=unknown
31169 case "$target" in
31170 mips*-*-linux-musl*)
31171 gcc_cv_libc_gnustack=yes
31173 mips*-*-linux*)
31175 if test $glibc_version_major -gt 2 \
31176 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31177 gcc_cv_libc_gnustack=yes
31180 esac
31181 if test x$gcc_cv_libc_gnustack = xyes; then
31183 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31188 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31189 gcc_cv_target_dl_iterate_phdr=unknown
31190 case "$target" in
31191 *-*-solaris2*)
31192 # <link.h> needs both a dl_iterate_phdr declaration and support for
31193 # compilation with largefile support.
31194 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31195 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31196 gcc_cv_target_dl_iterate_phdr=yes
31197 else
31198 gcc_cv_target_dl_iterate_phdr=no
31201 *-*-dragonfly* | *-*-freebsd*)
31202 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31203 gcc_cv_target_dl_iterate_phdr=yes
31204 else
31205 gcc_cv_target_dl_iterate_phdr=no
31208 *-linux-musl*)
31209 gcc_cv_target_dl_iterate_phdr=yes
31211 esac
31213 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31215 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31219 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31221 # We no longer support different GC mechanisms. Emit an error if
31222 # the user configures with --with-gc.
31224 # Check whether --with-gc was given.
31225 if test "${with_gc+set}" = set; then :
31226 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31230 # Libraries to use on the host. This will normally be set by the top
31231 # level Makefile. Here we simply capture the value for our Makefile.
31232 if test -z "${HOST_LIBS+set}"; then
31233 HOST_LIBS=
31237 # Use the system's zlib library.
31239 # Use the system's zlib library.
31240 zlibdir="-L\$(top_builddir)/../zlib"
31241 zlibinc="-I\$(top_srcdir)/../zlib"
31243 # Check whether --with-system-zlib was given.
31244 if test "${with_system_zlib+set}" = set; then :
31245 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31246 zlibdir=
31247 zlibinc=
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31258 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31259 # Check whether --enable-maintainer-mode was given.
31260 if test "${enable_maintainer_mode+set}" = set; then :
31261 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31262 else
31263 maintainer_mode=no
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31268 $as_echo "$maintainer_mode" >&6; }
31270 if test "$maintainer_mode" = "yes"; then
31271 MAINT=''
31272 else
31273 MAINT='#'
31276 if test -z "$CTAGS"; then
31277 CTAGS=ctags
31280 if test -z "$ETAGS"; then
31281 ETAGS=etags
31284 if test -z "$CSCOPE"; then
31285 CSCOPE=cscope
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31291 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31292 # Check whether --enable-link-mutex was given.
31293 if test "${enable_link_mutex+set}" = set; then :
31294 enableval=$enable_link_mutex; do_link_mutex=$enableval
31295 else
31296 do_link_mutex=no
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31300 $as_echo "$do_link_mutex" >&6; }
31302 if test "$do_link_mutex" = "yes"; then
31303 DO_LINK_MUTEX=true
31304 else
31305 DO_LINK_MUTEX=false
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31311 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31312 # Check whether --enable-link-serialization was given.
31313 if test "${enable_link_serialization+set}" = set; then :
31314 enableval=$enable_link_serialization; do_link_serialization=$enableval
31315 else
31316 do_link_serialization=no
31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31320 $as_echo "$do_link_serialization" >&6; }
31322 case "$do_link_serialization" in
31323 yes)
31324 DO_LINK_SERIALIZATION=1;;
31325 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31326 DO_LINK_SERIALIZATION=$do_link_serialization;;
31328 DO_LINK_SERIALIZATION=;;
31330 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31331 esac
31334 # --------------
31335 # Language hooks
31336 # --------------
31338 # Make empty files to contain the specs and options for each language.
31339 # Then add #include lines to for a compiler that has specs and/or options.
31341 subdirs=
31342 lang_opt_files=
31343 lang_specs_files=
31344 lang_tree_files=
31345 # These (without "all_") are set in each config-lang.in.
31346 # `language' must be a single word so is spelled singularly.
31347 all_languages=
31348 all_compilers=
31349 all_outputs='Makefile'
31350 # List of language configure and makefile fragments.
31351 all_lang_configurefrags=
31352 all_lang_makefrags=
31353 # Additional files for gengtype
31354 all_gtfiles="$target_gtfiles"
31356 # These are the languages that are set in --enable-languages,
31357 # and are available in the GCC tree.
31358 all_selected_languages=
31360 # Add the language fragments.
31361 # Languages are added via two mechanisms. Some information must be
31362 # recorded in makefile variables, these are defined in config-lang.in.
31363 # We accumulate them and plug them into the main Makefile.
31364 # The other mechanism is a set of hooks for each of the main targets
31365 # like `clean', `install', etc.
31367 language_hooks="Make-hooks"
31369 for lang in ${srcdir}/*/config-lang.in
31371 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31373 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31374 if test "x$lang_alias" = x
31375 then
31376 echo "$lang doesn't set \$language." 1>&2
31377 exit 1
31379 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31380 subdirs="$subdirs $subdir"
31382 # $gcc_subdir is where the gcc integration files are to be found
31383 # for a language, both for internal compiler purposes (compiler
31384 # sources implementing front-end to GCC tree converters), and for
31385 # build infrastructure purposes (Make-lang.in, etc.)
31387 # This will be <subdir> (relative to $srcdir) if a line like
31388 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31389 # is found in <langdir>/config-lang.in, and will remain <langdir>
31390 # otherwise.
31392 # Except for the language alias (fetched above), the regular
31393 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31394 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31395 # only this and the language alias.
31397 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31398 if [ "$gcc_subdir" = "" ]; then
31399 gcc_subdir="$subdir"
31402 case ",$enable_languages," in
31403 *,$lang_alias,*)
31404 all_selected_languages="$all_selected_languages $lang_alias"
31405 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31406 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31409 esac
31411 language=
31412 boot_language=
31413 compilers=
31414 outputs=
31415 gtfiles=
31416 subdir_requires=
31417 . ${srcdir}/$gcc_subdir/config-lang.in
31418 if test "x$language" = x
31419 then
31420 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31421 exit 1
31424 ok=:
31425 case ",$enable_languages," in
31426 *,$lang_alias,*) ;;
31428 for i in $subdir_requires; do
31429 test -f "${srcdir}/$i/config-lang.in" && continue
31430 ok=false
31431 break
31432 done
31434 esac
31435 $ok || continue
31437 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31438 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31439 # Put c/Make-lang.in fragment first to match serialization languages order.
31440 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31441 else
31442 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31444 if test -f $srcdir/$gcc_subdir/lang.opt; then
31445 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31446 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31448 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31449 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31451 all_languages="$all_languages $language"
31452 all_compilers="$all_compilers $compilers"
31453 all_outputs="$all_outputs $outputs"
31454 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31455 case ",$enable_languages," in
31456 *,lto,*)
31458 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31460 enable_lto=yes
31463 *) ;;
31464 esac
31465 done
31467 check_languages=
31468 for language in $all_selected_languages
31470 check_languages="$check_languages check-$language"
31471 done
31473 selftest_languages=
31474 for language in $all_selected_languages
31476 selftest_languages="$selftest_languages selftest-$language"
31477 done
31479 # We link each language in with a set of hooks, reached indirectly via
31480 # lang.${target}. Only do so for selected languages.
31482 rm -f Make-hooks
31483 touch Make-hooks
31484 target_list="all.cross start.encap rest.encap tags \
31485 install-common install-man install-info install-dvi install-pdf \
31486 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31487 mostlyclean clean distclean maintainer-clean install-plugin"
31489 for t in $target_list
31492 for lang in $all_selected_languages
31494 x="$x $lang.$t"
31495 done
31496 echo "lang.$t: $x" >> Make-hooks
31497 done
31499 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31500 echo "SERIAL_LIST =" >> Make-hooks
31501 echo else >> Make-hooks
31502 lang_cnt=0
31503 lang_list=
31504 prev=c
31505 serialization_languages=c
31506 for lang in $all_selected_languages
31508 test $lang = c && continue
31509 if test $lang = lto; then
31510 serialization_languages="$serialization_languages lto1 lto2"
31511 else
31512 serialization_languages="$serialization_languages $lang"
31514 done
31515 for lang in $serialization_languages
31517 test $lang = c && continue
31518 lang_cnt=`expr $lang_cnt + 1`
31519 lang_list=" $prev$lang_list"
31520 prev=${lang}
31521 done
31522 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31523 echo endif >> Make-hooks
31524 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31525 echo "INDEX.c = 0" >> Make-hooks
31526 lang_idx=1
31527 for lang in $serialization_languages
31529 test $lang = c && continue
31530 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31531 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31532 lang_cnt=`expr $lang_cnt - 1`
31533 lang_idx=`expr $lang_idx + 1`
31534 done
31536 # --------
31537 # Option include files
31538 # --------
31540 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31541 option_includes="option-includes.mk"
31544 # --------
31545 # UNSORTED
31546 # --------
31548 # Create .gdbinit.
31550 echo "dir ." > .gdbinit
31551 echo "dir ${srcdir}" >> .gdbinit
31552 if test x$gdb_needs_out_file_path = xyes
31553 then
31554 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31556 if test "x$subdirs" != x; then
31557 for s in $subdirs
31559 echo "dir ${srcdir}/$s" >> .gdbinit
31560 done
31562 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31563 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31565 # Put a breakpoint on __asan_report_error to help with debugging buffer
31566 # overflow.
31567 case "$CFLAGS" in
31568 *-fsanitize=address*)
31569 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31571 esac
31573 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31577 # Find a directory in which to install a shared libgcc.
31579 # Check whether --enable-version-specific-runtime-libs was given.
31580 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31581 enableval=$enable_version_specific_runtime_libs;
31585 # Substitute configuration variables
31655 # Echo link setup.
31656 if test x${build} = x${host} ; then
31657 if test x${host} = x${target} ; then
31658 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31659 else
31660 echo "Links are now set up to build a cross-compiler" 1>&2
31661 echo " from ${host} to ${target}." 1>&2
31663 else
31664 if test x${host} = x${target} ; then
31665 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31666 echo " for ${target}." 1>&2
31667 else
31668 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31669 echo " from ${host} to ${target}." 1>&2
31678 if test "x${ISLLIBS}" != "x" ; then
31680 $as_echo "#define HAVE_isl 1" >>confdefs.h
31684 # Check for plugin support
31685 # Check whether --enable-plugin was given.
31686 if test "${enable_plugin+set}" = set; then :
31687 enableval=$enable_plugin; enable_plugin=$enableval
31688 else
31689 enable_plugin=yes; default_plugin=yes
31693 pluginlibs=
31694 plugin_check=yes
31696 case "${host}" in
31697 *-*-mingw*)
31698 # Since plugin support under MinGW is not as straightforward as on
31699 # other platforms (e.g., we have to link import library, etc), we
31700 # only enable it if explicitly requested.
31701 if test x"$default_plugin" = x"yes"; then
31702 enable_plugin=no
31703 elif test x"$enable_plugin" = x"yes"; then
31704 # Use make's target variable to derive import library name.
31705 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31706 plugin_check=no
31709 *-*-darwin*)
31710 if test x$build = x$host; then
31711 export_sym_check="nm${exeext} -g"
31712 elif test x$host = x$target; then
31713 export_sym_check="$gcc_cv_nm -g"
31714 else
31715 export_sym_check=
31719 if test x$build = x$host; then
31720 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31721 elif test x$host = x$target; then
31722 export_sym_check="$gcc_cv_objdump -T"
31723 else
31724 export_sym_check=
31727 esac
31729 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31732 $as_echo_n "checking for exported symbols... " >&6; }
31733 if test "x$export_sym_check" != x; then
31734 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31735 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31736 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31737 : # No need to use a flag
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31739 $as_echo "yes" >&6; }
31740 else
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31742 $as_echo "yes" >&6; }
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31744 $as_echo_n "checking for -rdynamic... " >&6; }
31745 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31746 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31747 plugin_rdynamic=yes
31748 pluginlibs="-rdynamic"
31749 else
31750 plugin_rdynamic=no
31751 enable_plugin=no
31753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31754 $as_echo "$plugin_rdynamic" >&6; }
31756 else
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31758 $as_echo "unable to check" >&6; }
31761 # Check -ldl
31762 saved_LIBS="$LIBS"
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31764 $as_echo_n "checking for library containing dlopen... " >&6; }
31765 if ${ac_cv_search_dlopen+:} false; then :
31766 $as_echo_n "(cached) " >&6
31767 else
31768 ac_func_search_save_LIBS=$LIBS
31769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31770 /* end confdefs.h. */
31772 /* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31775 #ifdef __cplusplus
31776 extern "C"
31777 #endif
31778 char dlopen ();
31780 main ()
31782 return dlopen ();
31784 return 0;
31786 _ACEOF
31787 for ac_lib in '' dl; do
31788 if test -z "$ac_lib"; then
31789 ac_res="none required"
31790 else
31791 ac_res=-l$ac_lib
31792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31794 if ac_fn_cxx_try_link "$LINENO"; then :
31795 ac_cv_search_dlopen=$ac_res
31797 rm -f core conftest.err conftest.$ac_objext \
31798 conftest$ac_exeext
31799 if ${ac_cv_search_dlopen+:} false; then :
31800 break
31802 done
31803 if ${ac_cv_search_dlopen+:} false; then :
31805 else
31806 ac_cv_search_dlopen=no
31808 rm conftest.$ac_ext
31809 LIBS=$ac_func_search_save_LIBS
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31812 $as_echo "$ac_cv_search_dlopen" >&6; }
31813 ac_res=$ac_cv_search_dlopen
31814 if test "$ac_res" != no; then :
31815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31819 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31820 pluginlibs="$pluginlibs -ldl"
31822 LIBS="$saved_LIBS"
31824 # Check that we can build shared objects with -fPIC -shared
31825 saved_LDFLAGS="$LDFLAGS"
31826 saved_CFLAGS="$CFLAGS"
31827 saved_CXXFLAGS="$CXXFLAGS"
31828 case "${host}" in
31829 *-*-darwin*)
31830 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31831 CFLAGS="$CFLAGS -fPIC"
31832 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31833 CXXFLAGS="$CXXFLAGS -fPIC"
31834 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31837 CFLAGS="$CFLAGS -fPIC"
31838 CXXFLAGS="$CXXFLAGS -fPIC"
31839 LDFLAGS="$LDFLAGS -fPIC -shared"
31841 esac
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31843 $as_echo_n "checking for -fPIC -shared... " >&6; }
31844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31845 /* end confdefs.h. */
31846 extern int X;
31848 main ()
31850 return X == 0;
31852 return 0;
31854 _ACEOF
31855 if ac_fn_cxx_try_link "$LINENO"; then :
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31857 $as_echo "yes" >&6; }; have_pic_shared=yes
31858 else
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31860 $as_echo "no" >&6; }; have_pic_shared=no
31862 rm -f core conftest.err conftest.$ac_objext \
31863 conftest$ac_exeext conftest.$ac_ext
31864 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31865 pluginlibs=
31866 enable_plugin=no
31868 LDFLAGS="$saved_LDFLAGS"
31869 CFLAGS="$saved_CFLAGS"
31870 CXXFLAGS="$saved_CXXFLAGS"
31872 # If plugin support had been requested but not available, fail.
31873 if test x"$enable_plugin" = x"no" ; then
31874 if test x"$default_plugin" != x"yes"; then
31875 as_fn_error $? "
31876 Building GCC with plugin support requires a host that supports
31877 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31884 if test x"$enable_plugin" = x"yes"; then
31886 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31891 # Enable --enable-host-shared
31892 # Check whether --enable-host-shared was given.
31893 if test "${enable_host_shared+set}" = set; then :
31894 enableval=$enable_host_shared; PICFLAG=-fPIC
31895 else
31896 PICFLAG=
31903 # Check whether --enable-libquadmath-support was given.
31904 if test "${enable_libquadmath_support+set}" = set; then :
31905 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31906 else
31907 ENABLE_LIBQUADMATH_SUPPORT=yes
31910 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31912 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31917 # Specify what hash style to use by default.
31919 # Check whether --with-linker-hash-style was given.
31920 if test "${with_linker_hash_style+set}" = set; then :
31921 withval=$with_linker_hash_style; case x"$withval" in
31922 xsysv)
31923 LINKER_HASH_STYLE=sysv
31925 xgnu)
31926 LINKER_HASH_STYLE=gnu
31928 xboth)
31929 LINKER_HASH_STYLE=both
31932 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31934 esac
31935 else
31936 LINKER_HASH_STYLE=''
31939 if test x"${LINKER_HASH_STYLE}" != x; then
31941 cat >>confdefs.h <<_ACEOF
31942 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31943 _ACEOF
31947 # Specify what should be the default of -fdiagnostics-color option.
31949 # Check whether --with-diagnostics-color was given.
31950 if test "${with_diagnostics_color+set}" = set; then :
31951 withval=$with_diagnostics_color; case x"$withval" in
31952 xnever)
31953 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
31955 xauto)
31956 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31958 xauto-if-env)
31959 DIAGNOSTICS_COLOR_DEFAULT=-1
31961 xalways)
31962 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
31965 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
31967 esac
31968 else
31969 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
31973 cat >>confdefs.h <<_ACEOF
31974 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
31975 _ACEOF
31978 # Specify what should be the default of -fdiagnostics-urls option.
31980 # Check whether --with-diagnostics-urls was given.
31981 if test "${with_diagnostics_urls+set}" = set; then :
31982 withval=$with_diagnostics_urls; case x"$withval" in
31983 xnever)
31984 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
31986 xauto)
31987 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
31989 xauto-if-env)
31990 DIAGNOSTICS_URLS_DEFAULT=-1
31992 xalways)
31993 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
31996 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
31998 esac
31999 else
32000 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32004 cat >>confdefs.h <<_ACEOF
32005 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32006 _ACEOF
32009 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32010 # of jit/jit-playback.cc.
32011 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32012 echo "gcc_driver_version: ${gcc_driver_version}"
32013 cat > gcc-driver-name.h <<EOF
32014 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32017 # Check whether --enable-default-pie was given.
32018 # Check whether --enable-default-pie was given.
32019 if test "${enable_default_pie+set}" = set; then :
32020 enableval=$enable_default_pie; enable_default_pie=$enableval
32021 else
32022 enable_default_pie=no
32025 if test x$enable_default_pie = xyes ; then
32027 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32032 # Check if -fno-PIE works.
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32034 $as_echo_n "checking for -fno-PIE option... " >&6; }
32035 if ${gcc_cv_c_no_fpie+:} false; then :
32036 $as_echo_n "(cached) " >&6
32037 else
32038 saved_CXXFLAGS="$CXXFLAGS"
32039 CXXFLAGS="$CXXFLAGS -fno-PIE"
32040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32041 /* end confdefs.h. */
32042 int main(void) {return 0;}
32043 _ACEOF
32044 if ac_fn_cxx_try_compile "$LINENO"; then :
32045 gcc_cv_c_no_fpie=yes
32046 else
32047 gcc_cv_c_no_fpie=no
32049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32050 CXXFLAGS="$saved_CXXFLAGS"
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32053 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32054 if test "$gcc_cv_c_no_fpie" = "yes"; then
32055 NO_PIE_CFLAGS="-fno-PIE"
32059 # Check if -no-pie works.
32060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32061 $as_echo_n "checking for -no-pie option... " >&6; }
32062 if ${gcc_cv_no_pie+:} false; then :
32063 $as_echo_n "(cached) " >&6
32064 else
32065 saved_LDFLAGS="$LDFLAGS"
32066 LDFLAGS="$LDFLAGS -no-pie"
32067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068 /* end confdefs.h. */
32069 int main(void) {return 0;}
32070 _ACEOF
32071 if ac_fn_cxx_try_link "$LINENO"; then :
32072 gcc_cv_no_pie=yes
32073 else
32074 gcc_cv_no_pie=no
32076 rm -f core conftest.err conftest.$ac_objext \
32077 conftest$ac_exeext conftest.$ac_ext
32078 LDFLAGS="$saved_LDFLAGS"
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32081 $as_echo "$gcc_cv_no_pie" >&6; }
32082 if test "$gcc_cv_no_pie" = "yes"; then
32083 NO_PIE_FLAG="-no-pie"
32087 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32088 # Check whether --enable-cet was given.
32089 if test "${enable_cet+set}" = set; then :
32090 enableval=$enable_cet;
32091 case "$enableval" in
32092 yes|no|auto) ;;
32093 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32094 esac
32096 else
32097 enable_cet=auto
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32102 $as_echo_n "checking for CET support... " >&6; }
32104 case "$host" in
32105 i[34567]86-*-linux* | x86_64-*-linux*)
32106 may_have_cet=yes
32107 cet_save_CFLAGS="$CFLAGS"
32108 CFLAGS="$CFLAGS -fcf-protection"
32109 case "$enable_cet" in
32110 auto)
32111 # Check if target supports multi-byte NOPs
32112 # and if compiler and assembler support CET.
32113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32114 /* end confdefs.h. */
32117 main ()
32120 #if !defined(__SSE2__)
32121 #error target does not support multi-byte NOPs
32122 #else
32123 asm ("setssbsy");
32124 #endif
32127 return 0;
32129 _ACEOF
32130 if ac_fn_cxx_try_compile "$LINENO"; then :
32131 enable_cet=yes
32132 else
32133 enable_cet=no
32135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32137 yes)
32138 # Check if compiler and assembler support CET.
32139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32140 /* end confdefs.h. */
32143 main ()
32145 asm ("setssbsy");
32147 return 0;
32149 _ACEOF
32150 if ac_fn_cxx_try_compile "$LINENO"; then :
32151 support_cet=yes
32152 else
32153 support_cet=no
32155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32156 if test $support_cet = "no"; then
32157 if test x$enable_bootstrap != xno \
32158 && test -z "${with_build_subdir}" \
32159 && (test ! -f ../stage_current \
32160 || test `cat ../stage_current` != "stage1"); then
32161 # Require CET support only for the final GCC build.
32162 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32163 else
32164 # Don't enable CET without CET support for non-bootstrap
32165 # build, in stage1 nor for build support.
32166 enable_cet=no
32170 esac
32171 CFLAGS="$cet_save_CFLAGS"
32174 may_have_cet=no
32175 enable_cet=no
32177 esac
32179 cet_save_CFLAGS="$CFLAGS"
32180 CFLAGS="$CFLAGS -fcf-protection=none"
32181 cet_save_LDFLAGS="$LDFLAGS"
32182 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32183 if test x$may_have_cet = xyes; then
32184 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32186 /* end confdefs.h. */
32189 main ()
32191 return 0;
32193 return 0;
32195 _ACEOF
32196 if ac_fn_cxx_try_link "$LINENO"; then :
32197 may_have_cet=yes
32198 else
32199 may_have_cet=no
32201 rm -f core conftest.err conftest.$ac_objext \
32202 conftest$ac_exeext conftest.$ac_ext
32205 if test x$may_have_cet = xyes; then
32206 if test x$cross_compiling = xno; then
32207 if test "$cross_compiling" = yes; then :
32208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32210 as_fn_error $? "cannot run test program while cross compiling
32211 See \`config.log' for more details" "$LINENO" 5; }
32212 else
32213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32214 /* end confdefs.h. */
32217 main ()
32219 asm ("endbr32");
32220 return 0;
32223 _ACEOF
32224 if ac_fn_cxx_try_run "$LINENO"; then :
32225 have_multi_byte_nop=yes
32226 else
32227 have_multi_byte_nop=no
32229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32230 conftest.$ac_objext conftest.beam conftest.$ac_ext
32233 have_cet=no
32234 if test x$have_multi_byte_nop = xyes; then
32235 if test "$cross_compiling" = yes; then :
32236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32238 as_fn_error $? "cannot run test program while cross compiling
32239 See \`config.log' for more details" "$LINENO" 5; }
32240 else
32241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32242 /* end confdefs.h. */
32244 static void
32245 foo (void)
32249 static void
32250 __attribute__ ((noinline, noclone))
32251 xxx (void (*f) (void))
32253 f ();
32256 static void
32257 __attribute__ ((noinline, noclone))
32258 bar (void)
32260 xxx (foo);
32264 main ()
32266 bar ();
32267 return 0;
32270 _ACEOF
32271 if ac_fn_cxx_try_run "$LINENO"; then :
32272 have_cet=no
32273 else
32274 have_cet=yes
32276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32277 conftest.$ac_objext conftest.beam conftest.$ac_ext
32281 if test x$enable_cet = xno -a x$have_cet = xyes; then
32282 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32285 else
32286 # Enable CET in cross compiler if possible so that it will run on both
32287 # CET and non-CET hosts.
32288 have_cet=yes
32290 if test x$enable_cet = xyes; then
32291 CET_HOST_FLAGS="-fcf-protection"
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32293 $as_echo "yes" >&6; }
32294 else
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32296 $as_echo "no" >&6; }
32298 CFLAGS="$cet_save_CFLAGS"
32299 LDFLAGS="$cet_save_LDFLAGS"
32301 case x$enable_languages in
32302 *jit*)
32305 CET_HOST_FLAGS=
32307 esac
32310 # Check linker supports '-z bndplt'
32311 ld_bndplt_support=no
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32313 $as_echo_n "checking linker -z bndplt option... " >&6; }
32314 if test x"$ld_is_gold" = xno; then
32315 if test $in_tree_ld = yes ; then
32316 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
32317 ld_bndplt_support=yes
32319 elif test x$gcc_cv_ld != x; then
32320 # Check if linker supports -a bndplt option
32321 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32322 ld_bndplt_support=yes
32326 if test x"$ld_bndplt_support" = xyes; then
32328 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32332 $as_echo "$ld_bndplt_support" >&6; }
32334 # Check linker supports '--push-state'/'--pop-state'
32335 ld_pushpopstate_support=no
32336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32337 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32338 if test x"$ld_is_gold" = xno; then
32339 if test $in_tree_ld = yes ; then
32340 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
32341 ld_pushpopstate_support=yes
32343 elif test x$gcc_cv_ld != x; then
32344 # Check if linker supports --push-state/--pop-state options
32345 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32346 ld_pushpopstate_support=yes
32350 if test x"$ld_pushpopstate_support" = xyes; then
32352 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32356 $as_echo "$ld_pushpopstate_support" >&6; }
32358 # On s390, float_t has historically been statically defined as double for no
32359 # good reason. To comply with the C standard in the light of this definition,
32360 # gcc has evaluated float expressions in double precision when in
32361 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32362 # a smooth transition towards the new model used by most architectures, where
32363 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32364 # float_t from that, this behavior can be configured with
32365 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32366 # the old model. When omitted, native builds and cross compiles that have target
32367 # libc headers will detect whether libc clamps float_t to double and in that
32368 # case maintain the old model. Otherwise, they will default to the new model.
32369 # Check whether --enable-s390-excess-float-precision was given.
32370 if test "${enable_s390_excess_float_precision+set}" = set; then :
32371 enableval=$enable_s390_excess_float_precision;
32372 else
32373 enable_s390_excess_float_precision=auto
32377 case $target in
32378 s390*-linux*)
32379 if test x"$enable_s390_excess_float_precision" = xauto; then
32380 # Can we autodetect the behavior of the target libc?
32381 if test "$target" = "$host" -a "$host" = "$build"; then
32382 enable_s390_excess_float_precision=autodetect
32383 elif test "x$with_headers" != xno; then
32384 # cross build. are target headers available?
32385 # carefully coerce the build-system compiler to use target headers
32386 saved_CXXFLAGS="$CXXFLAGS"
32387 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32388 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32389 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391 /* end confdefs.h. */
32393 #include <math.h>
32395 _ACEOF
32396 if ac_fn_cxx_try_compile "$LINENO"; then :
32397 enable_s390_excess_float_precision=autodetect
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400 CXXFLAGS="$saved_CXXFLAGS"
32403 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32404 saved_CXXFLAGS="$CXXFLAGS"
32405 if ! test "$target" = "$host" -a "$host" = "$build"; then
32406 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32407 unset CROSS_TEST_CXXFLAGS
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32410 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32411 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32412 $as_echo_n "(cached) " >&6
32413 else
32415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32416 /* end confdefs.h. */
32418 #define __FLT_EVAL_METHOD__ 0
32419 #include <math.h>
32420 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32422 _ACEOF
32423 if ac_fn_cxx_try_compile "$LINENO"; then :
32424 gcc_cv_float_t_clamped_to_double=yes
32425 else
32426 gcc_cv_float_t_clamped_to_double=no
32428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32431 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32432 CXXFLAGS="$saved_CXXFLAGS"
32433 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32434 else
32435 # no way to detect behavior of target libc, default to new model
32436 enable_s390_excess_float_precision=no
32441 if test x"$enable_s390_excess_float_precision" = xyes; then
32443 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32447 esac
32449 # Configure the subdirectories
32450 # AC_CONFIG_SUBDIRS($subdirs)
32452 # Create the Makefile
32453 # and configure language subdirectories
32454 ac_config_files="$ac_config_files $all_outputs"
32457 ac_config_commands="$ac_config_commands default"
32459 cat >confcache <<\_ACEOF
32460 # This file is a shell script that caches the results of configure
32461 # tests run on this system so they can be shared between configure
32462 # scripts and configure runs, see configure's option --config-cache.
32463 # It is not useful on other systems. If it contains results you don't
32464 # want to keep, you may remove or edit it.
32466 # config.status only pays attention to the cache file if you give it
32467 # the --recheck option to rerun configure.
32469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32471 # following values.
32473 _ACEOF
32475 # The following way of writing the cache mishandles newlines in values,
32476 # but we know of no workaround that is simple, portable, and efficient.
32477 # So, we kill variables containing newlines.
32478 # Ultrix sh set writes to stderr and can't be redirected directly,
32479 # and sets the high bit in the cache file unless we assign to the vars.
32481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32482 eval ac_val=\$$ac_var
32483 case $ac_val in #(
32484 *${as_nl}*)
32485 case $ac_var in #(
32486 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32487 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32488 esac
32489 case $ac_var in #(
32490 _ | IFS | as_nl) ;; #(
32491 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32492 *) { eval $ac_var=; unset $ac_var;} ;;
32493 esac ;;
32494 esac
32495 done
32497 (set) 2>&1 |
32498 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32499 *${as_nl}ac_space=\ *)
32500 # `set' does not quote correctly, so add quotes: double-quote
32501 # substitution turns \\\\ into \\, and sed turns \\ into \.
32502 sed -n \
32503 "s/'/'\\\\''/g;
32504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32505 ;; #(
32507 # `set' quotes correctly as required by POSIX, so do not add quotes.
32508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32510 esac |
32511 sort
32513 sed '
32514 /^ac_cv_env_/b end
32515 t clear
32516 :clear
32517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32518 t end
32519 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32520 :end' >>confcache
32521 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32522 if test -w "$cache_file"; then
32523 if test "x$cache_file" != "x/dev/null"; then
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32525 $as_echo "$as_me: updating cache $cache_file" >&6;}
32526 if test ! -f "$cache_file" || test -h "$cache_file"; then
32527 cat confcache >"$cache_file"
32528 else
32529 case $cache_file in #(
32530 */* | ?:*)
32531 mv -f confcache "$cache_file"$$ &&
32532 mv -f "$cache_file"$$ "$cache_file" ;; #(
32534 mv -f confcache "$cache_file" ;;
32535 esac
32538 else
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32543 rm -f confcache
32545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32546 # Let make expand exec_prefix.
32547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32549 DEFS=-DHAVE_CONFIG_H
32551 ac_libobjs=
32552 ac_ltlibobjs=
32554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32555 # 1. Remove the extension, and $U if already installed.
32556 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32557 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32558 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32559 # will be set to the directory where LIBOBJS objects are built.
32560 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32561 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32562 done
32563 LIBOBJS=$ac_libobjs
32565 LTLIBOBJS=$ac_ltlibobjs
32570 : "${CONFIG_STATUS=./config.status}"
32571 ac_write_fail=0
32572 ac_clean_files_save=$ac_clean_files
32573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32575 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32576 as_write_fail=0
32577 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32578 #! $SHELL
32579 # Generated by $as_me.
32580 # Run this file to recreate the current configuration.
32581 # Compiler output produced by configure, useful for debugging
32582 # configure, is in config.log if it exists.
32584 debug=false
32585 ac_cs_recheck=false
32586 ac_cs_silent=false
32588 SHELL=\${CONFIG_SHELL-$SHELL}
32589 export SHELL
32590 _ASEOF
32591 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32592 ## -------------------- ##
32593 ## M4sh Initialization. ##
32594 ## -------------------- ##
32596 # Be more Bourne compatible
32597 DUALCASE=1; export DUALCASE # for MKS sh
32598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32599 emulate sh
32600 NULLCMD=:
32601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32602 # is contrary to our usage. Disable this feature.
32603 alias -g '${1+"$@"}'='"$@"'
32604 setopt NO_GLOB_SUBST
32605 else
32606 case `(set -o) 2>/dev/null` in #(
32607 *posix*) :
32608 set -o posix ;; #(
32609 *) :
32611 esac
32615 as_nl='
32617 export as_nl
32618 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32619 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32622 # Prefer a ksh shell builtin over an external printf program on Solaris,
32623 # but without wasting forks for bash or zsh.
32624 if test -z "$BASH_VERSION$ZSH_VERSION" \
32625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32626 as_echo='print -r --'
32627 as_echo_n='print -rn --'
32628 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32629 as_echo='printf %s\n'
32630 as_echo_n='printf %s'
32631 else
32632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32633 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32634 as_echo_n='/usr/ucb/echo -n'
32635 else
32636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32637 as_echo_n_body='eval
32638 arg=$1;
32639 case $arg in #(
32640 *"$as_nl"*)
32641 expr "X$arg" : "X\\(.*\\)$as_nl";
32642 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32643 esac;
32644 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32646 export as_echo_n_body
32647 as_echo_n='sh -c $as_echo_n_body as_echo'
32649 export as_echo_body
32650 as_echo='sh -c $as_echo_body as_echo'
32653 # The user is always right.
32654 if test "${PATH_SEPARATOR+set}" != set; then
32655 PATH_SEPARATOR=:
32656 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32657 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32658 PATH_SEPARATOR=';'
32663 # IFS
32664 # We need space, tab and new line, in precisely that order. Quoting is
32665 # there to prevent editors from complaining about space-tab.
32666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32667 # splitting by setting IFS to empty value.)
32668 IFS=" "" $as_nl"
32670 # Find who we are. Look in the path if we contain no directory separator.
32671 as_myself=
32672 case $0 in #((
32673 *[\\/]* ) as_myself=$0 ;;
32674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675 for as_dir in $PATH
32677 IFS=$as_save_IFS
32678 test -z "$as_dir" && as_dir=.
32679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32680 done
32681 IFS=$as_save_IFS
32684 esac
32685 # We did not find ourselves, most probably we were run as `sh COMMAND'
32686 # in which case we are not to be found in the path.
32687 if test "x$as_myself" = x; then
32688 as_myself=$0
32690 if test ! -f "$as_myself"; then
32691 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32692 exit 1
32695 # Unset variables that we do not need and which cause bugs (e.g. in
32696 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32697 # suppresses any "Segmentation fault" message there. '((' could
32698 # trigger a bug in pdksh 5.2.14.
32699 for as_var in BASH_ENV ENV MAIL MAILPATH
32700 do eval test x\${$as_var+set} = xset \
32701 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32702 done
32703 PS1='$ '
32704 PS2='> '
32705 PS4='+ '
32707 # NLS nuisances.
32708 LC_ALL=C
32709 export LC_ALL
32710 LANGUAGE=C
32711 export LANGUAGE
32713 # CDPATH.
32714 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32717 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32718 # ----------------------------------------
32719 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32720 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32721 # script with STATUS, using 1 if that was 0.
32722 as_fn_error ()
32724 as_status=$1; test $as_status -eq 0 && as_status=1
32725 if test "$4"; then
32726 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32727 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32729 $as_echo "$as_me: error: $2" >&2
32730 as_fn_exit $as_status
32731 } # as_fn_error
32734 # as_fn_set_status STATUS
32735 # -----------------------
32736 # Set $? to STATUS, without forking.
32737 as_fn_set_status ()
32739 return $1
32740 } # as_fn_set_status
32742 # as_fn_exit STATUS
32743 # -----------------
32744 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32745 as_fn_exit ()
32747 set +e
32748 as_fn_set_status $1
32749 exit $1
32750 } # as_fn_exit
32752 # as_fn_unset VAR
32753 # ---------------
32754 # Portably unset VAR.
32755 as_fn_unset ()
32757 { eval $1=; unset $1;}
32759 as_unset=as_fn_unset
32760 # as_fn_append VAR VALUE
32761 # ----------------------
32762 # Append the text in VALUE to the end of the definition contained in VAR. Take
32763 # advantage of any shell optimizations that allow amortized linear growth over
32764 # repeated appends, instead of the typical quadratic growth present in naive
32765 # implementations.
32766 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32767 eval 'as_fn_append ()
32769 eval $1+=\$2
32771 else
32772 as_fn_append ()
32774 eval $1=\$$1\$2
32776 fi # as_fn_append
32778 # as_fn_arith ARG...
32779 # ------------------
32780 # Perform arithmetic evaluation on the ARGs, and store the result in the
32781 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32782 # must be portable across $(()) and expr.
32783 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32784 eval 'as_fn_arith ()
32786 as_val=$(( $* ))
32788 else
32789 as_fn_arith ()
32791 as_val=`expr "$@" || test $? -eq 1`
32793 fi # as_fn_arith
32796 if expr a : '\(a\)' >/dev/null 2>&1 &&
32797 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32798 as_expr=expr
32799 else
32800 as_expr=false
32803 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32804 as_basename=basename
32805 else
32806 as_basename=false
32809 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32810 as_dirname=dirname
32811 else
32812 as_dirname=false
32815 as_me=`$as_basename -- "$0" ||
32816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32817 X"$0" : 'X\(//\)$' \| \
32818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32819 $as_echo X/"$0" |
32820 sed '/^.*\/\([^/][^/]*\)\/*$/{
32821 s//\1/
32824 /^X\/\(\/\/\)$/{
32825 s//\1/
32828 /^X\/\(\/\).*/{
32829 s//\1/
32832 s/.*/./; q'`
32834 # Avoid depending upon Character Ranges.
32835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32838 as_cr_digits='0123456789'
32839 as_cr_alnum=$as_cr_Letters$as_cr_digits
32841 ECHO_C= ECHO_N= ECHO_T=
32842 case `echo -n x` in #(((((
32843 -n*)
32844 case `echo 'xy\c'` in
32845 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32846 xy) ECHO_C='\c';;
32847 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32848 ECHO_T=' ';;
32849 esac;;
32851 ECHO_N='-n';;
32852 esac
32854 rm -f conf$$ conf$$.exe conf$$.file
32855 if test -d conf$$.dir; then
32856 rm -f conf$$.dir/conf$$.file
32857 else
32858 rm -f conf$$.dir
32859 mkdir conf$$.dir 2>/dev/null
32861 if (echo >conf$$.file) 2>/dev/null; then
32862 if ln -s conf$$.file conf$$ 2>/dev/null; then
32863 as_ln_s='ln -s'
32864 # ... but there are two gotchas:
32865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32867 # In both cases, we have to default to `cp -pR'.
32868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32869 as_ln_s='cp -pR'
32870 elif ln conf$$.file conf$$ 2>/dev/null; then
32871 as_ln_s=ln
32872 else
32873 as_ln_s='cp -pR'
32875 else
32876 as_ln_s='cp -pR'
32878 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32879 rmdir conf$$.dir 2>/dev/null
32882 # as_fn_mkdir_p
32883 # -------------
32884 # Create "$as_dir" as a directory, including parents if necessary.
32885 as_fn_mkdir_p ()
32888 case $as_dir in #(
32889 -*) as_dir=./$as_dir;;
32890 esac
32891 test -d "$as_dir" || eval $as_mkdir_p || {
32892 as_dirs=
32893 while :; do
32894 case $as_dir in #(
32895 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32896 *) as_qdir=$as_dir;;
32897 esac
32898 as_dirs="'$as_qdir' $as_dirs"
32899 as_dir=`$as_dirname -- "$as_dir" ||
32900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32901 X"$as_dir" : 'X\(//\)[^/]' \| \
32902 X"$as_dir" : 'X\(//\)$' \| \
32903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32904 $as_echo X"$as_dir" |
32905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32906 s//\1/
32909 /^X\(\/\/\)[^/].*/{
32910 s//\1/
32913 /^X\(\/\/\)$/{
32914 s//\1/
32917 /^X\(\/\).*/{
32918 s//\1/
32921 s/.*/./; q'`
32922 test -d "$as_dir" && break
32923 done
32924 test -z "$as_dirs" || eval "mkdir $as_dirs"
32925 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32928 } # as_fn_mkdir_p
32929 if mkdir -p . 2>/dev/null; then
32930 as_mkdir_p='mkdir -p "$as_dir"'
32931 else
32932 test -d ./-p && rmdir ./-p
32933 as_mkdir_p=false
32937 # as_fn_executable_p FILE
32938 # -----------------------
32939 # Test if FILE is an executable regular file.
32940 as_fn_executable_p ()
32942 test -f "$1" && test -x "$1"
32943 } # as_fn_executable_p
32944 as_test_x='test -x'
32945 as_executable_p=as_fn_executable_p
32947 # Sed expression to map a string onto a valid CPP name.
32948 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32950 # Sed expression to map a string onto a valid variable name.
32951 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32954 exec 6>&1
32955 ## ----------------------------------- ##
32956 ## Main body of $CONFIG_STATUS script. ##
32957 ## ----------------------------------- ##
32958 _ASEOF
32959 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32962 # Save the log message, to keep $0 and so on meaningful, and to
32963 # report actual input values of CONFIG_FILES etc. instead of their
32964 # values after options handling.
32965 ac_log="
32966 This file was extended by $as_me, which was
32967 generated by GNU Autoconf 2.69. Invocation command line was
32969 CONFIG_FILES = $CONFIG_FILES
32970 CONFIG_HEADERS = $CONFIG_HEADERS
32971 CONFIG_LINKS = $CONFIG_LINKS
32972 CONFIG_COMMANDS = $CONFIG_COMMANDS
32973 $ $0 $@
32975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32978 _ACEOF
32980 case $ac_config_files in *"
32981 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32982 esac
32984 case $ac_config_headers in *"
32985 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32986 esac
32989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32990 # Files that config.status was made for.
32991 config_files="$ac_config_files"
32992 config_headers="$ac_config_headers"
32993 config_links="$ac_config_links"
32994 config_commands="$ac_config_commands"
32996 _ACEOF
32998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32999 ac_cs_usage="\
33000 \`$as_me' instantiates files and other configuration actions
33001 from templates according to the current configuration. Unless the files
33002 and actions are specified as TAGs, all are instantiated by default.
33004 Usage: $0 [OPTION]... [TAG]...
33006 -h, --help print this help, then exit
33007 -V, --version print version number and configuration settings, then exit
33008 --config print configuration, then exit
33009 -q, --quiet, --silent
33010 do not print progress messages
33011 -d, --debug don't remove temporary files
33012 --recheck update $as_me by reconfiguring in the same conditions
33013 --file=FILE[:TEMPLATE]
33014 instantiate the configuration file FILE
33015 --header=FILE[:TEMPLATE]
33016 instantiate the configuration header FILE
33018 Configuration files:
33019 $config_files
33021 Configuration headers:
33022 $config_headers
33024 Configuration links:
33025 $config_links
33027 Configuration commands:
33028 $config_commands
33030 Report bugs to the package provider."
33032 _ACEOF
33033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33034 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33035 ac_cs_version="\\
33036 config.status
33037 configured by $0, generated by GNU Autoconf 2.69,
33038 with options \\"\$ac_cs_config\\"
33040 Copyright (C) 2012 Free Software Foundation, Inc.
33041 This config.status script is free software; the Free Software Foundation
33042 gives unlimited permission to copy, distribute and modify it."
33044 ac_pwd='$ac_pwd'
33045 srcdir='$srcdir'
33046 AWK='$AWK'
33047 test -n "\$AWK" || AWK=awk
33048 _ACEOF
33050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33051 # The default lists apply if the user does not specify any file.
33052 ac_need_defaults=:
33053 while test $# != 0
33055 case $1 in
33056 --*=?*)
33057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33059 ac_shift=:
33061 --*=)
33062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33063 ac_optarg=
33064 ac_shift=:
33067 ac_option=$1
33068 ac_optarg=$2
33069 ac_shift=shift
33071 esac
33073 case $ac_option in
33074 # Handling of the options.
33075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33076 ac_cs_recheck=: ;;
33077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33078 $as_echo "$ac_cs_version"; exit ;;
33079 --config | --confi | --conf | --con | --co | --c )
33080 $as_echo "$ac_cs_config"; exit ;;
33081 --debug | --debu | --deb | --de | --d | -d )
33082 debug=: ;;
33083 --file | --fil | --fi | --f )
33084 $ac_shift
33085 case $ac_optarg in
33086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33087 '') as_fn_error $? "missing file argument" ;;
33088 esac
33089 as_fn_append CONFIG_FILES " '$ac_optarg'"
33090 ac_need_defaults=false;;
33091 --header | --heade | --head | --hea )
33092 $ac_shift
33093 case $ac_optarg in
33094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33095 esac
33096 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33097 ac_need_defaults=false;;
33098 --he | --h)
33099 # Conflict between --help and --header
33100 as_fn_error $? "ambiguous option: \`$1'
33101 Try \`$0 --help' for more information.";;
33102 --help | --hel | -h )
33103 $as_echo "$ac_cs_usage"; exit ;;
33104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33105 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33106 ac_cs_silent=: ;;
33108 # This is an error.
33109 -*) as_fn_error $? "unrecognized option: \`$1'
33110 Try \`$0 --help' for more information." ;;
33112 *) as_fn_append ac_config_targets " $1"
33113 ac_need_defaults=false ;;
33115 esac
33116 shift
33117 done
33119 ac_configure_extra_args=
33121 if $ac_cs_silent; then
33122 exec 6>/dev/null
33123 ac_configure_extra_args="$ac_configure_extra_args --silent"
33126 _ACEOF
33127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33128 if \$ac_cs_recheck; then
33129 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33130 shift
33131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33132 CONFIG_SHELL='$SHELL'
33133 export CONFIG_SHELL
33134 exec "\$@"
33137 _ACEOF
33138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33139 exec 5>>config.log
33141 echo
33142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33143 ## Running $as_me. ##
33144 _ASBOX
33145 $as_echo "$ac_log"
33146 } >&5
33148 _ACEOF
33149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33151 # INIT-COMMANDS
33153 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33154 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33155 subdirs='$subdirs'
33157 _ACEOF
33159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33161 # Handling of arguments.
33162 for ac_config_target in $ac_config_targets
33164 case $ac_config_target in
33165 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33166 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33167 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33168 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33169 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33170 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33171 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33172 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33173 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33174 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33176 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33177 esac
33178 done
33181 # If the user did not use the arguments to specify the items to instantiate,
33182 # then the envvar interface is used. Set only those that are not.
33183 # We use the long form for the default assignment because of an extremely
33184 # bizarre bug on SunOS 4.1.3.
33185 if $ac_need_defaults; then
33186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33188 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33192 # Have a temporary directory for convenience. Make it in the build tree
33193 # simply because there is no reason against having it here, and in addition,
33194 # creating and moving files from /tmp can sometimes cause problems.
33195 # Hook for its removal unless debugging.
33196 # Note that there is a small window in which the directory will not be cleaned:
33197 # after its creation but before its name has been assigned to `$tmp'.
33198 $debug ||
33200 tmp= ac_tmp=
33201 trap 'exit_status=$?
33202 : "${ac_tmp:=$tmp}"
33203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33205 trap 'as_fn_exit 1' 1 2 13 15
33207 # Create a (secure) tmp directory for tmp files.
33210 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33211 test -d "$tmp"
33212 } ||
33214 tmp=./conf$$-$RANDOM
33215 (umask 077 && mkdir "$tmp")
33216 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33217 ac_tmp=$tmp
33219 # Set up the scripts for CONFIG_FILES section.
33220 # No need to generate them if there are no CONFIG_FILES.
33221 # This happens for instance with `./config.status config.h'.
33222 if test -n "$CONFIG_FILES"; then
33224 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33225 ac_cs_awk_getline=:
33226 ac_cs_awk_pipe_init=
33227 ac_cs_awk_read_file='
33228 while ((getline aline < (F[key])) > 0)
33229 print(aline)
33230 close(F[key])'
33231 ac_cs_awk_pipe_fini=
33232 else
33233 ac_cs_awk_getline=false
33234 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33235 ac_cs_awk_read_file='
33236 print "|#_!!_#|"
33237 print "cat " F[key] " &&"
33238 '$ac_cs_awk_pipe_init
33239 # The final `:' finishes the AND list.
33240 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33242 ac_cr=`echo X | tr X '\015'`
33243 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33244 # But we know of no other shell where ac_cr would be empty at this
33245 # point, so we can use a bashism as a fallback.
33246 if test "x$ac_cr" = x; then
33247 eval ac_cr=\$\'\\r\'
33249 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33250 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33251 ac_cs_awk_cr='\\r'
33252 else
33253 ac_cs_awk_cr=$ac_cr
33256 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33257 _ACEOF
33259 # Create commands to substitute file output variables.
33261 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33262 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33263 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33264 echo "_ACAWK" &&
33265 echo "_ACEOF"
33266 } >conf$$files.sh &&
33267 . ./conf$$files.sh ||
33268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33269 rm -f conf$$files.sh
33272 echo "cat >conf$$subs.awk <<_ACEOF" &&
33273 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33274 echo "_ACEOF"
33275 } >conf$$subs.sh ||
33276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33277 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33278 ac_delim='%!_!# '
33279 for ac_last_try in false false false false false :; do
33280 . ./conf$$subs.sh ||
33281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33283 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33284 if test $ac_delim_n = $ac_delim_num; then
33285 break
33286 elif $ac_last_try; then
33287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33288 else
33289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33291 done
33292 rm -f conf$$subs.sh
33294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33295 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33296 _ACEOF
33297 sed -n '
33299 s/^/S["/; s/!.*/"]=/
33302 s/^[^!]*!//
33303 :repl
33304 t repl
33305 s/'"$ac_delim"'$//
33306 t delim
33309 s/\(.\{148\}\)..*/\1/
33310 t more1
33311 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33314 b repl
33315 :more1
33316 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33319 s/.\{148\}//
33320 t nl
33321 :delim
33323 s/\(.\{148\}\)..*/\1/
33324 t more2
33325 s/["\\]/\\&/g; s/^/"/; s/$/"/
33328 :more2
33329 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33332 s/.\{148\}//
33333 t delim
33334 ' <conf$$subs.awk | sed '
33335 /^[^""]/{
33337 s/\n//
33339 ' >>$CONFIG_STATUS || ac_write_fail=1
33340 rm -f conf$$subs.awk
33341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33342 _ACAWK
33343 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33344 for (key in S) S_is_set[key] = 1
33345 FS = "\a"
33346 \$ac_cs_awk_pipe_init
33349 line = $ 0
33350 nfields = split(line, field, "@")
33351 substed = 0
33352 len = length(field[1])
33353 for (i = 2; i < nfields; i++) {
33354 key = field[i]
33355 keylen = length(key)
33356 if (S_is_set[key]) {
33357 value = S[key]
33358 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33359 len += length(value) + length(field[++i])
33360 substed = 1
33361 } else
33362 len += 1 + keylen
33364 if (nfields == 3 && !substed) {
33365 key = field[2]
33366 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33367 \$ac_cs_awk_read_file
33368 next
33371 print line
33373 \$ac_cs_awk_pipe_fini
33374 _ACAWK
33375 _ACEOF
33376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33377 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33378 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33379 else
33381 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33382 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33383 _ACEOF
33385 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33386 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33387 # trailing colons and then remove the whole line if VPATH becomes empty
33388 # (actually we leave an empty line to preserve line numbers).
33389 if test "x$srcdir" = x.; then
33390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33392 s///
33393 s/^/:/
33394 s/[ ]*$/:/
33395 s/:\$(srcdir):/:/g
33396 s/:\${srcdir}:/:/g
33397 s/:@srcdir@:/:/g
33398 s/^:*//
33399 s/:*$//
33401 s/\(=[ ]*\).*/\1/
33403 s/\n//
33404 s/^[^=]*=[ ]*$//
33408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33409 fi # test -n "$CONFIG_FILES"
33411 # Set up the scripts for CONFIG_HEADERS section.
33412 # No need to generate them if there are no CONFIG_HEADERS.
33413 # This happens for instance with `./config.status Makefile'.
33414 if test -n "$CONFIG_HEADERS"; then
33415 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33416 BEGIN {
33417 _ACEOF
33419 # Transform confdefs.h into an awk script `defines.awk', embedded as
33420 # here-document in config.status, that substitutes the proper values into
33421 # config.h.in to produce config.h.
33423 # Create a delimiter string that does not exist in confdefs.h, to ease
33424 # handling of long lines.
33425 ac_delim='%!_!# '
33426 for ac_last_try in false false :; do
33427 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33428 if test -z "$ac_tt"; then
33429 break
33430 elif $ac_last_try; then
33431 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33432 else
33433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33435 done
33437 # For the awk script, D is an array of macro values keyed by name,
33438 # likewise P contains macro parameters if any. Preserve backslash
33439 # newline sequences.
33441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33442 sed -n '
33443 s/.\{148\}/&'"$ac_delim"'/g
33444 t rset
33445 :rset
33446 s/^[ ]*#[ ]*define[ ][ ]*/ /
33447 t def
33449 :def
33450 s/\\$//
33451 t bsnl
33452 s/["\\]/\\&/g
33453 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33454 D["\1"]=" \3"/p
33455 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33457 :bsnl
33458 s/["\\]/\\&/g
33459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33460 D["\1"]=" \3\\\\\\n"\\/p
33461 t cont
33462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33463 t cont
33465 :cont
33467 s/.\{148\}/&'"$ac_delim"'/g
33468 t clear
33469 :clear
33470 s/\\$//
33471 t bsnlc
33472 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33474 :bsnlc
33475 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33476 b cont
33477 ' <confdefs.h | sed '
33478 s/'"$ac_delim"'/"\\\
33479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33482 for (key in D) D_is_set[key] = 1
33483 FS = "\a"
33485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33486 line = \$ 0
33487 split(line, arg, " ")
33488 if (arg[1] == "#") {
33489 defundef = arg[2]
33490 mac1 = arg[3]
33491 } else {
33492 defundef = substr(arg[1], 2)
33493 mac1 = arg[2]
33495 split(mac1, mac2, "(") #)
33496 macro = mac2[1]
33497 prefix = substr(line, 1, index(line, defundef) - 1)
33498 if (D_is_set[macro]) {
33499 # Preserve the white space surrounding the "#".
33500 print prefix "define", macro P[macro] D[macro]
33501 next
33502 } else {
33503 # Replace #undef with comments. This is necessary, for example,
33504 # in the case of _POSIX_SOURCE, which is predefined and required
33505 # on some systems where configure will not decide to define it.
33506 if (defundef == "undef") {
33507 print "/*", prefix defundef, macro, "*/"
33508 next
33512 { print }
33513 _ACAWK
33514 _ACEOF
33515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33516 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33517 fi # test -n "$CONFIG_HEADERS"
33520 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33521 shift
33522 for ac_tag
33524 case $ac_tag in
33525 :[FHLC]) ac_mode=$ac_tag; continue;;
33526 esac
33527 case $ac_mode$ac_tag in
33528 :[FHL]*:*);;
33529 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33530 :[FH]-) ac_tag=-:-;;
33531 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33532 esac
33533 ac_save_IFS=$IFS
33534 IFS=:
33535 set x $ac_tag
33536 IFS=$ac_save_IFS
33537 shift
33538 ac_file=$1
33539 shift
33541 case $ac_mode in
33542 :L) ac_source=$1;;
33543 :[FH])
33544 ac_file_inputs=
33545 for ac_f
33547 case $ac_f in
33548 -) ac_f="$ac_tmp/stdin";;
33549 *) # Look for the file first in the build tree, then in the source tree
33550 # (if the path is not absolute). The absolute path cannot be DOS-style,
33551 # because $ac_f cannot contain `:'.
33552 test -f "$ac_f" ||
33553 case $ac_f in
33554 [\\/$]*) false;;
33555 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33556 esac ||
33557 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33558 esac
33559 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33560 as_fn_append ac_file_inputs " '$ac_f'"
33561 done
33563 # Let's still pretend it is `configure' which instantiates (i.e., don't
33564 # use $as_me), people would be surprised to read:
33565 # /* config.h. Generated by config.status. */
33566 configure_input='Generated from '`
33567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33568 `' by configure.'
33569 if test x"$ac_file" != x-; then
33570 configure_input="$ac_file. $configure_input"
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33572 $as_echo "$as_me: creating $ac_file" >&6;}
33574 # Neutralize special characters interpreted by sed in replacement strings.
33575 case $configure_input in #(
33576 *\&* | *\|* | *\\* )
33577 ac_sed_conf_input=`$as_echo "$configure_input" |
33578 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33579 *) ac_sed_conf_input=$configure_input;;
33580 esac
33582 case $ac_tag in
33583 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33585 esac
33587 esac
33589 ac_dir=`$as_dirname -- "$ac_file" ||
33590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33591 X"$ac_file" : 'X\(//\)[^/]' \| \
33592 X"$ac_file" : 'X\(//\)$' \| \
33593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33594 $as_echo X"$ac_file" |
33595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33596 s//\1/
33599 /^X\(\/\/\)[^/].*/{
33600 s//\1/
33603 /^X\(\/\/\)$/{
33604 s//\1/
33607 /^X\(\/\).*/{
33608 s//\1/
33611 s/.*/./; q'`
33612 as_dir="$ac_dir"; as_fn_mkdir_p
33613 ac_builddir=.
33615 case "$ac_dir" in
33616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33619 # A ".." for each directory in $ac_dir_suffix.
33620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33621 case $ac_top_builddir_sub in
33622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33624 esac ;;
33625 esac
33626 ac_abs_top_builddir=$ac_pwd
33627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33628 # for backward compatibility:
33629 ac_top_builddir=$ac_top_build_prefix
33631 case $srcdir in
33632 .) # We are building in place.
33633 ac_srcdir=.
33634 ac_top_srcdir=$ac_top_builddir_sub
33635 ac_abs_top_srcdir=$ac_pwd ;;
33636 [\\/]* | ?:[\\/]* ) # Absolute name.
33637 ac_srcdir=$srcdir$ac_dir_suffix;
33638 ac_top_srcdir=$srcdir
33639 ac_abs_top_srcdir=$srcdir ;;
33640 *) # Relative name.
33641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33642 ac_top_srcdir=$ac_top_build_prefix$srcdir
33643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33644 esac
33645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33648 case $ac_mode in
33651 # CONFIG_FILE
33654 _ACEOF
33656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33657 # If the template does not know about datarootdir, expand it.
33658 # FIXME: This hack should be removed a few years after 2.60.
33659 ac_datarootdir_hack=; ac_datarootdir_seen=
33660 ac_sed_dataroot='
33661 /datarootdir/ {
33665 /@datadir@/p
33666 /@docdir@/p
33667 /@infodir@/p
33668 /@localedir@/p
33669 /@mandir@/p'
33670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33671 *datarootdir*) ac_datarootdir_seen=yes;;
33672 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33675 _ACEOF
33676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33677 ac_datarootdir_hack='
33678 s&@datadir@&$datadir&g
33679 s&@docdir@&$docdir&g
33680 s&@infodir@&$infodir&g
33681 s&@localedir@&$localedir&g
33682 s&@mandir@&$mandir&g
33683 s&\\\${datarootdir}&$datarootdir&g' ;;
33684 esac
33685 _ACEOF
33687 # Neutralize VPATH when `$srcdir' = `.'.
33688 # Shell code in configure.ac might set extrasub.
33689 # FIXME: do we really want to maintain this feature?
33690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691 ac_sed_extra="$ac_vpsub
33692 $extrasub
33693 _ACEOF
33694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33696 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33697 s|@configure_input@|$ac_sed_conf_input|;t t
33698 s&@top_builddir@&$ac_top_builddir_sub&;t t
33699 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33700 s&@srcdir@&$ac_srcdir&;t t
33701 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33702 s&@top_srcdir@&$ac_top_srcdir&;t t
33703 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33704 s&@builddir@&$ac_builddir&;t t
33705 s&@abs_builddir@&$ac_abs_builddir&;t t
33706 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33707 $ac_datarootdir_hack
33709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33710 if $ac_cs_awk_getline; then
33711 $AWK -f "$ac_tmp/subs.awk"
33712 else
33713 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33714 fi \
33715 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33718 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33720 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33722 which seems to be undefined. Please make sure it is defined" >&5
33723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33724 which seems to be undefined. Please make sure it is defined" >&2;}
33726 rm -f "$ac_tmp/stdin"
33727 case $ac_file in
33728 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33729 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33730 esac \
33731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33735 # CONFIG_HEADER
33737 if test x"$ac_file" != x-; then
33739 $as_echo "/* $configure_input */" \
33740 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33741 } >"$ac_tmp/config.h" \
33742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33743 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33745 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33746 else
33747 rm -f "$ac_file"
33748 mv "$ac_tmp/config.h" "$ac_file" \
33749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33751 else
33752 $as_echo "/* $configure_input */" \
33753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33754 || as_fn_error $? "could not create -" "$LINENO" 5
33759 # CONFIG_LINK
33762 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33764 else
33765 # Prefer the file from the source tree if names are identical.
33766 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33767 ac_source=$srcdir/$ac_source
33770 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33771 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33773 if test ! -r "$ac_source"; then
33774 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33776 rm -f "$ac_file"
33778 # Try a relative symlink, then a hard link, then a copy.
33779 case $ac_source in
33780 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33781 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33782 esac
33783 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33784 ln "$ac_source" "$ac_file" 2>/dev/null ||
33785 cp -p "$ac_source" "$ac_file" ||
33786 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33789 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33790 $as_echo "$as_me: executing $ac_file commands" >&6;}
33792 esac
33795 case $ac_file$ac_mode in
33796 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33797 "gccdepdir":C)
33798 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33799 for lang in $subdirs c-family common analyzer rtl-ssa
33801 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33802 done ;;
33803 "as":F) chmod +x as ;;
33804 "collect-ld":F) chmod +x collect-ld ;;
33805 "nm":F) chmod +x nm ;;
33806 "dsymutil":F) chmod +x dsymutil ;;
33807 "default":C)
33808 case ${CONFIG_HEADERS} in
33809 *auto-host.h:config.in*)
33810 echo > cstamp-h ;;
33811 esac
33812 # Make sure all the subdirs exist.
33813 for d in $subdirs doc build common c-family
33815 test -d $d || mkdir $d
33816 done
33819 esac
33820 done # for ac_tag
33823 as_fn_exit 0
33824 _ACEOF
33825 ac_clean_files=$ac_clean_files_save
33827 test $ac_write_fail = 0 ||
33828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33831 # configure is writing to config.log, and then calls config.status.
33832 # config.status does its own redirection, appending to config.log.
33833 # Unfortunately, on DOS this fails, as config.log is still kept open
33834 # by configure, so config.status won't be able to write to it; its
33835 # output is simply discarded. So we exec the FD to /dev/null,
33836 # effectively closing config.log, so it can be properly (re)opened and
33837 # appended to by config.status. When coming back to configure, we
33838 # need to make the FD available again.
33839 if test "$no_create" != yes; then
33840 ac_cs_success=:
33841 ac_config_status_args=
33842 test "$silent" = yes &&
33843 ac_config_status_args="$ac_config_status_args --quiet"
33844 exec 5>/dev/null
33845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33846 exec 5>>config.log
33847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33848 # would make configure fail if this is the last instruction.
33849 $ac_cs_success || as_fn_exit 1
33851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}