tree-optimization/112618 - unused .MASK_CALL
[official-gcc.git] / gcc / configure
blobcc0c3aad67bef99610261b3f92f06b57358bf005
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 gt_needs=
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 CET_HOST_FLAGS
636 LD_PICFLAG
637 PICFLAG
638 enable_default_pie
639 enable_host_bind_now
640 enable_host_pie
641 enable_host_shared
642 enable_plugin
643 pluginlibs
644 ISLINC
645 ISLLIBS
646 GMPINC
647 GMPLIBS
648 target_cpu_default
649 rust_target_objs
650 d_target_objs
651 fortran_target_objs
652 cxx_target_objs
653 c_target_objs
654 use_gcc_stdint
655 xm_defines
656 xm_include_list
657 xm_file_list
658 tm_rust_include_list
659 tm_rust_file_list
660 tm_d_include_list
661 tm_d_file_list
662 tm_p_include_list
663 tm_p_file_list
664 tm_defines
665 tm_include_list
666 tm_file_list
667 common_out_object_file
668 common_out_file
669 out_object_file
670 out_file
671 objc_boehm_gc
672 md_file
673 local_prefix
674 lang_tree_files
675 lang_specs_files
676 lang_opt_files
677 install
678 out_host_hook_obj
679 host_xm_defines
680 host_xm_include_list
681 host_xm_file_list
682 host_exeext
683 gcc_gxx_libcxx_include_dir_add_sysroot
684 gcc_gxx_libcxx_include_dir
685 gcc_gxx_include_dir_add_sysroot
686 gcc_gxx_include_dir
687 gcc_config_arguments
688 float_h_file
689 extra_programs
690 extra_objs
691 extra_headers_list
692 user_headers_inc_next_post
693 user_headers_inc_next_pre
694 extra_gcc_objs
695 TM_MULTILIB_EXCEPTIONS_CONFIG
696 TM_MULTILIB_CONFIG
697 TM_ENDIAN_CONFIG
698 tmake_file
699 xmake_file
700 cpp_install_dir
701 selftest_languages
702 check_languages
703 build_file_translate
704 build_xm_defines
705 build_xm_include_list
706 build_xm_file_list
707 build_install_headers_dir
708 build_exeext
709 all_selected_languages
710 all_languages
711 all_lang_makefrags
712 all_lang_configurefrags
713 all_gtfiles
714 all_compilers
715 srcdir
716 subdirs
717 dollar
718 gcc_tooldir
719 enable_lto
720 DO_LINK_SERIALIZATION
721 DO_LINK_MUTEX
722 CSCOPE
723 ETAGS
724 CTAGS
725 MAINT
726 zlibinc
727 zlibdir
728 HOST_LIBS
729 enable_default_ssp
730 thin_archive_support
731 ld_soname_option
732 ld_version_script_option
733 libgcc_visibility
734 ORIGINAL_DSYMUTIL_FOR_TARGET
735 gcc_cv_dsymutil
736 gcc_cv_otool
737 gcc_cv_readelf
738 gcc_cv_objdump
739 ORIGINAL_NM_FOR_TARGET
740 gcc_cv_nm
741 ORIGINAL_LD_GOLD_FOR_TARGET
742 ORIGINAL_LD_BFD_FOR_TARGET
743 ORIGINAL_LD_FOR_TARGET
744 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 gcc_cv_ld
746 ORIGINAL_AS_FOR_TARGET
747 gcc_cv_as
748 ENABLE_DARWIN_AT_RPATH_FALSE
749 ENABLE_DARWIN_AT_RPATH_TRUE
750 enable_fast_install
751 objdir
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 STRIP
758 OBJDUMP
759 ac_ct_DUMPBIN
760 DUMPBIN
762 FGREP
764 LIBTOOL
765 collect2
766 STMP_FIXINC
767 BUILD_LDFLAGS
768 BUILD_CXXFLAGS
769 BUILD_CFLAGS
770 CXX_FOR_BUILD
771 CC_FOR_BUILD
772 inhibit_libc
773 BUILD_SYSTEM_HEADER_DIR
774 SYSTEM_HEADER_DIR
776 CROSS
777 CATOBJEXT
778 GENCAT
779 INSTOBJEXT
780 DATADIRNAME
781 CATALOGS
782 INCINTL
783 LIBINTL_DEP
784 POSUB
785 LTLIBINTL
786 LIBINTL
787 INTLLIBS
788 INTL_MACOSX_LIBS
789 MSGMERGE
790 XGETTEXT
791 GMSGFMT
792 MSGFMT
793 USE_NLS
794 MKINSTALLDIRS
795 INSTALL_SCRIPT
796 get_gcc_base_ver
797 HAVE_AUTO_BUILD
798 extra_opt_files
799 extra_modes_file
800 NATIVE_SYSTEM_HEADER_DIR
801 objext
802 manext
803 LIBICONV_DEP
804 LTLIBICONV
805 LIBICONV
806 ZSTD_LDFLAGS
807 ZSTD_CPPFLAGS
808 ZSTD_LIB
809 ZSTD_INCLUDE
810 DL_LIB
811 LDEXP_LIB
812 NETLIBS
813 EXTRA_GCC_LIBS
814 GNAT_LIBEXC
815 COLLECT2_LIBS
816 CXXDEPMODE
817 DEPDIR
818 am__leading_dot
819 doc_build_sys
822 HAVE_PYTHON
823 PYTHON
824 BISON
825 FLEX
826 GENERATED_MANPAGES
827 MAKEINFO_TOC_INLINE_FLAG
828 BUILD_INFO
829 MAKEINFO
830 have_mktemp_command
831 make_compare_target
832 INSTALL_DATA
833 INSTALL_PROGRAM
834 INSTALL
835 ranlib_flags
836 RANLIB
838 LN_S
840 SET_MAKE
841 omp_device_property_deps
842 omp_device_properties
843 accel_dir_suffix
844 real_target_noncanonical
845 enable_as_accelerator
846 gnat_install_lib
847 REPORT_BUGS_TEXI
848 REPORT_BUGS_TO
849 PKGVERSION
850 CONFIGURE_SPECS
851 enable_gcov
852 enable_shared
853 enable_fixed_point
854 enable_decimal_float
855 DEFAULT_INSNEMIT_PARTITIONS
856 DEFAULT_MATCHPD_PARTITIONS
857 with_float
858 with_cpu
859 enable_multiarch
860 enable_multilib
861 coverage_flags
862 valgrind_command
863 valgrind_path_defines
864 valgrind_path
865 TREECHECKING
866 nocommon_flag
867 noexception_flags
868 warn_cxxflags
869 warn_cflags
870 c_strict_warn
871 strict_warn
872 c_loose_warn
873 loose_warn
874 aliasing_flags
876 EGREP
877 GREP
878 CXXCPP
879 PICFLAG_FOR_TARGET
880 GDCFLAGS
882 GNATMAKE
883 GNATBIND
884 ac_ct_CXX
885 CXXFLAGS
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
894 GENINSRC
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
897 TARGET_SYSTEM_ROOT
898 SYSROOT_CFLAGS_FOR_TARGET
899 target_subdir
900 host_subdir
901 build_subdir
902 build_libsubdir
903 target_noncanonical
904 host_noncanonical
905 target_os
906 target_vendor
907 target_cpu
908 target
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_URL
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files='option_includes
956 language_hooks'
957 ac_user_opts='
958 enable_option_checking
959 with_build_libsubdir
960 with_local_prefix
961 with_native_system_header_dir
962 with_build_sysroot
963 with_sysroot
964 with_gxx_include_dir
965 with_gxx_libcxx_include_dir
966 with_cpp_install_dir
967 enable_generated_files_in_srcdir
968 with_gnu_ld
969 with_ld
970 with_demangler_in_ld
971 with_dsymutil
972 with_gnu_as
973 with_as
974 enable_largefile
975 enable_build_format_warnings
976 enable_werror_always
977 enable_checking
978 enable_coverage
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
981 enable_multilib
982 enable_multiarch
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
986 enable___cxa_atexit
987 enable_decimal_float
988 enable_fixed_point
989 enable_threads
990 enable_tls
991 enable_vtable_verify
992 enable_analyzer
993 enable_objc_gc
994 with_dwarf2
995 enable_shared
996 enable_gcov
997 with_specs
998 with_pkgversion
999 with_bugurl
1000 with_documentation_root_url
1001 with_changes_root_url
1002 enable_languages
1003 with_multilib_list
1004 with_multilib_generator
1005 with_zstd
1006 with_zstd_include
1007 with_zstd_lib
1008 enable_rpath
1009 with_libiconv_prefix
1010 with_libiconv_type
1011 enable_sjlj_exceptions
1012 with_gcc_major_version_only
1013 enable_nls
1014 with_libintl_prefix
1015 with_libintl_type
1016 enable_secureplt
1017 enable_mingw_wildcard
1018 enable_large_address_aware
1019 enable_leading_mingw64_underscores
1020 enable_cld
1021 enable_frame_pointer
1022 enable_win32_registry
1023 enable_static
1024 with_pic
1025 enable_fast_install
1026 enable_libtool_lock
1027 enable_darwin_at_rpath
1028 with_darwin_extra_rpath
1029 enable_ld
1030 enable_gold
1031 with_plugin_ld
1032 enable_gnu_indirect_function
1033 enable_initfini_array
1034 enable_comdat
1035 enable_newlib_nano_formatted_io
1036 enable_standard_branch_protection
1037 enable_fix_cortex_a53_835769
1038 enable_fix_cortex_a53_843419
1039 with_glibc_version
1040 enable_gnu_unique_object
1041 enable_linker_build_id
1042 enable_libssp
1043 enable_default_ssp
1044 with_long_double_128
1045 with_long_double_format
1046 with_gc
1047 with_system_zlib
1048 enable_maintainer_mode
1049 enable_link_mutex
1050 enable_link_serialization
1051 enable_version_specific_runtime_libs
1052 enable_plugin
1053 enable_host_shared
1054 enable_host_pie
1055 enable_host_bind_now
1056 enable_libquadmath_support
1057 with_linker_hash_style
1058 with_diagnostics_color
1059 with_diagnostics_urls
1060 enable_default_pie
1061 enable_cet
1062 enable_s390_excess_float_precision
1064 ac_precious_vars='build_alias
1065 host_alias
1066 target_alias
1068 CFLAGS
1069 LDFLAGS
1070 LIBS
1071 CPPFLAGS
1073 CXXFLAGS
1075 CXXCPP
1077 GMPLIBS
1078 GMPINC
1079 ISLLIBS
1080 ISLINC'
1083 # Initialize some variables set by options.
1084 ac_init_help=
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1091 exec_prefix=NONE
1092 no_create=
1093 no_recursion=
1094 prefix=NONE
1095 program_prefix=NONE
1096 program_suffix=NONE
1097 program_transform_name=s,x,x,
1098 silent=
1099 site=
1100 srcdir=
1101 verbose=
1102 x_includes=NONE
1103 x_libraries=NONE
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE}'
1122 infodir='${datarootdir}/info'
1123 htmldir='${docdir}'
1124 dvidir='${docdir}'
1125 pdfdir='${docdir}'
1126 psdir='${docdir}'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1131 ac_prev=
1132 ac_dashdash=
1133 for ac_option
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1138 ac_prev=
1139 continue
1142 case $ac_option in
1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 *=) ac_optarg= ;;
1145 *) ac_optarg=yes ;;
1146 esac
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1152 ac_dashdash=yes ;;
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155 ac_prev=bindir ;;
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1174 -datadir | --datadir | --datadi | --datad)
1175 ac_prev=datadir ;;
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval enable_$ac_useropt=no ;;
1202 -docdir | --docdir | --docdi | --doc | --do)
1203 ac_prev=docdir ;;
1204 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205 docdir=$ac_optarg ;;
1207 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208 ac_prev=dvidir ;;
1209 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210 dvidir=$ac_optarg ;;
1212 -enable-* | --enable-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid feature name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "enable_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval enable_$ac_useropt=\$ac_optarg ;;
1228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230 | --exec | --exe | --ex)
1231 ac_prev=exec_prefix ;;
1232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234 | --exec=* | --exe=* | --ex=*)
1235 exec_prefix=$ac_optarg ;;
1237 -gas | --gas | --ga | --g)
1238 # Obsolete; use --with-gas.
1239 with_gas=yes ;;
1241 -help | --help | --hel | --he | -h)
1242 ac_init_help=long ;;
1243 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244 ac_init_help=recursive ;;
1245 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246 ac_init_help=short ;;
1248 -host | --host | --hos | --ho)
1249 ac_prev=host_alias ;;
1250 -host=* | --host=* | --hos=* | --ho=*)
1251 host_alias=$ac_optarg ;;
1253 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1254 ac_prev=htmldir ;;
1255 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1256 | --ht=*)
1257 htmldir=$ac_optarg ;;
1259 -includedir | --includedir | --includedi | --included | --include \
1260 | --includ | --inclu | --incl | --inc)
1261 ac_prev=includedir ;;
1262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263 | --includ=* | --inclu=* | --incl=* | --inc=*)
1264 includedir=$ac_optarg ;;
1266 -infodir | --infodir | --infodi | --infod | --info | --inf)
1267 ac_prev=infodir ;;
1268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269 infodir=$ac_optarg ;;
1271 -libdir | --libdir | --libdi | --libd)
1272 ac_prev=libdir ;;
1273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274 libdir=$ac_optarg ;;
1276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277 | --libexe | --libex | --libe)
1278 ac_prev=libexecdir ;;
1279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280 | --libexe=* | --libex=* | --libe=*)
1281 libexecdir=$ac_optarg ;;
1283 -localedir | --localedir | --localedi | --localed | --locale)
1284 ac_prev=localedir ;;
1285 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286 localedir=$ac_optarg ;;
1288 -localstatedir | --localstatedir | --localstatedi | --localstated \
1289 | --localstate | --localstat | --localsta | --localst | --locals)
1290 ac_prev=localstatedir ;;
1291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293 localstatedir=$ac_optarg ;;
1295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1296 ac_prev=mandir ;;
1297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298 mandir=$ac_optarg ;;
1300 -nfp | --nfp | --nf)
1301 # Obsolete; use --without-fp.
1302 with_fp=no ;;
1304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305 | --no-cr | --no-c | -n)
1306 no_create=yes ;;
1308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1310 no_recursion=yes ;;
1312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314 | --oldin | --oldi | --old | --ol | --o)
1315 ac_prev=oldincludedir ;;
1316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319 oldincludedir=$ac_optarg ;;
1321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1322 ac_prev=prefix ;;
1323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324 prefix=$ac_optarg ;;
1326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327 | --program-pre | --program-pr | --program-p)
1328 ac_prev=program_prefix ;;
1329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331 program_prefix=$ac_optarg ;;
1333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334 | --program-suf | --program-su | --program-s)
1335 ac_prev=program_suffix ;;
1336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338 program_suffix=$ac_optarg ;;
1340 -program-transform-name | --program-transform-name \
1341 | --program-transform-nam | --program-transform-na \
1342 | --program-transform-n | --program-transform- \
1343 | --program-transform | --program-transfor \
1344 | --program-transfo | --program-transf \
1345 | --program-trans | --program-tran \
1346 | --progr-tra | --program-tr | --program-t)
1347 ac_prev=program_transform_name ;;
1348 -program-transform-name=* | --program-transform-name=* \
1349 | --program-transform-nam=* | --program-transform-na=* \
1350 | --program-transform-n=* | --program-transform-=* \
1351 | --program-transform=* | --program-transfor=* \
1352 | --program-transfo=* | --program-transf=* \
1353 | --program-trans=* | --program-tran=* \
1354 | --progr-tra=* | --program-tr=* | --program-t=*)
1355 program_transform_name=$ac_optarg ;;
1357 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1358 ac_prev=pdfdir ;;
1359 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360 pdfdir=$ac_optarg ;;
1362 -psdir | --psdir | --psdi | --psd | --ps)
1363 ac_prev=psdir ;;
1364 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1365 psdir=$ac_optarg ;;
1367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368 | -silent | --silent | --silen | --sile | --sil)
1369 silent=yes ;;
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372 ac_prev=sbindir ;;
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374 | --sbi=* | --sb=*)
1375 sbindir=$ac_optarg ;;
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1380 | --sha | --sh)
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385 | --sha=* | --sh=*)
1386 sharedstatedir=$ac_optarg ;;
1388 -site | --site | --sit)
1389 ac_prev=site ;;
1390 -site=* | --site=* | --sit=*)
1391 site=$ac_optarg ;;
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394 ac_prev=srcdir ;;
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1411 verbose=yes ;;
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1416 -with-* | --with-*)
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1425 "with_$ac_useropt"
1426 "*) ;;
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1429 esac
1430 eval with_$ac_useropt=\$ac_optarg ;;
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1441 "with_$ac_useropt"
1442 "*) ;;
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1445 esac
1446 eval with_$ac_useropt=no ;;
1448 --x)
1449 # Obsolete; use --with-x.
1450 with_x=yes ;;
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1470 *=*)
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476 esac
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1488 esac
1489 done
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1498 no) ;;
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1501 esac
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1512 case $ac_val in
1513 */ )
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1516 esac
1517 # Be sure to have absolute directory names.
1518 case $ac_val in
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521 esac
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1523 done
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1528 build=$build_alias
1529 host=$host_alias
1530 target=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1537 cross_compiling=yes
1541 ac_tool_prefix=
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544 test "$silent" = yes && exec 6>/dev/null
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1566 s//\1/
1569 /^X\(\/\/\)[^/].*/{
1570 s//\1/
1573 /^X\(\/\/\)$/{
1574 s//\1/
1577 /^X\(\/\).*/{
1578 s//\1/
1581 s/.*/./; q'`
1582 srcdir=$ac_confdir
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1584 srcdir=..
1586 else
1587 ac_srcdir_defaulted=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 ac_abs_confdir=`(
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596 pwd)`
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1599 srcdir=.
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1604 case $srcdir in
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 esac
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1612 done
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1620 cat <<_ACEOF
1621 \`configure' configures this package to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1630 Configuration:
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1645 [PREFIX]
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1674 _ACEOF
1676 cat <<\_ACEOF
1678 Program names:
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1683 System types:
1684 --build=BUILD configure for building on BUILD [guessed]
1685 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1686 --target=TARGET configure for building compilers for TARGET [HOST]
1687 _ACEOF
1690 if test -n "$ac_init_help"; then
1692 cat <<\_ACEOF
1694 Optional Features:
1695 --disable-option-checking ignore unrecognized --enable/--with options
1696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1698 --enable-generated-files-in-srcdir
1699 put copies of generated files in source dir intended
1700 for creating source tarballs for users without
1701 texinfo bison or flex
1702 --disable-largefile omit support for large files
1703 --disable-build-format-warnings
1704 don't use -Wformat while building GCC
1705 --enable-werror-always enable -Werror despite compiler version
1706 --enable-checking[=LIST]
1707 enable expensive run-time checks. With LIST, enable
1708 only specific categories of checks. Categories are:
1709 yes,no,all,none,release. Flags are:
1710 assert,df,extra,fold,gc,gcac,gimple,misc,
1711 rtlflag,rtl,runtime,tree,valgrind,types
1712 --enable-coverage[=LEVEL]
1713 enable compiler's code coverage collection. Use to
1714 measure compiler performance and locate unused parts
1715 of the compiler. With LEVEL, specify optimization.
1716 Values are opt, noopt, default is noopt
1717 --enable-gather-detailed-mem-stats
1718 enable detailed memory allocation stats gathering
1719 --enable-valgrind-annotations
1720 enable valgrind runtime interaction
1721 --enable-multilib enable library support for multiple ABIs
1722 --enable-multiarch enable support for multiarch paths
1723 --enable-__cxa_atexit enable __cxa_atexit for C++
1724 --enable-decimal-float={no,yes,bid,dpd}
1725 enable decimal float extension to C. Selecting 'bid'
1726 or 'dpd' choses which decimal floating point format
1727 to use
1728 --enable-fixed-point enable fixed-point arithmetic extension to C
1729 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1730 package
1731 --enable-tls enable or disable generation of tls code overriding
1732 the assembler check for tls support
1733 --enable-vtable-verify enable vtable verification feature
1734 --disable-analyzer disable -fanalyzer static analyzer
1735 --enable-objc-gc enable the use of Boehm's garbage collector with the
1736 GNU Objective-C runtime
1737 --disable-shared don't provide a shared libgcc
1738 --disable-gcov don't provide libgcov and related host tools
1739 --enable-languages=LIST specify which front-ends to build
1740 --disable-rpath do not hardcode runtime library paths
1741 --enable-sjlj-exceptions
1742 arrange to use setjmp/longjmp exception handling
1743 --disable-nls do not use Native Language Support
1744 --enable-secureplt enable -msecure-plt by default for PowerPC
1745 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1746 Default to platform configuration
1747 --enable-large-address-aware
1748 Link mingw executables with --large-address-aware
1749 --enable-leading-mingw64-underscores
1750 enable leading underscores on 64 bit mingw targets
1751 --enable-cld enable -mcld by default for 32bit x86
1752 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1753 --disable-win32-registry
1754 disable lookup of installation paths in the Registry
1755 on Windows hosts
1756 --enable-win32-registry enable registry lookup (default)
1757 --enable-win32-registry=KEY
1758 use KEY instead of GCC version as the last portion
1759 of the registry key
1760 --enable-shared[=PKGS] build shared libraries [default=yes]
1761 --enable-static[=PKGS] build static libraries [default=yes]
1762 --enable-fast-install[=PKGS]
1763 optimize for fast installation [default=yes]
1764 --disable-libtool-lock avoid locking (might break parallel builds)
1765 --enable-darwin-at-rpath
1766 install libraries with @rpath/library-name, requires
1767 rpaths to be added to executables
1768 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1769 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1770 --enable-gnu-indirect-function
1771 enable the use of the @gnu_indirect_function to
1772 glibc systems
1773 --enable-initfini-array use .init_array/.fini_array sections
1774 --enable-comdat enable COMDAT group support
1775 --enable-newlib-nano-formatted-io
1776 Use nano version formatted IO
1778 --enable-standard-branch-protection
1779 enable Branch Target Identification Mechanism and
1780 Return Address Signing by default for AArch64
1781 --disable-standard-branch-protection
1782 disable Branch Target Identification Mechanism and
1783 Return Address Signing by default for AArch64
1786 --enable-fix-cortex-a53-835769
1787 enable workaround for AArch64 Cortex-A53 erratum
1788 835769 by default
1789 --disable-fix-cortex-a53-835769
1790 disable workaround for AArch64 Cortex-A53 erratum
1791 835769 by default
1794 --enable-fix-cortex-a53-843419
1795 enable workaround for AArch64 Cortex-A53 erratum
1796 843419 by default
1797 --disable-fix-cortex-a53-843419
1798 disable workaround for AArch64 Cortex-A53 erratum
1799 843419 by default
1801 --enable-gnu-unique-object
1802 enable the use of the @gnu_unique_object ELF
1803 extension on glibc systems
1804 --enable-linker-build-id
1805 compiler will always pass --build-id to linker
1806 --enable-libssp enable linking against libssp
1807 --enable-default-ssp enable Stack Smashing Protection as default
1808 --enable-maintainer-mode
1809 enable make rules and dependencies not useful (and
1810 sometimes confusing) to the casual installer
1811 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1812 thrashing on the build machine
1813 --enable-link-serialization
1814 avoid linking multiple GCC front-ends at once using
1815 make dependencies to avoid thrashing on the build
1816 machine
1817 --enable-version-specific-runtime-libs
1818 specify that runtime libraries should be installed
1819 in a compiler-specific directory
1820 --enable-plugin enable plugin support
1821 --enable-host-shared build host code as shared libraries
1822 --enable-host-pie build host code as PIE
1823 --enable-host-bind-now link host code as BIND_NOW
1824 --disable-libquadmath-support
1825 disable libquadmath support for Fortran
1826 --enable-default-pie enable Position Independent Executable as default
1827 --enable-cet enable Intel CET in host libraries [default=auto]
1828 --enable-s390-excess-float-precision
1829 on s390 targets, evaluate float with double
1830 precision when in standards-conforming mode
1832 Optional Packages:
1833 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1834 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1835 --with-build-libsubdir=DIR Directory where to find libraries for build system
1836 --with-local-prefix=DIR specifies directory to put local include
1837 --with-native-system-header-dir=dir
1838 use dir as the directory to look for standard
1839 system header files in. Defaults to /usr/include.
1840 --with-build-sysroot=sysroot
1841 use sysroot as the system root during the build
1842 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1843 --with-gxx-include-dir=DIR
1844 specifies directory to put g++ header files
1845 --with-gxx-libcxx-include-dir=DIR
1846 specifies directory to find libc++ header files
1847 --with-cpp-install-dir=DIR
1848 install the user visible C preprocessor in DIR
1849 (relative to PREFIX) as well as PREFIX/bin
1850 --with-gnu-ld arrange to work with GNU ld
1851 --with-ld arrange to use the specified ld (full pathname)
1852 --with-demangler-in-ld try to use demangler in GNU ld
1853 --with-dsymutil arrange to use the specified dsymutil (full
1854 pathname)
1855 --with-gnu-as arrange to work with GNU as
1856 --with-as arrange to use the specified as (full pathname)
1857 --with-stack-clash-protection-guard-size=size
1858 Set the default stack clash protection guard size
1859 for specific targets as a power of two in bytes.
1860 --with-matchpd-partitions=num
1861 Set the number of partitions to make for gimple and
1862 generic when splitting match.pd. [default=10]
1863 --with-insnemit-partitions=num
1864 Set the number of partitions of insn-emit.cc for
1865 genemit to create. [default=10]
1866 --with-dwarf2 force the default debug format to be DWARF 2 (or
1867 later)
1868 --with-specs=SPECS add SPECS to driver command-line processing
1869 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1870 --with-bugurl=URL Direct users to URL to report a bug
1871 --with-documentation-root-url=URL
1872 Root for documentation URLs
1873 --with-changes-root-url=URL
1874 Root for GCC changes URLs
1875 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1876 SH and x86-64 only)
1877 --with-multilib-generator
1878 Multi-libs configuration string (RISC-V only)
1879 --with-zstd=PATH specify prefix directory for installed zstd library.
1880 Equivalent to --with-zstd-include=PATH/include plus
1881 --with-zstd-lib=PATH/lib
1882 --with-zstd-include=PATH
1883 specify directory for installed zstd include files
1884 --with-zstd-lib=PATH specify directory for the installed zstd library
1885 --with-gnu-ld assume the C compiler uses GNU ld default=no
1886 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1887 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1888 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1889 --with-gcc-major-version-only
1890 use only GCC major number in filesystem paths
1891 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1892 --without-libintl-prefix don't search for libintl in includedir and libdir
1893 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1894 --with-pic try to use only PIC/non-PIC objects [default=use
1895 both]
1896 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1897 --with-darwin-extra-rpath=[ARG]
1898 Specify a runpath directory, additional to those
1899 provided by the compiler
1900 --with-plugin-ld=[ARG] specify the plugin linker
1901 --with-glibc-version=M.N
1902 assume GCC used with glibc version M.N or later
1903 --with-long-double-128 use 128-bit long double by default
1904 --with-long-double-format={ieee,ibm}
1905 Specify whether PowerPC long double uses IEEE or IBM format
1907 --with-gc={page,zone} this option is not supported anymore. It used to
1908 choose the garbage collection mechanism to use with
1909 the compiler
1910 --with-system-zlib use installed libz
1911 --with-linker-hash-style={sysv,gnu,both}
1912 specify the linker hash style
1913 --with-diagnostics-color={never,auto,auto-if-env,always}
1914 specify the default of -fdiagnostics-color option
1915 auto-if-env stands for -fdiagnostics-color=auto if
1916 GCC_COLOR environment variable is present and
1917 -fdiagnostics-color=never otherwise
1918 --with-diagnostics-urls={never,auto,auto-if-env,always}
1919 specify the default of -fdiagnostics-urls option
1920 auto-if-env stands for -fdiagnostics-urls=auto if
1921 GCC_URLS or TERM_URLS environment variable is
1922 present and -fdiagnostics-urls=never otherwise
1924 Some influential environment variables:
1925 CC C compiler command
1926 CFLAGS C compiler flags
1927 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1928 nonstandard directory <lib dir>
1929 LIBS libraries to pass to the linker, e.g. -l<library>
1930 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1931 you have headers in a nonstandard directory <include dir>
1932 CXX C++ compiler command
1933 CXXFLAGS C++ compiler flags
1934 CXXCPP C++ preprocessor
1935 CPP C preprocessor
1936 GMPLIBS How to link GMP
1937 GMPINC How to find GMP include files
1938 ISLLIBS How to link isl
1939 ISLINC How to find isl include files
1941 Use these variables to override the choices made by `configure' or to help
1942 it to find libraries and programs with nonstandard names/locations.
1944 Report bugs to the package provider.
1945 _ACEOF
1946 ac_status=$?
1949 if test "$ac_init_help" = "recursive"; then
1950 # If there are subdirs, report their specific --help.
1951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1952 test -d "$ac_dir" ||
1953 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1954 continue
1955 ac_builddir=.
1957 case "$ac_dir" in
1958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1961 # A ".." for each directory in $ac_dir_suffix.
1962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1963 case $ac_top_builddir_sub in
1964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1966 esac ;;
1967 esac
1968 ac_abs_top_builddir=$ac_pwd
1969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1970 # for backward compatibility:
1971 ac_top_builddir=$ac_top_build_prefix
1973 case $srcdir in
1974 .) # We are building in place.
1975 ac_srcdir=.
1976 ac_top_srcdir=$ac_top_builddir_sub
1977 ac_abs_top_srcdir=$ac_pwd ;;
1978 [\\/]* | ?:[\\/]* ) # Absolute name.
1979 ac_srcdir=$srcdir$ac_dir_suffix;
1980 ac_top_srcdir=$srcdir
1981 ac_abs_top_srcdir=$srcdir ;;
1982 *) # Relative name.
1983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1984 ac_top_srcdir=$ac_top_build_prefix$srcdir
1985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1986 esac
1987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1989 cd "$ac_dir" || { ac_status=$?; continue; }
1990 # Check for guested configure.
1991 if test -f "$ac_srcdir/configure.gnu"; then
1992 echo &&
1993 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1994 elif test -f "$ac_srcdir/configure"; then
1995 echo &&
1996 $SHELL "$ac_srcdir/configure" --help=recursive
1997 else
1998 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1999 fi || ac_status=$?
2000 cd "$ac_pwd" || { ac_status=$?; break; }
2001 done
2004 test -n "$ac_init_help" && exit $ac_status
2005 if $ac_init_version; then
2006 cat <<\_ACEOF
2007 configure
2008 generated by GNU Autoconf 2.69
2010 Copyright (C) 2012 Free Software Foundation, Inc.
2011 This configure script is free software; the Free Software Foundation
2012 gives unlimited permission to copy, distribute and modify it.
2013 _ACEOF
2014 exit
2017 ## ------------------------ ##
2018 ## Autoconf initialization. ##
2019 ## ------------------------ ##
2021 # ac_fn_c_try_compile LINENO
2022 # --------------------------
2023 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2024 ac_fn_c_try_compile ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 rm -f conftest.$ac_objext
2028 if { { ac_try="$ac_compile"
2029 case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_compile") 2>conftest.err
2036 ac_status=$?
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && {
2044 test -z "$ac_c_werror_flag" ||
2045 test ! -s conftest.err
2046 } && test -s conftest.$ac_objext; then :
2047 ac_retval=0
2048 else
2049 $as_echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2052 ac_retval=1
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 as_fn_set_status $ac_retval
2057 } # ac_fn_c_try_compile
2059 # ac_fn_cxx_try_compile LINENO
2060 # ----------------------------
2061 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_cxx_try_compile ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext
2066 if { { ac_try="$ac_compile"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_compile") 2>conftest.err
2074 ac_status=$?
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_cxx_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest.$ac_objext; then :
2085 ac_retval=0
2086 else
2087 $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2090 ac_retval=1
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2095 } # ac_fn_cxx_try_compile
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=1
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2132 } # ac_fn_cxx_try_cpp
2134 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2135 # ---------------------------------------------------------
2136 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2137 # the include files in INCLUDES and setting the cache variable VAR
2138 # accordingly.
2139 ac_fn_cxx_check_header_mongrel ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if eval \${$3+:} false; then :
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval \${$3+:} false; then :
2146 $as_echo_n "(cached) " >&6
2148 eval ac_res=\$$3
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 else
2152 # Is the header compilable?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2154 $as_echo_n "checking $2 usability... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2158 #include <$2>
2159 _ACEOF
2160 if ac_fn_cxx_try_compile "$LINENO"; then :
2161 ac_header_compiler=yes
2162 else
2163 ac_header_compiler=no
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2167 $as_echo "$ac_header_compiler" >&6; }
2169 # Is the header present?
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2171 $as_echo_n "checking $2 presence... " >&6; }
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 #include <$2>
2175 _ACEOF
2176 if ac_fn_cxx_try_cpp "$LINENO"; then :
2177 ac_header_preproc=yes
2178 else
2179 ac_header_preproc=no
2181 rm -f conftest.err conftest.i conftest.$ac_ext
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2183 $as_echo "$ac_header_preproc" >&6; }
2185 # So? What about this header?
2186 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2187 yes:no: )
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2189 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 no:yes:* )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2195 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2197 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2199 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2201 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 esac
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 eval "$3=\$ac_header_compiler"
2213 eval ac_res=\$$3
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 } # ac_fn_cxx_check_header_mongrel
2221 # ac_fn_cxx_try_run LINENO
2222 # ------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2224 # that executables *can* be run.
2225 ac_fn_cxx_try_run ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2239 { { case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_try") 2>&5
2246 ac_status=$?
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; }; }; then :
2249 ac_retval=0
2250 else
2251 $as_echo "$as_me: program exited with status $ac_status" >&5
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_retval=$ac_status
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2261 } # ac_fn_cxx_try_run
2263 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2264 # ---------------------------------------------------------
2265 # Tests whether HEADER exists and can be compiled using the include files in
2266 # INCLUDES, setting the cache variable VAR accordingly.
2267 ac_fn_cxx_check_header_compile ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2278 #include <$2>
2279 _ACEOF
2280 if ac_fn_cxx_try_compile "$LINENO"; then :
2281 eval "$3=yes"
2282 else
2283 eval "$3=no"
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 } # ac_fn_cxx_check_header_compile
2294 # ac_fn_c_try_cpp LINENO
2295 # ----------------------
2296 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2297 ac_fn_c_try_cpp ()
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_cpp conftest.$ac_ext"
2301 case "(($ac_try" in
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2308 ac_status=$?
2309 if test -s conftest.err; then
2310 grep -v '^ *+' conftest.err >conftest.er1
2311 cat conftest.er1 >&5
2312 mv -f conftest.er1 conftest.err
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } > conftest.i && {
2316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2317 test ! -s conftest.err
2318 }; then :
2319 ac_retval=0
2320 else
2321 $as_echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2324 ac_retval=1
2326 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_c_try_cpp
2331 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2332 # ----------------------------------------------
2333 # Tries to find the compile-time value of EXPR in a program that includes
2334 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2335 # computed
2336 ac_fn_cxx_compute_int ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 if test "$cross_compiling" = yes; then
2340 # Depending upon the size, compute the lo and hi bounds.
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 main ()
2347 static int test_array [1 - 2 * !(($2) >= 0)];
2348 test_array [0] = 0;
2349 return test_array [0];
2352 return 0;
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2356 ac_lo=0 ac_mid=0
2357 while :; do
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2362 main ()
2364 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2365 test_array [0] = 0;
2366 return test_array [0];
2369 return 0;
2371 _ACEOF
2372 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 ac_hi=$ac_mid; break
2374 else
2375 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2376 if test $ac_lo -le $ac_mid; then
2377 ac_lo= ac_hi=
2378 break
2380 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 done
2384 else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2389 main ()
2391 static int test_array [1 - 2 * !(($2) < 0)];
2392 test_array [0] = 0;
2393 return test_array [0];
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 ac_hi=-1 ac_mid=-1
2401 while :; do
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2406 main ()
2408 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2409 test_array [0] = 0;
2410 return test_array [0];
2413 return 0;
2415 _ACEOF
2416 if ac_fn_cxx_try_compile "$LINENO"; then :
2417 ac_lo=$ac_mid; break
2418 else
2419 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2420 if test $ac_mid -le $ac_hi; then
2421 ac_lo= ac_hi=
2422 break
2424 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 else
2429 ac_lo= ac_hi=
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 # Binary search between lo and hi bounds.
2435 while test "x$ac_lo" != "x$ac_hi"; do
2436 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2441 main ()
2443 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2444 test_array [0] = 0;
2445 return test_array [0];
2448 return 0;
2450 _ACEOF
2451 if ac_fn_cxx_try_compile "$LINENO"; then :
2452 ac_hi=$ac_mid
2453 else
2454 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 done
2458 case $ac_lo in #((
2459 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2460 '') ac_retval=1 ;;
2461 esac
2462 else
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2466 static long int longval () { return $2; }
2467 static unsigned long int ulongval () { return $2; }
2468 #include <stdio.h>
2469 #include <stdlib.h>
2471 main ()
2474 FILE *f = fopen ("conftest.val", "w");
2475 if (! f)
2476 return 1;
2477 if (($2) < 0)
2479 long int i = longval ();
2480 if (i != ($2))
2481 return 1;
2482 fprintf (f, "%ld", i);
2484 else
2486 unsigned long int i = ulongval ();
2487 if (i != ($2))
2488 return 1;
2489 fprintf (f, "%lu", i);
2491 /* Do not output a trailing newline, as this causes \r\n confusion
2492 on some platforms. */
2493 return ferror (f) || fclose (f) != 0;
2496 return 0;
2498 _ACEOF
2499 if ac_fn_cxx_try_run "$LINENO"; then :
2500 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2501 else
2502 ac_retval=1
2504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2505 conftest.$ac_objext conftest.beam conftest.$ac_ext
2506 rm -f conftest.val
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510 as_fn_set_status $ac_retval
2512 } # ac_fn_cxx_compute_int
2514 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2515 # ---------------------------------------------
2516 # Tests whether TYPE exists after having included INCLUDES, setting cache
2517 # variable VAR accordingly.
2518 ac_fn_cxx_check_type ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if eval \${$3+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 eval "$3=no"
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2531 main ()
2533 if (sizeof ($2))
2534 return 0;
2536 return 0;
2538 _ACEOF
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2544 main ()
2546 if (sizeof (($2)))
2547 return 0;
2549 return 0;
2551 _ACEOF
2552 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 else
2555 eval "$3=yes"
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 } # ac_fn_cxx_check_type
2568 # ac_fn_c_find_intX_t LINENO BITS VAR
2569 # -----------------------------------
2570 # Finds a signed integer type with width BITS, setting cache variable VAR
2571 # accordingly.
2572 ac_fn_c_find_intX_t ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2576 $as_echo_n "checking for int$2_t... " >&6; }
2577 if eval \${$3+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 eval "$3=no"
2581 # Order is important - never check a type that is potentially smaller
2582 # than half of the expected target width.
2583 for ac_type in int$2_t 'int' 'long int' \
2584 'long long int' 'short int' 'signed char'; do
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2587 $ac_includes_default
2588 enum { N = $2 / 2 - 1 };
2590 main ()
2592 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2593 test_array [0] = 0;
2594 return test_array [0];
2597 return 0;
2599 _ACEOF
2600 if ac_fn_cxx_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603 $ac_includes_default
2604 enum { N = $2 / 2 - 1 };
2606 main ()
2608 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2609 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2610 test_array [0] = 0;
2611 return test_array [0];
2614 return 0;
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2619 else
2620 case $ac_type in #(
2621 int$2_t) :
2622 eval "$3=yes" ;; #(
2623 *) :
2624 eval "$3=\$ac_type" ;;
2625 esac
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 if eval test \"x\$"$3"\" = x"no"; then :
2632 else
2633 break
2635 done
2637 eval ac_res=\$$3
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 } # ac_fn_c_find_intX_t
2644 # ac_fn_cxx_try_link LINENO
2645 # -------------------------
2646 # Try to link conftest.$ac_ext, and return whether this succeeded.
2647 ac_fn_cxx_try_link ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 rm -f conftest.$ac_objext conftest$ac_exeext
2651 if { { ac_try="$ac_link"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657 $as_echo "$ac_try_echo"; } >&5
2658 (eval "$ac_link") 2>conftest.err
2659 ac_status=$?
2660 if test -s conftest.err; then
2661 grep -v '^ *+' conftest.err >conftest.er1
2662 cat conftest.er1 >&5
2663 mv -f conftest.er1 conftest.err
2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; } && {
2667 test -z "$ac_cxx_werror_flag" ||
2668 test ! -s conftest.err
2669 } && test -s conftest$ac_exeext && {
2670 test "$cross_compiling" = yes ||
2671 test -x conftest$ac_exeext
2672 }; then :
2673 ac_retval=0
2674 else
2675 $as_echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 ac_retval=1
2680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2682 # interfere with the next link command; also delete a directory that is
2683 # left behind by Apple's compiler. We do this before executing the actions.
2684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2686 as_fn_set_status $ac_retval
2688 } # ac_fn_cxx_try_link
2690 # ac_fn_c_find_uintX_t LINENO BITS VAR
2691 # ------------------------------------
2692 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2693 # accordingly.
2694 ac_fn_c_find_uintX_t ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2698 $as_echo_n "checking for uint$2_t... " >&6; }
2699 if eval \${$3+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 eval "$3=no"
2703 # Order is important - never check a type that is potentially smaller
2704 # than half of the expected target width.
2705 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2706 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h. */
2709 $ac_includes_default
2711 main ()
2713 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2714 test_array [0] = 0;
2715 return test_array [0];
2718 return 0;
2720 _ACEOF
2721 if ac_fn_cxx_try_compile "$LINENO"; then :
2722 case $ac_type in #(
2723 uint$2_t) :
2724 eval "$3=yes" ;; #(
2725 *) :
2726 eval "$3=\$ac_type" ;;
2727 esac
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 if eval test \"x\$"$3"\" = x"no"; then :
2732 else
2733 break
2735 done
2737 eval ac_res=\$$3
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742 } # ac_fn_c_find_uintX_t
2744 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2745 # ------------------------------------------------
2746 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2747 ac_fn_cxx_check_header_preproc ()
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2751 $as_echo_n "checking for $2... " >&6; }
2752 if eval \${$3+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2757 #include <$2>
2758 _ACEOF
2759 if ac_fn_cxx_try_cpp "$LINENO"; then :
2760 eval "$3=yes"
2761 else
2762 eval "$3=no"
2764 rm -f conftest.err conftest.i conftest.$ac_ext
2766 eval ac_res=\$$3
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2768 $as_echo "$ac_res" >&6; }
2769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2771 } # ac_fn_cxx_check_header_preproc
2773 # ac_fn_cxx_check_func LINENO FUNC VAR
2774 # ------------------------------------
2775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2776 ac_fn_cxx_check_func ()
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780 $as_echo_n "checking for $2... " >&6; }
2781 if eval \${$3+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2788 #define $2 innocuous_$2
2790 /* System header to define __stub macros and hopefully few prototypes,
2791 which can conflict with char $2 (); below.
2792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2793 <limits.h> exists even on freestanding compilers. */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2801 #undef $2
2803 /* Override any GCC internal prototype to avoid an error.
2804 Use char because int might match the return type of a GCC
2805 builtin and then its argument prototype would still apply. */
2806 #ifdef __cplusplus
2807 extern "C"
2808 #endif
2809 char $2 ();
2810 /* The GNU C library defines this for functions which it implements
2811 to always fail with ENOSYS. Some functions are actually named
2812 something starting with __ and the normal name is an alias. */
2813 #if defined __stub_$2 || defined __stub___$2
2814 choke me
2815 #endif
2818 main ()
2820 return $2 ();
2822 return 0;
2824 _ACEOF
2825 if ac_fn_cxx_try_link "$LINENO"; then :
2826 eval "$3=yes"
2827 else
2828 eval "$3=no"
2830 rm -f core conftest.err conftest.$ac_objext \
2831 conftest$ac_exeext conftest.$ac_ext
2833 eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2838 } # ac_fn_cxx_check_func
2840 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2841 # -----------------------------------------------
2842 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2843 # accordingly.
2844 ac_fn_cxx_check_decl ()
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 as_decl_name=`echo $2|sed 's/ *(.*//'`
2848 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2850 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2851 if eval \${$3+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2858 main ()
2860 #ifndef $as_decl_name
2861 #ifdef __cplusplus
2862 (void) $as_decl_use;
2863 #else
2864 (void) $as_decl_name;
2865 #endif
2866 #endif
2869 return 0;
2871 _ACEOF
2872 if ac_fn_cxx_try_compile "$LINENO"; then :
2873 eval "$3=yes"
2874 else
2875 eval "$3=no"
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 eval ac_res=\$$3
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2881 $as_echo "$ac_res" >&6; }
2882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2884 } # ac_fn_cxx_check_decl
2886 # ac_fn_c_try_link LINENO
2887 # -----------------------
2888 # Try to link conftest.$ac_ext, and return whether this succeeded.
2889 ac_fn_c_try_link ()
2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892 rm -f conftest.$ac_objext conftest$ac_exeext
2893 if { { ac_try="$ac_link"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link") 2>conftest.err
2901 ac_status=$?
2902 if test -s conftest.err; then
2903 grep -v '^ *+' conftest.err >conftest.er1
2904 cat conftest.er1 >&5
2905 mv -f conftest.er1 conftest.err
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest$ac_exeext && {
2912 test "$cross_compiling" = yes ||
2913 test -x conftest$ac_exeext
2914 }; then :
2915 ac_retval=0
2916 else
2917 $as_echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 ac_retval=1
2922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2924 # interfere with the next link command; also delete a directory that is
2925 # left behind by Apple's compiler. We do this before executing the actions.
2926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2928 as_fn_set_status $ac_retval
2930 } # ac_fn_c_try_link
2932 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2933 # ----------------------------------------------
2934 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2935 ac_fn_c_check_header_preproc ()
2937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2939 $as_echo_n "checking for $2... " >&6; }
2940 if eval \${$3+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944 /* end confdefs.h. */
2945 #include <$2>
2946 _ACEOF
2947 if ac_fn_c_try_cpp "$LINENO"; then :
2948 eval "$3=yes"
2949 else
2950 eval "$3=no"
2952 rm -f conftest.err conftest.i conftest.$ac_ext
2954 eval ac_res=\$$3
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2956 $as_echo "$ac_res" >&6; }
2957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2959 } # ac_fn_c_check_header_preproc
2961 # ac_fn_c_check_func LINENO FUNC VAR
2962 # ----------------------------------
2963 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2964 ac_fn_c_check_func ()
2966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2968 $as_echo_n "checking for $2... " >&6; }
2969 if eval \${$3+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2974 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2976 #define $2 innocuous_$2
2978 /* System header to define __stub macros and hopefully few prototypes,
2979 which can conflict with char $2 (); below.
2980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 <limits.h> exists even on freestanding compilers. */
2983 #ifdef __STDC__
2984 # include <limits.h>
2985 #else
2986 # include <assert.h>
2987 #endif
2989 #undef $2
2991 /* Override any GCC internal prototype to avoid an error.
2992 Use char because int might match the return type of a GCC
2993 builtin and then its argument prototype would still apply. */
2994 #ifdef __cplusplus
2995 extern "C"
2996 #endif
2997 char $2 ();
2998 /* The GNU C library defines this for functions which it implements
2999 to always fail with ENOSYS. Some functions are actually named
3000 something starting with __ and the normal name is an alias. */
3001 #if defined __stub_$2 || defined __stub___$2
3002 choke me
3003 #endif
3006 main ()
3008 return $2 ();
3010 return 0;
3012 _ACEOF
3013 if ac_fn_c_try_link "$LINENO"; then :
3014 eval "$3=yes"
3015 else
3016 eval "$3=no"
3018 rm -f core conftest.err conftest.$ac_objext \
3019 conftest$ac_exeext conftest.$ac_ext
3021 eval ac_res=\$$3
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3023 $as_echo "$ac_res" >&6; }
3024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3026 } # ac_fn_c_check_func
3027 cat >config.log <<_ACEOF
3028 This file contains any messages produced by compilers while
3029 running configure, to aid debugging if configure makes a mistake.
3031 It was created by $as_me, which was
3032 generated by GNU Autoconf 2.69. Invocation command line was
3034 $ $0 $@
3036 _ACEOF
3037 exec 5>>config.log
3039 cat <<_ASUNAME
3040 ## --------- ##
3041 ## Platform. ##
3042 ## --------- ##
3044 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3045 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3046 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3047 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3048 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3050 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3051 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3053 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3054 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3055 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3056 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3057 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3058 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3059 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3061 _ASUNAME
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 $as_echo "PATH: $as_dir"
3069 done
3070 IFS=$as_save_IFS
3072 } >&5
3074 cat >&5 <<_ACEOF
3077 ## ----------- ##
3078 ## Core tests. ##
3079 ## ----------- ##
3081 _ACEOF
3084 # Keep a trace of the command line.
3085 # Strip out --no-create and --no-recursion so they do not pile up.
3086 # Strip out --silent because we don't want to record it for future runs.
3087 # Also quote any args containing shell meta-characters.
3088 # Make two passes to allow for proper duplicate-argument suppression.
3089 ac_configure_args=
3090 ac_configure_args0=
3091 ac_configure_args1=
3092 ac_must_keep_next=false
3093 for ac_pass in 1 2
3095 for ac_arg
3097 case $ac_arg in
3098 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3100 | -silent | --silent | --silen | --sile | --sil)
3101 continue ;;
3102 *\'*)
3103 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3104 esac
3105 case $ac_pass in
3106 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3108 as_fn_append ac_configure_args1 " '$ac_arg'"
3109 if test $ac_must_keep_next = true; then
3110 ac_must_keep_next=false # Got value, back to normal.
3111 else
3112 case $ac_arg in
3113 *=* | --config-cache | -C | -disable-* | --disable-* \
3114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3116 | -with-* | --with-* | -without-* | --without-* | --x)
3117 case "$ac_configure_args0 " in
3118 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3119 esac
3121 -* ) ac_must_keep_next=true ;;
3122 esac
3124 as_fn_append ac_configure_args " '$ac_arg'"
3126 esac
3127 done
3128 done
3129 { ac_configure_args0=; unset ac_configure_args0;}
3130 { ac_configure_args1=; unset ac_configure_args1;}
3132 # When interrupted or exit'd, cleanup temporary files, and complete
3133 # config.log. We remove comments because anyway the quotes in there
3134 # would cause problems or look ugly.
3135 # WARNING: Use '\'' to represent an apostrophe within the trap.
3136 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3137 trap 'exit_status=$?
3138 # Save into config.log some information that might help in debugging.
3140 echo
3142 $as_echo "## ---------------- ##
3143 ## Cache variables. ##
3144 ## ---------------- ##"
3145 echo
3146 # The following way of writing the cache mishandles newlines in values,
3148 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3149 eval ac_val=\$$ac_var
3150 case $ac_val in #(
3151 *${as_nl}*)
3152 case $ac_var in #(
3153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3154 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3155 esac
3156 case $ac_var in #(
3157 _ | IFS | as_nl) ;; #(
3158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3159 *) { eval $ac_var=; unset $ac_var;} ;;
3160 esac ;;
3161 esac
3162 done
3163 (set) 2>&1 |
3164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3165 *${as_nl}ac_space=\ *)
3166 sed -n \
3167 "s/'\''/'\''\\\\'\'''\''/g;
3168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3169 ;; #(
3171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3173 esac |
3174 sort
3176 echo
3178 $as_echo "## ----------------- ##
3179 ## Output variables. ##
3180 ## ----------------- ##"
3181 echo
3182 for ac_var in $ac_subst_vars
3184 eval ac_val=\$$ac_var
3185 case $ac_val in
3186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3187 esac
3188 $as_echo "$ac_var='\''$ac_val'\''"
3189 done | sort
3190 echo
3192 if test -n "$ac_subst_files"; then
3193 $as_echo "## ------------------- ##
3194 ## File substitutions. ##
3195 ## ------------------- ##"
3196 echo
3197 for ac_var in $ac_subst_files
3199 eval ac_val=\$$ac_var
3200 case $ac_val in
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 esac
3203 $as_echo "$ac_var='\''$ac_val'\''"
3204 done | sort
3205 echo
3208 if test -s confdefs.h; then
3209 $as_echo "## ----------- ##
3210 ## confdefs.h. ##
3211 ## ----------- ##"
3212 echo
3213 cat confdefs.h
3214 echo
3216 test "$ac_signal" != 0 &&
3217 $as_echo "$as_me: caught signal $ac_signal"
3218 $as_echo "$as_me: exit $exit_status"
3219 } >&5
3220 rm -f core *.core core.conftest.* &&
3221 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3222 exit $exit_status
3224 for ac_signal in 1 2 13 15; do
3225 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3226 done
3227 ac_signal=0
3229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3230 rm -f -r conftest* confdefs.h
3232 $as_echo "/* confdefs.h */" > confdefs.h
3234 # Predefined preprocessor variables.
3236 cat >>confdefs.h <<_ACEOF
3237 #define PACKAGE_NAME "$PACKAGE_NAME"
3238 _ACEOF
3240 cat >>confdefs.h <<_ACEOF
3241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3242 _ACEOF
3244 cat >>confdefs.h <<_ACEOF
3245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3246 _ACEOF
3248 cat >>confdefs.h <<_ACEOF
3249 #define PACKAGE_STRING "$PACKAGE_STRING"
3250 _ACEOF
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3254 _ACEOF
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_URL "$PACKAGE_URL"
3258 _ACEOF
3261 # Let the site file select an alternate cache file if it wants to.
3262 # Prefer an explicitly selected file to automatically selected ones.
3263 ac_site_file1=NONE
3264 ac_site_file2=NONE
3265 if test -n "$CONFIG_SITE"; then
3266 # We do not want a PATH search for config.site.
3267 case $CONFIG_SITE in #((
3268 -*) ac_site_file1=./$CONFIG_SITE;;
3269 */*) ac_site_file1=$CONFIG_SITE;;
3270 *) ac_site_file1=./$CONFIG_SITE;;
3271 esac
3272 elif test "x$prefix" != xNONE; then
3273 ac_site_file1=$prefix/share/config.site
3274 ac_site_file2=$prefix/etc/config.site
3275 else
3276 ac_site_file1=$ac_default_prefix/share/config.site
3277 ac_site_file2=$ac_default_prefix/etc/config.site
3279 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3281 test "x$ac_site_file" = xNONE && continue
3282 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3284 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3285 sed 's/^/| /' "$ac_site_file" >&5
3286 . "$ac_site_file" \
3287 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "failed to load site script $ac_site_file
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 done
3294 if test -r "$cache_file"; then
3295 # Some versions of bash will fail to source /dev/null (special files
3296 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3297 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3299 $as_echo "$as_me: loading cache $cache_file" >&6;}
3300 case $cache_file in
3301 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3302 *) . "./$cache_file";;
3303 esac
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3307 $as_echo "$as_me: creating cache $cache_file" >&6;}
3308 >$cache_file
3311 gt_needs="$gt_needs "
3312 # Check that the precious variables saved in the cache have kept the same
3313 # value.
3314 ac_cache_corrupted=false
3315 for ac_var in $ac_precious_vars; do
3316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3317 eval ac_new_set=\$ac_env_${ac_var}_set
3318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3319 eval ac_new_val=\$ac_env_${ac_var}_value
3320 case $ac_old_set,$ac_new_set in
3321 set,)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3323 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3324 ac_cache_corrupted=: ;;
3325 ,set)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3327 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3328 ac_cache_corrupted=: ;;
3329 ,);;
3331 if test "x$ac_old_val" != "x$ac_new_val"; then
3332 # differences in whitespace do not lead to failure.
3333 ac_old_val_w=`echo x $ac_old_val`
3334 ac_new_val_w=`echo x $ac_new_val`
3335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3337 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3338 ac_cache_corrupted=:
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3341 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3342 eval $ac_var=\$ac_old_val
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3345 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3347 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3348 fi;;
3349 esac
3350 # Pass precious variables to config.status.
3351 if test "$ac_new_set" = set; then
3352 case $ac_new_val in
3353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3354 *) ac_arg=$ac_var=$ac_new_val ;;
3355 esac
3356 case " $ac_configure_args " in
3357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3359 esac
3361 done
3362 if $ac_cache_corrupted; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3366 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3367 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3369 ## -------------------- ##
3370 ## Main body of script. ##
3371 ## -------------------- ##
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3388 gcc_version=`cat $srcdir/BASE-VER`
3390 # Determine the host, build, and target systems
3391 ac_aux_dir=
3392 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3393 if test -f "$ac_dir/install-sh"; then
3394 ac_aux_dir=$ac_dir
3395 ac_install_sh="$ac_aux_dir/install-sh -c"
3396 break
3397 elif test -f "$ac_dir/install.sh"; then
3398 ac_aux_dir=$ac_dir
3399 ac_install_sh="$ac_aux_dir/install.sh -c"
3400 break
3401 elif test -f "$ac_dir/shtool"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/shtool install -c"
3404 break
3406 done
3407 if test -z "$ac_aux_dir"; then
3408 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3411 # These three variables are undocumented and unsupported,
3412 # and are intended to be withdrawn in a future Autoconf release.
3413 # They can cause serious problems if a builder's source tree is in a directory
3414 # whose full name contains unusual characters.
3415 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3416 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3417 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3420 # Make sure we can run config.sub.
3421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3422 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3425 $as_echo_n "checking build system type... " >&6; }
3426 if ${ac_cv_build+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 ac_build_alias=$build_alias
3430 test "x$ac_build_alias" = x &&
3431 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3432 test "x$ac_build_alias" = x &&
3433 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3434 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3439 $as_echo "$ac_cv_build" >&6; }
3440 case $ac_cv_build in
3441 *-*-*) ;;
3442 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3443 esac
3444 build=$ac_cv_build
3445 ac_save_IFS=$IFS; IFS='-'
3446 set x $ac_cv_build
3447 shift
3448 build_cpu=$1
3449 build_vendor=$2
3450 shift; shift
3451 # Remember, the first character of IFS is used to create $*,
3452 # except with old shells:
3453 build_os=$*
3454 IFS=$ac_save_IFS
3455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3459 $as_echo_n "checking host system type... " >&6; }
3460 if ${ac_cv_host+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test "x$host_alias" = x; then
3464 ac_cv_host=$ac_cv_build
3465 else
3466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3472 $as_echo "$ac_cv_host" >&6; }
3473 case $ac_cv_host in
3474 *-*-*) ;;
3475 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3476 esac
3477 host=$ac_cv_host
3478 ac_save_IFS=$IFS; IFS='-'
3479 set x $ac_cv_host
3480 shift
3481 host_cpu=$1
3482 host_vendor=$2
3483 shift; shift
3484 # Remember, the first character of IFS is used to create $*,
3485 # except with old shells:
3486 host_os=$*
3487 IFS=$ac_save_IFS
3488 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3492 $as_echo_n "checking target system type... " >&6; }
3493 if ${ac_cv_target+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test "x$target_alias" = x; then
3497 ac_cv_target=$ac_cv_host
3498 else
3499 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3505 $as_echo "$ac_cv_target" >&6; }
3506 case $ac_cv_target in
3507 *-*-*) ;;
3508 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3509 esac
3510 target=$ac_cv_target
3511 ac_save_IFS=$IFS; IFS='-'
3512 set x $ac_cv_target
3513 shift
3514 target_cpu=$1
3515 target_vendor=$2
3516 shift; shift
3517 # Remember, the first character of IFS is used to create $*,
3518 # except with old shells:
3519 target_os=$*
3520 IFS=$ac_save_IFS
3521 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3524 # The aliases save the names the user supplied, while $host etc.
3525 # will get canonicalized.
3526 test -n "$target_alias" &&
3527 test "$program_prefix$program_suffix$program_transform_name" = \
3528 NONENONEs,x,x, &&
3529 program_prefix=${target_alias}-
3531 # Determine the noncanonical host name, for Ada.
3532 case ${build_alias} in
3533 "") build_noncanonical=${build} ;;
3534 *) build_noncanonical=${build_alias} ;;
3535 esac
3537 case ${host_alias} in
3538 "") host_noncanonical=${build_noncanonical} ;;
3539 *) host_noncanonical=${host_alias} ;;
3540 esac
3545 # Determine the noncanonical target name, for directory use.
3546 case ${target_alias} in
3547 "") target_noncanonical=${host_noncanonical} ;;
3548 *) target_noncanonical=${target_alias} ;;
3549 esac
3554 # Used for constructing correct paths for offload compilers.
3555 real_target_noncanonical=${target_noncanonical}
3556 accel_dir_suffix=
3558 # Determine the target- and build-specific subdirectories
3560 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3561 # have matching libraries, they should use host libraries: Makefile.tpl
3562 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3563 # However, they still use the build modules, because the corresponding
3564 # host modules (e.g. bison) are only built for the host when bootstrap
3565 # finishes. So:
3566 # - build_subdir is where we find build modules, and never changes.
3567 # - build_libsubdir is where we find build libraries, and can be overridden.
3569 # Prefix 'build-' so this never conflicts with target_subdir.
3570 build_subdir="build-${build_noncanonical}"
3572 # Check whether --with-build-libsubdir was given.
3573 if test "${with_build_libsubdir+set}" = set; then :
3574 withval=$with_build_libsubdir; build_libsubdir="$withval"
3575 else
3576 build_libsubdir="$build_subdir"
3579 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3580 if ( test $srcdir = . && test -d gcc ) \
3581 || test -d $srcdir/../host-${host_noncanonical}; then
3582 host_subdir="host-${host_noncanonical}"
3583 else
3584 host_subdir=.
3586 # No prefix.
3587 target_subdir=${target_noncanonical}
3590 # Set program_transform_name
3591 test "$program_prefix" != NONE &&
3592 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3593 # Use a double $ so make ignores it.
3594 test "$program_suffix" != NONE &&
3595 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3596 # Double any \ or $.
3597 # By default was `s,x,x', remove it if useless.
3598 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3599 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3602 # Check for bogus environment variables.
3603 # Test if LIBRARY_PATH contains the notation for the current directory
3604 # since this would lead to problems installing/building glibc.
3605 # LIBRARY_PATH contains the current directory if one of the following
3606 # is true:
3607 # - one of the terminals (":" and ";") is the first or last sign
3608 # - two terminals occur directly after each other
3609 # - the path contains an element with a dot in it
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3611 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3612 case ${LIBRARY_PATH} in
3613 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3614 library_path_setting="contains current directory"
3617 library_path_setting="ok"
3619 esac
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3621 $as_echo "$library_path_setting" >&6; }
3622 if test "$library_path_setting" != "ok"; then
3623 as_fn_error $? "
3624 *** LIBRARY_PATH shouldn't contain the current directory when
3625 *** building gcc. Please change the environment variable
3626 *** and run configure again." "$LINENO" 5
3629 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3630 # since this would lead to problems installing/building glibc.
3631 # GCC_EXEC_PREFIX contains the current directory if one of the following
3632 # is true:
3633 # - one of the terminals (":" and ";") is the first or last sign
3634 # - two terminals occur directly after each other
3635 # - the path contains an element with a dot in it
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3637 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3638 case ${GCC_EXEC_PREFIX} in
3639 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3640 gcc_exec_prefix_setting="contains current directory"
3643 gcc_exec_prefix_setting="ok"
3645 esac
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3647 $as_echo "$gcc_exec_prefix_setting" >&6; }
3648 if test "$gcc_exec_prefix_setting" != "ok"; then
3649 as_fn_error $? "
3650 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3651 *** building gcc. Please change the environment variable
3652 *** and run configure again." "$LINENO" 5
3655 # -----------
3656 # Directories
3657 # -----------
3659 # Specify the local prefix
3660 local_prefix=
3662 # Check whether --with-local-prefix was given.
3663 if test "${with_local_prefix+set}" = set; then :
3664 withval=$with_local_prefix; case "${withval}" in
3665 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3666 no) ;;
3667 *) local_prefix=$with_local_prefix ;;
3668 esac
3672 # Default local prefix if it is empty
3673 if test x$local_prefix = x; then
3674 local_prefix=/usr/local
3678 # Check whether --with-native-system-header-dir was given.
3679 if test "${with_native_system_header_dir+set}" = set; then :
3680 withval=$with_native_system_header_dir;
3681 case ${with_native_system_header_dir} in
3682 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3683 /* | [A-Za-z]:[\\/]*) ;;
3684 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3685 esac
3686 configured_native_system_header_dir="${withval}"
3688 else
3689 configured_native_system_header_dir=
3694 # Check whether --with-build-sysroot was given.
3695 if test "${with_build_sysroot+set}" = set; then :
3696 withval=$with_build_sysroot; if test x"$withval" != x ; then
3697 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3699 else
3700 SYSROOT_CFLAGS_FOR_TARGET=
3705 if test "x$prefix" = xNONE; then
3706 test_prefix=/usr/local
3707 else
3708 test_prefix=$prefix
3710 if test "x$exec_prefix" = xNONE; then
3711 test_exec_prefix=$test_prefix
3712 else
3713 test_exec_prefix=$exec_prefix
3717 # Check whether --with-sysroot was given.
3718 if test "${with_sysroot+set}" = set; then :
3719 withval=$with_sysroot;
3720 case ${with_sysroot} in
3721 /) ;;
3722 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3723 esac
3724 case ${with_sysroot} in
3725 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3726 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3727 esac
3729 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3730 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3732 case ${TARGET_SYSTEM_ROOT} in
3733 "${test_prefix}"|"${test_prefix}/"*|\
3734 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3735 '${prefix}'|'${prefix}/'*|\
3736 '${exec_prefix}'|'${exec_prefix}/'*)
3737 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3738 TARGET_SYSTEM_ROOT_DEFINE="$t"
3740 esac
3742 else
3744 TARGET_SYSTEM_ROOT=
3745 TARGET_SYSTEM_ROOT_DEFINE=
3746 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3754 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3755 # passed in by the toplevel make and thus we'd get different behavior
3756 # depending on where we built the sources.
3757 gcc_gxx_include_dir=
3758 # Specify the g++ header file directory
3760 # Check whether --with-gxx-include-dir was given.
3761 if test "${with_gxx_include_dir+set}" = set; then :
3762 withval=$with_gxx_include_dir; case "${withval}" in
3763 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3764 no) ;;
3765 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3766 esac
3770 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3771 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3772 # relative to the sysroot.
3773 gcc_gxx_include_dir_add_sysroot=0
3775 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3776 if test x${gcc_gxx_include_dir} = x; then
3777 if test x${enable_version_specific_runtime_libs} = xyes; then
3778 gcc_gxx_include_dir='${libsubdir}/include/c++'
3779 else
3780 libstdcxx_incdir='include/c++/$(version)'
3781 if test x$host != x$target; then
3782 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3784 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3786 elif test "${with_sysroot+set}" = set; then
3787 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3788 if test "${gcc_gxx_without_sysroot}"; then
3789 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3790 gcc_gxx_include_dir_add_sysroot=1
3794 # Configuration for an alternate set of C++ headers.
3795 gcc_gxx_libcxx_include_dir=
3796 # Specify the alternate g++ header file directory
3798 # Check whether --with-gxx-libcxx-include-dir was given.
3799 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3800 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3801 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3802 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3803 esac
3807 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3808 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3809 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3810 # based on the platform (to be available on platform versions where it is the
3811 # default for the system tools). We also use a default path within the compiler
3812 # install tree.
3813 # Otherwise, we use the path provided and enable the stdlib option.
3814 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3815 # check to see if the latter starts with the former and, upon success, compute
3816 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3817 gcc_gxx_libcxx_include_dir_add_sysroot=0
3818 gcc_enable_stdlib_opt=0
3819 if test x${gcc_gxx_libcxx_include_dir} != x; then
3820 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3821 # set defaults for the dir, but the option is disabled anyway.
3822 gcc_gxx_libcxx_include_dir=
3823 else
3824 gcc_enable_stdlib_opt=1
3826 else
3827 case $target in
3828 *-darwin1[1-9]* | *-darwin2*)
3829 # Default this on for Darwin versions which default to libcxx,
3830 # and embed the path in the compiler install so that we get a
3831 # self-contained toolchain.
3832 gcc_enable_stdlib_opt=1
3834 *) ;;
3835 esac
3838 cat >>confdefs.h <<_ACEOF
3839 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3840 _ACEOF
3843 # Sysroot behaviour as for gxx-include-dir
3844 if test x${gcc_gxx_libcxx_include_dir} = x; then
3845 # default path,embedded in the compiler tree.
3846 libcxx_incdir='include/c++/v1'
3847 if test x${enable_version_specific_runtime_libs} = xyes; then
3848 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3849 else
3850 if test x$host != x$target; then
3851 libcxx_incdir="$target_alias/$libcxx_incdir"
3853 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3855 elif test "${with_sysroot+set}" = set; then
3856 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3857 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3858 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3859 gcc_gxx_libcxx_include_dir_add_sysroot=1
3864 # Check whether --with-cpp_install_dir was given.
3865 if test "${with_cpp_install_dir+set}" = set; then :
3866 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3867 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3868 elif test x$withval != xno; then
3869 cpp_install_dir=$withval
3874 # We would like to our source tree to be readonly. However when releases or
3875 # pre-releases are generated, the flex/bison generated files as well as the
3876 # various formats of manuals need to be included along with the rest of the
3877 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3878 # just that.
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3881 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3882 # Check whether --enable-generated-files-in-srcdir was given.
3883 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3884 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3885 else
3886 generated_files_in_srcdir=no
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3891 $as_echo "$generated_files_in_srcdir" >&6; }
3893 if test "$generated_files_in_srcdir" = "yes"; then
3894 GENINSRC=''
3895 else
3896 GENINSRC='#'
3900 # -------------------
3901 # Find default linker
3902 # -------------------
3904 # With GNU ld
3906 # Check whether --with-gnu-ld was given.
3907 if test "${with_gnu_ld+set}" = set; then :
3908 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3909 else
3910 gnu_ld_flag=no
3914 case $target in
3915 *darwin*)
3916 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3917 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3920 ld64_flag=no
3921 dsymutil_flag=no
3923 esac
3925 # With pre-defined ld
3927 # Check whether --with-ld was given.
3928 if test "${with_ld+set}" = set; then :
3929 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3933 if test ! -x "$DEFAULT_LINKER"; then
3934 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3935 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3936 gnu_ld_flag=yes
3937 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3938 ld64_flag=yes
3941 cat >>confdefs.h <<_ACEOF
3942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3943 _ACEOF
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3948 $as_echo_n "checking whether a default linker was specified... " >&6; }
3949 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3950 if test x"$gnu_ld_flag" = x"no"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3952 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3955 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3962 # With demangler in GNU ld
3964 # Check whether --with-demangler-in-ld was given.
3965 if test "${with_demangler_in_ld+set}" = set; then :
3966 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3967 else
3968 demangler_in_ld=yes
3972 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3974 # Check whether --with-dsymutil was given.
3975 if test "${with_dsymutil+set}" = set; then :
3976 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3980 dsymutil_vers=
3981 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3982 if test ! -x "$DEFAULT_DSYMUTIL"; then
3983 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3984 else
3985 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3986 dsymutil_flag=yes
3990 cat >>confdefs.h <<_ACEOF
3991 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3992 _ACEOF
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3997 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3998 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4000 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4006 # ----------------------
4007 # Find default assembler
4008 # ----------------------
4010 # With GNU as
4012 # Check whether --with-gnu-as was given.
4013 if test "${with_gnu_as+set}" = set; then :
4014 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4015 else
4016 gas_flag=no
4021 # Check whether --with-as was given.
4022 if test "${with_as+set}" = set; then :
4023 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4026 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4027 if test ! -x "$DEFAULT_ASSEMBLER"; then
4028 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4029 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4030 gas_flag=yes
4033 cat >>confdefs.h <<_ACEOF
4034 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4035 _ACEOF
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4040 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4041 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4042 if test x"$gas_flag" = x"no"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4044 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4045 else
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4047 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4054 # ---------------
4055 # Find C compiler
4056 # ---------------
4058 # If a non-executable a.out is present (e.g. created by GNU as above even if
4059 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4060 # file, even when creating an executable, so an execution test fails.
4061 # Remove possible default executable files to avoid this.
4063 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4064 # Autoconf includes it.
4065 rm -f a.out a.exe b.out
4067 # Find the native compiler
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if ${ac_cv_prog_CC+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -n "$CC"; then
4082 ac_cv_prog_CC="$CC" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4095 done
4096 done
4097 IFS=$as_save_IFS
4101 CC=$ac_cv_prog_CC
4102 if test -n "$CC"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104 $as_echo "$CC" >&6; }
4105 else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4112 if test -z "$ac_cv_prog_CC"; then
4113 ac_ct_CC=$CC
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_CC="gcc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4144 $as_echo "$ac_ct_CC" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4161 else
4162 CC="$ac_cv_prog_CC"
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}cc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CC="${ac_tool_prefix}cc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4206 if test -z "$CC"; then
4207 # Extract the first word of "cc", so it can be a program name with args.
4208 set dummy cc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_CC+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 ac_prog_rejected=no
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4226 ac_prog_rejected=yes
4227 continue
4229 ac_cv_prog_CC="cc"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4237 if test $ac_prog_rejected = yes; then
4238 # We found a bogon in the path, so make sure we never use it.
4239 set dummy $ac_cv_prog_CC
4240 shift
4241 if test $# != 0; then
4242 # We chose a different compiler from the bogus one.
4243 # However, it has the same basename, so the bogon will be chosen
4244 # first if we set CC to just the basename; use the full file name.
4245 shift
4246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in cl.exe
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_CC+:} false; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 $as_echo "$CC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$CC" && break
4304 done
4306 if test -z "$CC"; then
4307 ac_ct_CC=$CC
4308 for ac_prog in cl.exe
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_CC="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4338 if test -n "$ac_ct_CC"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4340 $as_echo "$ac_ct_CC" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$ac_ct_CC" && break
4348 done
4350 if test "x$ac_ct_CC" = x; then
4351 CC=""
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354 yes:)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned=yes ;;
4358 esac
4359 CC=$ac_ct_CC
4366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error $? "no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details" "$LINENO" 5; }
4371 # Provide some information about the compiler.
4372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4373 set X $ac_compile
4374 ac_compiler=$2
4375 for ac_option in --version -v -V -qversion; do
4376 { { ac_try="$ac_compiler $ac_option >&5"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4384 ac_status=$?
4385 if test -s conftest.err; then
4386 sed '10a\
4387 ... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
4391 rm -f conftest.er1 conftest.err
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 done
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 ac_clean_files_save=$ac_clean_files
4408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4409 # Try to create an executable without -o first, disregard a.out.
4410 # It will help us diagnose broken compilers, and finding out an intuition
4411 # of exeext.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4413 $as_echo_n "checking whether the C compiler works... " >&6; }
4414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4416 # The possible output files:
4417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4419 ac_rmfiles=
4420 for ac_file in $ac_files
4422 case $ac_file in
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4425 esac
4426 done
4427 rm -f $ac_rmfiles
4429 if { { ac_try="$ac_link_default"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link_default") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4443 # so that the user can short-circuit this test for compilers unknown to
4444 # Autoconf.
4445 for ac_file in $ac_files ''
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4451 [ab].out )
4452 # We found the default executable, but exeext='' is most
4453 # certainly right.
4454 break;;
4455 *.* )
4456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4457 then :; else
4458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4460 # We set ac_cv_exeext here because the later test for it is not
4461 # safe: cross compilers may not add the suffix if given an `-o'
4462 # argument, so we may need to know it at that point already.
4463 # Even if this section looks crufty: it has the advantage of
4464 # actually working.
4465 break;;
4467 break;;
4468 esac
4469 done
4470 test "$ac_cv_exeext" = no && ac_cv_exeext=
4472 else
4473 ac_file=''
4475 if test -z "$ac_file"; then :
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error 77 "C compiler cannot create executables
4484 See \`config.log' for more details" "$LINENO" 5; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 $as_echo "yes" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4490 $as_echo_n "checking for C compiler default output file name... " >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4492 $as_echo "$ac_file" >&6; }
4493 ac_exeext=$ac_cv_exeext
4495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4496 ac_clean_files=$ac_clean_files_save
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4498 $as_echo_n "checking for suffix of executables... " >&6; }
4499 if { { ac_try="$ac_link"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_link") 2>&5
4507 ac_status=$?
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; then :
4510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4512 # work properly (i.e., refer to `conftest.exe'), while it won't with
4513 # `rm'.
4514 for ac_file in conftest.exe conftest conftest.*; do
4515 test -f "$ac_file" || continue
4516 case $ac_file in
4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4519 break;;
4520 * ) break;;
4521 esac
4522 done
4523 else
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4527 See \`config.log' for more details" "$LINENO" 5; }
4529 rm -f conftest conftest$ac_cv_exeext
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4531 $as_echo "$ac_cv_exeext" >&6; }
4533 rm -f conftest.$ac_ext
4534 EXEEXT=$ac_cv_exeext
4535 ac_exeext=$EXEEXT
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <stdio.h>
4540 main ()
4542 FILE *f = fopen ("conftest.out", "w");
4543 return ferror (f) || fclose (f) != 0;
4546 return 0;
4548 _ACEOF
4549 ac_clean_files="$ac_clean_files conftest.out"
4550 # Check that the compiler produces executables we can run. If not, either
4551 # the compiler is broken, or we cross compile.
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4553 $as_echo_n "checking whether we are cross compiling... " >&6; }
4554 if test "$cross_compiling" != yes; then
4555 { { ac_try="$ac_link"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link") 2>&5
4563 ac_status=$?
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }
4566 if { ac_try='./conftest$ac_cv_exeext'
4567 { { case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_try") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; }; then
4577 cross_compiling=no
4578 else
4579 if test "$cross_compiling" = maybe; then
4580 cross_compiling=yes
4581 else
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584 as_fn_error $? "cannot run C compiled programs.
4585 If you meant to cross compile, use \`--host'.
4586 See \`config.log' for more details" "$LINENO" 5; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4591 $as_echo "$cross_compiling" >&6; }
4593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4594 ac_clean_files=$ac_clean_files_save
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4596 $as_echo_n "checking for suffix of object files... " >&6; }
4597 if ${ac_cv_objext+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4604 main ()
4608 return 0;
4610 _ACEOF
4611 rm -f conftest.o conftest.obj
4612 if { { ac_try="$ac_compile"
4613 case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4616 esac
4617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618 $as_echo "$ac_try_echo"; } >&5
4619 (eval "$ac_compile") 2>&5
4620 ac_status=$?
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }; then :
4623 for ac_file in conftest.o conftest.obj conftest.*; do
4624 test -f "$ac_file" || continue;
4625 case $ac_file in
4626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4628 break;;
4629 esac
4630 done
4631 else
4632 $as_echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot compute suffix of object files: cannot compile
4638 See \`config.log' for more details" "$LINENO" 5; }
4640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4643 $as_echo "$ac_cv_objext" >&6; }
4644 OBJEXT=$ac_cv_objext
4645 ac_objext=$OBJEXT
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4648 if ${ac_cv_c_compiler_gnu+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4655 main ()
4657 #ifndef __GNUC__
4658 choke me
4659 #endif
4662 return 0;
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_compiler_gnu=yes
4667 else
4668 ac_compiler_gnu=no
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4676 if test $ac_compiler_gnu = yes; then
4677 GCC=yes
4678 else
4679 GCC=
4681 ac_test_CFLAGS=${CFLAGS+set}
4682 ac_save_CFLAGS=$CFLAGS
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4685 if ${ac_cv_prog_cc_g+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 ac_save_c_werror_flag=$ac_c_werror_flag
4689 ac_c_werror_flag=yes
4690 ac_cv_prog_cc_g=no
4691 CFLAGS="-g"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4696 main ()
4700 return 0;
4702 _ACEOF
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ac_cv_prog_cc_g=yes
4705 else
4706 CFLAGS=""
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 main ()
4715 return 0;
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"; then :
4720 else
4721 ac_c_werror_flag=$ac_save_c_werror_flag
4722 CFLAGS="-g"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4727 main ()
4731 return 0;
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_prog_cc_g=yes
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 ac_c_werror_flag=$ac_save_c_werror_flag
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4745 $as_echo "$ac_cv_prog_cc_g" >&6; }
4746 if test "$ac_test_CFLAGS" = set; then
4747 CFLAGS=$ac_save_CFLAGS
4748 elif test $ac_cv_prog_cc_g = yes; then
4749 if test "$GCC" = yes; then
4750 CFLAGS="-g -O2"
4751 else
4752 CFLAGS="-g"
4754 else
4755 if test "$GCC" = yes; then
4756 CFLAGS="-O2"
4757 else
4758 CFLAGS=
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4763 if ${ac_cv_prog_cc_c89+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 ac_cv_prog_cc_c89=no
4767 ac_save_CC=$CC
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <stdarg.h>
4771 #include <stdio.h>
4772 struct stat;
4773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4774 struct buf { int x; };
4775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4776 static char *e (p, i)
4777 char **p;
4778 int i;
4780 return p[i];
4782 static char *f (char * (*g) (char **, int), char **p, ...)
4784 char *s;
4785 va_list v;
4786 va_start (v,p);
4787 s = g (p, va_arg (v,int));
4788 va_end (v);
4789 return s;
4792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4793 function prototypes and stuff, but not '\xHH' hex character constants.
4794 These don't provoke an error unfortunately, instead are silently treated
4795 as 'x'. The following induces an error, until -std is added to get
4796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4797 array size at least. It's necessary to write '\x00'==0 to get something
4798 that's true only with -std. */
4799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4802 inside strings and character constants. */
4803 #define FOO(x) 'x'
4804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4806 int test (int i, double x);
4807 struct s1 {int (*f) (int a);};
4808 struct s2 {int (*f) (double a);};
4809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4810 int argc;
4811 char **argv;
4813 main ()
4815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4817 return 0;
4819 _ACEOF
4820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4823 CC="$ac_save_CC $ac_arg"
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_prog_cc_c89=$ac_arg
4827 rm -f core conftest.err conftest.$ac_objext
4828 test "x$ac_cv_prog_cc_c89" != "xno" && break
4829 done
4830 rm -f conftest.$ac_ext
4831 CC=$ac_save_CC
4834 # AC_CACHE_VAL
4835 case "x$ac_cv_prog_cc_c89" in
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4838 $as_echo "none needed" >&6; } ;;
4839 xno)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4841 $as_echo "unsupported" >&6; } ;;
4843 CC="$CC $ac_cv_prog_cc_c89"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4846 esac
4847 if test "x$ac_cv_prog_cc_c89" != xno; then :
4851 ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 ac_ext=cpp
4858 ac_cpp='$CXXCPP $CPPFLAGS'
4859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4862 if test -z "$CXX"; then
4863 if test -n "$CCC"; then
4864 CXX=$CCC
4865 else
4866 if test -n "$ac_tool_prefix"; then
4867 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_CXX+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 if test -n "$CXX"; then
4877 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4878 else
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4890 done
4891 done
4892 IFS=$as_save_IFS
4896 CXX=$ac_cv_prog_CXX
4897 if test -n "$CXX"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4899 $as_echo "$CXX" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 test -n "$CXX" && break
4907 done
4909 if test -z "$CXX"; then
4910 ac_ct_CXX=$CXX
4911 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy $ac_prog; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -n "$ac_ct_CXX"; then
4921 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_ac_ct_CXX="$ac_prog"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4941 if test -n "$ac_ct_CXX"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4943 $as_echo "$ac_ct_CXX" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4950 test -n "$ac_ct_CXX" && break
4951 done
4953 if test "x$ac_ct_CXX" = x; then
4954 CXX="g++"
4955 else
4956 case $cross_compiling:$ac_tool_warned in
4957 yes:)
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned=yes ;;
4961 esac
4962 CXX=$ac_ct_CXX
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4970 set X $ac_compile
4971 ac_compiler=$2
4972 for ac_option in --version -v -V -qversion; do
4973 { { ac_try="$ac_compiler $ac_option >&5"
4974 case "(($ac_try" in
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4977 esac
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4981 ac_status=$?
4982 if test -s conftest.err; then
4983 sed '10a\
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4991 done
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4995 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5002 main ()
5004 #ifndef __GNUC__
5005 choke me
5006 #endif
5009 return 0;
5011 _ACEOF
5012 if ac_fn_cxx_try_compile "$LINENO"; then :
5013 ac_compiler_gnu=yes
5014 else
5015 ac_compiler_gnu=no
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5022 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5024 GXX=yes
5025 else
5026 GXX=
5028 ac_test_CXXFLAGS=${CXXFLAGS+set}
5029 ac_save_CXXFLAGS=$CXXFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5031 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5032 if ${ac_cv_prog_cxx_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5036 ac_cxx_werror_flag=yes
5037 ac_cv_prog_cxx_g=no
5038 CXXFLAGS="-g"
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_cxx_try_compile "$LINENO"; then :
5051 ac_cv_prog_cxx_g=yes
5052 else
5053 CXXFLAGS=""
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5058 main ()
5062 return 0;
5064 _ACEOF
5065 if ac_fn_cxx_try_compile "$LINENO"; then :
5067 else
5068 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5069 CXXFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5074 main ()
5078 return 0;
5080 _ACEOF
5081 if ac_fn_cxx_try_compile "$LINENO"; then :
5082 ac_cv_prog_cxx_g=yes
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5092 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5093 if test "$ac_test_CXXFLAGS" = set; then
5094 CXXFLAGS=$ac_save_CXXFLAGS
5095 elif test $ac_cv_prog_cxx_g = yes; then
5096 if test "$GXX" = yes; then
5097 CXXFLAGS="-g -O2"
5098 else
5099 CXXFLAGS="-g"
5101 else
5102 if test "$GXX" = yes; then
5103 CXXFLAGS="-O2"
5104 else
5105 CXXFLAGS=
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117 if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5119 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_GNATBIND+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$GNATBIND"; then
5126 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 GNATBIND=$ac_cv_prog_GNATBIND
5146 if test -n "$GNATBIND"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5148 $as_echo "$GNATBIND" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5156 if test -z "$ac_cv_prog_GNATBIND"; then
5157 ac_ct_GNATBIND=$GNATBIND
5158 # Extract the first word of "gnatbind", so it can be a program name with args.
5159 set dummy gnatbind; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$ac_ct_GNATBIND"; then
5166 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5179 done
5180 done
5181 IFS=$as_save_IFS
5185 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5186 if test -n "$ac_ct_GNATBIND"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5188 $as_echo "$ac_ct_GNATBIND" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5194 if test "x$ac_ct_GNATBIND" = x; then
5195 GNATBIND="no"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 GNATBIND=$ac_ct_GNATBIND
5205 else
5206 GNATBIND="$ac_cv_prog_GNATBIND"
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_GNATMAKE+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$GNATMAKE"; then
5218 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 GNATMAKE=$ac_cv_prog_GNATMAKE
5238 if test -n "$GNATMAKE"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5240 $as_echo "$GNATMAKE" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5248 if test -z "$ac_cv_prog_GNATMAKE"; then
5249 ac_ct_GNATMAKE=$GNATMAKE
5250 # Extract the first word of "gnatmake", so it can be a program name with args.
5251 set dummy gnatmake; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_GNATMAKE"; then
5258 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5278 if test -n "$ac_ct_GNATMAKE"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5280 $as_echo "$ac_ct_GNATMAKE" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5286 if test "x$ac_ct_GNATMAKE" = x; then
5287 GNATMAKE="no"
5288 else
5289 case $cross_compiling:$ac_tool_warned in
5290 yes:)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5294 esac
5295 GNATMAKE=$ac_ct_GNATMAKE
5297 else
5298 GNATMAKE="$ac_cv_prog_GNATMAKE"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5302 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5303 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 cat >conftest.adb <<EOF
5307 pragma Warnings (Off);
5308 with System.CRTL;
5309 pragma Warnings (On);
5310 use type System.CRTL.int64;
5311 procedure conftest is begin null; end conftest;
5313 acx_cv_cc_gcc_supports_ada=no
5314 # There is a bug in old released versions of GCC which causes the
5315 # driver to exit successfully when the appropriate language module
5316 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5317 # Therefore we must check for the error message as well as an
5318 # unsuccessful exit.
5319 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5320 # given a .adb file, but produce no object file. So we must check
5321 # if an object file was really produced to guard against this.
5322 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5323 if test x"$errors" = x && test -f conftest.$ac_objext; then
5324 acx_cv_cc_gcc_supports_ada=yes
5326 rm -f conftest.*
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5329 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5331 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5332 have_gnat=yes
5333 else
5334 have_gnat=no
5339 if test -n "$ac_tool_prefix"; then
5340 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5341 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_GDC+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$GDC"; then
5348 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 GDC=$ac_cv_prog_GDC
5368 if test -n "$GDC"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5370 $as_echo "$GDC" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5378 if test -z "$ac_cv_prog_GDC"; then
5379 ac_ct_GDC=$GDC
5380 # Extract the first word of "gdc", so it can be a program name with args.
5381 set dummy gdc; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$ac_ct_GDC"; then
5388 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_ac_ct_GDC="gdc"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5408 if test -n "$ac_ct_GDC"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5410 $as_echo "$ac_ct_GDC" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5416 if test "x$ac_ct_GDC" = x; then
5417 GDC="no"
5418 else
5419 case $cross_compiling:$ac_tool_warned in
5420 yes:)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5424 esac
5425 GDC=$ac_ct_GDC
5427 else
5428 GDC="$ac_cv_prog_GDC"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5432 $as_echo_n "checking whether the D compiler works... " >&6; }
5433 if ${acx_cv_d_compiler_works+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat >conftest.d <<EOF
5437 module conftest; int main() { return 0; }
5439 acx_cv_d_compiler_works=no
5440 if test "x$GDC" != xno; then
5441 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5442 if test x"$errors" = x && test -f conftest.$ac_objext; then
5443 acx_cv_d_compiler_works=yes
5445 rm -f conftest.*
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5449 $as_echo "$acx_cv_d_compiler_works" >&6; }
5450 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5451 have_gdc=yes
5452 else
5453 have_gdc=no
5457 # Do configure tests with the C++ compiler, since that's what we build with.
5458 ac_ext=cpp
5459 ac_cpp='$CXXCPP $CPPFLAGS'
5460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5465 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5466 # optimizations to be activated explicitly by the toplevel.
5467 case "$CC" in
5468 */prev-gcc/xgcc*) ;;
5469 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5470 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5471 esac
5476 # Determine PICFLAG for target gnatlib.
5481 case "${target}" in
5482 # PIC is the default on some targets or must not be used.
5483 *-*-darwin*)
5484 # For darwin, common symbols are not allowed in MH_DYLIB files
5485 case "${CFLAGS}" in
5486 # If we are using a compiler supporting mdynamic-no-pic
5487 # and the option has been tested as safe to add, then cancel
5488 # it here, since the code generated is incompatible with shared
5489 # libs.
5490 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5491 *) PICFLAG_FOR_TARGET=-fno-common ;;
5492 esac
5494 alpha*-dec-osf5*)
5495 # PIC is the default.
5497 hppa*64*-*-hpux*)
5498 # PIC is the default for 64-bit PA HP-UX.
5500 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5502 i[34567]86-*-mingw* | x86_64-*-mingw*)
5504 i[34567]86-*-interix[3-9]*)
5505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5506 # Instead, we relocate shared libraries at runtime.
5508 i[34567]86-*-nto-qnx*)
5509 # QNX uses GNU C++, but need to define -shared option too, otherwise
5510 # it will coredump.
5511 PICFLAG_FOR_TARGET='-fPIC -shared'
5513 i[34567]86-pc-msdosdjgpp*)
5514 # DJGPP does not support shared libraries at all.
5516 ia64*-*-hpux*)
5517 # On IA64 HP-UX, PIC is the default but the pic flag
5518 # sets the default TLS model and affects inlining.
5519 PICFLAG_FOR_TARGET=-fPIC
5521 loongarch*-*-*)
5522 PICFLAG_FOR_TARGET=-fpic
5524 mips-sgi-irix6*)
5525 # PIC is the default.
5527 rs6000-ibm-aix* | powerpc-ibm-aix*)
5528 # All AIX code is PIC.
5531 # Some targets support both -fPIC and -fpic, but prefer the latter.
5532 # FIXME: Why?
5533 i[34567]86-*-* | x86_64-*-*)
5534 PICFLAG_FOR_TARGET=-fpic
5536 # FIXME: Override -fPIC default in libgcc only?
5537 sh-*-linux* | sh[2346lbe]*-*-linux*)
5538 PICFLAG_FOR_TARGET=-fpic
5540 sh*-*-netbsd*)
5541 PICFLAG_FOR_TARGET=-fpic
5543 # Default to -fPIC unless specified otherwise.
5545 PICFLAG_FOR_TARGET=-fPIC
5547 esac
5549 # If the user explicitly uses -fpic/-fPIC, keep that.
5550 case "${CFLAGS_FOR_TARGET}" in
5551 *-fpic*)
5552 PICFLAG_FOR_TARGET=-fpic
5554 *-fPIC*)
5555 PICFLAG_FOR_TARGET=-fPIC
5557 esac
5561 # -------------------------
5562 # Check C compiler features
5563 # -------------------------
5566 ac_ext=cpp
5567 ac_cpp='$CXXCPP $CPPFLAGS'
5568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5572 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5573 if test -z "$CXXCPP"; then
5574 if ${ac_cv_prog_CXXCPP+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 # Double quotes because CXXCPP needs to be expanded
5578 for CXXCPP in "$CXX -E" "/lib/cpp"
5580 ac_preproc_ok=false
5581 for ac_cxx_preproc_warn_flag in '' yes
5583 # Use a header file that comes with gcc, so configuring glibc
5584 # with a fresh cross-compiler works.
5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 # <limits.h> exists even on freestanding compilers.
5587 # On the NeXT, cc -E runs the code through the compiler's parser,
5588 # not just through cpp. "Syntax error" is here to catch this case.
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #ifdef __STDC__
5592 # include <limits.h>
5593 #else
5594 # include <assert.h>
5595 #endif
5596 Syntax error
5597 _ACEOF
5598 if ac_fn_cxx_try_cpp "$LINENO"; then :
5600 else
5601 # Broken: fails on valid input.
5602 continue
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <ac_nonexistent.h>
5611 _ACEOF
5612 if ac_fn_cxx_try_cpp "$LINENO"; then :
5613 # Broken: success on invalid input.
5614 continue
5615 else
5616 # Passes both tests.
5617 ac_preproc_ok=:
5618 break
5620 rm -f conftest.err conftest.i conftest.$ac_ext
5622 done
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.i conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then :
5626 break
5629 done
5630 ac_cv_prog_CXXCPP=$CXXCPP
5633 CXXCPP=$ac_cv_prog_CXXCPP
5634 else
5635 ac_cv_prog_CXXCPP=$CXXCPP
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5638 $as_echo "$CXXCPP" >&6; }
5639 ac_preproc_ok=false
5640 for ac_cxx_preproc_warn_flag in '' yes
5642 # Use a header file that comes with gcc, so configuring glibc
5643 # with a fresh cross-compiler works.
5644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 # <limits.h> exists even on freestanding compilers.
5646 # On the NeXT, cc -E runs the code through the compiler's parser,
5647 # not just through cpp. "Syntax error" is here to catch this case.
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #ifdef __STDC__
5651 # include <limits.h>
5652 #else
5653 # include <assert.h>
5654 #endif
5655 Syntax error
5656 _ACEOF
5657 if ac_fn_cxx_try_cpp "$LINENO"; then :
5659 else
5660 # Broken: fails on valid input.
5661 continue
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5665 # OK, works on sane cases. Now check whether nonexistent headers
5666 # can be detected and how.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <ac_nonexistent.h>
5670 _ACEOF
5671 if ac_fn_cxx_try_cpp "$LINENO"; then :
5672 # Broken: success on invalid input.
5673 continue
5674 else
5675 # Passes both tests.
5676 ac_preproc_ok=:
5677 break
5679 rm -f conftest.err conftest.i conftest.$ac_ext
5681 done
5682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5683 rm -f conftest.i conftest.err conftest.$ac_ext
5684 if $ac_preproc_ok; then :
5686 else
5687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5689 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5690 See \`config.log' for more details" "$LINENO" 5; }
5693 ac_ext=cpp
5694 ac_cpp='$CXXCPP $CPPFLAGS'
5695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5701 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5702 if ${ac_cv_path_GREP+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -z "$GREP"; then
5706 ac_path_GREP_found=false
5707 # Loop through the user's path and test for each of PROGNAME-LIST
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_prog in grep ggrep; do
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5716 as_fn_executable_p "$ac_path_GREP" || continue
5717 # Check for GNU ac_path_GREP and select it if it is found.
5718 # Check for GNU $ac_path_GREP
5719 case `"$ac_path_GREP" --version 2>&1` in
5720 *GNU*)
5721 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5723 ac_count=0
5724 $as_echo_n 0123456789 >"conftest.in"
5725 while :
5727 cat "conftest.in" "conftest.in" >"conftest.tmp"
5728 mv "conftest.tmp" "conftest.in"
5729 cp "conftest.in" "conftest.nl"
5730 $as_echo 'GREP' >> "conftest.nl"
5731 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5733 as_fn_arith $ac_count + 1 && ac_count=$as_val
5734 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5735 # Best one so far, save it but keep looking for a better one
5736 ac_cv_path_GREP="$ac_path_GREP"
5737 ac_path_GREP_max=$ac_count
5739 # 10*(2^10) chars as input seems more than enough
5740 test $ac_count -gt 10 && break
5741 done
5742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5743 esac
5745 $ac_path_GREP_found && break 3
5746 done
5747 done
5748 done
5749 IFS=$as_save_IFS
5750 if test -z "$ac_cv_path_GREP"; then
5751 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 else
5754 ac_cv_path_GREP=$GREP
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5759 $as_echo "$ac_cv_path_GREP" >&6; }
5760 GREP="$ac_cv_path_GREP"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5764 $as_echo_n "checking for egrep... " >&6; }
5765 if ${ac_cv_path_EGREP+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5769 then ac_cv_path_EGREP="$GREP -E"
5770 else
5771 if test -z "$EGREP"; then
5772 ac_path_EGREP_found=false
5773 # Loop through the user's path and test for each of PROGNAME-LIST
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_prog in egrep; do
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5782 as_fn_executable_p "$ac_path_EGREP" || continue
5783 # Check for GNU ac_path_EGREP and select it if it is found.
5784 # Check for GNU $ac_path_EGREP
5785 case `"$ac_path_EGREP" --version 2>&1` in
5786 *GNU*)
5787 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5789 ac_count=0
5790 $as_echo_n 0123456789 >"conftest.in"
5791 while :
5793 cat "conftest.in" "conftest.in" >"conftest.tmp"
5794 mv "conftest.tmp" "conftest.in"
5795 cp "conftest.in" "conftest.nl"
5796 $as_echo 'EGREP' >> "conftest.nl"
5797 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5799 as_fn_arith $ac_count + 1 && ac_count=$as_val
5800 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_EGREP="$ac_path_EGREP"
5803 ac_path_EGREP_max=$ac_count
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5807 done
5808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5809 esac
5811 $ac_path_EGREP_found && break 3
5812 done
5813 done
5814 done
5815 IFS=$as_save_IFS
5816 if test -z "$ac_cv_path_EGREP"; then
5817 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5819 else
5820 ac_cv_path_EGREP=$EGREP
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5826 $as_echo "$ac_cv_path_EGREP" >&6; }
5827 EGREP="$ac_cv_path_EGREP"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5831 $as_echo_n "checking for ANSI C header files... " >&6; }
5832 if ${ac_cv_header_stdc+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <stdlib.h>
5838 #include <stdarg.h>
5839 #include <string.h>
5840 #include <float.h>
5843 main ()
5847 return 0;
5849 _ACEOF
5850 if ac_fn_cxx_try_compile "$LINENO"; then :
5851 ac_cv_header_stdc=yes
5852 else
5853 ac_cv_header_stdc=no
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 if test $ac_cv_header_stdc = yes; then
5858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <string.h>
5863 _ACEOF
5864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5865 $EGREP "memchr" >/dev/null 2>&1; then :
5867 else
5868 ac_cv_header_stdc=no
5870 rm -f conftest*
5874 if test $ac_cv_header_stdc = yes; then
5875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <stdlib.h>
5880 _ACEOF
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "free" >/dev/null 2>&1; then :
5884 else
5885 ac_cv_header_stdc=no
5887 rm -f conftest*
5891 if test $ac_cv_header_stdc = yes; then
5892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5893 if test "$cross_compiling" = yes; then :
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <ctype.h>
5899 #include <stdlib.h>
5900 #if ((' ' & 0x0FF) == 0x020)
5901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5903 #else
5904 # define ISLOWER(c) \
5905 (('a' <= (c) && (c) <= 'i') \
5906 || ('j' <= (c) && (c) <= 'r') \
5907 || ('s' <= (c) && (c) <= 'z'))
5908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5909 #endif
5911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5913 main ()
5915 int i;
5916 for (i = 0; i < 256; i++)
5917 if (XOR (islower (i), ISLOWER (i))
5918 || toupper (i) != TOUPPER (i))
5919 return 2;
5920 return 0;
5922 _ACEOF
5923 if ac_fn_cxx_try_run "$LINENO"; then :
5925 else
5926 ac_cv_header_stdc=no
5928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5929 conftest.$ac_objext conftest.beam conftest.$ac_ext
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5935 $as_echo "$ac_cv_header_stdc" >&6; }
5936 if test $ac_cv_header_stdc = yes; then
5938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5944 inttypes.h stdint.h unistd.h
5945 do :
5946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5950 cat >>confdefs.h <<_ACEOF
5951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5952 _ACEOF
5956 done
5960 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5961 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5962 MINIX=yes
5963 else
5964 MINIX=
5968 if test "$MINIX" = yes; then
5970 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5973 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5976 $as_echo "#define _MINIX 1" >>confdefs.h
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5982 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5983 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5989 # define __EXTENSIONS__ 1
5990 $ac_includes_default
5992 main ()
5996 return 0;
5998 _ACEOF
5999 if ac_fn_cxx_try_compile "$LINENO"; then :
6000 ac_cv_safe_to_define___extensions__=yes
6001 else
6002 ac_cv_safe_to_define___extensions__=no
6004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6007 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6008 test $ac_cv_safe_to_define___extensions__ = yes &&
6009 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6011 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6013 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6015 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6017 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6021 ac_ext=c
6022 ac_cpp='$CPP $CPPFLAGS'
6023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6027 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6028 # On Suns, sometimes $CPP names a directory.
6029 if test -n "$CPP" && test -d "$CPP"; then
6030 CPP=
6032 if test -z "$CPP"; then
6033 if ${ac_cv_prog_CPP+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 # Double quotes because CPP needs to be expanded
6037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6039 ac_preproc_ok=false
6040 for ac_c_preproc_warn_flag in '' yes
6042 # Use a header file that comes with gcc, so configuring glibc
6043 # with a fresh cross-compiler works.
6044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045 # <limits.h> exists even on freestanding compilers.
6046 # On the NeXT, cc -E runs the code through the compiler's parser,
6047 # not just through cpp. "Syntax error" is here to catch this case.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #ifdef __STDC__
6051 # include <limits.h>
6052 #else
6053 # include <assert.h>
6054 #endif
6055 Syntax error
6056 _ACEOF
6057 if ac_fn_c_try_cpp "$LINENO"; then :
6059 else
6060 # Broken: fails on valid input.
6061 continue
6063 rm -f conftest.err conftest.i conftest.$ac_ext
6065 # OK, works on sane cases. Now check whether nonexistent headers
6066 # can be detected and how.
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #include <ac_nonexistent.h>
6070 _ACEOF
6071 if ac_fn_c_try_cpp "$LINENO"; then :
6072 # Broken: success on invalid input.
6073 continue
6074 else
6075 # Passes both tests.
6076 ac_preproc_ok=:
6077 break
6079 rm -f conftest.err conftest.i conftest.$ac_ext
6081 done
6082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083 rm -f conftest.i conftest.err conftest.$ac_ext
6084 if $ac_preproc_ok; then :
6085 break
6088 done
6089 ac_cv_prog_CPP=$CPP
6092 CPP=$ac_cv_prog_CPP
6093 else
6094 ac_cv_prog_CPP=$CPP
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6097 $as_echo "$CPP" >&6; }
6098 ac_preproc_ok=false
6099 for ac_c_preproc_warn_flag in '' yes
6101 # Use a header file that comes with gcc, so configuring glibc
6102 # with a fresh cross-compiler works.
6103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104 # <limits.h> exists even on freestanding compilers.
6105 # On the NeXT, cc -E runs the code through the compiler's parser,
6106 # not just through cpp. "Syntax error" is here to catch this case.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #ifdef __STDC__
6110 # include <limits.h>
6111 #else
6112 # include <assert.h>
6113 #endif
6114 Syntax error
6115 _ACEOF
6116 if ac_fn_c_try_cpp "$LINENO"; then :
6118 else
6119 # Broken: fails on valid input.
6120 continue
6122 rm -f conftest.err conftest.i conftest.$ac_ext
6124 # OK, works on sane cases. Now check whether nonexistent headers
6125 # can be detected and how.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <ac_nonexistent.h>
6129 _ACEOF
6130 if ac_fn_c_try_cpp "$LINENO"; then :
6131 # Broken: success on invalid input.
6132 continue
6133 else
6134 # Passes both tests.
6135 ac_preproc_ok=:
6136 break
6138 rm -f conftest.err conftest.i conftest.$ac_ext
6140 done
6141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6142 rm -f conftest.i conftest.err conftest.$ac_ext
6143 if $ac_preproc_ok; then :
6145 else
6146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6149 See \`config.log' for more details" "$LINENO" 5; }
6152 ac_ext=cpp
6153 ac_cpp='$CXXCPP $CPPFLAGS'
6154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6159 $as_echo_n "checking for inline... " >&6; }
6160 if ${ac_cv_c_inline+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 ac_cv_c_inline=no
6164 for ac_kw in inline __inline__ __inline; do
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #ifndef __cplusplus
6168 typedef int foo_t;
6169 static $ac_kw foo_t static_foo () {return 0; }
6170 $ac_kw foo_t foo () {return 0; }
6171 #endif
6173 _ACEOF
6174 if ac_fn_cxx_try_compile "$LINENO"; then :
6175 ac_cv_c_inline=$ac_kw
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 test "$ac_cv_c_inline" != no && break
6179 done
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6183 $as_echo "$ac_cv_c_inline" >&6; }
6185 case $ac_cv_c_inline in
6186 inline | yes) ;;
6188 case $ac_cv_c_inline in
6189 no) ac_val=;;
6190 *) ac_val=$ac_cv_c_inline;;
6191 esac
6192 cat >>confdefs.h <<_ACEOF
6193 #ifndef __cplusplus
6194 #define inline $ac_val
6195 #endif
6196 _ACEOF
6198 esac
6201 # Check whether --enable-largefile was given.
6202 if test "${enable_largefile+set}" = set; then :
6203 enableval=$enable_largefile;
6206 if test "$enable_largefile" != no; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6209 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6210 if ${ac_cv_sys_largefile_CC+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 ac_cv_sys_largefile_CC=no
6214 if test "$GCC" != yes; then
6215 ac_save_CC=$CC
6216 while :; do
6217 # IRIX 6.2 and later do not support large files by default,
6218 # so use the C compiler's -n32 option if that helps.
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
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 break
6241 rm -f core conftest.err conftest.$ac_objext
6242 CC="$CC -n32"
6243 if ac_fn_cxx_try_compile "$LINENO"; then :
6244 ac_cv_sys_largefile_CC=' -n32'; break
6246 rm -f core conftest.err conftest.$ac_objext
6247 break
6248 done
6249 CC=$ac_save_CC
6250 rm -f conftest.$ac_ext
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6254 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6255 if test "$ac_cv_sys_largefile_CC" != no; then
6256 CC=$CC$ac_cv_sys_largefile_CC
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6260 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6261 if ${ac_cv_sys_file_offset_bits+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 while :; do
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6268 /* Check that off_t can represent 2**63 - 1 correctly.
6269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6270 since some C++ compilers masquerading as C compilers
6271 incorrectly reject 9223372036854775807. */
6272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6274 && LARGE_OFF_T % 2147483647 == 1)
6275 ? 1 : -1];
6277 main ()
6281 return 0;
6283 _ACEOF
6284 if ac_fn_cxx_try_compile "$LINENO"; then :
6285 ac_cv_sys_file_offset_bits=no; break
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #define _FILE_OFFSET_BITS 64
6291 #include <sys/types.h>
6292 /* Check that off_t can represent 2**63 - 1 correctly.
6293 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6294 since some C++ compilers masquerading as C compilers
6295 incorrectly reject 9223372036854775807. */
6296 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6297 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6298 && LARGE_OFF_T % 2147483647 == 1)
6299 ? 1 : -1];
6301 main ()
6305 return 0;
6307 _ACEOF
6308 if ac_fn_cxx_try_compile "$LINENO"; then :
6309 ac_cv_sys_file_offset_bits=64; break
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_sys_file_offset_bits=unknown
6313 break
6314 done
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6317 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6318 case $ac_cv_sys_file_offset_bits in #(
6319 no | unknown) ;;
6321 cat >>confdefs.h <<_ACEOF
6322 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6323 _ACEOF
6325 esac
6326 rm -rf conftest*
6327 if test $ac_cv_sys_file_offset_bits = unknown; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6329 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6330 if ${ac_cv_sys_large_files+:} false; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 while :; do
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <sys/types.h>
6337 /* Check that off_t can represent 2**63 - 1 correctly.
6338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6339 since some C++ compilers masquerading as C compilers
6340 incorrectly reject 9223372036854775807. */
6341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6343 && LARGE_OFF_T % 2147483647 == 1)
6344 ? 1 : -1];
6346 main ()
6350 return 0;
6352 _ACEOF
6353 if ac_fn_cxx_try_compile "$LINENO"; then :
6354 ac_cv_sys_large_files=no; break
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 #define _LARGE_FILES 1
6360 #include <sys/types.h>
6361 /* Check that off_t can represent 2**63 - 1 correctly.
6362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6363 since some C++ compilers masquerading as C compilers
6364 incorrectly reject 9223372036854775807. */
6365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6367 && LARGE_OFF_T % 2147483647 == 1)
6368 ? 1 : -1];
6370 main ()
6374 return 0;
6376 _ACEOF
6377 if ac_fn_cxx_try_compile "$LINENO"; then :
6378 ac_cv_sys_large_files=1; break
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 ac_cv_sys_large_files=unknown
6382 break
6383 done
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6386 $as_echo "$ac_cv_sys_large_files" >&6; }
6387 case $ac_cv_sys_large_files in #(
6388 no | unknown) ;;
6390 cat >>confdefs.h <<_ACEOF
6391 #define _LARGE_FILES $ac_cv_sys_large_files
6392 _ACEOF
6394 esac
6395 rm -rf conftest*
6401 # The cast to long int works around a bug in the HP C Compiler
6402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6404 # This bug is HP SR number 8606223364.
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6406 $as_echo_n "checking size of ino_t... " >&6; }
6407 if ${ac_cv_sizeof_ino_t+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6412 else
6413 if test "$ac_cv_type_ino_t" = yes; then
6414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6416 as_fn_error 77 "cannot compute sizeof (ino_t)
6417 See \`config.log' for more details" "$LINENO" 5; }
6418 else
6419 ac_cv_sizeof_ino_t=0
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6425 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6429 cat >>confdefs.h <<_ACEOF
6430 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6431 _ACEOF
6434 # The cast to long int works around a bug in the HP C Compiler
6435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6437 # This bug is HP SR number 8606223364.
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6439 $as_echo_n "checking size of dev_t... " >&6; }
6440 if ${ac_cv_sizeof_dev_t+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6445 else
6446 if test "$ac_cv_type_dev_t" = yes; then
6447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6449 as_fn_error 77 "cannot compute sizeof (dev_t)
6450 See \`config.log' for more details" "$LINENO" 5; }
6451 else
6452 ac_cv_sizeof_dev_t=0
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6458 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6462 cat >>confdefs.h <<_ACEOF
6463 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6464 _ACEOF
6468 # Select the right stat being able to handle 64bit inodes, if needed.
6469 if test "$enable_largefile" != no; then
6470 case "$host, $build" in
6471 *-*-aix*,*|*,*-*-aix*)
6472 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6474 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6476 fi;;
6477 esac
6481 # sizeof(char) is 1 by definition.
6482 # The cast to long int works around a bug in the HP C Compiler
6483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6485 # This bug is HP SR number 8606223364.
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6487 $as_echo_n "checking size of void *... " >&6; }
6488 if ${ac_cv_sizeof_void_p+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6493 else
6494 if test "$ac_cv_type_void_p" = yes; then
6495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6497 as_fn_error 77 "cannot compute sizeof (void *)
6498 See \`config.log' for more details" "$LINENO" 5; }
6499 else
6500 ac_cv_sizeof_void_p=0
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6510 cat >>confdefs.h <<_ACEOF
6511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6512 _ACEOF
6515 # The cast to long int works around a bug in the HP C Compiler
6516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6518 # This bug is HP SR number 8606223364.
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6520 $as_echo_n "checking size of short... " >&6; }
6521 if ${ac_cv_sizeof_short+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6526 else
6527 if test "$ac_cv_type_short" = yes; then
6528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6530 as_fn_error 77 "cannot compute sizeof (short)
6531 See \`config.log' for more details" "$LINENO" 5; }
6532 else
6533 ac_cv_sizeof_short=0
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6539 $as_echo "$ac_cv_sizeof_short" >&6; }
6543 cat >>confdefs.h <<_ACEOF
6544 #define SIZEOF_SHORT $ac_cv_sizeof_short
6545 _ACEOF
6548 # The cast to long int works around a bug in the HP C Compiler
6549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6551 # This bug is HP SR number 8606223364.
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6553 $as_echo_n "checking size of int... " >&6; }
6554 if ${ac_cv_sizeof_int+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6559 else
6560 if test "$ac_cv_type_int" = yes; then
6561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6563 as_fn_error 77 "cannot compute sizeof (int)
6564 See \`config.log' for more details" "$LINENO" 5; }
6565 else
6566 ac_cv_sizeof_int=0
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6572 $as_echo "$ac_cv_sizeof_int" >&6; }
6576 cat >>confdefs.h <<_ACEOF
6577 #define SIZEOF_INT $ac_cv_sizeof_int
6578 _ACEOF
6581 # The cast to long int works around a bug in the HP C Compiler
6582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6584 # This bug is HP SR number 8606223364.
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6586 $as_echo_n "checking size of long... " >&6; }
6587 if ${ac_cv_sizeof_long+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6592 else
6593 if test "$ac_cv_type_long" = yes; then
6594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6596 as_fn_error 77 "cannot compute sizeof (long)
6597 See \`config.log' for more details" "$LINENO" 5; }
6598 else
6599 ac_cv_sizeof_long=0
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6605 $as_echo "$ac_cv_sizeof_long" >&6; }
6609 cat >>confdefs.h <<_ACEOF
6610 #define SIZEOF_LONG $ac_cv_sizeof_long
6611 _ACEOF
6614 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6615 if test "x$ac_cv_type_long_long" = xyes; then :
6617 cat >>confdefs.h <<_ACEOF
6618 #define HAVE_LONG_LONG 1
6619 _ACEOF
6621 # The cast to long int works around a bug in the HP C Compiler
6622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6624 # This bug is HP SR number 8606223364.
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6626 $as_echo_n "checking size of long long... " >&6; }
6627 if ${ac_cv_sizeof_long_long+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6632 else
6633 if test "$ac_cv_type_long_long" = yes; then
6634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6636 as_fn_error 77 "cannot compute sizeof (long long)
6637 See \`config.log' for more details" "$LINENO" 5; }
6638 else
6639 ac_cv_sizeof_long_long=0
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6649 cat >>confdefs.h <<_ACEOF
6650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6651 _ACEOF
6656 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6657 case $ac_cv_c_int8_t in #(
6658 no|yes) ;; #(
6661 cat >>confdefs.h <<_ACEOF
6662 #define int8_t $ac_cv_c_int8_t
6663 _ACEOF
6665 esac
6667 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6668 case $ac_cv_c_int16_t in #(
6669 no|yes) ;; #(
6672 cat >>confdefs.h <<_ACEOF
6673 #define int16_t $ac_cv_c_int16_t
6674 _ACEOF
6676 esac
6678 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6679 case $ac_cv_c_int32_t in #(
6680 no|yes) ;; #(
6683 cat >>confdefs.h <<_ACEOF
6684 #define int32_t $ac_cv_c_int32_t
6685 _ACEOF
6687 esac
6689 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6690 case $ac_cv_c_int64_t in #(
6691 no|yes) ;; #(
6694 cat >>confdefs.h <<_ACEOF
6695 #define int64_t $ac_cv_c_int64_t
6696 _ACEOF
6698 esac
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6702 $as_echo_n "checking for unsigned long long int... " >&6; }
6703 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 ac_cv_type_unsigned_long_long_int=yes
6707 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6711 /* For now, do not test the preprocessor; as of 2007 there are too many
6712 implementations with broken preprocessors. Perhaps this can
6713 be revisited in 2012. In the meantime, code should not expect
6714 #if to work with literals wider than 32 bits. */
6715 /* Test literals. */
6716 long long int ll = 9223372036854775807ll;
6717 long long int nll = -9223372036854775807LL;
6718 unsigned long long int ull = 18446744073709551615ULL;
6719 /* Test constant expressions. */
6720 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6721 ? 1 : -1)];
6722 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6723 ? 1 : -1)];
6724 int i = 63;
6726 main ()
6728 /* Test availability of runtime routines for shift and division. */
6729 long long int llmax = 9223372036854775807ll;
6730 unsigned long long int ullmax = 18446744073709551615ull;
6731 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6732 | (llmax / ll) | (llmax % ll)
6733 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6734 | (ullmax / ull) | (ullmax % ull));
6736 return 0;
6739 _ACEOF
6740 if ac_fn_cxx_try_link "$LINENO"; then :
6742 else
6743 ac_cv_type_unsigned_long_long_int=no
6745 rm -f core conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6750 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6751 if test $ac_cv_type_unsigned_long_long_int = yes; then
6753 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6760 $as_echo_n "checking for long long int... " >&6; }
6761 if ${ac_cv_type_long_long_int+:} false; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 ac_cv_type_long_long_int=yes
6765 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6766 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6767 if test $ac_cv_type_long_long_int = yes; then
6768 if test "$cross_compiling" = yes; then :
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <limits.h>
6774 #ifndef LLONG_MAX
6775 # define HALF \
6776 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6777 # define LLONG_MAX (HALF - 1 + HALF)
6778 #endif
6780 main ()
6782 long long int n = 1;
6783 int i;
6784 for (i = 0; ; i++)
6786 long long int m = n << i;
6787 if (m >> i != n)
6788 return 1;
6789 if (LLONG_MAX / 2 < m)
6790 break;
6792 return 0;
6794 return 0;
6796 _ACEOF
6797 if ac_fn_cxx_try_run "$LINENO"; then :
6799 else
6800 ac_cv_type_long_long_int=no
6802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6803 conftest.$ac_objext conftest.beam conftest.$ac_ext
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6810 $as_echo "$ac_cv_type_long_long_int" >&6; }
6811 if test $ac_cv_type_long_long_int = yes; then
6813 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6819 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6820 if test "x$ac_cv_type_intmax_t" = xyes; then :
6822 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6824 else
6825 test $ac_cv_type_long_long_int = yes \
6826 && ac_type='long long int' \
6827 || ac_type='long int'
6829 cat >>confdefs.h <<_ACEOF
6830 #define intmax_t $ac_type
6831 _ACEOF
6837 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6838 if test "x$ac_cv_type_intptr_t" = xyes; then :
6840 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6842 else
6843 for ac_type in 'int' 'long int' 'long long int'; do
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 $ac_includes_default
6848 main ()
6850 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6851 test_array [0] = 0;
6852 return test_array [0];
6855 return 0;
6857 _ACEOF
6858 if ac_fn_cxx_try_compile "$LINENO"; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define intptr_t $ac_type
6862 _ACEOF
6864 ac_type=
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 test -z "$ac_type" && break
6868 done
6872 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6873 case $ac_cv_c_uint8_t in #(
6874 no|yes) ;; #(
6877 $as_echo "#define _UINT8_T 1" >>confdefs.h
6880 cat >>confdefs.h <<_ACEOF
6881 #define uint8_t $ac_cv_c_uint8_t
6882 _ACEOF
6884 esac
6886 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6887 case $ac_cv_c_uint16_t in #(
6888 no|yes) ;; #(
6892 cat >>confdefs.h <<_ACEOF
6893 #define uint16_t $ac_cv_c_uint16_t
6894 _ACEOF
6896 esac
6898 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6899 case $ac_cv_c_uint32_t in #(
6900 no|yes) ;; #(
6903 $as_echo "#define _UINT32_T 1" >>confdefs.h
6906 cat >>confdefs.h <<_ACEOF
6907 #define uint32_t $ac_cv_c_uint32_t
6908 _ACEOF
6910 esac
6912 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6913 case $ac_cv_c_uint64_t in #(
6914 no|yes) ;; #(
6917 $as_echo "#define _UINT64_T 1" >>confdefs.h
6920 cat >>confdefs.h <<_ACEOF
6921 #define uint64_t $ac_cv_c_uint64_t
6922 _ACEOF
6924 esac
6928 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6929 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6931 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6933 else
6934 test $ac_cv_type_unsigned_long_long_int = yes \
6935 && ac_type='unsigned long long int' \
6936 || ac_type='unsigned long int'
6938 cat >>confdefs.h <<_ACEOF
6939 #define uintmax_t $ac_type
6940 _ACEOF
6946 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6947 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6949 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6951 else
6952 for ac_type in 'unsigned int' 'unsigned long int' \
6953 'unsigned long long int'; do
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 $ac_includes_default
6958 main ()
6960 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6961 test_array [0] = 0;
6962 return test_array [0];
6965 return 0;
6967 _ACEOF
6968 if ac_fn_cxx_try_compile "$LINENO"; then :
6970 cat >>confdefs.h <<_ACEOF
6971 #define uintptr_t $ac_type
6972 _ACEOF
6974 ac_type=
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 test -z "$ac_type" && break
6978 done
6994 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6995 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6998 # check what underlying integer type int64_t uses
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7000 $as_echo_n "checking for int64_t underlying type... " >&6; }
7001 if ${ac_cv_int64_t_type+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7008 #ifdef HAVE_STDINT_H
7009 #include <stdint.h>
7010 #endif
7011 template <typename T> struct X { };
7012 template <>
7013 struct X<long> { typedef long t; };
7016 main ()
7018 X<int64_t>::t x;
7020 return 0;
7022 _ACEOF
7023 if ac_fn_cxx_try_compile "$LINENO"; then :
7024 ac_cv_int64_t_type=long
7025 else
7026 ac_cv_int64_t_type="long long"
7028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7031 $as_echo "$ac_cv_int64_t_type" >&6; }
7032 if test "$ac_cv_int64_t_type" = "long"; then
7034 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7036 else
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 #ifdef HAVE_STDINT_H
7041 #include <stdint.h>
7042 #endif
7043 template <typename T> struct X { };
7044 template <>
7045 struct X<long long> { typedef long long t; };
7048 main ()
7050 X<int64_t>::t x;
7052 return 0;
7054 _ACEOF
7055 if ac_fn_cxx_try_compile "$LINENO"; then :
7057 else
7058 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7064 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7065 if ${ac_cv_std_swap_in_utility+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7072 #include <utility>
7075 main ()
7077 int a, b; std::swap(a,b);
7079 return 0;
7081 _ACEOF
7082 if ac_fn_cxx_try_compile "$LINENO"; then :
7083 ac_cv_std_swap_in_utility=yes
7084 else
7085 ac_cv_std_swap_in_utility=no
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7090 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7091 if test $ac_cv_std_swap_in_utility = yes; then
7093 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7097 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7098 # If the host compiler is affected by the bug, and we build with optimization
7099 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7100 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7101 # Since there is no reliable feature check for the presence of this bug,
7102 # we simply use a GCC version number check. (This should never trigger for
7103 # stages 2 or 3 of a native bootstrap.)
7104 aliasing_flags=
7105 if test "$GCC" = yes; then
7106 saved_CXXFLAGS="$CXXFLAGS"
7108 # The following test compilation will succeed if and only if $CXX accepts
7109 # -fno-strict-aliasing *and* is older than GCC 4.3.
7110 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7112 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7116 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7117 #error compiler not affected by placement new aliasing bug
7118 #endif
7120 _ACEOF
7121 if ac_fn_cxx_try_compile "$LINENO"; then :
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7123 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 CXXFLAGS="$saved_CXXFLAGS"
7136 # ---------------------
7137 # Warnings and checking
7138 # ---------------------
7140 # Check $CC warning features (if it's GCC).
7141 # We want to use -pedantic, but we don't want warnings about
7142 # * 'long long'
7143 # * variadic macros
7144 # * overlong strings
7145 # * C++11 narrowing conversions in { }
7146 # So, we only use -pedantic if we can disable those warnings.
7148 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7149 # Check whether --enable-build-format-warnings was given.
7150 if test "${enable_build_format_warnings+set}" = set; then :
7151 enableval=$enable_build_format_warnings;
7152 else
7153 enable_build_format_warnings=yes
7156 if test $enable_build_format_warnings = no; then :
7157 wf_opt=-Wno-format
7158 else
7159 wf_opt=
7161 ac_ext=cpp
7162 ac_cpp='$CXXCPP $CPPFLAGS'
7163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7167 loose_warn=
7168 save_CXXFLAGS="$CXXFLAGS"
7169 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7170 # Do the check with the no- prefix removed since gcc silently
7171 # accepts any -Wno-* option on purpose
7172 case $real_option in
7173 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7174 *) option=$real_option ;;
7175 esac
7176 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7179 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7180 if eval \${$as_acx_Woption+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 CXXFLAGS="$option"
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7188 main ()
7192 return 0;
7194 _ACEOF
7195 if ac_fn_cxx_try_compile "$LINENO"; then :
7196 eval "$as_acx_Woption=yes"
7197 else
7198 eval "$as_acx_Woption=no"
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 eval ac_res=\$$as_acx_Woption
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7205 $as_echo "$ac_res" >&6; }
7206 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7207 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7209 done
7210 CXXFLAGS="$save_CXXFLAGS"
7211 ac_ext=cpp
7212 ac_cpp='$CXXCPP $CPPFLAGS'
7213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7219 ac_ext=c
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225 c_loose_warn=
7226 save_CFLAGS="$CFLAGS"
7227 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7228 # Do the check with the no- prefix removed since gcc silently
7229 # accepts any -Wno-* option on purpose
7230 case $real_option in
7231 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7232 *) option=$real_option ;;
7233 esac
7234 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7237 $as_echo_n "checking whether $CC supports $option... " >&6; }
7238 if eval \${$as_acx_Woption+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 CFLAGS="$option"
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7246 main ()
7250 return 0;
7252 _ACEOF
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 eval "$as_acx_Woption=yes"
7255 else
7256 eval "$as_acx_Woption=no"
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 eval ac_res=\$$as_acx_Woption
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7263 $as_echo "$ac_res" >&6; }
7264 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7265 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7267 done
7268 CFLAGS="$save_CFLAGS"
7269 ac_ext=cpp
7270 ac_cpp='$CXXCPP $CPPFLAGS'
7271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7276 ac_ext=cpp
7277 ac_cpp='$CXXCPP $CPPFLAGS'
7278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282 strict_warn=
7283 save_CXXFLAGS="$CXXFLAGS"
7284 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7285 # Do the check with the no- prefix removed since gcc silently
7286 # accepts any -Wno-* option on purpose
7287 case $real_option in
7288 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7289 *) option=$real_option ;;
7290 esac
7291 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7294 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7295 if eval \${$as_acx_Woption+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 CXXFLAGS="$option"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7303 main ()
7307 return 0;
7309 _ACEOF
7310 if ac_fn_cxx_try_compile "$LINENO"; then :
7311 eval "$as_acx_Woption=yes"
7312 else
7313 eval "$as_acx_Woption=no"
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318 eval ac_res=\$$as_acx_Woption
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7322 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7324 done
7325 CXXFLAGS="$save_CXXFLAGS"
7326 ac_ext=cpp
7327 ac_cpp='$CXXCPP $CPPFLAGS'
7328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7333 ac_ext=c
7334 ac_cpp='$CPP $CPPFLAGS'
7335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339 c_strict_warn=
7340 save_CFLAGS="$CFLAGS"
7341 for real_option in -Wold-style-definition -Wc++-compat; do
7342 # Do the check with the no- prefix removed since gcc silently
7343 # accepts any -Wno-* option on purpose
7344 case $real_option in
7345 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7346 *) option=$real_option ;;
7347 esac
7348 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7351 $as_echo_n "checking whether $CC supports $option... " >&6; }
7352 if eval \${$as_acx_Woption+:} false; then :
7353 $as_echo_n "(cached) " >&6
7354 else
7355 CFLAGS="$option"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7360 main ()
7364 return 0;
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 eval "$as_acx_Woption=yes"
7369 else
7370 eval "$as_acx_Woption=no"
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 eval ac_res=\$$as_acx_Woption
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7377 $as_echo "$ac_res" >&6; }
7378 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7379 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7381 done
7382 CFLAGS="$save_CFLAGS"
7383 ac_ext=cpp
7384 ac_cpp='$CXXCPP $CPPFLAGS'
7385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7390 ac_ext=cpp
7391 ac_cpp='$CXXCPP $CPPFLAGS'
7392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7396 # Do the check with the no- prefix removed from the warning options
7397 # since gcc silently accepts any -Wno-* option on purpose
7398 if test "$GXX" = yes; then :
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7400 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7401 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 save_CXXFLAGS="$CXXFLAGS"
7405 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_cxx_try_compile "$LINENO"; then :
7418 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7419 else
7420 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 CXXFLAGS="$save_CXXFLAGS"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7426 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7427 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7428 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7432 ac_ext=cpp
7433 ac_cpp='$CXXCPP $CPPFLAGS'
7434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439 ac_ext=cpp
7440 ac_cpp='$CXXCPP $CPPFLAGS'
7441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7445 # Check whether --enable-werror-always was given.
7446 if test "${enable_werror_always+set}" = set; then :
7447 enableval=$enable_werror_always;
7448 else
7449 enable_werror_always=no
7452 if test $enable_werror_always = yes; then :
7453 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7456 ac_ext=cpp
7457 ac_cpp='$CXXCPP $CPPFLAGS'
7458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7464 # The above macros do nothing if the compiler is not GCC. However, the
7465 # Makefile has more goo to add other flags, so these variables are used
7466 # to enable warnings only for GCC.
7467 warn_cflags=
7468 warn_cxxflags=
7469 if test "x$GCC" = "xyes"; then
7470 warn_cflags='$(GCC_WARN_CFLAGS)'
7471 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7476 # Disable exceptions and RTTI if building with g++
7477 ac_ext=c
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7483 noexception_flags=
7484 save_CFLAGS="$CFLAGS"
7485 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7486 # Do the check with the no- prefix removed since gcc silently
7487 # accepts any -Wno-* option on purpose
7488 case $real_option in
7489 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7490 *) option=$real_option ;;
7491 esac
7492 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7495 $as_echo_n "checking whether $CC supports $option... " >&6; }
7496 if eval \${$as_acx_Woption+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 CFLAGS="$option"
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7504 main ()
7508 return 0;
7510 _ACEOF
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512 eval "$as_acx_Woption=yes"
7513 else
7514 eval "$as_acx_Woption=no"
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 eval ac_res=\$$as_acx_Woption
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7521 $as_echo "$ac_res" >&6; }
7522 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7523 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7525 done
7526 CFLAGS="$save_CFLAGS"
7527 ac_ext=cpp
7528 ac_cpp='$CXXCPP $CPPFLAGS'
7529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7535 # Enable expensive internal checks
7536 is_release=
7537 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7538 is_release=yes
7541 # Check whether --enable-checking was given.
7542 if test "${enable_checking+set}" = set; then :
7543 enableval=$enable_checking; ac_checking_flags="${enableval}"
7544 else
7546 # Determine the default checks.
7547 if test x$is_release = x ; then
7548 ac_checking_flags=yes,extra
7549 else
7550 ac_checking_flags=release
7554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7555 for check in release $ac_checking_flags
7557 case $check in
7558 # these set all the flags to specific states
7559 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7560 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7561 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7562 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7563 ac_tree_checking=1 ; ac_valgrind_checking= ;
7564 ac_types_checking=1 ;;
7565 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7566 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7567 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7568 ac_rtlflag_checking= ; ac_runtime_checking= ;
7569 ac_tree_checking= ; ac_valgrind_checking= ;
7570 ac_types_checking= ;;
7571 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7572 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7573 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7574 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7575 ac_tree_checking=1 ; ac_valgrind_checking= ;
7576 ac_types_checking=1 ;;
7577 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7578 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7579 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7580 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7581 ac_tree_checking= ; ac_valgrind_checking= ;
7582 ac_types_checking= ;;
7583 # these enable particular checks
7584 assert) ac_assert_checking=1 ;;
7585 df) ac_df_checking=1 ;;
7586 extra) ac_extra_checking=1 ;;
7587 fold) ac_fold_checking=1 ;;
7588 gc) ac_gc_checking=1 ;;
7589 gcac) ac_gc_always_collect=1 ;;
7590 gimple) ac_gimple_checking=1 ;;
7591 misc) ac_checking=1 ;;
7592 rtl) ac_rtl_checking=1 ;;
7593 rtlflag) ac_rtlflag_checking=1 ;;
7594 runtime) ac_runtime_checking=1 ;;
7595 tree) ac_tree_checking=1 ;;
7596 types) ac_types_checking=1 ;;
7597 valgrind) ac_valgrind_checking=1 ;;
7598 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7599 esac
7600 done
7601 IFS="$ac_save_IFS"
7603 nocommon_flag=""
7604 if test x$ac_checking != x ; then
7606 $as_echo "#define CHECKING_P 1" >>confdefs.h
7608 nocommon_flag=-fno-common
7609 else
7610 $as_echo "#define CHECKING_P 0" >>confdefs.h
7614 if test x$ac_extra_checking != x ; then
7616 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7618 else
7619 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7622 if test x$ac_df_checking != x ; then
7624 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7627 if test x$ac_assert_checking != x ; then
7629 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7632 if test x$ac_gimple_checking != x ; then
7634 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7638 if test x$ac_runtime_checking != x ; then
7640 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7643 if test x$ac_tree_checking != x ; then
7645 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7647 TREECHECKING=yes
7649 if test x$ac_types_checking != x ; then
7651 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7655 if test x$ac_rtl_checking != x ; then
7657 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7660 if test x$ac_rtlflag_checking != x ; then
7662 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7665 if test x$ac_gc_checking != x ; then
7667 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7670 if test x$ac_gc_always_collect != x ; then
7672 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7675 if test x$ac_fold_checking != x ; then
7677 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7680 valgrind_path_defines=
7681 valgrind_command=
7683 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7684 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7685 have_valgrind_h=yes
7686 else
7687 have_valgrind_h=no
7692 # It is certainly possible that there's valgrind but no valgrind.h.
7693 # GCC relies on making annotations so we must have both.
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7695 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <valgrind/memcheck.h>
7699 #ifndef VALGRIND_DISCARD
7700 #error VALGRIND_DISCARD not defined
7701 #endif
7702 _ACEOF
7703 if ac_fn_cxx_try_cpp "$LINENO"; then :
7704 gcc_cv_header_valgrind_memcheck_h=yes
7705 else
7706 gcc_cv_header_valgrind_memcheck_h=no
7708 rm -f conftest.err conftest.i conftest.$ac_ext
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7710 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7712 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7715 #include <memcheck.h>
7716 #ifndef VALGRIND_DISCARD
7717 #error VALGRIND_DISCARD not defined
7718 #endif
7719 _ACEOF
7720 if ac_fn_cxx_try_cpp "$LINENO"; then :
7721 gcc_cv_header_memcheck_h=yes
7722 else
7723 gcc_cv_header_memcheck_h=no
7725 rm -f conftest.err conftest.i conftest.$ac_ext
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7727 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7728 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7730 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7733 if test $gcc_cv_header_memcheck_h = yes; then
7735 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7739 if test x$ac_valgrind_checking != x ; then
7741 # Prepare PATH_SEPARATOR.
7742 # The user is always right.
7743 if test "${PATH_SEPARATOR+set}" != set; then
7744 echo "#! /bin/sh" >conf$$.sh
7745 echo "exit 0" >>conf$$.sh
7746 chmod +x conf$$.sh
7747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7748 PATH_SEPARATOR=';'
7749 else
7750 PATH_SEPARATOR=:
7752 rm -f conf$$.sh
7755 # Find out how to test for executable files. Don't use a zero-byte file,
7756 # as systems may use methods other than mode bits to determine executability.
7757 cat >conf$$.file <<_ASEOF
7758 #! /bin/sh
7759 exit 0
7760 _ASEOF
7761 chmod +x conf$$.file
7762 if test -x conf$$.file >/dev/null 2>&1; then
7763 ac_executable_p="test -x"
7764 else
7765 ac_executable_p="test -f"
7767 rm -f conf$$.file
7769 # Extract the first word of "valgrind", so it can be a program name with args.
7770 set dummy valgrind; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_path_valgrind_path+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 case "$valgrind_path" in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7781 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7782 for ac_dir in $PATH; do
7783 IFS="$ac_save_IFS"
7784 test -z "$ac_dir" && ac_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7787 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7788 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7789 break 2
7792 done
7793 done
7794 IFS="$ac_save_IFS"
7796 esac
7798 valgrind_path="$ac_cv_path_valgrind_path"
7799 if test -n "$valgrind_path"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7801 $as_echo "$valgrind_path" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7807 if test "x$valgrind_path" = "x" \
7808 || (test $have_valgrind_h = no \
7809 && test $gcc_cv_header_memcheck_h = no \
7810 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7811 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7813 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7814 valgrind_command="$valgrind_path -q"
7816 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7822 # Enable code coverage collection
7823 # Check whether --enable-coverage was given.
7824 if test "${enable_coverage+set}" = set; then :
7825 enableval=$enable_coverage; case "${enableval}" in
7826 yes|noopt)
7827 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7829 opt)
7830 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7833 # a.k.a. --disable-coverage
7834 coverage_flags=""
7837 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7839 esac
7840 else
7841 coverage_flags=""
7846 # Check whether --enable-gather-detailed-mem-stats was given.
7847 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7848 enableval=$enable_gather_detailed_mem_stats;
7849 else
7850 enable_gather_detailed_mem_stats=no
7853 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7855 cat >>confdefs.h <<_ACEOF
7856 #define GATHER_STATISTICS $gather_stats
7857 _ACEOF
7860 # Check whether --enable-valgrind-annotations was given.
7861 if test "${enable_valgrind_annotations+set}" = set; then :
7862 enableval=$enable_valgrind_annotations;
7863 else
7864 enable_valgrind_annotations=no
7867 if test x$enable_valgrind_annotations != xno \
7868 || test x$ac_valgrind_checking != x; then
7869 if (test $have_valgrind_h = no \
7870 && test $gcc_cv_header_memcheck_h = no \
7871 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7872 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7875 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7879 # -------------------------------
7880 # Miscenalleous configure options
7881 # -------------------------------
7883 # Determine whether or not multilibs are enabled.
7884 # Check whether --enable-multilib was given.
7885 if test "${enable_multilib+set}" = set; then :
7886 enableval=$enable_multilib;
7887 else
7888 enable_multilib=yes
7893 # Determine whether or not multiarch is enabled.
7894 # Check whether --enable-multiarch was given.
7895 if test "${enable_multiarch+set}" = set; then :
7896 enableval=$enable_multiarch; case "${enableval}" in
7897 yes|no|auto) enable_multiarch=$enableval;;
7898 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7899 esac
7900 else
7901 enable_multiarch=auto
7904 if test x${enable_multiarch} = xauto; then
7905 if test x${with_native_system_header_dir} != x; then
7906 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7907 enable_multiarch=no
7909 if test x$host != x$target && test "x$with_sysroot" = x; then
7910 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7911 enable_multiarch=no
7914 if test x${enable_multiarch} = xyes; then
7916 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7920 $as_echo_n "checking for multiarch configuration... " >&6; }
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7923 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7925 # needed for setting the multiarch name for soft-float/hard-float ABIs
7929 # default stack clash protection guard size as power of twos in bytes.
7930 # Please keep these in sync with params.def.
7931 stk_clash_min=12
7932 stk_clash_max=30
7934 # Keep the default value when the option is not used to 0, this allows us to
7935 # distinguish between the cases where the user specifially set a value via
7936 # configure and when the normal default value is used.
7938 # Check whether --with-stack-clash-protection-guard-size was given.
7939 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7940 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7941 else
7942 DEFAULT_STK_CLASH_GUARD_SIZE=0
7945 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7946 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7947 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7948 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
7952 cat >>confdefs.h <<_ACEOF
7953 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7954 _ACEOF
7957 # Specify the number of splits of match.pd to generate.
7959 # Check whether --with-matchpd-partitions was given.
7960 if test "${with_matchpd_partitions+set}" = set; then :
7961 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7962 else
7963 DEFAULT_MATCHPD_PARTITIONS=10
7966 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7967 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7972 # Specify the number of splits of insn-emit.cc to generate.
7974 # Check whether --with-insnemit-partitions was given.
7975 if test "${with_insnemit_partitions+set}" = set; then :
7976 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7977 else
7978 DEFAULT_INSNEMIT_PARTITIONS=10
7981 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7982 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7987 # Enable __cxa_atexit for C++.
7988 # Check whether --enable-__cxa_atexit was given.
7989 if test "${enable___cxa_atexit+set}" = set; then :
7990 enableval=$enable___cxa_atexit;
7994 # Enable C extension for decimal float if target supports it.
7996 # Check whether --enable-decimal-float was given.
7997 if test "${enable_decimal_float+set}" = set; then :
7998 enableval=$enable_decimal_float;
7999 case $enable_decimal_float in
8000 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
8001 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
8002 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
8003 esac
8005 else
8007 case $target in
8008 aarch64* | \
8009 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
8010 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
8011 i?86*-*-mingw* | x86_64*-*-mingw* | \
8012 i?86*-*-cygwin* | x86_64*-*-cygwin*)
8013 enable_decimal_float=yes
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
8017 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
8018 enable_decimal_float=no
8020 esac
8025 # x86's use BID format instead of DPD
8026 case x$enable_decimal_float in
8027 xyes)
8028 case $target in
8029 aarch64* | i?86*-*-* | x86_64*-*-*)
8030 enable_decimal_float=bid
8033 enable_decimal_float=dpd
8035 esac
8036 default_decimal_float=$enable_decimal_float
8038 xno)
8039 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8040 # dependency on libdecnumber.
8041 default_decimal_float=dpd
8043 esac
8048 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8050 cat >>confdefs.h <<_ACEOF
8051 #define ENABLE_DECIMAL_FLOAT $dfp
8052 _ACEOF
8055 # Use default_decimal_float for dependency.
8056 enable_decimal_float=$default_decimal_float
8058 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8060 cat >>confdefs.h <<_ACEOF
8061 #define ENABLE_DECIMAL_BID_FORMAT $bid
8062 _ACEOF
8065 # Enable C extension for fixed-point arithmetic.
8066 # Check whether --enable-fixed-point was given.
8067 if test "${enable_fixed_point+set}" = set; then :
8068 enableval=$enable_fixed_point;
8069 else
8071 case $target in
8072 arm*)
8073 enable_fixed_point=yes
8076 mips*-*-*)
8077 enable_fixed_point=yes
8079 loongarch*-*-*)
8080 enable_fixed_point=yes
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8084 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8085 enable_fixed_point=no
8087 esac
8093 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8095 cat >>confdefs.h <<_ACEOF
8096 #define ENABLE_FIXED_POINT $fixedpoint
8097 _ACEOF
8100 # Enable threads
8101 # Pass with no value to take the default
8102 # Pass with a value to specify a thread package
8103 # Check whether --enable-threads was given.
8104 if test "${enable_threads+set}" = set; then :
8105 enableval=$enable_threads;
8106 else
8107 enable_threads=''
8111 # Check whether --enable-tls was given.
8112 if test "${enable_tls+set}" = set; then :
8113 enableval=$enable_tls;
8114 case $enable_tls in
8115 yes | no) ;;
8116 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8117 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8118 esac
8120 else
8121 enable_tls=''
8125 # Check whether --enable-vtable-verify was given.
8126 if test "${enable_vtable_verify+set}" = set; then :
8127 enableval=$enable_vtable_verify;
8128 else
8129 enable_vtable_verify=no
8132 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8134 cat >>confdefs.h <<_ACEOF
8135 #define ENABLE_VTABLE_VERIFY $vtable_verify
8136 _ACEOF
8139 # Check whether --enable-analyzer was given.
8140 if test "${enable_analyzer+set}" = set; then :
8141 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8142 analyzer=0
8143 else
8144 analyzer=1
8146 else
8147 analyzer=1
8151 cat >>confdefs.h <<_ACEOF
8152 #define ENABLE_ANALYZER $analyzer
8153 _ACEOF
8156 # Check whether --enable-objc-gc was given.
8157 if test "${enable_objc_gc+set}" = set; then :
8158 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8159 objc_boehm_gc=''
8160 else
8161 objc_boehm_gc=1
8163 else
8164 objc_boehm_gc=''
8169 # Check whether --with-dwarf2 was given.
8170 if test "${with_dwarf2+set}" = set; then :
8171 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8172 else
8173 dwarf2=no
8177 # Check whether --enable-shared was given.
8178 if test "${enable_shared+set}" = set; then :
8179 enableval=$enable_shared;
8180 case $enable_shared in
8181 yes | no) ;;
8183 enable_shared=no
8184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8185 for pkg in $enableval; do
8186 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8187 enable_shared=yes
8189 done
8190 IFS="$ac_save_ifs"
8192 esac
8194 else
8195 enable_shared=yes
8200 # Check whether --enable-gcov was given.
8201 if test "${enable_gcov+set}" = set; then :
8202 enableval=$enable_gcov;
8203 else
8204 case $target in
8205 bpf-*-*)
8206 enable_gcov=no
8209 enable_gcov=yes
8211 esac
8218 # Check whether --with-specs was given.
8219 if test "${with_specs+set}" = set; then :
8220 withval=$with_specs; CONFIGURE_SPECS=$withval
8221 else
8222 CONFIGURE_SPECS=
8230 # Check whether --with-pkgversion was given.
8231 if test "${with_pkgversion+set}" = set; then :
8232 withval=$with_pkgversion; case "$withval" in
8233 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8234 no) PKGVERSION= ;;
8235 *) PKGVERSION="($withval) " ;;
8236 esac
8237 else
8238 PKGVERSION="(GCC) "
8246 # Check whether --with-bugurl was given.
8247 if test "${with_bugurl+set}" = set; then :
8248 withval=$with_bugurl; case "$withval" in
8249 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8250 no) BUGURL=
8252 *) BUGURL="$withval"
8254 esac
8255 else
8256 BUGURL="https://gcc.gnu.org/bugs/"
8260 case ${BUGURL} in
8262 REPORT_BUGS_TO=
8263 REPORT_BUGS_TEXI=
8266 REPORT_BUGS_TO="<$BUGURL>"
8267 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8269 esac;
8274 # Allow overriding the default URL for documentation
8276 # Check whether --with-documentation-root-url was given.
8277 if test "${with_documentation_root_url+set}" = set; then :
8278 withval=$with_documentation_root_url; case "$withval" in
8279 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8280 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8281 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8282 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8283 esac
8284 else
8285 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8290 cat >>confdefs.h <<_ACEOF
8291 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8292 _ACEOF
8295 # Allow overriding the default URL for GCC changes
8297 # Check whether --with-changes-root-url was given.
8298 if test "${with_changes_root_url+set}" = set; then :
8299 withval=$with_changes_root_url; case "$withval" in
8300 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8301 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8302 */) CHANGES_ROOT_URL="$withval" ;;
8303 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8304 esac
8305 else
8306 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8311 cat >>confdefs.h <<_ACEOF
8312 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8313 _ACEOF
8316 # Sanity check enable_languages in case someone does not run the toplevel
8317 # configure # script.
8318 # Check whether --enable-languages was given.
8319 if test "${enable_languages+set}" = set; then :
8320 enableval=$enable_languages; case ,${enable_languages}, in
8321 ,,|,yes,)
8322 # go safe -- we cannot be much sure without the toplevel
8323 # configure's
8324 # analysis of which target libs are present and usable
8325 enable_languages=c
8327 *,all,*)
8328 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8330 *,c,*)
8333 enable_languages=c,${enable_languages}
8335 esac
8336 else
8337 enable_languages=c
8341 # If top-level libada has been disabled, then wire in install-gnatlib
8342 # invocation with `make install', so that one can build and install
8343 # the library manually with `make -C gcc all gnatlib gnattools install'.
8344 if test x"$enable_libada" = xno; then
8345 gnat_install_lib=gnat-install-lib
8346 else
8347 gnat_install_lib=
8351 if test x"$enable_as_accelerator_for" != x; then
8353 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8355 enable_as_accelerator=yes
8356 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8357 program_transform_name=`echo $program_transform_name | sed $sedscript`
8358 accel_dir_suffix=/accel/${target_noncanonical}
8359 real_target_noncanonical=${enable_as_accelerator_for}
8365 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8366 tgt=`echo $tgt | sed 's/=.*//'`
8368 enable_offloading=1
8369 case "$tgt" in
8370 amdgcn*)
8371 omp_device_property=omp-device-properties-gcn
8372 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8374 nvptx*)
8375 omp_device_property=omp-device-properties-nvptx
8376 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8379 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8381 esac
8382 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8383 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8385 if test x"$offload_targets" = x; then
8386 offload_targets=$tgt
8387 else
8388 offload_targets="$offload_targets,$tgt"
8390 done
8395 cat >>confdefs.h <<_ACEOF
8396 #define OFFLOAD_TARGETS "$offload_targets"
8397 _ACEOF
8399 if test x"$enable_offloading" != x; then
8401 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8403 else
8405 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8409 if test "x$enable_offload_defaulted" = xyes; then
8411 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8416 # Check whether --with-multilib-list was given.
8417 if test "${with_multilib_list+set}" = set; then :
8418 withval=$with_multilib_list; :
8419 else
8420 with_multilib_list=default
8425 # Check whether --with-multilib-generator was given.
8426 if test "${with_multilib_generator+set}" = set; then :
8427 withval=$with_multilib_generator; :
8428 else
8429 with_multilib_generator=default
8433 # -------------------------
8434 # Checks for other programs
8435 # -------------------------
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8438 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8439 set x ${MAKE-make}
8440 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8441 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 cat >conftest.make <<\_ACEOF
8445 SHELL = /bin/sh
8446 all:
8447 @echo '@@@%%%=$(MAKE)=@@@%%%'
8448 _ACEOF
8449 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8450 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8451 *@@@%%%=?*=@@@%%%*)
8452 eval ac_cv_prog_make_${ac_make}_set=yes;;
8454 eval ac_cv_prog_make_${ac_make}_set=no;;
8455 esac
8456 rm -f conftest.make
8458 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8460 $as_echo "yes" >&6; }
8461 SET_MAKE=
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 SET_MAKE="MAKE=${MAKE-make}"
8469 # Find some useful tools
8470 for ac_prog in gawk mawk nawk awk
8472 # Extract the first word of "$ac_prog", so it can be a program name with args.
8473 set dummy $ac_prog; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_prog_AWK+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 if test -n "$AWK"; then
8480 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8489 ac_cv_prog_AWK="$ac_prog"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8493 done
8494 done
8495 IFS=$as_save_IFS
8499 AWK=$ac_cv_prog_AWK
8500 if test -n "$AWK"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8502 $as_echo "$AWK" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8509 test -n "$AWK" && break
8510 done
8512 # We need awk to create options.cc and options.h.
8513 # Bail out if it's missing.
8514 case ${AWK} in
8515 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8516 esac
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8519 $as_echo_n "checking whether ln -s works... " >&6; }
8520 if ${gcc_cv_prog_LN_S+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 rm -f conftestdata_t
8524 echo >conftestdata_f
8525 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8526 then
8527 gcc_cv_prog_LN_S="ln -s"
8528 else
8529 if ln conftestdata_f conftestdata_t 2>/dev/null
8530 then
8531 gcc_cv_prog_LN_S=ln
8532 else
8533 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8534 then
8535 gcc_cv_prog_LN_S="cp -p"
8536 else
8537 gcc_cv_prog_LN_S=cp
8541 rm -f conftestdata_f conftestdata_t
8544 LN_S="$gcc_cv_prog_LN_S"
8545 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8547 $as_echo "yes" >&6; }
8548 else
8549 if test "$gcc_cv_prog_LN_S" = "ln"; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8551 $as_echo "no, using ln" >&6; }
8552 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8554 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8559 $as_echo_n "checking whether ln works... " >&6; }
8560 if ${acx_cv_prog_LN+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 rm -f conftestdata_t
8564 echo >conftestdata_f
8565 if ln conftestdata_f conftestdata_t 2>/dev/null
8566 then
8567 acx_cv_prog_LN=ln
8568 else
8569 acx_cv_prog_LN=no
8571 rm -f conftestdata_f conftestdata_t
8574 if test $acx_cv_prog_LN = no; then
8575 LN="$LN_S"
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8577 $as_echo "no, using $LN" >&6; }
8578 else
8579 LN="$acx_cv_prog_LN"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581 $as_echo "yes" >&6; }
8584 if test -n "$ac_tool_prefix"; then
8585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_RANLIB+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$RANLIB"; then
8593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8612 RANLIB=$ac_cv_prog_RANLIB
8613 if test -n "$RANLIB"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8615 $as_echo "$RANLIB" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8623 if test -z "$ac_cv_prog_RANLIB"; then
8624 ac_ct_RANLIB=$RANLIB
8625 # Extract the first word of "ranlib", so it can be a program name with args.
8626 set dummy ranlib; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 if test -n "$ac_ct_RANLIB"; then
8633 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8634 else
8635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636 for as_dir in $PATH
8638 IFS=$as_save_IFS
8639 test -z "$as_dir" && as_dir=.
8640 for ac_exec_ext in '' $ac_executable_extensions; do
8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642 ac_cv_prog_ac_ct_RANLIB="ranlib"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644 break 2
8646 done
8647 done
8648 IFS=$as_save_IFS
8652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8653 if test -n "$ac_ct_RANLIB"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8655 $as_echo "$ac_ct_RANLIB" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8661 if test "x$ac_ct_RANLIB" = x; then
8662 RANLIB=":"
8663 else
8664 case $cross_compiling:$ac_tool_warned in
8665 yes:)
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8668 ac_tool_warned=yes ;;
8669 esac
8670 RANLIB=$ac_ct_RANLIB
8672 else
8673 RANLIB="$ac_cv_prog_RANLIB"
8676 ranlib_flags=""
8679 # Find a good install program. We prefer a C program (faster),
8680 # so one script is as good as another. But avoid the broken or
8681 # incompatible versions:
8682 # SysV /etc/install, /usr/sbin/install
8683 # SunOS /usr/etc/install
8684 # IRIX /sbin/install
8685 # AIX /bin/install
8686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8688 # ./install, which can be erroneously created by make from ./install.sh.
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8690 $as_echo_n "checking for a BSD compatible install... " >&6; }
8691 if test -z "$INSTALL"; then
8692 if ${ac_cv_path_install+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8696 for ac_dir in $PATH; do
8697 # Account for people who put trailing slashes in PATH elements.
8698 case "$ac_dir/" in
8699 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8701 # OSF1 and SCO ODT 3.0 have their own names for install.
8702 for ac_prog in ginstall scoinst install; do
8703 if test -f $ac_dir/$ac_prog; then
8704 if test $ac_prog = install &&
8705 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8706 # AIX install. It has an incompatible calling convention.
8707 # OSF/1 installbsd also uses dspmsg, but is usable.
8709 else
8710 ac_cv_path_install="$ac_dir/$ac_prog -c"
8711 break 2
8714 done
8716 esac
8717 done
8718 IFS="$ac_save_IFS"
8721 if test "${ac_cv_path_install+set}" = set; then
8722 INSTALL="$ac_cv_path_install"
8723 else
8724 # As a last resort, use the slow shell script. We don't cache a
8725 # path for INSTALL within a source directory, because that will
8726 # break other packages using the cache if that directory is
8727 # removed, or if the path is relative.
8728 INSTALL="$ac_install_sh"
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8732 $as_echo "$INSTALL" >&6; }
8734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8735 # It thinks the first close brace ends the variable substitution.
8736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8741 # See if cmp has --ignore-initial.
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8743 $as_echo_n "checking for cmp's capabilities... " >&6; }
8744 if ${gcc_cv_prog_cmp_skip+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 echo abfoo >t1
8748 echo cdfoo >t2
8749 gcc_cv_prog_cmp_skip=slowcompare
8750 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8751 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8753 else
8754 gcc_cv_prog_cmp_skip=gnucompare
8757 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8758 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8759 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8761 else
8762 gcc_cv_prog_cmp_skip=fastcompare
8766 rm t1 t2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8770 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8771 make_compare_target=$gcc_cv_prog_cmp_skip
8775 # See if we have the mktemp command.
8776 # Extract the first word of "mktemp", so it can be a program name with args.
8777 set dummy mktemp; ac_word=$2
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779 $as_echo_n "checking for $ac_word... " >&6; }
8780 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 if test -n "$have_mktemp_command"; then
8784 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8785 else
8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787 for as_dir in $PATH
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8793 ac_cv_prog_have_mktemp_command="yes"
8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 break 2
8797 done
8798 done
8799 IFS=$as_save_IFS
8801 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8804 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8805 if test -n "$have_mktemp_command"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8807 $as_echo "$have_mktemp_command" >&6; }
8808 else
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8815 # See if makeinfo has been installed and is modern enough
8816 # that we can use it.
8818 # Extract the first word of "makeinfo", so it can be a program name with args.
8819 set dummy makeinfo; 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_MAKEINFO+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$MAKEINFO"; then
8826 ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="makeinfo"
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 MAKEINFO=$ac_cv_prog_MAKEINFO
8846 if test -n "$MAKEINFO"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8848 $as_echo "$MAKEINFO" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8855 if test -n "$MAKEINFO"; then
8856 # Found it, now check the version.
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8858 $as_echo_n "checking for modern makeinfo... " >&6; }
8859 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8863 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8865 case $ac_prog_version in
8866 '') gcc_cv_prog_makeinfo_modern=no;;
8867 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8868 *) gcc_cv_prog_makeinfo_modern=no;;
8869 esac
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8873 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8874 else
8875 gcc_cv_prog_makeinfo_modern=no
8877 if test $gcc_cv_prog_makeinfo_modern = no; then
8878 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8881 if test $gcc_cv_prog_makeinfo_modern = no; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8883 *** Makeinfo is missing or too old.
8884 *** Info documentation will not be built." >&5
8885 $as_echo "$as_me: WARNING:
8886 *** Makeinfo is missing or too old.
8887 *** Info documentation will not be built." >&2;}
8888 BUILD_INFO=
8889 else
8890 BUILD_INFO=info
8894 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8895 # If it does, we want to pass it to makeinfo in order to restore the old
8896 # behavior of @{summary,}contents placement.
8897 MAKEINFO_TOC_INLINE_FLAG=
8898 if test x"$MAKEINFO" != x; then :
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8901 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8902 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8906 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8907 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8908 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8909 gcc_cv_texi_add_toc_inline_flags=no
8910 else
8911 gcc_cv_texi_add_toc_inline_flags=yes
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8916 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8917 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8918 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8924 # Is pod2man recent enough to regenerate manpages?
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8926 $as_echo_n "checking for recent Pod::Man... " >&6; }
8927 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8930 GENERATED_MANPAGES=generated-manpages
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 GENERATED_MANPAGES=
8938 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8940 # How about lex?
8941 for ac_prog in flex
8943 # Extract the first word of "$ac_prog", so it can be a program name with args.
8944 set dummy $ac_prog; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_prog_FLEX+:} false; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 if test -n "$FLEX"; then
8951 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_FLEX="$ac_prog"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8964 done
8965 done
8966 IFS=$as_save_IFS
8970 FLEX=$ac_cv_prog_FLEX
8971 if test -n "$FLEX"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8973 $as_echo "$FLEX" >&6; }
8974 else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8980 test -n "$FLEX" && break
8981 done
8982 test -n "$FLEX" || FLEX="$MISSING flex"
8985 # Bison?
8986 for ac_prog in bison
8988 # Extract the first word of "$ac_prog", so it can be a program name with args.
8989 set dummy $ac_prog; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_BISON+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 if test -n "$BISON"; then
8996 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_BISON="$ac_prog"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9009 done
9010 done
9011 IFS=$as_save_IFS
9015 BISON=$ac_cv_prog_BISON
9016 if test -n "$BISON"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9018 $as_echo "$BISON" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9025 test -n "$BISON" && break
9026 done
9027 test -n "$BISON" || BISON="$MISSING bison"
9030 # Python3?
9032 # Extract the first word of "python3", so it can be a program name with args.
9033 set dummy python3; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_PYTHON+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 if test -n "$PYTHON"; then
9040 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9049 ac_cv_prog_PYTHON="python3"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9053 done
9054 done
9055 IFS=$as_save_IFS
9059 PYTHON=$ac_cv_prog_PYTHON
9060 if test -n "$PYTHON"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9062 $as_echo "$PYTHON" >&6; }
9063 else
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9069 if test -n "$PYTHON"; then
9070 # Found it, now check the version.
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9072 $as_echo_n "checking for modern python3... " >&6; }
9073 if ${gcc_cv_prog_python3_modern+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 ac_prog_version=`eval $PYTHON --version 2>&1 |
9077 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9079 case $ac_prog_version in
9080 '') gcc_cv_prog_python3_modern=no;;
9081 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9082 *) gcc_cv_prog_python3_modern=no;;
9083 esac
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9087 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9088 else
9089 gcc_cv_prog_python3_modern=no
9091 if test $gcc_cv_prog_python3_modern = no; then
9092 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9095 if test $gcc_cv_prog_python3_modern = no; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9097 *** Python3 is missing.
9098 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9099 $as_echo "$as_me: WARNING:
9100 *** Python3 is missing.
9101 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9102 HAVE_PYTHON=no
9103 else
9104 HAVE_PYTHON=yes
9108 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9109 # check for build == host before using them.
9111 # NM
9112 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9113 && test -d ../binutils ; then
9114 NM='${objdir}/../binutils/nm-new'
9115 else
9116 # Extract the first word of "nm", so it can be a program name with args.
9117 set dummy nm; ac_word=$2
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119 $as_echo_n "checking for $ac_word... " >&6; }
9120 if ${ac_cv_prog_NM+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 if test -n "$NM"; then
9124 ac_cv_prog_NM="$NM" # Let the user override the test.
9125 else
9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9127 for as_dir in $PATH
9129 IFS=$as_save_IFS
9130 test -z "$as_dir" && as_dir=.
9131 for ac_exec_ext in '' $ac_executable_extensions; do
9132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9133 ac_cv_prog_NM="nm"
9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9135 break 2
9137 done
9138 done
9139 IFS=$as_save_IFS
9141 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9144 NM=$ac_cv_prog_NM
9145 if test -n "$NM"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9147 $as_echo "$NM" >&6; }
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9156 # AR
9157 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9158 && test -d ../binutils ; then
9159 AR='${objdir}/../binutils/ar'
9160 else
9161 # Extract the first word of "ar", so it can be a program name with args.
9162 set dummy ar; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if ${ac_cv_prog_AR+:} false; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 if test -n "$AR"; then
9169 ac_cv_prog_AR="$AR" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9174 IFS=$as_save_IFS
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9178 ac_cv_prog_AR="ar"
9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 break 2
9182 done
9183 done
9184 IFS=$as_save_IFS
9186 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9189 AR=$ac_cv_prog_AR
9190 if test -n "$AR"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9192 $as_echo "$AR" >&6; }
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9201 # The jit documentation looks better if built with sphinx, but can be
9202 # built with texinfo if sphinx is not available.
9203 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9204 # Extract the first word of "sphinx-build", so it can be a program name with args.
9205 set dummy sphinx-build; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if ${ac_cv_prog_doc_build_sys+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 if test -n "$doc_build_sys"; then
9212 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9213 else
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9221 ac_cv_prog_doc_build_sys="sphinx"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9229 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9232 doc_build_sys=$ac_cv_prog_doc_build_sys
9233 if test -n "$doc_build_sys"; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9235 $as_echo "$doc_build_sys" >&6; }
9236 else
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9243 # --------------------
9244 # Checks for C headers
9245 # --------------------
9247 # Need to reject headers which give warnings, so that the -Werror bootstrap
9248 # works later. *sigh* This needs to come before all header checks.
9250 ac_c_preproc_warn_flag=yes
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9253 $as_echo_n "checking for ANSI C header files... " >&6; }
9254 if ${ac_cv_header_stdc+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 #include <stdlib.h>
9260 #include <stdarg.h>
9261 #include <string.h>
9262 #include <float.h>
9265 main ()
9269 return 0;
9271 _ACEOF
9272 if ac_fn_cxx_try_compile "$LINENO"; then :
9273 ac_cv_header_stdc=yes
9274 else
9275 ac_cv_header_stdc=no
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 if test $ac_cv_header_stdc = yes; then
9280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #include <string.h>
9285 _ACEOF
9286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9287 $EGREP "memchr" >/dev/null 2>&1; then :
9289 else
9290 ac_cv_header_stdc=no
9292 rm -f conftest*
9296 if test $ac_cv_header_stdc = yes; then
9297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include <stdlib.h>
9302 _ACEOF
9303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9304 $EGREP "free" >/dev/null 2>&1; then :
9306 else
9307 ac_cv_header_stdc=no
9309 rm -f conftest*
9313 if test $ac_cv_header_stdc = yes; then
9314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9315 if test "$cross_compiling" = yes; then :
9317 else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9320 #include <ctype.h>
9321 #include <stdlib.h>
9322 #if ((' ' & 0x0FF) == 0x020)
9323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9325 #else
9326 # define ISLOWER(c) \
9327 (('a' <= (c) && (c) <= 'i') \
9328 || ('j' <= (c) && (c) <= 'r') \
9329 || ('s' <= (c) && (c) <= 'z'))
9330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9331 #endif
9333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9335 main ()
9337 int i;
9338 for (i = 0; i < 256; i++)
9339 if (XOR (islower (i), ISLOWER (i))
9340 || toupper (i) != TOUPPER (i))
9341 return 2;
9342 return 0;
9344 _ACEOF
9345 if ac_fn_cxx_try_run "$LINENO"; then :
9347 else
9348 ac_cv_header_stdc=no
9350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9351 conftest.$ac_objext conftest.beam conftest.$ac_ext
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9357 $as_echo "$ac_cv_header_stdc" >&6; }
9358 if test $ac_cv_header_stdc = yes; then
9360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9365 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9366 if ${ac_cv_header_time+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 #include <sys/types.h>
9372 #include <sys/time.h>
9373 #include <time.h>
9376 main ()
9378 if ((struct tm *) 0)
9379 return 0;
9381 return 0;
9383 _ACEOF
9384 if ac_fn_cxx_try_compile "$LINENO"; then :
9385 ac_cv_header_time=yes
9386 else
9387 ac_cv_header_time=no
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9392 $as_echo "$ac_cv_header_time" >&6; }
9393 if test $ac_cv_header_time = yes; then
9395 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9400 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9401 if ${gcc_cv_header_string+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <string.h>
9407 #include <strings.h>
9409 main ()
9413 return 0;
9415 _ACEOF
9416 if ac_fn_cxx_try_compile "$LINENO"; then :
9417 gcc_cv_header_string=yes
9418 else
9419 gcc_cv_header_string=no
9421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9424 $as_echo "$gcc_cv_header_string" >&6; }
9425 if test $gcc_cv_header_string = yes; then
9427 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9432 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9433 if ${ac_cv_header_sys_wait_h+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #include <sys/types.h>
9439 #include <sys/wait.h>
9440 #ifndef WEXITSTATUS
9441 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9442 #endif
9443 #ifndef WIFEXITED
9444 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9445 #endif
9448 main ()
9450 int s;
9451 wait (&s);
9452 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9454 return 0;
9456 _ACEOF
9457 if ac_fn_cxx_try_compile "$LINENO"; then :
9458 ac_cv_header_sys_wait_h=yes
9459 else
9460 ac_cv_header_sys_wait_h=no
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9465 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9466 if test $ac_cv_header_sys_wait_h = yes; then
9468 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9473 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9474 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <termios.h>
9481 #ifdef TIOCGWINSZ
9483 #endif
9485 _ACEOF
9486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9487 $EGREP "yes" >/dev/null 2>&1; then :
9488 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9489 else
9490 ac_cv_sys_tiocgwinsz_in_termios_h=no
9492 rm -f conftest*
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9496 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9498 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9500 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9501 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506 #include <sys/types.h>
9507 #include <sys/ioctl.h>
9508 #ifdef TIOCGWINSZ
9510 #endif
9512 _ACEOF
9513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9514 $EGREP "yes" >/dev/null 2>&1; then :
9515 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9516 else
9517 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9519 rm -f conftest*
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9523 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9525 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9527 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9532 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9533 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9534 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9535 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9536 do :
9537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9538 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9540 cat >>confdefs.h <<_ACEOF
9541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9542 _ACEOF
9545 done
9548 # Check for thread headers.
9549 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9550 if test "x$ac_cv_header_thread_h" = xyes; then :
9551 have_thread_h=yes
9552 else
9553 have_thread_h=
9556 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9557 if test "x$ac_cv_header_pthread_h" = xyes; then :
9558 have_pthread_h=yes
9559 else
9560 have_pthread_h=
9564 # These tests can't be done till we know if we have limits.h.
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9566 $as_echo_n "checking for CHAR_BIT... " >&6; }
9567 if ${gcc_cv_decl_char_bit+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 #ifdef HAVE_LIMITS_H
9573 #include <limits.h>
9574 #endif
9575 #ifdef CHAR_BIT
9576 found
9577 #endif
9578 _ACEOF
9579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9580 $EGREP "found" >/dev/null 2>&1; then :
9581 gcc_cv_decl_char_bit=yes
9582 else
9583 gcc_cv_decl_char_bit=no
9585 rm -f conftest*
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9590 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9591 if test $gcc_cv_decl_char_bit = no; then
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9593 $as_echo_n "checking number of bits in a byte... " >&6; }
9594 if ${gcc_cv_c_nbby+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9598 gcc_cv_c_nbby=
9599 while test $i -lt 65; do
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9604 main ()
9606 switch(0) {
9607 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9608 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9611 return 0;
9613 _ACEOF
9614 if ac_fn_cxx_try_compile "$LINENO"; then :
9615 gcc_cv_c_nbby=$i; break
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 i=`expr $i + 1`
9619 done
9620 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9624 $as_echo "$gcc_cv_c_nbby" >&6; }
9625 if test $gcc_cv_c_nbby = failed; then
9626 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9627 else
9629 cat >>confdefs.h <<_ACEOF
9630 #define CHAR_BIT $gcc_cv_c_nbby
9631 _ACEOF
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9636 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9637 if ${ac_cv_c_bigendian+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 ac_cv_c_bigendian=unknown
9641 # See if we're dealing with a universal compiler.
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 #ifndef __APPLE_CC__
9645 not a universal capable compiler
9646 #endif
9647 typedef int dummy;
9649 _ACEOF
9650 if ac_fn_cxx_try_compile "$LINENO"; then :
9652 # Check for potential -arch flags. It is not universal unless
9653 # there are at least two -arch flags with different values.
9654 ac_arch=
9655 ac_prev=
9656 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9657 if test -n "$ac_prev"; then
9658 case $ac_word in
9659 i?86 | x86_64 | ppc | ppc64)
9660 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9661 ac_arch=$ac_word
9662 else
9663 ac_cv_c_bigendian=universal
9664 break
9667 esac
9668 ac_prev=
9669 elif test "x$ac_word" = "x-arch"; then
9670 ac_prev=arch
9672 done
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 if test $ac_cv_c_bigendian = unknown; then
9676 # See if sys/param.h defines the BYTE_ORDER macro.
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 #include <sys/types.h>
9680 #include <sys/param.h>
9683 main ()
9685 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9686 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9687 && LITTLE_ENDIAN)
9688 bogus endian macros
9689 #endif
9692 return 0;
9694 _ACEOF
9695 if ac_fn_cxx_try_compile "$LINENO"; then :
9696 # It does; now see whether it defined to BIG_ENDIAN or not.
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <sys/types.h>
9700 #include <sys/param.h>
9703 main ()
9705 #if BYTE_ORDER != BIG_ENDIAN
9706 not big endian
9707 #endif
9710 return 0;
9712 _ACEOF
9713 if ac_fn_cxx_try_compile "$LINENO"; then :
9714 ac_cv_c_bigendian=yes
9715 else
9716 ac_cv_c_bigendian=no
9718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722 if test $ac_cv_c_bigendian = unknown; then
9723 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 #include <limits.h>
9729 main ()
9731 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9732 bogus endian macros
9733 #endif
9736 return 0;
9738 _ACEOF
9739 if ac_fn_cxx_try_compile "$LINENO"; then :
9740 # It does; now see whether it defined to _BIG_ENDIAN or not.
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 #include <limits.h>
9746 main ()
9748 #ifndef _BIG_ENDIAN
9749 not big endian
9750 #endif
9753 return 0;
9755 _ACEOF
9756 if ac_fn_cxx_try_compile "$LINENO"; then :
9757 ac_cv_c_bigendian=yes
9758 else
9759 ac_cv_c_bigendian=no
9761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765 if test $ac_cv_c_bigendian = unknown; then
9766 # Compile a test program.
9767 if test "$cross_compiling" = yes; then :
9768 # Try to guess by grepping values from an object file.
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 short int ascii_mm[] =
9772 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9773 short int ascii_ii[] =
9774 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9775 int use_ascii (int i) {
9776 return ascii_mm[i] + ascii_ii[i];
9778 short int ebcdic_ii[] =
9779 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9780 short int ebcdic_mm[] =
9781 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9782 int use_ebcdic (int i) {
9783 return ebcdic_mm[i] + ebcdic_ii[i];
9785 extern int foo;
9788 main ()
9790 return use_ascii (foo) == use_ebcdic (foo);
9792 return 0;
9794 _ACEOF
9795 if ac_fn_cxx_try_compile "$LINENO"; then :
9796 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9797 ac_cv_c_bigendian=yes
9799 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9800 if test "$ac_cv_c_bigendian" = unknown; then
9801 ac_cv_c_bigendian=no
9802 else
9803 # finding both strings is unlikely to happen, but who knows?
9804 ac_cv_c_bigendian=unknown
9808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 $ac_includes_default
9814 main ()
9817 /* Are we little or big endian? From Harbison&Steele. */
9818 union
9820 long int l;
9821 char c[sizeof (long int)];
9822 } u;
9823 u.l = 1;
9824 return u.c[sizeof (long int) - 1] == 1;
9827 return 0;
9829 _ACEOF
9830 if ac_fn_cxx_try_run "$LINENO"; then :
9831 ac_cv_c_bigendian=no
9832 else
9833 ac_cv_c_bigendian=yes
9835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9836 conftest.$ac_objext conftest.beam conftest.$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9842 $as_echo "$ac_cv_c_bigendian" >&6; }
9843 case $ac_cv_c_bigendian in #(
9844 yes)
9845 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9846 ;; #(
9848 ;; #(
9849 universal)
9851 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9853 ;; #(
9855 as_fn_error $? "unknown endianness
9856 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9857 esac
9860 # ----------------------
9861 # Checks for C++ headers
9862 # ----------------------
9864 ac_ext=cpp
9865 ac_cpp='$CXXCPP $CPPFLAGS'
9866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9870 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9871 if test -z "$CXXCPP"; then
9872 if ${ac_cv_prog_CXXCPP+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 # Double quotes because CXXCPP needs to be expanded
9876 for CXXCPP in "$CXX -E" "/lib/cpp"
9878 ac_preproc_ok=false
9879 for ac_cxx_preproc_warn_flag in '' yes
9881 # Use a header file that comes with gcc, so configuring glibc
9882 # with a fresh cross-compiler works.
9883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 # <limits.h> exists even on freestanding compilers.
9885 # On the NeXT, cc -E runs the code through the compiler's parser,
9886 # not just through cpp. "Syntax error" is here to catch this case.
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 #ifdef __STDC__
9890 # include <limits.h>
9891 #else
9892 # include <assert.h>
9893 #endif
9894 Syntax error
9895 _ACEOF
9896 if ac_fn_cxx_try_cpp "$LINENO"; then :
9898 else
9899 # Broken: fails on valid input.
9900 continue
9902 rm -f conftest.err conftest.i conftest.$ac_ext
9904 # OK, works on sane cases. Now check whether nonexistent headers
9905 # can be detected and how.
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 #include <ac_nonexistent.h>
9909 _ACEOF
9910 if ac_fn_cxx_try_cpp "$LINENO"; then :
9911 # Broken: success on invalid input.
9912 continue
9913 else
9914 # Passes both tests.
9915 ac_preproc_ok=:
9916 break
9918 rm -f conftest.err conftest.i conftest.$ac_ext
9920 done
9921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9922 rm -f conftest.i conftest.err conftest.$ac_ext
9923 if $ac_preproc_ok; then :
9924 break
9927 done
9928 ac_cv_prog_CXXCPP=$CXXCPP
9931 CXXCPP=$ac_cv_prog_CXXCPP
9932 else
9933 ac_cv_prog_CXXCPP=$CXXCPP
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9936 $as_echo "$CXXCPP" >&6; }
9937 ac_preproc_ok=false
9938 for ac_cxx_preproc_warn_flag in '' yes
9940 # Use a header file that comes with gcc, so configuring glibc
9941 # with a fresh cross-compiler works.
9942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9943 # <limits.h> exists even on freestanding compilers.
9944 # On the NeXT, cc -E runs the code through the compiler's parser,
9945 # not just through cpp. "Syntax error" is here to catch this case.
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 #ifdef __STDC__
9949 # include <limits.h>
9950 #else
9951 # include <assert.h>
9952 #endif
9953 Syntax error
9954 _ACEOF
9955 if ac_fn_cxx_try_cpp "$LINENO"; then :
9957 else
9958 # Broken: fails on valid input.
9959 continue
9961 rm -f conftest.err conftest.i conftest.$ac_ext
9963 # OK, works on sane cases. Now check whether nonexistent headers
9964 # can be detected and how.
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 #include <ac_nonexistent.h>
9968 _ACEOF
9969 if ac_fn_cxx_try_cpp "$LINENO"; then :
9970 # Broken: success on invalid input.
9971 continue
9972 else
9973 # Passes both tests.
9974 ac_preproc_ok=:
9975 break
9977 rm -f conftest.err conftest.i conftest.$ac_ext
9979 done
9980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9981 rm -f conftest.i conftest.err conftest.$ac_ext
9982 if $ac_preproc_ok; then :
9984 else
9985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9988 See \`config.log' for more details" >&5
9989 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9990 See \`config.log' for more details" >&2;}; }
9993 ac_ext=cpp
9994 ac_cpp='$CXXCPP $CPPFLAGS'
9995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10000 for ac_header in unordered_map
10001 do :
10002 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
10003 if test "x$ac_cv_header_unordered_map" = xyes; then :
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_UNORDERED_MAP 1
10006 _ACEOF
10009 done
10011 for ac_header in tr1/unordered_map
10012 do :
10013 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
10014 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
10015 cat >>confdefs.h <<_ACEOF
10016 #define HAVE_TR1_UNORDERED_MAP 1
10017 _ACEOF
10020 done
10022 for ac_header in ext/hash_map
10023 do :
10024 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
10025 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
10026 cat >>confdefs.h <<_ACEOF
10027 #define HAVE_EXT_HASH_MAP 1
10028 _ACEOF
10031 done
10034 # --------
10035 # Dependency checking.
10036 # --------
10038 rm -rf .tst 2>/dev/null
10039 mkdir .tst 2>/dev/null
10040 if test -d .tst; then
10041 am__leading_dot=.
10042 else
10043 am__leading_dot=_
10045 rmdir .tst 2>/dev/null
10047 DEPDIR="${am__leading_dot}deps"
10049 ac_config_commands="$ac_config_commands depdir"
10052 ac_config_commands="$ac_config_commands gccdepdir"
10055 depcc="$CXX" am_compiler_list=
10057 am_depcomp=$ac_aux_dir/depcomp
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10059 $as_echo_n "checking dependency style of $depcc... " >&6; }
10060 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test -f "$am_depcomp"; then
10064 # We make a subdir and do the tests there. Otherwise we can end up
10065 # making bogus files that we don't know about and never remove. For
10066 # instance it was reported that on HP-UX the gcc test will end up
10067 # making a dummy file named `D' -- because `-MD' means `put the output
10068 # in D'.
10069 mkdir conftest.dir
10070 # Copy depcomp to subdir because otherwise we won't find it if we're
10071 # using a relative directory.
10072 cp "$am_depcomp" conftest.dir
10073 cd conftest.dir
10074 # We will build objects and dependencies in a subdirectory because
10075 # it helps to detect inapplicable dependency modes. For instance
10076 # both Tru64's cc and ICC support -MD to output dependencies as a
10077 # side effect of compilation, but ICC will put the dependencies in
10078 # the current directory while Tru64 will put them in the object
10079 # directory.
10080 mkdir sub
10082 am_cv_CXX_dependencies_compiler_type=none
10083 if test "$am_compiler_list" = ""; then
10084 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10086 for depmode in $am_compiler_list; do
10087 if test $depmode = none; then break; fi
10089 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10090 # Setup a source with many dependencies, because some compilers
10091 # like to wrap large dependency lists on column 80 (with \), and
10092 # we should not choose a depcomp mode which is confused by this.
10094 # We need to recreate these files for each test, as the compiler may
10095 # overwrite some of them when testing with obscure command lines.
10096 # This happens at least with the AIX C compiler.
10097 : > sub/conftest.c
10098 for i in 1 2 3 4 5 6; do
10099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10100 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10101 # Solaris 8's {/usr,}/bin/sh.
10102 touch sub/conftst$i.h
10103 done
10104 echo "include sub/conftest.Po" > confmf
10106 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10107 # mode. It turns out that the SunPro C++ compiler does not properly
10108 # handle `-M -o', and we need to detect this.
10109 depcmd="depmode=$depmode \
10110 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10112 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10113 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10114 if env $depcmd > conftest.err 2>&1 &&
10115 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10116 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10117 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10118 # icc doesn't choke on unknown options, it will just issue warnings
10119 # or remarks (even with -Werror). So we grep stderr for any message
10120 # that says an option was ignored or not supported.
10121 # When given -MP, icc 7.0 and 7.1 complain thusly:
10122 # icc: Command line warning: ignoring option '-M'; no argument required
10123 # The diagnosis changed in icc 8.0:
10124 # icc: Command line remark: option '-MP' not supported
10125 if (grep 'ignoring option' conftest.err ||
10126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10127 am_cv_CXX_dependencies_compiler_type=$depmode
10128 $as_echo "$as_me:$LINENO: success" >&5
10129 break
10132 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10133 sed -e 's/^/| /' < conftest.err >&5
10134 done
10136 cd ..
10137 rm -rf conftest.dir
10138 else
10139 am_cv_CXX_dependencies_compiler_type=none
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10144 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10145 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10146 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10147 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10152 # --------
10153 # UNSORTED
10154 # --------
10157 # These libraries may be used by collect2.
10158 # We may need a special search path to get them linked.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10160 $as_echo_n "checking for collect2 libraries... " >&6; }
10161 if ${gcc_cv_collect2_libs+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 save_LIBS="$LIBS"
10165 for libs in '' -lld -lmld \
10166 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10167 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10169 LIBS="$libs"
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10173 /* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 char ldopen ();
10181 main ()
10183 return ldopen ();
10185 return 0;
10187 _ACEOF
10188 if ac_fn_cxx_try_link "$LINENO"; then :
10189 gcc_cv_collect2_libs="$libs"; break
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 done
10194 LIBS="$save_LIBS"
10195 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10198 $as_echo "$gcc_cv_collect2_libs" >&6; }
10199 case $gcc_cv_collect2_libs in
10200 "none required") ;;
10201 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10202 esac
10205 # When building Ada code on Alpha, we need exc_resume which is usually in
10206 # -lexc. So test for it.
10207 save_LIBS="$LIBS"
10208 LIBS=
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10210 $as_echo_n "checking for library containing exc_resume... " >&6; }
10211 if ${ac_cv_search_exc_resume+:} false; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 ac_func_search_save_LIBS=$LIBS
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char exc_resume ();
10226 main ()
10228 return exc_resume ();
10230 return 0;
10232 _ACEOF
10233 for ac_lib in '' exc; do
10234 if test -z "$ac_lib"; then
10235 ac_res="none required"
10236 else
10237 ac_res=-l$ac_lib
10238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10240 if ac_fn_cxx_try_link "$LINENO"; then :
10241 ac_cv_search_exc_resume=$ac_res
10243 rm -f core conftest.err conftest.$ac_objext \
10244 conftest$ac_exeext
10245 if ${ac_cv_search_exc_resume+:} false; then :
10246 break
10248 done
10249 if ${ac_cv_search_exc_resume+:} false; then :
10251 else
10252 ac_cv_search_exc_resume=no
10254 rm conftest.$ac_ext
10255 LIBS=$ac_func_search_save_LIBS
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10258 $as_echo "$ac_cv_search_exc_resume" >&6; }
10259 ac_res=$ac_cv_search_exc_resume
10260 if test "$ac_res" != no; then :
10261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10265 GNAT_LIBEXC="$LIBS"
10266 LIBS="$save_LIBS"
10269 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10270 save_LIBS="$LIBS"
10271 LIBS=
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10273 $as_echo_n "checking for library containing kstat_open... " >&6; }
10274 if ${ac_cv_search_kstat_open+:} false; then :
10275 $as_echo_n "(cached) " >&6
10276 else
10277 ac_func_search_save_LIBS=$LIBS
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10281 /* Override any GCC internal prototype to avoid an error.
10282 Use char because int might match the return type of a GCC
10283 builtin and then its argument prototype would still apply. */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 char kstat_open ();
10289 main ()
10291 return kstat_open ();
10293 return 0;
10295 _ACEOF
10296 for ac_lib in '' kstat; do
10297 if test -z "$ac_lib"; then
10298 ac_res="none required"
10299 else
10300 ac_res=-l$ac_lib
10301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10303 if ac_fn_cxx_try_link "$LINENO"; then :
10304 ac_cv_search_kstat_open=$ac_res
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext
10308 if ${ac_cv_search_kstat_open+:} false; then :
10309 break
10311 done
10312 if ${ac_cv_search_kstat_open+:} false; then :
10314 else
10315 ac_cv_search_kstat_open=no
10317 rm conftest.$ac_ext
10318 LIBS=$ac_func_search_save_LIBS
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10321 $as_echo "$ac_cv_search_kstat_open" >&6; }
10322 ac_res=$ac_cv_search_kstat_open
10323 if test "$ac_res" != no; then :
10324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10328 EXTRA_GCC_LIBS="$LIBS"
10329 LIBS="$save_LIBS"
10332 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10333 # C++ needs those for libcody.
10334 save_LIBS="$LIBS"
10335 LIBS=
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10338 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10339 if ${ac_cv_search_gethostbyname+:} false; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 ac_func_search_save_LIBS=$LIBS
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char gethostbyname ();
10354 main ()
10356 return gethostbyname ();
10358 return 0;
10360 _ACEOF
10361 for ac_lib in '' nsl; do
10362 if test -z "$ac_lib"; then
10363 ac_res="none required"
10364 else
10365 ac_res=-l$ac_lib
10366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10368 if ac_fn_cxx_try_link "$LINENO"; then :
10369 ac_cv_search_gethostbyname=$ac_res
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext
10373 if ${ac_cv_search_gethostbyname+:} false; then :
10374 break
10376 done
10377 if ${ac_cv_search_gethostbyname+:} false; then :
10379 else
10380 ac_cv_search_gethostbyname=no
10382 rm conftest.$ac_ext
10383 LIBS=$ac_func_search_save_LIBS
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10386 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10387 ac_res=$ac_cv_search_gethostbyname
10388 if test "$ac_res" != no; then :
10389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10394 $as_echo_n "checking for library containing socket... " >&6; }
10395 if ${ac_cv_search_socket+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 ac_func_search_save_LIBS=$LIBS
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10402 /* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 char socket ();
10410 main ()
10412 return socket ();
10414 return 0;
10416 _ACEOF
10417 for ac_lib in '' socket; do
10418 if test -z "$ac_lib"; then
10419 ac_res="none required"
10420 else
10421 ac_res=-l$ac_lib
10422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10424 if ac_fn_cxx_try_link "$LINENO"; then :
10425 ac_cv_search_socket=$ac_res
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext
10429 if ${ac_cv_search_socket+:} false; then :
10430 break
10432 done
10433 if ${ac_cv_search_socket+:} false; then :
10435 else
10436 ac_cv_search_socket=no
10438 rm conftest.$ac_ext
10439 LIBS=$ac_func_search_save_LIBS
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10442 $as_echo "$ac_cv_search_socket" >&6; }
10443 ac_res=$ac_cv_search_socket
10444 if test "$ac_res" != no; then :
10445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10447 else
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10450 $as_echo_n "checking for socket in -lsocket... " >&6; }
10451 if ${ac_cv_lib_socket_socket+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lsocket -lnsl $LIBS"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 char socket ();
10467 main ()
10469 return socket ();
10471 return 0;
10473 _ACEOF
10474 if ac_fn_cxx_try_link "$LINENO"; then :
10475 ac_cv_lib_socket_socket=yes
10476 else
10477 ac_cv_lib_socket_socket=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10484 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10485 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10486 LIBS="-lsocket -lnsl $LIBS"
10492 NETLIBS="$LIBS"
10493 LIBS="$save_LIBS"
10496 # Some systems put ldexp and frexp in libm instead of libc; assume
10497 # they're both in the same place. jcf-dump needs them.
10498 save_LIBS="$LIBS"
10499 LIBS=
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10501 $as_echo_n "checking for library containing ldexp... " >&6; }
10502 if ${ac_cv_search_ldexp+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 ac_func_search_save_LIBS=$LIBS
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 /* Override any GCC internal prototype to avoid an error.
10510 Use char because int might match the return type of a GCC
10511 builtin and then its argument prototype would still apply. */
10512 #ifdef __cplusplus
10513 extern "C"
10514 #endif
10515 char ldexp ();
10517 main ()
10519 return ldexp ();
10521 return 0;
10523 _ACEOF
10524 for ac_lib in '' m; do
10525 if test -z "$ac_lib"; then
10526 ac_res="none required"
10527 else
10528 ac_res=-l$ac_lib
10529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10531 if ac_fn_cxx_try_link "$LINENO"; then :
10532 ac_cv_search_ldexp=$ac_res
10534 rm -f core conftest.err conftest.$ac_objext \
10535 conftest$ac_exeext
10536 if ${ac_cv_search_ldexp+:} false; then :
10537 break
10539 done
10540 if ${ac_cv_search_ldexp+:} false; then :
10542 else
10543 ac_cv_search_ldexp=no
10545 rm conftest.$ac_ext
10546 LIBS=$ac_func_search_save_LIBS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10549 $as_echo "$ac_cv_search_ldexp" >&6; }
10550 ac_res=$ac_cv_search_ldexp
10551 if test "$ac_res" != no; then :
10552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10556 LDEXP_LIB="$LIBS"
10557 LIBS="$save_LIBS"
10560 # Some systems need dlopen
10561 save_LIBS="$LIBS"
10562 LIBS=
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10564 $as_echo_n "checking for library containing dlopen... " >&6; }
10565 if ${ac_cv_search_dlopen+:} false; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10568 ac_func_search_save_LIBS=$LIBS
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575 #ifdef __cplusplus
10576 extern "C"
10577 #endif
10578 char dlopen ();
10580 main ()
10582 return dlopen ();
10584 return 0;
10586 _ACEOF
10587 for ac_lib in '' dl; do
10588 if test -z "$ac_lib"; then
10589 ac_res="none required"
10590 else
10591 ac_res=-l$ac_lib
10592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10594 if ac_fn_cxx_try_link "$LINENO"; then :
10595 ac_cv_search_dlopen=$ac_res
10597 rm -f core conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext
10599 if ${ac_cv_search_dlopen+:} false; then :
10600 break
10602 done
10603 if ${ac_cv_search_dlopen+:} false; then :
10605 else
10606 ac_cv_search_dlopen=no
10608 rm conftest.$ac_ext
10609 LIBS=$ac_func_search_save_LIBS
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10612 $as_echo "$ac_cv_search_dlopen" >&6; }
10613 ac_res=$ac_cv_search_dlopen
10614 if test "$ac_res" != no; then :
10615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10619 DL_LIB="$LIBS"
10620 LIBS="$save_LIBS"
10623 # Use <inttypes.h> only if it exists,
10624 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10625 # PRId64
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10627 $as_echo_n "checking for inttypes.h... " >&6; }
10628 if ${gcc_cv_header_inttypes_h+:} false; then :
10629 $as_echo_n "(cached) " >&6
10630 else
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 #define __STDC_FORMAT_MACROS
10634 #include <sys/types.h>
10635 #include <inttypes.h>
10637 main ()
10639 intmax_t i = -1;
10640 #ifndef PRId64
10641 choke me
10642 #endif
10644 return 0;
10646 _ACEOF
10647 if ac_fn_cxx_try_compile "$LINENO"; then :
10648 gcc_cv_header_inttypes_h=yes
10649 else
10650 gcc_cv_header_inttypes_h=no
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10656 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10657 if test $gcc_cv_header_inttypes_h = yes; then
10659 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10663 # Look for the ZSTD package.
10664 ZSTD_INCLUDE=
10665 ZSTD_LIB=
10668 ZSTD_CPPFLAGS=
10669 ZSTD_LDFLAGS=
10673 # Check whether --with-zstd was given.
10674 if test "${with_zstd+set}" = set; then :
10675 withval=$with_zstd;
10679 # Check whether --with-zstd-include was given.
10680 if test "${with_zstd_include+set}" = set; then :
10681 withval=$with_zstd_include;
10685 # Check whether --with-zstd-lib was given.
10686 if test "${with_zstd_lib+set}" = set; then :
10687 withval=$with_zstd_lib;
10690 case "x$with_zstd" in
10691 x) ;;
10692 xno)
10693 ZSTD_INCLUDE=
10694 ZSTD_LIB=
10696 *) ZSTD_INCLUDE=$with_zstd/include
10697 ZSTD_LIB=$with_zstd/lib
10699 esac
10701 if test "x$with_zstd" != xno; then
10702 if test "x$with_zstd_include" != x; then
10703 ZSTD_INCLUDE=$with_zstd_include
10705 if test "x$with_zstd_lib" != x; then
10706 ZSTD_LIB=$with_zstd_lib
10708 if test "x$ZSTD_INCLUDE" != x \
10709 && test "x$ZSTD_INCLUDE" != xno; then
10710 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10712 if test "x$ZSTD_LIB" != x \
10713 && test "x$ZSTD_LIB" != xno; then
10714 ZSTD_LDFLAGS=-L$ZSTD_LIB
10717 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10718 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10720 # LTO can use zstd compression algorithm
10721 save_LIBS="$LIBS"
10722 LIBS=
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10724 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10725 if ${ac_cv_search_ZSTD_compress+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_func_search_save_LIBS=$LIBS
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char ZSTD_compress ();
10740 main ()
10742 return ZSTD_compress ();
10744 return 0;
10746 _ACEOF
10747 for ac_lib in '' zstd; do
10748 if test -z "$ac_lib"; then
10749 ac_res="none required"
10750 else
10751 ac_res=-l$ac_lib
10752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10754 if ac_fn_cxx_try_link "$LINENO"; then :
10755 ac_cv_search_ZSTD_compress=$ac_res
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext
10759 if ${ac_cv_search_ZSTD_compress+:} false; then :
10760 break
10762 done
10763 if ${ac_cv_search_ZSTD_compress+:} false; then :
10765 else
10766 ac_cv_search_ZSTD_compress=no
10768 rm conftest.$ac_ext
10769 LIBS=$ac_func_search_save_LIBS
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10772 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10773 ac_res=$ac_cv_search_ZSTD_compress
10774 if test "$ac_res" != no; then :
10775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10777 else
10778 gcc_cv_header_zstd_h=no
10781 ZSTD_LIB="$LIBS"
10782 LIBS="$save_LIBS"
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10786 $as_echo_n "checking for zstd.h... " >&6; }
10787 if ${gcc_cv_header_zstd_h+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 # We require version 1.3.0 or later. This is the first version that has
10791 # ZSTD_getFrameContentSize.
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #include <zstd.h>
10795 #if ZSTD_VERSION_NUMBER < 10300
10796 #error "need zstd 1.3.0 or better"
10797 #endif
10799 main ()
10803 return 0;
10805 _ACEOF
10806 if ac_fn_cxx_try_compile "$LINENO"; then :
10807 gcc_cv_header_zstd_h=yes
10808 else
10809 gcc_cv_header_zstd_h=no
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10815 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10816 if test $gcc_cv_header_zstd_h = yes; then
10818 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10820 elif test "x$with_zstd" != x; then
10821 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10827 for ac_func in times clock kill getrlimit setrlimit atoq \
10828 popen sysconf strsignal getrusage nl_langinfo \
10829 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10830 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise mallinfo mallinfo2 fstatat getauxval
10831 do :
10832 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10833 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10835 cat >>confdefs.h <<_ACEOF
10836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10837 _ACEOF
10840 done
10843 if test x$ac_cv_func_mbstowcs = xyes; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10845 $as_echo_n "checking whether mbstowcs works... " >&6; }
10846 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 if test "$cross_compiling" = yes; then :
10850 gcc_cv_func_mbstowcs_works=yes
10851 else
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854 #include <stdlib.h>
10855 int main()
10857 mbstowcs(0, "", 0);
10858 return 0;
10860 _ACEOF
10861 if ac_fn_cxx_try_run "$LINENO"; then :
10862 gcc_cv_func_mbstowcs_works=yes
10863 else
10864 gcc_cv_func_mbstowcs_works=no
10866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10867 conftest.$ac_objext conftest.beam conftest.$ac_ext
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10872 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10873 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10875 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10880 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10881 if test "x$ac_cv_type_ssize_t" = xyes; then :
10883 else
10885 cat >>confdefs.h <<_ACEOF
10886 #define ssize_t int
10887 _ACEOF
10891 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10892 if test "x$ac_cv_type_caddr_t" = xyes; then :
10894 else
10896 cat >>confdefs.h <<_ACEOF
10897 #define caddr_t char *
10898 _ACEOF
10902 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10904 if test "x$ac_cv_type_sighander_t" = xyes; then :
10906 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10912 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10913 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10914 gcc_header_sys_mman_h=yes
10915 else
10916 gcc_header_sys_mman_h=no
10919 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10920 if test "x$ac_cv_func_mmap" = xyes; then :
10921 gcc_func_mmap=yes
10922 else
10923 gcc_func_mmap=no
10926 if test "$gcc_header_sys_mman_h" != yes \
10927 || test "$gcc_func_mmap" != yes; then
10928 gcc_cv_func_mmap_file=no
10929 gcc_cv_func_mmap_dev_zero=no
10930 gcc_cv_func_mmap_anon=no
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10933 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10934 if ${gcc_cv_func_mmap_file+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 # Add a system to this blacklist if
10938 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10939 # memory area containing the same data that you'd get if you applied
10940 # read() to the same fd. The only system known to have a problem here
10941 # is VMS, where text files have record structure.
10942 case "$host_os" in
10943 *vms* | ultrix*)
10944 gcc_cv_func_mmap_file=no ;;
10946 gcc_cv_func_mmap_file=yes;;
10947 esac
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10950 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10952 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10953 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 # Add a system to this blacklist if it has mmap() but /dev/zero
10957 # does not exist, or if mmapping /dev/zero does not give anonymous
10958 # zeroed pages with both the following properties:
10959 # 1. If you map N consecutive pages in with one call, and then
10960 # unmap any subset of those pages, the pages that were not
10961 # explicitly unmapped remain accessible.
10962 # 2. If you map two adjacent blocks of memory and then unmap them
10963 # both at once, they must both go away.
10964 # Systems known to be in this category are Windows (all variants),
10965 # VMS, and Darwin.
10966 case "$host_os" in
10967 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10968 gcc_cv_func_mmap_dev_zero=no ;;
10970 gcc_cv_func_mmap_dev_zero=yes;;
10971 esac
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10974 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10976 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10978 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10979 if ${gcc_cv_decl_map_anon+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984 #include <sys/types.h>
10985 #include <sys/mman.h>
10986 #include <unistd.h>
10988 #ifndef MAP_ANONYMOUS
10989 #define MAP_ANONYMOUS MAP_ANON
10990 #endif
10993 main ()
10995 int n = MAP_ANONYMOUS;
10997 return 0;
10999 _ACEOF
11000 if ac_fn_cxx_try_compile "$LINENO"; then :
11001 gcc_cv_decl_map_anon=yes
11002 else
11003 gcc_cv_decl_map_anon=no
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
11008 $as_echo "$gcc_cv_decl_map_anon" >&6; }
11010 if test $gcc_cv_decl_map_anon = no; then
11011 gcc_cv_func_mmap_anon=no
11012 else
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11014 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11015 if ${gcc_cv_func_mmap_anon+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11019 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11020 # doesn't give anonymous zeroed pages with the same properties listed
11021 # above for use of /dev/zero.
11022 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11023 case "$host_os" in
11024 *vms* | cygwin* | pe | mingw* | sco* | udk* )
11025 gcc_cv_func_mmap_anon=no ;;
11027 gcc_cv_func_mmap_anon=yes;;
11028 esac
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
11031 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
11035 if test $gcc_cv_func_mmap_file = yes; then
11037 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11040 if test $gcc_cv_func_mmap_dev_zero = yes; then
11042 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11045 if test $gcc_cv_func_mmap_anon = yes; then
11047 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11052 case "${host}" in
11053 *-*-*vms*)
11054 # Under VMS, vfork works very differently than on Unix. The standard test
11055 # won't work, and it isn't easily adaptable. It makes more sense to
11056 # just force it.
11057 ac_cv_func_vfork_works=yes
11059 esac
11060 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11061 if test "x$ac_cv_type_pid_t" = xyes; then :
11063 else
11065 cat >>confdefs.h <<_ACEOF
11066 #define pid_t int
11067 _ACEOF
11071 for ac_header in vfork.h
11072 do :
11073 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11074 if test "x$ac_cv_header_vfork_h" = xyes; then :
11075 cat >>confdefs.h <<_ACEOF
11076 #define HAVE_VFORK_H 1
11077 _ACEOF
11080 done
11082 for ac_func in fork vfork
11083 do :
11084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11085 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11086 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11087 cat >>confdefs.h <<_ACEOF
11088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11089 _ACEOF
11092 done
11094 if test "x$ac_cv_func_fork" = xyes; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11096 $as_echo_n "checking for working fork... " >&6; }
11097 if ${ac_cv_func_fork_works+:} false; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 if test "$cross_compiling" = yes; then :
11101 ac_cv_func_fork_works=cross
11102 else
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 $ac_includes_default
11107 main ()
11110 /* By Ruediger Kuhlmann. */
11111 return fork () < 0;
11114 return 0;
11116 _ACEOF
11117 if ac_fn_cxx_try_run "$LINENO"; then :
11118 ac_cv_func_fork_works=yes
11119 else
11120 ac_cv_func_fork_works=no
11122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11123 conftest.$ac_objext conftest.beam conftest.$ac_ext
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11128 $as_echo "$ac_cv_func_fork_works" >&6; }
11130 else
11131 ac_cv_func_fork_works=$ac_cv_func_fork
11133 if test "x$ac_cv_func_fork_works" = xcross; then
11134 case $host in
11135 *-*-amigaos* | *-*-msdosdjgpp*)
11136 # Override, as these systems have only a dummy fork() stub
11137 ac_cv_func_fork_works=no
11140 ac_cv_func_fork_works=yes
11142 esac
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11144 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11146 ac_cv_func_vfork_works=$ac_cv_func_vfork
11147 if test "x$ac_cv_func_vfork" = xyes; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11149 $as_echo_n "checking for working vfork... " >&6; }
11150 if ${ac_cv_func_vfork_works+:} false; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test "$cross_compiling" = yes; then :
11154 ac_cv_func_vfork_works=cross
11155 else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 /* Thanks to Paul Eggert for this test. */
11159 $ac_includes_default
11160 #include <sys/wait.h>
11161 #ifdef HAVE_VFORK_H
11162 # include <vfork.h>
11163 #endif
11164 /* On some sparc systems, changes by the child to local and incoming
11165 argument registers are propagated back to the parent. The compiler
11166 is told about this with #include <vfork.h>, but some compilers
11167 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11168 static variable whose address is put into a register that is
11169 clobbered by the vfork. */
11170 static void
11171 #ifdef __cplusplus
11172 sparc_address_test (int arg)
11173 # else
11174 sparc_address_test (arg) int arg;
11175 #endif
11177 static pid_t child;
11178 if (!child) {
11179 child = vfork ();
11180 if (child < 0) {
11181 perror ("vfork");
11182 _exit(2);
11184 if (!child) {
11185 arg = getpid();
11186 write(-1, "", 0);
11187 _exit (arg);
11193 main ()
11195 pid_t parent = getpid ();
11196 pid_t child;
11198 sparc_address_test (0);
11200 child = vfork ();
11202 if (child == 0) {
11203 /* Here is another test for sparc vfork register problems. This
11204 test uses lots of local variables, at least as many local
11205 variables as main has allocated so far including compiler
11206 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11207 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11208 reuse the register of parent for one of the local variables,
11209 since it will think that parent can't possibly be used any more
11210 in this routine. Assigning to the local variable will thus
11211 munge parent in the parent process. */
11212 pid_t
11213 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11214 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11215 /* Convince the compiler that p..p7 are live; otherwise, it might
11216 use the same hardware register for all 8 local variables. */
11217 if (p != p1 || p != p2 || p != p3 || p != p4
11218 || p != p5 || p != p6 || p != p7)
11219 _exit(1);
11221 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11222 from child file descriptors. If the child closes a descriptor
11223 before it execs or exits, this munges the parent's descriptor
11224 as well. Test for this by closing stdout in the child. */
11225 _exit(close(fileno(stdout)) != 0);
11226 } else {
11227 int status;
11228 struct stat st;
11230 while (wait(&status) != child)
11232 return (
11233 /* Was there some problem with vforking? */
11234 child < 0
11236 /* Did the child fail? (This shouldn't happen.) */
11237 || status
11239 /* Did the vfork/compiler bug occur? */
11240 || parent != getpid()
11242 /* Did the file descriptor bug occur? */
11243 || fstat(fileno(stdout), &st) != 0
11247 _ACEOF
11248 if ac_fn_cxx_try_run "$LINENO"; then :
11249 ac_cv_func_vfork_works=yes
11250 else
11251 ac_cv_func_vfork_works=no
11253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11254 conftest.$ac_objext conftest.beam conftest.$ac_ext
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11259 $as_echo "$ac_cv_func_vfork_works" >&6; }
11262 if test "x$ac_cv_func_fork_works" = xcross; then
11263 ac_cv_func_vfork_works=$ac_cv_func_vfork
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11265 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11268 if test "x$ac_cv_func_vfork_works" = xyes; then
11270 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11272 else
11274 $as_echo "#define vfork fork" >>confdefs.h
11277 if test "x$ac_cv_func_fork_works" = xyes; then
11279 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11285 if test "X$prefix" = "XNONE"; then
11286 acl_final_prefix="$ac_default_prefix"
11287 else
11288 acl_final_prefix="$prefix"
11290 if test "X$exec_prefix" = "XNONE"; then
11291 acl_final_exec_prefix='${prefix}'
11292 else
11293 acl_final_exec_prefix="$exec_prefix"
11295 acl_save_prefix="$prefix"
11296 prefix="$acl_final_prefix"
11297 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11298 prefix="$acl_save_prefix"
11301 # Check whether --with-gnu-ld was given.
11302 if test "${with_gnu_ld+set}" = set; then :
11303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11304 else
11305 with_gnu_ld=no
11308 # Prepare PATH_SEPARATOR.
11309 # The user is always right.
11310 if test "${PATH_SEPARATOR+set}" != set; then
11311 echo "#! /bin/sh" >conf$$.sh
11312 echo "exit 0" >>conf$$.sh
11313 chmod +x conf$$.sh
11314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11315 PATH_SEPARATOR=';'
11316 else
11317 PATH_SEPARATOR=:
11319 rm -f conf$$.sh
11321 ac_prog=ld
11322 if test "$GCC" = yes; then
11323 # Check if gcc -print-prog-name=ld gives a path.
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11325 $as_echo_n "checking for ld used by GCC... " >&6; }
11326 case $host in
11327 *-*-mingw*)
11328 # gcc leaves a trailing carriage return which upsets mingw
11329 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11331 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11332 esac
11333 case $ac_prog in
11334 # Accept absolute paths.
11335 [\\/]* | [A-Za-z]:[\\/]*)
11336 re_direlt='/[^/][^/]*/\.\./'
11337 # Canonicalize the path of ld
11338 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11339 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11340 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11341 done
11342 test -z "$LD" && LD="$ac_prog"
11345 # If it fails, then pretend we aren't using GCC.
11346 ac_prog=ld
11349 # If it is relative, then search for the first ld in PATH.
11350 with_gnu_ld=unknown
11352 esac
11353 elif test "$with_gnu_ld" = yes; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11355 $as_echo_n "checking for GNU ld... " >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11358 $as_echo_n "checking for non-GNU ld... " >&6; }
11360 if ${acl_cv_path_LD+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 if test -z "$LD"; then
11364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11365 for ac_dir in $PATH; do
11366 test -z "$ac_dir" && ac_dir=.
11367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11368 acl_cv_path_LD="$ac_dir/$ac_prog"
11369 # Check to see if the program is GNU ld. I'd rather use --version,
11370 # but apparently some GNU ld's only accept -v.
11371 # Break only if it was the GNU/non-GNU ld that we prefer.
11372 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11373 test "$with_gnu_ld" != no && break
11374 else
11375 test "$with_gnu_ld" != yes && break
11378 done
11379 IFS="$ac_save_ifs"
11380 else
11381 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11385 LD="$acl_cv_path_LD"
11386 if test -n "$LD"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11388 $as_echo "$LD" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11396 if ${acl_cv_prog_gnu_ld+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11400 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11401 acl_cv_prog_gnu_ld=yes
11402 else
11403 acl_cv_prog_gnu_ld=no
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11407 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11408 with_gnu_ld=$acl_cv_prog_gnu_ld
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11413 $as_echo_n "checking for shared library run path origin... " >&6; }
11414 if ${acl_cv_rpath+:} false; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11418 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11419 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11420 . ./conftest.sh
11421 rm -f ./conftest.sh
11422 acl_cv_rpath=done
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11426 $as_echo "$acl_cv_rpath" >&6; }
11427 wl="$acl_cv_wl"
11428 libext="$acl_cv_libext"
11429 shlibext="$acl_cv_shlibext"
11430 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11431 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11432 hardcode_direct="$acl_cv_hardcode_direct"
11433 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11434 # Check whether --enable-rpath was given.
11435 if test "${enable_rpath+set}" = set; then :
11436 enableval=$enable_rpath; :
11437 else
11438 enable_rpath=yes
11448 use_additional=yes
11450 acl_save_prefix="$prefix"
11451 prefix="$acl_final_prefix"
11452 acl_save_exec_prefix="$exec_prefix"
11453 exec_prefix="$acl_final_exec_prefix"
11455 eval additional_includedir=\"$includedir\"
11456 eval additional_libdir=\"$libdir\"
11458 exec_prefix="$acl_save_exec_prefix"
11459 prefix="$acl_save_prefix"
11462 # Check whether --with-libiconv-prefix was given.
11463 if test "${with_libiconv_prefix+set}" = set; then :
11464 withval=$with_libiconv_prefix;
11465 if test "X$withval" = "Xno"; then
11466 use_additional=no
11467 else
11468 if test "X$withval" = "X"; then
11470 acl_save_prefix="$prefix"
11471 prefix="$acl_final_prefix"
11472 acl_save_exec_prefix="$exec_prefix"
11473 exec_prefix="$acl_final_exec_prefix"
11475 eval additional_includedir=\"$includedir\"
11476 eval additional_libdir=\"$libdir\"
11478 exec_prefix="$acl_save_exec_prefix"
11479 prefix="$acl_save_prefix"
11481 else
11482 additional_includedir="$withval/include"
11483 additional_libdir="$withval/lib"
11490 # Check whether --with-libiconv-type was given.
11491 if test "${with_libiconv_type+set}" = set; then :
11492 withval=$with_libiconv_type; with_libiconv_type=$withval
11493 else
11494 with_libiconv_type=auto
11497 lib_type=`eval echo \$with_libiconv_type`
11499 LIBICONV=
11500 LTLIBICONV=
11501 INCICONV=
11502 rpathdirs=
11503 ltrpathdirs=
11504 names_already_handled=
11505 names_next_round='iconv '
11506 while test -n "$names_next_round"; do
11507 names_this_round="$names_next_round"
11508 names_next_round=
11509 for name in $names_this_round; do
11510 already_handled=
11511 for n in $names_already_handled; do
11512 if test "$n" = "$name"; then
11513 already_handled=yes
11514 break
11516 done
11517 if test -z "$already_handled"; then
11518 names_already_handled="$names_already_handled $name"
11519 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11520 eval value=\"\$HAVE_LIB$uppername\"
11521 if test -n "$value"; then
11522 if test "$value" = yes; then
11523 eval value=\"\$LIB$uppername\"
11524 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11525 eval value=\"\$LTLIB$uppername\"
11526 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11527 else
11530 else
11531 found_dir=
11532 found_la=
11533 found_so=
11534 found_a=
11535 if test $use_additional = yes; then
11536 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11537 found_dir="$additional_libdir"
11538 found_so="$additional_libdir/lib$name.$shlibext"
11539 if test -f "$additional_libdir/lib$name.la"; then
11540 found_la="$additional_libdir/lib$name.la"
11542 elif test x$lib_type != xshared; then
11543 if test -f "$additional_libdir/lib$name.$libext"; then
11544 found_dir="$additional_libdir"
11545 found_a="$additional_libdir/lib$name.$libext"
11546 if test -f "$additional_libdir/lib$name.la"; then
11547 found_la="$additional_libdir/lib$name.la"
11552 if test "X$found_dir" = "X"; then
11553 for x in $LDFLAGS $LTLIBICONV; do
11555 acl_save_prefix="$prefix"
11556 prefix="$acl_final_prefix"
11557 acl_save_exec_prefix="$exec_prefix"
11558 exec_prefix="$acl_final_exec_prefix"
11559 eval x=\"$x\"
11560 exec_prefix="$acl_save_exec_prefix"
11561 prefix="$acl_save_prefix"
11563 case "$x" in
11564 -L*)
11565 dir=`echo "X$x" | sed -e 's/^X-L//'`
11566 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11567 found_dir="$dir"
11568 found_so="$dir/lib$name.$shlibext"
11569 if test -f "$dir/lib$name.la"; then
11570 found_la="$dir/lib$name.la"
11572 elif test x$lib_type != xshared; then
11573 if test -f "$dir/lib$name.$libext"; then
11574 found_dir="$dir"
11575 found_a="$dir/lib$name.$libext"
11576 if test -f "$dir/lib$name.la"; then
11577 found_la="$dir/lib$name.la"
11582 esac
11583 if test "X$found_dir" != "X"; then
11584 break
11586 done
11588 if test "X$found_dir" != "X"; then
11589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11590 if test "X$found_so" != "X"; then
11591 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11592 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11593 else
11594 haveit=
11595 for x in $ltrpathdirs; do
11596 if test "X$x" = "X$found_dir"; then
11597 haveit=yes
11598 break
11600 done
11601 if test -z "$haveit"; then
11602 ltrpathdirs="$ltrpathdirs $found_dir"
11604 if test "$hardcode_direct" = yes; then
11605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11606 else
11607 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11609 haveit=
11610 for x in $rpathdirs; do
11611 if test "X$x" = "X$found_dir"; then
11612 haveit=yes
11613 break
11615 done
11616 if test -z "$haveit"; then
11617 rpathdirs="$rpathdirs $found_dir"
11619 else
11620 haveit=
11621 for x in $LDFLAGS $LIBICONV; do
11623 acl_save_prefix="$prefix"
11624 prefix="$acl_final_prefix"
11625 acl_save_exec_prefix="$exec_prefix"
11626 exec_prefix="$acl_final_exec_prefix"
11627 eval x=\"$x\"
11628 exec_prefix="$acl_save_exec_prefix"
11629 prefix="$acl_save_prefix"
11631 if test "X$x" = "X-L$found_dir"; then
11632 haveit=yes
11633 break
11635 done
11636 if test -z "$haveit"; then
11637 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11639 if test "$hardcode_minus_L" != no; then
11640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11641 else
11642 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11647 else
11648 if test "X$found_a" != "X"; then
11649 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11650 else
11651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11654 additional_includedir=
11655 case "$found_dir" in
11656 */lib | */lib/)
11657 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11658 additional_includedir="$basedir/include"
11660 esac
11661 if test "X$additional_includedir" != "X"; then
11662 if test "X$additional_includedir" != "X/usr/include"; then
11663 haveit=
11664 if test "X$additional_includedir" = "X/usr/local/include"; then
11665 if test -n "$GCC"; then
11666 case $host_os in
11667 linux*) haveit=yes;;
11668 esac
11671 if test -z "$haveit"; then
11672 for x in $CPPFLAGS $INCICONV; do
11674 acl_save_prefix="$prefix"
11675 prefix="$acl_final_prefix"
11676 acl_save_exec_prefix="$exec_prefix"
11677 exec_prefix="$acl_final_exec_prefix"
11678 eval x=\"$x\"
11679 exec_prefix="$acl_save_exec_prefix"
11680 prefix="$acl_save_prefix"
11682 if test "X$x" = "X-I$additional_includedir"; then
11683 haveit=yes
11684 break
11686 done
11687 if test -z "$haveit"; then
11688 if test -d "$additional_includedir"; then
11689 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11695 if test -n "$found_la"; then
11696 save_libdir="$libdir"
11697 case "$found_la" in
11698 */* | *\\*) . "$found_la" ;;
11699 *) . "./$found_la" ;;
11700 esac
11701 libdir="$save_libdir"
11702 for dep in $dependency_libs; do
11703 case "$dep" in
11704 -L*)
11705 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11706 if test "X$additional_libdir" != "X/usr/lib"; then
11707 haveit=
11708 if test "X$additional_libdir" = "X/usr/local/lib"; then
11709 if test -n "$GCC"; then
11710 case $host_os in
11711 linux*) haveit=yes;;
11712 esac
11715 if test -z "$haveit"; then
11716 haveit=
11717 for x in $LDFLAGS $LIBICONV; do
11719 acl_save_prefix="$prefix"
11720 prefix="$acl_final_prefix"
11721 acl_save_exec_prefix="$exec_prefix"
11722 exec_prefix="$acl_final_exec_prefix"
11723 eval x=\"$x\"
11724 exec_prefix="$acl_save_exec_prefix"
11725 prefix="$acl_save_prefix"
11727 if test "X$x" = "X-L$additional_libdir"; then
11728 haveit=yes
11729 break
11731 done
11732 if test -z "$haveit"; then
11733 if test -d "$additional_libdir"; then
11734 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11737 haveit=
11738 for x in $LDFLAGS $LTLIBICONV; do
11740 acl_save_prefix="$prefix"
11741 prefix="$acl_final_prefix"
11742 acl_save_exec_prefix="$exec_prefix"
11743 exec_prefix="$acl_final_exec_prefix"
11744 eval x=\"$x\"
11745 exec_prefix="$acl_save_exec_prefix"
11746 prefix="$acl_save_prefix"
11748 if test "X$x" = "X-L$additional_libdir"; then
11749 haveit=yes
11750 break
11752 done
11753 if test -z "$haveit"; then
11754 if test -d "$additional_libdir"; then
11755 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11761 -R*)
11762 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11763 if test "$enable_rpath" != no; then
11764 haveit=
11765 for x in $rpathdirs; do
11766 if test "X$x" = "X$dir"; then
11767 haveit=yes
11768 break
11770 done
11771 if test -z "$haveit"; then
11772 rpathdirs="$rpathdirs $dir"
11774 haveit=
11775 for x in $ltrpathdirs; do
11776 if test "X$x" = "X$dir"; then
11777 haveit=yes
11778 break
11780 done
11781 if test -z "$haveit"; then
11782 ltrpathdirs="$ltrpathdirs $dir"
11786 -l*)
11787 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11789 *.la)
11790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11793 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11794 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11796 esac
11797 done
11799 else
11800 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11801 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11802 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11803 else
11804 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11810 done
11811 done
11812 if test "X$rpathdirs" != "X"; then
11813 if test -n "$hardcode_libdir_separator"; then
11814 alldirs=
11815 for found_dir in $rpathdirs; do
11816 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11817 done
11818 acl_save_libdir="$libdir"
11819 libdir="$alldirs"
11820 eval flag=\"$hardcode_libdir_flag_spec\"
11821 libdir="$acl_save_libdir"
11822 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11823 else
11824 for found_dir in $rpathdirs; do
11825 acl_save_libdir="$libdir"
11826 libdir="$found_dir"
11827 eval flag=\"$hardcode_libdir_flag_spec\"
11828 libdir="$acl_save_libdir"
11829 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11830 done
11833 if test "X$ltrpathdirs" != "X"; then
11834 for found_dir in $ltrpathdirs; do
11835 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11836 done
11845 am_save_CPPFLAGS="$CPPFLAGS"
11847 for element in $INCICONV; do
11848 haveit=
11849 for x in $CPPFLAGS; do
11851 acl_save_prefix="$prefix"
11852 prefix="$acl_final_prefix"
11853 acl_save_exec_prefix="$exec_prefix"
11854 exec_prefix="$acl_final_exec_prefix"
11855 eval x=\"$x\"
11856 exec_prefix="$acl_save_exec_prefix"
11857 prefix="$acl_save_prefix"
11859 if test "X$x" = "X$element"; then
11860 haveit=yes
11861 break
11863 done
11864 if test -z "$haveit"; then
11865 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11867 done
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11871 $as_echo_n "checking for iconv... " >&6; }
11872 if ${am_cv_func_iconv+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11876 am_cv_func_iconv="no, consider installing GNU libiconv"
11877 am_cv_lib_iconv=no
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11881 #include <stdlib.h>
11882 #include <iconv.h>
11885 main ()
11887 iconv_t cd = iconv_open("","");
11888 iconv(cd,NULL,NULL,NULL,NULL);
11889 iconv_close(cd);
11891 return 0;
11893 _ACEOF
11894 if ac_fn_cxx_try_link "$LINENO"; then :
11895 am_cv_func_iconv=yes
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 if test "$am_cv_func_iconv" != yes; then
11900 am_save_LIBS="$LIBS"
11901 LIBS="$LIBS $LIBICONV"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 #include <stdlib.h>
11906 #include <iconv.h>
11909 main ()
11911 iconv_t cd = iconv_open("","");
11912 iconv(cd,NULL,NULL,NULL,NULL);
11913 iconv_close(cd);
11915 return 0;
11917 _ACEOF
11918 if ac_fn_cxx_try_link "$LINENO"; then :
11919 am_cv_lib_iconv=yes
11920 am_cv_func_iconv=yes
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS="$am_save_LIBS"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11929 $as_echo "$am_cv_func_iconv" >&6; }
11930 if test "$am_cv_func_iconv" = yes; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11932 $as_echo_n "checking for working iconv... " >&6; }
11933 if ${am_cv_func_iconv_works+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11937 am_save_LIBS="$LIBS"
11938 if test $am_cv_lib_iconv = yes; then
11939 LIBS="$LIBS $LIBICONV"
11941 am_cv_func_iconv_works=no
11942 for ac_iconv_const in '' 'const'; do
11943 if test "$cross_compiling" = yes; then :
11944 case "$host_os" in
11945 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11946 *) am_cv_func_iconv_works="guessing yes" ;;
11947 esac
11948 else
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 #include <iconv.h>
11953 #include <string.h>
11955 #ifndef ICONV_CONST
11956 # define ICONV_CONST $ac_iconv_const
11957 #endif
11960 main ()
11962 int result = 0;
11963 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11964 successful returns. This is even documented in
11965 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11967 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11968 if (cd_utf8_to_88591 != (iconv_t)(-1))
11970 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11971 char buf[10];
11972 ICONV_CONST char *inptr = input;
11973 size_t inbytesleft = strlen (input);
11974 char *outptr = buf;
11975 size_t outbytesleft = sizeof (buf);
11976 size_t res = iconv (cd_utf8_to_88591,
11977 &inptr, &inbytesleft,
11978 &outptr, &outbytesleft);
11979 if (res == 0)
11980 result |= 1;
11981 iconv_close (cd_utf8_to_88591);
11984 /* Test against Solaris 10 bug: Failures are not distinguishable from
11985 successful returns. */
11987 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11988 if (cd_ascii_to_88591 != (iconv_t)(-1))
11990 static ICONV_CONST char input[] = "\263";
11991 char buf[10];
11992 ICONV_CONST char *inptr = input;
11993 size_t inbytesleft = strlen (input);
11994 char *outptr = buf;
11995 size_t outbytesleft = sizeof (buf);
11996 size_t res = iconv (cd_ascii_to_88591,
11997 &inptr, &inbytesleft,
11998 &outptr, &outbytesleft);
11999 if (res == 0)
12000 result |= 2;
12001 iconv_close (cd_ascii_to_88591);
12004 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12006 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12007 if (cd_88591_to_utf8 != (iconv_t)(-1))
12009 static ICONV_CONST char input[] = "\304";
12010 static char buf[2] = { (char)0xDE, (char)0xAD };
12011 ICONV_CONST char *inptr = input;
12012 size_t inbytesleft = 1;
12013 char *outptr = buf;
12014 size_t outbytesleft = 1;
12015 size_t res = iconv (cd_88591_to_utf8,
12016 &inptr, &inbytesleft,
12017 &outptr, &outbytesleft);
12018 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12019 result |= 4;
12020 iconv_close (cd_88591_to_utf8);
12023 #if 0 /* This bug could be worked around by the caller. */
12024 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12026 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12027 if (cd_88591_to_utf8 != (iconv_t)(-1))
12029 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12030 char buf[50];
12031 ICONV_CONST char *inptr = input;
12032 size_t inbytesleft = strlen (input);
12033 char *outptr = buf;
12034 size_t outbytesleft = sizeof (buf);
12035 size_t res = iconv (cd_88591_to_utf8,
12036 &inptr, &inbytesleft,
12037 &outptr, &outbytesleft);
12038 if ((int)res > 0)
12039 result |= 8;
12040 iconv_close (cd_88591_to_utf8);
12043 #endif
12044 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12045 provided. */
12047 /* Try standardized names. */
12048 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12049 /* Try IRIX, OSF/1 names. */
12050 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12051 /* Try AIX names. */
12052 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12053 /* Try HP-UX names. */
12054 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12055 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12056 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12057 result |= 16;
12058 if (cd1 != (iconv_t)(-1))
12059 iconv_close (cd1);
12060 if (cd2 != (iconv_t)(-1))
12061 iconv_close (cd2);
12062 if (cd3 != (iconv_t)(-1))
12063 iconv_close (cd3);
12064 if (cd4 != (iconv_t)(-1))
12065 iconv_close (cd4);
12067 return result;
12070 return 0;
12072 _ACEOF
12073 if ac_fn_cxx_try_run "$LINENO"; then :
12074 am_cv_func_iconv_works=yes
12076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12077 conftest.$ac_objext conftest.beam conftest.$ac_ext
12080 test "$am_cv_func_iconv_works" = no || break
12081 done
12082 LIBS="$am_save_LIBS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12086 $as_echo "$am_cv_func_iconv_works" >&6; }
12087 case "$am_cv_func_iconv_works" in
12088 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12089 *) am_func_iconv=yes ;;
12090 esac
12091 else
12092 am_func_iconv=no am_cv_lib_iconv=no
12094 if test "$am_func_iconv" = yes; then
12096 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12099 if test "$am_cv_lib_iconv" = yes; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12101 $as_echo_n "checking how to link with libiconv... " >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12103 $as_echo "$LIBICONV" >&6; }
12104 else
12105 CPPFLAGS="$am_save_CPPFLAGS"
12106 LIBICONV=
12107 LTLIBICONV=
12112 if test "$am_cv_func_iconv" = yes; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12114 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12115 if ${gl_cv_iconv_nonconst+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12121 #include <stdlib.h>
12122 #include <iconv.h>
12123 extern
12124 #ifdef __cplusplus
12126 #endif
12127 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12130 main ()
12134 return 0;
12136 _ACEOF
12137 if ac_fn_cxx_try_compile "$LINENO"; then :
12138 gl_cv_iconv_nonconst=yes
12139 else
12140 gl_cv_iconv_nonconst=no
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12146 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12147 else
12148 gl_cv_iconv_nonconst=yes
12150 if test $gl_cv_iconv_nonconst = yes; then
12151 iconv_arg1=""
12152 else
12153 iconv_arg1="const"
12156 cat >>confdefs.h <<_ACEOF
12157 #define ICONV_CONST $iconv_arg1
12158 _ACEOF
12162 if test "$am_func_iconv" = yes; then
12163 if test -n "$LIBICONV"; then
12164 am_cv_func_iconv_summary='yes, in libiconv'
12165 else
12166 am_cv_func_iconv_summary='yes, in libc'
12168 else
12169 if test "$am_cv_func_iconv" = yes; then
12170 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12171 else
12172 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12177 # Until we have in-tree GNU iconv:
12178 LIBICONV_DEP=
12179 if test -f "$LTLIBICONV"; then
12180 LIBICONV_DEP=$LTLIBICONV
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12186 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12187 if ${am_cv_val_LC_MESSAGES+:} false; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #include <locale.h>
12194 main ()
12196 return LC_MESSAGES
12198 return 0;
12200 _ACEOF
12201 if ac_fn_cxx_try_link "$LINENO"; then :
12202 am_cv_val_LC_MESSAGES=yes
12203 else
12204 am_cv_val_LC_MESSAGES=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12210 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12211 if test $am_cv_val_LC_MESSAGES = yes; then
12213 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12220 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12221 if ${am_cv_langinfo_codeset+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <langinfo.h>
12228 main ()
12230 char* cs = nl_langinfo(CODESET);
12232 return 0;
12234 _ACEOF
12235 if ac_fn_cxx_try_link "$LINENO"; then :
12236 am_cv_langinfo_codeset=yes
12237 else
12238 am_cv_langinfo_codeset=no
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12245 $as_echo "$am_cv_langinfo_codeset" >&6; }
12246 if test $am_cv_langinfo_codeset = yes; then
12248 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12253 # We will need to find libiberty.h and ansidecl.h
12254 saved_CFLAGS="$CFLAGS"
12255 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12256 saved_CXXFLAGS="$CXXFLAGS"
12257 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12259 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12260 # normal autoconf function for these. But force definition of
12261 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12262 # basename handling in libiberty.h.
12263 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12264 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12265 #undef HAVE_DECL_BASENAME
12266 #define HAVE_DECL_BASENAME 1
12267 #include \"ansidecl.h\"
12268 #include \"system.h\"
12270 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12271 ac_have_decl=1
12272 else
12273 ac_have_decl=0
12276 cat >>confdefs.h <<_ACEOF
12277 #define HAVE_DECL_BASENAME $ac_have_decl
12278 _ACEOF
12279 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12280 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12281 #undef HAVE_DECL_BASENAME
12282 #define HAVE_DECL_BASENAME 1
12283 #include \"ansidecl.h\"
12284 #include \"system.h\"
12286 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12287 ac_have_decl=1
12288 else
12289 ac_have_decl=0
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_DECL_STRSTR $ac_have_decl
12294 _ACEOF
12297 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12298 madvise stpcpy strnlen strsignal strverscmp \
12299 strtol strtoul strtoll strtoull setenv unsetenv \
12300 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12301 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
12303 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12305 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12306 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 #undef $ac_tr_decl
12312 #define $ac_tr_decl 1
12314 #include "ansidecl.h"
12315 #include "system.h"
12318 main ()
12320 #ifndef $ac_func
12321 char *(*pfn) = (char *(*)) $ac_func ;
12322 #endif
12324 return 0;
12326 _ACEOF
12327 if ac_fn_cxx_try_compile "$LINENO"; then :
12328 eval "gcc_cv_have_decl_$ac_func=yes"
12329 else
12330 eval "gcc_cv_have_decl_$ac_func=no"
12332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12338 #define $ac_tr_decl 1
12339 _ACEOF
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12344 #define $ac_tr_decl 0
12345 _ACEOF
12349 done
12352 for ac_func in getrlimit setrlimit getrusage
12354 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12356 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12357 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362 #undef $ac_tr_decl
12363 #define $ac_tr_decl 1
12365 #include "ansidecl.h"
12366 #include "system.h"
12367 #ifdef HAVE_SYS_RESOURCE_H
12368 #include <sys/resource.h>
12369 #endif
12373 main ()
12375 #ifndef $ac_func
12376 char *(*pfn) = (char *(*)) $ac_func ;
12377 #endif
12379 return 0;
12381 _ACEOF
12382 if ac_fn_cxx_try_compile "$LINENO"; then :
12383 eval "gcc_cv_have_decl_$ac_func=yes"
12384 else
12385 eval "gcc_cv_have_decl_$ac_func=no"
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12392 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12393 #define $ac_tr_decl 1
12394 _ACEOF
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12399 #define $ac_tr_decl 0
12400 _ACEOF
12404 done
12407 for ac_func in mallinfo mallinfo2
12409 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12411 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12412 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #undef $ac_tr_decl
12418 #define $ac_tr_decl 1
12420 #include "ansidecl.h"
12421 #include "system.h"
12422 #ifdef HAVE_MALLOC_H
12423 #include <malloc.h>
12424 #endif
12428 main ()
12430 #ifndef $ac_func
12431 char *(*pfn) = (char *(*)) $ac_func ;
12432 #endif
12434 return 0;
12436 _ACEOF
12437 if ac_fn_cxx_try_compile "$LINENO"; then :
12438 eval "gcc_cv_have_decl_$ac_func=yes"
12439 else
12440 eval "gcc_cv_have_decl_$ac_func=no"
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12448 #define $ac_tr_decl 1
12449 _ACEOF
12451 else
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12454 #define $ac_tr_decl 0
12455 _ACEOF
12459 done
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12465 #include "ansidecl.h"
12466 #include "system.h"
12467 #ifdef HAVE_SYS_RESOURCE_H
12468 #include <sys/resource.h>
12469 #endif
12472 main ()
12474 rlim_t l = 0;
12476 return 0;
12478 _ACEOF
12479 if ac_fn_cxx_try_compile "$LINENO"; then :
12481 else
12483 $as_echo "#define rlim_t long" >>confdefs.h
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12489 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12490 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12491 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12492 for ac_func in ldgetname
12494 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12496 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12497 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502 #undef $ac_tr_decl
12503 #define $ac_tr_decl 1
12505 #include "ansidecl.h"
12506 #include "system.h"
12507 #ifdef HAVE_LDFCN_H
12508 #undef FREAD
12509 #undef FWRITE
12510 #include <ldfcn.h>
12511 #endif
12515 main ()
12517 #ifndef $ac_func
12518 char *(*pfn) = (char *(*)) $ac_func ;
12519 #endif
12521 return 0;
12523 _ACEOF
12524 if ac_fn_cxx_try_compile "$LINENO"; then :
12525 eval "gcc_cv_have_decl_$ac_func=yes"
12526 else
12527 eval "gcc_cv_have_decl_$ac_func=no"
12529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12534 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12535 #define $ac_tr_decl 1
12536 _ACEOF
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12541 #define $ac_tr_decl 0
12542 _ACEOF
12546 done
12549 for ac_func in times
12551 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12553 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12554 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #undef $ac_tr_decl
12560 #define $ac_tr_decl 1
12562 #include "ansidecl.h"
12563 #include "system.h"
12564 #ifdef HAVE_SYS_TIMES_H
12565 #include <sys/times.h>
12566 #endif
12570 main ()
12572 #ifndef $ac_func
12573 char *(*pfn) = (char *(*)) $ac_func ;
12574 #endif
12576 return 0;
12578 _ACEOF
12579 if ac_fn_cxx_try_compile "$LINENO"; then :
12580 eval "gcc_cv_have_decl_$ac_func=yes"
12581 else
12582 eval "gcc_cv_have_decl_$ac_func=no"
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12590 #define $ac_tr_decl 1
12591 _ACEOF
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12596 #define $ac_tr_decl 0
12597 _ACEOF
12601 done
12604 for ac_func in sigaltstack
12606 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12608 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12609 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614 #undef $ac_tr_decl
12615 #define $ac_tr_decl 1
12617 #include "ansidecl.h"
12618 #include "system.h"
12619 #include <signal.h>
12623 main ()
12625 #ifndef $ac_func
12626 char *(*pfn) = (char *(*)) $ac_func ;
12627 #endif
12629 return 0;
12631 _ACEOF
12632 if ac_fn_cxx_try_compile "$LINENO"; then :
12633 eval "gcc_cv_have_decl_$ac_func=yes"
12634 else
12635 eval "gcc_cv_have_decl_$ac_func=no"
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12643 #define $ac_tr_decl 1
12644 _ACEOF
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12649 #define $ac_tr_decl 0
12650 _ACEOF
12654 done
12657 # More time-related stuff.
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12659 $as_echo_n "checking for struct tms... " >&6; }
12660 if ${ac_cv_struct_tms+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12667 #include "ansidecl.h"
12668 #include "system.h"
12669 #ifdef HAVE_SYS_TIMES_H
12670 #include <sys/times.h>
12671 #endif
12674 main ()
12676 struct tms tms;
12678 return 0;
12680 _ACEOF
12681 if ac_fn_cxx_try_compile "$LINENO"; then :
12682 ac_cv_struct_tms=yes
12683 else
12684 ac_cv_struct_tms=no
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12689 $as_echo "$ac_cv_struct_tms" >&6; }
12690 if test $ac_cv_struct_tms = yes; then
12692 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12696 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12697 # revisit after autoconf 2.50.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12699 $as_echo_n "checking for clock_t... " >&6; }
12700 if ${gcc_cv_type_clock_t+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12707 #include "ansidecl.h"
12708 #include "system.h"
12711 main ()
12713 clock_t x;
12715 return 0;
12717 _ACEOF
12718 if ac_fn_cxx_try_compile "$LINENO"; then :
12719 gcc_cv_type_clock_t=yes
12720 else
12721 gcc_cv_type_clock_t=no
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12726 $as_echo "$gcc_cv_type_clock_t" >&6; }
12727 if test $gcc_cv_type_clock_t = yes; then
12729 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12733 # Check if F_SETLKW is supported by fcntl.
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12735 $as_echo_n "checking for F_SETLKW... " >&6; }
12736 if ${ac_cv_f_setlkw+:} false; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12743 #include <fcntl.h>
12745 main ()
12748 struct flock fl;
12749 fl.l_whence = 0;
12750 fl.l_start = 0;
12751 fl.l_len = 0;
12752 fl.l_pid = 0;
12753 return fcntl (1, F_SETLKW, &fl);
12755 return 0;
12757 _ACEOF
12758 if ac_fn_cxx_try_compile "$LINENO"; then :
12759 ac_cv_f_setlkw=yes
12760 else
12761 ac_cv_f_setlkw=no
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12766 $as_echo "$ac_cv_f_setlkw" >&6; }
12767 if test $ac_cv_f_setlkw = yes; then
12769 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12773 # Check if O_CLOEXEC is defined by fcntl
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12775 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12776 if ${ac_cv_o_cloexec+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12783 #include <fcntl.h>
12785 main ()
12788 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12790 return 0;
12792 _ACEOF
12793 if ac_fn_cxx_try_compile "$LINENO"; then :
12794 ac_cv_o_cloexec=yes
12795 else
12796 ac_cv_o_cloexec=no
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12801 $as_echo "$ac_cv_o_cloexec" >&6; }
12802 if test $ac_cv_o_cloexec = yes; then
12804 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12808 # Check if O_NONBLOCK is defined by fcntl
12809 for ac_header in fcntl.h
12810 do :
12811 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12812 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12813 cat >>confdefs.h <<_ACEOF
12814 #define HAVE_FCNTL_H 1
12815 _ACEOF
12818 done
12820 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12822 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12826 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12828 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12833 # C++ Modules would like some networking features to provide the mapping
12834 # server. You can still use modules without them though.
12835 # The following network-related checks could probably do with some
12836 # Windows and other non-linux defenses and checking.
12838 # Local socket connectivity wants AF_UNIX networking
12839 # Check for AF_UNIX networking
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12841 $as_echo_n "checking for AF_UNIX... " >&6; }
12842 if ${ac_cv_af_unix+:} false; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12849 #include <sys/types.h>
12850 #include <sys/socket.h>
12851 #include <sys/un.h>
12852 #include <netinet/in.h>
12854 main ()
12857 sockaddr_un un;
12858 un.sun_family = AF_UNSPEC;
12859 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12860 connect (fd, (sockaddr *)&un, sizeof (un));
12862 return 0;
12864 _ACEOF
12865 if ac_fn_cxx_try_compile "$LINENO"; then :
12866 ac_cv_af_unix=yes
12867 else
12868 ac_cv_af_unix=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12873 $as_echo "$ac_cv_af_unix" >&6; }
12874 if test $ac_cv_af_unix = yes; then
12876 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12880 # Remote socket connectivity wants AF_INET6 networking
12881 # Check for AF_INET6 networking
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12883 $as_echo_n "checking for AF_INET6... " >&6; }
12884 if ${ac_cv_af_inet6+:} false; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 #include <sys/types.h>
12892 #include <sys/socket.h>
12893 #include <netinet/in.h>
12894 #include <netdb.h>
12896 main ()
12899 sockaddr_in6 in6;
12900 in6.sin6_family = AF_UNSPEC;
12901 struct addrinfo *addrs = 0;
12902 struct addrinfo hints;
12903 hints.ai_flags = 0;
12904 hints.ai_family = AF_INET6;
12905 hints.ai_socktype = SOCK_STREAM;
12906 hints.ai_protocol = 0;
12907 hints.ai_canonname = 0;
12908 hints.ai_addr = 0;
12909 hints.ai_next = 0;
12910 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12911 const char *str = gai_strerror (e);
12912 freeaddrinfo (addrs);
12913 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12914 connect (fd, (sockaddr *)&in6, sizeof (in6));
12916 return 0;
12918 _ACEOF
12919 if ac_fn_cxx_try_compile "$LINENO"; then :
12920 ac_cv_af_inet6=yes
12921 else
12922 ac_cv_af_inet6=no
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12927 $as_echo "$ac_cv_af_inet6" >&6; }
12928 if test $ac_cv_af_inet6 = yes; then
12930 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12934 # Check if _LK_LOCK is supported by _locking
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12936 $as_echo_n "checking for _LK_LOCK... " >&6; }
12937 if ${ac_cv_lk_lock+:} false; then :
12938 $as_echo_n "(cached) " >&6
12939 else
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 #include <io.h>
12945 #include <sys/locking.h>
12947 main ()
12950 int fd;
12951 return _locking (fd, _LK_LOCK, 0);
12953 return 0;
12955 _ACEOF
12956 if ac_fn_cxx_try_compile "$LINENO"; then :
12957 ac_cv_lk_lock=yes
12958 else
12959 ac_cv_lk_lock=no
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12964 $as_echo "$ac_cv_lk_lock" >&6; }
12965 if test $ac_cv_lk_lock = yes; then
12967 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12971 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12972 CFLAGS="$saved_CFLAGS"
12973 CXXFLAGS="$saved_CXXFLAGS"
12975 # mkdir takes a single argument on some systems.
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12977 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12978 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12984 #include <sys/types.h>
12985 #ifdef HAVE_SYS_STAT_H
12986 # include <sys/stat.h>
12987 #endif
12988 #ifdef HAVE_UNISTD_H
12989 # include <unistd.h>
12990 #endif
12991 #ifdef HAVE_DIRECT_H
12992 # include <direct.h>
12993 #endif
12995 main ()
12997 mkdir ("foo", 0);
12999 return 0;
13001 _ACEOF
13002 if ac_fn_cxx_try_compile "$LINENO"; then :
13003 gcc_cv_mkdir_takes_one_arg=no
13004 else
13005 gcc_cv_mkdir_takes_one_arg=yes
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
13010 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
13011 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13013 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
13018 # File extensions
13019 manext='.1'
13020 objext='.o'
13024 # With Setjmp/Longjmp based exception handling.
13025 # Check whether --enable-sjlj-exceptions was given.
13026 if test "${enable_sjlj_exceptions+set}" = set; then :
13027 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
13028 else
13029 case $target in
13030 lm32*-*-*)
13031 force_sjlj_exceptions=yes
13032 enableval=yes
13035 force_sjlj_exceptions=no
13037 esac
13040 if test $force_sjlj_exceptions = yes; then
13041 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13043 cat >>confdefs.h <<_ACEOF
13044 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13045 _ACEOF
13049 # --------------------------------------------------------
13050 # Build, host, and target specific configuration fragments
13051 # --------------------------------------------------------
13053 # Collect build-machine-specific information.
13054 . ${srcdir}/config.build || exit 1
13056 # Collect host-machine-specific information.
13057 . ${srcdir}/config.host || exit 1
13059 target_gtfiles=
13061 # Collect target-machine-specific information.
13062 . ${srcdir}/config.gcc || exit 1
13064 extra_objs="${host_extra_objs} ${extra_objs}"
13065 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13067 # Default the target-machine variables that were not explicitly set.
13068 if test x"$tm_file" = x
13069 then tm_file=$cpu_type/$cpu_type.h; fi
13071 if test x"$extra_headers" = x
13072 then extra_headers=; fi
13074 if test x$md_file = x
13075 then md_file=$cpu_type/$cpu_type.md; fi
13077 if test x$out_file = x
13078 then out_file=$cpu_type/$cpu_type.cc; fi
13080 if test x"$tmake_file" = x
13081 then tmake_file=$cpu_type/t-$cpu_type
13084 # Support --enable-initfini-array.
13085 if test x$enable_initfini_array != xno; then
13086 tm_file="${tm_file} initfini-array.h"
13089 if test x"$dwarf2" = xyes
13090 then tm_file="$tm_file tm-dwarf2.h"
13093 # Say what files are being used for the output code and MD file.
13094 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13095 echo "Using \`$srcdir/config/$md_file' as machine description file."
13097 # If any of the xm_file variables contain nonexistent files, warn
13098 # about them and drop them.
13101 for x in $build_xm_file; do
13102 if test -f $srcdir/config/$x
13103 then bx="$bx $x"
13104 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13105 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13107 done
13108 build_xm_file="$bx"
13111 for x in $host_xm_file; do
13112 if test -f $srcdir/config/$x
13113 then hx="$hx $x"
13114 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13115 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13117 done
13118 host_xm_file="$hx"
13121 for x in $xm_file; do
13122 if test -f $srcdir/config/$x
13123 then tx="$tx $x"
13124 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13125 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13127 done
13128 xm_file="$tx"
13130 count=a
13131 for f in $tm_file; do
13132 count=${count}x
13133 done
13134 if test $count = ax; then
13135 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13136 else
13137 echo "Using the following target machine macro files:"
13138 for f in $tm_file; do
13139 echo " $srcdir/config/$f"
13140 done
13143 if test x$use_long_long_for_widest_fast_int = xyes; then
13145 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13149 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13151 cat >>confdefs.h <<_ACEOF
13152 #define HAVE_GNU_LD $gnu_ld_bool
13153 _ACEOF
13156 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_GNU_AS $gnu_as_bool
13160 _ACEOF
13163 count=a
13164 for f in $host_xm_file; do
13165 count=${count}x
13166 done
13167 if test $count = a; then
13169 elif test $count = ax; then
13170 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13171 else
13172 echo "Using the following host machine macro files:"
13173 for f in $host_xm_file; do
13174 echo " $srcdir/config/$f"
13175 done
13177 echo "Using ${out_host_hook_obj} for host machine hooks."
13179 if test "$host_xm_file" != "$build_xm_file"; then
13180 count=a
13181 for f in $build_xm_file; do
13182 count=${count}x
13183 done
13184 if test $count = a; then
13186 elif test $count = ax; then
13187 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13188 else
13189 echo "Using the following build machine macro files:"
13190 for f in $build_xm_file; do
13191 echo " $srcdir/config/$f"
13192 done
13196 if test -n "$configured_native_system_header_dir"; then
13197 native_system_header_dir=$configured_native_system_header_dir
13199 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13202 case ${host} in
13203 powerpc*-*-darwin*)
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13205 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13206 if ${gcc_cv_mcontext_underscores+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 #include <sys/cdefs.h>
13213 #include <sys/signal.h>
13214 #include <ucontext.h>
13215 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13217 _ACEOF
13218 if ac_fn_cxx_try_compile "$LINENO"; then :
13219 gcc_cv_mcontext_underscores=no
13220 else
13221 gcc_cv_mcontext_underscores=yes
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13226 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13227 if test $gcc_cv_mcontext_underscores = yes; then
13229 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13233 esac
13235 # ---------
13236 # Threading
13237 # ---------
13239 # Check if a valid thread package
13240 case ${enable_threads} in
13241 "" | no)
13242 # No threads
13243 target_thread_file='single'
13245 yes)
13246 # default
13247 target_thread_file='single'
13249 aix | dce | lynx | mipssde | posix | rtems | \
13250 single | tpf | vxworks | win32 | mcf)
13251 target_thread_file=${enable_threads}
13254 echo "${enable_threads} is an unknown thread package" 1>&2
13255 exit 1
13257 esac
13259 if test x${thread_file} = x; then
13260 # No thread file set by target-specific clauses in config.gcc,
13261 # so use file chosen by default logic above
13262 thread_file=${target_thread_file}
13265 # --------
13266 # UNSORTED
13267 # --------
13269 use_cxa_atexit=no
13270 if test x$enable___cxa_atexit = xyes || \
13271 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13272 if test x$host = x$target; then
13273 case $host in
13274 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13275 # keyed to flag_use_cxa_atexit
13276 *-*-mingw32*)
13277 use_cxa_atexit=yes
13279 powerpc-ibm-aix*)
13280 use_cxa_atexit=yes
13283 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13284 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13285 use_cxa_atexit=yes
13286 else
13287 echo "__cxa_atexit can't be enabled on this target"
13291 esac
13292 else
13293 # We can't check for __cxa_atexit when building a cross, so assume
13294 # it is available
13295 use_cxa_atexit=yes
13297 if test x$use_cxa_atexit = xyes; then
13299 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13304 # Look for a file containing extra machine modes.
13305 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13306 extra_modes_file='$(srcdir)'/config/${extra_modes}
13309 cat >>confdefs.h <<_ACEOF
13310 #define EXTRA_MODES_FILE "config/$extra_modes"
13311 _ACEOF
13315 # Convert extra_options into a form suitable for Makefile use.
13316 extra_opt_files=
13317 all_opt_files=
13318 for f in $extra_options; do
13319 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13320 all_opt_files="$all_opt_files $srcdir/config/$f"
13321 done
13324 # auto-host.h is the file containing items generated by autoconf and is
13325 # the first file included by config.h.
13326 # If host=build, it is correct to have bconfig include auto-host.h
13327 # as well. If host!=build, we are in error and need to do more
13328 # work to find out the build config parameters.
13329 if test x$host = x$build
13330 then
13331 build_auto=auto-host.h
13332 HAVE_AUTO_BUILD='# '
13333 else
13334 # We create a subdir, then run autoconf in the subdir.
13335 # To prevent recursion we set host and build for the new
13336 # invocation of configure to the build for this invocation
13337 # of configure.
13338 tempdir=build.$$
13339 rm -rf $tempdir
13340 mkdir $tempdir
13341 cd $tempdir
13342 case ${srcdir} in
13343 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13344 *) realsrcdir=../${srcdir};;
13345 esac
13346 # Clearing GMPINC is necessary to prevent host headers being
13347 # used by the build compiler. Defining GENERATOR_FILE stops
13348 # system.h from including gmp.h.
13349 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13350 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13351 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13352 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13353 ${realsrcdir}/configure \
13354 --enable-languages=${enable_languages-all} \
13355 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13356 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13357 --target=$target_alias --host=$build_alias \
13358 --build=$build_alias || exit # retaining $tempdir
13360 # We just finished tests for the build machine, so rename
13361 # the file auto-build.h in the gcc directory.
13362 mv auto-host.h ../auto-build.h
13363 cd ..
13364 rm -rf $tempdir
13365 build_auto=auto-build.h
13366 HAVE_AUTO_BUILD=
13371 tm_file="${tm_file} defaults.h"
13372 tm_p_file="${tm_p_file} tm-preds.h"
13373 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13374 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13375 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13376 # put this back in temporarily.
13377 xm_file="auto-host.h ansidecl.h ${xm_file}"
13379 # --------
13380 # UNSORTED
13381 # --------
13383 # Compile in configure arguments.
13384 if test -f configargs.h ; then
13385 # Being re-configured.
13386 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13387 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13388 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13389 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13391 else
13392 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13395 # Double all backslashes and backslash all quotes to turn
13396 # gcc_config_arguments into a C string.
13397 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13398 $gcc_config_arguments
13400 gcc_config_arguments_str=`cat conftest.out`
13401 rm -f conftest.out
13403 cat > configargs.h <<EOF
13404 /* Generated automatically. */
13405 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13406 static const char thread_model[] = "$thread_file";
13408 static const struct {
13409 const char *name, *value;
13410 } configure_default_options[] = $configure_default_options;
13413 gcc_BASEVER=`cat $srcdir/BASE-VER`
13414 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13415 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13416 if test -f $srcdir/REVISION ; then
13417 gcc_REVISION=`cat $srcdir/REVISION`
13418 else
13419 gcc_REVISION=""
13421 cat > plugin-version.h <<EOF
13422 #include "configargs.h"
13424 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13425 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13426 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13427 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13429 static char basever[] = "$gcc_BASEVER";
13430 static char datestamp[] = "$gcc_DATESTAMP";
13431 static char devphase[] = "$gcc_DEVPHASE";
13432 static char revision[] = "$gcc_REVISION";
13434 /* FIXME plugins: We should make the version information more precise.
13435 One way to do is to add a checksum. */
13437 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13438 devphase, revision,
13439 configuration_arguments};
13442 # Determine what GCC version number to use in filesystem paths.
13444 get_gcc_base_ver="cat"
13446 # Check whether --with-gcc-major-version-only was given.
13447 if test "${with_gcc_major_version_only+set}" = set; then :
13448 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13449 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13457 # Internationalization
13458 # Find a good install program. We prefer a C program (faster),
13459 # so one script is as good as another. But avoid the broken or
13460 # incompatible versions:
13461 # SysV /etc/install, /usr/sbin/install
13462 # SunOS /usr/etc/install
13463 # IRIX /sbin/install
13464 # AIX /bin/install
13465 # AmigaOS /C/install, which installs bootblocks on floppy discs
13466 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13469 # OS/2's system install, which has a completely different semantic
13470 # ./install, which can be erroneously created by make from ./install.sh.
13471 # Reject install programs that cannot install multiple files.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13473 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13474 if test -z "$INSTALL"; then
13475 if ${ac_cv_path_install+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13479 for as_dir in $PATH
13481 IFS=$as_save_IFS
13482 test -z "$as_dir" && as_dir=.
13483 # Account for people who put trailing slashes in PATH elements.
13484 case $as_dir/ in #((
13485 ./ | .// | /[cC]/* | \
13486 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13487 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13488 /usr/ucb/* ) ;;
13490 # OSF1 and SCO ODT 3.0 have their own names for install.
13491 # Don't use installbsd from OSF since it installs stuff as root
13492 # by default.
13493 for ac_prog in ginstall scoinst install; do
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13496 if test $ac_prog = install &&
13497 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13498 # AIX install. It has an incompatible calling convention.
13500 elif test $ac_prog = install &&
13501 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13502 # program-specific install script used by HP pwplus--don't use.
13504 else
13505 rm -rf conftest.one conftest.two conftest.dir
13506 echo one > conftest.one
13507 echo two > conftest.two
13508 mkdir conftest.dir
13509 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13510 test -s conftest.one && test -s conftest.two &&
13511 test -s conftest.dir/conftest.one &&
13512 test -s conftest.dir/conftest.two
13513 then
13514 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13515 break 3
13519 done
13520 done
13522 esac
13524 done
13525 IFS=$as_save_IFS
13527 rm -rf conftest.one conftest.two conftest.dir
13530 if test "${ac_cv_path_install+set}" = set; then
13531 INSTALL=$ac_cv_path_install
13532 else
13533 # As a last resort, use the slow shell script. Don't cache a
13534 # value for INSTALL within a source directory, because that will
13535 # break other packages using the cache if that directory is
13536 # removed, or if the value is a relative name.
13537 INSTALL=$ac_install_sh
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13541 $as_echo "$INSTALL" >&6; }
13543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13544 # It thinks the first close brace ends the variable substitution.
13545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13552 MKINSTALLDIRS=
13553 if test -n "$ac_aux_dir"; then
13554 case "$ac_aux_dir" in
13555 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13556 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13557 esac
13559 if test -z "$MKINSTALLDIRS"; then
13560 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13566 $as_echo_n "checking whether NLS is requested... " >&6; }
13567 # Check whether --enable-nls was given.
13568 if test "${enable_nls+set}" = set; then :
13569 enableval=$enable_nls; USE_NLS=$enableval
13570 else
13571 USE_NLS=yes
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13575 $as_echo "$USE_NLS" >&6; }
13582 # Prepare PATH_SEPARATOR.
13583 # The user is always right.
13584 if test "${PATH_SEPARATOR+set}" != set; then
13585 echo "#! /bin/sh" >conf$$.sh
13586 echo "exit 0" >>conf$$.sh
13587 chmod +x conf$$.sh
13588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13589 PATH_SEPARATOR=';'
13590 else
13591 PATH_SEPARATOR=:
13593 rm -f conf$$.sh
13596 # Find out how to test for executable files. Don't use a zero-byte file,
13597 # as systems may use methods other than mode bits to determine executability.
13598 cat >conf$$.file <<_ASEOF
13599 #! /bin/sh
13600 exit 0
13601 _ASEOF
13602 chmod +x conf$$.file
13603 if test -x conf$$.file >/dev/null 2>&1; then
13604 ac_executable_p="test -x"
13605 else
13606 ac_executable_p="test -f"
13608 rm -f conf$$.file
13610 # Extract the first word of "msgfmt", so it can be a program name with args.
13611 set dummy msgfmt; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_path_MSGFMT+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 case "$MSGFMT" in
13618 [\\/]* | ?:[\\/]*)
13619 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13622 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13623 for ac_dir in $PATH; do
13624 IFS="$ac_save_IFS"
13625 test -z "$ac_dir" && ac_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13628 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13629 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13630 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13631 break 2
13634 done
13635 done
13636 IFS="$ac_save_IFS"
13637 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13639 esac
13641 MSGFMT="$ac_cv_path_MSGFMT"
13642 if test "$MSGFMT" != ":"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13644 $as_echo "$MSGFMT" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13650 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13651 set dummy gmsgfmt; ac_word=$2
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653 $as_echo_n "checking for $ac_word... " >&6; }
13654 if ${ac_cv_path_GMSGFMT+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 case $GMSGFMT in
13658 [\\/]* | ?:[\\/]*)
13659 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13665 IFS=$as_save_IFS
13666 test -z "$as_dir" && as_dir=.
13667 for ac_exec_ext in '' $ac_executable_extensions; do
13668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13669 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13671 break 2
13673 done
13674 done
13675 IFS=$as_save_IFS
13677 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13679 esac
13681 GMSGFMT=$ac_cv_path_GMSGFMT
13682 if test -n "$GMSGFMT"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13684 $as_echo "$GMSGFMT" >&6; }
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13693 # Prepare PATH_SEPARATOR.
13694 # The user is always right.
13695 if test "${PATH_SEPARATOR+set}" != set; then
13696 echo "#! /bin/sh" >conf$$.sh
13697 echo "exit 0" >>conf$$.sh
13698 chmod +x conf$$.sh
13699 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13700 PATH_SEPARATOR=';'
13701 else
13702 PATH_SEPARATOR=:
13704 rm -f conf$$.sh
13707 # Find out how to test for executable files. Don't use a zero-byte file,
13708 # as systems may use methods other than mode bits to determine executability.
13709 cat >conf$$.file <<_ASEOF
13710 #! /bin/sh
13711 exit 0
13712 _ASEOF
13713 chmod +x conf$$.file
13714 if test -x conf$$.file >/dev/null 2>&1; then
13715 ac_executable_p="test -x"
13716 else
13717 ac_executable_p="test -f"
13719 rm -f conf$$.file
13721 # Extract the first word of "xgettext", so it can be a program name with args.
13722 set dummy xgettext; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_path_XGETTEXT+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 case "$XGETTEXT" in
13729 [\\/]* | ?:[\\/]*)
13730 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13733 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13734 for ac_dir in $PATH; do
13735 IFS="$ac_save_IFS"
13736 test -z "$ac_dir" && ac_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13739 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13740 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13741 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13742 break 2
13745 done
13746 done
13747 IFS="$ac_save_IFS"
13748 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13750 esac
13752 XGETTEXT="$ac_cv_path_XGETTEXT"
13753 if test "$XGETTEXT" != ":"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13755 $as_echo "$XGETTEXT" >&6; }
13756 else
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13761 rm -f messages.po
13764 # Prepare PATH_SEPARATOR.
13765 # The user is always right.
13766 if test "${PATH_SEPARATOR+set}" != set; then
13767 echo "#! /bin/sh" >conf$$.sh
13768 echo "exit 0" >>conf$$.sh
13769 chmod +x conf$$.sh
13770 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13771 PATH_SEPARATOR=';'
13772 else
13773 PATH_SEPARATOR=:
13775 rm -f conf$$.sh
13778 # Find out how to test for executable files. Don't use a zero-byte file,
13779 # as systems may use methods other than mode bits to determine executability.
13780 cat >conf$$.file <<_ASEOF
13781 #! /bin/sh
13782 exit 0
13783 _ASEOF
13784 chmod +x conf$$.file
13785 if test -x conf$$.file >/dev/null 2>&1; then
13786 ac_executable_p="test -x"
13787 else
13788 ac_executable_p="test -f"
13790 rm -f conf$$.file
13792 # Extract the first word of "msgmerge", so it can be a program name with args.
13793 set dummy msgmerge; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if ${ac_cv_path_MSGMERGE+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 case "$MSGMERGE" in
13800 [\\/]* | ?:[\\/]*)
13801 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13804 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13805 for ac_dir in $PATH; do
13806 IFS="$ac_save_IFS"
13807 test -z "$ac_dir" && ac_dir=.
13808 for ac_exec_ext in '' $ac_executable_extensions; do
13809 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13810 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13811 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13812 break 2
13815 done
13816 done
13817 IFS="$ac_save_IFS"
13818 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13820 esac
13822 MSGMERGE="$ac_cv_path_MSGMERGE"
13823 if test "$MSGMERGE" != ":"; then
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13825 $as_echo "$MSGMERGE" >&6; }
13826 else
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828 $as_echo "no" >&6; }
13832 if test "$GMSGFMT" != ":"; then
13833 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13834 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13836 else
13837 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13839 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13840 GMSGFMT=":"
13844 if test "$XGETTEXT" != ":"; then
13845 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13846 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13848 else
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13850 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13851 XGETTEXT=":"
13853 rm -f messages.po
13856 ac_config_commands="$ac_config_commands default-1"
13862 if test -f ../gettext/uninstalled-config.sh; then
13863 relative_builddir='$(top_builddir)/../gettext'
13864 . ../gettext/uninstalled-config.sh
13865 else
13866 # The sister gettext directory doesn't exist and won't collect information on
13867 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13892 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13893 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 gt_save_LIBS="$LIBS"
13897 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include <CoreFoundation/CFPreferences.h>
13902 main ()
13904 CFPreferencesCopyAppValue(NULL, NULL)
13906 return 0;
13908 _ACEOF
13909 if ac_fn_cxx_try_link "$LINENO"; then :
13910 gt_cv_func_CFPreferencesCopyAppValue=yes
13911 else
13912 gt_cv_func_CFPreferencesCopyAppValue=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LIBS="$gt_save_LIBS"
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13919 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13920 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13922 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13926 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13927 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13928 $as_echo_n "(cached) " >&6
13929 else
13930 gt_save_LIBS="$LIBS"
13931 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #include <CoreFoundation/CFLocale.h>
13936 main ()
13938 CFLocaleCopyPreferredLanguages();
13940 return 0;
13942 _ACEOF
13943 if ac_fn_cxx_try_link "$LINENO"; then :
13944 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13945 else
13946 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS="$gt_save_LIBS"
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13953 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13954 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13956 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13959 INTL_MACOSX_LIBS=
13960 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13961 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13962 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13970 LIBINTL=
13971 LTLIBINTL=
13972 POSUB=
13974 case " $gt_needs " in
13975 *" need-formatstring-macros "*) gt_api_version=3 ;;
13976 *" need-ngettext "*) gt_api_version=2 ;;
13977 *) gt_api_version=1 ;;
13978 esac
13979 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13980 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13982 if test "$USE_NLS" = "yes"; then
13983 gt_use_preinstalled_gnugettext=no
13986 if test $gt_api_version -ge 3; then
13987 gt_revision_test_code='
13988 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13989 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13990 #endif
13991 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13993 else
13994 gt_revision_test_code=
13996 if test $gt_api_version -ge 2; then
13997 gt_expression_test_code=' + * ngettext ("", "", 0)'
13998 else
13999 gt_expression_test_code=
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14003 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14004 if eval \${$gt_func_gnugettext_libc+:} false; then :
14005 $as_echo_n "(cached) " >&6
14006 else
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 #include <libintl.h>
14011 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14012 extern int _nl_msg_cat_cntr;
14013 extern int *_nl_domain_bindings;
14014 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
14015 #else
14016 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14017 #endif
14018 $gt_revision_test_code
14021 main ()
14024 bindtextdomain ("", "");
14025 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14028 return 0;
14030 _ACEOF
14031 if ac_fn_cxx_try_link "$LINENO"; then :
14032 eval "$gt_func_gnugettext_libc=yes"
14033 else
14034 eval "$gt_func_gnugettext_libc=no"
14036 rm -f core conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14039 eval ac_res=\$$gt_func_gnugettext_libc
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14041 $as_echo "$ac_res" >&6; }
14043 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14049 am_save_CPPFLAGS="$CPPFLAGS"
14051 for element in $INCICONV; do
14052 haveit=
14053 for x in $CPPFLAGS; do
14055 acl_save_prefix="$prefix"
14056 prefix="$acl_final_prefix"
14057 acl_save_exec_prefix="$exec_prefix"
14058 exec_prefix="$acl_final_exec_prefix"
14059 eval x=\"$x\"
14060 exec_prefix="$acl_save_exec_prefix"
14061 prefix="$acl_save_prefix"
14063 if test "X$x" = "X$element"; then
14064 haveit=yes
14065 break
14067 done
14068 if test -z "$haveit"; then
14069 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14071 done
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14075 $as_echo_n "checking for iconv... " >&6; }
14076 if ${am_cv_func_iconv+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14080 am_cv_func_iconv="no, consider installing GNU libiconv"
14081 am_cv_lib_iconv=no
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14085 #include <stdlib.h>
14086 #include <iconv.h>
14089 main ()
14091 iconv_t cd = iconv_open("","");
14092 iconv(cd,NULL,NULL,NULL,NULL);
14093 iconv_close(cd);
14095 return 0;
14097 _ACEOF
14098 if ac_fn_cxx_try_link "$LINENO"; then :
14099 am_cv_func_iconv=yes
14101 rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 if test "$am_cv_func_iconv" != yes; then
14104 am_save_LIBS="$LIBS"
14105 LIBS="$LIBS $LIBICONV"
14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14107 /* end confdefs.h. */
14109 #include <stdlib.h>
14110 #include <iconv.h>
14113 main ()
14115 iconv_t cd = iconv_open("","");
14116 iconv(cd,NULL,NULL,NULL,NULL);
14117 iconv_close(cd);
14119 return 0;
14121 _ACEOF
14122 if ac_fn_cxx_try_link "$LINENO"; then :
14123 am_cv_lib_iconv=yes
14124 am_cv_func_iconv=yes
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS="$am_save_LIBS"
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14133 $as_echo "$am_cv_func_iconv" >&6; }
14134 if test "$am_cv_func_iconv" = yes; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14136 $as_echo_n "checking for working iconv... " >&6; }
14137 if ${am_cv_func_iconv_works+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14141 am_save_LIBS="$LIBS"
14142 if test $am_cv_lib_iconv = yes; then
14143 LIBS="$LIBS $LIBICONV"
14145 am_cv_func_iconv_works=no
14146 for ac_iconv_const in '' 'const'; do
14147 if test "$cross_compiling" = yes; then :
14148 case "$host_os" in
14149 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14150 *) am_cv_func_iconv_works="guessing yes" ;;
14151 esac
14152 else
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14156 #include <iconv.h>
14157 #include <string.h>
14159 #ifndef ICONV_CONST
14160 # define ICONV_CONST $ac_iconv_const
14161 #endif
14164 main ()
14166 int result = 0;
14167 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14168 successful returns. This is even documented in
14169 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14171 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14172 if (cd_utf8_to_88591 != (iconv_t)(-1))
14174 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14175 char buf[10];
14176 ICONV_CONST char *inptr = input;
14177 size_t inbytesleft = strlen (input);
14178 char *outptr = buf;
14179 size_t outbytesleft = sizeof (buf);
14180 size_t res = iconv (cd_utf8_to_88591,
14181 &inptr, &inbytesleft,
14182 &outptr, &outbytesleft);
14183 if (res == 0)
14184 result |= 1;
14185 iconv_close (cd_utf8_to_88591);
14188 /* Test against Solaris 10 bug: Failures are not distinguishable from
14189 successful returns. */
14191 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14192 if (cd_ascii_to_88591 != (iconv_t)(-1))
14194 static ICONV_CONST char input[] = "\263";
14195 char buf[10];
14196 ICONV_CONST char *inptr = input;
14197 size_t inbytesleft = strlen (input);
14198 char *outptr = buf;
14199 size_t outbytesleft = sizeof (buf);
14200 size_t res = iconv (cd_ascii_to_88591,
14201 &inptr, &inbytesleft,
14202 &outptr, &outbytesleft);
14203 if (res == 0)
14204 result |= 2;
14205 iconv_close (cd_ascii_to_88591);
14208 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14210 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14211 if (cd_88591_to_utf8 != (iconv_t)(-1))
14213 static ICONV_CONST char input[] = "\304";
14214 static char buf[2] = { (char)0xDE, (char)0xAD };
14215 ICONV_CONST char *inptr = input;
14216 size_t inbytesleft = 1;
14217 char *outptr = buf;
14218 size_t outbytesleft = 1;
14219 size_t res = iconv (cd_88591_to_utf8,
14220 &inptr, &inbytesleft,
14221 &outptr, &outbytesleft);
14222 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14223 result |= 4;
14224 iconv_close (cd_88591_to_utf8);
14227 #if 0 /* This bug could be worked around by the caller. */
14228 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14230 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14231 if (cd_88591_to_utf8 != (iconv_t)(-1))
14233 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14234 char buf[50];
14235 ICONV_CONST char *inptr = input;
14236 size_t inbytesleft = strlen (input);
14237 char *outptr = buf;
14238 size_t outbytesleft = sizeof (buf);
14239 size_t res = iconv (cd_88591_to_utf8,
14240 &inptr, &inbytesleft,
14241 &outptr, &outbytesleft);
14242 if ((int)res > 0)
14243 result |= 8;
14244 iconv_close (cd_88591_to_utf8);
14247 #endif
14248 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14249 provided. */
14251 /* Try standardized names. */
14252 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14253 /* Try IRIX, OSF/1 names. */
14254 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14255 /* Try AIX names. */
14256 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14257 /* Try HP-UX names. */
14258 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14259 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14260 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14261 result |= 16;
14262 if (cd1 != (iconv_t)(-1))
14263 iconv_close (cd1);
14264 if (cd2 != (iconv_t)(-1))
14265 iconv_close (cd2);
14266 if (cd3 != (iconv_t)(-1))
14267 iconv_close (cd3);
14268 if (cd4 != (iconv_t)(-1))
14269 iconv_close (cd4);
14271 return result;
14274 return 0;
14276 _ACEOF
14277 if ac_fn_cxx_try_run "$LINENO"; then :
14278 am_cv_func_iconv_works=yes
14280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14281 conftest.$ac_objext conftest.beam conftest.$ac_ext
14284 test "$am_cv_func_iconv_works" = no || break
14285 done
14286 LIBS="$am_save_LIBS"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14290 $as_echo "$am_cv_func_iconv_works" >&6; }
14291 case "$am_cv_func_iconv_works" in
14292 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14293 *) am_func_iconv=yes ;;
14294 esac
14295 else
14296 am_func_iconv=no am_cv_lib_iconv=no
14298 if test "$am_func_iconv" = yes; then
14300 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14303 if test "$am_cv_lib_iconv" = yes; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14305 $as_echo_n "checking how to link with libiconv... " >&6; }
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14307 $as_echo "$LIBICONV" >&6; }
14308 else
14309 CPPFLAGS="$am_save_CPPFLAGS"
14310 LIBICONV=
14311 LTLIBICONV=
14319 use_additional=yes
14321 acl_save_prefix="$prefix"
14322 prefix="$acl_final_prefix"
14323 acl_save_exec_prefix="$exec_prefix"
14324 exec_prefix="$acl_final_exec_prefix"
14326 eval additional_includedir=\"$includedir\"
14327 eval additional_libdir=\"$libdir\"
14329 exec_prefix="$acl_save_exec_prefix"
14330 prefix="$acl_save_prefix"
14333 # Check whether --with-libintl-prefix was given.
14334 if test "${with_libintl_prefix+set}" = set; then :
14335 withval=$with_libintl_prefix;
14336 if test "X$withval" = "Xno"; then
14337 use_additional=no
14338 else
14339 if test "X$withval" = "X"; then
14341 acl_save_prefix="$prefix"
14342 prefix="$acl_final_prefix"
14343 acl_save_exec_prefix="$exec_prefix"
14344 exec_prefix="$acl_final_exec_prefix"
14346 eval additional_includedir=\"$includedir\"
14347 eval additional_libdir=\"$libdir\"
14349 exec_prefix="$acl_save_exec_prefix"
14350 prefix="$acl_save_prefix"
14352 else
14353 additional_includedir="$withval/include"
14354 additional_libdir="$withval/lib"
14361 # Check whether --with-libintl-type was given.
14362 if test "${with_libintl_type+set}" = set; then :
14363 withval=$with_libintl_type; with_libintl_type=$withval
14364 else
14365 with_libintl_type=auto
14368 lib_type=`eval echo \$with_libintl_type`
14370 LIBINTL=
14371 LTLIBINTL=
14372 INCINTL=
14373 rpathdirs=
14374 ltrpathdirs=
14375 names_already_handled=
14376 names_next_round='intl '
14377 while test -n "$names_next_round"; do
14378 names_this_round="$names_next_round"
14379 names_next_round=
14380 for name in $names_this_round; do
14381 already_handled=
14382 for n in $names_already_handled; do
14383 if test "$n" = "$name"; then
14384 already_handled=yes
14385 break
14387 done
14388 if test -z "$already_handled"; then
14389 names_already_handled="$names_already_handled $name"
14390 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14391 eval value=\"\$HAVE_LIB$uppername\"
14392 if test -n "$value"; then
14393 if test "$value" = yes; then
14394 eval value=\"\$LIB$uppername\"
14395 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14396 eval value=\"\$LTLIB$uppername\"
14397 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14398 else
14401 else
14402 found_dir=
14403 found_la=
14404 found_so=
14405 found_a=
14406 if test $use_additional = yes; then
14407 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14408 found_dir="$additional_libdir"
14409 found_so="$additional_libdir/lib$name.$shlibext"
14410 if test -f "$additional_libdir/lib$name.la"; then
14411 found_la="$additional_libdir/lib$name.la"
14413 elif test x$lib_type != xshared; then
14414 if test -f "$additional_libdir/lib$name.$libext"; then
14415 found_dir="$additional_libdir"
14416 found_a="$additional_libdir/lib$name.$libext"
14417 if test -f "$additional_libdir/lib$name.la"; then
14418 found_la="$additional_libdir/lib$name.la"
14423 if test "X$found_dir" = "X"; then
14424 for x in $LDFLAGS $LTLIBINTL; do
14426 acl_save_prefix="$prefix"
14427 prefix="$acl_final_prefix"
14428 acl_save_exec_prefix="$exec_prefix"
14429 exec_prefix="$acl_final_exec_prefix"
14430 eval x=\"$x\"
14431 exec_prefix="$acl_save_exec_prefix"
14432 prefix="$acl_save_prefix"
14434 case "$x" in
14435 -L*)
14436 dir=`echo "X$x" | sed -e 's/^X-L//'`
14437 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14438 found_dir="$dir"
14439 found_so="$dir/lib$name.$shlibext"
14440 if test -f "$dir/lib$name.la"; then
14441 found_la="$dir/lib$name.la"
14443 elif test x$lib_type != xshared; then
14444 if test -f "$dir/lib$name.$libext"; then
14445 found_dir="$dir"
14446 found_a="$dir/lib$name.$libext"
14447 if test -f "$dir/lib$name.la"; then
14448 found_la="$dir/lib$name.la"
14453 esac
14454 if test "X$found_dir" != "X"; then
14455 break
14457 done
14459 if test "X$found_dir" != "X"; then
14460 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14461 if test "X$found_so" != "X"; then
14462 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14464 else
14465 haveit=
14466 for x in $ltrpathdirs; do
14467 if test "X$x" = "X$found_dir"; then
14468 haveit=yes
14469 break
14471 done
14472 if test -z "$haveit"; then
14473 ltrpathdirs="$ltrpathdirs $found_dir"
14475 if test "$hardcode_direct" = yes; then
14476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14477 else
14478 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14479 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14480 haveit=
14481 for x in $rpathdirs; do
14482 if test "X$x" = "X$found_dir"; then
14483 haveit=yes
14484 break
14486 done
14487 if test -z "$haveit"; then
14488 rpathdirs="$rpathdirs $found_dir"
14490 else
14491 haveit=
14492 for x in $LDFLAGS $LIBINTL; do
14494 acl_save_prefix="$prefix"
14495 prefix="$acl_final_prefix"
14496 acl_save_exec_prefix="$exec_prefix"
14497 exec_prefix="$acl_final_exec_prefix"
14498 eval x=\"$x\"
14499 exec_prefix="$acl_save_exec_prefix"
14500 prefix="$acl_save_prefix"
14502 if test "X$x" = "X-L$found_dir"; then
14503 haveit=yes
14504 break
14506 done
14507 if test -z "$haveit"; then
14508 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14510 if test "$hardcode_minus_L" != no; then
14511 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14512 else
14513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14518 else
14519 if test "X$found_a" != "X"; then
14520 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14521 else
14522 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14525 additional_includedir=
14526 case "$found_dir" in
14527 */lib | */lib/)
14528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14529 additional_includedir="$basedir/include"
14531 esac
14532 if test "X$additional_includedir" != "X"; then
14533 if test "X$additional_includedir" != "X/usr/include"; then
14534 haveit=
14535 if test "X$additional_includedir" = "X/usr/local/include"; then
14536 if test -n "$GCC"; then
14537 case $host_os in
14538 linux*) haveit=yes;;
14539 esac
14542 if test -z "$haveit"; then
14543 for x in $CPPFLAGS $INCINTL; do
14545 acl_save_prefix="$prefix"
14546 prefix="$acl_final_prefix"
14547 acl_save_exec_prefix="$exec_prefix"
14548 exec_prefix="$acl_final_exec_prefix"
14549 eval x=\"$x\"
14550 exec_prefix="$acl_save_exec_prefix"
14551 prefix="$acl_save_prefix"
14553 if test "X$x" = "X-I$additional_includedir"; then
14554 haveit=yes
14555 break
14557 done
14558 if test -z "$haveit"; then
14559 if test -d "$additional_includedir"; then
14560 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14566 if test -n "$found_la"; then
14567 save_libdir="$libdir"
14568 case "$found_la" in
14569 */* | *\\*) . "$found_la" ;;
14570 *) . "./$found_la" ;;
14571 esac
14572 libdir="$save_libdir"
14573 for dep in $dependency_libs; do
14574 case "$dep" in
14575 -L*)
14576 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14577 if test "X$additional_libdir" != "X/usr/lib"; then
14578 haveit=
14579 if test "X$additional_libdir" = "X/usr/local/lib"; then
14580 if test -n "$GCC"; then
14581 case $host_os in
14582 linux*) haveit=yes;;
14583 esac
14586 if test -z "$haveit"; then
14587 haveit=
14588 for x in $LDFLAGS $LIBINTL; do
14590 acl_save_prefix="$prefix"
14591 prefix="$acl_final_prefix"
14592 acl_save_exec_prefix="$exec_prefix"
14593 exec_prefix="$acl_final_exec_prefix"
14594 eval x=\"$x\"
14595 exec_prefix="$acl_save_exec_prefix"
14596 prefix="$acl_save_prefix"
14598 if test "X$x" = "X-L$additional_libdir"; then
14599 haveit=yes
14600 break
14602 done
14603 if test -z "$haveit"; then
14604 if test -d "$additional_libdir"; then
14605 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14608 haveit=
14609 for x in $LDFLAGS $LTLIBINTL; do
14611 acl_save_prefix="$prefix"
14612 prefix="$acl_final_prefix"
14613 acl_save_exec_prefix="$exec_prefix"
14614 exec_prefix="$acl_final_exec_prefix"
14615 eval x=\"$x\"
14616 exec_prefix="$acl_save_exec_prefix"
14617 prefix="$acl_save_prefix"
14619 if test "X$x" = "X-L$additional_libdir"; then
14620 haveit=yes
14621 break
14623 done
14624 if test -z "$haveit"; then
14625 if test -d "$additional_libdir"; then
14626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14632 -R*)
14633 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14634 if test "$enable_rpath" != no; then
14635 haveit=
14636 for x in $rpathdirs; do
14637 if test "X$x" = "X$dir"; then
14638 haveit=yes
14639 break
14641 done
14642 if test -z "$haveit"; then
14643 rpathdirs="$rpathdirs $dir"
14645 haveit=
14646 for x in $ltrpathdirs; do
14647 if test "X$x" = "X$dir"; then
14648 haveit=yes
14649 break
14651 done
14652 if test -z "$haveit"; then
14653 ltrpathdirs="$ltrpathdirs $dir"
14657 -l*)
14658 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14660 *.la)
14661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14664 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14665 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14667 esac
14668 done
14670 else
14671 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14672 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14674 else
14675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14676 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14681 done
14682 done
14683 if test "X$rpathdirs" != "X"; then
14684 if test -n "$hardcode_libdir_separator"; then
14685 alldirs=
14686 for found_dir in $rpathdirs; do
14687 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14688 done
14689 acl_save_libdir="$libdir"
14690 libdir="$alldirs"
14691 eval flag=\"$hardcode_libdir_flag_spec\"
14692 libdir="$acl_save_libdir"
14693 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14694 else
14695 for found_dir in $rpathdirs; do
14696 acl_save_libdir="$libdir"
14697 libdir="$found_dir"
14698 eval flag=\"$hardcode_libdir_flag_spec\"
14699 libdir="$acl_save_libdir"
14700 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14701 done
14704 if test "X$ltrpathdirs" != "X"; then
14705 for found_dir in $ltrpathdirs; do
14706 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14707 done
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14711 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14712 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 gt_save_CPPFLAGS="$CPPFLAGS"
14716 CPPFLAGS="$CPPFLAGS $INCINTL"
14717 gt_save_LIBS="$LIBS"
14718 LIBS="$LIBS $LIBINTL"
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 #include <libintl.h>
14723 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14724 extern int _nl_msg_cat_cntr;
14725 extern
14726 #ifdef __cplusplus
14728 #endif
14729 const char *_nl_expand_alias (const char *);
14730 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14731 #else
14732 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14733 #endif
14734 $gt_revision_test_code
14737 main ()
14740 bindtextdomain ("", "");
14741 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14744 return 0;
14746 _ACEOF
14747 if ac_fn_cxx_try_link "$LINENO"; then :
14748 eval "$gt_func_gnugettext_libintl=yes"
14749 else
14750 eval "$gt_func_gnugettext_libintl=no"
14752 rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14754 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14755 LIBS="$LIBS $LIBICONV"
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14759 #include <libintl.h>
14760 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14761 extern int _nl_msg_cat_cntr;
14762 extern
14763 #ifdef __cplusplus
14765 #endif
14766 const char *_nl_expand_alias (const char *);
14767 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14768 #else
14769 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14770 #endif
14771 $gt_revision_test_code
14774 main ()
14777 bindtextdomain ("", "");
14778 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14781 return 0;
14783 _ACEOF
14784 if ac_fn_cxx_try_link "$LINENO"; then :
14785 LIBINTL="$LIBINTL $LIBICONV"
14786 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14787 eval "$gt_func_gnugettext_libintl=yes"
14790 rm -f core conftest.err conftest.$ac_objext \
14791 conftest$ac_exeext conftest.$ac_ext
14793 CPPFLAGS="$gt_save_CPPFLAGS"
14794 LIBS="$gt_save_LIBS"
14796 eval ac_res=\$$gt_func_gnugettext_libintl
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14798 $as_echo "$ac_res" >&6; }
14801 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14802 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14803 && test "$PACKAGE" != gettext-runtime \
14804 && test "$PACKAGE" != gettext-tools; }; then
14805 gt_use_preinstalled_gnugettext=yes
14806 else
14807 LIBINTL=
14808 LTLIBINTL=
14809 INCINTL=
14814 if test -n "$INTL_MACOSX_LIBS"; then
14815 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14816 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14817 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14818 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14822 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14823 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14825 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14827 else
14828 USE_NLS=no
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14833 $as_echo_n "checking whether to use NLS... " >&6; }
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14835 $as_echo "$USE_NLS" >&6; }
14836 if test "$USE_NLS" = "yes"; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14838 $as_echo_n "checking where the gettext function comes from... " >&6; }
14839 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14840 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14841 gt_source="external libintl"
14842 else
14843 gt_source="libc"
14845 else
14846 gt_source="included intl directory"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14849 $as_echo "$gt_source" >&6; }
14852 if test "$USE_NLS" = "yes"; then
14854 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14855 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14857 $as_echo_n "checking how to link with libintl... " >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14859 $as_echo "$LIBINTL" >&6; }
14861 for element in $INCINTL; do
14862 haveit=
14863 for x in $CPPFLAGS; do
14865 acl_save_prefix="$prefix"
14866 prefix="$acl_final_prefix"
14867 acl_save_exec_prefix="$exec_prefix"
14868 exec_prefix="$acl_final_exec_prefix"
14869 eval x=\"$x\"
14870 exec_prefix="$acl_save_exec_prefix"
14871 prefix="$acl_save_prefix"
14873 if test "X$x" = "X$element"; then
14874 haveit=yes
14875 break
14877 done
14878 if test -z "$haveit"; then
14879 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14881 done
14886 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14889 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14893 POSUB=po
14898 INTLLIBS="$LIBINTL"
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14918 $as_echo_n "checking whether NLS is requested... " >&6; }
14919 if test x"$USE_NLS" != xyes; then
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924 $as_echo "yes" >&6; }
14926 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14930 $as_echo_n "checking for catalogs to be installed... " >&6; }
14931 # Look for .po and .gmo files in the source directory.
14932 CATALOGS=
14933 XLINGUAS=
14934 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14935 # If there aren't any .gmo files the shell will give us the
14936 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14937 # weeded out.
14938 case "$cat" in *\**)
14939 continue;;
14940 esac
14941 # The quadruple backslash is collapsed to a double backslash
14942 # by the backticks, then collapsed again by the double quotes,
14943 # leaving us with one backslash in the sed expression (right
14944 # before the dot that mustn't act as a wildcard).
14945 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14946 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14947 # The user is allowed to set LINGUAS to a list of languages to
14948 # install catalogs for. If it's empty that means "all of them."
14949 if test "x$LINGUAS" = x; then
14950 CATALOGS="$CATALOGS $cat"
14951 XLINGUAS="$XLINGUAS $lang"
14952 else
14953 case "$LINGUAS" in *$lang*)
14954 CATALOGS="$CATALOGS $cat"
14955 XLINGUAS="$XLINGUAS $lang"
14957 esac
14959 done
14960 LINGUAS="$XLINGUAS"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14962 $as_echo "$LINGUAS" >&6; }
14965 DATADIRNAME=share
14967 INSTOBJEXT=.mo
14969 GENCAT=gencat
14971 CATOBJEXT=.gmo
14975 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14976 # -liconv on the link line twice.
14977 case "$LIBINTL" in *$LIBICONV*)
14978 LIBICONV= ;;
14979 esac
14981 # Check whether --enable-secureplt was given.
14982 if test "${enable_secureplt+set}" = set; then :
14983 enableval=$enable_secureplt;
14987 # Check whether --enable-mingw-wildcard was given.
14988 if test "${enable_mingw_wildcard+set}" = set; then :
14989 enableval=$enable_mingw_wildcard;
14990 else
14991 enable_mingw_wildcard=platform
14994 if test x"$enable_mingw_wildcard" != xplatform ; then :
14996 cat >>confdefs.h <<_ACEOF
14997 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14998 _ACEOF
15002 # Check whether --enable-large-address-aware was given.
15003 if test "${enable_large_address_aware+set}" = set; then :
15004 enableval=$enable_large_address_aware;
15007 if test x"$enable_large_address_aware" = xyes; then :
15009 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
15013 # Check whether --enable-leading-mingw64-underscores was given.
15014 if test "${enable_leading_mingw64_underscores+set}" = set; then :
15015 enableval=$enable_leading_mingw64_underscores;
15018 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
15020 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
15024 # Check whether --enable-cld was given.
15025 if test "${enable_cld+set}" = set; then :
15026 enableval=$enable_cld;
15027 else
15028 enable_cld=no
15032 # Check whether --enable-frame-pointer was given.
15033 if test "${enable_frame_pointer+set}" = set; then :
15034 enableval=$enable_frame_pointer;
15035 else
15037 case $target_os in
15038 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
15039 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15040 enable_frame_pointer=no
15043 enable_frame_pointer=yes
15045 esac
15050 case $target in
15051 i[34567]86-*-* | x86_64-*-*)
15052 if test "x$enable_cld" = xyes; then
15053 tm_defines="${tm_defines} USE_IX86_CLD=1"
15055 if test "x$enable_frame_pointer" = xyes; then
15056 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
15059 esac
15061 # Windows32 Registry support for specifying GCC installation paths.
15062 # Check whether --enable-win32-registry was given.
15063 if test "${enable_win32_registry+set}" = set; then :
15064 enableval=$enable_win32_registry;
15068 case $host_os in
15069 win32 | pe | cygwin* | mingw32*)
15070 if test "x$enable_win32_registry" != xno; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15072 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15073 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15074 $as_echo_n "(cached) " >&6
15075 else
15076 ac_func_search_save_LIBS=$LIBS
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 char RegOpenKeyExA ();
15088 main ()
15090 return RegOpenKeyExA ();
15092 return 0;
15094 _ACEOF
15095 for ac_lib in '' advapi32; do
15096 if test -z "$ac_lib"; then
15097 ac_res="none required"
15098 else
15099 ac_res=-l$ac_lib
15100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15102 if ac_fn_cxx_try_link "$LINENO"; then :
15103 ac_cv_search_RegOpenKeyExA=$ac_res
15105 rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext
15107 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15108 break
15110 done
15111 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15113 else
15114 ac_cv_search_RegOpenKeyExA=no
15116 rm conftest.$ac_ext
15117 LIBS=$ac_func_search_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15120 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15121 ac_res=$ac_cv_search_RegOpenKeyExA
15122 if test "$ac_res" != no; then :
15123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15125 else
15126 enable_win32_registry=no
15131 if test "x$enable_win32_registry" != xno; then
15133 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15136 if test "x$enable_win32_registry" != xyes \
15137 && test "x$enable_win32_registry" != x; then
15139 cat >>confdefs.h <<_ACEOF
15140 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15141 _ACEOF
15146 esac
15148 # Get an absolute path to the GCC top-level source directory
15149 holddir=`${PWDCMD-pwd}`
15150 cd $srcdir
15151 topdir=`${PWDCMD-pwd}`
15152 cd $holddir
15154 # Conditionalize the makefile for this host machine.
15155 xmake_file=
15156 for f in ${host_xmake_file}
15158 if test -f ${srcdir}/config/$f
15159 then
15160 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15162 done
15164 # Conditionalize the makefile for this target machine.
15165 tmake_file_=
15166 for f in ${tmake_file}
15168 if test -f ${srcdir}/config/$f
15169 then
15170 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15172 done
15173 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15175 out_object_file=`basename $out_file .cc`.o
15176 common_out_object_file=`basename $common_out_file .cc`.o
15178 tm_file_list="options.h"
15179 tm_include_list="options.h insn-constants.h"
15180 for f in $tm_file; do
15181 case $f in
15182 ./* )
15183 f=`echo $f | sed 's/^..//'`
15184 tm_file_list="${tm_file_list} $f"
15185 tm_include_list="${tm_include_list} $f"
15187 defaults.h )
15188 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15189 tm_include_list="${tm_include_list} $f"
15192 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15193 tm_include_list="${tm_include_list} config/$f"
15195 esac
15196 done
15198 tm_p_file_list=
15199 tm_p_include_list=
15200 for f in $tm_p_file; do
15201 case $f in
15202 tm-preds.h )
15203 tm_p_file_list="${tm_p_file_list} $f"
15204 tm_p_include_list="${tm_p_include_list} $f"
15207 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15208 tm_p_include_list="${tm_p_include_list} config/$f"
15209 esac
15210 done
15212 tm_d_file_list=
15213 tm_d_include_list=
15214 for f in $tm_d_file; do
15215 case $f in
15217 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15218 tm_d_include_list="${tm_d_include_list} config/$f"
15220 esac
15221 done
15223 tm_rust_file_list=
15224 tm_rust_include_list=
15225 for f in $tm_rust_file; do
15226 case $f in
15228 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15229 tm_rust_include_list="${tm_rust_include_list} config/$f"
15231 esac
15232 done
15234 xm_file_list=
15235 xm_include_list=
15236 for f in $xm_file; do
15237 case $f in
15238 ansidecl.h )
15239 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15240 xm_include_list="${xm_include_list} $f"
15242 auto-host.h )
15243 xm_file_list="${xm_file_list} $f"
15244 xm_include_list="${xm_include_list} $f"
15247 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15248 xm_include_list="${xm_include_list} config/$f"
15250 esac
15251 done
15253 host_xm_file_list=
15254 host_xm_include_list=
15255 for f in $host_xm_file; do
15256 case $f in
15257 ansidecl.h )
15258 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15259 host_xm_include_list="${host_xm_include_list} $f"
15261 auto-host.h )
15262 host_xm_file_list="${host_xm_file_list} $f"
15263 host_xm_include_list="${host_xm_include_list} $f"
15266 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15267 host_xm_include_list="${host_xm_include_list} config/$f"
15269 esac
15270 done
15272 build_xm_file_list=
15273 for f in $build_xm_file; do
15274 case $f in
15275 ansidecl.h )
15276 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15277 build_xm_include_list="${build_xm_include_list} $f"
15279 auto-build.h | auto-host.h )
15280 build_xm_file_list="${build_xm_file_list} $f"
15281 build_xm_include_list="${build_xm_include_list} $f"
15284 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15285 build_xm_include_list="${build_xm_include_list} config/$f"
15287 esac
15288 done
15290 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15291 # cross-compiler which does not use the native headers and libraries.
15292 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15293 CROSS=
15294 ALL=all.internal
15295 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15296 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15298 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15299 test x$build != x$host || test "x$with_build_sysroot" != x; then
15300 if test "x$with_build_sysroot" != x; then
15301 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15302 else
15303 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15306 if test x$host != x$target
15307 then
15308 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15309 ALL=all.cross
15310 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15311 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15312 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15315 if test "x$with_build_sysroot" != "x"; then
15316 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15317 elif test "x$with_sysroot" = x; then
15318 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15319 elif test "x$with_sysroot" = xyes; then
15320 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15321 else
15322 target_header_dir="${with_sysroot}${native_system_header_dir}"
15324 else
15325 target_header_dir=${native_system_header_dir}
15328 # If this is a cross-compiler that does not
15329 # have its own set of headers then define
15330 # inhibit_libc
15332 # If this is using newlib, without having the headers available now,
15333 # then define inhibit_libc in LIBGCC2_CFLAGS.
15334 # This prevents libgcc2 from containing any code which requires libc
15335 # support.
15336 : ${inhibit_libc=false}
15337 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15338 test x$with_newlib = xyes ; } &&
15339 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15340 inhibit_libc=true
15344 # When building gcc with a cross-compiler, we need to adjust things so
15345 # that the generator programs are still built with the native compiler.
15346 # Also, we cannot run fixincludes.
15348 # These are the normal (build=host) settings:
15349 CC_FOR_BUILD='$(CC)'
15350 CXX_FOR_BUILD='$(CXX)'
15351 BUILD_CFLAGS='$(ALL_CFLAGS)'
15352 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15353 BUILD_LDFLAGS='$(LDFLAGS)'
15354 STMP_FIXINC=stmp-fixinc
15356 # And these apply if build != host, or we are generating coverage data
15357 if test x$build != x$host || test "x$coverage_flags" != x
15358 then
15359 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15360 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15361 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15365 if test x$enable_fixincludes = xno;
15366 then
15367 STMP_FIXINC=''
15370 # Expand extra_headers to include complete path.
15371 # This substitutes for lots of t-* files.
15372 extra_headers_list=
15373 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15374 for file in ${extra_headers} ; do
15375 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15376 done
15378 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15379 if test x"$use_gcc_tgmath" = xyes
15380 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15383 # Define collect2 in Makefile.
15384 case $host_can_use_collect2 in
15385 no) collect2= ;;
15386 *) collect2='collect2$(exeext)' ;;
15387 esac
15390 # Add a definition of USE_COLLECT2 if system wants one.
15391 case $use_collect2 in
15392 no) use_collect2= ;;
15393 "") ;;
15395 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15396 xm_defines="${xm_defines} USE_COLLECT2"
15397 case $host_can_use_collect2 in
15399 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15401 esac
15403 esac
15406 cat >>confdefs.h <<_ACEOF
15407 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15408 _ACEOF
15411 # ---------------------------
15412 # Assembler & linker features
15413 # ---------------------------
15415 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15416 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15417 # However when ld-new is first executed from the build tree, libtool will
15418 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15419 # to the build tree. While doing this we need to use the previous-stage
15420 # linker, or we have an infinite loop. The presence of a shell script as
15421 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15422 # the gcc/collect-ld script. So we need to know how libtool works, or
15423 # exec-tool will fail.
15426 case `pwd` in
15427 *\ * | *\ *)
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15429 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15430 esac
15434 macro_version='2.2.7a'
15435 macro_revision='1.3134'
15449 ltmain="$ac_aux_dir/ltmain.sh"
15451 # Backslashify metacharacters that are still active within
15452 # double-quoted strings.
15453 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15455 # Same as above, but do not quote variable references.
15456 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15458 # Sed substitution to delay expansion of an escaped shell variable in a
15459 # double_quote_subst'ed string.
15460 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15462 # Sed substitution to delay expansion of an escaped single quote.
15463 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15465 # Sed substitution to avoid accidental globbing in evaled expressions
15466 no_glob_subst='s/\*/\\\*/g'
15468 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15469 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15470 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15473 $as_echo_n "checking how to print strings... " >&6; }
15474 # Test print first, because it will be a builtin if present.
15475 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15476 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15477 ECHO='print -r --'
15478 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15479 ECHO='printf %s\n'
15480 else
15481 # Use this function as a fallback that always works.
15482 func_fallback_echo ()
15484 eval 'cat <<_LTECHO_EOF
15486 _LTECHO_EOF'
15488 ECHO='func_fallback_echo'
15491 # func_echo_all arg...
15492 # Invoke $ECHO with all args, space-separated.
15493 func_echo_all ()
15495 $ECHO ""
15498 case "$ECHO" in
15499 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15500 $as_echo "printf" >&6; } ;;
15501 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15502 $as_echo "print -r" >&6; } ;;
15503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15504 $as_echo "cat" >&6; } ;;
15505 esac
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15521 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15522 if ${ac_cv_path_SED+:} false; then :
15523 $as_echo_n "(cached) " >&6
15524 else
15525 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15526 for ac_i in 1 2 3 4 5 6 7; do
15527 ac_script="$ac_script$as_nl$ac_script"
15528 done
15529 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15530 { ac_script=; unset ac_script;}
15531 if test -z "$SED"; then
15532 ac_path_SED_found=false
15533 # Loop through the user's path and test for each of PROGNAME-LIST
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15537 IFS=$as_save_IFS
15538 test -z "$as_dir" && as_dir=.
15539 for ac_prog in sed gsed; do
15540 for ac_exec_ext in '' $ac_executable_extensions; do
15541 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15542 as_fn_executable_p "$ac_path_SED" || continue
15543 # Check for GNU ac_path_SED and select it if it is found.
15544 # Check for GNU $ac_path_SED
15545 case `"$ac_path_SED" --version 2>&1` in
15546 *GNU*)
15547 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15549 ac_count=0
15550 $as_echo_n 0123456789 >"conftest.in"
15551 while :
15553 cat "conftest.in" "conftest.in" >"conftest.tmp"
15554 mv "conftest.tmp" "conftest.in"
15555 cp "conftest.in" "conftest.nl"
15556 $as_echo '' >> "conftest.nl"
15557 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15559 as_fn_arith $ac_count + 1 && ac_count=$as_val
15560 if test $ac_count -gt ${ac_path_SED_max-0}; then
15561 # Best one so far, save it but keep looking for a better one
15562 ac_cv_path_SED="$ac_path_SED"
15563 ac_path_SED_max=$ac_count
15565 # 10*(2^10) chars as input seems more than enough
15566 test $ac_count -gt 10 && break
15567 done
15568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15569 esac
15571 $ac_path_SED_found && break 3
15572 done
15573 done
15574 done
15575 IFS=$as_save_IFS
15576 if test -z "$ac_cv_path_SED"; then
15577 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15579 else
15580 ac_cv_path_SED=$SED
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15585 $as_echo "$ac_cv_path_SED" >&6; }
15586 SED="$ac_cv_path_SED"
15587 rm -f conftest.sed
15589 test -z "$SED" && SED=sed
15590 Xsed="$SED -e 1s/^X//"
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15603 $as_echo_n "checking for fgrep... " >&6; }
15604 if ${ac_cv_path_FGREP+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15608 then ac_cv_path_FGREP="$GREP -F"
15609 else
15610 if test -z "$FGREP"; then
15611 ac_path_FGREP_found=false
15612 # Loop through the user's path and test for each of PROGNAME-LIST
15613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15614 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15616 IFS=$as_save_IFS
15617 test -z "$as_dir" && as_dir=.
15618 for ac_prog in fgrep; do
15619 for ac_exec_ext in '' $ac_executable_extensions; do
15620 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15621 as_fn_executable_p "$ac_path_FGREP" || continue
15622 # Check for GNU ac_path_FGREP and select it if it is found.
15623 # Check for GNU $ac_path_FGREP
15624 case `"$ac_path_FGREP" --version 2>&1` in
15625 *GNU*)
15626 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15628 ac_count=0
15629 $as_echo_n 0123456789 >"conftest.in"
15630 while :
15632 cat "conftest.in" "conftest.in" >"conftest.tmp"
15633 mv "conftest.tmp" "conftest.in"
15634 cp "conftest.in" "conftest.nl"
15635 $as_echo 'FGREP' >> "conftest.nl"
15636 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15638 as_fn_arith $ac_count + 1 && ac_count=$as_val
15639 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15640 # Best one so far, save it but keep looking for a better one
15641 ac_cv_path_FGREP="$ac_path_FGREP"
15642 ac_path_FGREP_max=$ac_count
15644 # 10*(2^10) chars as input seems more than enough
15645 test $ac_count -gt 10 && break
15646 done
15647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15648 esac
15650 $ac_path_FGREP_found && break 3
15651 done
15652 done
15653 done
15654 IFS=$as_save_IFS
15655 if test -z "$ac_cv_path_FGREP"; then
15656 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15658 else
15659 ac_cv_path_FGREP=$FGREP
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15665 $as_echo "$ac_cv_path_FGREP" >&6; }
15666 FGREP="$ac_cv_path_FGREP"
15669 test -z "$GREP" && GREP=grep
15689 # Check whether --with-gnu-ld was given.
15690 if test "${with_gnu_ld+set}" = set; then :
15691 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15692 else
15693 with_gnu_ld=no
15696 ac_prog=ld
15697 if test "$GCC" = yes; then
15698 # Check if gcc -print-prog-name=ld gives a path.
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15700 $as_echo_n "checking for ld used by $CC... " >&6; }
15701 case $host in
15702 *-*-mingw*)
15703 # gcc leaves a trailing carriage return which upsets mingw
15704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15707 esac
15708 case $ac_prog in
15709 # Accept absolute paths.
15710 [\\/]* | ?:[\\/]*)
15711 re_direlt='/[^/][^/]*/\.\./'
15712 # Canonicalize the pathname of ld
15713 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15714 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15715 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15716 done
15717 test -z "$LD" && LD="$ac_prog"
15720 # If it fails, then pretend we aren't using GCC.
15721 ac_prog=ld
15724 # If it is relative, then search for the first ld in PATH.
15725 with_gnu_ld=unknown
15727 esac
15728 elif test "$with_gnu_ld" = yes; then
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15730 $as_echo_n "checking for GNU ld... " >&6; }
15731 else
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15733 $as_echo_n "checking for non-GNU ld... " >&6; }
15735 if ${lt_cv_path_LD+:} false; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738 if test -z "$LD"; then
15739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15740 for ac_dir in $PATH; do
15741 IFS="$lt_save_ifs"
15742 test -z "$ac_dir" && ac_dir=.
15743 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15744 lt_cv_path_LD="$ac_dir/$ac_prog"
15745 # Check to see if the program is GNU ld. I'd rather use --version,
15746 # but apparently some variants of GNU ld only accept -v.
15747 # Break only if it was the GNU/non-GNU ld that we prefer.
15748 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15749 *GNU* | *'with BFD'*)
15750 test "$with_gnu_ld" != no && break
15753 test "$with_gnu_ld" != yes && break
15755 esac
15757 done
15758 IFS="$lt_save_ifs"
15759 else
15760 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15764 LD="$lt_cv_path_LD"
15765 if test -n "$LD"; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15767 $as_echo "$LD" >&6; }
15768 else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15770 $as_echo "no" >&6; }
15772 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15774 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15775 if ${lt_cv_prog_gnu_ld+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15779 case `$LD -v 2>&1 </dev/null` in
15780 *GNU* | *'with BFD'*)
15781 lt_cv_prog_gnu_ld=yes
15784 lt_cv_prog_gnu_ld=no
15786 esac
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15789 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15790 with_gnu_ld=$lt_cv_prog_gnu_ld
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15801 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15802 if ${lt_cv_path_NM+:} false; then :
15803 $as_echo_n "(cached) " >&6
15804 else
15805 if test -n "$NM"; then
15806 # Let the user override the nm to test.
15807 lt_nm_to_check="$NM"
15808 else
15809 lt_nm_to_check="${ac_tool_prefix}nm"
15810 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15811 lt_nm_to_check="$lt_nm_to_check nm"
15814 for lt_tmp_nm in "$lt_nm_to_check"; do
15815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15816 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15817 IFS="$lt_save_ifs"
15818 test -z "$ac_dir" && ac_dir=.
15819 # Strip out any user-provided options from the nm to test twice,
15820 # the first time to test to see if nm (rather than its options) has
15821 # an explicit path, the second time to yield a file which can be
15822 # nm'ed itself.
15823 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15824 case "$tmp_nm_path" in
15825 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15826 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15827 esac
15828 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15829 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15830 # Check to see if the nm accepts a BSD-compat flag.
15831 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15832 # nm: unknown option "B" ignored
15833 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15834 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15835 break
15838 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15839 *$tmp_nm*)
15840 lt_cv_path_NM="$tmp_nm -p"
15841 break
15844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15845 continue # so that we can try to find one that supports BSD flags
15847 esac
15849 esac
15851 done
15852 IFS="$lt_save_ifs"
15853 done
15854 : ${lt_cv_path_NM=no}
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15857 $as_echo "$lt_cv_path_NM" >&6; }
15858 if test "$lt_cv_path_NM" != "no"; then
15859 NM="$lt_cv_path_NM"
15860 else
15861 # Didn't find any BSD compatible name lister, look for dumpbin.
15862 if test -n "$DUMPBIN"; then :
15863 # Let the user override the test.
15864 else
15865 if test -n "$ac_tool_prefix"; then
15866 for ac_prog in dumpbin "link -dump"
15868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871 $as_echo_n "checking for $ac_word... " >&6; }
15872 if ${ac_cv_prog_DUMPBIN+:} false; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 if test -n "$DUMPBIN"; then
15876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15877 else
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $PATH
15881 IFS=$as_save_IFS
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15887 break 2
15889 done
15890 done
15891 IFS=$as_save_IFS
15895 DUMPBIN=$ac_cv_prog_DUMPBIN
15896 if test -n "$DUMPBIN"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15898 $as_echo "$DUMPBIN" >&6; }
15899 else
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15905 test -n "$DUMPBIN" && break
15906 done
15908 if test -z "$DUMPBIN"; then
15909 ac_ct_DUMPBIN=$DUMPBIN
15910 for ac_prog in dumpbin "link -dump"
15912 # Extract the first word of "$ac_prog", so it can be a program name with args.
15913 set dummy $ac_prog; ac_word=$2
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15915 $as_echo_n "checking for $ac_word... " >&6; }
15916 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 if test -n "$ac_ct_DUMPBIN"; then
15920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15921 else
15922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15923 for as_dir in $PATH
15925 IFS=$as_save_IFS
15926 test -z "$as_dir" && as_dir=.
15927 for ac_exec_ext in '' $ac_executable_extensions; do
15928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15929 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15931 break 2
15933 done
15934 done
15935 IFS=$as_save_IFS
15939 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15940 if test -n "$ac_ct_DUMPBIN"; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15942 $as_echo "$ac_ct_DUMPBIN" >&6; }
15943 else
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15945 $as_echo "no" >&6; }
15949 test -n "$ac_ct_DUMPBIN" && break
15950 done
15952 if test "x$ac_ct_DUMPBIN" = x; then
15953 DUMPBIN=":"
15954 else
15955 case $cross_compiling:$ac_tool_warned in
15956 yes:)
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15959 ac_tool_warned=yes ;;
15960 esac
15961 DUMPBIN=$ac_ct_DUMPBIN
15965 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15966 *COFF*)
15967 DUMPBIN="$DUMPBIN -symbols"
15970 DUMPBIN=:
15972 esac
15975 if test "$DUMPBIN" != ":"; then
15976 NM="$DUMPBIN"
15979 test -z "$NM" && NM=nm
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15987 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15988 if ${lt_cv_nm_interface+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 lt_cv_nm_interface="BSD nm"
15992 echo "int some_variable = 0;" > conftest.$ac_ext
15993 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15994 (eval "$ac_compile" 2>conftest.err)
15995 cat conftest.err >&5
15996 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15997 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15998 cat conftest.err >&5
15999 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
16000 cat conftest.out >&5
16001 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
16002 lt_cv_nm_interface="MS dumpbin"
16004 rm -f conftest*
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
16007 $as_echo "$lt_cv_nm_interface" >&6; }
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16010 $as_echo_n "checking whether ln -s works... " >&6; }
16011 LN_S=$as_ln_s
16012 if test "$LN_S" = "ln -s"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16014 $as_echo "yes" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16017 $as_echo "no, using $LN_S" >&6; }
16020 # find the maximum length of command line arguments
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
16022 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
16023 if ${lt_cv_sys_max_cmd_len+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16027 teststring="ABCD"
16029 case $build_os in
16030 msdosdjgpp*)
16031 # On DJGPP, this test can blow up pretty badly due to problems in libc
16032 # (any single argument exceeding 2000 bytes causes a buffer overrun
16033 # during glob expansion). Even if it were fixed, the result of this
16034 # check would be larger than it should be.
16035 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16038 gnu*)
16039 # Under GNU Hurd, this test is not required because there is
16040 # no limit to the length of command line arguments.
16041 # Libtool will interpret -1 as no limit whatsoever
16042 lt_cv_sys_max_cmd_len=-1;
16045 cygwin* | mingw* | cegcc*)
16046 # On Win9x/ME, this test blows up -- it succeeds, but takes
16047 # about 5 minutes as the teststring grows exponentially.
16048 # Worse, since 9x/ME are not pre-emptively multitasking,
16049 # you end up with a "frozen" computer, even though with patience
16050 # the test eventually succeeds (with a max line length of 256k).
16051 # Instead, let's just punt: use the minimum linelength reported by
16052 # all of the supported platforms: 8192 (on NT/2K/XP).
16053 lt_cv_sys_max_cmd_len=8192;
16056 mint*)
16057 # On MiNT this can take a long time and run out of memory.
16058 lt_cv_sys_max_cmd_len=8192;
16061 amigaos*)
16062 # On AmigaOS with pdksh, this test takes hours, literally.
16063 # So we just punt and use a minimum line length of 8192.
16064 lt_cv_sys_max_cmd_len=8192;
16067 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16068 # This has been around since 386BSD, at least. Likely further.
16069 if test -x /sbin/sysctl; then
16070 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16071 elif test -x /usr/sbin/sysctl; then
16072 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16073 else
16074 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16076 # And add a safety zone
16077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16081 interix*)
16082 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16083 lt_cv_sys_max_cmd_len=196608
16086 osf*)
16087 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16088 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16089 # nice to cause kernel panics so lets avoid the loop below.
16090 # First set a reasonable default.
16091 lt_cv_sys_max_cmd_len=16384
16093 if test -x /sbin/sysconfig; then
16094 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16095 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16096 esac
16099 sco3.2v5*)
16100 lt_cv_sys_max_cmd_len=102400
16102 sysv5* | sco5v6* | sysv4.2uw2*)
16103 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16104 if test -n "$kargmax"; then
16105 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16106 else
16107 lt_cv_sys_max_cmd_len=32768
16111 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16112 if test -n "$lt_cv_sys_max_cmd_len"; then
16113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16115 else
16116 # Make teststring a little bigger before we do anything with it.
16117 # a 1K string should be a reasonable start.
16118 for i in 1 2 3 4 5 6 7 8 ; do
16119 teststring=$teststring$teststring
16120 done
16121 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16122 # If test is not a shell built-in, we'll probably end up computing a
16123 # maximum length that is only half of the actual maximum length, but
16124 # we can't tell.
16125 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16126 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16127 test $i != 17 # 1/2 MB should be enough
16129 i=`expr $i + 1`
16130 teststring=$teststring$teststring
16131 done
16132 # Only check the string length outside the loop.
16133 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16134 teststring=
16135 # Add a significant safety factor because C++ compilers can tack on
16136 # massive amounts of additional arguments before passing them to the
16137 # linker. It appears as though 1/2 is a usable value.
16138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16141 esac
16145 if test -n $lt_cv_sys_max_cmd_len ; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16147 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16148 else
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16150 $as_echo "none" >&6; }
16152 max_cmd_len=$lt_cv_sys_max_cmd_len
16159 : ${CP="cp -f"}
16160 : ${MV="mv -f"}
16161 : ${RM="rm -f"}
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16164 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16165 # Try some XSI features
16166 xsi_shell=no
16167 ( _lt_dummy="a/b/c"
16168 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16169 = c,a/b,, \
16170 && eval 'test $(( 1 + 1 )) -eq 2 \
16171 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16172 && xsi_shell=yes
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16174 $as_echo "$xsi_shell" >&6; }
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16178 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16179 lt_shell_append=no
16180 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16181 >/dev/null 2>&1 \
16182 && lt_shell_append=yes
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16184 $as_echo "$lt_shell_append" >&6; }
16187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16188 lt_unset=unset
16189 else
16190 lt_unset=false
16197 # test EBCDIC or ASCII
16198 case `echo X|tr X '\101'` in
16199 A) # ASCII based system
16200 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16201 lt_SP2NL='tr \040 \012'
16202 lt_NL2SP='tr \015\012 \040\040'
16204 *) # EBCDIC based system
16205 lt_SP2NL='tr \100 \n'
16206 lt_NL2SP='tr \r\n \100\100'
16208 esac
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16219 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16220 if ${lt_cv_ld_reload_flag+:} false; then :
16221 $as_echo_n "(cached) " >&6
16222 else
16223 lt_cv_ld_reload_flag='-r'
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16226 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16227 reload_flag=$lt_cv_ld_reload_flag
16228 case $reload_flag in
16229 "" | " "*) ;;
16230 *) reload_flag=" $reload_flag" ;;
16231 esac
16232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16233 case $host_os in
16234 darwin*)
16235 if test "$GCC" = yes; then
16236 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16237 else
16238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16241 esac
16251 if test -n "$ac_tool_prefix"; then
16252 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16255 $as_echo_n "checking for $ac_word... " >&6; }
16256 if ${ac_cv_prog_OBJDUMP+:} false; then :
16257 $as_echo_n "(cached) " >&6
16258 else
16259 if test -n "$OBJDUMP"; then
16260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16261 else
16262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $PATH
16265 IFS=$as_save_IFS
16266 test -z "$as_dir" && as_dir=.
16267 for ac_exec_ext in '' $ac_executable_extensions; do
16268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16269 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16271 break 2
16273 done
16274 done
16275 IFS=$as_save_IFS
16279 OBJDUMP=$ac_cv_prog_OBJDUMP
16280 if test -n "$OBJDUMP"; then
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16282 $as_echo "$OBJDUMP" >&6; }
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16285 $as_echo "no" >&6; }
16290 if test -z "$ac_cv_prog_OBJDUMP"; then
16291 ac_ct_OBJDUMP=$OBJDUMP
16292 # Extract the first word of "objdump", so it can be a program name with args.
16293 set dummy objdump; ac_word=$2
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16295 $as_echo_n "checking for $ac_word... " >&6; }
16296 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16297 $as_echo_n "(cached) " >&6
16298 else
16299 if test -n "$ac_ct_OBJDUMP"; then
16300 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16301 else
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16305 IFS=$as_save_IFS
16306 test -z "$as_dir" && as_dir=.
16307 for ac_exec_ext in '' $ac_executable_extensions; do
16308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16309 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16311 break 2
16313 done
16314 done
16315 IFS=$as_save_IFS
16319 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16320 if test -n "$ac_ct_OBJDUMP"; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16322 $as_echo "$ac_ct_OBJDUMP" >&6; }
16323 else
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16325 $as_echo "no" >&6; }
16328 if test "x$ac_ct_OBJDUMP" = x; then
16329 OBJDUMP="false"
16330 else
16331 case $cross_compiling:$ac_tool_warned in
16332 yes:)
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16335 ac_tool_warned=yes ;;
16336 esac
16337 OBJDUMP=$ac_ct_OBJDUMP
16339 else
16340 OBJDUMP="$ac_cv_prog_OBJDUMP"
16343 test -z "$OBJDUMP" && OBJDUMP=objdump
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16354 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16355 if ${lt_cv_deplibs_check_method+:} false; then :
16356 $as_echo_n "(cached) " >&6
16357 else
16358 lt_cv_file_magic_cmd='$MAGIC_CMD'
16359 lt_cv_file_magic_test_file=
16360 lt_cv_deplibs_check_method='unknown'
16361 # Need to set the preceding variable on all platforms that support
16362 # interlibrary dependencies.
16363 # 'none' -- dependencies not supported.
16364 # `unknown' -- same as none, but documents that we really don't know.
16365 # 'pass_all' -- all dependencies passed with no checks.
16366 # 'test_compile' -- check by making test program.
16367 # 'file_magic [[regex]]' -- check by looking for files in library path
16368 # which responds to the $file_magic_cmd with a given extended regex.
16369 # If you have `file' or equivalent on your system and you're not sure
16370 # whether `pass_all' will *always* work, you probably want this one.
16372 case $host_os in
16373 aix[4-9]*)
16374 lt_cv_deplibs_check_method=pass_all
16377 beos*)
16378 lt_cv_deplibs_check_method=pass_all
16381 bsdi[45]*)
16382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16383 lt_cv_file_magic_cmd='/usr/bin/file -L'
16384 lt_cv_file_magic_test_file=/shlib/libc.so
16387 cygwin*)
16388 # func_win32_libid is a shell function defined in ltmain.sh
16389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16390 lt_cv_file_magic_cmd='func_win32_libid'
16393 mingw* | pw32*)
16394 # Base MSYS/MinGW do not provide the 'file' command needed by
16395 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16396 # unless we find 'file', for example because we are cross-compiling.
16397 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16398 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16399 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16400 lt_cv_file_magic_cmd='func_win32_libid'
16401 else
16402 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16403 lt_cv_file_magic_cmd='$OBJDUMP -f'
16407 cegcc*)
16408 # use the weaker test based on 'objdump'. See mingw*.
16409 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16410 lt_cv_file_magic_cmd='$OBJDUMP -f'
16413 darwin* | rhapsody*)
16414 lt_cv_deplibs_check_method=pass_all
16417 freebsd* | dragonfly*)
16418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16419 case $host_cpu in
16420 i*86 )
16421 # Not sure whether the presence of OpenBSD here was a mistake.
16422 # Let's accept both of them until this is cleared up.
16423 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16424 lt_cv_file_magic_cmd=/usr/bin/file
16425 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16427 esac
16428 else
16429 lt_cv_deplibs_check_method=pass_all
16433 gnu*)
16434 lt_cv_deplibs_check_method=pass_all
16437 haiku*)
16438 lt_cv_deplibs_check_method=pass_all
16441 hpux10.20* | hpux11*)
16442 lt_cv_file_magic_cmd=/usr/bin/file
16443 case $host_cpu in
16444 ia64*)
16445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16446 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16448 hppa*64*)
16449 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]'
16450 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16454 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16456 esac
16459 interix[3-9]*)
16460 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16464 irix5* | irix6* | nonstopux*)
16465 case $LD in
16466 *-32|*"-32 ") libmagic=32-bit;;
16467 *-n32|*"-n32 ") libmagic=N32;;
16468 *-64|*"-64 ") libmagic=64-bit;;
16469 *) libmagic=never-match;;
16470 esac
16471 lt_cv_deplibs_check_method=pass_all
16474 # This must be Linux ELF.
16475 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16476 lt_cv_deplibs_check_method=pass_all
16479 netbsd*)
16480 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16482 else
16483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16487 newos6*)
16488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16489 lt_cv_file_magic_cmd=/usr/bin/file
16490 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16493 *nto* | *qnx*)
16494 lt_cv_deplibs_check_method=pass_all
16497 openbsd*)
16498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16500 else
16501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16505 osf3* | osf4* | osf5*)
16506 lt_cv_deplibs_check_method=pass_all
16509 rdos*)
16510 lt_cv_deplibs_check_method=pass_all
16513 solaris*)
16514 lt_cv_deplibs_check_method=pass_all
16517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16518 lt_cv_deplibs_check_method=pass_all
16521 sysv4 | sysv4.3*)
16522 case $host_vendor in
16523 motorola)
16524 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]'
16525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16527 ncr)
16528 lt_cv_deplibs_check_method=pass_all
16530 sequent)
16531 lt_cv_file_magic_cmd='/bin/file'
16532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16534 sni)
16535 lt_cv_file_magic_cmd='/bin/file'
16536 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16537 lt_cv_file_magic_test_file=/lib/libc.so
16539 siemens)
16540 lt_cv_deplibs_check_method=pass_all
16543 lt_cv_deplibs_check_method=pass_all
16545 esac
16548 tpf*)
16549 lt_cv_deplibs_check_method=pass_all
16551 vxworks*)
16552 # Assume VxWorks cross toolchains are built on Linux, possibly
16553 # as canadian for Windows hosts.
16554 lt_cv_deplibs_check_method=pass_all
16556 esac
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16560 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16561 file_magic_cmd=$lt_cv_file_magic_cmd
16562 deplibs_check_method=$lt_cv_deplibs_check_method
16563 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16576 plugin_option=
16577 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16578 for plugin in $plugin_names; do
16579 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16580 if test x$plugin_so = x$plugin; then
16581 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16583 if test x$plugin_so != x$plugin; then
16584 plugin_option="--plugin $plugin_so"
16585 break
16587 done
16589 if test -n "$ac_tool_prefix"; then
16590 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16591 set dummy ${ac_tool_prefix}ar; ac_word=$2
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593 $as_echo_n "checking for $ac_word... " >&6; }
16594 if ${ac_cv_prog_AR+:} false; then :
16595 $as_echo_n "(cached) " >&6
16596 else
16597 if test -n "$AR"; then
16598 ac_cv_prog_AR="$AR" # Let the user override the test.
16599 else
16600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16603 IFS=$as_save_IFS
16604 test -z "$as_dir" && as_dir=.
16605 for ac_exec_ext in '' $ac_executable_extensions; do
16606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607 ac_cv_prog_AR="${ac_tool_prefix}ar"
16608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 break 2
16611 done
16612 done
16613 IFS=$as_save_IFS
16617 AR=$ac_cv_prog_AR
16618 if test -n "$AR"; then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16620 $as_echo "$AR" >&6; }
16621 else
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623 $as_echo "no" >&6; }
16628 if test -z "$ac_cv_prog_AR"; then
16629 ac_ct_AR=$AR
16630 # Extract the first word of "ar", so it can be a program name with args.
16631 set dummy ar; ac_word=$2
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16633 $as_echo_n "checking for $ac_word... " >&6; }
16634 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 if test -n "$ac_ct_AR"; then
16638 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16639 else
16640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16641 for as_dir in $PATH
16643 IFS=$as_save_IFS
16644 test -z "$as_dir" && as_dir=.
16645 for ac_exec_ext in '' $ac_executable_extensions; do
16646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16647 ac_cv_prog_ac_ct_AR="ar"
16648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16649 break 2
16651 done
16652 done
16653 IFS=$as_save_IFS
16657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16658 if test -n "$ac_ct_AR"; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16660 $as_echo "$ac_ct_AR" >&6; }
16661 else
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16663 $as_echo "no" >&6; }
16666 if test "x$ac_ct_AR" = x; then
16667 AR="false"
16668 else
16669 case $cross_compiling:$ac_tool_warned in
16670 yes:)
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16673 ac_tool_warned=yes ;;
16674 esac
16675 AR=$ac_ct_AR
16677 else
16678 AR="$ac_cv_prog_AR"
16681 test -z "$AR" && AR=ar
16682 if test -n "$plugin_option"; then
16683 if $AR --help 2>&1 | grep -q "\--plugin"; then
16684 touch conftest.c
16685 $AR $plugin_option rc conftest.a conftest.c
16686 if test "$?" != 0; then
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16688 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16689 else
16690 AR="$AR $plugin_option"
16692 rm -f conftest.*
16695 test -z "$AR_FLAGS" && AR_FLAGS=cru
16707 if test -n "$ac_tool_prefix"; then
16708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16709 set dummy ${ac_tool_prefix}strip; ac_word=$2
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16711 $as_echo_n "checking for $ac_word... " >&6; }
16712 if ${ac_cv_prog_STRIP+:} false; then :
16713 $as_echo_n "(cached) " >&6
16714 else
16715 if test -n "$STRIP"; then
16716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16717 else
16718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719 for as_dir in $PATH
16721 IFS=$as_save_IFS
16722 test -z "$as_dir" && as_dir=.
16723 for ac_exec_ext in '' $ac_executable_extensions; do
16724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16727 break 2
16729 done
16730 done
16731 IFS=$as_save_IFS
16735 STRIP=$ac_cv_prog_STRIP
16736 if test -n "$STRIP"; then
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16738 $as_echo "$STRIP" >&6; }
16739 else
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16741 $as_echo "no" >&6; }
16746 if test -z "$ac_cv_prog_STRIP"; then
16747 ac_ct_STRIP=$STRIP
16748 # Extract the first word of "strip", so it can be a program name with args.
16749 set dummy strip; ac_word=$2
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16751 $as_echo_n "checking for $ac_word... " >&6; }
16752 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 if test -n "$ac_ct_STRIP"; then
16756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16757 else
16758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16759 for as_dir in $PATH
16761 IFS=$as_save_IFS
16762 test -z "$as_dir" && as_dir=.
16763 for ac_exec_ext in '' $ac_executable_extensions; do
16764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16765 ac_cv_prog_ac_ct_STRIP="strip"
16766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16767 break 2
16769 done
16770 done
16771 IFS=$as_save_IFS
16775 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16776 if test -n "$ac_ct_STRIP"; then
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16778 $as_echo "$ac_ct_STRIP" >&6; }
16779 else
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16781 $as_echo "no" >&6; }
16784 if test "x$ac_ct_STRIP" = x; then
16785 STRIP=":"
16786 else
16787 case $cross_compiling:$ac_tool_warned in
16788 yes:)
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16791 ac_tool_warned=yes ;;
16792 esac
16793 STRIP=$ac_ct_STRIP
16795 else
16796 STRIP="$ac_cv_prog_STRIP"
16799 test -z "$STRIP" && STRIP=:
16806 if test -n "$ac_tool_prefix"; then
16807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16810 $as_echo_n "checking for $ac_word... " >&6; }
16811 if ${ac_cv_prog_RANLIB+:} false; then :
16812 $as_echo_n "(cached) " >&6
16813 else
16814 if test -n "$RANLIB"; then
16815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16816 else
16817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16818 for as_dir in $PATH
16820 IFS=$as_save_IFS
16821 test -z "$as_dir" && as_dir=.
16822 for ac_exec_ext in '' $ac_executable_extensions; do
16823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16826 break 2
16828 done
16829 done
16830 IFS=$as_save_IFS
16834 RANLIB=$ac_cv_prog_RANLIB
16835 if test -n "$RANLIB"; then
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16837 $as_echo "$RANLIB" >&6; }
16838 else
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16840 $as_echo "no" >&6; }
16845 if test -z "$ac_cv_prog_RANLIB"; then
16846 ac_ct_RANLIB=$RANLIB
16847 # Extract the first word of "ranlib", so it can be a program name with args.
16848 set dummy ranlib; ac_word=$2
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16850 $as_echo_n "checking for $ac_word... " >&6; }
16851 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16852 $as_echo_n "(cached) " >&6
16853 else
16854 if test -n "$ac_ct_RANLIB"; then
16855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16856 else
16857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16858 for as_dir in $PATH
16860 IFS=$as_save_IFS
16861 test -z "$as_dir" && as_dir=.
16862 for ac_exec_ext in '' $ac_executable_extensions; do
16863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16864 ac_cv_prog_ac_ct_RANLIB="ranlib"
16865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16866 break 2
16868 done
16869 done
16870 IFS=$as_save_IFS
16874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16875 if test -n "$ac_ct_RANLIB"; then
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16877 $as_echo "$ac_ct_RANLIB" >&6; }
16878 else
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16883 if test "x$ac_ct_RANLIB" = x; then
16884 RANLIB=":"
16885 else
16886 case $cross_compiling:$ac_tool_warned in
16887 yes:)
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16890 ac_tool_warned=yes ;;
16891 esac
16892 RANLIB=$ac_ct_RANLIB
16894 else
16895 RANLIB="$ac_cv_prog_RANLIB"
16898 test -z "$RANLIB" && RANLIB=:
16899 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16900 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16901 RANLIB="$RANLIB $plugin_option"
16910 # Determine commands to create old-style static archives.
16911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16912 old_postinstall_cmds='chmod 644 $oldlib'
16913 old_postuninstall_cmds=
16915 if test -n "$RANLIB"; then
16916 case $host_os in
16917 openbsd*)
16918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16923 esac
16924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16927 case $host_os in
16928 darwin*)
16929 lock_old_archive_extraction=yes ;;
16931 lock_old_archive_extraction=no ;;
16932 esac
16972 # If no C compiler was specified, use CC.
16973 LTCC=${LTCC-"$CC"}
16975 # If no C compiler flags were specified, use CFLAGS.
16976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16978 # Allow CC to be a program name with arguments.
16979 compiler=$CC
16982 # Check for command to grab the raw symbol name followed by C symbol from nm.
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16985 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16986 $as_echo_n "(cached) " >&6
16987 else
16989 # These are sane defaults that work on at least a few old systems.
16990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16992 # Character class describing NM global symbol codes.
16993 symcode='[BCDEGRST]'
16995 # Regexp to match symbols that can be accessed directly from C.
16996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16998 # Define system-specific variables.
16999 case $host_os in
17000 aix*)
17001 symcode='[BCDT]'
17003 cygwin* | mingw* | pw32* | cegcc*)
17004 symcode='[ABCDGISTW]'
17006 hpux*)
17007 if test "$host_cpu" = ia64; then
17008 symcode='[ABCDEGRST]'
17011 irix* | nonstopux*)
17012 symcode='[BCDEGRST]'
17014 osf*)
17015 symcode='[BCDEGQRST]'
17017 solaris*)
17018 symcode='[BCDRT]'
17020 sco3.2v5*)
17021 symcode='[DT]'
17023 sysv4.2uw2*)
17024 symcode='[DT]'
17026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17027 symcode='[ABDT]'
17029 sysv4)
17030 symcode='[DFNSTU]'
17032 esac
17034 # If we're using GNU nm, then use its standard symbol codes.
17035 case `$NM -V 2>&1` in
17036 *GNU* | *'with BFD'*)
17037 symcode='[ABCDGIRSTW]' ;;
17038 esac
17040 # Transform an extracted symbol line into a proper C declaration.
17041 # Some systems (esp. on ia64) link data and code symbols differently,
17042 # so use this general approach.
17043 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17045 # Transform an extracted symbol line into symbol name and symbol address
17046 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17047 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'"
17049 # Handle CRLF in mingw tool chain
17050 opt_cr=
17051 case $build_os in
17052 mingw*)
17053 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17055 esac
17057 # Try without a prefix underscore, then with it.
17058 for ac_symprfx in "" "_"; do
17060 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17061 symxfrm="\\1 $ac_symprfx\\2 \\2"
17063 # Write the raw and C identifiers.
17064 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17065 # Fake it for dumpbin and say T for any non-static function
17066 # and D for any global variable.
17067 # Also find C++ and __fastcall symbols from MSVC++,
17068 # which start with @ or ?.
17069 lt_cv_sys_global_symbol_pipe="$AWK '"\
17070 " {last_section=section; section=\$ 3};"\
17071 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17072 " \$ 0!~/External *\|/{next};"\
17073 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17074 " {if(hide[section]) next};"\
17075 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17076 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17077 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17078 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17079 " ' prfx=^$ac_symprfx"
17080 else
17081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17084 # Check to see that the pipe works correctly.
17085 pipe_works=no
17087 rm -f conftest*
17088 cat > conftest.$ac_ext <<_LT_EOF
17089 #ifdef __cplusplus
17090 extern "C" {
17091 #endif
17092 char nm_test_var;
17093 void nm_test_func(void);
17094 void nm_test_func(void){}
17095 #ifdef __cplusplus
17097 #endif
17098 int main(){nm_test_var='a';nm_test_func();return(0);}
17099 _LT_EOF
17101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17102 (eval $ac_compile) 2>&5
17103 ac_status=$?
17104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17105 test $ac_status = 0; }; then
17106 # Now try to grab the symbols.
17107 nlist=conftest.nm
17108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17109 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17112 test $ac_status = 0; } && test -s "$nlist"; then
17113 # Try sorting and uniquifying the output.
17114 if sort "$nlist" | uniq > "$nlist"T; then
17115 mv -f "$nlist"T "$nlist"
17116 else
17117 rm -f "$nlist"T
17120 # Make sure that we snagged all the symbols we need.
17121 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17122 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17123 cat <<_LT_EOF > conftest.$ac_ext
17124 #ifdef __cplusplus
17125 extern "C" {
17126 #endif
17128 _LT_EOF
17129 # Now generate the symbol file.
17130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17132 cat <<_LT_EOF >> conftest.$ac_ext
17134 /* The mapping between symbol names and symbols. */
17135 const struct {
17136 const char *name;
17137 void *address;
17139 lt__PROGRAM__LTX_preloaded_symbols[] =
17141 { "@PROGRAM@", (void *) 0 },
17142 _LT_EOF
17143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17144 cat <<\_LT_EOF >> conftest.$ac_ext
17145 {0, (void *) 0}
17148 /* This works around a problem in FreeBSD linker */
17149 #ifdef FREEBSD_WORKAROUND
17150 static const void *lt_preloaded_setup() {
17151 return lt__PROGRAM__LTX_preloaded_symbols;
17153 #endif
17155 #ifdef __cplusplus
17157 #endif
17158 _LT_EOF
17159 # Now try linking the two files.
17160 mv conftest.$ac_objext conftstm.$ac_objext
17161 lt_save_LIBS="$LIBS"
17162 lt_save_CFLAGS="$CFLAGS"
17163 LIBS="conftstm.$ac_objext"
17164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17166 (eval $ac_link) 2>&5
17167 ac_status=$?
17168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17170 pipe_works=yes
17172 LIBS="$lt_save_LIBS"
17173 CFLAGS="$lt_save_CFLAGS"
17174 else
17175 echo "cannot find nm_test_func in $nlist" >&5
17177 else
17178 echo "cannot find nm_test_var in $nlist" >&5
17180 else
17181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17183 else
17184 echo "$progname: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17187 rm -rf conftest* conftst*
17189 # Do not use the global_symbol_pipe unless it works.
17190 if test "$pipe_works" = yes; then
17191 break
17192 else
17193 lt_cv_sys_global_symbol_pipe=
17195 done
17199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17200 lt_cv_sys_global_symbol_to_cdecl=
17202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17204 $as_echo "failed" >&6; }
17205 else
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17207 $as_echo "ok" >&6; }
17231 # Check whether --enable-libtool-lock was given.
17232 if test "${enable_libtool_lock+set}" = set; then :
17233 enableval=$enable_libtool_lock;
17236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17238 # Some flags need to be propagated to the compiler or linker for good
17239 # libtool support.
17240 case $host in
17241 ia64-*-hpux*)
17242 # Find out which ABI we are using.
17243 echo 'int i;' > conftest.$ac_ext
17244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17245 (eval $ac_compile) 2>&5
17246 ac_status=$?
17247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17248 test $ac_status = 0; }; then
17249 case `/usr/bin/file conftest.$ac_objext` in
17250 *ELF-32*)
17251 HPUX_IA64_MODE="32"
17253 *ELF-64*)
17254 HPUX_IA64_MODE="64"
17256 esac
17258 rm -rf conftest*
17260 *-*-irix6*)
17261 # Find out which ABI we are using.
17262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17264 (eval $ac_compile) 2>&5
17265 ac_status=$?
17266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17267 test $ac_status = 0; }; then
17268 if test "$lt_cv_prog_gnu_ld" = yes; then
17269 case `/usr/bin/file conftest.$ac_objext` in
17270 *32-bit*)
17271 LD="${LD-ld} -melf32bsmip"
17273 *N32*)
17274 LD="${LD-ld} -melf32bmipn32"
17276 *64-bit*)
17277 LD="${LD-ld} -melf64bmip"
17279 esac
17280 else
17281 case `/usr/bin/file conftest.$ac_objext` in
17282 *32-bit*)
17283 LD="${LD-ld} -32"
17285 *N32*)
17286 LD="${LD-ld} -n32"
17288 *64-bit*)
17289 LD="${LD-ld} -64"
17291 esac
17294 rm -rf conftest*
17297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17299 # Find out which ABI we are using.
17300 echo 'int i;' > conftest.$ac_ext
17301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17302 (eval $ac_compile) 2>&5
17303 ac_status=$?
17304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17305 test $ac_status = 0; }; then
17306 case `/usr/bin/file conftest.o` in
17307 *32-bit*)
17308 case $host in
17309 x86_64-*kfreebsd*-gnu)
17310 LD="${LD-ld} -m elf_i386_fbsd"
17312 x86_64-*linux*)
17313 case `/usr/bin/file conftest.o` in
17314 *x86-64*)
17315 LD="${LD-ld} -m elf32_x86_64"
17318 LD="${LD-ld} -m elf_i386"
17320 esac
17322 powerpc64le-*linux*)
17323 LD="${LD-ld} -m elf32lppclinux"
17325 powerpc64-*linux*)
17326 LD="${LD-ld} -m elf32ppclinux"
17328 s390x-*linux*)
17329 LD="${LD-ld} -m elf_s390"
17331 sparc64-*linux*)
17332 LD="${LD-ld} -m elf32_sparc"
17334 esac
17336 *64-bit*)
17337 case $host in
17338 x86_64-*kfreebsd*-gnu)
17339 LD="${LD-ld} -m elf_x86_64_fbsd"
17341 x86_64-*linux*)
17342 LD="${LD-ld} -m elf_x86_64"
17344 powerpcle-*linux*)
17345 LD="${LD-ld} -m elf64lppc"
17347 powerpc-*linux*)
17348 LD="${LD-ld} -m elf64ppc"
17350 s390*-*linux*|s390*-*tpf*)
17351 LD="${LD-ld} -m elf64_s390"
17353 sparc*-*linux*)
17354 LD="${LD-ld} -m elf64_sparc"
17356 esac
17358 esac
17360 rm -rf conftest*
17363 *-*-sco3.2v5*)
17364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17365 SAVE_CFLAGS="$CFLAGS"
17366 CFLAGS="$CFLAGS -belf"
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17369 if ${lt_cv_cc_needs_belf+:} false; then :
17370 $as_echo_n "(cached) " >&6
17371 else
17372 ac_ext=c
17373 ac_cpp='$CPP $CPPFLAGS'
17374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17382 main ()
17386 return 0;
17388 _ACEOF
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 lt_cv_cc_needs_belf=yes
17391 else
17392 lt_cv_cc_needs_belf=no
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17396 ac_ext=c
17397 ac_cpp='$CPP $CPPFLAGS'
17398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17407 CFLAGS="$SAVE_CFLAGS"
17410 sparc*-*solaris*)
17411 # Find out which ABI we are using.
17412 echo 'int i;' > conftest.$ac_ext
17413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17414 (eval $ac_compile) 2>&5
17415 ac_status=$?
17416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17417 test $ac_status = 0; }; then
17418 case `/usr/bin/file conftest.o` in
17419 *64-bit*)
17420 case $lt_cv_prog_gnu_ld in
17421 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17424 LD="${LD-ld} -64"
17427 esac
17429 esac
17431 rm -rf conftest*
17433 esac
17435 need_locks="$enable_libtool_lock"
17438 case $host_os in
17439 rhapsody* | darwin*)
17440 if test -n "$ac_tool_prefix"; then
17441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17444 $as_echo_n "checking for $ac_word... " >&6; }
17445 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17446 $as_echo_n "(cached) " >&6
17447 else
17448 if test -n "$DSYMUTIL"; then
17449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17450 else
17451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17452 for as_dir in $PATH
17454 IFS=$as_save_IFS
17455 test -z "$as_dir" && as_dir=.
17456 for ac_exec_ext in '' $ac_executable_extensions; do
17457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17460 break 2
17462 done
17463 done
17464 IFS=$as_save_IFS
17468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17469 if test -n "$DSYMUTIL"; then
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17471 $as_echo "$DSYMUTIL" >&6; }
17472 else
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17474 $as_echo "no" >&6; }
17479 if test -z "$ac_cv_prog_DSYMUTIL"; then
17480 ac_ct_DSYMUTIL=$DSYMUTIL
17481 # Extract the first word of "dsymutil", so it can be a program name with args.
17482 set dummy dsymutil; ac_word=$2
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17484 $as_echo_n "checking for $ac_word... " >&6; }
17485 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17486 $as_echo_n "(cached) " >&6
17487 else
17488 if test -n "$ac_ct_DSYMUTIL"; then
17489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17490 else
17491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17494 IFS=$as_save_IFS
17495 test -z "$as_dir" && as_dir=.
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500 break 2
17502 done
17503 done
17504 IFS=$as_save_IFS
17508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17509 if test -n "$ac_ct_DSYMUTIL"; then
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17512 else
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17514 $as_echo "no" >&6; }
17517 if test "x$ac_ct_DSYMUTIL" = x; then
17518 DSYMUTIL=":"
17519 else
17520 case $cross_compiling:$ac_tool_warned in
17521 yes:)
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17524 ac_tool_warned=yes ;;
17525 esac
17526 DSYMUTIL=$ac_ct_DSYMUTIL
17528 else
17529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17532 if test -n "$ac_tool_prefix"; then
17533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536 $as_echo_n "checking for $ac_word... " >&6; }
17537 if ${ac_cv_prog_NMEDIT+:} false; then :
17538 $as_echo_n "(cached) " >&6
17539 else
17540 if test -n "$NMEDIT"; then
17541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17542 else
17543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544 for as_dir in $PATH
17546 IFS=$as_save_IFS
17547 test -z "$as_dir" && as_dir=.
17548 for ac_exec_ext in '' $ac_executable_extensions; do
17549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17552 break 2
17554 done
17555 done
17556 IFS=$as_save_IFS
17560 NMEDIT=$ac_cv_prog_NMEDIT
17561 if test -n "$NMEDIT"; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17563 $as_echo "$NMEDIT" >&6; }
17564 else
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566 $as_echo "no" >&6; }
17571 if test -z "$ac_cv_prog_NMEDIT"; then
17572 ac_ct_NMEDIT=$NMEDIT
17573 # Extract the first word of "nmedit", so it can be a program name with args.
17574 set dummy nmedit; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 if test -n "$ac_ct_NMEDIT"; then
17581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17582 else
17583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584 for as_dir in $PATH
17586 IFS=$as_save_IFS
17587 test -z "$as_dir" && as_dir=.
17588 for ac_exec_ext in '' $ac_executable_extensions; do
17589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592 break 2
17594 done
17595 done
17596 IFS=$as_save_IFS
17600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17601 if test -n "$ac_ct_NMEDIT"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17603 $as_echo "$ac_ct_NMEDIT" >&6; }
17604 else
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606 $as_echo "no" >&6; }
17609 if test "x$ac_ct_NMEDIT" = x; then
17610 NMEDIT=":"
17611 else
17612 case $cross_compiling:$ac_tool_warned in
17613 yes:)
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17616 ac_tool_warned=yes ;;
17617 esac
17618 NMEDIT=$ac_ct_NMEDIT
17620 else
17621 NMEDIT="$ac_cv_prog_NMEDIT"
17624 if test -n "$ac_tool_prefix"; then
17625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17628 $as_echo_n "checking for $ac_word... " >&6; }
17629 if ${ac_cv_prog_LIPO+:} false; then :
17630 $as_echo_n "(cached) " >&6
17631 else
17632 if test -n "$LIPO"; then
17633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17634 else
17635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17636 for as_dir in $PATH
17638 IFS=$as_save_IFS
17639 test -z "$as_dir" && as_dir=.
17640 for ac_exec_ext in '' $ac_executable_extensions; do
17641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17644 break 2
17646 done
17647 done
17648 IFS=$as_save_IFS
17652 LIPO=$ac_cv_prog_LIPO
17653 if test -n "$LIPO"; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17655 $as_echo "$LIPO" >&6; }
17656 else
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17658 $as_echo "no" >&6; }
17663 if test -z "$ac_cv_prog_LIPO"; then
17664 ac_ct_LIPO=$LIPO
17665 # Extract the first word of "lipo", so it can be a program name with args.
17666 set dummy lipo; ac_word=$2
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17668 $as_echo_n "checking for $ac_word... " >&6; }
17669 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 if test -n "$ac_ct_LIPO"; then
17673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17674 else
17675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in $PATH
17678 IFS=$as_save_IFS
17679 test -z "$as_dir" && as_dir=.
17680 for ac_exec_ext in '' $ac_executable_extensions; do
17681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17682 ac_cv_prog_ac_ct_LIPO="lipo"
17683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17684 break 2
17686 done
17687 done
17688 IFS=$as_save_IFS
17692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17693 if test -n "$ac_ct_LIPO"; then
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17695 $as_echo "$ac_ct_LIPO" >&6; }
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17701 if test "x$ac_ct_LIPO" = x; then
17702 LIPO=":"
17703 else
17704 case $cross_compiling:$ac_tool_warned in
17705 yes:)
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17708 ac_tool_warned=yes ;;
17709 esac
17710 LIPO=$ac_ct_LIPO
17712 else
17713 LIPO="$ac_cv_prog_LIPO"
17716 if test -n "$ac_tool_prefix"; then
17717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17718 set dummy ${ac_tool_prefix}otool; ac_word=$2
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17720 $as_echo_n "checking for $ac_word... " >&6; }
17721 if ${ac_cv_prog_OTOOL+:} false; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 if test -n "$OTOOL"; then
17725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17726 else
17727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17728 for as_dir in $PATH
17730 IFS=$as_save_IFS
17731 test -z "$as_dir" && as_dir=.
17732 for ac_exec_ext in '' $ac_executable_extensions; do
17733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17736 break 2
17738 done
17739 done
17740 IFS=$as_save_IFS
17744 OTOOL=$ac_cv_prog_OTOOL
17745 if test -n "$OTOOL"; then
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17747 $as_echo "$OTOOL" >&6; }
17748 else
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17750 $as_echo "no" >&6; }
17755 if test -z "$ac_cv_prog_OTOOL"; then
17756 ac_ct_OTOOL=$OTOOL
17757 # Extract the first word of "otool", so it can be a program name with args.
17758 set dummy otool; ac_word=$2
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17760 $as_echo_n "checking for $ac_word... " >&6; }
17761 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 if test -n "$ac_ct_OTOOL"; then
17765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17766 else
17767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17768 for as_dir in $PATH
17770 IFS=$as_save_IFS
17771 test -z "$as_dir" && as_dir=.
17772 for ac_exec_ext in '' $ac_executable_extensions; do
17773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17774 ac_cv_prog_ac_ct_OTOOL="otool"
17775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17776 break 2
17778 done
17779 done
17780 IFS=$as_save_IFS
17784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17785 if test -n "$ac_ct_OTOOL"; then
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17787 $as_echo "$ac_ct_OTOOL" >&6; }
17788 else
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17790 $as_echo "no" >&6; }
17793 if test "x$ac_ct_OTOOL" = x; then
17794 OTOOL=":"
17795 else
17796 case $cross_compiling:$ac_tool_warned in
17797 yes:)
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17800 ac_tool_warned=yes ;;
17801 esac
17802 OTOOL=$ac_ct_OTOOL
17804 else
17805 OTOOL="$ac_cv_prog_OTOOL"
17808 if test -n "$ac_tool_prefix"; then
17809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17812 $as_echo_n "checking for $ac_word... " >&6; }
17813 if ${ac_cv_prog_OTOOL64+:} false; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 if test -n "$OTOOL64"; then
17817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17818 else
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17822 IFS=$as_save_IFS
17823 test -z "$as_dir" && as_dir=.
17824 for ac_exec_ext in '' $ac_executable_extensions; do
17825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17828 break 2
17830 done
17831 done
17832 IFS=$as_save_IFS
17836 OTOOL64=$ac_cv_prog_OTOOL64
17837 if test -n "$OTOOL64"; then
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17839 $as_echo "$OTOOL64" >&6; }
17840 else
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17847 if test -z "$ac_cv_prog_OTOOL64"; then
17848 ac_ct_OTOOL64=$OTOOL64
17849 # Extract the first word of "otool64", so it can be a program name with args.
17850 set dummy otool64; ac_word=$2
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17852 $as_echo_n "checking for $ac_word... " >&6; }
17853 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17854 $as_echo_n "(cached) " >&6
17855 else
17856 if test -n "$ac_ct_OTOOL64"; then
17857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17858 else
17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17860 for as_dir in $PATH
17862 IFS=$as_save_IFS
17863 test -z "$as_dir" && as_dir=.
17864 for ac_exec_ext in '' $ac_executable_extensions; do
17865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17866 ac_cv_prog_ac_ct_OTOOL64="otool64"
17867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17868 break 2
17870 done
17871 done
17872 IFS=$as_save_IFS
17876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17877 if test -n "$ac_ct_OTOOL64"; then
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17879 $as_echo "$ac_ct_OTOOL64" >&6; }
17880 else
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17882 $as_echo "no" >&6; }
17885 if test "x$ac_ct_OTOOL64" = x; then
17886 OTOOL64=":"
17887 else
17888 case $cross_compiling:$ac_tool_warned in
17889 yes:)
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17892 ac_tool_warned=yes ;;
17893 esac
17894 OTOOL64=$ac_ct_OTOOL64
17896 else
17897 OTOOL64="$ac_cv_prog_OTOOL64"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17927 $as_echo_n "checking for -single_module linker flag... " >&6; }
17928 if ${lt_cv_apple_cc_single_mod+:} false; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 lt_cv_apple_cc_single_mod=no
17932 if test -z "${LT_MULTI_MODULE}"; then
17933 # By default we will add the -single_module flag. You can override
17934 # by either setting the environment variable LT_MULTI_MODULE
17935 # non-empty at configure time, or by adding -multi_module to the
17936 # link flags.
17937 rm -rf libconftest.dylib*
17938 echo "int foo(void){return 1;}" > conftest.c
17939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17940 -dynamiclib -Wl,-single_module conftest.c" >&5
17941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17943 _lt_result=$?
17944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17945 lt_cv_apple_cc_single_mod=yes
17946 else
17947 cat conftest.err >&5
17949 rm -rf libconftest.dylib*
17950 rm -f conftest.*
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17957 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 lt_cv_ld_exported_symbols_list=no
17961 save_LDFLAGS=$LDFLAGS
17962 echo "_main" > conftest.sym
17963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17968 main ()
17972 return 0;
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 lt_cv_ld_exported_symbols_list=yes
17977 else
17978 lt_cv_ld_exported_symbols_list=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LDFLAGS="$save_LDFLAGS"
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17988 $as_echo_n "checking for -force_load linker flag... " >&6; }
17989 if ${lt_cv_ld_force_load+:} false; then :
17990 $as_echo_n "(cached) " >&6
17991 else
17992 lt_cv_ld_force_load=no
17993 cat > conftest.c << _LT_EOF
17994 int forced_loaded() { return 2;}
17995 _LT_EOF
17996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17998 echo "$AR cru libconftest.a conftest.o" >&5
17999 $AR cru libconftest.a conftest.o 2>&5
18000 cat > conftest.c << _LT_EOF
18001 int main() { return 0;}
18002 _LT_EOF
18003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18005 _lt_result=$?
18006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
18007 lt_cv_ld_force_load=yes
18008 else
18009 cat conftest.err >&5
18011 rm -f conftest.err libconftest.a conftest conftest.c
18012 rm -rf conftest.dSYM
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18016 $as_echo "$lt_cv_ld_force_load" >&6; }
18017 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
18018 # build without first building modern cctools / linker.
18019 case $host_cpu-$host_os in
18020 *-rhapsody* | *-darwin1.[012])
18021 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
18022 *-darwin1.*)
18023 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
18024 *-darwin*)
18025 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
18026 # deployment target is forced to an earlier version.
18027 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
18028 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
18030 10.[012][,.]*)
18031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18035 esac
18037 esac
18038 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18039 _lt_dar_single_mod='$single_module'
18041 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18042 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18043 else
18044 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18046 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18047 _lt_dsymutil='~$DSYMUTIL $lib || :'
18048 else
18049 _lt_dsymutil=
18052 esac
18055 for ac_header in dlfcn.h
18056 do :
18057 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
18058 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18059 cat >>confdefs.h <<_ACEOF
18060 #define HAVE_DLFCN_H 1
18061 _ACEOF
18064 done
18070 # Set options
18074 enable_dlopen=no
18077 enable_win32_dll=no
18080 # Check whether --enable-shared was given.
18081 if test "${enable_shared+set}" = set; then :
18082 enableval=$enable_shared; p=${PACKAGE-default}
18083 case $enableval in
18084 yes) enable_shared=yes ;;
18085 no) enable_shared=no ;;
18087 enable_shared=no
18088 # Look at the argument we got. We use all the common list separators.
18089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18090 for pkg in $enableval; do
18091 IFS="$lt_save_ifs"
18092 if test "X$pkg" = "X$p"; then
18093 enable_shared=yes
18095 done
18096 IFS="$lt_save_ifs"
18098 esac
18099 else
18100 enable_shared=yes
18111 # Check whether --enable-static was given.
18112 if test "${enable_static+set}" = set; then :
18113 enableval=$enable_static; p=${PACKAGE-default}
18114 case $enableval in
18115 yes) enable_static=yes ;;
18116 no) enable_static=no ;;
18118 enable_static=no
18119 # Look at the argument we got. We use all the common list separators.
18120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18121 for pkg in $enableval; do
18122 IFS="$lt_save_ifs"
18123 if test "X$pkg" = "X$p"; then
18124 enable_static=yes
18126 done
18127 IFS="$lt_save_ifs"
18129 esac
18130 else
18131 enable_static=yes
18143 # Check whether --with-pic was given.
18144 if test "${with_pic+set}" = set; then :
18145 withval=$with_pic; pic_mode="$withval"
18146 else
18147 pic_mode=default
18151 test -z "$pic_mode" && pic_mode=default
18159 # Check whether --enable-fast-install was given.
18160 if test "${enable_fast_install+set}" = set; then :
18161 enableval=$enable_fast_install; p=${PACKAGE-default}
18162 case $enableval in
18163 yes) enable_fast_install=yes ;;
18164 no) enable_fast_install=no ;;
18166 enable_fast_install=no
18167 # Look at the argument we got. We use all the common list separators.
18168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18169 for pkg in $enableval; do
18170 IFS="$lt_save_ifs"
18171 if test "X$pkg" = "X$p"; then
18172 enable_fast_install=yes
18174 done
18175 IFS="$lt_save_ifs"
18177 esac
18178 else
18179 enable_fast_install=yes
18192 # This can be used to rebuild libtool when needed
18193 LIBTOOL_DEPS="$ltmain"
18195 # Always use our own libtool.
18196 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18223 test -z "$LN_S" && LN_S="ln -s"
18238 if test -n "${ZSH_VERSION+set}" ; then
18239 setopt NO_GLOB_SUBST
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18243 $as_echo_n "checking for objdir... " >&6; }
18244 if ${lt_cv_objdir+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 rm -f .libs 2>/dev/null
18248 mkdir .libs 2>/dev/null
18249 if test -d .libs; then
18250 lt_cv_objdir=.libs
18251 else
18252 # MS-DOS does not allow filenames that begin with a dot.
18253 lt_cv_objdir=_libs
18255 rmdir .libs 2>/dev/null
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18258 $as_echo "$lt_cv_objdir" >&6; }
18259 objdir=$lt_cv_objdir
18265 cat >>confdefs.h <<_ACEOF
18266 #define LT_OBJDIR "$lt_cv_objdir/"
18267 _ACEOF
18272 case $host_os in
18273 aix3*)
18274 # AIX sometimes has problems with the GCC collect2 program. For some
18275 # reason, if we set the COLLECT_NAMES environment variable, the problems
18276 # vanish in a puff of smoke.
18277 if test "X${COLLECT_NAMES+set}" != Xset; then
18278 COLLECT_NAMES=
18279 export COLLECT_NAMES
18282 esac
18284 # Global variables:
18285 ofile=libtool
18286 can_build_shared=yes
18288 # All known linkers require a `.a' archive for static linking (except MSVC,
18289 # which needs '.lib').
18290 libext=a
18292 with_gnu_ld="$lt_cv_prog_gnu_ld"
18294 old_CC="$CC"
18295 old_CFLAGS="$CFLAGS"
18297 # Set sane defaults for various variables
18298 test -z "$CC" && CC=cc
18299 test -z "$LTCC" && LTCC=$CC
18300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18301 test -z "$LD" && LD=ld
18302 test -z "$ac_objext" && ac_objext=o
18304 for cc_temp in $compiler""; do
18305 case $cc_temp in
18306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18308 \-*) ;;
18309 *) break;;
18310 esac
18311 done
18312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18315 # Only perform the check for file, if the check method requires it
18316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18317 case $deplibs_check_method in
18318 file_magic*)
18319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 case $MAGIC_CMD in
18326 [\\/*] | ?:[\\/]*)
18327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18330 lt_save_MAGIC_CMD="$MAGIC_CMD"
18331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18333 for ac_dir in $ac_dummy; do
18334 IFS="$lt_save_ifs"
18335 test -z "$ac_dir" && ac_dir=.
18336 if test -f $ac_dir/${ac_tool_prefix}file; then
18337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18338 if test -n "$file_magic_test_file"; then
18339 case $deplibs_check_method in
18340 "file_magic "*)
18341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18344 $EGREP "$file_magic_regex" > /dev/null; then
18346 else
18347 cat <<_LT_EOF 1>&2
18349 *** Warning: the command libtool uses to detect shared libraries,
18350 *** $file_magic_cmd, produces output that libtool cannot recognize.
18351 *** The result is that libtool may fail to recognize shared libraries
18352 *** as such. This will affect the creation of libtool libraries that
18353 *** depend on shared libraries, but programs linked with such libtool
18354 *** libraries will work regardless of this problem. Nevertheless, you
18355 *** may want to report the problem to your system manager and/or to
18356 *** bug-libtool@gnu.org
18358 _LT_EOF
18359 fi ;;
18360 esac
18362 break
18364 done
18365 IFS="$lt_save_ifs"
18366 MAGIC_CMD="$lt_save_MAGIC_CMD"
18368 esac
18371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18372 if test -n "$MAGIC_CMD"; then
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18374 $as_echo "$MAGIC_CMD" >&6; }
18375 else
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18384 if test -z "$lt_cv_path_MAGIC_CMD"; then
18385 if test -n "$ac_tool_prefix"; then
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18387 $as_echo_n "checking for file... " >&6; }
18388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18389 $as_echo_n "(cached) " >&6
18390 else
18391 case $MAGIC_CMD in
18392 [\\/*] | ?:[\\/]*)
18393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18396 lt_save_MAGIC_CMD="$MAGIC_CMD"
18397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18399 for ac_dir in $ac_dummy; do
18400 IFS="$lt_save_ifs"
18401 test -z "$ac_dir" && ac_dir=.
18402 if test -f $ac_dir/file; then
18403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18404 if test -n "$file_magic_test_file"; then
18405 case $deplibs_check_method in
18406 "file_magic "*)
18407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18410 $EGREP "$file_magic_regex" > /dev/null; then
18412 else
18413 cat <<_LT_EOF 1>&2
18415 *** Warning: the command libtool uses to detect shared libraries,
18416 *** $file_magic_cmd, produces output that libtool cannot recognize.
18417 *** The result is that libtool may fail to recognize shared libraries
18418 *** as such. This will affect the creation of libtool libraries that
18419 *** depend on shared libraries, but programs linked with such libtool
18420 *** libraries will work regardless of this problem. Nevertheless, you
18421 *** may want to report the problem to your system manager and/or to
18422 *** bug-libtool@gnu.org
18424 _LT_EOF
18425 fi ;;
18426 esac
18428 break
18430 done
18431 IFS="$lt_save_ifs"
18432 MAGIC_CMD="$lt_save_MAGIC_CMD"
18434 esac
18437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18438 if test -n "$MAGIC_CMD"; then
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18440 $as_echo "$MAGIC_CMD" >&6; }
18441 else
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18443 $as_echo "no" >&6; }
18447 else
18448 MAGIC_CMD=:
18454 esac
18456 # Use C for the default configuration in the libtool script
18458 lt_save_CC="$CC"
18459 ac_ext=c
18460 ac_cpp='$CPP $CPPFLAGS'
18461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466 # Source file extension for C test sources.
18467 ac_ext=c
18469 # Object file extension for compiled C test sources.
18470 objext=o
18471 objext=$objext
18473 # Code to be used in simple compile tests
18474 lt_simple_compile_test_code="int some_variable = 0;"
18476 # Code to be used in simple link tests
18477 lt_simple_link_test_code='int main(){return(0);}'
18485 # If no C compiler was specified, use CC.
18486 LTCC=${LTCC-"$CC"}
18488 # If no C compiler flags were specified, use CFLAGS.
18489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18491 # Allow CC to be a program name with arguments.
18492 compiler=$CC
18494 # Save the default compiler, since it gets overwritten when the other
18495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18496 compiler_DEFAULT=$CC
18498 # save warnings/boilerplate of simple test code
18499 ac_outfile=conftest.$ac_objext
18500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18502 _lt_compiler_boilerplate=`cat conftest.err`
18503 $RM conftest*
18505 ac_outfile=conftest.$ac_objext
18506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18508 _lt_linker_boilerplate=`cat conftest.err`
18509 $RM -r conftest*
18512 ## CAVEAT EMPTOR:
18513 ## There is no encapsulation within the following macros, do not change
18514 ## the running order or otherwise move them around unless you know exactly
18515 ## what you are doing...
18516 if test -n "$compiler"; then
18518 lt_prog_compiler_no_builtin_flag=
18520 if test "$GCC" = yes; then
18521 case $cc_basename in
18522 nvcc*)
18523 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18525 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18526 esac
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18529 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18530 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 lt_cv_prog_compiler_rtti_exceptions=no
18534 ac_outfile=conftest.$ac_objext
18535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18536 lt_compiler_flag="-fno-rtti -fno-exceptions"
18537 # Insert the option either (1) after the last *FLAGS variable, or
18538 # (2) before a word containing "conftest.", or (3) at the end.
18539 # Note that $ac_compile itself does not contain backslashes and begins
18540 # with a dollar sign (not a hyphen), so the echo should work correctly.
18541 # The option is referenced via a variable to avoid confusing sed.
18542 lt_compile=`echo "$ac_compile" | $SED \
18543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18545 -e 's:$: $lt_compiler_flag:'`
18546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18547 (eval "$lt_compile" 2>conftest.err)
18548 ac_status=$?
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 if (exit $ac_status) && test -s "$ac_outfile"; then
18552 # The compiler can only warn and ignore the option if not recognized
18553 # So say no if there are warnings other than the usual output.
18554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18557 lt_cv_prog_compiler_rtti_exceptions=yes
18560 $RM conftest*
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18564 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18568 else
18579 lt_prog_compiler_wl=
18580 lt_prog_compiler_pic=
18581 lt_prog_compiler_static=
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18584 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18586 if test "$GCC" = yes; then
18587 lt_prog_compiler_wl='-Wl,'
18588 lt_prog_compiler_static='-static'
18590 case $host_os in
18591 aix*)
18592 # All AIX code is PIC.
18593 if test "$host_cpu" = ia64; then
18594 # AIX 5 now supports IA64 processor
18595 lt_prog_compiler_static='-Bstatic'
18597 lt_prog_compiler_pic='-fPIC'
18600 amigaos*)
18601 case $host_cpu in
18602 powerpc)
18603 # see comment about AmigaOS4 .so support
18604 lt_prog_compiler_pic='-fPIC'
18606 m68k)
18607 # FIXME: we need at least 68020 code to build shared libraries, but
18608 # adding the `-m68020' flag to GCC prevents building anything better,
18609 # like `-m68040'.
18610 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18612 esac
18615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18616 # PIC is the default for these OSes.
18619 mingw* | cygwin* | pw32* | os2* | cegcc*)
18620 # This hack is so that the source file can tell whether it is being
18621 # built for inclusion in a dll (and should export symbols for example).
18622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18623 # (--disable-auto-import) libraries
18624 lt_prog_compiler_pic='-DDLL_EXPORT'
18627 darwin* | rhapsody*)
18628 # PIC is the default on this platform
18629 # Common symbols not allowed in MH_DYLIB files
18630 lt_prog_compiler_pic='-fno-common'
18633 haiku*)
18634 # PIC is the default for Haiku.
18635 # The "-static" flag exists, but is broken.
18636 lt_prog_compiler_static=
18639 hpux*)
18640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18642 # sets the default TLS model and affects inlining.
18643 case $host_cpu in
18644 hppa*64*)
18645 # +Z the default
18648 lt_prog_compiler_pic='-fPIC'
18650 esac
18653 interix[3-9]*)
18654 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18655 # Instead, we relocate shared libraries at runtime.
18658 msdosdjgpp*)
18659 # Just because we use GCC doesn't mean we suddenly get shared libraries
18660 # on systems that don't support them.
18661 lt_prog_compiler_can_build_shared=no
18662 enable_shared=no
18665 *nto* | *qnx*)
18666 # QNX uses GNU C++, but need to define -shared option too, otherwise
18667 # it will coredump.
18668 lt_prog_compiler_pic='-fPIC -shared'
18671 sysv4*MP*)
18672 if test -d /usr/nec; then
18673 lt_prog_compiler_pic=-Kconform_pic
18678 lt_prog_compiler_pic='-fPIC'
18680 esac
18682 case $cc_basename in
18683 nvcc*) # Cuda Compiler Driver 2.2
18684 lt_prog_compiler_wl='-Xlinker '
18685 lt_prog_compiler_pic='-Xcompiler -fPIC'
18687 esac
18688 else
18689 # PORTME Check for flag to pass linker flags through the system compiler.
18690 case $host_os in
18691 aix*)
18692 lt_prog_compiler_wl='-Wl,'
18693 if test "$host_cpu" = ia64; then
18694 # AIX 5 now supports IA64 processor
18695 lt_prog_compiler_static='-Bstatic'
18696 else
18697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18701 mingw* | cygwin* | pw32* | os2* | cegcc*)
18702 # This hack is so that the source file can tell whether it is being
18703 # built for inclusion in a dll (and should export symbols for example).
18704 lt_prog_compiler_pic='-DDLL_EXPORT'
18707 hpux9* | hpux10* | hpux11*)
18708 lt_prog_compiler_wl='-Wl,'
18709 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18710 # not for PA HP-UX.
18711 case $host_cpu in
18712 hppa*64*|ia64*)
18713 # +Z the default
18716 lt_prog_compiler_pic='+Z'
18718 esac
18719 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18720 lt_prog_compiler_static='${wl}-a ${wl}archive'
18723 irix5* | irix6* | nonstopux*)
18724 lt_prog_compiler_wl='-Wl,'
18725 # PIC (with -KPIC) is the default.
18726 lt_prog_compiler_static='-non_shared'
18729 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18730 case $cc_basename in
18731 # old Intel for x86_64 which still supported -KPIC.
18732 ecc*)
18733 lt_prog_compiler_wl='-Wl,'
18734 lt_prog_compiler_pic='-KPIC'
18735 lt_prog_compiler_static='-static'
18737 # icc used to be incompatible with GCC.
18738 # ICC 10 doesn't accept -KPIC any more.
18739 icc* | ifort*)
18740 lt_prog_compiler_wl='-Wl,'
18741 lt_prog_compiler_pic='-fPIC'
18742 lt_prog_compiler_static='-static'
18744 # Lahey Fortran 8.1.
18745 lf95*)
18746 lt_prog_compiler_wl='-Wl,'
18747 lt_prog_compiler_pic='--shared'
18748 lt_prog_compiler_static='--static'
18750 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18751 # Portland Group compilers (*not* the Pentium gcc compiler,
18752 # which looks to be a dead project)
18753 lt_prog_compiler_wl='-Wl,'
18754 lt_prog_compiler_pic='-fpic'
18755 lt_prog_compiler_static='-Bstatic'
18757 ccc*)
18758 lt_prog_compiler_wl='-Wl,'
18759 # All Alpha code is PIC.
18760 lt_prog_compiler_static='-non_shared'
18762 xl* | bgxl* | bgf* | mpixl*)
18763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18764 lt_prog_compiler_wl='-Wl,'
18765 lt_prog_compiler_pic='-qpic'
18766 lt_prog_compiler_static='-qstaticlink'
18769 case `$CC -V 2>&1 | sed 5q` in
18770 *Sun\ F* | *Sun*Fortran*)
18771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18772 lt_prog_compiler_pic='-KPIC'
18773 lt_prog_compiler_static='-Bstatic'
18774 lt_prog_compiler_wl=''
18776 *Sun\ C*)
18777 # Sun C 5.9
18778 lt_prog_compiler_pic='-KPIC'
18779 lt_prog_compiler_static='-Bstatic'
18780 lt_prog_compiler_wl='-Wl,'
18782 esac
18784 esac
18787 newsos6)
18788 lt_prog_compiler_pic='-KPIC'
18789 lt_prog_compiler_static='-Bstatic'
18792 *nto* | *qnx*)
18793 # QNX uses GNU C++, but need to define -shared option too, otherwise
18794 # it will coredump.
18795 lt_prog_compiler_pic='-fPIC -shared'
18798 osf3* | osf4* | osf5*)
18799 lt_prog_compiler_wl='-Wl,'
18800 # All OSF/1 code is PIC.
18801 lt_prog_compiler_static='-non_shared'
18804 rdos*)
18805 lt_prog_compiler_static='-non_shared'
18808 solaris*)
18809 lt_prog_compiler_pic='-KPIC'
18810 lt_prog_compiler_static='-Bstatic'
18811 case $cc_basename in
18812 f77* | f90* | f95*)
18813 lt_prog_compiler_wl='-Qoption ld ';;
18815 lt_prog_compiler_wl='-Wl,';;
18816 esac
18819 sunos4*)
18820 lt_prog_compiler_wl='-Qoption ld '
18821 lt_prog_compiler_pic='-PIC'
18822 lt_prog_compiler_static='-Bstatic'
18825 sysv4 | sysv4.2uw2* | sysv4.3*)
18826 lt_prog_compiler_wl='-Wl,'
18827 lt_prog_compiler_pic='-KPIC'
18828 lt_prog_compiler_static='-Bstatic'
18831 sysv4*MP*)
18832 if test -d /usr/nec ;then
18833 lt_prog_compiler_pic='-Kconform_pic'
18834 lt_prog_compiler_static='-Bstatic'
18838 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18839 lt_prog_compiler_wl='-Wl,'
18840 lt_prog_compiler_pic='-KPIC'
18841 lt_prog_compiler_static='-Bstatic'
18844 unicos*)
18845 lt_prog_compiler_wl='-Wl,'
18846 lt_prog_compiler_can_build_shared=no
18849 uts4*)
18850 lt_prog_compiler_pic='-pic'
18851 lt_prog_compiler_static='-Bstatic'
18855 lt_prog_compiler_can_build_shared=no
18857 esac
18860 case $host_os in
18861 # For platforms which do not support PIC, -DPIC is meaningless:
18862 *djgpp*)
18863 lt_prog_compiler_pic=
18866 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18868 esac
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18870 $as_echo "$lt_prog_compiler_pic" >&6; }
18878 # Check to make sure the PIC flag actually works.
18880 if test -n "$lt_prog_compiler_pic"; then
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18882 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18883 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18884 $as_echo_n "(cached) " >&6
18885 else
18886 lt_cv_prog_compiler_pic_works=no
18887 ac_outfile=conftest.$ac_objext
18888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18889 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18890 # Insert the option either (1) after the last *FLAGS variable, or
18891 # (2) before a word containing "conftest.", or (3) at the end.
18892 # Note that $ac_compile itself does not contain backslashes and begins
18893 # with a dollar sign (not a hyphen), so the echo should work correctly.
18894 # The option is referenced via a variable to avoid confusing sed.
18895 lt_compile=`echo "$ac_compile" | $SED \
18896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18898 -e 's:$: $lt_compiler_flag:'`
18899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18900 (eval "$lt_compile" 2>conftest.err)
18901 ac_status=$?
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 if (exit $ac_status) && test -s "$ac_outfile"; then
18905 # The compiler can only warn and ignore the option if not recognized
18906 # So say no if there are warnings other than the usual output.
18907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18910 lt_cv_prog_compiler_pic_works=yes
18913 $RM conftest*
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18917 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18919 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18920 case $lt_prog_compiler_pic in
18921 "" | " "*) ;;
18922 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18923 esac
18924 else
18925 lt_prog_compiler_pic=
18926 lt_prog_compiler_can_build_shared=no
18937 # Check to make sure the static flag actually works.
18939 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18942 if ${lt_cv_prog_compiler_static_works+:} false; then :
18943 $as_echo_n "(cached) " >&6
18944 else
18945 lt_cv_prog_compiler_static_works=no
18946 save_LDFLAGS="$LDFLAGS"
18947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18950 # The linker can only warn and ignore the option if not recognized
18951 # So say no if there are warnings
18952 if test -s conftest.err; then
18953 # Append any errors to the config.log.
18954 cat conftest.err 1>&5
18955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18957 if diff conftest.exp conftest.er2 >/dev/null; then
18958 lt_cv_prog_compiler_static_works=yes
18960 else
18961 lt_cv_prog_compiler_static_works=yes
18964 $RM -r conftest*
18965 LDFLAGS="$save_LDFLAGS"
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18969 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18971 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18973 else
18974 lt_prog_compiler_static=
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18985 if ${lt_cv_prog_compiler_c_o+:} false; then :
18986 $as_echo_n "(cached) " >&6
18987 else
18988 lt_cv_prog_compiler_c_o=no
18989 $RM -r conftest 2>/dev/null
18990 mkdir conftest
18991 cd conftest
18992 mkdir out
18993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18995 lt_compiler_flag="-o out/conftest2.$ac_objext"
18996 # Insert the option either (1) after the last *FLAGS variable, or
18997 # (2) before a word containing "conftest.", or (3) at the end.
18998 # Note that $ac_compile itself does not contain backslashes and begins
18999 # with a dollar sign (not a hyphen), so the echo should work correctly.
19000 lt_compile=`echo "$ac_compile" | $SED \
19001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19003 -e 's:$: $lt_compiler_flag:'`
19004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19005 (eval "$lt_compile" 2>out/conftest.err)
19006 ac_status=$?
19007 cat out/conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19010 then
19011 # The compiler can only warn and ignore the option if not recognized
19012 # So say no if there are warnings
19013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19016 lt_cv_prog_compiler_c_o=yes
19019 chmod u+w . 2>&5
19020 $RM conftest*
19021 # SGI C++ compiler will create directory out/ii_files/ for
19022 # template instantiation
19023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19024 $RM out/* && rmdir out
19025 cd ..
19026 $RM -r conftest
19027 $RM conftest*
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19040 if ${lt_cv_prog_compiler_c_o+:} false; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 lt_cv_prog_compiler_c_o=no
19044 $RM -r conftest 2>/dev/null
19045 mkdir conftest
19046 cd conftest
19047 mkdir out
19048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19050 lt_compiler_flag="-o out/conftest2.$ac_objext"
19051 # Insert the option either (1) after the last *FLAGS variable, or
19052 # (2) before a word containing "conftest.", or (3) at the end.
19053 # Note that $ac_compile itself does not contain backslashes and begins
19054 # with a dollar sign (not a hyphen), so the echo should work correctly.
19055 lt_compile=`echo "$ac_compile" | $SED \
19056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19058 -e 's:$: $lt_compiler_flag:'`
19059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19060 (eval "$lt_compile" 2>out/conftest.err)
19061 ac_status=$?
19062 cat out/conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19065 then
19066 # The compiler can only warn and ignore the option if not recognized
19067 # So say no if there are warnings
19068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19071 lt_cv_prog_compiler_c_o=yes
19074 chmod u+w . 2>&5
19075 $RM conftest*
19076 # SGI C++ compiler will create directory out/ii_files/ for
19077 # template instantiation
19078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19079 $RM out/* && rmdir out
19080 cd ..
19081 $RM -r conftest
19082 $RM conftest*
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19091 hard_links="nottested"
19092 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19093 # do not overwrite the value of need_locks provided by the user
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19095 $as_echo_n "checking if we can lock with hard links... " >&6; }
19096 hard_links=yes
19097 $RM conftest*
19098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19099 touch conftest.a
19100 ln conftest.a conftest.b 2>&5 || hard_links=no
19101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19103 $as_echo "$hard_links" >&6; }
19104 if test "$hard_links" = no; then
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19106 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19107 need_locks=warn
19109 else
19110 need_locks=no
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19119 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19121 runpath_var=
19122 allow_undefined_flag=
19123 always_export_symbols=no
19124 archive_cmds=
19125 archive_expsym_cmds=
19126 compiler_needs_object=no
19127 enable_shared_with_static_runtimes=no
19128 export_dynamic_flag_spec=
19129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19130 hardcode_automatic=no
19131 hardcode_direct=no
19132 hardcode_direct_absolute=no
19133 hardcode_libdir_flag_spec=
19134 hardcode_libdir_flag_spec_ld=
19135 hardcode_libdir_separator=
19136 hardcode_minus_L=no
19137 hardcode_shlibpath_var=unsupported
19138 inherit_rpath=no
19139 link_all_deplibs=unknown
19140 module_cmds=
19141 module_expsym_cmds=
19142 old_archive_from_new_cmds=
19143 old_archive_from_expsyms_cmds=
19144 thread_safe_flag_spec=
19145 whole_archive_flag_spec=
19146 # include_expsyms should be a list of space-separated symbols to be *always*
19147 # included in the symbol list
19148 include_expsyms=
19149 # exclude_expsyms can be an extended regexp of symbols to exclude
19150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19152 # as well as any symbol that contains `d'.
19153 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19155 # platforms (ab)use it in PIC code, but their linkers get confused if
19156 # the symbol is explicitly referenced. Since portable code cannot
19157 # rely on this symbol name, it's probably fine to never include it in
19158 # preloaded symbol tables.
19159 # Exclude shared library initialization/finalization symbols.
19160 extract_expsyms_cmds=
19162 case $host_os in
19163 cygwin* | mingw* | pw32* | cegcc*)
19164 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19165 # When not using gcc, we currently assume that we are using
19166 # Microsoft Visual C++.
19167 if test "$GCC" != yes; then
19168 with_gnu_ld=no
19171 interix*)
19172 # we just hope/assume this is gcc and not c89 (= MSVC++)
19173 with_gnu_ld=yes
19175 openbsd*)
19176 with_gnu_ld=no
19178 esac
19180 ld_shlibs=yes
19182 # On some targets, GNU ld is compatible enough with the native linker
19183 # that we're better off using the native interface for both.
19184 lt_use_gnu_ld_interface=no
19185 if test "$with_gnu_ld" = yes; then
19186 case $host_os in
19187 aix*)
19188 # The AIX port of GNU ld has always aspired to compatibility
19189 # with the native linker. However, as the warning in the GNU ld
19190 # block says, versions before 2.19.5* couldn't really create working
19191 # shared libraries, regardless of the interface used.
19192 case `$LD -v 2>&1` in
19193 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19194 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19195 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19197 lt_use_gnu_ld_interface=yes
19199 esac
19202 lt_use_gnu_ld_interface=yes
19204 esac
19207 if test "$lt_use_gnu_ld_interface" = yes; then
19208 # If archive_cmds runs LD, not CC, wlarc should be empty
19209 wlarc='${wl}'
19211 # Set some defaults for GNU ld with shared library support. These
19212 # are reset later if shared libraries are not supported. Putting them
19213 # here allows them to be overridden if necessary.
19214 runpath_var=LD_RUN_PATH
19215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19216 export_dynamic_flag_spec='${wl}--export-dynamic'
19217 # ancient GNU ld didn't support --whole-archive et. al.
19218 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19219 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19220 else
19221 whole_archive_flag_spec=
19223 supports_anon_versioning=no
19224 case `$LD -v 2>&1` in
19225 *GNU\ gold*) supports_anon_versioning=yes ;;
19226 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19229 *\ 2.11.*) ;; # other 2.11 versions
19230 *) supports_anon_versioning=yes ;;
19231 esac
19233 # See if GNU ld supports shared libraries.
19234 case $host_os in
19235 aix[3-9]*)
19236 # On AIX/PPC, the GNU linker is very broken
19237 if test "$host_cpu" != ia64; then
19238 ld_shlibs=no
19239 cat <<_LT_EOF 1>&2
19241 *** Warning: the GNU linker, at least up to release 2.19, is reported
19242 *** to be unable to reliably create shared libraries on AIX.
19243 *** Therefore, libtool is disabling shared libraries support. If you
19244 *** really care for shared libraries, you may want to install binutils
19245 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19246 *** You will then need to restart the configuration process.
19248 _LT_EOF
19252 amigaos*)
19253 case $host_cpu in
19254 powerpc)
19255 # see comment about AmigaOS4 .so support
19256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257 archive_expsym_cmds=''
19259 m68k)
19260 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)'
19261 hardcode_libdir_flag_spec='-L$libdir'
19262 hardcode_minus_L=yes
19264 esac
19267 beos*)
19268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19269 allow_undefined_flag=unsupported
19270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19271 # support --undefined. This deserves some investigation. FIXME
19272 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19273 else
19274 ld_shlibs=no
19278 cygwin* | mingw* | pw32* | cegcc*)
19279 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19280 # as there is no search path for DLLs.
19281 hardcode_libdir_flag_spec='-L$libdir'
19282 export_dynamic_flag_spec='${wl}--export-all-symbols'
19283 allow_undefined_flag=unsupported
19284 always_export_symbols=no
19285 enable_shared_with_static_runtimes=yes
19286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19290 # If the export-symbols file already is a .def file (1st line
19291 # is EXPORTS), use it as is; otherwise, prepend...
19292 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19293 cp $export_symbols $output_objdir/$soname.def;
19294 else
19295 echo EXPORTS > $output_objdir/$soname.def;
19296 cat $export_symbols >> $output_objdir/$soname.def;
19298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19299 else
19300 ld_shlibs=no
19304 haiku*)
19305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19306 link_all_deplibs=yes
19309 interix[3-9]*)
19310 hardcode_direct=no
19311 hardcode_shlibpath_var=no
19312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19313 export_dynamic_flag_spec='${wl}-E'
19314 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19315 # Instead, shared libraries are loaded at an image base (0x10000000 by
19316 # default) and relocated if they conflict, which is a slow very memory
19317 # consuming and fragmenting process. To avoid this, we pick a random,
19318 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19319 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19320 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19321 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'
19324 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19325 tmp_diet=no
19326 if test "$host_os" = linux-dietlibc; then
19327 case $cc_basename in
19328 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19329 esac
19331 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19332 && test "$tmp_diet" = no
19333 then
19334 tmp_addflag=' $pic_flag'
19335 tmp_sharedflag='-shared'
19336 case $cc_basename,$host_cpu in
19337 pgcc*) # Portland Group C compiler
19338 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'
19339 tmp_addflag=' $pic_flag'
19341 pgf77* | pgf90* | pgf95* | pgfortran*)
19342 # Portland Group f77 and f90 compilers
19343 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'
19344 tmp_addflag=' $pic_flag -Mnomain' ;;
19345 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19346 tmp_addflag=' -i_dynamic' ;;
19347 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19348 tmp_addflag=' -i_dynamic -nofor_main' ;;
19349 ifc* | ifort*) # Intel Fortran compiler
19350 tmp_addflag=' -nofor_main' ;;
19351 lf95*) # Lahey Fortran 8.1
19352 whole_archive_flag_spec=
19353 tmp_sharedflag='--shared' ;;
19354 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19355 tmp_sharedflag='-qmkshrobj'
19356 tmp_addflag= ;;
19357 nvcc*) # Cuda Compiler Driver 2.2
19358 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'
19359 compiler_needs_object=yes
19361 esac
19362 case `$CC -V 2>&1 | sed 5q` in
19363 *Sun\ C*) # Sun C 5.9
19364 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'
19365 compiler_needs_object=yes
19366 tmp_sharedflag='-G' ;;
19367 *Sun\ F*) # Sun Fortran 8.3
19368 tmp_sharedflag='-G' ;;
19369 esac
19370 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 if test "x$supports_anon_versioning" = xyes; then
19373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19375 echo "local: *; };" >> $output_objdir/$libname.ver~
19376 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19379 case $cc_basename in
19380 xlf* | bgf* | bgxlf* | mpixlf*)
19381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19383 hardcode_libdir_flag_spec=
19384 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19385 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19386 if test "x$supports_anon_versioning" = xyes; then
19387 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19389 echo "local: *; };" >> $output_objdir/$libname.ver~
19390 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19393 esac
19394 else
19395 ld_shlibs=no
19399 netbsd*)
19400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19401 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19402 wlarc=
19403 else
19404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19409 solaris*)
19410 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19411 ld_shlibs=no
19412 cat <<_LT_EOF 1>&2
19414 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19415 *** create shared libraries on Solaris systems. Therefore, libtool
19416 *** is disabling shared libraries support. We urge you to upgrade GNU
19417 *** binutils to release 2.9.1 or newer. Another option is to modify
19418 *** your PATH or compiler configuration so that the native linker is
19419 *** used, and then restart.
19421 _LT_EOF
19422 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19425 else
19426 ld_shlibs=no
19430 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19431 case `$LD -v 2>&1` in
19432 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19433 ld_shlibs=no
19434 cat <<_LT_EOF 1>&2
19436 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19437 *** reliably create shared libraries on SCO systems. Therefore, libtool
19438 *** is disabling shared libraries support. We urge you to upgrade GNU
19439 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19440 *** your PATH or compiler configuration so that the native linker is
19441 *** used, and then restart.
19443 _LT_EOF
19446 # For security reasons, it is highly recommended that you always
19447 # use absolute paths for naming shared libraries, and exclude the
19448 # DT_RUNPATH tag from executables and libraries. But doing so
19449 # requires that you compile everything twice, which is a pain.
19450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19453 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19454 else
19455 ld_shlibs=no
19458 esac
19461 sunos4*)
19462 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19463 wlarc=
19464 hardcode_direct=yes
19465 hardcode_shlibpath_var=no
19469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19472 else
19473 ld_shlibs=no
19476 esac
19478 if test "$ld_shlibs" = no; then
19479 runpath_var=
19480 hardcode_libdir_flag_spec=
19481 export_dynamic_flag_spec=
19482 whole_archive_flag_spec=
19484 else
19485 # PORTME fill in a description of your system's linker (not GNU ld)
19486 case $host_os in
19487 aix3*)
19488 allow_undefined_flag=unsupported
19489 always_export_symbols=yes
19490 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'
19491 # Note: this linker hardcodes the directories in LIBPATH if there
19492 # are no directories specified by -L.
19493 hardcode_minus_L=yes
19494 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19495 # Neither direct hardcoding nor static linking is supported with a
19496 # broken collect2.
19497 hardcode_direct=unsupported
19501 aix[4-9]*)
19502 if test "$host_cpu" = ia64; then
19503 # On IA64, the linker does run time linking by default, so we don't
19504 # have to do anything special.
19505 aix_use_runtimelinking=no
19506 exp_sym_flag='-Bexport'
19507 no_entry_flag=""
19508 else
19509 # If we're using GNU nm, then we don't want the "-C" option.
19510 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19511 # Also, AIX nm treats weak defined symbols like other global
19512 # defined symbols, whereas GNU nm marks them as "W".
19513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19514 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'
19515 else
19516 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'
19518 aix_use_runtimelinking=no
19520 # Test if we are trying to use run time linking or normal
19521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19522 # need to do runtime linking.
19523 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19524 for ld_flag in $LDFLAGS; do
19525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19526 aix_use_runtimelinking=yes
19527 break
19529 done
19531 esac
19533 exp_sym_flag='-bexport'
19534 no_entry_flag='-bnoentry'
19537 # When large executables or shared objects are built, AIX ld can
19538 # have problems creating the table of contents. If linking a library
19539 # or program results in "error TOC overflow" add -mminimal-toc to
19540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19543 archive_cmds=''
19544 hardcode_direct=yes
19545 hardcode_direct_absolute=yes
19546 hardcode_libdir_separator=':'
19547 link_all_deplibs=yes
19548 file_list_spec='${wl}-f,'
19550 if test "$GCC" = yes; then
19551 case $host_os in aix4.[012]|aix4.[012].*)
19552 # We only want to do this on AIX 4.2 and lower, the check
19553 # below for broken collect2 doesn't work under 4.3+
19554 collect2name=`${CC} -print-prog-name=collect2`
19555 if test -f "$collect2name" &&
19556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19557 then
19558 # We have reworked collect2
19560 else
19561 # We have old collect2
19562 hardcode_direct=unsupported
19563 # It fails to find uninstalled libraries when the uninstalled
19564 # path is not listed in the libpath. Setting hardcode_minus_L
19565 # to unsupported forces relinking
19566 hardcode_minus_L=yes
19567 hardcode_libdir_flag_spec='-L$libdir'
19568 hardcode_libdir_separator=
19571 esac
19572 shared_flag='-shared'
19573 if test "$aix_use_runtimelinking" = yes; then
19574 shared_flag="$shared_flag "'${wl}-G'
19576 else
19577 # not using gcc
19578 if test "$host_cpu" = ia64; then
19579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19580 # chokes on -Wl,-G. The following line is correct:
19581 shared_flag='-G'
19582 else
19583 if test "$aix_use_runtimelinking" = yes; then
19584 shared_flag='${wl}-G'
19585 else
19586 shared_flag='${wl}-bM:SRE'
19591 export_dynamic_flag_spec='${wl}-bexpall'
19592 # It seems that -bexpall does not export symbols beginning with
19593 # underscore (_), so it is better to generate a list of symbols to export.
19594 always_export_symbols=yes
19595 if test "$aix_use_runtimelinking" = yes; then
19596 # Warning - without using the other runtime loading flags (-brtl),
19597 # -berok will link without error, but may produce a broken library.
19598 allow_undefined_flag='-berok'
19599 # Determine the default libpath from the value encoded in an
19600 # empty executable.
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19605 main ()
19609 return 0;
19611 _ACEOF
19612 if ac_fn_c_try_link "$LINENO"; then :
19614 lt_aix_libpath_sed='
19615 /Import File Strings/,/^$/ {
19616 /^0/ {
19617 s/^0 *\(.*\)$/\1/
19621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19622 # Check for a 64-bit object if we didn't find anything.
19623 if test -z "$aix_libpath"; then
19624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19627 rm -f core conftest.err conftest.$ac_objext \
19628 conftest$ac_exeext conftest.$ac_ext
19629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19632 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"
19633 else
19634 if test "$host_cpu" = ia64; then
19635 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19636 allow_undefined_flag="-z nodefs"
19637 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"
19638 else
19639 # Determine the default libpath from the value encoded in an
19640 # empty executable.
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19645 main ()
19649 return 0;
19651 _ACEOF
19652 if ac_fn_c_try_link "$LINENO"; then :
19654 lt_aix_libpath_sed='
19655 /Import File Strings/,/^$/ {
19656 /^0/ {
19657 s/^0 *\(.*\)$/\1/
19661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19662 # Check for a 64-bit object if we didn't find anything.
19663 if test -z "$aix_libpath"; then
19664 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19667 rm -f core conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19672 # Warning - without using the other run time loading flags,
19673 # -berok will link without error, but may produce a broken library.
19674 no_undefined_flag=' ${wl}-bernotok'
19675 allow_undefined_flag=' ${wl}-berok'
19676 if test "$with_gnu_ld" = yes; then
19677 # We only use this code for GNU lds that support --whole-archive.
19678 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19679 else
19680 # Exported symbols can be pulled into shared objects from archives
19681 whole_archive_flag_spec='$convenience'
19683 archive_cmds_need_lc=yes
19684 # This is similar to how AIX traditionally builds its shared libraries.
19685 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'
19690 amigaos*)
19691 case $host_cpu in
19692 powerpc)
19693 # see comment about AmigaOS4 .so support
19694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19695 archive_expsym_cmds=''
19697 m68k)
19698 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)'
19699 hardcode_libdir_flag_spec='-L$libdir'
19700 hardcode_minus_L=yes
19702 esac
19705 bsdi[45]*)
19706 export_dynamic_flag_spec=-rdynamic
19709 cygwin* | mingw* | pw32* | cegcc*)
19710 # When not using gcc, we currently assume that we are using
19711 # Microsoft Visual C++.
19712 # hardcode_libdir_flag_spec is actually meaningless, as there is
19713 # no search path for DLLs.
19714 hardcode_libdir_flag_spec=' '
19715 allow_undefined_flag=unsupported
19716 # Tell ltmain to make .lib files, not .a files.
19717 libext=lib
19718 # Tell ltmain to make .dll files, not .so files.
19719 shrext_cmds=".dll"
19720 # FIXME: Setting linknames here is a bad hack.
19721 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19722 # The linker will automatically build a .lib file if we build a DLL.
19723 old_archive_from_new_cmds='true'
19724 # FIXME: Should let the user specify the lib program.
19725 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19726 fix_srcfile_path='`cygpath -w "$srcfile"`'
19727 enable_shared_with_static_runtimes=yes
19730 darwin* | rhapsody*)
19734 # Publish an arg to allow the user to select that Darwin host (and target)
19735 # libraries should be given install-names like @rpath/libfoo.dylib. This
19736 # requires that the user of the library then adds an 'rpath' to the DSO that
19737 # needs access.
19738 # NOTE: there are defaults below, for systems that support rpaths. The person
19739 # configuring can override the defaults for any system version that supports
19740 # them - they are, however, forced off for system versions without support.
19741 # Check whether --enable-darwin-at-rpath was given.
19742 if test "${enable_darwin_at_rpath+set}" = set; then :
19743 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19744 # This is not supported before macOS 10.5 / Darwin9.
19745 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19746 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19748 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19749 enable_darwin_at_rpath=no
19751 esac
19753 else
19754 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19755 # As above, before 10.5 / Darwin9 this does not work.
19756 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19757 enable_darwin_at_rpath=no
19760 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19761 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19762 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19763 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19765 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19766 enable_darwin_at_rpath=yes
19768 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19769 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19771 esac
19776 archive_cmds_need_lc=no
19777 hardcode_direct=no
19778 hardcode_automatic=yes
19779 hardcode_shlibpath_var=unsupported
19780 if test "$lt_cv_ld_force_load" = "yes"; then
19781 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\"`'
19782 else
19783 whole_archive_flag_spec=''
19785 link_all_deplibs=yes
19786 allow_undefined_flag="$_lt_dar_allow_undefined"
19787 case $cc_basename in
19788 ifort*) _lt_dar_can_shared=yes ;;
19789 *) _lt_dar_can_shared=$GCC ;;
19790 esac
19791 if test "$_lt_dar_can_shared" = "yes"; then
19792 output_verbose_link_cmd=func_echo_all
19793 _lt_install_name='\$rpath/\$soname'
19794 if test "x$enable_darwin_at_rpath" = "xyes"; then
19795 _lt_install_name='@rpath/\$soname'
19797 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19798 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19799 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
19800 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}"
19802 else
19803 ld_shlibs=no
19808 dgux*)
19809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19810 hardcode_libdir_flag_spec='-L$libdir'
19811 hardcode_shlibpath_var=no
19814 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19815 # support. Future versions do this automatically, but an explicit c++rt0.o
19816 # does not break anything, and helps significantly (at the cost of a little
19817 # extra space).
19818 freebsd2.2*)
19819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19820 hardcode_libdir_flag_spec='-R$libdir'
19821 hardcode_direct=yes
19822 hardcode_shlibpath_var=no
19825 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19826 freebsd2.*)
19827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19828 hardcode_direct=yes
19829 hardcode_minus_L=yes
19830 hardcode_shlibpath_var=no
19833 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19834 freebsd* | dragonfly*)
19835 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19836 hardcode_libdir_flag_spec='-R$libdir'
19837 hardcode_direct=yes
19838 hardcode_shlibpath_var=no
19841 hpux9*)
19842 if test "$GCC" = yes; then
19843 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'
19844 else
19845 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'
19847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19848 hardcode_libdir_separator=:
19849 hardcode_direct=yes
19851 # hardcode_minus_L: Not really in the search PATH,
19852 # but as the default location of the library.
19853 hardcode_minus_L=yes
19854 export_dynamic_flag_spec='${wl}-E'
19857 hpux10*)
19858 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19860 else
19861 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19863 if test "$with_gnu_ld" = no; then
19864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19865 hardcode_libdir_flag_spec_ld='+b $libdir'
19866 hardcode_libdir_separator=:
19867 hardcode_direct=yes
19868 hardcode_direct_absolute=yes
19869 export_dynamic_flag_spec='${wl}-E'
19870 # hardcode_minus_L: Not really in the search PATH,
19871 # but as the default location of the library.
19872 hardcode_minus_L=yes
19876 hpux11*)
19877 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19878 case $host_cpu in
19879 hppa*64*)
19880 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19882 ia64*)
19883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19886 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19888 esac
19889 else
19890 case $host_cpu in
19891 hppa*64*)
19892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19894 ia64*)
19895 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19899 # Older versions of the 11.00 compiler do not understand -b yet
19900 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19902 $as_echo_n "checking if $CC understands -b... " >&6; }
19903 if ${lt_cv_prog_compiler__b+:} false; then :
19904 $as_echo_n "(cached) " >&6
19905 else
19906 lt_cv_prog_compiler__b=no
19907 save_LDFLAGS="$LDFLAGS"
19908 LDFLAGS="$LDFLAGS -b"
19909 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19910 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19911 # The linker can only warn and ignore the option if not recognized
19912 # So say no if there are warnings
19913 if test -s conftest.err; then
19914 # Append any errors to the config.log.
19915 cat conftest.err 1>&5
19916 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19918 if diff conftest.exp conftest.er2 >/dev/null; then
19919 lt_cv_prog_compiler__b=yes
19921 else
19922 lt_cv_prog_compiler__b=yes
19925 $RM -r conftest*
19926 LDFLAGS="$save_LDFLAGS"
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19930 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19932 if test x"$lt_cv_prog_compiler__b" = xyes; then
19933 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19934 else
19935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19939 esac
19941 if test "$with_gnu_ld" = no; then
19942 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19943 hardcode_libdir_separator=:
19945 case $host_cpu in
19946 hppa*64*|ia64*)
19947 hardcode_direct=no
19948 hardcode_shlibpath_var=no
19951 hardcode_direct=yes
19952 hardcode_direct_absolute=yes
19953 export_dynamic_flag_spec='${wl}-E'
19955 # hardcode_minus_L: Not really in the search PATH,
19956 # but as the default location of the library.
19957 hardcode_minus_L=yes
19959 esac
19963 irix5* | irix6* | nonstopux*)
19964 if test "$GCC" = yes; then
19965 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'
19966 # Try to use the -exported_symbol ld option, if it does not
19967 # work, assume that -exports_file does not work either and
19968 # implicitly export all symbols.
19969 save_LDFLAGS="$LDFLAGS"
19970 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19973 int foo(void) {}
19974 _ACEOF
19975 if ac_fn_c_try_link "$LINENO"; then :
19976 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'
19979 rm -f core conftest.err conftest.$ac_objext \
19980 conftest$ac_exeext conftest.$ac_ext
19981 LDFLAGS="$save_LDFLAGS"
19982 else
19983 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'
19984 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'
19986 archive_cmds_need_lc='no'
19987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19988 hardcode_libdir_separator=:
19989 inherit_rpath=yes
19990 link_all_deplibs=yes
19993 netbsd*)
19994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19995 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19996 else
19997 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19999 hardcode_libdir_flag_spec='-R$libdir'
20000 hardcode_direct=yes
20001 hardcode_shlibpath_var=no
20004 newsos6)
20005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20006 hardcode_direct=yes
20007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20008 hardcode_libdir_separator=:
20009 hardcode_shlibpath_var=no
20012 *nto* | *qnx*)
20015 openbsd*)
20016 if test -f /usr/libexec/ld.so; then
20017 hardcode_direct=yes
20018 hardcode_shlibpath_var=no
20019 hardcode_direct_absolute=yes
20020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20022 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20024 export_dynamic_flag_spec='${wl}-E'
20025 else
20026 case $host_os in
20027 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20029 hardcode_libdir_flag_spec='-R$libdir'
20032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20033 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20035 esac
20037 else
20038 ld_shlibs=no
20042 os2*)
20043 hardcode_libdir_flag_spec='-L$libdir'
20044 hardcode_minus_L=yes
20045 allow_undefined_flag=unsupported
20046 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'
20047 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20050 osf3*)
20051 if test "$GCC" = yes; then
20052 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20053 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'
20054 else
20055 allow_undefined_flag=' -expect_unresolved \*'
20056 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'
20058 archive_cmds_need_lc='no'
20059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20060 hardcode_libdir_separator=:
20063 osf4* | osf5*) # as osf3* with the addition of -msym flag
20064 if test "$GCC" = yes; then
20065 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20066 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'
20067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20068 else
20069 allow_undefined_flag=' -expect_unresolved \*'
20070 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'
20071 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~
20072 $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'
20074 # Both c and cxx compiler support -rpath directly
20075 hardcode_libdir_flag_spec='-rpath $libdir'
20077 archive_cmds_need_lc='no'
20078 hardcode_libdir_separator=:
20081 solaris*)
20082 no_undefined_flag=' -z defs'
20083 if test "$GCC" = yes; then
20084 wlarc='${wl}'
20085 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20087 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20088 else
20089 case `$CC -V 2>&1` in
20090 *"Compilers 5.0"*)
20091 wlarc=''
20092 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20097 wlarc='${wl}'
20098 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20099 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20100 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20102 esac
20104 hardcode_libdir_flag_spec='-R$libdir'
20105 hardcode_shlibpath_var=no
20106 case $host_os in
20107 solaris2.[0-5] | solaris2.[0-5].*) ;;
20109 # The compiler driver will combine and reorder linker options,
20110 # but understands `-z linker_flag'. GCC discards it without `$wl',
20111 # but is careful enough not to reorder.
20112 # Supported since Solaris 2.6 (maybe 2.5.1?)
20113 if test "$GCC" = yes; then
20114 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20115 else
20116 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20119 esac
20120 link_all_deplibs=yes
20123 sunos4*)
20124 if test "x$host_vendor" = xsequent; then
20125 # Use $CC to link under sequent, because it throws in some extra .o
20126 # files that make .init and .fini sections work.
20127 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20128 else
20129 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20131 hardcode_libdir_flag_spec='-L$libdir'
20132 hardcode_direct=yes
20133 hardcode_minus_L=yes
20134 hardcode_shlibpath_var=no
20137 sysv4)
20138 case $host_vendor in
20139 sni)
20140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20141 hardcode_direct=yes # is this really true???
20143 siemens)
20144 ## LD is ld it makes a PLAMLIB
20145 ## CC just makes a GrossModule.
20146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20147 reload_cmds='$CC -r -o $output$reload_objs'
20148 hardcode_direct=no
20150 motorola)
20151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20152 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20154 esac
20155 runpath_var='LD_RUN_PATH'
20156 hardcode_shlibpath_var=no
20159 sysv4.3*)
20160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20161 hardcode_shlibpath_var=no
20162 export_dynamic_flag_spec='-Bexport'
20165 sysv4*MP*)
20166 if test -d /usr/nec; then
20167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20168 hardcode_shlibpath_var=no
20169 runpath_var=LD_RUN_PATH
20170 hardcode_runpath_var=yes
20171 ld_shlibs=yes
20175 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20176 no_undefined_flag='${wl}-z,text'
20177 archive_cmds_need_lc=no
20178 hardcode_shlibpath_var=no
20179 runpath_var='LD_RUN_PATH'
20181 if test "$GCC" = yes; then
20182 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20184 else
20185 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20186 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20190 sysv5* | sco3.2v5* | sco5v6*)
20191 # Note: We can NOT use -z defs as we might desire, because we do not
20192 # link with -lc, and that would cause any symbols used from libc to
20193 # always be unresolved, which means just about no library would
20194 # ever link correctly. If we're not using GNU ld we use -z text
20195 # though, which does catch some bad symbols but isn't as heavy-handed
20196 # as -z defs.
20197 no_undefined_flag='${wl}-z,text'
20198 allow_undefined_flag='${wl}-z,nodefs'
20199 archive_cmds_need_lc=no
20200 hardcode_shlibpath_var=no
20201 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20202 hardcode_libdir_separator=':'
20203 link_all_deplibs=yes
20204 export_dynamic_flag_spec='${wl}-Bexport'
20205 runpath_var='LD_RUN_PATH'
20207 if test "$GCC" = yes; then
20208 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20209 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20210 else
20211 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20212 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20216 uts4*)
20217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20218 hardcode_libdir_flag_spec='-L$libdir'
20219 hardcode_shlibpath_var=no
20223 ld_shlibs=no
20225 esac
20227 if test x$host_vendor = xsni; then
20228 case $host in
20229 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20230 export_dynamic_flag_spec='${wl}-Blargedynsym'
20232 esac
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20237 $as_echo "$ld_shlibs" >&6; }
20238 test "$ld_shlibs" = no && can_build_shared=no
20240 with_gnu_ld=$with_gnu_ld
20257 # Do we need to explicitly link libc?
20259 case "x$archive_cmds_need_lc" in
20260 x|xyes)
20261 # Assume -lc should be added
20262 archive_cmds_need_lc=yes
20264 if test "$enable_shared" = yes && test "$GCC" = yes; then
20265 case $archive_cmds in
20266 *'~'*)
20267 # FIXME: we may have to deal with multi-command sequences.
20269 '$CC '*)
20270 # Test whether the compiler implicitly links with -lc since on some
20271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20272 # to ld, don't add -lc before -lgcc.
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20274 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20275 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20276 $as_echo_n "(cached) " >&6
20277 else
20278 $RM conftest*
20279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20282 (eval $ac_compile) 2>&5
20283 ac_status=$?
20284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20285 test $ac_status = 0; } 2>conftest.err; then
20286 soname=conftest
20287 lib=conftest
20288 libobjs=conftest.$ac_objext
20289 deplibs=
20290 wl=$lt_prog_compiler_wl
20291 pic_flag=$lt_prog_compiler_pic
20292 compiler_flags=-v
20293 linker_flags=-v
20294 verstring=
20295 output_objdir=.
20296 libname=conftest
20297 lt_save_allow_undefined_flag=$allow_undefined_flag
20298 allow_undefined_flag=
20299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20300 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20301 ac_status=$?
20302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20303 test $ac_status = 0; }
20304 then
20305 lt_cv_archive_cmds_need_lc=no
20306 else
20307 lt_cv_archive_cmds_need_lc=yes
20309 allow_undefined_flag=$lt_save_allow_undefined_flag
20310 else
20311 cat conftest.err 1>&5
20313 $RM conftest*
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20317 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20318 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20320 esac
20323 esac
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20482 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20484 if test "$GCC" = yes; then
20485 case $host_os in
20486 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20487 *) lt_awk_arg="/^libraries:/" ;;
20488 esac
20489 case $host_os in
20490 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20491 *) lt_sed_strip_eq="s,=/,/,g" ;;
20492 esac
20493 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20494 case $lt_search_path_spec in
20495 *\;*)
20496 # if the path contains ";" then we assume it to be the separator
20497 # otherwise default to the standard path separator (i.e. ":") - it is
20498 # assumed that no part of a normal pathname contains ";" but that should
20499 # okay in the real world where ";" in dirpaths is itself problematic.
20500 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20503 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20505 esac
20506 # Ok, now we have the path, separated by spaces, we can step through it
20507 # and add multilib dir if necessary.
20508 lt_tmp_lt_search_path_spec=
20509 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20510 for lt_sys_path in $lt_search_path_spec; do
20511 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20512 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20513 else
20514 test -d "$lt_sys_path" && \
20515 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20517 done
20518 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20519 BEGIN {RS=" "; FS="/|\n";} {
20520 lt_foo="";
20521 lt_count=0;
20522 for (lt_i = NF; lt_i > 0; lt_i--) {
20523 if ($lt_i != "" && $lt_i != ".") {
20524 if ($lt_i == "..") {
20525 lt_count++;
20526 } else {
20527 if (lt_count == 0) {
20528 lt_foo="/" $lt_i lt_foo;
20529 } else {
20530 lt_count--;
20535 if (lt_foo != "") { lt_freq[lt_foo]++; }
20536 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20538 # AWK program above erroneously prepends '/' to C:/dos/paths
20539 # for these hosts.
20540 case $host_os in
20541 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20542 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20543 esac
20544 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20545 else
20546 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20548 library_names_spec=
20549 libname_spec='lib$name'
20550 soname_spec=
20551 shrext_cmds=".so"
20552 postinstall_cmds=
20553 postuninstall_cmds=
20554 finish_cmds=
20555 finish_eval=
20556 shlibpath_var=
20557 shlibpath_overrides_runpath=unknown
20558 version_type=none
20559 dynamic_linker="$host_os ld.so"
20560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20561 need_lib_prefix=unknown
20562 hardcode_into_libs=no
20564 # when you set need_version to no, make sure it does not cause -set_version
20565 # flags to be left without arguments
20566 need_version=unknown
20568 case $host_os in
20569 aix3*)
20570 version_type=linux
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20572 shlibpath_var=LIBPATH
20574 # AIX 3 has no versioning support, so we append a major version to the name.
20575 soname_spec='${libname}${release}${shared_ext}$major'
20578 aix[4-9]*)
20579 version_type=linux
20580 need_lib_prefix=no
20581 need_version=no
20582 hardcode_into_libs=yes
20583 if test "$host_cpu" = ia64; then
20584 # AIX 5 supports IA64
20585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20586 shlibpath_var=LD_LIBRARY_PATH
20587 else
20588 # With GCC up to 2.95.x, collect2 would create an import file
20589 # for dependence libraries. The import file would start with
20590 # the line `#! .'. This would cause the generated library to
20591 # depend on `.', always an invalid library. This was fixed in
20592 # development snapshots of GCC prior to 3.0.
20593 case $host_os in
20594 aix4 | aix4.[01] | aix4.[01].*)
20595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20596 echo ' yes '
20597 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20599 else
20600 can_build_shared=no
20603 esac
20604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20605 # soname into executable. Probably we can add versioning support to
20606 # collect2, so additional links can be useful in future.
20607 if test "$aix_use_runtimelinking" = yes; then
20608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20609 # instead of lib<name>.a to let people know that these are not
20610 # typical AIX shared libraries.
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20612 else
20613 # We preserve .a as extension for shared libraries through AIX4.2
20614 # and later when we are not doing run time linking.
20615 library_names_spec='${libname}${release}.a $libname.a'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20618 shlibpath_var=LIBPATH
20622 amigaos*)
20623 case $host_cpu in
20624 powerpc)
20625 # Since July 2007 AmigaOS4 officially supports .so libraries.
20626 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20629 m68k)
20630 library_names_spec='$libname.ixlibrary $libname.a'
20631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20632 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'
20634 esac
20637 beos*)
20638 library_names_spec='${libname}${shared_ext}'
20639 dynamic_linker="$host_os ld.so"
20640 shlibpath_var=LIBRARY_PATH
20643 bsdi[45]*)
20644 version_type=linux
20645 need_version=no
20646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20647 soname_spec='${libname}${release}${shared_ext}$major'
20648 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20649 shlibpath_var=LD_LIBRARY_PATH
20650 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20651 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20652 # the default ld.so.conf also contains /usr/contrib/lib and
20653 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20654 # libtool to hard-code these into programs
20657 cygwin* | mingw* | pw32* | cegcc*)
20658 version_type=windows
20659 shrext_cmds=".dll"
20660 need_version=no
20661 need_lib_prefix=no
20663 case $GCC,$host_os in
20664 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20665 library_names_spec='$libname.dll.a'
20666 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20667 postinstall_cmds='base_file=`basename \${file}`~
20668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20669 dldir=$destdir/`dirname \$dlpath`~
20670 test -d \$dldir || mkdir -p \$dldir~
20671 $install_prog $dir/$dlname \$dldir/$dlname~
20672 chmod a+x \$dldir/$dlname~
20673 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20674 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20677 dlpath=$dir/\$dldll~
20678 $RM \$dlpath'
20679 shlibpath_overrides_runpath=yes
20681 case $host_os in
20682 cygwin*)
20683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20688 mingw* | cegcc*)
20689 # MinGW DLLs use traditional 'lib' prefix
20690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20692 pw32*)
20693 # pw32 DLLs use 'pw' prefix rather than 'lib'
20694 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20696 esac
20700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20702 esac
20703 dynamic_linker='Win32 ld.exe'
20704 # FIXME: first we should search . and the directory the executable is in
20705 shlibpath_var=PATH
20708 darwin* | rhapsody*)
20709 dynamic_linker="$host_os dyld"
20710 version_type=darwin
20711 need_lib_prefix=no
20712 need_version=no
20713 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20714 soname_spec='${libname}${release}${major}$shared_ext'
20715 shlibpath_overrides_runpath=yes
20716 shlibpath_var=DYLD_LIBRARY_PATH
20717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20719 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20723 dgux*)
20724 version_type=linux
20725 need_lib_prefix=no
20726 need_version=no
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20728 soname_spec='${libname}${release}${shared_ext}$major'
20729 shlibpath_var=LD_LIBRARY_PATH
20732 freebsd* | dragonfly*)
20733 # DragonFly does not have aout. When/if they implement a new
20734 # versioning mechanism, adjust this.
20735 if test -x /usr/bin/objformat; then
20736 objformat=`/usr/bin/objformat`
20737 else
20738 case $host_os in
20739 freebsd[23].*) objformat=aout ;;
20740 *) objformat=elf ;;
20741 esac
20743 version_type=freebsd-$objformat
20744 case $version_type in
20745 freebsd-elf*)
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20747 need_version=no
20748 need_lib_prefix=no
20750 freebsd-*)
20751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20752 need_version=yes
20754 esac
20755 shlibpath_var=LD_LIBRARY_PATH
20756 case $host_os in
20757 freebsd2.*)
20758 shlibpath_overrides_runpath=yes
20760 freebsd3.[01]* | freebsdelf3.[01]*)
20761 shlibpath_overrides_runpath=yes
20762 hardcode_into_libs=yes
20764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20766 shlibpath_overrides_runpath=no
20767 hardcode_into_libs=yes
20769 *) # from 4.6 on, and DragonFly
20770 shlibpath_overrides_runpath=yes
20771 hardcode_into_libs=yes
20773 esac
20776 haiku*)
20777 version_type=linux
20778 need_lib_prefix=no
20779 need_version=no
20780 dynamic_linker="$host_os runtime_loader"
20781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20782 soname_spec='${libname}${release}${shared_ext}$major'
20783 shlibpath_var=LIBRARY_PATH
20784 shlibpath_overrides_runpath=yes
20785 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20786 hardcode_into_libs=yes
20789 hpux9* | hpux10* | hpux11*)
20790 # Give a soname corresponding to the major version so that dld.sl refuses to
20791 # link against other versions.
20792 version_type=sunos
20793 need_lib_prefix=no
20794 need_version=no
20795 case $host_cpu in
20796 ia64*)
20797 shrext_cmds='.so'
20798 hardcode_into_libs=yes
20799 dynamic_linker="$host_os dld.so"
20800 shlibpath_var=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 soname_spec='${libname}${release}${shared_ext}$major'
20804 if test "X$HPUX_IA64_MODE" = X32; then
20805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20806 else
20807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20811 hppa*64*)
20812 shrext_cmds='.sl'
20813 hardcode_into_libs=yes
20814 dynamic_linker="$host_os dld.sl"
20815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20818 soname_spec='${libname}${release}${shared_ext}$major'
20819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20823 shrext_cmds='.sl'
20824 dynamic_linker="$host_os dld.sl"
20825 shlibpath_var=SHLIB_PATH
20826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20828 soname_spec='${libname}${release}${shared_ext}$major'
20830 esac
20831 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20832 postinstall_cmds='chmod 555 $lib'
20833 # or fails outright, so override atomically:
20834 install_override_mode=555
20837 interix[3-9]*)
20838 version_type=linux
20839 need_lib_prefix=no
20840 need_version=no
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20844 shlibpath_var=LD_LIBRARY_PATH
20845 shlibpath_overrides_runpath=no
20846 hardcode_into_libs=yes
20849 irix5* | irix6* | nonstopux*)
20850 case $host_os in
20851 nonstopux*) version_type=nonstopux ;;
20853 if test "$lt_cv_prog_gnu_ld" = yes; then
20854 version_type=linux
20855 else
20856 version_type=irix
20857 fi ;;
20858 esac
20859 need_lib_prefix=no
20860 need_version=no
20861 soname_spec='${libname}${release}${shared_ext}$major'
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20863 case $host_os in
20864 irix5* | nonstopux*)
20865 libsuff= shlibsuff=
20868 case $LD in # libtool.m4 will add one of these switches to LD
20869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20870 libsuff= shlibsuff= libmagic=32-bit;;
20871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20872 libsuff=32 shlibsuff=N32 libmagic=N32;;
20873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20875 *) libsuff= shlibsuff= libmagic=never-match;;
20876 esac
20878 esac
20879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20880 shlibpath_overrides_runpath=no
20881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20883 hardcode_into_libs=yes
20886 # No shared lib support for Linux oldld, aout, or coff.
20887 linux*oldld* | linux*aout* | linux*coff*)
20888 dynamic_linker=no
20891 # This must be Linux ELF.
20893 # uclinux* changes (here and below) have been submitted to the libtool
20894 # project, but have not yet been accepted: they are GCC-local changes
20895 # for the time being. (See
20896 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20897 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20898 version_type=linux
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 shlibpath_overrides_runpath=no
20907 # Some binutils ld are patched to set DT_RUNPATH
20908 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 lt_cv_shlibpath_overrides_runpath=no
20912 save_LDFLAGS=$LDFLAGS
20913 save_libdir=$libdir
20914 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20915 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20920 main ()
20924 return 0;
20926 _ACEOF
20927 if ac_fn_c_try_link "$LINENO"; then :
20928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20929 lt_cv_shlibpath_overrides_runpath=yes
20932 rm -f core conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20934 LDFLAGS=$save_LDFLAGS
20935 libdir=$save_libdir
20939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20941 # This implies no fast_install, which is unacceptable.
20942 # Some rework will be needed to allow for fast_install
20943 # before this can be enabled.
20944 hardcode_into_libs=yes
20946 # Append ld.so.conf contents to the search path
20947 if test -f /etc/ld.so.conf; then
20948 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' ' '`
20949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20952 # We used to test for /lib/ld.so.1 and disable shared libraries on
20953 # powerpc, because MkLinux only supported shared libraries with the
20954 # GNU dynamic linker. Since this was broken with cross compilers,
20955 # most powerpc-linux boxes support dynamic linking these days and
20956 # people can always --disable-shared, the test was removed, and we
20957 # assume the GNU/Linux dynamic linker is in use.
20958 dynamic_linker='GNU/Linux ld.so'
20961 netbsd*)
20962 version_type=sunos
20963 need_lib_prefix=no
20964 need_version=no
20965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20968 dynamic_linker='NetBSD (a.out) ld.so'
20969 else
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 dynamic_linker='NetBSD ld.elf_so'
20974 shlibpath_var=LD_LIBRARY_PATH
20975 shlibpath_overrides_runpath=yes
20976 hardcode_into_libs=yes
20979 newsos6)
20980 version_type=linux
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 shlibpath_overrides_runpath=yes
20986 *nto* | *qnx*)
20987 version_type=qnx
20988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 soname_spec='${libname}${release}${shared_ext}$major'
20992 shlibpath_var=LD_LIBRARY_PATH
20993 shlibpath_overrides_runpath=no
20994 hardcode_into_libs=yes
20995 dynamic_linker='ldqnx.so'
20998 openbsd*)
20999 version_type=sunos
21000 sys_lib_dlsearch_path_spec="/usr/lib"
21001 need_lib_prefix=no
21002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21003 case $host_os in
21004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21005 *) need_version=no ;;
21006 esac
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21009 shlibpath_var=LD_LIBRARY_PATH
21010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21011 case $host_os in
21012 openbsd2.[89] | openbsd2.[89].*)
21013 shlibpath_overrides_runpath=no
21016 shlibpath_overrides_runpath=yes
21018 esac
21019 else
21020 shlibpath_overrides_runpath=yes
21024 os2*)
21025 libname_spec='$name'
21026 shrext_cmds=".dll"
21027 need_lib_prefix=no
21028 library_names_spec='$libname${shared_ext} $libname.a'
21029 dynamic_linker='OS/2 ld.exe'
21030 shlibpath_var=LIBPATH
21033 osf3* | osf4* | osf5*)
21034 version_type=osf
21035 need_lib_prefix=no
21036 need_version=no
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21044 rdos*)
21045 dynamic_linker=no
21048 solaris*)
21049 version_type=linux
21050 need_lib_prefix=no
21051 need_version=no
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath=yes
21056 hardcode_into_libs=yes
21057 # ldd complains unless libraries are executable
21058 postinstall_cmds='chmod +x $lib'
21061 sunos4*)
21062 version_type=sunos
21063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21065 shlibpath_var=LD_LIBRARY_PATH
21066 shlibpath_overrides_runpath=yes
21067 if test "$with_gnu_ld" = yes; then
21068 need_lib_prefix=no
21070 need_version=yes
21073 sysv4 | sysv4.3*)
21074 version_type=linux
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 soname_spec='${libname}${release}${shared_ext}$major'
21077 shlibpath_var=LD_LIBRARY_PATH
21078 case $host_vendor in
21079 sni)
21080 shlibpath_overrides_runpath=no
21081 need_lib_prefix=no
21082 runpath_var=LD_RUN_PATH
21084 siemens)
21085 need_lib_prefix=no
21087 motorola)
21088 need_lib_prefix=no
21089 need_version=no
21090 shlibpath_overrides_runpath=no
21091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21093 esac
21096 sysv4*MP*)
21097 if test -d /usr/nec ;then
21098 version_type=linux
21099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21100 soname_spec='$libname${shared_ext}.$major'
21101 shlibpath_var=LD_LIBRARY_PATH
21105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21106 version_type=freebsd-elf
21107 need_lib_prefix=no
21108 need_version=no
21109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21110 soname_spec='${libname}${release}${shared_ext}$major'
21111 shlibpath_var=LD_LIBRARY_PATH
21112 shlibpath_overrides_runpath=yes
21113 hardcode_into_libs=yes
21114 if test "$with_gnu_ld" = yes; then
21115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21116 else
21117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21118 case $host_os in
21119 sco3.2v5*)
21120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21122 esac
21124 sys_lib_dlsearch_path_spec='/usr/lib'
21127 tpf*)
21128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21129 version_type=linux
21130 need_lib_prefix=no
21131 need_version=no
21132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21133 shlibpath_var=LD_LIBRARY_PATH
21134 shlibpath_overrides_runpath=no
21135 hardcode_into_libs=yes
21138 uts4*)
21139 version_type=linux
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 shlibpath_var=LD_LIBRARY_PATH
21145 # Shared libraries for VwWorks, >= 7 only at this stage
21146 # and (fpic) still incompatible with "large" code models
21147 # in a few configurations. Only for RTP mode in any case,
21148 # and upon explicit request at configure time.
21149 vxworks7*)
21150 dynamic_linker=no
21151 case ${with_multisubdir}-${enable_shared} in
21152 *large*)
21154 *mrtp*-yes)
21155 version_type=linux
21156 need_lib_prefix=no
21157 need_version=no
21158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21159 soname_spec='${libname}${release}${shared_ext}$major'
21160 dynamic_linker="$host_os module_loader"
21162 esac
21165 dynamic_linker=no
21167 esac
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21169 $as_echo "$dynamic_linker" >&6; }
21170 test "$dynamic_linker" = no && can_build_shared=no
21172 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21173 if test "$GCC" = yes; then
21174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21177 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21178 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21180 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21181 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21276 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21277 hardcode_action=
21278 if test -n "$hardcode_libdir_flag_spec" ||
21279 test -n "$runpath_var" ||
21280 test "X$hardcode_automatic" = "Xyes" ; then
21282 # We can hardcode non-existent directories.
21283 if test "$hardcode_direct" != no &&
21284 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21285 # have to relink, otherwise we might link with an installed library
21286 # when we should be linking with a yet-to-be-installed one
21287 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21288 test "$hardcode_minus_L" != no; then
21289 # Linking always hardcodes the temporary library directory.
21290 hardcode_action=relink
21291 else
21292 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21293 hardcode_action=immediate
21295 else
21296 # We cannot hardcode anything, or else we can only hardcode existing
21297 # directories.
21298 hardcode_action=unsupported
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21301 $as_echo "$hardcode_action" >&6; }
21303 if test "$hardcode_action" = relink ||
21304 test "$inherit_rpath" = yes; then
21305 # Fast installation is not supported
21306 enable_fast_install=no
21307 elif test "$shlibpath_overrides_runpath" = yes ||
21308 test "$enable_shared" = no; then
21309 # Fast installation is not necessary
21310 enable_fast_install=needless
21318 if test "x$enable_dlopen" != xyes; then
21319 enable_dlopen=unknown
21320 enable_dlopen_self=unknown
21321 enable_dlopen_self_static=unknown
21322 else
21323 lt_cv_dlopen=no
21324 lt_cv_dlopen_libs=
21326 case $host_os in
21327 beos*)
21328 lt_cv_dlopen="load_add_on"
21329 lt_cv_dlopen_libs=
21330 lt_cv_dlopen_self=yes
21333 mingw* | pw32* | cegcc*)
21334 lt_cv_dlopen="LoadLibrary"
21335 lt_cv_dlopen_libs=
21338 cygwin*)
21339 lt_cv_dlopen="dlopen"
21340 lt_cv_dlopen_libs=
21343 darwin*)
21344 # if libdl is installed we need to link against it
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21346 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21347 if ${ac_cv_lib_dl_dlopen+:} false; then :
21348 $as_echo_n "(cached) " >&6
21349 else
21350 ac_check_lib_save_LIBS=$LIBS
21351 LIBS="-ldl $LIBS"
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21355 /* Override any GCC internal prototype to avoid an error.
21356 Use char because int might match the return type of a GCC
21357 builtin and then its argument prototype would still apply. */
21358 #ifdef __cplusplus
21359 extern "C"
21360 #endif
21361 char dlopen ();
21363 main ()
21365 return dlopen ();
21367 return 0;
21369 _ACEOF
21370 if ac_fn_c_try_link "$LINENO"; then :
21371 ac_cv_lib_dl_dlopen=yes
21372 else
21373 ac_cv_lib_dl_dlopen=no
21375 rm -f core conftest.err conftest.$ac_objext \
21376 conftest$ac_exeext conftest.$ac_ext
21377 LIBS=$ac_check_lib_save_LIBS
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21380 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21381 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21383 else
21385 lt_cv_dlopen="dyld"
21386 lt_cv_dlopen_libs=
21387 lt_cv_dlopen_self=yes
21394 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21395 if test "x$ac_cv_func_shl_load" = xyes; then :
21396 lt_cv_dlopen="shl_load"
21397 else
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21399 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21400 if ${ac_cv_lib_dld_shl_load+:} false; then :
21401 $as_echo_n "(cached) " >&6
21402 else
21403 ac_check_lib_save_LIBS=$LIBS
21404 LIBS="-ldld $LIBS"
21405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21406 /* end confdefs.h. */
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21411 #ifdef __cplusplus
21412 extern "C"
21413 #endif
21414 char shl_load ();
21416 main ()
21418 return shl_load ();
21420 return 0;
21422 _ACEOF
21423 if ac_fn_c_try_link "$LINENO"; then :
21424 ac_cv_lib_dld_shl_load=yes
21425 else
21426 ac_cv_lib_dld_shl_load=no
21428 rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21430 LIBS=$ac_check_lib_save_LIBS
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21433 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21434 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21435 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21436 else
21437 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21438 if test "x$ac_cv_func_dlopen" = xyes; then :
21439 lt_cv_dlopen="dlopen"
21440 else
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21442 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21443 if ${ac_cv_lib_dl_dlopen+:} false; then :
21444 $as_echo_n "(cached) " >&6
21445 else
21446 ac_check_lib_save_LIBS=$LIBS
21447 LIBS="-ldl $LIBS"
21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21449 /* end confdefs.h. */
21451 /* Override any GCC internal prototype to avoid an error.
21452 Use char because int might match the return type of a GCC
21453 builtin and then its argument prototype would still apply. */
21454 #ifdef __cplusplus
21455 extern "C"
21456 #endif
21457 char dlopen ();
21459 main ()
21461 return dlopen ();
21463 return 0;
21465 _ACEOF
21466 if ac_fn_c_try_link "$LINENO"; then :
21467 ac_cv_lib_dl_dlopen=yes
21468 else
21469 ac_cv_lib_dl_dlopen=no
21471 rm -f core conftest.err conftest.$ac_objext \
21472 conftest$ac_exeext conftest.$ac_ext
21473 LIBS=$ac_check_lib_save_LIBS
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21476 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21477 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21479 else
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21481 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21482 if ${ac_cv_lib_svld_dlopen+:} false; then :
21483 $as_echo_n "(cached) " >&6
21484 else
21485 ac_check_lib_save_LIBS=$LIBS
21486 LIBS="-lsvld $LIBS"
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21490 /* Override any GCC internal prototype to avoid an error.
21491 Use char because int might match the return type of a GCC
21492 builtin and then its argument prototype would still apply. */
21493 #ifdef __cplusplus
21494 extern "C"
21495 #endif
21496 char dlopen ();
21498 main ()
21500 return dlopen ();
21502 return 0;
21504 _ACEOF
21505 if ac_fn_c_try_link "$LINENO"; then :
21506 ac_cv_lib_svld_dlopen=yes
21507 else
21508 ac_cv_lib_svld_dlopen=no
21510 rm -f core conftest.err conftest.$ac_objext \
21511 conftest$ac_exeext conftest.$ac_ext
21512 LIBS=$ac_check_lib_save_LIBS
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21515 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21516 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21518 else
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21520 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21521 if ${ac_cv_lib_dld_dld_link+:} false; then :
21522 $as_echo_n "(cached) " >&6
21523 else
21524 ac_check_lib_save_LIBS=$LIBS
21525 LIBS="-ldld $LIBS"
21526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h. */
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21532 #ifdef __cplusplus
21533 extern "C"
21534 #endif
21535 char dld_link ();
21537 main ()
21539 return dld_link ();
21541 return 0;
21543 _ACEOF
21544 if ac_fn_c_try_link "$LINENO"; then :
21545 ac_cv_lib_dld_dld_link=yes
21546 else
21547 ac_cv_lib_dld_dld_link=no
21549 rm -f core conftest.err conftest.$ac_objext \
21550 conftest$ac_exeext conftest.$ac_ext
21551 LIBS=$ac_check_lib_save_LIBS
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21554 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21555 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21556 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21575 esac
21577 if test "x$lt_cv_dlopen" != xno; then
21578 enable_dlopen=yes
21579 else
21580 enable_dlopen=no
21583 case $lt_cv_dlopen in
21584 dlopen)
21585 save_CPPFLAGS="$CPPFLAGS"
21586 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21588 save_LDFLAGS="$LDFLAGS"
21589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21591 save_LIBS="$LIBS"
21592 LIBS="$lt_cv_dlopen_libs $LIBS"
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21595 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21596 if ${lt_cv_dlopen_self+:} false; then :
21597 $as_echo_n "(cached) " >&6
21598 else
21599 if test "$cross_compiling" = yes; then :
21600 lt_cv_dlopen_self=cross
21601 else
21602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21603 lt_status=$lt_dlunknown
21604 cat > conftest.$ac_ext <<_LT_EOF
21605 #line 21605 "configure"
21606 #include "confdefs.h"
21608 #if HAVE_DLFCN_H
21609 #include <dlfcn.h>
21610 #endif
21612 #include <stdio.h>
21614 #ifdef RTLD_GLOBAL
21615 # define LT_DLGLOBAL RTLD_GLOBAL
21616 #else
21617 # ifdef DL_GLOBAL
21618 # define LT_DLGLOBAL DL_GLOBAL
21619 # else
21620 # define LT_DLGLOBAL 0
21621 # endif
21622 #endif
21624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21625 find out it does not work in some platform. */
21626 #ifndef LT_DLLAZY_OR_NOW
21627 # ifdef RTLD_LAZY
21628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21629 # else
21630 # ifdef DL_LAZY
21631 # define LT_DLLAZY_OR_NOW DL_LAZY
21632 # else
21633 # ifdef RTLD_NOW
21634 # define LT_DLLAZY_OR_NOW RTLD_NOW
21635 # else
21636 # ifdef DL_NOW
21637 # define LT_DLLAZY_OR_NOW DL_NOW
21638 # else
21639 # define LT_DLLAZY_OR_NOW 0
21640 # endif
21641 # endif
21642 # endif
21643 # endif
21644 #endif
21646 /* When -fvisbility=hidden is used, assume the code has been annotated
21647 correspondingly for the symbols needed. */
21648 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21649 void fnord () __attribute__((visibility("default")));
21650 #endif
21652 void fnord () { int i=42; }
21653 int main ()
21655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21656 int status = $lt_dlunknown;
21658 if (self)
21660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21661 else
21663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21664 else puts (dlerror ());
21666 /* dlclose (self); */
21668 else
21669 puts (dlerror ());
21671 return status;
21673 _LT_EOF
21674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21675 (eval $ac_link) 2>&5
21676 ac_status=$?
21677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21678 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21679 (./conftest; exit; ) >&5 2>/dev/null
21680 lt_status=$?
21681 case x$lt_status in
21682 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21683 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21684 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21685 esac
21686 else :
21687 # compilation failed
21688 lt_cv_dlopen_self=no
21691 rm -fr conftest*
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21696 $as_echo "$lt_cv_dlopen_self" >&6; }
21698 if test "x$lt_cv_dlopen_self" = xyes; then
21699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21701 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21702 if ${lt_cv_dlopen_self_static+:} false; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 if test "$cross_compiling" = yes; then :
21706 lt_cv_dlopen_self_static=cross
21707 else
21708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21709 lt_status=$lt_dlunknown
21710 cat > conftest.$ac_ext <<_LT_EOF
21711 #line 21711 "configure"
21712 #include "confdefs.h"
21714 #if HAVE_DLFCN_H
21715 #include <dlfcn.h>
21716 #endif
21718 #include <stdio.h>
21720 #ifdef RTLD_GLOBAL
21721 # define LT_DLGLOBAL RTLD_GLOBAL
21722 #else
21723 # ifdef DL_GLOBAL
21724 # define LT_DLGLOBAL DL_GLOBAL
21725 # else
21726 # define LT_DLGLOBAL 0
21727 # endif
21728 #endif
21730 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21731 find out it does not work in some platform. */
21732 #ifndef LT_DLLAZY_OR_NOW
21733 # ifdef RTLD_LAZY
21734 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21735 # else
21736 # ifdef DL_LAZY
21737 # define LT_DLLAZY_OR_NOW DL_LAZY
21738 # else
21739 # ifdef RTLD_NOW
21740 # define LT_DLLAZY_OR_NOW RTLD_NOW
21741 # else
21742 # ifdef DL_NOW
21743 # define LT_DLLAZY_OR_NOW DL_NOW
21744 # else
21745 # define LT_DLLAZY_OR_NOW 0
21746 # endif
21747 # endif
21748 # endif
21749 # endif
21750 #endif
21752 /* When -fvisbility=hidden is used, assume the code has been annotated
21753 correspondingly for the symbols needed. */
21754 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21755 void fnord () __attribute__((visibility("default")));
21756 #endif
21758 void fnord () { int i=42; }
21759 int main ()
21761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21762 int status = $lt_dlunknown;
21764 if (self)
21766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21767 else
21769 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21770 else puts (dlerror ());
21772 /* dlclose (self); */
21774 else
21775 puts (dlerror ());
21777 return status;
21779 _LT_EOF
21780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21781 (eval $ac_link) 2>&5
21782 ac_status=$?
21783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21784 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21785 (./conftest; exit; ) >&5 2>/dev/null
21786 lt_status=$?
21787 case x$lt_status in
21788 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21789 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21790 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21791 esac
21792 else :
21793 # compilation failed
21794 lt_cv_dlopen_self_static=no
21797 rm -fr conftest*
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21802 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21805 CPPFLAGS="$save_CPPFLAGS"
21806 LDFLAGS="$save_LDFLAGS"
21807 LIBS="$save_LIBS"
21809 esac
21811 case $lt_cv_dlopen_self in
21812 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21813 *) enable_dlopen_self=unknown ;;
21814 esac
21816 case $lt_cv_dlopen_self_static in
21817 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21818 *) enable_dlopen_self_static=unknown ;;
21819 esac
21838 striplib=
21839 old_striplib=
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21841 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21842 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21846 $as_echo "yes" >&6; }
21847 else
21848 # FIXME - insert some real tests, host_os isn't really good enough
21849 case $host_os in
21850 darwin*)
21851 if test -n "$STRIP" ; then
21852 striplib="$STRIP -x"
21853 old_striplib="$STRIP -S"
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21856 else
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21858 $as_echo "no" >&6; }
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21863 $as_echo "no" >&6; }
21865 esac
21879 # Report which library types will actually be built
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21881 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21883 $as_echo "$can_build_shared" >&6; }
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21886 $as_echo_n "checking whether to build shared libraries... " >&6; }
21887 test "$can_build_shared" = "no" && enable_shared=no
21889 # On AIX, shared libraries and static libraries use the same namespace, and
21890 # are all built from PIC.
21891 case $host_os in
21892 aix3*)
21893 test "$enable_shared" = yes && enable_static=no
21894 if test -n "$RANLIB"; then
21895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21896 postinstall_cmds='$RANLIB $lib'
21900 aix[4-9]*)
21901 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21902 test "$enable_shared" = yes && enable_static=no
21905 esac
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21907 $as_echo "$enable_shared" >&6; }
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21910 $as_echo_n "checking whether to build static libraries... " >&6; }
21911 # Make sure either enable_shared or enable_static is yes.
21912 test "$enable_shared" = yes || enable_static=yes
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21914 $as_echo "$enable_static" >&6; }
21920 ac_ext=cpp
21921 ac_cpp='$CXXCPP $CPPFLAGS'
21922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21926 CC="$lt_save_CC"
21928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21930 (test "X$CXX" != "Xg++"))) ; then
21931 ac_ext=cpp
21932 ac_cpp='$CXXCPP $CPPFLAGS'
21933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21937 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21938 if test -z "$CXXCPP"; then
21939 if ${ac_cv_prog_CXXCPP+:} false; then :
21940 $as_echo_n "(cached) " >&6
21941 else
21942 # Double quotes because CXXCPP needs to be expanded
21943 for CXXCPP in "$CXX -E" "/lib/cpp"
21945 ac_preproc_ok=false
21946 for ac_cxx_preproc_warn_flag in '' yes
21948 # Use a header file that comes with gcc, so configuring glibc
21949 # with a fresh cross-compiler works.
21950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21951 # <limits.h> exists even on freestanding compilers.
21952 # On the NeXT, cc -E runs the code through the compiler's parser,
21953 # not just through cpp. "Syntax error" is here to catch this case.
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21956 #ifdef __STDC__
21957 # include <limits.h>
21958 #else
21959 # include <assert.h>
21960 #endif
21961 Syntax error
21962 _ACEOF
21963 if ac_fn_cxx_try_cpp "$LINENO"; then :
21965 else
21966 # Broken: fails on valid input.
21967 continue
21969 rm -f conftest.err conftest.i conftest.$ac_ext
21971 # OK, works on sane cases. Now check whether nonexistent headers
21972 # can be detected and how.
21973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21974 /* end confdefs.h. */
21975 #include <ac_nonexistent.h>
21976 _ACEOF
21977 if ac_fn_cxx_try_cpp "$LINENO"; then :
21978 # Broken: success on invalid input.
21979 continue
21980 else
21981 # Passes both tests.
21982 ac_preproc_ok=:
21983 break
21985 rm -f conftest.err conftest.i conftest.$ac_ext
21987 done
21988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21989 rm -f conftest.i conftest.err conftest.$ac_ext
21990 if $ac_preproc_ok; then :
21991 break
21994 done
21995 ac_cv_prog_CXXCPP=$CXXCPP
21998 CXXCPP=$ac_cv_prog_CXXCPP
21999 else
22000 ac_cv_prog_CXXCPP=$CXXCPP
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22003 $as_echo "$CXXCPP" >&6; }
22004 ac_preproc_ok=false
22005 for ac_cxx_preproc_warn_flag in '' yes
22007 # Use a header file that comes with gcc, so configuring glibc
22008 # with a fresh cross-compiler works.
22009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22010 # <limits.h> exists even on freestanding compilers.
22011 # On the NeXT, cc -E runs the code through the compiler's parser,
22012 # not just through cpp. "Syntax error" is here to catch this case.
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22015 #ifdef __STDC__
22016 # include <limits.h>
22017 #else
22018 # include <assert.h>
22019 #endif
22020 Syntax error
22021 _ACEOF
22022 if ac_fn_cxx_try_cpp "$LINENO"; then :
22024 else
22025 # Broken: fails on valid input.
22026 continue
22028 rm -f conftest.err conftest.i conftest.$ac_ext
22030 # OK, works on sane cases. Now check whether nonexistent headers
22031 # can be detected and how.
22032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033 /* end confdefs.h. */
22034 #include <ac_nonexistent.h>
22035 _ACEOF
22036 if ac_fn_cxx_try_cpp "$LINENO"; then :
22037 # Broken: success on invalid input.
22038 continue
22039 else
22040 # Passes both tests.
22041 ac_preproc_ok=:
22042 break
22044 rm -f conftest.err conftest.i conftest.$ac_ext
22046 done
22047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22048 rm -f conftest.i conftest.err conftest.$ac_ext
22049 if $ac_preproc_ok; then :
22051 else
22052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22054 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22055 See \`config.log' for more details" "$LINENO" 5; }
22058 ac_ext=cpp
22059 ac_cpp='$CXXCPP $CPPFLAGS'
22060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22064 else
22065 _lt_caught_CXX_error=yes
22068 ac_ext=cpp
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074 archive_cmds_need_lc_CXX=no
22075 allow_undefined_flag_CXX=
22076 always_export_symbols_CXX=no
22077 archive_expsym_cmds_CXX=
22078 compiler_needs_object_CXX=no
22079 export_dynamic_flag_spec_CXX=
22080 hardcode_direct_CXX=no
22081 hardcode_direct_absolute_CXX=no
22082 hardcode_libdir_flag_spec_CXX=
22083 hardcode_libdir_flag_spec_ld_CXX=
22084 hardcode_libdir_separator_CXX=
22085 hardcode_minus_L_CXX=no
22086 hardcode_shlibpath_var_CXX=unsupported
22087 hardcode_automatic_CXX=no
22088 inherit_rpath_CXX=no
22089 module_cmds_CXX=
22090 module_expsym_cmds_CXX=
22091 link_all_deplibs_CXX=unknown
22092 old_archive_cmds_CXX=$old_archive_cmds
22093 reload_flag_CXX=$reload_flag
22094 reload_cmds_CXX=$reload_cmds
22095 no_undefined_flag_CXX=
22096 whole_archive_flag_spec_CXX=
22097 enable_shared_with_static_runtimes_CXX=no
22099 # Source file extension for C++ test sources.
22100 ac_ext=cpp
22102 # Object file extension for compiled C++ test sources.
22103 objext=o
22104 objext_CXX=$objext
22106 # No sense in running all these tests if we already determined that
22107 # the CXX compiler isn't working. Some variables (like enable_shared)
22108 # are currently assumed to apply to all compilers on this platform,
22109 # and will be corrupted by setting them based on a non-working compiler.
22110 if test "$_lt_caught_CXX_error" != yes; then
22111 # Code to be used in simple compile tests
22112 lt_simple_compile_test_code="int some_variable = 0;"
22114 # Code to be used in simple link tests
22115 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22124 # If no C compiler was specified, use CC.
22125 LTCC=${LTCC-"$CC"}
22127 # If no C compiler flags were specified, use CFLAGS.
22128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22130 # Allow CC to be a program name with arguments.
22131 compiler=$CC
22134 # save warnings/boilerplate of simple test code
22135 ac_outfile=conftest.$ac_objext
22136 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22138 _lt_compiler_boilerplate=`cat conftest.err`
22139 $RM conftest*
22141 ac_outfile=conftest.$ac_objext
22142 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22144 _lt_linker_boilerplate=`cat conftest.err`
22145 $RM -r conftest*
22148 # Allow CC to be a program name with arguments.
22149 lt_save_CC=$CC
22150 lt_save_LD=$LD
22151 lt_save_GCC=$GCC
22152 GCC=$GXX
22153 lt_save_with_gnu_ld=$with_gnu_ld
22154 lt_save_path_LD=$lt_cv_path_LD
22155 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22156 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22157 else
22158 $as_unset lt_cv_prog_gnu_ld
22160 if test -n "${lt_cv_path_LDCXX+set}"; then
22161 lt_cv_path_LD=$lt_cv_path_LDCXX
22162 else
22163 $as_unset lt_cv_path_LD
22165 test -z "${LDCXX+set}" || LD=$LDCXX
22166 CC=${CXX-"c++"}
22167 compiler=$CC
22168 compiler_CXX=$CC
22169 for cc_temp in $compiler""; do
22170 case $cc_temp in
22171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22173 \-*) ;;
22174 *) break;;
22175 esac
22176 done
22177 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22180 if test -n "$compiler"; then
22181 # We don't want -fno-exception when compiling C++ code, so set the
22182 # no_builtin_flag separately
22183 if test "$GXX" = yes; then
22184 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22185 else
22186 lt_prog_compiler_no_builtin_flag_CXX=
22189 if test "$GXX" = yes; then
22190 # Set up default GNU C++ configuration
22194 # Check whether --with-gnu-ld was given.
22195 if test "${with_gnu_ld+set}" = set; then :
22196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22197 else
22198 with_gnu_ld=no
22201 ac_prog=ld
22202 if test "$GCC" = yes; then
22203 # Check if gcc -print-prog-name=ld gives a path.
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22205 $as_echo_n "checking for ld used by $CC... " >&6; }
22206 case $host in
22207 *-*-mingw*)
22208 # gcc leaves a trailing carriage return which upsets mingw
22209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22212 esac
22213 case $ac_prog in
22214 # Accept absolute paths.
22215 [\\/]* | ?:[\\/]*)
22216 re_direlt='/[^/][^/]*/\.\./'
22217 # Canonicalize the pathname of ld
22218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22221 done
22222 test -z "$LD" && LD="$ac_prog"
22225 # If it fails, then pretend we aren't using GCC.
22226 ac_prog=ld
22229 # If it is relative, then search for the first ld in PATH.
22230 with_gnu_ld=unknown
22232 esac
22233 elif test "$with_gnu_ld" = yes; then
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22235 $as_echo_n "checking for GNU ld... " >&6; }
22236 else
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22238 $as_echo_n "checking for non-GNU ld... " >&6; }
22240 if ${lt_cv_path_LD+:} false; then :
22241 $as_echo_n "(cached) " >&6
22242 else
22243 if test -z "$LD"; then
22244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22245 for ac_dir in $PATH; do
22246 IFS="$lt_save_ifs"
22247 test -z "$ac_dir" && ac_dir=.
22248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22249 lt_cv_path_LD="$ac_dir/$ac_prog"
22250 # Check to see if the program is GNU ld. I'd rather use --version,
22251 # but apparently some variants of GNU ld only accept -v.
22252 # Break only if it was the GNU/non-GNU ld that we prefer.
22253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22254 *GNU* | *'with BFD'*)
22255 test "$with_gnu_ld" != no && break
22258 test "$with_gnu_ld" != yes && break
22260 esac
22262 done
22263 IFS="$lt_save_ifs"
22264 else
22265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22269 LD="$lt_cv_path_LD"
22270 if test -n "$LD"; then
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22272 $as_echo "$LD" >&6; }
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22277 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22279 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22280 if ${lt_cv_prog_gnu_ld+:} false; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22284 case `$LD -v 2>&1 </dev/null` in
22285 *GNU* | *'with BFD'*)
22286 lt_cv_prog_gnu_ld=yes
22289 lt_cv_prog_gnu_ld=no
22291 esac
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22294 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22295 with_gnu_ld=$lt_cv_prog_gnu_ld
22303 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22304 # archiving commands below assume that GNU ld is being used.
22305 if test "$with_gnu_ld" = yes; then
22306 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22307 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'
22309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22312 # If archive_cmds runs LD, not CC, wlarc should be empty
22313 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22314 # investigate it a little bit more. (MM)
22315 wlarc='${wl}'
22317 # ancient GNU ld didn't support --whole-archive et. al.
22318 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22319 $GREP 'no-whole-archive' > /dev/null; then
22320 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22321 else
22322 whole_archive_flag_spec_CXX=
22324 else
22325 with_gnu_ld=no
22326 wlarc=
22328 # A generic and very simple default shared library creation
22329 # command for GNU C++ for the case where it uses the native
22330 # linker, instead of GNU ld. If possible, this setting should
22331 # overridden to take advantage of the native linker features on
22332 # the platform it is being used on.
22333 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22336 # Commands to make compiler produce verbose output that lists
22337 # what "hidden" libraries, object files and flags are used when
22338 # linking a shared library.
22339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22341 else
22342 GXX=no
22343 with_gnu_ld=no
22344 wlarc=
22347 # PORTME: fill in a description of your system's C++ link characteristics
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22349 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22350 ld_shlibs_CXX=yes
22351 case $host_os in
22352 aix3*)
22353 # FIXME: insert proper C++ library support
22354 ld_shlibs_CXX=no
22356 aix[4-9]*)
22357 if test "$host_cpu" = ia64; then
22358 # On IA64, the linker does run time linking by default, so we don't
22359 # have to do anything special.
22360 aix_use_runtimelinking=no
22361 exp_sym_flag='-Bexport'
22362 no_entry_flag=""
22363 else
22364 aix_use_runtimelinking=no
22366 # Test if we are trying to use run time linking or normal
22367 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22368 # need to do runtime linking.
22369 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22370 for ld_flag in $LDFLAGS; do
22371 case $ld_flag in
22372 *-brtl*)
22373 aix_use_runtimelinking=yes
22374 break
22376 esac
22377 done
22379 esac
22381 exp_sym_flag='-bexport'
22382 no_entry_flag='-bnoentry'
22385 # When large executables or shared objects are built, AIX ld can
22386 # have problems creating the table of contents. If linking a library
22387 # or program results in "error TOC overflow" add -mminimal-toc to
22388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22391 archive_cmds_CXX=''
22392 hardcode_direct_CXX=yes
22393 hardcode_direct_absolute_CXX=yes
22394 hardcode_libdir_separator_CXX=':'
22395 link_all_deplibs_CXX=yes
22396 file_list_spec_CXX='${wl}-f,'
22398 if test "$GXX" = yes; then
22399 case $host_os in aix4.[012]|aix4.[012].*)
22400 # We only want to do this on AIX 4.2 and lower, the check
22401 # below for broken collect2 doesn't work under 4.3+
22402 collect2name=`${CC} -print-prog-name=collect2`
22403 if test -f "$collect2name" &&
22404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22405 then
22406 # We have reworked collect2
22408 else
22409 # We have old collect2
22410 hardcode_direct_CXX=unsupported
22411 # It fails to find uninstalled libraries when the uninstalled
22412 # path is not listed in the libpath. Setting hardcode_minus_L
22413 # to unsupported forces relinking
22414 hardcode_minus_L_CXX=yes
22415 hardcode_libdir_flag_spec_CXX='-L$libdir'
22416 hardcode_libdir_separator_CXX=
22418 esac
22419 shared_flag='-shared'
22420 if test "$aix_use_runtimelinking" = yes; then
22421 shared_flag="$shared_flag "'${wl}-G'
22423 else
22424 # not using gcc
22425 if test "$host_cpu" = ia64; then
22426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22427 # chokes on -Wl,-G. The following line is correct:
22428 shared_flag='-G'
22429 else
22430 if test "$aix_use_runtimelinking" = yes; then
22431 shared_flag='${wl}-G'
22432 else
22433 shared_flag='${wl}-bM:SRE'
22438 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22439 # It seems that -bexpall does not export symbols beginning with
22440 # underscore (_), so it is better to generate a list of symbols to
22441 # export.
22442 always_export_symbols_CXX=yes
22443 if test "$aix_use_runtimelinking" = yes; then
22444 # Warning - without using the other runtime loading flags (-brtl),
22445 # -berok will link without error, but may produce a broken library.
22446 allow_undefined_flag_CXX='-berok'
22447 # Determine the default libpath from the value encoded in an empty
22448 # executable.
22449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22450 /* end confdefs.h. */
22453 main ()
22457 return 0;
22459 _ACEOF
22460 if ac_fn_cxx_try_link "$LINENO"; then :
22462 lt_aix_libpath_sed='
22463 /Import File Strings/,/^$/ {
22464 /^0/ {
22465 s/^0 *\(.*\)$/\1/
22469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22470 # Check for a 64-bit object if we didn't find anything.
22471 if test -z "$aix_libpath"; then
22472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22475 rm -f core conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22479 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22481 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"
22482 else
22483 if test "$host_cpu" = ia64; then
22484 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22485 allow_undefined_flag_CXX="-z nodefs"
22486 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"
22487 else
22488 # Determine the default libpath from the value encoded in an
22489 # empty executable.
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22494 main ()
22498 return 0;
22500 _ACEOF
22501 if ac_fn_cxx_try_link "$LINENO"; then :
22503 lt_aix_libpath_sed='
22504 /Import File Strings/,/^$/ {
22505 /^0/ {
22506 s/^0 *\(.*\)$/\1/
22510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22511 # Check for a 64-bit object if we didn't find anything.
22512 if test -z "$aix_libpath"; then
22513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22516 rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext conftest.$ac_ext
22518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22521 # Warning - without using the other run time loading flags,
22522 # -berok will link without error, but may produce a broken library.
22523 no_undefined_flag_CXX=' ${wl}-bernotok'
22524 allow_undefined_flag_CXX=' ${wl}-berok'
22525 if test "$with_gnu_ld" = yes; then
22526 # We only use this code for GNU lds that support --whole-archive.
22527 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22528 else
22529 # Exported symbols can be pulled into shared objects from archives
22530 whole_archive_flag_spec_CXX='$convenience'
22532 archive_cmds_need_lc_CXX=yes
22533 # This is similar to how AIX traditionally builds its shared
22534 # libraries.
22535 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'
22540 beos*)
22541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22542 allow_undefined_flag_CXX=unsupported
22543 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22544 # support --undefined. This deserves some investigation. FIXME
22545 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22546 else
22547 ld_shlibs_CXX=no
22551 chorus*)
22552 case $cc_basename in
22554 # FIXME: insert proper C++ library support
22555 ld_shlibs_CXX=no
22557 esac
22560 cygwin* | mingw* | pw32* | cegcc*)
22561 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22562 # as there is no search path for DLLs.
22563 hardcode_libdir_flag_spec_CXX='-L$libdir'
22564 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22565 allow_undefined_flag_CXX=unsupported
22566 always_export_symbols_CXX=no
22567 enable_shared_with_static_runtimes_CXX=yes
22569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22570 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'
22571 # If the export-symbols file already is a .def file (1st line
22572 # is EXPORTS), use it as is; otherwise, prepend...
22573 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22574 cp $export_symbols $output_objdir/$soname.def;
22575 else
22576 echo EXPORTS > $output_objdir/$soname.def;
22577 cat $export_symbols >> $output_objdir/$soname.def;
22579 $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'
22580 else
22581 ld_shlibs_CXX=no
22584 darwin* | rhapsody*)
22588 # Publish an arg to allow the user to select that Darwin host (and target)
22589 # libraries should be given install-names like @rpath/libfoo.dylib. This
22590 # requires that the user of the library then adds an 'rpath' to the DSO that
22591 # needs access.
22592 # NOTE: there are defaults below, for systems that support rpaths. The person
22593 # configuring can override the defaults for any system version that supports
22594 # them - they are, however, forced off for system versions without support.
22595 # Check whether --enable-darwin-at-rpath was given.
22596 if test "${enable_darwin_at_rpath+set}" = set; then :
22597 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22598 # This is not supported before macOS 10.5 / Darwin9.
22599 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22600 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22602 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22603 enable_darwin_at_rpath=no
22605 esac
22607 else
22608 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22609 # As above, before 10.5 / Darwin9 this does not work.
22610 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22611 enable_darwin_at_rpath=no
22614 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22615 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22616 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22617 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22619 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22620 enable_darwin_at_rpath=yes
22622 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22623 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22625 esac
22630 archive_cmds_need_lc_CXX=no
22631 hardcode_direct_CXX=no
22632 hardcode_automatic_CXX=yes
22633 hardcode_shlibpath_var_CXX=unsupported
22634 if test "$lt_cv_ld_force_load" = "yes"; then
22635 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\"`'
22636 else
22637 whole_archive_flag_spec_CXX=''
22639 link_all_deplibs_CXX=yes
22640 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22641 case $cc_basename in
22642 ifort*) _lt_dar_can_shared=yes ;;
22643 *) _lt_dar_can_shared=$GCC ;;
22644 esac
22645 if test "$_lt_dar_can_shared" = "yes"; then
22646 output_verbose_link_cmd=func_echo_all
22647 _lt_install_name='\$rpath/\$soname'
22648 if test "x$enable_darwin_at_rpath" = "xyes"; then
22649 _lt_install_name='@rpath/\$soname'
22651 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22652 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22653 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
22654 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}"
22655 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22656 _lt_install_name='\$rpath/\$soname'
22657 if test "x$enable_darwin_at_rpath" = "xyes"; then
22658 _lt_install_name='@rpath/\$soname'
22660 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 ${_lt_install_name} \$verstring${_lt_dsymutil}"
22661 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}"
22664 else
22665 ld_shlibs_CXX=no
22670 dgux*)
22671 case $cc_basename in
22672 ec++*)
22673 # FIXME: insert proper C++ library support
22674 ld_shlibs_CXX=no
22676 ghcx*)
22677 # Green Hills C++ Compiler
22678 # FIXME: insert proper C++ library support
22679 ld_shlibs_CXX=no
22682 # FIXME: insert proper C++ library support
22683 ld_shlibs_CXX=no
22685 esac
22688 freebsd2.*)
22689 # C++ shared libraries reported to be fairly broken before
22690 # switch to ELF
22691 ld_shlibs_CXX=no
22694 freebsd-elf*)
22695 archive_cmds_need_lc_CXX=no
22698 freebsd* | dragonfly*)
22699 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22700 # conventions
22701 ld_shlibs_CXX=yes
22704 gnu*)
22707 haiku*)
22708 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22709 link_all_deplibs_CXX=yes
22712 hpux9*)
22713 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22714 hardcode_libdir_separator_CXX=:
22715 export_dynamic_flag_spec_CXX='${wl}-E'
22716 hardcode_direct_CXX=yes
22717 hardcode_minus_L_CXX=yes # Not in the search PATH,
22718 # but as the default
22719 # location of the library.
22721 case $cc_basename in
22722 CC*)
22723 # FIXME: insert proper C++ library support
22724 ld_shlibs_CXX=no
22726 aCC*)
22727 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'
22728 # Commands to make compiler produce verbose output that lists
22729 # what "hidden" libraries, object files and flags are used when
22730 # linking a shared library.
22732 # There doesn't appear to be a way to prevent this compiler from
22733 # explicitly linking system object files so we need to strip them
22734 # from the output so that they don't get included in the library
22735 # dependencies.
22736 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"'
22739 if test "$GXX" = yes; then
22740 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'
22741 else
22742 # FIXME: insert proper C++ library support
22743 ld_shlibs_CXX=no
22746 esac
22749 hpux10*|hpux11*)
22750 if test $with_gnu_ld = no; then
22751 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22752 hardcode_libdir_separator_CXX=:
22754 case $host_cpu in
22755 hppa*64*|ia64*)
22758 export_dynamic_flag_spec_CXX='${wl}-E'
22760 esac
22762 case $host_cpu in
22763 hppa*64*|ia64*)
22764 hardcode_direct_CXX=no
22765 hardcode_shlibpath_var_CXX=no
22768 hardcode_direct_CXX=yes
22769 hardcode_direct_absolute_CXX=yes
22770 hardcode_minus_L_CXX=yes # Not in the search PATH,
22771 # but as the default
22772 # location of the library.
22774 esac
22776 case $cc_basename in
22777 CC*)
22778 # FIXME: insert proper C++ library support
22779 ld_shlibs_CXX=no
22781 aCC*)
22782 case $host_cpu in
22783 hppa*64*)
22784 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22786 ia64*)
22787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22790 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22792 esac
22793 # Commands to make compiler produce verbose output that lists
22794 # what "hidden" libraries, object files and flags are used when
22795 # linking a shared library.
22797 # There doesn't appear to be a way to prevent this compiler from
22798 # explicitly linking system object files so we need to strip them
22799 # from the output so that they don't get included in the library
22800 # dependencies.
22801 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"'
22804 if test "$GXX" = yes; then
22805 if test $with_gnu_ld = no; then
22806 case $host_cpu in
22807 hppa*64*)
22808 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22810 ia64*)
22811 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22814 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'
22816 esac
22818 else
22819 # FIXME: insert proper C++ library support
22820 ld_shlibs_CXX=no
22823 esac
22826 interix[3-9]*)
22827 hardcode_direct_CXX=no
22828 hardcode_shlibpath_var_CXX=no
22829 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22830 export_dynamic_flag_spec_CXX='${wl}-E'
22831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22832 # Instead, shared libraries are loaded at an image base (0x10000000 by
22833 # default) and relocated if they conflict, which is a slow very memory
22834 # consuming and fragmenting process. To avoid this, we pick a random,
22835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22837 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'
22838 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'
22840 irix5* | irix6*)
22841 case $cc_basename in
22842 CC*)
22843 # SGI C++
22844 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'
22846 # Archives containing C++ object files must be created using
22847 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22848 # necessary to make sure instantiated templates are included
22849 # in the archive.
22850 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22853 if test "$GXX" = yes; then
22854 if test "$with_gnu_ld" = no; then
22855 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'
22856 else
22857 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'
22860 link_all_deplibs_CXX=yes
22862 esac
22863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22864 hardcode_libdir_separator_CXX=:
22865 inherit_rpath_CXX=yes
22868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22869 case $cc_basename in
22870 KCC*)
22871 # Kuck and Associates, Inc. (KAI) C++ Compiler
22873 # KCC will only create a shared library if the output file
22874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22875 # to its proper name (with version) after linking.
22876 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'
22877 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'
22878 # Commands to make compiler produce verbose output that lists
22879 # what "hidden" libraries, object files and flags are used when
22880 # linking a shared library.
22882 # There doesn't appear to be a way to prevent this compiler from
22883 # explicitly linking system object files so we need to strip them
22884 # from the output so that they don't get included in the library
22885 # dependencies.
22886 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"'
22888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22891 # Archives containing C++ object files must be created using
22892 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22893 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22895 icpc* | ecpc* )
22896 # Intel C++
22897 with_gnu_ld=yes
22898 # version 8.0 and above of icpc choke on multiply defined symbols
22899 # if we add $predep_objects and $postdep_objects, however 7.1 and
22900 # earlier do not add the objects themselves.
22901 case `$CC -V 2>&1` in
22902 *"Version 7."*)
22903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22904 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'
22906 *) # Version 8.0 or newer
22907 tmp_idyn=
22908 case $host_cpu in
22909 ia64*) tmp_idyn=' -i_dynamic';;
22910 esac
22911 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22912 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'
22914 esac
22915 archive_cmds_need_lc_CXX=no
22916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22918 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22920 pgCC* | pgcpp*)
22921 # Portland Group C++ compiler
22922 case `$CC -V` in
22923 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22924 prelink_cmds_CXX='tpldir=Template.dir~
22925 rm -rf $tpldir~
22926 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22927 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22928 old_archive_cmds_CXX='tpldir=Template.dir~
22929 rm -rf $tpldir~
22930 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22931 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22932 $RANLIB $oldlib'
22933 archive_cmds_CXX='tpldir=Template.dir~
22934 rm -rf $tpldir~
22935 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22936 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22937 archive_expsym_cmds_CXX='tpldir=Template.dir~
22938 rm -rf $tpldir~
22939 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22940 $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'
22942 *) # Version 6 and above use weak symbols
22943 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22944 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'
22946 esac
22948 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22950 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'
22952 cxx*)
22953 # Compaq C++
22954 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22955 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'
22957 runpath_var=LD_RUN_PATH
22958 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22959 hardcode_libdir_separator_CXX=:
22961 # Commands to make compiler produce verbose output that lists
22962 # what "hidden" libraries, object files and flags are used when
22963 # linking a shared library.
22965 # There doesn't appear to be a way to prevent this compiler from
22966 # explicitly linking system object files so we need to strip them
22967 # from the output so that they don't get included in the library
22968 # dependencies.
22969 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'
22971 xl* | mpixl* | bgxl*)
22972 # IBM XL 8.0 on PPC, with GNU ld
22973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22974 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22975 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22976 if test "x$supports_anon_versioning" = xyes; then
22977 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22979 echo "local: *; };" >> $output_objdir/$libname.ver~
22980 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22984 case `$CC -V 2>&1 | sed 5q` in
22985 *Sun\ C*)
22986 # Sun C++ 5.9
22987 no_undefined_flag_CXX=' -zdefs'
22988 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22989 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'
22990 hardcode_libdir_flag_spec_CXX='-R$libdir'
22991 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'
22992 compiler_needs_object_CXX=yes
22994 # Not sure whether something based on
22995 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22996 # would be better.
22997 output_verbose_link_cmd='func_echo_all'
22999 # Archives containing C++ object files must be created using
23000 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23001 # necessary to make sure instantiated templates are included
23002 # in the archive.
23003 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23005 esac
23007 esac
23010 lynxos*)
23011 # FIXME: insert proper C++ library support
23012 ld_shlibs_CXX=no
23015 m88k*)
23016 # FIXME: insert proper C++ library support
23017 ld_shlibs_CXX=no
23020 mvs*)
23021 case $cc_basename in
23022 cxx*)
23023 # FIXME: insert proper C++ library support
23024 ld_shlibs_CXX=no
23027 # FIXME: insert proper C++ library support
23028 ld_shlibs_CXX=no
23030 esac
23033 netbsd*)
23034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23035 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23036 wlarc=
23037 hardcode_libdir_flag_spec_CXX='-R$libdir'
23038 hardcode_direct_CXX=yes
23039 hardcode_shlibpath_var_CXX=no
23041 # Workaround some broken pre-1.5 toolchains
23042 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23045 *nto* | *qnx*)
23046 ld_shlibs_CXX=yes
23049 openbsd2*)
23050 # C++ shared libraries are fairly broken
23051 ld_shlibs_CXX=no
23054 openbsd*)
23055 if test -f /usr/libexec/ld.so; then
23056 hardcode_direct_CXX=yes
23057 hardcode_shlibpath_var_CXX=no
23058 hardcode_direct_absolute_CXX=yes
23059 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23062 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23063 export_dynamic_flag_spec_CXX='${wl}-E'
23064 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23066 output_verbose_link_cmd=func_echo_all
23067 else
23068 ld_shlibs_CXX=no
23072 osf3* | osf4* | osf5*)
23073 case $cc_basename in
23074 KCC*)
23075 # Kuck and Associates, Inc. (KAI) C++ Compiler
23077 # KCC will only create a shared library if the output file
23078 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23079 # to its proper name (with version) after linking.
23080 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'
23082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23083 hardcode_libdir_separator_CXX=:
23085 # Archives containing C++ object files must be created using
23086 # the KAI C++ compiler.
23087 case $host in
23088 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23089 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23090 esac
23092 RCC*)
23093 # Rational C++ 2.4.1
23094 # FIXME: insert proper C++ library support
23095 ld_shlibs_CXX=no
23097 cxx*)
23098 case $host in
23099 osf3*)
23100 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23101 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'
23102 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23105 allow_undefined_flag_CXX=' -expect_unresolved \*'
23106 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'
23107 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23108 echo "-hidden">> $lib.exp~
23109 $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~
23110 $RM $lib.exp'
23111 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23113 esac
23115 hardcode_libdir_separator_CXX=:
23117 # Commands to make compiler produce verbose output that lists
23118 # what "hidden" libraries, object files and flags are used when
23119 # linking a shared library.
23121 # There doesn't appear to be a way to prevent this compiler from
23122 # explicitly linking system object files so we need to strip them
23123 # from the output so that they don't get included in the library
23124 # dependencies.
23125 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"'
23128 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23129 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23130 case $host in
23131 osf3*)
23132 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'
23135 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'
23137 esac
23139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23140 hardcode_libdir_separator_CXX=:
23142 # Commands to make compiler produce verbose output that lists
23143 # what "hidden" libraries, object files and flags are used when
23144 # linking a shared library.
23145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23147 else
23148 # FIXME: insert proper C++ library support
23149 ld_shlibs_CXX=no
23152 esac
23155 psos*)
23156 # FIXME: insert proper C++ library support
23157 ld_shlibs_CXX=no
23160 sunos4*)
23161 case $cc_basename in
23162 CC*)
23163 # Sun C++ 4.x
23164 # FIXME: insert proper C++ library support
23165 ld_shlibs_CXX=no
23167 lcc*)
23168 # Lucid
23169 # FIXME: insert proper C++ library support
23170 ld_shlibs_CXX=no
23173 # FIXME: insert proper C++ library support
23174 ld_shlibs_CXX=no
23176 esac
23179 solaris*)
23180 case $cc_basename in
23181 CC*)
23182 # Sun C++ 4.2, 5.x and Centerline C++
23183 archive_cmds_need_lc_CXX=yes
23184 no_undefined_flag_CXX=' -zdefs'
23185 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23186 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23187 $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'
23189 hardcode_libdir_flag_spec_CXX='-R$libdir'
23190 hardcode_shlibpath_var_CXX=no
23191 case $host_os in
23192 solaris2.[0-5] | solaris2.[0-5].*) ;;
23194 # The compiler driver will combine and reorder linker options,
23195 # but understands `-z linker_flag'.
23196 # Supported since Solaris 2.6 (maybe 2.5.1?)
23197 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23199 esac
23200 link_all_deplibs_CXX=yes
23202 output_verbose_link_cmd='func_echo_all'
23204 # Archives containing C++ object files must be created using
23205 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23206 # necessary to make sure instantiated templates are included
23207 # in the archive.
23208 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23210 gcx*)
23211 # Green Hills C++ Compiler
23212 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23214 # The C++ compiler must be used to create the archive.
23215 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23218 # GNU C++ compiler with Solaris linker
23219 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23220 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23221 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23222 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23223 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23224 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23226 # Commands to make compiler produce verbose output that lists
23227 # what "hidden" libraries, object files and flags are used when
23228 # linking a shared library.
23229 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23230 else
23231 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23232 # platform.
23233 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23234 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23235 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23237 # Commands to make compiler produce verbose output that lists
23238 # what "hidden" libraries, object files and flags are used when
23239 # linking a shared library.
23240 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23243 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23244 case $host_os in
23245 solaris2.[0-5] | solaris2.[0-5].*) ;;
23247 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23249 esac
23252 esac
23255 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23256 no_undefined_flag_CXX='${wl}-z,text'
23257 archive_cmds_need_lc_CXX=no
23258 hardcode_shlibpath_var_CXX=no
23259 runpath_var='LD_RUN_PATH'
23261 case $cc_basename in
23262 CC*)
23263 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23264 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23267 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23270 esac
23273 sysv5* | sco3.2v5* | sco5v6*)
23274 # Note: We can NOT use -z defs as we might desire, because we do not
23275 # link with -lc, and that would cause any symbols used from libc to
23276 # always be unresolved, which means just about no library would
23277 # ever link correctly. If we're not using GNU ld we use -z text
23278 # though, which does catch some bad symbols but isn't as heavy-handed
23279 # as -z defs.
23280 no_undefined_flag_CXX='${wl}-z,text'
23281 allow_undefined_flag_CXX='${wl}-z,nodefs'
23282 archive_cmds_need_lc_CXX=no
23283 hardcode_shlibpath_var_CXX=no
23284 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23285 hardcode_libdir_separator_CXX=':'
23286 link_all_deplibs_CXX=yes
23287 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23288 runpath_var='LD_RUN_PATH'
23290 case $cc_basename in
23291 CC*)
23292 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23293 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23294 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23295 '"$old_archive_cmds_CXX"
23296 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23297 '"$reload_cmds_CXX"
23300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23303 esac
23306 tandem*)
23307 case $cc_basename in
23308 NCC*)
23309 # NonStop-UX NCC 3.20
23310 # FIXME: insert proper C++ library support
23311 ld_shlibs_CXX=no
23314 # FIXME: insert proper C++ library support
23315 ld_shlibs_CXX=no
23317 esac
23320 vxworks*)
23321 # For VxWorks ports, we assume the use of a GNU linker with
23322 # standard elf conventions.
23323 ld_shlibs_CXX=yes
23327 # FIXME: insert proper C++ library support
23328 ld_shlibs_CXX=no
23330 esac
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23333 $as_echo "$ld_shlibs_CXX" >&6; }
23334 test "$ld_shlibs_CXX" = no && can_build_shared=no
23336 GCC_CXX="$GXX"
23337 LD_CXX="$LD"
23339 ## CAVEAT EMPTOR:
23340 ## There is no encapsulation within the following macros, do not change
23341 ## the running order or otherwise move them around unless you know exactly
23342 ## what you are doing...
23343 # Dependencies to place before and after the object being linked:
23344 predep_objects_CXX=
23345 postdep_objects_CXX=
23346 predeps_CXX=
23347 postdeps_CXX=
23348 compiler_lib_search_path_CXX=
23350 cat > conftest.$ac_ext <<_LT_EOF
23351 class Foo
23353 public:
23354 Foo (void) { a = 0; }
23355 private:
23356 int a;
23358 _LT_EOF
23360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23361 (eval $ac_compile) 2>&5
23362 ac_status=$?
23363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23364 test $ac_status = 0; }; then
23365 # Parse the compiler output and extract the necessary
23366 # objects, libraries and library flags.
23368 # Sentinel used to keep track of whether or not we are before
23369 # the conftest object file.
23370 pre_test_object_deps_done=no
23372 for p in `eval "$output_verbose_link_cmd"`; do
23373 case $p in
23375 -L* | -R* | -l*)
23376 # Some compilers place space between "-{L,R}" and the path.
23377 # Remove the space.
23378 if test $p = "-L" ||
23379 test $p = "-R"; then
23380 prev=$p
23381 continue
23382 else
23383 prev=
23386 if test "$pre_test_object_deps_done" = no; then
23387 case $p in
23388 -L* | -R*)
23389 # Internal compiler library paths should come after those
23390 # provided the user. The postdeps already come after the
23391 # user supplied libs so there is no need to process them.
23392 if test -z "$compiler_lib_search_path_CXX"; then
23393 compiler_lib_search_path_CXX="${prev}${p}"
23394 else
23395 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23398 # The "-l" case would never come before the object being
23399 # linked, so don't bother handling this case.
23400 esac
23401 else
23402 if test -z "$postdeps_CXX"; then
23403 postdeps_CXX="${prev}${p}"
23404 else
23405 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23410 *.$objext)
23411 # This assumes that the test object file only shows up
23412 # once in the compiler output.
23413 if test "$p" = "conftest.$objext"; then
23414 pre_test_object_deps_done=yes
23415 continue
23418 if test "$pre_test_object_deps_done" = no; then
23419 if test -z "$predep_objects_CXX"; then
23420 predep_objects_CXX="$p"
23421 else
23422 predep_objects_CXX="$predep_objects_CXX $p"
23424 else
23425 if test -z "$postdep_objects_CXX"; then
23426 postdep_objects_CXX="$p"
23427 else
23428 postdep_objects_CXX="$postdep_objects_CXX $p"
23433 *) ;; # Ignore the rest.
23435 esac
23436 done
23438 # Clean up.
23439 rm -f a.out a.exe
23440 else
23441 echo "libtool.m4: error: problem compiling CXX test program"
23444 $RM -f confest.$objext
23446 # PORTME: override above test on systems where it is broken
23447 case $host_os in
23448 interix[3-9]*)
23449 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23450 # hack all around it, let's just trust "g++" to DTRT.
23451 predep_objects_CXX=
23452 postdep_objects_CXX=
23453 postdeps_CXX=
23456 linux*)
23457 case `$CC -V 2>&1 | sed 5q` in
23458 *Sun\ C*)
23459 # Sun C++ 5.9
23461 # The more standards-conforming stlport4 library is
23462 # incompatible with the Cstd library. Avoid specifying
23463 # it if it's in CXXFLAGS. Ignore libCrun as
23464 # -library=stlport4 depends on it.
23465 case " $CXX $CXXFLAGS " in
23466 *" -library=stlport4 "*)
23467 solaris_use_stlport4=yes
23469 esac
23471 if test "$solaris_use_stlport4" != yes; then
23472 postdeps_CXX='-library=Cstd -library=Crun'
23475 esac
23478 solaris*)
23479 case $cc_basename in
23480 CC*)
23481 # The more standards-conforming stlport4 library is
23482 # incompatible with the Cstd library. Avoid specifying
23483 # it if it's in CXXFLAGS. Ignore libCrun as
23484 # -library=stlport4 depends on it.
23485 case " $CXX $CXXFLAGS " in
23486 *" -library=stlport4 "*)
23487 solaris_use_stlport4=yes
23489 esac
23491 # Adding this requires a known-good setup of shared libraries for
23492 # Sun compiler versions before 5.6, else PIC objects from an old
23493 # archive will be linked into the output, leading to subtle bugs.
23494 if test "$solaris_use_stlport4" != yes; then
23495 postdeps_CXX='-library=Cstd -library=Crun'
23498 esac
23500 esac
23503 case " $postdeps_CXX " in
23504 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23505 esac
23506 compiler_lib_search_dirs_CXX=
23507 if test -n "${compiler_lib_search_path_CXX}"; then
23508 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23541 lt_prog_compiler_wl_CXX=
23542 lt_prog_compiler_pic_CXX=
23543 lt_prog_compiler_static_CXX=
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23546 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23548 # C++ specific cases for pic, static, wl, etc.
23549 if test "$GXX" = yes; then
23550 lt_prog_compiler_wl_CXX='-Wl,'
23551 lt_prog_compiler_static_CXX='-static'
23553 case $host_os in
23554 aix*)
23555 # All AIX code is PIC.
23556 if test "$host_cpu" = ia64; then
23557 # AIX 5 now supports IA64 processor
23558 lt_prog_compiler_static_CXX='-Bstatic'
23560 lt_prog_compiler_pic_CXX='-fPIC'
23563 amigaos*)
23564 case $host_cpu in
23565 powerpc)
23566 # see comment about AmigaOS4 .so support
23567 lt_prog_compiler_pic_CXX='-fPIC'
23569 m68k)
23570 # FIXME: we need at least 68020 code to build shared libraries, but
23571 # adding the `-m68020' flag to GCC prevents building anything better,
23572 # like `-m68040'.
23573 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23575 esac
23578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23579 # PIC is the default for these OSes.
23581 mingw* | cygwin* | os2* | pw32* | cegcc*)
23582 # This hack is so that the source file can tell whether it is being
23583 # built for inclusion in a dll (and should export symbols for example).
23584 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23585 # (--disable-auto-import) libraries
23586 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23588 darwin* | rhapsody*)
23589 # PIC is the default on this platform
23590 # Common symbols not allowed in MH_DYLIB files
23591 lt_prog_compiler_pic_CXX='-fno-common'
23593 *djgpp*)
23594 # DJGPP does not support shared libraries at all
23595 lt_prog_compiler_pic_CXX=
23597 haiku*)
23598 # PIC is the default for Haiku.
23599 # The "-static" flag exists, but is broken.
23600 lt_prog_compiler_static_CXX=
23602 interix[3-9]*)
23603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23604 # Instead, we relocate shared libraries at runtime.
23606 sysv4*MP*)
23607 if test -d /usr/nec; then
23608 lt_prog_compiler_pic_CXX=-Kconform_pic
23611 hpux*)
23612 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23613 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23614 # sets the default TLS model and affects inlining.
23615 case $host_cpu in
23616 hppa*64*)
23619 lt_prog_compiler_pic_CXX='-fPIC'
23621 esac
23623 *qnx* | *nto*)
23624 # QNX uses GNU C++, but need to define -shared option too, otherwise
23625 # it will coredump.
23626 lt_prog_compiler_pic_CXX='-fPIC -shared'
23629 lt_prog_compiler_pic_CXX='-fPIC'
23631 esac
23632 else
23633 case $host_os in
23634 aix[4-9]*)
23635 # All AIX code is PIC.
23636 if test "$host_cpu" = ia64; then
23637 # AIX 5 now supports IA64 processor
23638 lt_prog_compiler_static_CXX='-Bstatic'
23639 else
23640 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23643 chorus*)
23644 case $cc_basename in
23645 cxch68*)
23646 # Green Hills C++ Compiler
23647 # _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"
23649 esac
23651 dgux*)
23652 case $cc_basename in
23653 ec++*)
23654 lt_prog_compiler_pic_CXX='-KPIC'
23656 ghcx*)
23657 # Green Hills C++ Compiler
23658 lt_prog_compiler_pic_CXX='-pic'
23662 esac
23664 freebsd* | dragonfly*)
23665 # FreeBSD uses GNU C++
23667 hpux9* | hpux10* | hpux11*)
23668 case $cc_basename in
23669 CC*)
23670 lt_prog_compiler_wl_CXX='-Wl,'
23671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23672 if test "$host_cpu" != ia64; then
23673 lt_prog_compiler_pic_CXX='+Z'
23676 aCC*)
23677 lt_prog_compiler_wl_CXX='-Wl,'
23678 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23679 case $host_cpu in
23680 hppa*64*|ia64*)
23681 # +Z the default
23684 lt_prog_compiler_pic_CXX='+Z'
23686 esac
23690 esac
23692 interix*)
23693 # This is c89, which is MS Visual C++ (no shared libs)
23694 # Anyone wants to do a port?
23696 irix5* | irix6* | nonstopux*)
23697 case $cc_basename in
23698 CC*)
23699 lt_prog_compiler_wl_CXX='-Wl,'
23700 lt_prog_compiler_static_CXX='-non_shared'
23701 # CC pic flag -KPIC is the default.
23705 esac
23707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23708 case $cc_basename in
23709 KCC*)
23710 # KAI C++ Compiler
23711 lt_prog_compiler_wl_CXX='--backend -Wl,'
23712 lt_prog_compiler_pic_CXX='-fPIC'
23714 ecpc* )
23715 # old Intel C++ for x86_64 which still supported -KPIC.
23716 lt_prog_compiler_wl_CXX='-Wl,'
23717 lt_prog_compiler_pic_CXX='-KPIC'
23718 lt_prog_compiler_static_CXX='-static'
23720 icpc* )
23721 # Intel C++, used to be incompatible with GCC.
23722 # ICC 10 doesn't accept -KPIC any more.
23723 lt_prog_compiler_wl_CXX='-Wl,'
23724 lt_prog_compiler_pic_CXX='-fPIC'
23725 lt_prog_compiler_static_CXX='-static'
23727 pgCC* | pgcpp*)
23728 # Portland Group C++ compiler
23729 lt_prog_compiler_wl_CXX='-Wl,'
23730 lt_prog_compiler_pic_CXX='-fpic'
23731 lt_prog_compiler_static_CXX='-Bstatic'
23733 cxx*)
23734 # Compaq C++
23735 # Make sure the PIC flag is empty. It appears that all Alpha
23736 # Linux and Compaq Tru64 Unix objects are PIC.
23737 lt_prog_compiler_pic_CXX=
23738 lt_prog_compiler_static_CXX='-non_shared'
23740 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23741 # IBM XL 8.0, 9.0 on PPC and BlueGene
23742 lt_prog_compiler_wl_CXX='-Wl,'
23743 lt_prog_compiler_pic_CXX='-qpic'
23744 lt_prog_compiler_static_CXX='-qstaticlink'
23747 case `$CC -V 2>&1 | sed 5q` in
23748 *Sun\ C*)
23749 # Sun C++ 5.9
23750 lt_prog_compiler_pic_CXX='-KPIC'
23751 lt_prog_compiler_static_CXX='-Bstatic'
23752 lt_prog_compiler_wl_CXX='-Qoption ld '
23754 esac
23756 esac
23758 lynxos*)
23760 m88k*)
23762 mvs*)
23763 case $cc_basename in
23764 cxx*)
23765 lt_prog_compiler_pic_CXX='-W c,exportall'
23769 esac
23771 netbsd*)
23773 *qnx* | *nto*)
23774 # QNX uses GNU C++, but need to define -shared option too, otherwise
23775 # it will coredump.
23776 lt_prog_compiler_pic_CXX='-fPIC -shared'
23778 osf3* | osf4* | osf5*)
23779 case $cc_basename in
23780 KCC*)
23781 lt_prog_compiler_wl_CXX='--backend -Wl,'
23783 RCC*)
23784 # Rational C++ 2.4.1
23785 lt_prog_compiler_pic_CXX='-pic'
23787 cxx*)
23788 # Digital/Compaq C++
23789 lt_prog_compiler_wl_CXX='-Wl,'
23790 # Make sure the PIC flag is empty. It appears that all Alpha
23791 # Linux and Compaq Tru64 Unix objects are PIC.
23792 lt_prog_compiler_pic_CXX=
23793 lt_prog_compiler_static_CXX='-non_shared'
23797 esac
23799 psos*)
23801 solaris*)
23802 case $cc_basename in
23803 CC*)
23804 # Sun C++ 4.2, 5.x and Centerline C++
23805 lt_prog_compiler_pic_CXX='-KPIC'
23806 lt_prog_compiler_static_CXX='-Bstatic'
23807 lt_prog_compiler_wl_CXX='-Qoption ld '
23809 gcx*)
23810 # Green Hills C++ Compiler
23811 lt_prog_compiler_pic_CXX='-PIC'
23815 esac
23817 sunos4*)
23818 case $cc_basename in
23819 CC*)
23820 # Sun C++ 4.x
23821 lt_prog_compiler_pic_CXX='-pic'
23822 lt_prog_compiler_static_CXX='-Bstatic'
23824 lcc*)
23825 # Lucid
23826 lt_prog_compiler_pic_CXX='-pic'
23830 esac
23832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23833 case $cc_basename in
23834 CC*)
23835 lt_prog_compiler_wl_CXX='-Wl,'
23836 lt_prog_compiler_pic_CXX='-KPIC'
23837 lt_prog_compiler_static_CXX='-Bstatic'
23839 esac
23841 tandem*)
23842 case $cc_basename in
23843 NCC*)
23844 # NonStop-UX NCC 3.20
23845 lt_prog_compiler_pic_CXX='-KPIC'
23849 esac
23851 vxworks*)
23854 lt_prog_compiler_can_build_shared_CXX=no
23856 esac
23859 case $host_os in
23860 # For platforms which do not support PIC, -DPIC is meaningless:
23861 *djgpp*)
23862 lt_prog_compiler_pic_CXX=
23865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23867 esac
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23869 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23874 # Check to make sure the PIC flag actually works.
23876 if test -n "$lt_prog_compiler_pic_CXX"; then
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23879 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23880 $as_echo_n "(cached) " >&6
23881 else
23882 lt_cv_prog_compiler_pic_works_CXX=no
23883 ac_outfile=conftest.$ac_objext
23884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23885 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23886 # Insert the option either (1) after the last *FLAGS variable, or
23887 # (2) before a word containing "conftest.", or (3) at the end.
23888 # Note that $ac_compile itself does not contain backslashes and begins
23889 # with a dollar sign (not a hyphen), so the echo should work correctly.
23890 # The option is referenced via a variable to avoid confusing sed.
23891 lt_compile=`echo "$ac_compile" | $SED \
23892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23894 -e 's:$: $lt_compiler_flag:'`
23895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23896 (eval "$lt_compile" 2>conftest.err)
23897 ac_status=$?
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 if (exit $ac_status) && test -s "$ac_outfile"; then
23901 # The compiler can only warn and ignore the option if not recognized
23902 # So say no if there are warnings other than the usual output.
23903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23906 lt_cv_prog_compiler_pic_works_CXX=yes
23909 $RM conftest*
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23913 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23915 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23916 case $lt_prog_compiler_pic_CXX in
23917 "" | " "*) ;;
23918 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23919 esac
23920 else
23921 lt_prog_compiler_pic_CXX=
23922 lt_prog_compiler_can_build_shared_CXX=no
23930 # Check to make sure the static flag actually works.
23932 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23934 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23935 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23936 $as_echo_n "(cached) " >&6
23937 else
23938 lt_cv_prog_compiler_static_works_CXX=no
23939 save_LDFLAGS="$LDFLAGS"
23940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23941 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23943 # The linker can only warn and ignore the option if not recognized
23944 # So say no if there are warnings
23945 if test -s conftest.err; then
23946 # Append any errors to the config.log.
23947 cat conftest.err 1>&5
23948 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23950 if diff conftest.exp conftest.er2 >/dev/null; then
23951 lt_cv_prog_compiler_static_works_CXX=yes
23953 else
23954 lt_cv_prog_compiler_static_works_CXX=yes
23957 $RM -r conftest*
23958 LDFLAGS="$save_LDFLAGS"
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23962 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23964 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23966 else
23967 lt_prog_compiler_static_CXX=
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23975 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23976 $as_echo_n "(cached) " >&6
23977 else
23978 lt_cv_prog_compiler_c_o_CXX=no
23979 $RM -r conftest 2>/dev/null
23980 mkdir conftest
23981 cd conftest
23982 mkdir out
23983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23985 lt_compiler_flag="-o out/conftest2.$ac_objext"
23986 # Insert the option either (1) after the last *FLAGS variable, or
23987 # (2) before a word containing "conftest.", or (3) at the end.
23988 # Note that $ac_compile itself does not contain backslashes and begins
23989 # with a dollar sign (not a hyphen), so the echo should work correctly.
23990 lt_compile=`echo "$ac_compile" | $SED \
23991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23993 -e 's:$: $lt_compiler_flag:'`
23994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23995 (eval "$lt_compile" 2>out/conftest.err)
23996 ac_status=$?
23997 cat out/conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24000 then
24001 # The compiler can only warn and ignore the option if not recognized
24002 # So say no if there are warnings
24003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24006 lt_cv_prog_compiler_c_o_CXX=yes
24009 chmod u+w . 2>&5
24010 $RM conftest*
24011 # SGI C++ compiler will create directory out/ii_files/ for
24012 # template instantiation
24013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24014 $RM out/* && rmdir out
24015 cd ..
24016 $RM -r conftest
24017 $RM conftest*
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24021 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
24026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24027 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24028 $as_echo_n "(cached) " >&6
24029 else
24030 lt_cv_prog_compiler_c_o_CXX=no
24031 $RM -r conftest 2>/dev/null
24032 mkdir conftest
24033 cd conftest
24034 mkdir out
24035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24037 lt_compiler_flag="-o out/conftest2.$ac_objext"
24038 # Insert the option either (1) after the last *FLAGS variable, or
24039 # (2) before a word containing "conftest.", or (3) at the end.
24040 # Note that $ac_compile itself does not contain backslashes and begins
24041 # with a dollar sign (not a hyphen), so the echo should work correctly.
24042 lt_compile=`echo "$ac_compile" | $SED \
24043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24045 -e 's:$: $lt_compiler_flag:'`
24046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24047 (eval "$lt_compile" 2>out/conftest.err)
24048 ac_status=$?
24049 cat out/conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24052 then
24053 # The compiler can only warn and ignore the option if not recognized
24054 # So say no if there are warnings
24055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24058 lt_cv_prog_compiler_c_o_CXX=yes
24061 chmod u+w . 2>&5
24062 $RM conftest*
24063 # SGI C++ compiler will create directory out/ii_files/ for
24064 # template instantiation
24065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24066 $RM out/* && rmdir out
24067 cd ..
24068 $RM -r conftest
24069 $RM conftest*
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24073 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24078 hard_links="nottested"
24079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24080 # do not overwrite the value of need_locks provided by the user
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24082 $as_echo_n "checking if we can lock with hard links... " >&6; }
24083 hard_links=yes
24084 $RM conftest*
24085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24086 touch conftest.a
24087 ln conftest.a conftest.b 2>&5 || hard_links=no
24088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24090 $as_echo "$hard_links" >&6; }
24091 if test "$hard_links" = no; then
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24093 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24094 need_locks=warn
24096 else
24097 need_locks=no
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24103 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24105 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24106 case $host_os in
24107 aix[4-9]*)
24108 # If we're using GNU nm, then we don't want the "-C" option.
24109 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24110 # Also, AIX nm treats weak defined symbols like other global defined
24111 # symbols, whereas GNU nm marks them as "W".
24112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24113 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'
24114 else
24115 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'
24118 pw32*)
24119 export_symbols_cmds_CXX="$ltdll_cmds"
24121 cygwin* | mingw* | cegcc*)
24122 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'
24125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24127 esac
24128 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24131 $as_echo "$ld_shlibs_CXX" >&6; }
24132 test "$ld_shlibs_CXX" = no && can_build_shared=no
24134 with_gnu_ld_CXX=$with_gnu_ld
24142 # Do we need to explicitly link libc?
24144 case "x$archive_cmds_need_lc_CXX" in
24145 x|xyes)
24146 # Assume -lc should be added
24147 archive_cmds_need_lc_CXX=yes
24149 if test "$enable_shared" = yes && test "$GCC" = yes; then
24150 case $archive_cmds_CXX in
24151 *'~'*)
24152 # FIXME: we may have to deal with multi-command sequences.
24154 '$CC '*)
24155 # Test whether the compiler implicitly links with -lc since on some
24156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24157 # to ld, don't add -lc before -lgcc.
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24160 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24161 $as_echo_n "(cached) " >&6
24162 else
24163 $RM conftest*
24164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24167 (eval $ac_compile) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; } 2>conftest.err; then
24171 soname=conftest
24172 lib=conftest
24173 libobjs=conftest.$ac_objext
24174 deplibs=
24175 wl=$lt_prog_compiler_wl_CXX
24176 pic_flag=$lt_prog_compiler_pic_CXX
24177 compiler_flags=-v
24178 linker_flags=-v
24179 verstring=
24180 output_objdir=.
24181 libname=conftest
24182 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24183 allow_undefined_flag_CXX=
24184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24185 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24186 ac_status=$?
24187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188 test $ac_status = 0; }
24189 then
24190 lt_cv_archive_cmds_need_lc_CXX=no
24191 else
24192 lt_cv_archive_cmds_need_lc_CXX=yes
24194 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24195 else
24196 cat conftest.err 1>&5
24198 $RM conftest*
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24202 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24203 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24205 esac
24208 esac
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24274 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24276 library_names_spec=
24277 libname_spec='lib$name'
24278 soname_spec=
24279 shrext_cmds=".so"
24280 postinstall_cmds=
24281 postuninstall_cmds=
24282 finish_cmds=
24283 finish_eval=
24284 shlibpath_var=
24285 shlibpath_overrides_runpath=unknown
24286 version_type=none
24287 dynamic_linker="$host_os ld.so"
24288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24289 need_lib_prefix=unknown
24290 hardcode_into_libs=no
24292 # when you set need_version to no, make sure it does not cause -set_version
24293 # flags to be left without arguments
24294 need_version=unknown
24296 case $host_os in
24297 aix3*)
24298 version_type=linux
24299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24300 shlibpath_var=LIBPATH
24302 # AIX 3 has no versioning support, so we append a major version to the name.
24303 soname_spec='${libname}${release}${shared_ext}$major'
24306 aix[4-9]*)
24307 version_type=linux
24308 need_lib_prefix=no
24309 need_version=no
24310 hardcode_into_libs=yes
24311 if test "$host_cpu" = ia64; then
24312 # AIX 5 supports IA64
24313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24314 shlibpath_var=LD_LIBRARY_PATH
24315 else
24316 # With GCC up to 2.95.x, collect2 would create an import file
24317 # for dependence libraries. The import file would start with
24318 # the line `#! .'. This would cause the generated library to
24319 # depend on `.', always an invalid library. This was fixed in
24320 # development snapshots of GCC prior to 3.0.
24321 case $host_os in
24322 aix4 | aix4.[01] | aix4.[01].*)
24323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24324 echo ' yes '
24325 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24327 else
24328 can_build_shared=no
24331 esac
24332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24333 # soname into executable. Probably we can add versioning support to
24334 # collect2, so additional links can be useful in future.
24335 if test "$aix_use_runtimelinking" = yes; then
24336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24337 # instead of lib<name>.a to let people know that these are not
24338 # typical AIX shared libraries.
24339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24340 else
24341 # We preserve .a as extension for shared libraries through AIX4.2
24342 # and later when we are not doing run time linking.
24343 library_names_spec='${libname}${release}.a $libname.a'
24344 soname_spec='${libname}${release}${shared_ext}$major'
24346 shlibpath_var=LIBPATH
24350 amigaos*)
24351 case $host_cpu in
24352 powerpc)
24353 # Since July 2007 AmigaOS4 officially supports .so libraries.
24354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24357 m68k)
24358 library_names_spec='$libname.ixlibrary $libname.a'
24359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24360 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'
24362 esac
24365 beos*)
24366 library_names_spec='${libname}${shared_ext}'
24367 dynamic_linker="$host_os ld.so"
24368 shlibpath_var=LIBRARY_PATH
24371 bsdi[45]*)
24372 version_type=linux
24373 need_version=no
24374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24375 soname_spec='${libname}${release}${shared_ext}$major'
24376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24377 shlibpath_var=LD_LIBRARY_PATH
24378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24380 # the default ld.so.conf also contains /usr/contrib/lib and
24381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24382 # libtool to hard-code these into programs
24385 cygwin* | mingw* | pw32* | cegcc*)
24386 version_type=windows
24387 shrext_cmds=".dll"
24388 need_version=no
24389 need_lib_prefix=no
24391 case $GCC,$host_os in
24392 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24393 library_names_spec='$libname.dll.a'
24394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24395 postinstall_cmds='base_file=`basename \${file}`~
24396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24397 dldir=$destdir/`dirname \$dlpath`~
24398 test -d \$dldir || mkdir -p \$dldir~
24399 $install_prog $dir/$dlname \$dldir/$dlname~
24400 chmod a+x \$dldir/$dlname~
24401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24405 dlpath=$dir/\$dldll~
24406 $RM \$dlpath'
24407 shlibpath_overrides_runpath=yes
24409 case $host_os in
24410 cygwin*)
24411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24415 mingw* | cegcc*)
24416 # MinGW DLLs use traditional 'lib' prefix
24417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24419 pw32*)
24420 # pw32 DLLs use 'pw' prefix rather than 'lib'
24421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24423 esac
24427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24429 esac
24430 dynamic_linker='Win32 ld.exe'
24431 # FIXME: first we should search . and the directory the executable is in
24432 shlibpath_var=PATH
24435 darwin* | rhapsody*)
24436 dynamic_linker="$host_os dyld"
24437 version_type=darwin
24438 need_lib_prefix=no
24439 need_version=no
24440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24441 soname_spec='${libname}${release}${major}$shared_ext'
24442 shlibpath_overrides_runpath=yes
24443 shlibpath_var=DYLD_LIBRARY_PATH
24444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24449 dgux*)
24450 version_type=linux
24451 need_lib_prefix=no
24452 need_version=no
24453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24454 soname_spec='${libname}${release}${shared_ext}$major'
24455 shlibpath_var=LD_LIBRARY_PATH
24458 freebsd* | dragonfly*)
24459 # DragonFly does not have aout. When/if they implement a new
24460 # versioning mechanism, adjust this.
24461 if test -x /usr/bin/objformat; then
24462 objformat=`/usr/bin/objformat`
24463 else
24464 case $host_os in
24465 freebsd[23].*) objformat=aout ;;
24466 *) objformat=elf ;;
24467 esac
24469 version_type=freebsd-$objformat
24470 case $version_type in
24471 freebsd-elf*)
24472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24473 need_version=no
24474 need_lib_prefix=no
24476 freebsd-*)
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24478 need_version=yes
24480 esac
24481 shlibpath_var=LD_LIBRARY_PATH
24482 case $host_os in
24483 freebsd2.*)
24484 shlibpath_overrides_runpath=yes
24486 freebsd3.[01]* | freebsdelf3.[01]*)
24487 shlibpath_overrides_runpath=yes
24488 hardcode_into_libs=yes
24490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24492 shlibpath_overrides_runpath=no
24493 hardcode_into_libs=yes
24495 *) # from 4.6 on, and DragonFly
24496 shlibpath_overrides_runpath=yes
24497 hardcode_into_libs=yes
24499 esac
24502 haiku*)
24503 version_type=linux
24504 need_lib_prefix=no
24505 need_version=no
24506 dynamic_linker="$host_os runtime_loader"
24507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24508 soname_spec='${libname}${release}${shared_ext}$major'
24509 shlibpath_var=LIBRARY_PATH
24510 shlibpath_overrides_runpath=yes
24511 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24512 hardcode_into_libs=yes
24515 hpux9* | hpux10* | hpux11*)
24516 # Give a soname corresponding to the major version so that dld.sl refuses to
24517 # link against other versions.
24518 version_type=sunos
24519 need_lib_prefix=no
24520 need_version=no
24521 case $host_cpu in
24522 ia64*)
24523 shrext_cmds='.so'
24524 hardcode_into_libs=yes
24525 dynamic_linker="$host_os dld.so"
24526 shlibpath_var=LD_LIBRARY_PATH
24527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24529 soname_spec='${libname}${release}${shared_ext}$major'
24530 if test "X$HPUX_IA64_MODE" = X32; then
24531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24532 else
24533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24537 hppa*64*)
24538 shrext_cmds='.sl'
24539 hardcode_into_libs=yes
24540 dynamic_linker="$host_os dld.sl"
24541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24544 soname_spec='${libname}${release}${shared_ext}$major'
24545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24549 shrext_cmds='.sl'
24550 dynamic_linker="$host_os dld.sl"
24551 shlibpath_var=SHLIB_PATH
24552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24554 soname_spec='${libname}${release}${shared_ext}$major'
24556 esac
24557 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24558 postinstall_cmds='chmod 555 $lib'
24559 # or fails outright, so override atomically:
24560 install_override_mode=555
24563 interix[3-9]*)
24564 version_type=linux
24565 need_lib_prefix=no
24566 need_version=no
24567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24568 soname_spec='${libname}${release}${shared_ext}$major'
24569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24570 shlibpath_var=LD_LIBRARY_PATH
24571 shlibpath_overrides_runpath=no
24572 hardcode_into_libs=yes
24575 irix5* | irix6* | nonstopux*)
24576 case $host_os in
24577 nonstopux*) version_type=nonstopux ;;
24579 if test "$lt_cv_prog_gnu_ld" = yes; then
24580 version_type=linux
24581 else
24582 version_type=irix
24583 fi ;;
24584 esac
24585 need_lib_prefix=no
24586 need_version=no
24587 soname_spec='${libname}${release}${shared_ext}$major'
24588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24589 case $host_os in
24590 irix5* | nonstopux*)
24591 libsuff= shlibsuff=
24594 case $LD in # libtool.m4 will add one of these switches to LD
24595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24596 libsuff= shlibsuff= libmagic=32-bit;;
24597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24598 libsuff=32 shlibsuff=N32 libmagic=N32;;
24599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24601 *) libsuff= shlibsuff= libmagic=never-match;;
24602 esac
24604 esac
24605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24606 shlibpath_overrides_runpath=no
24607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24609 hardcode_into_libs=yes
24612 # No shared lib support for Linux oldld, aout, or coff.
24613 linux*oldld* | linux*aout* | linux*coff*)
24614 dynamic_linker=no
24617 # This must be Linux ELF.
24619 # uclinux* changes (here and below) have been submitted to the libtool
24620 # project, but have not yet been accepted: they are GCC-local changes
24621 # for the time being. (See
24622 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24623 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24624 version_type=linux
24625 need_lib_prefix=no
24626 need_version=no
24627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24628 soname_spec='${libname}${release}${shared_ext}$major'
24629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24630 shlibpath_var=LD_LIBRARY_PATH
24631 shlibpath_overrides_runpath=no
24633 # Some binutils ld are patched to set DT_RUNPATH
24634 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 lt_cv_shlibpath_overrides_runpath=no
24638 save_LDFLAGS=$LDFLAGS
24639 save_libdir=$libdir
24640 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24641 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24646 main ()
24650 return 0;
24652 _ACEOF
24653 if ac_fn_cxx_try_link "$LINENO"; then :
24654 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24655 lt_cv_shlibpath_overrides_runpath=yes
24658 rm -f core conftest.err conftest.$ac_objext \
24659 conftest$ac_exeext conftest.$ac_ext
24660 LDFLAGS=$save_LDFLAGS
24661 libdir=$save_libdir
24665 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24667 # This implies no fast_install, which is unacceptable.
24668 # Some rework will be needed to allow for fast_install
24669 # before this can be enabled.
24670 hardcode_into_libs=yes
24672 # Append ld.so.conf contents to the search path
24673 if test -f /etc/ld.so.conf; then
24674 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' ' '`
24675 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24678 # We used to test for /lib/ld.so.1 and disable shared libraries on
24679 # powerpc, because MkLinux only supported shared libraries with the
24680 # GNU dynamic linker. Since this was broken with cross compilers,
24681 # most powerpc-linux boxes support dynamic linking these days and
24682 # people can always --disable-shared, the test was removed, and we
24683 # assume the GNU/Linux dynamic linker is in use.
24684 dynamic_linker='GNU/Linux ld.so'
24687 netbsd*)
24688 version_type=sunos
24689 need_lib_prefix=no
24690 need_version=no
24691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24694 dynamic_linker='NetBSD (a.out) ld.so'
24695 else
24696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24697 soname_spec='${libname}${release}${shared_ext}$major'
24698 dynamic_linker='NetBSD ld.elf_so'
24700 shlibpath_var=LD_LIBRARY_PATH
24701 shlibpath_overrides_runpath=yes
24702 hardcode_into_libs=yes
24705 newsos6)
24706 version_type=linux
24707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24708 shlibpath_var=LD_LIBRARY_PATH
24709 shlibpath_overrides_runpath=yes
24712 *nto* | *qnx*)
24713 version_type=qnx
24714 need_lib_prefix=no
24715 need_version=no
24716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24717 soname_spec='${libname}${release}${shared_ext}$major'
24718 shlibpath_var=LD_LIBRARY_PATH
24719 shlibpath_overrides_runpath=no
24720 hardcode_into_libs=yes
24721 dynamic_linker='ldqnx.so'
24724 openbsd*)
24725 version_type=sunos
24726 sys_lib_dlsearch_path_spec="/usr/lib"
24727 need_lib_prefix=no
24728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24729 case $host_os in
24730 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24731 *) need_version=no ;;
24732 esac
24733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24735 shlibpath_var=LD_LIBRARY_PATH
24736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24737 case $host_os in
24738 openbsd2.[89] | openbsd2.[89].*)
24739 shlibpath_overrides_runpath=no
24742 shlibpath_overrides_runpath=yes
24744 esac
24745 else
24746 shlibpath_overrides_runpath=yes
24750 os2*)
24751 libname_spec='$name'
24752 shrext_cmds=".dll"
24753 need_lib_prefix=no
24754 library_names_spec='$libname${shared_ext} $libname.a'
24755 dynamic_linker='OS/2 ld.exe'
24756 shlibpath_var=LIBPATH
24759 osf3* | osf4* | osf5*)
24760 version_type=osf
24761 need_lib_prefix=no
24762 need_version=no
24763 soname_spec='${libname}${release}${shared_ext}$major'
24764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24765 shlibpath_var=LD_LIBRARY_PATH
24766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24770 rdos*)
24771 dynamic_linker=no
24774 solaris*)
24775 version_type=linux
24776 need_lib_prefix=no
24777 need_version=no
24778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24779 soname_spec='${libname}${release}${shared_ext}$major'
24780 shlibpath_var=LD_LIBRARY_PATH
24781 shlibpath_overrides_runpath=yes
24782 hardcode_into_libs=yes
24783 # ldd complains unless libraries are executable
24784 postinstall_cmds='chmod +x $lib'
24787 sunos4*)
24788 version_type=sunos
24789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24791 shlibpath_var=LD_LIBRARY_PATH
24792 shlibpath_overrides_runpath=yes
24793 if test "$with_gnu_ld" = yes; then
24794 need_lib_prefix=no
24796 need_version=yes
24799 sysv4 | sysv4.3*)
24800 version_type=linux
24801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24802 soname_spec='${libname}${release}${shared_ext}$major'
24803 shlibpath_var=LD_LIBRARY_PATH
24804 case $host_vendor in
24805 sni)
24806 shlibpath_overrides_runpath=no
24807 need_lib_prefix=no
24808 runpath_var=LD_RUN_PATH
24810 siemens)
24811 need_lib_prefix=no
24813 motorola)
24814 need_lib_prefix=no
24815 need_version=no
24816 shlibpath_overrides_runpath=no
24817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24819 esac
24822 sysv4*MP*)
24823 if test -d /usr/nec ;then
24824 version_type=linux
24825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24826 soname_spec='$libname${shared_ext}.$major'
24827 shlibpath_var=LD_LIBRARY_PATH
24831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24832 version_type=freebsd-elf
24833 need_lib_prefix=no
24834 need_version=no
24835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24836 soname_spec='${libname}${release}${shared_ext}$major'
24837 shlibpath_var=LD_LIBRARY_PATH
24838 shlibpath_overrides_runpath=yes
24839 hardcode_into_libs=yes
24840 if test "$with_gnu_ld" = yes; then
24841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24842 else
24843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24844 case $host_os in
24845 sco3.2v5*)
24846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24848 esac
24850 sys_lib_dlsearch_path_spec='/usr/lib'
24853 tpf*)
24854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24855 version_type=linux
24856 need_lib_prefix=no
24857 need_version=no
24858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24859 shlibpath_var=LD_LIBRARY_PATH
24860 shlibpath_overrides_runpath=no
24861 hardcode_into_libs=yes
24864 uts4*)
24865 version_type=linux
24866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24867 soname_spec='${libname}${release}${shared_ext}$major'
24868 shlibpath_var=LD_LIBRARY_PATH
24871 # Shared libraries for VwWorks, >= 7 only at this stage
24872 # and (fpic) still incompatible with "large" code models
24873 # in a few configurations. Only for RTP mode in any case,
24874 # and upon explicit request at configure time.
24875 vxworks7*)
24876 dynamic_linker=no
24877 case ${with_multisubdir}-${enable_shared} in
24878 *large*)
24880 *mrtp*-yes)
24881 version_type=linux
24882 need_lib_prefix=no
24883 need_version=no
24884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24885 soname_spec='${libname}${release}${shared_ext}$major'
24886 dynamic_linker="$host_os module_loader"
24888 esac
24891 dynamic_linker=no
24893 esac
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24895 $as_echo "$dynamic_linker" >&6; }
24896 test "$dynamic_linker" = no && can_build_shared=no
24898 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24899 if test "$GCC" = yes; then
24900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24907 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24949 hardcode_action_CXX=
24950 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24951 test -n "$runpath_var_CXX" ||
24952 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24954 # We can hardcode non-existent directories.
24955 if test "$hardcode_direct_CXX" != no &&
24956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24957 # have to relink, otherwise we might link with an installed library
24958 # when we should be linking with a yet-to-be-installed one
24959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24960 test "$hardcode_minus_L_CXX" != no; then
24961 # Linking always hardcodes the temporary library directory.
24962 hardcode_action_CXX=relink
24963 else
24964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24965 hardcode_action_CXX=immediate
24967 else
24968 # We cannot hardcode anything, or else we can only hardcode existing
24969 # directories.
24970 hardcode_action_CXX=unsupported
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24973 $as_echo "$hardcode_action_CXX" >&6; }
24975 if test "$hardcode_action_CXX" = relink ||
24976 test "$inherit_rpath_CXX" = yes; then
24977 # Fast installation is not supported
24978 enable_fast_install=no
24979 elif test "$shlibpath_overrides_runpath" = yes ||
24980 test "$enable_shared" = no; then
24981 # Fast installation is not necessary
24982 enable_fast_install=needless
24991 fi # test -n "$compiler"
24993 CC=$lt_save_CC
24994 LDCXX=$LD
24995 LD=$lt_save_LD
24996 GCC=$lt_save_GCC
24997 with_gnu_ld=$lt_save_with_gnu_ld
24998 lt_cv_path_LDCXX=$lt_cv_path_LD
24999 lt_cv_path_LD=$lt_save_path_LD
25000 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25001 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25002 fi # test "$_lt_caught_CXX_error" != yes
25004 ac_ext=cpp
25005 ac_cpp='$CXXCPP $CPPFLAGS'
25006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25025 # Only expand once:
25031 if test x$enable_darwin_at_rpath = xyes; then
25032 ENABLE_DARWIN_AT_RPATH_TRUE=
25033 ENABLE_DARWIN_AT_RPATH_FALSE='#'
25034 else
25035 ENABLE_DARWIN_AT_RPATH_TRUE='#'
25036 ENABLE_DARWIN_AT_RPATH_FALSE=
25039 DARWIN_DO_EXTRA_RPATH=0
25041 # Check whether --with-darwin-extra-rpath was given.
25042 if test "${with_darwin_extra_rpath+set}" = set; then :
25043 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
25044 DARWIN_ADD_RPATH="$withval"
25045 DARWIN_DO_EXTRA_RPATH=1
25050 cat >>confdefs.h <<_ACEOF
25051 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25052 _ACEOF
25055 cat >>confdefs.h <<_ACEOF
25056 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25057 _ACEOF
25060 # Identify the assembler which will work hand-in-glove with the newly
25061 # built GCC, so that we can examine its features. This is the assembler
25062 # which will be driven by the driver program.
25064 # If build != host, and we aren't building gas in-tree, we identify a
25065 # build->target assembler and hope that it will have the same features
25066 # as the host->target assembler we'll be using.
25067 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25069 if ${gcc_cv_as+:} false; then :
25071 else
25073 if test -x "$DEFAULT_ASSEMBLER"; then
25074 gcc_cv_as="$DEFAULT_ASSEMBLER"
25075 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25076 && test -f ../gas/Makefile \
25077 && test x$build = x$host; then
25078 gcc_cv_as=../gas/as-new$build_exeext
25079 elif test -x as$build_exeext; then
25080 # Build using assembler in the current directory.
25081 gcc_cv_as=./as$build_exeext
25082 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
25083 gcc_cv_as="$AS_FOR_TARGET"
25084 else
25085 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25086 set dummy $AS_FOR_TARGET; ac_word=$2
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25088 $as_echo_n "checking for $ac_word... " >&6; }
25089 if ${ac_cv_path_gcc_cv_as+:} false; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 case $gcc_cv_as in
25093 [\\/]* | ?:[\\/]*)
25094 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
25097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25098 for as_dir in $PATH
25100 IFS=$as_save_IFS
25101 test -z "$as_dir" && as_dir=.
25102 for ac_exec_ext in '' $ac_executable_extensions; do
25103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25104 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
25105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25106 break 2
25108 done
25109 done
25110 IFS=$as_save_IFS
25113 esac
25115 gcc_cv_as=$ac_cv_path_gcc_cv_as
25116 if test -n "$gcc_cv_as"; then
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25118 $as_echo "$gcc_cv_as" >&6; }
25119 else
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25121 $as_echo "no" >&6; }
25128 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25130 case "$ORIGINAL_AS_FOR_TARGET" in
25131 ./as | ./as$build_exeext) ;;
25132 *) ac_config_files="$ac_config_files as:exec-tool.in"
25134 esac
25136 default_ld=
25137 # Check whether --enable-ld was given.
25138 if test "${enable_ld+set}" = set; then :
25139 enableval=$enable_ld; case "${enableval}" in
25141 default_ld=ld.gold
25143 esac
25147 install_gold_as_default=no
25148 # Check whether --enable-gold was given.
25149 if test "${enable_gold+set}" = set; then :
25150 enableval=$enable_gold; case "${enableval}" in
25151 default)
25152 install_gold_as_default=yes
25154 yes)
25155 if test x${default_ld} != x; then
25156 install_gold_as_default=yes
25162 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25164 esac
25168 # Identify the linker which will work hand-in-glove with the newly
25169 # built GCC, so that we can examine its features. This is the linker
25170 # which will be driven by the driver program.
25172 # If build != host, and we aren't building gas in-tree, we identify a
25173 # build->target linker and hope that it will have the same features
25174 # as the host->target linker we'll be using.
25175 gcc_cv_gld_major_version=
25176 gcc_cv_gld_minor_version=
25177 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25178 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25179 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25181 if ${gcc_cv_ld+:} false; then :
25183 else
25185 if test -x "$DEFAULT_LINKER"; then
25186 gcc_cv_ld="$DEFAULT_LINKER"
25187 elif test $install_gold_as_default = yes \
25188 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25189 && test -f ../gold/Makefile \
25190 && test x$build = x$host; then
25191 gcc_cv_ld=../gold/ld-new$build_exeext
25192 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25193 && test -f ../ld/Makefile \
25194 && test x$build = x$host; then
25195 gcc_cv_ld=../ld/ld-new$build_exeext
25196 elif test -x collect-ld$build_exeext; then
25197 # Build using linker in the current directory.
25198 gcc_cv_ld=./collect-ld$build_exeext
25199 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25200 gcc_cv_ld="$LD_FOR_TARGET"
25201 else
25202 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25203 set dummy $LD_FOR_TARGET; ac_word=$2
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25205 $as_echo_n "checking for $ac_word... " >&6; }
25206 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25207 $as_echo_n "(cached) " >&6
25208 else
25209 case $gcc_cv_ld in
25210 [\\/]* | ?:[\\/]*)
25211 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25215 for as_dir in $PATH
25217 IFS=$as_save_IFS
25218 test -z "$as_dir" && as_dir=.
25219 for ac_exec_ext in '' $ac_executable_extensions; do
25220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25221 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25223 break 2
25225 done
25226 done
25227 IFS=$as_save_IFS
25230 esac
25232 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25233 if test -n "$gcc_cv_ld"; then
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25235 $as_echo "$gcc_cv_ld" >&6; }
25236 else
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25238 $as_echo "no" >&6; }
25245 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25246 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25247 # if the PLUGIN_LD is set ld-new, just have it as ld
25248 # as that is the installed named.
25249 if test x$PLUGIN_LD_SUFFIX = xld-new \
25250 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25251 PLUGIN_LD_SUFFIX=ld
25254 # Check whether --with-plugin-ld was given.
25255 if test "${with_plugin_ld+set}" = set; then :
25256 withval=$with_plugin_ld; if test x"$withval" != x; then
25257 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25258 PLUGIN_LD_SUFFIX="$withval"
25264 cat >>confdefs.h <<_ACEOF
25265 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25266 _ACEOF
25269 # Check to see if we are using gold instead of ld
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25271 $as_echo_n "checking whether we are using gold... " >&6; }
25272 ld_is_gold=no
25273 if test x$gcc_cv_ld != x; then
25274 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25275 | grep "GNU gold" > /dev/null; then
25276 ld_is_gold=yes
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25280 $as_echo "$ld_is_gold" >&6; }
25282 # Check to see if we are using mold instead of ld
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25284 $as_echo_n "checking whether we are using mold... " >&6; }
25285 ld_is_mold=no
25286 if test x$gcc_cv_ld != x; then
25287 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25288 | grep "mold" > /dev/null; then
25289 ld_is_mold=yes
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25293 $as_echo "$ld_is_mold" >&6; }
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25297 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25298 # Check to see if default ld is not gold, but gold is
25299 # available and has support for split stack. If gcc was configured
25300 # with gold then no checking is done.
25302 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25304 # For platforms other than powerpc64*, enable as appropriate.
25306 gold_non_default=no
25307 ld_gold=`which ${gcc_cv_ld}.gold`
25308 # Make sure this gold has minimal split stack support
25309 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25310 ld_vers=`$ld_gold --version | sed 1q`
25311 gold_vers=`echo $ld_vers | sed -n \
25312 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25313 case $target in
25314 # check that the gold version contains the complete split stack support
25315 # on powerpc64 big and little endian
25316 powerpc64*-*-*)
25317 case "$gold_vers" in
25318 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25320 *) gold_non_default=no
25322 esac
25324 esac
25326 if test $gold_non_default = yes; then
25328 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25333 $as_echo "$gold_non_default" >&6; }
25335 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25337 case "$ORIGINAL_LD_FOR_TARGET" in
25338 ./collect-ld | ./collect-ld$build_exeext) ;;
25339 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25341 esac
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25344 $as_echo_n "checking what linker to use... " >&6; }
25345 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25346 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25347 # Single tree build which includes ld. We want to prefer it
25348 # over whatever linker top-level may have detected, since
25349 # we'll use what we're building after installation anyway.
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25351 $as_echo "newly built ld" >&6; }
25352 in_tree_ld=yes
25353 in_tree_ld_is_elf=no
25354 if (grep 'EMUL = .*elf' ../ld/Makefile \
25355 || grep 'EMUL = .*linux' ../ld/Makefile \
25356 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25357 in_tree_ld_is_elf=yes
25358 elif test "$ld_is_gold" = yes; then
25359 in_tree_ld_is_elf=yes
25361 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
25363 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25364 if test x$gcc_cv_gld_version != x; then
25365 break
25367 done
25368 case $gcc_cv_gld_version in
25369 VERSION=[0-9]*) ;;
25370 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25371 esac
25372 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25373 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25374 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25375 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25376 else
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25378 $as_echo "$gcc_cv_ld" >&6; }
25379 in_tree_ld=no
25380 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25381 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25382 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25388 # Figure out what nm we will be using.
25389 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25390 if ${gcc_cv_nm+:} false; then :
25392 else
25394 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25395 && test -f ../binutils/Makefile \
25396 && test x$build = x$host; then
25397 gcc_cv_nm=../binutils/nm-new$build_exeext
25398 elif test -x nm$build_exeext; then
25399 gcc_cv_nm=./nm$build_exeext
25400 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25401 gcc_cv_nm="$NM_FOR_TARGET"
25402 else
25403 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25404 set dummy $NM_FOR_TARGET; ac_word=$2
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25406 $as_echo_n "checking for $ac_word... " >&6; }
25407 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 case $gcc_cv_nm in
25411 [\\/]* | ?:[\\/]*)
25412 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25416 for as_dir in $PATH
25418 IFS=$as_save_IFS
25419 test -z "$as_dir" && as_dir=.
25420 for ac_exec_ext in '' $ac_executable_extensions; do
25421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25422 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25424 break 2
25426 done
25427 done
25428 IFS=$as_save_IFS
25431 esac
25433 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25434 if test -n "$gcc_cv_nm"; then
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25436 $as_echo "$gcc_cv_nm" >&6; }
25437 else
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25439 $as_echo "no" >&6; }
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25447 $as_echo_n "checking what nm to use... " >&6; }
25448 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25449 # Single tree build which includes binutils.
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25451 $as_echo "newly built nm" >&6; }
25452 in_tree_nm=yes
25453 else
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25455 $as_echo "$gcc_cv_nm" >&6; }
25456 in_tree_nm=no
25459 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25461 case "$ORIGINAL_NM_FOR_TARGET" in
25462 ./nm | ./nm$build_exeext) ;;
25463 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25465 esac
25468 # Figure out what objdump we will be using.
25469 if ${gcc_cv_objdump+:} false; then :
25471 else
25473 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25474 && test -f ../binutils/Makefile \
25475 && test x$build = x$host; then
25476 # Single tree build which includes binutils.
25477 gcc_cv_objdump=../binutils/objdump$build_exeext
25478 elif test -x objdump$build_exeext; then
25479 gcc_cv_objdump=./objdump$build_exeext
25480 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25481 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25482 else
25483 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25484 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25486 $as_echo_n "checking for $ac_word... " >&6; }
25487 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25488 $as_echo_n "(cached) " >&6
25489 else
25490 case $gcc_cv_objdump in
25491 [\\/]* | ?:[\\/]*)
25492 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25496 for as_dir in $PATH
25498 IFS=$as_save_IFS
25499 test -z "$as_dir" && as_dir=.
25500 for ac_exec_ext in '' $ac_executable_extensions; do
25501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25502 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25504 break 2
25506 done
25507 done
25508 IFS=$as_save_IFS
25511 esac
25513 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25514 if test -n "$gcc_cv_objdump"; then
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25516 $as_echo "$gcc_cv_objdump" >&6; }
25517 else
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25519 $as_echo "no" >&6; }
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25527 $as_echo_n "checking what objdump to use... " >&6; }
25528 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25529 # Single tree build which includes binutils.
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25531 $as_echo "newly built objdump" >&6; }
25532 elif test x$gcc_cv_objdump = x; then
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25534 $as_echo "not found" >&6; }
25535 else
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25537 $as_echo "$gcc_cv_objdump" >&6; }
25540 # Figure out what readelf we will be using.
25541 if ${gcc_cv_readelf+:} false; then :
25543 else
25545 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25546 && test -f ../binutils/Makefile \
25547 && test x$build = x$host; then
25548 # Single tree build which includes binutils.
25549 gcc_cv_readelf=../binutils/readelf$build_exeext
25550 elif test -x readelf$build_exeext; then
25551 gcc_cv_readelf=./readelf$build_exeext
25552 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25553 gcc_cv_readelf="$READELF_FOR_TARGET"
25554 else
25555 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25556 set dummy $READELF_FOR_TARGET; ac_word=$2
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25558 $as_echo_n "checking for $ac_word... " >&6; }
25559 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25560 $as_echo_n "(cached) " >&6
25561 else
25562 case $gcc_cv_readelf in
25563 [\\/]* | ?:[\\/]*)
25564 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25568 for as_dir in $PATH
25570 IFS=$as_save_IFS
25571 test -z "$as_dir" && as_dir=.
25572 for ac_exec_ext in '' $ac_executable_extensions; do
25573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25574 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25576 break 2
25578 done
25579 done
25580 IFS=$as_save_IFS
25583 esac
25585 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25586 if test -n "$gcc_cv_readelf"; then
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25588 $as_echo "$gcc_cv_readelf" >&6; }
25589 else
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25591 $as_echo "no" >&6; }
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25599 $as_echo_n "checking what readelf to use... " >&6; }
25600 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25601 # Single tree build which includes binutils.
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25603 $as_echo "newly built readelf" >&6; }
25604 elif test x$gcc_cv_readelf = x; then
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25606 $as_echo "not found" >&6; }
25607 else
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25609 $as_echo "$gcc_cv_readelf" >&6; }
25612 # Figure out what otool we will be using.
25613 if ${gcc_cv_otool+:} false; then :
25615 else
25617 if test -x otool$build_exeext; then
25618 gcc_cv_otool=./otool$build_exeext
25619 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25620 gcc_cv_otool="$OTOOL_FOR_TARGET"
25621 else
25622 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25623 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25625 $as_echo_n "checking for $ac_word... " >&6; }
25626 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25627 $as_echo_n "(cached) " >&6
25628 else
25629 case $gcc_cv_otool in
25630 [\\/]* | ?:[\\/]*)
25631 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25635 for as_dir in $PATH
25637 IFS=$as_save_IFS
25638 test -z "$as_dir" && as_dir=.
25639 for ac_exec_ext in '' $ac_executable_extensions; do
25640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25641 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25643 break 2
25645 done
25646 done
25647 IFS=$as_save_IFS
25650 esac
25652 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25653 if test -n "$gcc_cv_otool"; then
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25655 $as_echo "$gcc_cv_otool" >&6; }
25656 else
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25658 $as_echo "no" >&6; }
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25666 $as_echo_n "checking what otool to use... " >&6; }
25667 if test x$gcc_cv_otool = x; then
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25669 $as_echo "not found" >&6; }
25670 else
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25672 $as_echo "$gcc_cv_otool" >&6; }
25675 # Figure out the dsymutil we will use.
25676 if ${gcc_cv_dsymutil+:} false; then :
25678 else
25680 if test -x "$DEFAULT_DSYMUTIL"; then
25681 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25682 elif test -x dsymutil$build_exeext; then
25683 gcc_cv_dsymutil=./dsymutil$build_exeext
25684 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25685 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25686 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25687 gcc_cv_dsymutil=$DSYMUTIL
25688 else
25689 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25690 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25692 $as_echo_n "checking for $ac_word... " >&6; }
25693 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 case $gcc_cv_dsymutil in
25697 [\\/]* | ?:[\\/]*)
25698 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25702 for as_dir in $PATH
25704 IFS=$as_save_IFS
25705 test -z "$as_dir" && as_dir=.
25706 for ac_exec_ext in '' $ac_executable_extensions; do
25707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25708 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25710 break 2
25712 done
25713 done
25714 IFS=$as_save_IFS
25717 esac
25719 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25720 if test -n "$gcc_cv_dsymutil"; then
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25722 $as_echo "$gcc_cv_dsymutil" >&6; }
25723 else
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25725 $as_echo "no" >&6; }
25732 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25734 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25735 ./dsymutil | ./dsymutil$build_exeext) ;;
25736 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25738 esac
25740 # Figure out what assembler alignment features are present.
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25742 $as_echo_n "checking assembler flags... " >&6; }
25743 if ${gcc_cv_as_flags+:} false; then :
25744 $as_echo_n "(cached) " >&6
25745 else
25746 case "$target" in
25747 i[34567]86-*-linux*)
25748 gcc_cv_as_flags=--32
25750 x86_64-*-linux-gnux32)
25751 gcc_cv_as_flags=--x32
25753 x86_64-*-linux*)
25754 gcc_cv_as_flags=--64
25756 powerpc*-*-darwin*)
25757 gcc_cv_as_flags="-arch ppc"
25760 gcc_cv_as_flags=" "
25762 esac
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25765 $as_echo "$gcc_cv_as_flags" >&6; }
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25768 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25769 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25770 $as_echo_n "(cached) " >&6
25771 else
25772 gcc_cv_as_balign_and_p2align=no
25773 if test x$gcc_cv_as != x; then
25774 $as_echo '.balign 4
25775 .p2align 2' > conftest.s
25776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25781 test $ac_status = 0; }; }
25782 then
25783 gcc_cv_as_balign_and_p2align=yes
25784 else
25785 echo "configure: failed program was" >&5
25786 cat conftest.s >&5
25788 rm -f conftest.o conftest.s
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25792 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25793 if test $gcc_cv_as_balign_and_p2align = yes; then
25795 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25801 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25802 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25803 $as_echo_n "(cached) " >&6
25804 else
25805 gcc_cv_as_max_skip_p2align=no
25806 if test x$gcc_cv_as != x; then
25807 $as_echo '.p2align 4,,7' > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 gcc_cv_as_max_skip_p2align=yes
25816 else
25817 echo "configure: failed program was" >&5
25818 cat conftest.s >&5
25820 rm -f conftest.o conftest.s
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25824 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25825 if test $gcc_cv_as_max_skip_p2align = yes; then
25827 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25833 $as_echo_n "checking assembler for .literal16... " >&6; }
25834 if ${gcc_cv_as_literal16+:} false; then :
25835 $as_echo_n "(cached) " >&6
25836 else
25837 gcc_cv_as_literal16=no
25838 if test x$gcc_cv_as != x; then
25839 $as_echo '.literal16' > conftest.s
25840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25846 then
25847 gcc_cv_as_literal16=yes
25848 else
25849 echo "configure: failed program was" >&5
25850 cat conftest.s >&5
25852 rm -f conftest.o conftest.s
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25856 $as_echo "$gcc_cv_as_literal16" >&6; }
25857 if test $gcc_cv_as_literal16 = yes; then
25859 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25865 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25866 if ${gcc_cv_as_subsection_m1+:} false; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_subsection_m1=no
25870 if test x$gcc_cv_as != x; then
25871 $as_echo 'conftest_label1: .word 0
25872 .subsection -1
25873 conftest_label2: .word 0
25874 .previous' > conftest.s
25875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25880 test $ac_status = 0; }; }
25881 then
25882 if test x$gcc_cv_nm != x; then
25883 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25884 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25885 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25886 then :
25887 else gcc_cv_as_subsection_m1=yes
25889 rm -f conftest.nm1 conftest.nm2
25891 else
25892 echo "configure: failed program was" >&5
25893 cat conftest.s >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25899 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25900 if test $gcc_cv_as_subsection_m1 = yes; then
25902 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25908 $as_echo_n "checking assembler for .weak... " >&6; }
25909 if ${gcc_cv_as_weak+:} false; then :
25910 $as_echo_n "(cached) " >&6
25911 else
25912 gcc_cv_as_weak=no
25913 if test x$gcc_cv_as != x; then
25914 $as_echo ' .weak foobar' > conftest.s
25915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25920 test $ac_status = 0; }; }
25921 then
25922 gcc_cv_as_weak=yes
25923 else
25924 echo "configure: failed program was" >&5
25925 cat conftest.s >&5
25927 rm -f conftest.o conftest.s
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25931 $as_echo "$gcc_cv_as_weak" >&6; }
25932 if test $gcc_cv_as_weak = yes; then
25934 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25940 $as_echo_n "checking assembler for .weakref... " >&6; }
25941 if ${gcc_cv_as_weakref+:} false; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 gcc_cv_as_weakref=no
25945 if test x$gcc_cv_as != x; then
25946 $as_echo ' .weakref foobar, barfnot' > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25953 then
25954 gcc_cv_as_weakref=yes
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25963 $as_echo "$gcc_cv_as_weakref" >&6; }
25964 if test $gcc_cv_as_weakref = yes; then
25966 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25972 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25973 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25974 $as_echo_n "(cached) " >&6
25975 else
25976 gcc_cv_as_nsubspa_comdat=no
25977 if test x$gcc_cv_as != x; then
25978 $as_echo ' .SPACE $TEXT$
25979 .NSUBSPA $CODE$,COMDAT' > conftest.s
25980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25985 test $ac_status = 0; }; }
25986 then
25987 gcc_cv_as_nsubspa_comdat=yes
25988 else
25989 echo "configure: failed program was" >&5
25990 cat conftest.s >&5
25992 rm -f conftest.o conftest.s
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25996 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25997 if test $gcc_cv_as_nsubspa_comdat = yes; then
25999 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
26004 # .hidden needs to be supported in both the assembler and the linker,
26005 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
26006 # This is irritatingly difficult to feature test for; we have to check the
26007 # date string after the version number. If we've got an in-tree
26008 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
26009 # to be safe.
26010 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
26011 case "${target}" in
26012 *-*-aix*)
26013 conftest_s=' .globl foobar,hidden'
26016 conftest_s=' .hidden foobar
26017 foobar:'
26019 esac
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
26021 $as_echo_n "checking assembler for .hidden... " >&6; }
26022 if ${gcc_cv_as_hidden+:} false; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_hidden=no
26026 if test x$gcc_cv_as != x; then
26027 $as_echo "$conftest_s" > conftest.s
26028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26033 test $ac_status = 0; }; }
26034 then
26035 gcc_cv_as_hidden=yes
26036 else
26037 echo "configure: failed program was" >&5
26038 cat conftest.s >&5
26040 rm -f conftest.o conftest.s
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26044 $as_echo "$gcc_cv_as_hidden" >&6; }
26047 case "${target}" in
26048 *-*-darwin*)
26049 # Darwin as has some visibility support, though with a different syntax.
26050 gcc_cv_as_hidden=yes
26052 esac
26054 # gnu_indirect_function type is an extension proposed at
26055 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26056 # selection of function implementation
26057 # Check whether --enable-gnu-indirect-function was given.
26058 if test "${enable_gnu_indirect_function+set}" = set; then :
26059 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26060 yes | no) ;;
26061 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26062 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26063 esac
26064 else
26065 enable_gnu_indirect_function="$default_gnu_indirect_function"
26069 case "${target}" in
26070 riscv*-*-linux*)
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26072 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26073 cat > conftest.s <<EOF
26074 .text
26075 .type foo_resolver, @function
26076 foo_resolver:
26078 .size foo_resolver, .-foo_resolver
26080 .globl foo
26081 .type foo, %gnu_indirect_function
26082 .set foo, foo_resolver
26084 .globl bar
26085 .type bar, @function
26086 bar:
26087 call foo
26089 .size bar, .-bar
26091 if test x$gcc_cv_as != x \
26092 && test x$gcc_cv_ld != x \
26093 && test x$gcc_cv_readelf != x \
26094 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26095 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26096 && $gcc_cv_readelf --relocs --wide conftest \
26097 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26098 enable_gnu_indirect_function=yes
26100 rm -f conftest conftest.o conftest.s
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26102 $as_echo "$enable_gnu_indirect_function" >&6; }
26104 esac
26106 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26108 cat >>confdefs.h <<_ACEOF
26109 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26110 _ACEOF
26114 if test $in_tree_ld != yes ; then
26115 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26116 if echo "$ld_ver" | grep GNU > /dev/null; then
26117 if test x"$ld_is_gold" = xyes; then
26118 # GNU gold --version looks like this:
26120 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26122 # We extract the binutils version which is more familiar and specific
26123 # than the gold version.
26124 ld_vers=`echo $ld_ver | sed -n \
26125 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26126 else
26127 # GNU ld --version looks like this:
26129 # GNU ld (GNU Binutils) 2.21.51.20110225
26130 ld_vers=`echo $ld_ver | sed -n \
26131 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26133 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'`
26134 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26135 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26136 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26137 else
26138 case "${target}" in
26139 *-*-solaris2*)
26140 # Solaris 2 ld -V output looks like this for a regular version:
26142 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26144 # but test versions add stuff at the end:
26146 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26148 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26149 # numbers can be used in ld.so.1 feature checks even if a different
26150 # linker is configured.
26151 ld_ver=`$gcc_cv_ld -V 2>&1`
26152 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26153 ld_vers=`echo $ld_ver | sed -n \
26154 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26155 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26156 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26159 esac
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26164 $as_echo_n "checking linker for .hidden support... " >&6; }
26165 if ${gcc_cv_ld_hidden+:} false; then :
26166 $as_echo_n "(cached) " >&6
26167 else
26168 if test $in_tree_ld = yes ; then
26169 gcc_cv_ld_hidden=no
26170 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 \
26171 && test $in_tree_ld_is_elf = yes; then
26172 gcc_cv_ld_hidden=yes
26174 else
26175 gcc_cv_ld_hidden=yes
26176 if test x"$ld_is_gold" = xyes; then
26178 elif test x"$ld_is_mold" = xyes; then
26180 elif echo "$ld_ver" | grep GNU > /dev/null; then
26181 if test 0"$ld_date" -lt 20020404; then
26182 if test -n "$ld_date"; then
26183 # If there was date string, but was earlier than 2002-04-04, fail
26184 gcc_cv_ld_hidden=no
26185 elif test -z "$ld_vers"; then
26186 # If there was no date string nor ld version number, something is wrong
26187 gcc_cv_ld_hidden=no
26188 else
26189 test -z "$ld_vers_patch" && ld_vers_patch=0
26190 if test "$ld_vers_major" -lt 2; then
26191 gcc_cv_ld_hidden=no
26192 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26193 gcc_cv_ld_hidden="no"
26194 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26195 gcc_cv_ld_hidden=no
26199 else
26200 case "${target}" in
26201 *-*-aix[789]*)
26202 gcc_cv_ld_hidden=yes
26204 *-*-darwin*)
26205 # Darwin ld has some visibility support.
26206 gcc_cv_ld_hidden=yes
26208 hppa64*-*-hpux* | ia64*-*-hpux*)
26209 gcc_cv_ld_hidden=yes
26211 *-*-solaris2*)
26212 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26213 # .symbolic was only added in Solaris 9 12/02.
26214 gcc_cv_ld_hidden=yes
26217 gcc_cv_ld_hidden=no
26219 esac
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26224 $as_echo "$gcc_cv_ld_hidden" >&6; }
26225 libgcc_visibility=no
26228 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26229 libgcc_visibility=yes
26231 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26236 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26237 gcc_cv_ld_ro_rw_mix=unknown
26238 if test $in_tree_ld = yes ; then
26239 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 \
26240 && test $in_tree_ld_is_elf = yes; then
26241 gcc_cv_ld_ro_rw_mix=read-write
26243 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26244 echo '.section myfoosect, "a"' > conftest1.s
26245 echo '.section myfoosect, "aw"' > conftest2.s
26246 echo '.byte 1' >> conftest2.s
26247 echo '.section myfoosect, "a"' > conftest3.s
26248 echo '.byte 0' >> conftest3.s
26249 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26250 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26251 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26252 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26253 conftest2.o conftest3.o > /dev/null 2>&1 \
26254 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26255 conftest2.o conftest3.o > /dev/null 2>&1; then
26256 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26257 | sed -e '/myfoosect/!d' -e N`
26258 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26259 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26260 gcc_cv_ld_ro_rw_mix=read-only
26261 else
26262 gcc_cv_ld_ro_rw_mix=read-write
26267 rm -f conftest.* conftest[123].*
26269 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26271 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26275 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26277 # Check whether --enable-initfini-array was given.
26278 if test "${enable_initfini_array+set}" = set; then :
26279 enableval=$enable_initfini_array;
26280 else
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26283 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26284 if ${gcc_cv_initfini_array+:} false; then :
26285 $as_echo_n "(cached) " >&6
26286 else
26287 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26288 case "${target}" in
26289 ia64-*)
26290 if test "$cross_compiling" = yes; then :
26291 gcc_cv_initfini_array=no
26292 else
26293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26294 /* end confdefs.h. */
26296 #ifndef __ELF__
26297 #error Not an ELF OS
26298 #endif
26299 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26300 if it can be used. */
26301 static int x = -1;
26302 int main (void) { return x; }
26303 int foo (void) { x = 0; }
26304 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26306 _ACEOF
26307 if ac_fn_cxx_try_run "$LINENO"; then :
26308 gcc_cv_initfini_array=yes
26309 else
26310 gcc_cv_initfini_array=no
26312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26313 conftest.$ac_objext conftest.beam conftest.$ac_ext
26317 gcc_cv_initfini_array=no
26318 if test $in_tree_ld = yes ; then
26319 if test "$gcc_cv_gld_major_version" -eq 2 \
26320 -a "$gcc_cv_gld_minor_version" -ge 22 \
26321 -o "$gcc_cv_gld_major_version" -gt 2 \
26322 && test $in_tree_ld_is_elf = yes; then
26323 gcc_cv_initfini_array=yes
26325 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26326 case $target:$gas in
26327 *:yes)
26328 sh_flags='"a"'
26329 sh_type='%progbits'
26331 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26332 sh_flags='"a"'
26333 sh_type='@progbits'
26335 sparc*-*-solaris2*:no)
26336 sh_flags='#alloc'
26337 sh_type='#progbits'
26338 sh_quote='"'
26340 esac
26341 case "$target:$gnu_ld" in
26342 *:yes)
26343 cat > conftest.s <<EOF
26344 .section .dtors,$sh_flags,$sh_type
26345 .balign 4
26346 .byte 'A', 'A', 'A', 'A'
26347 .section .ctors,$sh_flags,$sh_type
26348 .balign 4
26349 .byte 'B', 'B', 'B', 'B'
26350 .section .fini_array.65530,$sh_flags,$sh_type
26351 .balign 4
26352 .byte 'C', 'C', 'C', 'C'
26353 .section .init_array.65530,$sh_flags,$sh_type
26354 .balign 4
26355 .byte 'D', 'D', 'D', 'D'
26356 .section .dtors.64528,$sh_flags,$sh_type
26357 .balign 4
26358 .byte 'E', 'E', 'E', 'E'
26359 .section .ctors.64528,$sh_flags,$sh_type
26360 .balign 4
26361 .byte 'F', 'F', 'F', 'F'
26362 .section .fini_array.01005,$sh_flags,$sh_type
26363 .balign 4
26364 .byte 'G', 'G', 'G', 'G'
26365 .section .init_array.01005,$sh_flags,$sh_type
26366 .balign 4
26367 .byte 'H', 'H', 'H', 'H'
26368 .text
26369 .globl _start
26370 _start:
26372 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26373 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26374 && $gcc_cv_objdump -s -j .init_array conftest \
26375 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26376 && $gcc_cv_objdump -s -j .fini_array conftest \
26377 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26378 gcc_cv_initfini_array=yes
26381 *-*-solaris2*:no)
26382 # When Solaris ld added constructor priority support, it was
26383 # decided to only handle .init_array.N/.fini_array.N since
26384 # there was no need for backwards compatibility with
26385 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26386 # sections with correct execution order resp. to
26387 # .init_array/.fini_array, while gld merges them into
26388 # .init_array/.fini_array.
26389 cat > conftest.s <<EOF
26390 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26391 .align 4
26392 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26393 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26394 .align 4
26395 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26396 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26397 .align 4
26398 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26399 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26400 .align 4
26401 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26402 .text
26403 .globl _start
26404 _start:
26406 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26407 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26408 && $gcc_cv_objdump -s -j .init_array conftest \
26409 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26410 && $gcc_cv_objdump -s -j .fini_array conftest \
26411 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26412 gcc_cv_initfini_array=yes
26415 esac
26416 rm -f conftest conftest.*
26418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26419 /* end confdefs.h. */
26421 #ifndef __ELF__
26422 # error Not an ELF OS
26423 #endif
26424 #include <stdlib.h>
26425 #if defined __GLIBC_PREREQ
26426 # if __GLIBC_PREREQ (2, 4)
26427 # else
26428 # error GLIBC 2.4 required
26429 # endif
26430 #else
26431 # if defined __sun__ && defined __svr4__
26432 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26433 # else
26434 # error The C library not known to support .init_array/.fini_array
26435 # endif
26436 #endif
26438 _ACEOF
26439 if ac_fn_cxx_try_cpp "$LINENO"; then :
26441 else
26442 gcc_cv_initfini_array=no
26444 rm -f conftest.err conftest.i conftest.$ac_ext;;
26445 esac
26446 else
26447 case "${target}" in
26448 aarch64*-linux-gnu*)
26449 # AArch64 postdates glibc support for .init_array/.fini_array,
26450 # so we don't need the preprocessor test above.
26451 gcc_cv_initfini_array=yes
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26456 $as_echo_n "checking cross compile... guessing... " >&6; }
26457 gcc_cv_initfini_array=no
26459 esac
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26463 $as_echo "$gcc_cv_initfini_array" >&6; }
26464 enable_initfini_array=$gcc_cv_initfini_array
26469 cat >>confdefs.h <<_ACEOF
26470 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26471 _ACEOF
26475 # Some assemblers (GNU as for LoongArch) generates relocations for
26476 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26477 # probing leb128 support then.
26478 case $target in
26479 loongarch*-*-*)
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26481 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26482 if ${gcc_cv_as_mno_relax+:} false; then :
26483 $as_echo_n "(cached) " >&6
26484 else
26485 gcc_cv_as_mno_relax=no
26486 if test x$gcc_cv_as != x; then
26487 $as_echo '.text' > conftest.s
26488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26493 test $ac_status = 0; }; }
26494 then
26495 gcc_cv_as_mno_relax=yes
26496 else
26497 echo "configure: failed program was" >&5
26498 cat conftest.s >&5
26500 rm -f conftest.o conftest.s
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26504 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26505 if test $gcc_cv_as_mno_relax = yes; then
26506 check_leb128_asflags=-mno-relax
26511 check_leb128_asflags=
26513 esac
26515 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26516 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26517 # these directives, even when they appear to accept them.
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26519 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26520 if ${gcc_cv_as_leb128+:} false; then :
26521 $as_echo_n "(cached) " >&6
26522 else
26523 gcc_cv_as_leb128=no
26524 if test x$gcc_cv_as != x; then
26525 $as_echo ' .data
26526 .uleb128 L2 - L1
26528 .uleb128 1280
26529 .sleb128 -1010
26531 .uleb128 0x8000000000000000
26532 ' > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26541 if test "x$gcc_cv_objdump" != x; then
26542 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26543 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26544 gcc_cv_as_leb128=yes
26546 elif test "x$gcc_cv_otool" != x; then
26547 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26548 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26549 gcc_cv_as_leb128=yes
26551 else
26552 # play safe, assume the assembler is broken.
26556 else
26557 echo "configure: failed program was" >&5
26558 cat conftest.s >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26564 $as_echo "$gcc_cv_as_leb128" >&6; }
26565 if test $gcc_cv_as_leb128 = yes; then
26567 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26570 if test $gcc_cv_as_leb128 != yes; then
26572 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26576 # Determine if an .eh_frame section is read-only.
26577 gcc_fn_eh_frame_ro () {
26578 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26579 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26580 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26583 # Check if we have assembler support for unwind directives.
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26585 $as_echo_n "checking assembler for cfi directives... " >&6; }
26586 if ${gcc_cv_as_cfi_directive+:} false; then :
26587 $as_echo_n "(cached) " >&6
26588 else
26589 gcc_cv_as_cfi_directive=no
26590 if test x$gcc_cv_as != x; then
26591 $as_echo ' .text
26592 .cfi_startproc
26593 .cfi_offset 0, 0
26594 .cfi_same_value 1
26595 .cfi_def_cfa 1, 2
26596 .cfi_escape 1, 2, 3, 4, 5
26597 .cfi_endproc' > conftest.s
26598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26601 ac_status=$?
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }
26604 then
26605 case "$target" in
26606 *-*-solaris*)
26607 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26608 # read-only and read-write sections, we need to make sure that the
26609 # assembler used emits read-write .eh_frame sections.
26610 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26611 gcc_cv_as_cfi_directive=yes
26612 elif test "x$gcc_cv_objdump" = x; then
26613 # No objdump, err on the side of caution.
26614 gcc_cv_as_cfi_directive=no
26615 else
26616 if test x$gas = xyes; then
26617 as_32_opt="--32"
26618 as_64_opt="--64"
26619 else
26620 as_32_opt="-m32"
26621 as_64_opt="-m64"
26623 case "$target" in
26624 sparc*-*-solaris2.*)
26625 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26626 if gcc_fn_eh_frame_ro $as_32_opt \
26627 || gcc_fn_eh_frame_ro $as_64_opt; then
26628 gcc_cv_as_cfi_directive=no
26629 else
26630 gcc_cv_as_cfi_directive=yes
26633 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26634 # On Solaris/x86, make sure that GCC and assembler agree on using
26635 # read-only .eh_frame sections for 64-bit.
26636 if gcc_fn_eh_frame_ro $as_32_opt; then
26637 gcc_cv_as_cfi_directive=no
26638 elif gcc_fn_eh_frame_ro $as_64_opt; then
26639 gcc_cv_as_cfi_directive=yes
26640 else
26641 gcc_cv_as_cfi_directive=no
26644 esac
26647 *-*-*)
26648 gcc_cv_as_cfi_directive=yes
26650 esac
26651 else
26652 echo "configure: failed program was" >&5
26653 cat conftest.s >&5
26655 rm -f conftest.o conftest.s
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26659 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26662 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26664 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26665 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26666 $as_echo_n "(cached) " >&6
26667 else
26668 gcc_cv_as_cfi_advance_working=no
26669 if test x$gcc_cv_as != x; then
26670 $as_echo ' .text
26671 .cfi_startproc
26672 .cfi_adjust_cfa_offset 64
26673 .skip 75040, 0
26674 .cfi_adjust_cfa_offset 128
26675 .cfi_endproc' > conftest.s
26676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26681 test $ac_status = 0; }; }
26682 then
26684 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26685 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26686 gcc_cv_as_cfi_advance_working=yes
26689 else
26690 echo "configure: failed program was" >&5
26691 cat conftest.s >&5
26693 rm -f conftest.o conftest.s
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26697 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26700 else
26701 # no objdump, err on the side of caution
26702 gcc_cv_as_cfi_advance_working=no
26706 cat >>confdefs.h <<_ACEOF
26707 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26708 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26709 _ACEOF
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26714 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26715 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26716 $as_echo_n "(cached) " >&6
26717 else
26718 gcc_cv_as_cfi_personality_directive=no
26719 if test x$gcc_cv_as != x; then
26720 $as_echo ' .text
26721 .cfi_startproc
26722 .cfi_personality 0, symbol
26723 .cfi_endproc' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_cfi_personality_directive=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26740 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26744 cat >>confdefs.h <<_ACEOF
26745 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26746 _ACEOF
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26750 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26751 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26752 $as_echo_n "(cached) " >&6
26753 else
26754 gcc_cv_as_cfi_sections_directive=no
26755 if test x$gcc_cv_as != x; then
26756 $as_echo ' .text
26757 .cfi_sections .debug_frame, .eh_frame
26758 .cfi_startproc
26759 .cfi_endproc' > conftest.s
26760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26762 (eval $ac_try) 2>&5
26763 ac_status=$?
26764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26765 test $ac_status = 0; }; }
26766 then
26767 case $target_os in
26768 win32 | pe | cygwin* | mingw32*)
26769 # Need to check that we generated the correct relocation for the
26770 # .debug_frame section. This was fixed for binutils 2.21.
26771 gcc_cv_as_cfi_sections_directive=no
26772 if test "x$gcc_cv_objdump" != x; then
26773 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26774 grep -i secrel > /dev/null; then
26775 gcc_cv_as_cfi_sections_directive=yes
26780 gcc_cv_as_cfi_sections_directive=yes
26782 esac
26783 else
26784 echo "configure: failed program was" >&5
26785 cat conftest.s >&5
26787 rm -f conftest.o conftest.s
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26791 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26796 cat >>confdefs.h <<_ACEOF
26797 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26798 _ACEOF
26801 # GAS versions up to and including 2.11.0 may mis-optimize
26802 # .eh_frame data.
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26804 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26805 if ${gcc_cv_as_eh_frame+:} false; then :
26806 $as_echo_n "(cached) " >&6
26807 else
26808 gcc_cv_as_eh_frame=no
26809 if test x$gcc_cv_as != x; then
26810 $as_echo ' .text
26811 .LFB1:
26812 .4byte 0
26813 .L1:
26814 .4byte 0
26815 .LFE1:
26816 .section .eh_frame,"aw",@progbits
26817 __FRAME_BEGIN__:
26818 .4byte .LECIE1-.LSCIE1
26819 .LSCIE1:
26820 .4byte 0x0
26821 .byte 0x1
26822 .ascii "z\0"
26823 .byte 0x1
26824 .byte 0x78
26825 .byte 0x1a
26826 .byte 0x0
26827 .byte 0x4
26828 .4byte 1
26829 .p2align 1
26830 .LECIE1:
26831 .LSFDE1:
26832 .4byte .LEFDE1-.LASFDE1
26833 .LASFDE1:
26834 .4byte .LASFDE1-__FRAME_BEGIN__
26835 .4byte .LFB1
26836 .4byte .LFE1-.LFB1
26837 .byte 0x4
26838 .4byte .LFE1-.LFB1
26839 .byte 0x4
26840 .4byte .L1-.LFB1
26841 .LEFDE1:' > conftest.s
26842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 cat > conftest.lit <<EOF
26850 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26851 0010 01000000 12000000 18000000 00000000 ................
26852 0020 08000000 04080000 0044 .........D
26854 cat > conftest.big <<EOF
26855 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26856 0010 00000001 00000012 00000018 00000000 ................
26857 0020 00000008 04000000 0844 .........D
26859 # If the assembler didn't choke, and we can objdump,
26860 # and we got the correct data, then succeed.
26861 # The text in the here-document typically retains its unix-style line
26862 # endings, while the output of objdump will use host line endings.
26863 # Therefore, use diff -b for the comparisons.
26864 if test x$gcc_cv_objdump != x \
26865 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26866 | tail -3 > conftest.got \
26867 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26868 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26869 then
26870 gcc_cv_as_eh_frame=yes
26871 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26873 (eval $ac_try) 2>&5
26874 ac_status=$?
26875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26876 test $ac_status = 0; }; }; then
26877 gcc_cv_as_eh_frame=buggy
26878 else
26879 # Uh oh, what do we do now?
26880 gcc_cv_as_eh_frame=no
26882 else
26883 echo "configure: failed program was" >&5
26884 cat conftest.s >&5
26886 rm -f conftest.o conftest.s
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26890 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26894 if test $gcc_cv_as_eh_frame = buggy; then
26896 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26900 # Test if the assembler supports the section flag 'e' or #exclude for
26901 # specifying an excluded section.
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26903 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26904 if ${gcc_cv_as_section_exclude_e+:} false; then :
26905 $as_echo_n "(cached) " >&6
26906 else
26907 gcc_cv_as_section_exclude_e=no
26908 if test x$gcc_cv_as != x; then
26909 $as_echo '.section foo1,"e"
26910 .byte 0,0,0,0' > conftest.s
26911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26913 (eval $ac_try) 2>&5
26914 ac_status=$?
26915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26916 test $ac_status = 0; }; }
26917 then
26918 gcc_cv_as_section_exclude_e=yes
26919 else
26920 echo "configure: failed program was" >&5
26921 cat conftest.s >&5
26923 rm -f conftest.o conftest.s
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26927 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26930 if test $gcc_cv_as_section_exclude_e = no; then
26931 case "${target}" in
26932 # Solaris as uses #exclude instead.
26933 *-*-solaris2*)
26934 case "${target}" in
26935 sparc*-*-solaris2*)
26936 conftest_s='.section "foo1", #exclude'
26938 i?86-*-solaris2* | x86_64-*-solaris2*)
26939 conftest_s='.section foo1, #exclude'
26941 esac
26943 esac
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26945 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26946 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26947 $as_echo_n "(cached) " >&6
26948 else
26949 gcc_cv_as_section_exclude_hash=no
26950 if test x$gcc_cv_as != x; then
26951 $as_echo "$conftest_s
26952 .byte 0,0,0,0" > conftest.s
26953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26955 (eval $ac_try) 2>&5
26956 ac_status=$?
26957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }; }
26959 then
26960 gcc_cv_as_section_exclude_hash=yes
26961 else
26962 echo "configure: failed program was" >&5
26963 cat conftest.s >&5
26965 rm -f conftest.o conftest.s
26968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26969 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26974 cat >>confdefs.h <<_ACEOF
26975 #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`
26976 _ACEOF
26979 # Test if the assembler supports the section flag 'R' for specifying
26980 # section with SHF_GNU_RETAIN.
26981 case "${target}" in
26982 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26983 # assembler supports the section flag 'R', it doesn't mean that
26984 # Solairs ld supports it.
26985 *-*-solaris2*)
26986 gcc_cv_as_shf_gnu_retain=no
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26990 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26991 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26992 $as_echo_n "(cached) " >&6
26993 else
26994 gcc_cv_as_shf_gnu_retain=no
26995 if test x$gcc_cv_as != x; then
26996 $as_echo '.section .foo,"awR",%progbits
26997 .byte 0' > conftest.s
26998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27003 test $ac_status = 0; }; }
27004 then
27005 gcc_cv_as_shf_gnu_retain=yes
27006 else
27007 echo "configure: failed program was" >&5
27008 cat conftest.s >&5
27010 rm -f conftest.o conftest.s
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
27014 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
27018 esac
27020 cat >>confdefs.h <<_ACEOF
27021 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
27022 _ACEOF
27025 # Test if the assembler supports the section flag 'o' for specifying
27026 # section with link-order.
27027 case "${target}" in
27028 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27029 # assembler supports the section flag 'o', it doesn't mean that
27030 # Solairs ld supports it.
27031 *-*-solaris2*)
27032 gcc_cv_as_section_link_order=no
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27036 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27037 if ${gcc_cv_as_section_link_order+:} false; then :
27038 $as_echo_n "(cached) " >&6
27039 else
27040 gcc_cv_as_section_link_order=no
27041 if test x$gcc_cv_as != x; then
27042 $as_echo '.section .foo,"a"
27043 .byte 0
27044 .section __patchable_function_entries,"awo",%progbits,.foo
27045 .byte 0' > conftest.s
27046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27048 (eval $ac_try) 2>&5
27049 ac_status=$?
27050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051 test $ac_status = 0; }; }
27052 then
27053 gcc_cv_as_section_link_order=yes
27054 else
27055 echo "configure: failed program was" >&5
27056 cat conftest.s >&5
27058 rm -f conftest.o conftest.s
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27062 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27066 esac
27068 cat >>confdefs.h <<_ACEOF
27069 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27070 _ACEOF
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27074 $as_echo_n "checking assembler for section merging support... " >&6; }
27075 if ${gcc_cv_as_shf_merge+:} false; then :
27076 $as_echo_n "(cached) " >&6
27077 else
27078 gcc_cv_as_shf_merge=no
27079 if test x$gcc_cv_as != x; then
27080 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27087 then
27088 gcc_cv_as_shf_merge=yes
27089 else
27090 echo "configure: failed program was" >&5
27091 cat conftest.s >&5
27093 rm -f conftest.o conftest.s
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27097 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27100 if test $gcc_cv_as_shf_merge = no; then
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27102 $as_echo_n "checking assembler for section merging support... " >&6; }
27103 if ${gcc_cv_as_shf_merge+:} false; then :
27104 $as_echo_n "(cached) " >&6
27105 else
27106 gcc_cv_as_shf_merge=no
27107 if test x$gcc_cv_as != x; then
27108 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27111 (eval $ac_try) 2>&5
27112 ac_status=$?
27113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27114 test $ac_status = 0; }; }
27115 then
27116 gcc_cv_as_shf_merge=yes
27117 else
27118 echo "configure: failed program was" >&5
27119 cat conftest.s >&5
27121 rm -f conftest.o conftest.s
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27125 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27130 cat >>confdefs.h <<_ACEOF
27131 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27132 _ACEOF
27135 gcc_cv_ld_aligned_shf_merge=yes
27136 case "$target" in
27137 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27138 # alignment > 1.
27139 sparc*-*-solaris2.11*)
27140 if test x"$gnu_ld" = xno \
27141 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27142 gcc_cv_ld_aligned_shf_merge=no
27145 esac
27147 cat >>confdefs.h <<_ACEOF
27148 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27149 _ACEOF
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27153 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27154 if ${gcc_cv_as_comdat_group+:} false; then :
27155 $as_echo_n "(cached) " >&6
27156 else
27157 gcc_cv_as_comdat_group=no
27158 if test x$gcc_cv_as != x; then
27159 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27162 (eval $ac_try) 2>&5
27163 ac_status=$?
27164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27165 test $ac_status = 0; }; }
27166 then
27167 gcc_cv_as_comdat_group=yes
27168 else
27169 echo "configure: failed program was" >&5
27170 cat conftest.s >&5
27172 rm -f conftest.o conftest.s
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27176 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27179 if test $gcc_cv_as_comdat_group = yes; then
27180 gcc_cv_as_comdat_group_percent=no
27181 gcc_cv_as_comdat_group_group=no
27182 else
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27184 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27185 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27188 gcc_cv_as_comdat_group_percent=no
27189 if test x$gcc_cv_as != x; then
27190 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27196 test $ac_status = 0; }; }
27197 then
27198 gcc_cv_as_comdat_group_percent=yes
27199 else
27200 echo "configure: failed program was" >&5
27201 cat conftest.s >&5
27203 rm -f conftest.o conftest.s
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27207 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27210 if test $gcc_cv_as_comdat_group_percent = yes; then
27211 gcc_cv_as_comdat_group_group=no
27212 else
27213 case "${target}" in
27214 # Sun as uses a completely different syntax.
27215 *-*-solaris2*)
27216 case "${target}" in
27217 sparc*-*-solaris2*)
27218 conftest_s='
27219 .group foo,".text%foo",#comdat
27220 .section ".text%foo", #alloc,#execinstr,#progbits
27221 .globl foo
27222 foo:
27225 i?86-*-solaris2* | x86_64-*-solaris2*)
27226 conftest_s='
27227 .group foo,.text%foo,#comdat
27228 .section .text%foo, "ax", @progbits
27229 .globl foo
27230 foo:
27233 esac
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27235 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27236 if ${gcc_cv_as_comdat_group_group+:} false; then :
27237 $as_echo_n "(cached) " >&6
27238 else
27239 gcc_cv_as_comdat_group_group=no
27240 if test x$gcc_cv_as != x; then
27241 $as_echo "$conftest_s" > conftest.s
27242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27247 test $ac_status = 0; }; }
27248 then
27249 gcc_cv_as_comdat_group_group=yes
27250 else
27251 echo "configure: failed program was" >&5
27252 cat conftest.s >&5
27254 rm -f conftest.o conftest.s
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27258 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27262 esac
27263 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27264 gcc_cv_as_comdat_group_group=no
27268 if test x"$ld_is_gold" = xyes; then
27269 comdat_group=yes
27270 elif test x"$ld_is_mold" = xyes; then
27271 comdat_group=yes
27272 elif test $in_tree_ld = yes ; then
27273 comdat_group=no
27274 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 \
27275 && test $in_tree_ld_is_elf = yes; then
27276 comdat_group=yes
27278 elif echo "$ld_ver" | grep GNU > /dev/null; then
27279 comdat_group=yes
27280 if test 0"$ld_date" -lt 20050308; then
27281 if test -n "$ld_date"; then
27282 # If there was date string, but was earlier than 2005-03-08, fail
27283 comdat_group=no
27284 elif test "$ld_vers_major" -lt 2; then
27285 comdat_group=no
27286 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27287 comdat_group=no
27290 else
27291 case "${target}" in
27292 *-*-solaris2.1[1-9]*)
27293 comdat_group=no
27294 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27295 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27296 # version 1.688.
27298 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27299 # least ld version 1.2267.
27300 if test "$ld_vers_major" -gt 1; then
27301 comdat_group=yes
27302 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27303 comdat_group=yes
27304 elif test "$ld_vers_minor" -ge 2267; then
27305 comdat_group=yes
27309 # Assume linkers other than GNU ld don't support COMDAT group.
27310 comdat_group=no
27312 esac
27314 # Allow overriding the automatic COMDAT group tests above.
27315 # Check whether --enable-comdat was given.
27316 if test "${enable_comdat+set}" = set; then :
27317 enableval=$enable_comdat; comdat_group="$enable_comdat"
27320 if test $comdat_group = no; then
27321 gcc_cv_as_comdat_group=no
27322 gcc_cv_as_comdat_group_percent=no
27323 gcc_cv_as_comdat_group_group=no
27326 cat >>confdefs.h <<_ACEOF
27327 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27328 || test $gcc_cv_as_comdat_group_percent = yes \
27329 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27330 _ACEOF
27333 # Restrict this test to Solaris/x86: other targets define this statically.
27334 case "${target}" in
27335 i?86-*-solaris2* | x86_64-*-solaris2*)
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27337 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27338 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
27339 hidden_linkonce=yes
27340 else
27341 case "${target}" in
27342 # Full support for hidden thunks in linkonce sections only appeared in
27343 # Solaris 11/OpenSolaris.
27344 *-*-solaris2.1[1-9]*)
27345 hidden_linkonce=yes
27348 hidden_linkonce=no
27350 esac
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27353 $as_echo "$hidden_linkonce" >&6; }
27355 cat >>confdefs.h <<_ACEOF
27356 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27357 _ACEOF
27360 esac
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27363 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27364 if ${gcc_cv_as_is_stmt+:} false; then :
27365 $as_echo_n "(cached) " >&6
27366 else
27367 gcc_cv_as_is_stmt=no
27368 if test x$gcc_cv_as != x; then
27369 $as_echo ' .text
27370 .file 1 "conf.c"
27371 .loc 1 1 0 is_stmt 1' > conftest.s
27372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27374 (eval $ac_try) 2>&5
27375 ac_status=$?
27376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27377 test $ac_status = 0; }; }
27378 then
27379 gcc_cv_as_is_stmt=yes
27380 else
27381 echo "configure: failed program was" >&5
27382 cat conftest.s >&5
27384 rm -f conftest.o conftest.s
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27388 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27389 if test $gcc_cv_as_is_stmt = yes; then
27391 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27397 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27398 if ${gcc_cv_as_discriminator+:} false; then :
27399 $as_echo_n "(cached) " >&6
27400 else
27401 gcc_cv_as_discriminator=no
27402 if test x$gcc_cv_as != x; then
27403 $as_echo ' .text
27404 .file 1 "conf.c"
27405 .loc 1 1 0 discriminator 1' > conftest.s
27406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27411 test $ac_status = 0; }; }
27412 then
27413 gcc_cv_as_discriminator=yes
27414 else
27415 echo "configure: failed program was" >&5
27416 cat conftest.s >&5
27418 rm -f conftest.o conftest.s
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27422 $as_echo "$gcc_cv_as_discriminator" >&6; }
27423 if test $gcc_cv_as_discriminator = yes; then
27425 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27430 # Catch the newlib flag of the same name so we can gate GCC features on it.
27431 # Check whether --enable-newlib-nano-formatted-io was given.
27432 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27433 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27434 yes|no)
27437 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27439 esac
27443 # Thread-local storage - the check is heavily parameterized.
27444 conftest_s=
27445 tls_as_opt=
27446 case "$target" in
27447 alpha*-*-*)
27448 conftest_s='
27449 .section ".tdata","awT",@progbits
27450 foo: .long 25
27451 .text
27452 ldq $27,__tls_get_addr($29) !literal!1
27453 lda $16,foo($29) !tlsgd!1
27454 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27455 ldq $27,__tls_get_addr($29) !literal!2
27456 lda $16,foo($29) !tlsldm!2
27457 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27458 ldq $1,foo($29) !gotdtprel
27459 ldah $2,foo($29) !dtprelhi
27460 lda $3,foo($2) !dtprello
27461 lda $4,foo($29) !dtprel
27462 ldq $1,foo($29) !gottprel
27463 ldah $2,foo($29) !tprelhi
27464 lda $3,foo($2) !tprello
27465 lda $4,foo($29) !tprel'
27466 tls_as_opt=--fatal-warnings
27468 arc*-*-*)
27469 conftest_s='
27470 add_s r0,r0, @foo@tpoff'
27472 cris-*-*|crisv32-*-*)
27473 conftest_s='
27474 .section ".tdata","awT",@progbits
27475 x: .long 25
27476 .text
27477 move.d x:IE,$r10
27478 nop'
27479 tls_as_opt=--fatal-warnings
27481 frv*-*-*)
27482 conftest_s='
27483 .section ".tdata","awT",@progbits
27484 x: .long 25
27485 .text
27486 call #gettlsoff(x)'
27488 hppa*-*-linux*)
27489 conftest_s='
27490 t1: .reg %r20
27491 t2: .reg %r21
27492 gp: .reg %r19
27493 .section ".tdata","awT",@progbits
27494 foo: .long 25
27495 .text
27496 .align 4
27497 addil LT%foo-$tls_gdidx$,gp
27498 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27499 b __tls_get_addr
27501 addil LT%foo-$tls_ldidx$,gp
27502 b __tls_get_addr
27503 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27504 addil LR%foo-$tls_dtpoff$,%ret0
27505 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27506 mfctl %cr27,%t1
27507 addil LT%foo-$tls_ieoff$,gp
27508 ldw RT%foo-$tls_ieoff$(%r1),%t2
27509 add %t1,%t2,%t3
27510 mfctl %cr27,%t1
27511 addil LR%foo-$tls_leoff$,%t1
27512 ldo RR%foo-$tls_leoff$(%r1),%t2'
27513 tls_as_opt=--fatal-warnings
27515 arm*-*-*)
27516 conftest_s='
27517 .section ".tdata","awT",%progbits
27518 foo: .long 25
27519 .text
27520 .word foo(gottpoff)
27521 .word foo(tpoff)
27522 .word foo(tlsgd)
27523 .word foo(tlsldm)
27524 .word foo(tlsldo)'
27526 i[34567]86-*-* | x86_64-*-*)
27527 case "$target" in
27528 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27529 on_solaris=yes
27532 on_solaris=no
27534 esac
27535 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27536 conftest_s='
27537 .section .tdata,"awt",@progbits'
27538 tls_section_flag=t
27540 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27542 else
27543 conftest_s='
27544 .section ".tdata","awT",@progbits'
27545 tls_section_flag=T
27546 tls_as_opt="--fatal-warnings"
27548 case "$target" in
27549 i[34567]86-*-*)
27550 if test x$on_solaris = xyes; then
27551 case $gas_flag in
27552 yes) tls_as_opt="$tls_as_opt --32" ;;
27553 esac
27555 conftest_s="$conftest_s
27556 foo: .long 25
27557 .text
27558 movl %gs:0, %eax
27559 leal foo@tlsgd(,%ebx,1), %eax
27560 leal foo@tlsldm(%ebx), %eax
27561 leal foo@dtpoff(%eax), %edx
27562 movl foo@gottpoff(%ebx), %eax
27563 subl foo@gottpoff(%ebx), %eax
27564 addl foo@gotntpoff(%ebx), %eax
27565 movl foo@indntpoff, %eax
27566 movl \$foo@tpoff, %eax
27567 subl \$foo@tpoff, %eax
27568 leal foo@ntpoff(%ecx), %eax"
27570 x86_64-*-*)
27571 if test x$on_solaris = xyes; then
27572 case $gas_flag in
27573 yes) tls_as_opt="$tls_as_opt --64" ;;
27574 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27575 esac
27577 conftest_s="$conftest_s
27578 foo: .long 25
27579 .text
27580 movq %fs:0, %rax
27581 leaq foo@tlsgd(%rip), %rdi
27582 leaq foo@tlsld(%rip), %rdi
27583 leaq foo@dtpoff(%rax), %rdx
27584 movq foo@gottpoff(%rip), %rax
27585 movq \$foo@tpoff, %rax"
27587 esac
27589 ia64-*-*)
27590 conftest_s='
27591 .section ".tdata","awT",@progbits
27592 foo: data8 25
27593 .text
27594 addl r16 = @ltoff(@dtpmod(foo#)), gp
27595 addl r17 = @ltoff(@dtprel(foo#)), gp
27596 addl r18 = @ltoff(@tprel(foo#)), gp
27597 addl r19 = @dtprel(foo#), gp
27598 adds r21 = @dtprel(foo#), r13
27599 movl r23 = @dtprel(foo#)
27600 addl r20 = @tprel(foo#), gp
27601 adds r22 = @tprel(foo#), r13
27602 movl r24 = @tprel(foo#)'
27603 tls_as_opt=--fatal-warnings
27605 loongarch*-*-*)
27606 conftest_s='
27607 .section .tdata,"awT",@progbits
27608 x: .word 2
27609 .text
27610 la.tls.gd $a0,x
27611 bl __tls_get_addr'
27612 tls_first_major=0
27613 tls_first_minor=0
27614 tls_as_opt='--fatal-warnings'
27616 microblaze*-*-*)
27617 conftest_s='
27618 .section .tdata,"awT",@progbits
27620 .word 2
27621 .text
27622 addik r5,r20,x@TLSGD
27623 addik r5,r20,x@TLSLDM'
27624 tls_as_opt='--fatal-warnings'
27626 mips*-*-*)
27627 conftest_s='
27628 .section .tdata,"awT",@progbits
27630 .word 2
27631 .text
27632 addiu $4, $28, %tlsgd(x)
27633 addiu $4, $28, %tlsldm(x)
27634 lui $4, %dtprel_hi(x)
27635 addiu $4, $4, %dtprel_lo(x)
27636 lw $4, %gottprel(x)($28)
27637 lui $4, %tprel_hi(x)
27638 addiu $4, $4, %tprel_lo(x)'
27639 tls_as_opt='-32 --fatal-warnings'
27641 m68k-*-*)
27642 conftest_s='
27643 .section .tdata,"awT",@progbits
27645 .word 2
27646 .text
27647 foo:
27648 move.l x@TLSGD(%a5),%a0
27649 move.l x@TLSLDM(%a5),%a0
27650 move.l x@TLSLDO(%a5),%a0
27651 move.l x@TLSIE(%a5),%a0
27652 move.l x@TLSLE(%a5),%a0'
27653 tls_as_opt='--fatal-warnings'
27655 nios2-*-*)
27656 conftest_s='
27657 .section ".tdata","awT",@progbits'
27658 tls_as_opt="--fatal-warnings"
27660 aarch64*-*-*)
27661 conftest_s='
27662 .section ".tdata","awT",%progbits
27663 foo: .long 25
27664 .text
27665 adrp x0, :tlsgd:x
27666 add x0, x0, #:tlsgd_lo12:x
27667 bl __tls_get_addr
27668 nop'
27669 tls_as_opt='--fatal-warnings'
27671 or1k*-*-*)
27672 conftest_s='
27673 .section ".tdata","awT",@progbits
27674 foo: .long 25
27675 .text
27676 l.movhi r3, tpoffha(foo)
27677 l.add r3, r3, r10
27678 l.lwz r4, tpofflo(foo)(r3)'
27679 tls_as_opt=--fatal-warnings
27681 powerpc-ibm-aix*)
27682 conftest_s='
27683 .extern __get_tpointer
27684 .toc
27685 LC..1:
27686 .tc a[TC],a[TL]@le
27687 .csect .text[PR]
27688 .tlstest:
27689 lwz 9,LC..1(2)
27690 bla __get_tpointer
27691 lwzx 3,9,3
27692 .globl a
27693 .csect a[TL],4
27695 .space 4'
27697 powerpc64*-*-*)
27698 conftest_s='
27699 .section ".tdata","awT",@progbits
27700 .align 3
27701 ld0: .space 8
27702 ld1: .space 8
27703 x1: .space 8
27704 x2: .space 8
27705 x3: .space 8
27706 .text
27707 addi 3,2,ld0@got@tlsgd
27708 bl .__tls_get_addr
27710 addi 3,2,ld1@toc
27711 bl .__tls_get_addr
27713 addi 3,2,x1@got@tlsld
27714 bl .__tls_get_addr
27716 addi 9,3,x1@dtprel
27717 bl .__tls_get_addr
27719 addis 9,3,x2@dtprel@ha
27720 addi 9,9,x2@dtprel@l
27721 bl .__tls_get_addr
27723 ld 9,x3@got@dtprel(2)
27724 add 9,9,3
27725 bl .__tls_get_addr
27726 nop'
27727 tls_as_opt="-a64 --fatal-warnings"
27729 powerpc*-*-*)
27730 conftest_s='
27731 .section ".tdata","awT",@progbits
27732 .align 2
27733 ld0: .space 4
27734 ld1: .space 4
27735 x1: .space 4
27736 x2: .space 4
27737 x3: .space 4
27738 .text
27739 addi 3,31,ld0@got@tlsgd
27740 bl __tls_get_addr
27741 addi 3,31,x1@got@tlsld
27742 bl __tls_get_addr
27743 addi 9,3,x1@dtprel
27744 addis 9,3,x2@dtprel@ha
27745 addi 9,9,x2@dtprel@l
27746 lwz 9,x3@got@tprel(31)
27747 add 9,9,x@tls
27748 addi 9,2,x1@tprel
27749 addis 9,2,x2@tprel@ha
27750 addi 9,9,x2@tprel@l'
27751 tls_as_opt="-a32 --fatal-warnings"
27753 riscv*-*-*)
27754 conftest_s='
27755 .section .tdata,"awT",@progbits
27756 x: .word 2
27757 .text
27758 la.tls.gd a0,x
27759 call __tls_get_addr'
27760 tls_as_opt='--fatal-warnings'
27762 s390-*-*)
27763 conftest_s='
27764 .section ".tdata","awT",@progbits
27765 foo: .long 25
27766 .text
27767 .long foo@TLSGD
27768 .long foo@TLSLDM
27769 .long foo@DTPOFF
27770 .long foo@NTPOFF
27771 .long foo@GOTNTPOFF
27772 .long foo@INDNTPOFF
27773 l %r1,foo@GOTNTPOFF(%r12)
27774 l %r1,0(%r1):tls_load:foo
27775 bas %r14,0(%r1,%r13):tls_gdcall:foo
27776 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27777 tls_as_opt="-m31 --fatal-warnings"
27779 s390x-*-*)
27780 conftest_s='
27781 .section ".tdata","awT",@progbits
27782 foo: .long 25
27783 .text
27784 .quad foo@TLSGD
27785 .quad foo@TLSLDM
27786 .quad foo@DTPOFF
27787 .quad foo@NTPOFF
27788 .quad foo@GOTNTPOFF
27789 lg %r1,foo@GOTNTPOFF(%r12)
27790 larl %r1,foo@INDNTPOFF
27791 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27792 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27793 tls_as_opt="-m64 -Aesame --fatal-warnings"
27795 sh-*-* | sh[123456789lbe]*-*-*)
27796 conftest_s='
27797 .section ".tdata","awT",@progbits
27798 foo: .long 25
27799 .text
27800 .long foo@TLSGD
27801 .long foo@TLSLDM
27802 .long foo@DTPOFF
27803 .long foo@GOTTPOFF
27804 .long foo@TPOFF'
27805 tls_as_opt=--fatal-warnings
27807 sparc*-*-*)
27808 case "$target" in
27809 sparc*-sun-solaris2.*)
27810 on_solaris=yes
27813 on_solaris=no
27815 esac
27816 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27817 conftest_s='
27818 .section ".tdata",#alloc,#write,#tls'
27819 else
27820 conftest_s='
27821 .section ".tdata","awT",@progbits'
27822 tls_as_opt="-32 --fatal-warnings"
27824 conftest_s="$conftest_s
27825 foo: .long 25
27826 .text
27827 sethi %tgd_hi22(foo), %o0
27828 add %o0, %tgd_lo10(foo), %o1
27829 add %l7, %o1, %o0, %tgd_add(foo)
27830 call __tls_get_addr, %tgd_call(foo)
27831 sethi %tldm_hi22(foo), %l1
27832 add %l1, %tldm_lo10(foo), %l2
27833 add %l7, %l2, %o0, %tldm_add(foo)
27834 call __tls_get_addr, %tldm_call(foo)
27835 sethi %tldo_hix22(foo), %l3
27836 xor %l3, %tldo_lox10(foo), %l4
27837 add %o0, %l4, %l5, %tldo_add(foo)
27838 sethi %tie_hi22(foo), %o3
27839 add %o3, %tie_lo10(foo), %o3
27840 ld [%l7 + %o3], %o2, %tie_ld(foo)
27841 add %g7, %o2, %o4, %tie_add(foo)
27842 sethi %tle_hix22(foo), %l1
27843 xor %l1, %tle_lox10(foo), %o5
27844 ld [%g7 + %o5], %o1"
27846 xtensa*-*-*)
27847 conftest_s='
27848 .section ".tdata","awT",@progbits
27849 foo: .long 25
27850 .text
27851 movi a8, foo@TLSFUNC
27852 movi a10, foo@TLSARG
27853 callx8.tls a8, foo@TLSCALL'
27855 esac
27856 set_have_as_tls=no
27857 if test "x$enable_tls" = xno ; then
27858 : # TLS explicitly disabled.
27859 elif test "x$enable_tls" = xyes ; then
27860 set_have_as_tls=yes # TLS explicitly enabled.
27861 elif test -z "$conftest_s"; then
27862 : # If we don't have a check, assume no support.
27863 else
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27865 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27866 if ${gcc_cv_as_tls+:} false; then :
27867 $as_echo_n "(cached) " >&6
27868 else
27869 gcc_cv_as_tls=no
27870 if test x$gcc_cv_as != x; then
27871 $as_echo "$conftest_s" > conftest.s
27872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27874 (eval $ac_try) 2>&5
27875 ac_status=$?
27876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27877 test $ac_status = 0; }; }
27878 then
27879 gcc_cv_as_tls=yes
27880 else
27881 echo "configure: failed program was" >&5
27882 cat conftest.s >&5
27884 rm -f conftest.o conftest.s
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27888 $as_echo "$gcc_cv_as_tls" >&6; }
27889 if test $gcc_cv_as_tls = yes; then
27890 set_have_as_tls=yes
27894 if test $set_have_as_tls = yes ; then
27896 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27900 # Target-specific assembler checks.
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27903 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27904 gcc_cv_ld_static_dynamic=no
27905 gcc_cv_ld_static_option='-Bstatic'
27906 gcc_cv_ld_dynamic_option='-Bdynamic'
27907 if test $in_tree_ld = yes ; then
27908 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
27909 gcc_cv_ld_static_dynamic=yes
27911 elif test x$gcc_cv_ld != x; then
27912 # Check if linker supports -Bstatic/-Bdynamic option
27913 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27914 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27915 gcc_cv_ld_static_dynamic=yes
27916 else
27917 case "$target" in
27918 # AIX ld uses -b flags
27919 *-*-aix4.[23]* | *-*-aix[5-9]*)
27920 gcc_cv_ld_static_dynamic=yes
27921 gcc_cv_ld_static_option="-bstatic"
27922 gcc_cv_ld_dynamic_option="-bdynamic"
27924 # HP-UX ld uses -a flags to select between shared and archive.
27925 *-*-hpux*)
27926 if test x"$gnu_ld" = xno; then
27927 gcc_cv_ld_static_dynamic=yes
27928 gcc_cv_ld_static_option="-aarchive_shared"
27929 gcc_cv_ld_dynamic_option="-adefault"
27932 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27933 *-*-solaris2*)
27934 gcc_cv_ld_static_dynamic=yes
27936 esac
27939 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27941 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27944 cat >>confdefs.h <<_ACEOF
27945 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27946 _ACEOF
27949 cat >>confdefs.h <<_ACEOF
27950 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27951 _ACEOF
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27955 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27958 $as_echo_n "checking linker --version-script option... " >&6; }
27959 gcc_cv_ld_version_script=no
27960 ld_version_script_option=''
27961 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27962 gcc_cv_ld_version_script=yes
27963 ld_version_script_option='--version-script'
27964 elif test x$gcc_cv_ld != x; then
27965 case "$target" in
27966 # Solaris 2 ld always supports -M. It also supports a subset of
27967 # --version-script since Solaris 11.4, but requires
27968 # -z gnu-version-script-compat to activate.
27969 *-*-solaris2*)
27970 gcc_cv_ld_version_script=yes
27971 ld_version_script_option='-M'
27973 esac
27975 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27977 $as_echo "$gcc_cv_ld_version_script" >&6; }
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27981 $as_echo_n "checking linker soname option... " >&6; }
27982 gcc_cv_ld_soname=no
27983 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27984 gcc_cv_ld_soname=yes
27985 ld_soname_option='-soname'
27986 elif test x$gcc_cv_ld != x; then
27987 case "$target" in
27988 *-*-darwin*)
27989 gcc_cv_ld_soname=yes
27990 ld_soname_option='-install_name'
27992 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27993 # ld compatiblity since some Solaris 10 update.
27994 *-*-solaris2*)
27995 gcc_cv_ld_soname=yes
27996 ld_soname_option='-h'
27998 esac
28000 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
28002 $as_echo "$gcc_cv_ld_soname" >&6; }
28005 if test x"$demangler_in_ld" = xyes; then
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
28007 $as_echo_n "checking linker --demangle support... " >&6; }
28008 gcc_cv_ld_demangle=no
28009 if test $in_tree_ld = yes; then
28010 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 \
28011 gcc_cv_ld_demangle=yes
28013 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
28014 # Check if the GNU linker supports --demangle option
28015 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
28016 gcc_cv_ld_demangle=yes
28019 if test x"$gcc_cv_ld_demangle" = xyes; then
28021 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
28025 $as_echo "$gcc_cv_ld_demangle" >&6; }
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
28029 $as_echo_n "checking linker plugin support... " >&6; }
28030 gcc_cv_lto_plugin=0
28031 if test -f liblto_plugin.la; then
28032 save_ld_ver="$ld_ver"
28033 save_ld_vers_major="$ld_vers_major"
28034 save_ld_vers_minor="$ld_vers_minor"
28035 save_ld_is_gold="$ld_is_gold"
28037 ld_is_gold=no
28039 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
28040 ld_ver="GNU ld"
28041 # FIXME: ld_is_gold?
28042 ld_vers_major="$gcc_cv_gld_major_version"
28043 ld_vers_minor="$gcc_cv_gld_minor_version"
28044 else
28045 # Determine plugin linker version.
28046 # FIXME: Partial duplicate from above, generalize.
28047 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28048 if echo "$ld_ver" | grep GNU > /dev/null; then
28049 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
28050 ld_is_gold=yes
28051 ld_vers=`echo $ld_ver | sed -n \
28052 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28053 else
28054 ld_vers=`echo $ld_ver | sed -n \
28055 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28057 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
28058 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28062 # Determine plugin support.
28063 if echo "$ld_ver" | grep GNU > /dev/null; then
28064 # Require GNU ld or gold 2.21+ for plugin support by default.
28065 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28066 gcc_cv_lto_plugin=2
28067 elif test "$ld_is_mold" = yes; then
28068 gcc_cv_lto_plugin=2
28069 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28070 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28071 gcc_cv_lto_plugin=1
28075 ld_ver="$save_ld_ver"
28076 ld_vers_major="$save_ld_vers_major"
28077 ld_vers_minor="$save_ld_vers_minor"
28078 ld_is_gold="$save_ld_is_gold"
28081 cat >>confdefs.h <<_ACEOF
28082 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28083 _ACEOF
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28086 $as_echo "$gcc_cv_lto_plugin" >&6; }
28088 # Target OS-specific assembler checks.
28090 case "$target_os" in
28091 darwin*)
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28093 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28094 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
28095 $as_echo_n "(cached) " >&6
28096 else
28097 gcc_cv_as_mmacosx_version_min=no
28098 if test x$gcc_cv_as != x; then
28099 $as_echo '.text' > conftest.s
28100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28102 (eval $ac_try) 2>&5
28103 ac_status=$?
28104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28105 test $ac_status = 0; }; }
28106 then
28107 gcc_cv_as_mmacosx_version_min=yes
28108 else
28109 echo "configure: failed program was" >&5
28110 cat conftest.s >&5
28112 rm -f conftest.o conftest.s
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28116 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28117 if test $gcc_cv_as_mmacosx_version_min = yes; then
28119 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28123 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28125 $as_echo_n "checking assembler for .build_version... " >&6; }
28126 if ${gcc_cv_as_darwin_build_version+:} false; then :
28127 $as_echo_n "(cached) " >&6
28128 else
28129 gcc_cv_as_darwin_build_version=no
28130 if test x$gcc_cv_as != x; then
28131 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28137 test $ac_status = 0; }; }
28138 then
28139 gcc_cv_as_darwin_build_version=yes
28140 else
28141 echo "configure: failed program was" >&5
28142 cat conftest.s >&5
28144 rm -f conftest.o conftest.s
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28148 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28149 if test $gcc_cv_as_darwin_build_version = yes; then
28151 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28157 esac
28159 # Target CPU-specific assembler checks.
28161 case "$target" in
28162 aarch64*-*-*)
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28164 $as_echo_n "checking assembler for -mabi option... " >&6; }
28165 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28166 $as_echo_n "(cached) " >&6
28167 else
28168 gcc_cv_as_aarch64_mabi=no
28169 if test x$gcc_cv_as != x; then
28170 $as_echo '.text' > conftest.s
28171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28176 test $ac_status = 0; }; }
28177 then
28178 gcc_cv_as_aarch64_mabi=yes
28179 else
28180 echo "configure: failed program was" >&5
28181 cat conftest.s >&5
28183 rm -f conftest.o conftest.s
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28187 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28190 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28192 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28194 else
28195 if test x$with_abi = xilp32; then
28196 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28197 Upgrade the Assembler." "$LINENO" 5
28199 if test x"$with_multilib_list" = xdefault; then
28200 TM_MULTILIB_CONFIG=lp64
28201 else
28202 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28203 for aarch64_multilib in ${aarch64_multilibs}; do
28204 case ${aarch64_multilib} in
28205 ilp32)
28206 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28207 Upgrade the Assembler." "$LINENO" 5
28211 esac
28212 done
28215 # Check if we have binutils support for relocations types needed by -fpic
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28217 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28218 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28219 $as_echo_n "(cached) " >&6
28220 else
28221 gcc_cv_as_aarch64_picreloc=no
28222 if test x$gcc_cv_as != x; then
28223 $as_echo '
28224 .text
28225 ldr x0, [x2, #:gotpage_lo15:globalsym]
28226 ' > conftest.s
28227 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28229 (eval $ac_try) 2>&5
28230 ac_status=$?
28231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28232 test $ac_status = 0; }; }
28233 then
28234 gcc_cv_as_aarch64_picreloc=yes
28235 else
28236 echo "configure: failed program was" >&5
28237 cat conftest.s >&5
28239 rm -f conftest.o conftest.s
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28243 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28244 if test $gcc_cv_as_aarch64_picreloc = yes; then
28246 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28250 # Enable Branch Target Identification Mechanism and Return Address
28251 # Signing by default.
28252 # Check whether --enable-standard-branch-protection was given.
28253 if test "${enable_standard_branch_protection+set}" = set; then :
28254 enableval=$enable_standard_branch_protection;
28255 case $enableval in
28256 yes)
28257 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28262 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28263 Valid choices are 'yes' and 'no'." "$LINENO" 5
28265 esac
28269 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28270 # Check whether --enable-fix-cortex-a53-835769 was given.
28271 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28272 enableval=$enable_fix_cortex_a53_835769;
28273 case $enableval in
28274 yes)
28275 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28280 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28281 Valid choices are 'yes' and 'no'." "$LINENO" 5
28284 esac
28288 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28289 # Check whether --enable-fix-cortex-a53-843419 was given.
28290 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28291 enableval=$enable_fix_cortex_a53_843419;
28292 case $enableval in
28293 yes)
28294 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28299 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28300 Valid choices are 'yes' and 'no'." "$LINENO" 5
28303 esac
28309 # All TARGET_ABI_OSF targets.
28310 alpha*-*-linux* | alpha*-*-*bsd*)
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28312 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28313 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28314 $as_echo_n "(cached) " >&6
28315 else
28316 gcc_cv_as_alpha_explicit_relocs=no
28317 if test x$gcc_cv_as != x; then
28318 $as_echo ' .set nomacro
28319 .text
28320 extbl $3, $2, $3 !lituse_bytoff!1
28321 ldq $2, a($29) !literal!1
28322 ldq $4, b($29) !literal!2
28323 ldq_u $3, 0($2) !lituse_base!1
28324 ldq $27, f($29) !literal!5
28325 jsr $26, ($27), f !lituse_jsr!5
28326 ldah $29, 0($26) !gpdisp!3
28327 lda $0, c($29) !gprel
28328 ldah $1, d($29) !gprelhigh
28329 lda $1, d($1) !gprellow
28330 lda $29, 0($29) !gpdisp!3' > conftest.s
28331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28333 (eval $ac_try) 2>&5
28334 ac_status=$?
28335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28336 test $ac_status = 0; }; }
28337 then
28338 gcc_cv_as_alpha_explicit_relocs=yes
28339 else
28340 echo "configure: failed program was" >&5
28341 cat conftest.s >&5
28343 rm -f conftest.o conftest.s
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28347 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28348 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28350 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28355 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28356 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28357 $as_echo_n "(cached) " >&6
28358 else
28359 gcc_cv_as_alpha_jsrdirect_relocs=no
28360 if test x$gcc_cv_as != x; then
28361 $as_echo ' .set nomacro
28362 .text
28363 ldq $27, a($29) !literal!1
28364 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28367 (eval $ac_try) 2>&5
28368 ac_status=$?
28369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28370 test $ac_status = 0; }; }
28371 then
28372 gcc_cv_as_alpha_jsrdirect_relocs=yes
28373 else
28374 echo "configure: failed program was" >&5
28375 cat conftest.s >&5
28377 rm -f conftest.o conftest.s
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28381 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28382 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28384 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28390 avr-*-*)
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28392 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28393 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28394 $as_echo_n "(cached) " >&6
28395 else
28396 gcc_cv_as_avr_mlink_relax=no
28397 if test x$gcc_cv_as != x; then
28398 $as_echo '.text' > conftest.s
28399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28404 test $ac_status = 0; }; }
28405 then
28406 gcc_cv_as_avr_mlink_relax=yes
28407 else
28408 echo "configure: failed program was" >&5
28409 cat conftest.s >&5
28411 rm -f conftest.o conftest.s
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28415 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28416 if test $gcc_cv_as_avr_mlink_relax = yes; then
28418 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28424 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28425 if ${gcc_cv_as_avr_mrmw+:} false; then :
28426 $as_echo_n "(cached) " >&6
28427 else
28428 gcc_cv_as_avr_mrmw=no
28429 if test x$gcc_cv_as != x; then
28430 $as_echo '.text' > conftest.s
28431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28436 test $ac_status = 0; }; }
28437 then
28438 gcc_cv_as_avr_mrmw=yes
28439 else
28440 echo "configure: failed program was" >&5
28441 cat conftest.s >&5
28443 rm -f conftest.o conftest.s
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28447 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28448 if test $gcc_cv_as_avr_mrmw = yes; then
28450 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28456 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28457 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28458 $as_echo_n "(cached) " >&6
28459 else
28460 gcc_cv_as_avr_mgccisr=no
28461 if test x$gcc_cv_as != x; then
28462 $as_echo '.text
28463 __gcc_isr 1
28464 __gcc_isr 2
28465 __gcc_isr 0,r24
28466 ' > conftest.s
28467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28469 (eval $ac_try) 2>&5
28470 ac_status=$?
28471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28472 test $ac_status = 0; }; }
28473 then
28474 gcc_cv_as_avr_mgccisr=yes
28475 else
28476 echo "configure: failed program was" >&5
28477 cat conftest.s >&5
28479 rm -f conftest.o conftest.s
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28483 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28484 if test $gcc_cv_as_avr_mgccisr = yes; then
28486 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28491 # Check how default linker description file implements .rodata for
28492 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28493 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28495 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28496 cat > conftest.s <<EOF
28497 .section .rodata,"a",@progbits
28498 .global xxvaryy
28499 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28500 xxvaryy:
28501 .word 1
28503 rm -f conftest.nm
28504 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28509 test $ac_status = 0; }; }
28510 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28515 test $ac_status = 0; }; }
28516 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28518 (eval $ac_try) 2>&5
28519 ac_status=$?
28520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28521 test $ac_status = 0; }; }
28522 if test -s conftest.nm
28523 then
28524 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28526 $as_echo "yes" >&6; }
28528 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28530 else
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28532 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28533 echo "$as_me: nm output was" >&5
28534 cat conftest.nm >&5
28535 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28536 { $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
28537 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28539 else
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28541 $as_echo "test failed" >&6; }
28542 echo "$as_me: failed program was" >&5
28543 cat conftest.s >&5
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28545 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28547 rm -f conftest.s conftest.o conftest.elf conftest.nm
28550 cris-*-*)
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28552 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28553 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28554 $as_echo_n "(cached) " >&6
28555 else
28556 gcc_cv_as_cris_no_mul_bug=no
28557 if test x$gcc_cv_as != x; then
28558 $as_echo '.text' > conftest.s
28559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28561 (eval $ac_try) 2>&5
28562 ac_status=$?
28563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28564 test $ac_status = 0; }; }
28565 then
28566 gcc_cv_as_cris_no_mul_bug=yes
28567 else
28568 echo "configure: failed program was" >&5
28569 cat conftest.s >&5
28571 rm -f conftest.o conftest.s
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28575 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28576 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28578 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28584 sparc*-*-*)
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28586 $as_echo_n "checking assembler for -relax option... " >&6; }
28587 if ${gcc_cv_as_sparc_relax+:} false; then :
28588 $as_echo_n "(cached) " >&6
28589 else
28590 gcc_cv_as_sparc_relax=no
28591 if test x$gcc_cv_as != x; then
28592 $as_echo '.text' > conftest.s
28593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28595 (eval $ac_try) 2>&5
28596 ac_status=$?
28597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28598 test $ac_status = 0; }; }
28599 then
28600 gcc_cv_as_sparc_relax=yes
28601 else
28602 echo "configure: failed program was" >&5
28603 cat conftest.s >&5
28605 rm -f conftest.o conftest.s
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28609 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28610 if test $gcc_cv_as_sparc_relax = yes; then
28612 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28618 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28619 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28620 $as_echo_n "(cached) " >&6
28621 else
28622 gcc_cv_as_sparc_gotdata_op=no
28623 if test x$gcc_cv_as != x; then
28624 $as_echo '.text
28625 .align 4
28626 foo:
28628 bar:
28629 sethi %gdop_hix22(foo), %g1
28630 xor %g1, %gdop_lox10(foo), %g1
28631 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28634 (eval $ac_try) 2>&5
28635 ac_status=$?
28636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28637 test $ac_status = 0; }; }
28638 then
28639 if test x$gcc_cv_ld != x \
28640 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28641 if test x$gcc_cv_objdump != x; then
28642 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28643 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28644 gcc_cv_as_sparc_gotdata_op=no
28645 else
28646 gcc_cv_as_sparc_gotdata_op=yes
28650 rm -f conftest
28651 else
28652 echo "configure: failed program was" >&5
28653 cat conftest.s >&5
28655 rm -f conftest.o conftest.s
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28659 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28660 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28662 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28668 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28669 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28670 $as_echo_n "(cached) " >&6
28671 else
28672 gcc_cv_as_sparc_ua_pcrel=no
28673 if test x$gcc_cv_as != x; then
28674 $as_echo '.text
28675 foo:
28677 .data
28678 .align 4
28679 .byte 0
28680 .uaword %r_disp32(foo)' > conftest.s
28681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28686 test $ac_status = 0; }; }
28687 then
28688 if test x$gcc_cv_ld != x \
28689 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28690 gcc_cv_as_sparc_ua_pcrel=yes
28692 rm -f conftest
28693 else
28694 echo "configure: failed program was" >&5
28695 cat conftest.s >&5
28697 rm -f conftest.o conftest.s
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28701 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28702 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28704 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28708 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28709 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28710 $as_echo_n "(cached) " >&6
28711 else
28712 gcc_cv_as_sparc_ua_pcrel_hidden=no
28713 if test x$gcc_cv_as != x; then
28714 $as_echo '.data
28715 .align 4
28716 .byte 0x31
28717 .uaword %r_disp32(foo)
28718 .byte 0x32, 0x33, 0x34
28719 .global foo
28720 .hidden foo
28721 foo:
28722 .skip 4' > conftest.s
28723 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28725 (eval $ac_try) 2>&5
28726 ac_status=$?
28727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28728 test $ac_status = 0; }; }
28729 then
28730 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28731 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28732 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28733 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28734 if $gcc_cv_objdump -R conftest 2> /dev/null \
28735 | grep 'DISP32' > /dev/null 2>&1; then
28737 else
28738 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28741 rm -f conftest
28742 else
28743 echo "configure: failed program was" >&5
28744 cat conftest.s >&5
28746 rm -f conftest.o conftest.s
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28750 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28751 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28753 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28759 # unaligned pcrel relocs
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28762 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28763 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28764 $as_echo_n "(cached) " >&6
28765 else
28766 gcc_cv_as_sparc_offsetable_lo10=no
28767 if test x$gcc_cv_as != x; then
28768 $as_echo '.text
28769 or %g1, %lo(ab) + 12, %g1
28770 or %g1, %lo(ab + 12), %g1' > conftest.s
28771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28776 test $ac_status = 0; }; }
28777 then
28778 if test x$gcc_cv_objdump != x \
28779 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28780 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28781 gcc_cv_as_sparc_offsetable_lo10=yes
28783 else
28784 echo "configure: failed program was" >&5
28785 cat conftest.s >&5
28787 rm -f conftest.o conftest.s
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28791 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28792 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28794 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28800 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28801 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28802 $as_echo_n "(cached) " >&6
28803 else
28804 gcc_cv_as_sparc_fmaf=no
28805 if test x$gcc_cv_as != x; then
28806 $as_echo '.text
28807 .register %g2, #scratch
28808 .register %g3, #scratch
28809 .align 4
28810 fmaddd %f0, %f2, %f4, %f6
28811 addxccc %g1, %g2, %g3
28812 fsrl32 %f2, %f4, %f8
28813 fnaddd %f10, %f12, %f14' > conftest.s
28814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28816 (eval $ac_try) 2>&5
28817 ac_status=$?
28818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28819 test $ac_status = 0; }; }
28820 then
28821 gcc_cv_as_sparc_fmaf=yes
28822 else
28823 echo "configure: failed program was" >&5
28824 cat conftest.s >&5
28826 rm -f conftest.o conftest.s
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28830 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28831 if test $gcc_cv_as_sparc_fmaf = yes; then
28833 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28839 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28840 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28841 $as_echo_n "(cached) " >&6
28842 else
28843 gcc_cv_as_sparc_sparc4=no
28844 if test x$gcc_cv_as != x; then
28845 $as_echo '.text
28846 .register %g2, #scratch
28847 .register %g3, #scratch
28848 .align 4
28849 cxbe %g2, %g3, 1f
28850 1: cwbneg %g2, %g3, 1f
28851 1: sha1
28853 aes_kexpand0 %f4, %f6, %f8
28854 des_round %f38, %f40, %f42, %f44
28855 camellia_f %f54, %f56, %f58, %f60
28856 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28859 (eval $ac_try) 2>&5
28860 ac_status=$?
28861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28862 test $ac_status = 0; }; }
28863 then
28864 gcc_cv_as_sparc_sparc4=yes
28865 else
28866 echo "configure: failed program was" >&5
28867 cat conftest.s >&5
28869 rm -f conftest.o conftest.s
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28873 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28874 if test $gcc_cv_as_sparc_sparc4 = yes; then
28876 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28882 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28883 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28884 $as_echo_n "(cached) " >&6
28885 else
28886 gcc_cv_as_sparc_sparc5=no
28887 if test x$gcc_cv_as != x; then
28888 $as_echo '.text
28889 .register %g2, #scratch
28890 .register %g3, #scratch
28891 .align 4
28892 subxc %g1, %g2, %g3
28893 fpadd8 %f0, %f2, %f4' > conftest.s
28894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28899 test $ac_status = 0; }; }
28900 then
28901 gcc_cv_as_sparc_sparc5=yes
28902 else
28903 echo "configure: failed program was" >&5
28904 cat conftest.s >&5
28906 rm -f conftest.o conftest.s
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28910 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28911 if test $gcc_cv_as_sparc_sparc5 = yes; then
28913 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28919 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28920 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28921 $as_echo_n "(cached) " >&6
28922 else
28923 gcc_cv_as_sparc_sparc6=no
28924 if test x$gcc_cv_as != x; then
28925 $as_echo '.text
28926 .register %g2, #scratch
28927 .register %g3, #scratch
28928 .align 4
28929 rd %entropy, %g1
28930 fpsll64x %f0, %f2, %f4' > conftest.s
28931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28933 (eval $ac_try) 2>&5
28934 ac_status=$?
28935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28936 test $ac_status = 0; }; }
28937 then
28938 gcc_cv_as_sparc_sparc6=yes
28939 else
28940 echo "configure: failed program was" >&5
28941 cat conftest.s >&5
28943 rm -f conftest.o conftest.s
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28947 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28948 if test $gcc_cv_as_sparc_sparc6 = yes; then
28950 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28956 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28957 if ${gcc_cv_as_sparc_leon+:} false; then :
28958 $as_echo_n "(cached) " >&6
28959 else
28960 gcc_cv_as_sparc_leon=no
28961 if test x$gcc_cv_as != x; then
28962 $as_echo '.text
28963 .register %g2, #scratch
28964 .register %g3, #scratch
28965 .align 4
28966 smac %g2, %g3, %g1
28967 umac %g2, %g3, %g1
28968 casa [%g2] 0xb, %g3, %g1' > conftest.s
28969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28974 test $ac_status = 0; }; }
28975 then
28976 gcc_cv_as_sparc_leon=yes
28977 else
28978 echo "configure: failed program was" >&5
28979 cat conftest.s >&5
28981 rm -f conftest.o conftest.s
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28985 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28986 if test $gcc_cv_as_sparc_leon = yes; then
28988 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28994 i[34567]86-*-* | x86_64-*-*)
28995 case $target_os in
28996 cygwin*)
28997 # Full C++ conformance when using a shared libstdc++-v3 requires some
28998 # support from the Cygwin DLL, which in more recent versions exports
28999 # wrappers to aid in interposing and redirecting operators new, delete,
29000 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29001 # are configuring for a version of Cygwin that exports the wrappers.
29002 if test x$host = x$target && test x$host_cpu = xi686; then
29003 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29004 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
29005 gcc_ac_cygwin_dll_wrappers=yes
29006 else
29007 gcc_ac_cygwin_dll_wrappers=no
29010 else
29011 # Can't check presence of libc functions during cross-compile, so
29012 # we just have to assume we're building for an up-to-date target.
29013 gcc_ac_cygwin_dll_wrappers=yes
29016 cat >>confdefs.h <<_ACEOF
29017 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29018 _ACEOF
29020 esac
29021 case $target_os in
29022 cygwin* | pe | mingw32*)
29023 # Recent binutils allows the three-operand form of ".comm" on PE. This
29024 # definition is used unconditionally to initialise the default state of
29025 # the target option variable that governs usage of the feature.
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29027 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29028 if ${gcc_cv_as_comm_has_align+:} false; then :
29029 $as_echo_n "(cached) " >&6
29030 else
29031 gcc_cv_as_comm_has_align=no
29032 if test x$gcc_cv_as != x; then
29033 $as_echo '.comm foo,1,32' > conftest.s
29034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29039 test $ac_status = 0; }; }
29040 then
29041 gcc_cv_as_comm_has_align=yes
29042 else
29043 echo "configure: failed program was" >&5
29044 cat conftest.s >&5
29046 rm -f conftest.o conftest.s
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29050 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29054 cat >>confdefs.h <<_ACEOF
29055 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29056 _ACEOF
29058 # Used for DWARF 2 in PE
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29060 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29061 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29062 $as_echo_n "(cached) " >&6
29063 else
29064 gcc_cv_as_ix86_pe_secrel32=no
29065 if test x$gcc_cv_as != x; then
29066 $as_echo '.text
29067 foo: nop
29068 .data
29069 .secrel32 foo' > conftest.s
29070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29072 (eval $ac_try) 2>&5
29073 ac_status=$?
29074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29075 test $ac_status = 0; }; }
29076 then
29077 if test x$gcc_cv_ld != x \
29078 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29079 gcc_cv_as_ix86_pe_secrel32=yes
29081 rm -f conftest
29082 else
29083 echo "configure: failed program was" >&5
29084 cat conftest.s >&5
29086 rm -f conftest.o conftest.s
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29090 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29091 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29093 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29097 # Test if the assembler supports the extended form of the .section
29098 # directive that specifies section alignment. LTO support uses this,
29099 # but normally only after installation, so we warn but don't fail the
29100 # configure if LTO is enabled but the assembler does not support it.
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29102 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29103 if ${gcc_cv_as_section_has_align+:} false; then :
29104 $as_echo_n "(cached) " >&6
29105 else
29106 gcc_cv_as_section_has_align=no
29107 if test x$gcc_cv_as != x; then
29108 $as_echo '.section lto_test,"dr0"' > conftest.s
29109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29111 (eval $ac_try) 2>&5
29112 ac_status=$?
29113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29114 test $ac_status = 0; }; }
29115 then
29116 gcc_cv_as_section_has_align=yes
29117 else
29118 echo "configure: failed program was" >&5
29119 cat conftest.s >&5
29121 rm -f conftest.o conftest.s
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29125 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29128 if test x$gcc_cv_as_section_has_align != xyes; then
29129 case ",$enable_languages," in
29130 *,lto,*)
29131 { $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
29132 $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;}
29134 esac
29137 esac
29138 case $target_os in
29139 darwin2* | darwin19*)
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29141 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29142 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29143 $as_echo_n "(cached) " >&6
29144 else
29145 gcc_cv_as_mllvm_x86_pad_for_align=no
29146 if test x$gcc_cv_as != x; then
29147 $as_echo '.text' > conftest.s
29148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29150 (eval $ac_try) 2>&5
29151 ac_status=$?
29152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29153 test $ac_status = 0; }; }
29154 then
29155 gcc_cv_as_mllvm_x86_pad_for_align=yes
29156 else
29157 echo "configure: failed program was" >&5
29158 cat conftest.s >&5
29160 rm -f conftest.o conftest.s
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29164 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29165 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29167 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29172 esac
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29175 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29176 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29177 $as_echo_n "(cached) " >&6
29178 else
29179 gcc_cv_as_ix86_xbrace_comment=no
29180 if test x$gcc_cv_as != x; then
29181 $as_echo '.text' > conftest.s
29182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -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_ix86_xbrace_comment=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_ix86_xbrace_comment" >&5
29198 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29199 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29201 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29207 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29208 if ${gcc_cv_as_ix86_filds+:} false; then :
29209 $as_echo_n "(cached) " >&6
29210 else
29211 gcc_cv_as_ix86_filds=no
29212 if test x$gcc_cv_as != x; then
29213 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29214 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29219 test $ac_status = 0; }; }
29220 then
29221 gcc_cv_as_ix86_filds=yes
29222 else
29223 echo "configure: failed program was" >&5
29224 cat conftest.s >&5
29226 rm -f conftest.o conftest.s
29229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29230 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29231 if test $gcc_cv_as_ix86_filds = yes; then
29233 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29239 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29240 if ${gcc_cv_as_ix86_fildq+:} false; then :
29241 $as_echo_n "(cached) " >&6
29242 else
29243 gcc_cv_as_ix86_fildq=no
29244 if test x$gcc_cv_as != x; then
29245 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29246 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29248 (eval $ac_try) 2>&5
29249 ac_status=$?
29250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29251 test $ac_status = 0; }; }
29252 then
29253 gcc_cv_as_ix86_fildq=yes
29254 else
29255 echo "configure: failed program was" >&5
29256 cat conftest.s >&5
29258 rm -f conftest.o conftest.s
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29262 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29263 if test $gcc_cv_as_ix86_fildq = yes; then
29265 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29271 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29272 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29273 $as_echo_n "(cached) " >&6
29274 else
29275 gcc_cv_as_ix86_cmov_sun_syntax=no
29276 if test x$gcc_cv_as != x; then
29277 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29283 test $ac_status = 0; }; }
29284 then
29285 gcc_cv_as_ix86_cmov_sun_syntax=yes
29286 else
29287 echo "configure: failed program was" >&5
29288 cat conftest.s >&5
29290 rm -f conftest.o conftest.s
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29294 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29295 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29297 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29303 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29304 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29305 $as_echo_n "(cached) " >&6
29306 else
29307 gcc_cv_as_ix86_ffreep=no
29308 if test x$gcc_cv_as != x; then
29309 $as_echo 'ffreep %st(1)' > conftest.s
29310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29312 (eval $ac_try) 2>&5
29313 ac_status=$?
29314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29315 test $ac_status = 0; }; }
29316 then
29317 gcc_cv_as_ix86_ffreep=yes
29318 else
29319 echo "configure: failed program was" >&5
29320 cat conftest.s >&5
29322 rm -f conftest.o conftest.s
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29326 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29327 if test $gcc_cv_as_ix86_ffreep = yes; then
29329 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29335 $as_echo_n "checking assembler for .quad directive... " >&6; }
29336 if ${gcc_cv_as_ix86_quad+:} false; then :
29337 $as_echo_n "(cached) " >&6
29338 else
29339 gcc_cv_as_ix86_quad=no
29340 if test x$gcc_cv_as != x; then
29341 $as_echo '.quad 0' > conftest.s
29342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; }
29348 then
29349 gcc_cv_as_ix86_quad=yes
29350 else
29351 echo "configure: failed program was" >&5
29352 cat conftest.s >&5
29354 rm -f conftest.o conftest.s
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29358 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29359 if test $gcc_cv_as_ix86_quad = yes; then
29361 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29367 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29368 if ${gcc_cv_as_ix86_sahf+:} false; then :
29369 $as_echo_n "(cached) " >&6
29370 else
29371 gcc_cv_as_ix86_sahf=no
29372 if test x$gcc_cv_as != x; then
29373 $as_echo '.code64
29374 sahf' > conftest.s
29375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29377 (eval $ac_try) 2>&5
29378 ac_status=$?
29379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29380 test $ac_status = 0; }; }
29381 then
29382 gcc_cv_as_ix86_sahf=yes
29383 else
29384 echo "configure: failed program was" >&5
29385 cat conftest.s >&5
29387 rm -f conftest.o conftest.s
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29391 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29392 if test $gcc_cv_as_ix86_sahf = yes; then
29394 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29400 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29401 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29402 $as_echo_n "(cached) " >&6
29403 else
29404 gcc_cv_as_ix86_interunit_movq=no
29405 if test x$gcc_cv_as != x; then
29406 $as_echo '.code64
29407 movq %mm0, %rax
29408 movq %rax, %xmm0' > conftest.s
29409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29411 (eval $ac_try) 2>&5
29412 ac_status=$?
29413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29414 test $ac_status = 0; }; }
29415 then
29416 gcc_cv_as_ix86_interunit_movq=yes
29417 else
29418 echo "configure: failed program was" >&5
29419 cat conftest.s >&5
29421 rm -f conftest.o conftest.s
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29425 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29429 cat >>confdefs.h <<_ACEOF
29430 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29431 _ACEOF
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29435 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29436 if ${gcc_cv_as_ix86_hle+:} false; then :
29437 $as_echo_n "(cached) " >&6
29438 else
29439 gcc_cv_as_ix86_hle=no
29440 if test x$gcc_cv_as != x; then
29441 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29444 (eval $ac_try) 2>&5
29445 ac_status=$?
29446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29447 test $ac_status = 0; }; }
29448 then
29449 gcc_cv_as_ix86_hle=yes
29450 else
29451 echo "configure: failed program was" >&5
29452 cat conftest.s >&5
29454 rm -f conftest.o conftest.s
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29458 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29459 if test $gcc_cv_as_ix86_hle = yes; then
29461 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29467 $as_echo_n "checking assembler for swap suffix... " >&6; }
29468 if ${gcc_cv_as_ix86_swap+:} false; then :
29469 $as_echo_n "(cached) " >&6
29470 else
29471 gcc_cv_as_ix86_swap=no
29472 if test x$gcc_cv_as != x; then
29473 $as_echo 'movl.s %esp, %ebp' > conftest.s
29474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29476 (eval $ac_try) 2>&5
29477 ac_status=$?
29478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29479 test $ac_status = 0; }; }
29480 then
29481 gcc_cv_as_ix86_swap=yes
29482 else
29483 echo "configure: failed program was" >&5
29484 cat conftest.s >&5
29486 rm -f conftest.o conftest.s
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29490 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29491 if test $gcc_cv_as_ix86_swap = yes; then
29493 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29499 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29500 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29501 $as_echo_n "(cached) " >&6
29502 else
29503 gcc_cv_as_ix86_diff_sect_delta=no
29504 if test x$gcc_cv_as != x; then
29505 $as_echo '.section .rodata
29506 .L1:
29507 .long .L2-.L1
29508 .long .L3-.L1
29509 .text
29510 .L3: nop
29511 .L2: nop' > conftest.s
29512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29517 test $ac_status = 0; }; }
29518 then
29519 gcc_cv_as_ix86_diff_sect_delta=yes
29520 else
29521 echo "configure: failed program was" >&5
29522 cat conftest.s >&5
29524 rm -f conftest.o conftest.s
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29528 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29529 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29531 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29537 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29538 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29539 $as_echo_n "(cached) " >&6
29540 else
29541 gcc_cv_as_ix86_rep_lock_prefix=no
29542 if test x$gcc_cv_as != x; then
29543 $as_echo 'rep movsl
29544 rep ret
29545 rep nop
29546 rep bsf %ecx, %eax
29547 rep bsr %ecx, %eax
29548 lock addl %edi, (%eax,%esi)
29549 lock orl $0, (%esp)' > conftest.s
29550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29555 test $ac_status = 0; }; }
29556 then
29557 gcc_cv_as_ix86_rep_lock_prefix=yes
29558 else
29559 echo "configure: failed program was" >&5
29560 cat conftest.s >&5
29562 rm -f conftest.o conftest.s
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29566 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29567 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29569 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29575 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29576 if ${gcc_cv_as_ix86_ud2+:} false; then :
29577 $as_echo_n "(cached) " >&6
29578 else
29579 gcc_cv_as_ix86_ud2=no
29580 if test x$gcc_cv_as != x; then
29581 $as_echo 'ud2' > conftest.s
29582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29584 (eval $ac_try) 2>&5
29585 ac_status=$?
29586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29587 test $ac_status = 0; }; }
29588 then
29589 gcc_cv_as_ix86_ud2=yes
29590 else
29591 echo "configure: failed program was" >&5
29592 cat conftest.s >&5
29594 rm -f conftest.o conftest.s
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29598 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29599 if test $gcc_cv_as_ix86_ud2 = yes; then
29601 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29606 # Enforce 32-bit output with gas and gld.
29607 if test x$gas = xyes; then
29608 as_ix86_gas_32_opt="--32"
29610 if echo "$ld_ver" | grep GNU > /dev/null; then
29611 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29612 ld_ix86_gld_32_opt="-melf_i386_sol2"
29613 else
29614 ld_ix86_gld_32_opt="-melf_i386"
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29619 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29620 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29621 $as_echo_n "(cached) " >&6
29622 else
29623 gcc_cv_as_ix86_tlsgdplt=no
29624 if test x$gcc_cv_as != x; then
29625 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29628 (eval $ac_try) 2>&5
29629 ac_status=$?
29630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29631 test $ac_status = 0; }; }
29632 then
29633 if test x$gcc_cv_ld != x \
29634 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29635 gcc_cv_as_ix86_tlsgdplt=yes
29637 rm -f conftest
29638 else
29639 echo "configure: failed program was" >&5
29640 cat conftest.s >&5
29642 rm -f conftest.o conftest.s
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29646 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29647 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29649 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29654 conftest_s='
29655 .section .tdata,"aw'$tls_section_flag'",@progbits
29656 tls_ld:
29657 .section .text,"ax",@progbits
29658 call tls_ld@tlsldmplt'
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29661 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29662 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29663 $as_echo_n "(cached) " >&6
29664 else
29665 gcc_cv_as_ix86_tlsldmplt=no
29666 if test x$gcc_cv_as != x; then
29667 $as_echo "$conftest_s" > conftest.s
29668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29670 (eval $ac_try) 2>&5
29671 ac_status=$?
29672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29673 test $ac_status = 0; }; }
29674 then
29675 if test x$gcc_cv_ld != x \
29676 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29677 gcc_cv_as_ix86_tlsldmplt=yes
29679 rm -f conftest
29680 else
29681 echo "configure: failed program was" >&5
29682 cat conftest.s >&5
29684 rm -f conftest.o conftest.s
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29688 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29692 cat >>confdefs.h <<_ACEOF
29693 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29694 _ACEOF
29697 conftest_s='
29698 .section .text,"ax",@progbits
29699 .globl _start
29700 .type _start, @function
29701 _start:
29702 leal value@tlsldm(%ebx), %eax
29703 call ___tls_get_addr@plt
29705 .section .tdata,"aw'$tls_section_flag'",@progbits
29706 .type value, @object
29707 value:'
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29709 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29710 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29711 $as_echo_n "(cached) " >&6
29712 else
29713 gcc_cv_as_ix86_tlsldm=no
29714 if test x$gcc_cv_as != x; then
29715 $as_echo "$conftest_s" > conftest.s
29716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29718 (eval $ac_try) 2>&5
29719 ac_status=$?
29720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29721 test $ac_status = 0; }; }
29722 then
29723 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29724 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29725 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29726 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29727 gcc_cv_as_ix86_tlsldm=yes
29730 rm -f conftest
29731 else
29732 echo "configure: failed program was" >&5
29733 cat conftest.s >&5
29735 rm -f conftest.o conftest.s
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29739 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29743 cat >>confdefs.h <<_ACEOF
29744 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29745 _ACEOF
29748 conftest_s='
29749 .data
29750 bar:
29751 .byte 1
29752 .text
29753 .global _start
29754 _start:
29755 cmpl $0, bar@GOT
29756 jmp *_start@GOT'
29757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29758 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29759 if ${gcc_cv_as_ix86_got32x+:} false; then :
29760 $as_echo_n "(cached) " >&6
29761 else
29762 gcc_cv_as_ix86_got32x=no
29763 if test x$gcc_cv_as != x; then
29764 $as_echo "$conftest_s" > conftest.s
29765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29767 (eval $ac_try) 2>&5
29768 ac_status=$?
29769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29770 test $ac_status = 0; }; }
29771 then
29772 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29773 && test x$gcc_cv_readelf != x \
29774 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29775 | grep R_386_GOT32X > /dev/null 2>&1 \
29776 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29777 if $gcc_cv_objdump -dw conftest 2>&1 \
29778 | grep 0xffffff > /dev/null 2>&1; then
29779 gcc_cv_as_ix86_got32x=no
29780 else
29781 gcc_cv_as_ix86_got32x=yes
29784 rm -f conftest
29785 else
29786 echo "configure: failed program was" >&5
29787 cat conftest.s >&5
29789 rm -f conftest.o conftest.s
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29793 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29797 cat >>confdefs.h <<_ACEOF
29798 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29799 _ACEOF
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29803 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29804 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29805 $as_echo_n "(cached) " >&6
29806 else
29807 gcc_cv_as_ix86_gotoff_in_data=no
29808 if test x$gcc_cv_as != x; then
29809 $as_echo ' .text
29810 .L0:
29812 .data
29813 .long .L0@GOTOFF' > conftest.s
29814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29816 (eval $ac_try) 2>&5
29817 ac_status=$?
29818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29819 test $ac_status = 0; }; }
29820 then
29821 gcc_cv_as_ix86_gotoff_in_data=yes
29822 else
29823 echo "configure: failed program was" >&5
29824 cat conftest.s >&5
29826 rm -f conftest.o conftest.s
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29830 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29834 cat >>confdefs.h <<_ACEOF
29835 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29836 _ACEOF
29839 conftest_s='
29840 .section .text,"ax",@progbits
29841 .globl _start
29842 .type _start, @function
29843 _start:
29844 leal ld@tlsldm(%ecx), %eax
29845 call *___tls_get_addr@GOT(%ecx)
29846 leal gd@tlsgd(%ecx), %eax
29847 call *___tls_get_addr@GOT(%ecx)
29849 .section .tdata,"aw'$tls_section_flag'",@progbits
29850 .type ld, @object
29852 .byte 0
29853 .globl gd
29854 .type gd, @object
29856 .byte 0'
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29858 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29859 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29860 $as_echo_n "(cached) " >&6
29861 else
29862 gcc_cv_as_ix86_tls_get_addr_via_got=no
29863 if test x$gcc_cv_as != x; then
29864 $as_echo "$conftest_s" > conftest.s
29865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }
29871 then
29872 if test x$gcc_cv_ld != x \
29873 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29874 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29876 rm -f conftest
29877 else
29878 echo "configure: failed program was" >&5
29879 cat conftest.s >&5
29881 rm -f conftest.o conftest.s
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29885 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29889 cat >>confdefs.h <<_ACEOF
29890 #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`
29891 _ACEOF
29895 ia64*-*-*)
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29897 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29898 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29899 $as_echo_n "(cached) " >&6
29900 else
29901 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29902 if test x$gcc_cv_as != x; then
29903 $as_echo ' .text
29904 addl r15 = @ltoffx(x#), gp
29906 ld8.mov r16 = [r15], x#
29907 ' > conftest.s
29908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29913 test $ac_status = 0; }; }
29914 then
29915 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29916 else
29917 echo "configure: failed program was" >&5
29918 cat conftest.s >&5
29920 rm -f conftest.o conftest.s
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29924 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29925 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29927 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29934 powerpc*-*-*)
29936 case $target in
29937 *-*-darwin*)
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29939 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29940 if ${gcc_cv_as_machine_directive+:} false; then :
29941 $as_echo_n "(cached) " >&6
29942 else
29943 gcc_cv_as_machine_directive=no
29944 if test x$gcc_cv_as != x; then
29945 $as_echo ' .machine ppc7400' > conftest.s
29946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29948 (eval $ac_try) 2>&5
29949 ac_status=$?
29950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29951 test $ac_status = 0; }; }
29952 then
29953 gcc_cv_as_machine_directive=yes
29954 else
29955 echo "configure: failed program was" >&5
29956 cat conftest.s >&5
29958 rm -f conftest.o conftest.s
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29962 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29965 if test x$gcc_cv_as_machine_directive != xyes; then
29966 echo "*** This target requires an assembler supporting \".machine\"" >&2
29967 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29968 test x$build = x$target && exit 1
29971 esac
29973 case $target in
29974 *-*-aix*) conftest_s=' .machine "pwr5"
29975 .csect .text[PR]
29976 mfcr 3,128';;
29977 *-*-darwin*) conftest_s=' .text
29978 mfcr r3,128';;
29979 *) conftest_s=' .machine power4
29980 .text
29981 mfcr 3,128';;
29982 esac
29984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
29985 $as_echo_n "checking assembler for mfcr field support... " >&6; }
29986 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
29987 $as_echo_n "(cached) " >&6
29988 else
29989 gcc_cv_as_powerpc_mfcrf=no
29990 if test x$gcc_cv_as != x; then
29991 $as_echo "$conftest_s" > conftest.s
29992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29994 (eval $ac_try) 2>&5
29995 ac_status=$?
29996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29997 test $ac_status = 0; }; }
29998 then
29999 gcc_cv_as_powerpc_mfcrf=yes
30000 else
30001 echo "configure: failed program was" >&5
30002 cat conftest.s >&5
30004 rm -f conftest.o conftest.s
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30008 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30009 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30011 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30016 case $target in
30017 *-*-aix*) conftest_s=' .machine "pwr10"
30018 .csect .text[PR]
30019 tend. 0';;
30020 *-*-darwin*) conftest_s=' .text
30021 tend. 0';;
30022 *) conftest_s=' .machine power10
30023 .text
30024 tend. 0';;
30025 esac
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30028 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30029 if ${gcc_cv_as_power10_htm+:} false; then :
30030 $as_echo_n "(cached) " >&6
30031 else
30032 gcc_cv_as_power10_htm=no
30033 if test x$gcc_cv_as != x; then
30034 $as_echo "$conftest_s" > conftest.s
30035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30037 (eval $ac_try) 2>&5
30038 ac_status=$?
30039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30040 test $ac_status = 0; }; }
30041 then
30042 gcc_cv_as_power10_htm=yes
30043 else
30044 echo "configure: failed program was" >&5
30045 cat conftest.s >&5
30047 rm -f conftest.o conftest.s
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
30051 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30052 if test $gcc_cv_as_power10_htm = yes; then
30054 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30059 case $target in
30060 *-*-aix*) conftest_s=' .csect .text[PR]
30061 LCF..0:
30062 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30063 *-*-darwin*)
30064 conftest_s=' .text
30065 LCF0:
30066 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30067 *) conftest_s=' .text
30068 .LCF0:
30069 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30070 esac
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30073 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30074 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30075 $as_echo_n "(cached) " >&6
30076 else
30077 gcc_cv_as_powerpc_rel16=no
30078 if test x$gcc_cv_as != x; then
30079 $as_echo "$conftest_s" > conftest.s
30080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30082 (eval $ac_try) 2>&5
30083 ac_status=$?
30084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30085 test $ac_status = 0; }; }
30086 then
30087 gcc_cv_as_powerpc_rel16=yes
30088 else
30089 echo "configure: failed program was" >&5
30090 cat conftest.s >&5
30092 rm -f conftest.o conftest.s
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30096 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30097 if test $gcc_cv_as_powerpc_rel16 = yes; then
30099 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30104 case $target in
30105 *-*-aix*) conftest_s=' .machine "pwr7"
30106 .csect .text[PR]
30107 lxvd2x 1,2,3';;
30108 *) conftest_s=' .machine power7
30109 .text
30110 lxvd2x 1,2,3';;
30111 esac
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30114 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30115 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30116 $as_echo_n "(cached) " >&6
30117 else
30118 gcc_cv_as_powerpc_vsx=no
30119 if test x$gcc_cv_as != x; then
30120 $as_echo "$conftest_s" > conftest.s
30121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30123 (eval $ac_try) 2>&5
30124 ac_status=$?
30125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30126 test $ac_status = 0; }; }
30127 then
30128 gcc_cv_as_powerpc_vsx=yes
30129 else
30130 echo "configure: failed program was" >&5
30131 cat conftest.s >&5
30133 rm -f conftest.o conftest.s
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30137 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30138 if test $gcc_cv_as_powerpc_vsx = yes; then
30140 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30146 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30147 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30148 $as_echo_n "(cached) " >&6
30149 else
30150 gcc_cv_as_powerpc_gnu_attribute=no
30151 if test x$gcc_cv_as != x; then
30152 $as_echo '.gnu_attribute 4,1' > conftest.s
30153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30155 (eval $ac_try) 2>&5
30156 ac_status=$?
30157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30158 test $ac_status = 0; }; }
30159 then
30160 gcc_cv_as_powerpc_gnu_attribute=yes
30161 else
30162 echo "configure: failed program was" >&5
30163 cat conftest.s >&5
30165 rm -f conftest.o conftest.s
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30169 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30170 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30172 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30178 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30179 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30180 $as_echo_n "(cached) " >&6
30181 else
30182 gcc_cv_as_powerpc_entry_markers=no
30183 if test x$gcc_cv_as != x; then
30184 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30187 (eval $ac_try) 2>&5
30188 ac_status=$?
30189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30190 test $ac_status = 0; }; }
30191 then
30192 gcc_cv_as_powerpc_entry_markers=yes
30193 else
30194 echo "configure: failed program was" >&5
30195 cat conftest.s >&5
30197 rm -f conftest.o conftest.s
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30201 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30202 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30204 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30210 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30211 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30212 $as_echo_n "(cached) " >&6
30213 else
30214 gcc_cv_as_powerpc_pltseq_markers=no
30215 if test x$gcc_cv_as != x; then
30216 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30222 test $ac_status = 0; }; }
30223 then
30224 gcc_cv_as_powerpc_pltseq_markers=yes
30225 else
30226 echo "configure: failed program was" >&5
30227 cat conftest.s >&5
30229 rm -f conftest.o conftest.s
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30233 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30234 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30236 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30241 case $target in
30242 *-*-aix*)
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30244 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30245 if ${gcc_cv_as_aix_ref+:} false; then :
30246 $as_echo_n "(cached) " >&6
30247 else
30248 gcc_cv_as_aix_ref=no
30249 if test x$gcc_cv_as != x; then
30250 $as_echo ' .csect stuff[rw]
30251 stuff:
30252 .long 1
30253 .extern sym
30254 .ref sym
30255 ' > conftest.s
30256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30258 (eval $ac_try) 2>&5
30259 ac_status=$?
30260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30261 test $ac_status = 0; }; }
30262 then
30263 gcc_cv_as_aix_ref=yes
30264 else
30265 echo "configure: failed program was" >&5
30266 cat conftest.s >&5
30268 rm -f conftest.o conftest.s
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30272 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30273 if test $gcc_cv_as_aix_ref = yes; then
30275 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30281 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30282 if ${gcc_cv_as_aix_dwloc+:} false; then :
30283 $as_echo_n "(cached) " >&6
30284 else
30285 gcc_cv_as_aix_dwloc=no
30286 if test x$gcc_cv_as != x; then
30287 $as_echo ' .dwsect 0xA0000
30288 Lframe..0:
30289 .vbyte 4,Lframe..0
30290 ' > conftest.s
30291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30293 (eval $ac_try) 2>&5
30294 ac_status=$?
30295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30296 test $ac_status = 0; }; }
30297 then
30298 gcc_cv_as_aix_dwloc=yes
30299 else
30300 echo "configure: failed program was" >&5
30301 cat conftest.s >&5
30303 rm -f conftest.o conftest.s
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30307 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30308 if test $gcc_cv_as_aix_dwloc = yes; then
30310 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30315 esac
30318 mips*-*-*)
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30320 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30321 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30322 $as_echo_n "(cached) " >&6
30323 else
30324 gcc_cv_as_mips_explicit_relocs=no
30325 if test x$gcc_cv_as != x; then
30326 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30329 (eval $ac_try) 2>&5
30330 ac_status=$?
30331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30332 test $ac_status = 0; }; }
30333 then
30334 gcc_cv_as_mips_explicit_relocs=yes
30335 else
30336 echo "configure: failed program was" >&5
30337 cat conftest.s >&5
30339 rm -f conftest.o conftest.s
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30343 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30344 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30345 if test x$target_cpu_default = x
30346 then target_cpu_default=MASK_EXPLICIT_RELOCS
30347 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30353 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30354 if ${gcc_cv_as_mips_no_shared+:} false; then :
30355 $as_echo_n "(cached) " >&6
30356 else
30357 gcc_cv_as_mips_no_shared=no
30358 if test x$gcc_cv_as != x; then
30359 $as_echo 'nop' > conftest.s
30360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30365 test $ac_status = 0; }; }
30366 then
30367 gcc_cv_as_mips_no_shared=yes
30368 else
30369 echo "configure: failed program was" >&5
30370 cat conftest.s >&5
30372 rm -f conftest.o conftest.s
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30376 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30377 if test $gcc_cv_as_mips_no_shared = yes; then
30379 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30385 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30386 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30387 $as_echo_n "(cached) " >&6
30388 else
30389 gcc_cv_as_mips_gnu_attribute=no
30390 if test x$gcc_cv_as != x; then
30391 $as_echo '.gnu_attribute 4,1' > conftest.s
30392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30397 test $ac_status = 0; }; }
30398 then
30399 gcc_cv_as_mips_gnu_attribute=yes
30400 else
30401 echo "configure: failed program was" >&5
30402 cat conftest.s >&5
30404 rm -f conftest.o conftest.s
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30408 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30409 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30411 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30417 $as_echo_n "checking assembler for .module support... " >&6; }
30418 if ${gcc_cv_as_mips_dot_module+:} false; then :
30419 $as_echo_n "(cached) " >&6
30420 else
30421 gcc_cv_as_mips_dot_module=no
30422 if test x$gcc_cv_as != x; then
30423 $as_echo '.module mips2
30424 .module fp=xx' > conftest.s
30425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30427 (eval $ac_try) 2>&5
30428 ac_status=$?
30429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30430 test $ac_status = 0; }; }
30431 then
30432 gcc_cv_as_mips_dot_module=yes
30433 else
30434 echo "configure: failed program was" >&5
30435 cat conftest.s >&5
30437 rm -f conftest.o conftest.s
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30441 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30442 if test $gcc_cv_as_mips_dot_module = yes; then
30444 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30448 if test x$gcc_cv_as_mips_dot_module = xno \
30449 && test x$with_fp_32 != x; then
30450 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30454 $as_echo_n "checking assembler for .micromips support... " >&6; }
30455 if ${gcc_cv_as_micromips_support+:} false; then :
30456 $as_echo_n "(cached) " >&6
30457 else
30458 gcc_cv_as_micromips_support=no
30459 if test x$gcc_cv_as != x; then
30460 $as_echo '.set micromips' > conftest.s
30461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30463 (eval $ac_try) 2>&5
30464 ac_status=$?
30465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30466 test $ac_status = 0; }; }
30467 then
30468 gcc_cv_as_micromips_support=yes
30469 else
30470 echo "configure: failed program was" >&5
30471 cat conftest.s >&5
30473 rm -f conftest.o conftest.s
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30477 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30478 if test $gcc_cv_as_micromips_support = yes; then
30480 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30486 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30487 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30488 $as_echo_n "(cached) " >&6
30489 else
30490 gcc_cv_as_mips_dtprelword=no
30491 if test x$gcc_cv_as != x; then
30492 $as_echo '.section .tdata,"awT",@progbits
30494 .word 2
30495 .text
30496 .dtprelword x+0x8000' > conftest.s
30497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30499 (eval $ac_try) 2>&5
30500 ac_status=$?
30501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30502 test $ac_status = 0; }; }
30503 then
30504 gcc_cv_as_mips_dtprelword=yes
30505 else
30506 echo "configure: failed program was" >&5
30507 cat conftest.s >&5
30509 rm -f conftest.o conftest.s
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30513 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30514 if test $gcc_cv_as_mips_dtprelword = yes; then
30516 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30522 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30523 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30524 $as_echo_n "(cached) " >&6
30525 else
30526 gcc_cv_as_mips_dspr1_mult=no
30527 if test x$gcc_cv_as != x; then
30528 $as_echo ' .set mips32r2
30529 .set nodspr2
30530 .set dsp
30531 madd $ac3,$4,$5
30532 maddu $ac3,$4,$5
30533 msub $ac3,$4,$5
30534 msubu $ac3,$4,$5
30535 mult $ac3,$4,$5
30536 multu $ac3,$4,$5' > conftest.s
30537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30539 (eval $ac_try) 2>&5
30540 ac_status=$?
30541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30542 test $ac_status = 0; }; }
30543 then
30544 gcc_cv_as_mips_dspr1_mult=yes
30545 else
30546 echo "configure: failed program was" >&5
30547 cat conftest.s >&5
30549 rm -f conftest.o conftest.s
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30553 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30554 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30556 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30562 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30563 gcc_cv_as_ld_jalr_reloc=no
30564 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30565 if test $in_tree_ld = yes ; then
30566 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 \
30567 && test $in_tree_ld_is_elf = yes; then
30568 gcc_cv_as_ld_jalr_reloc=yes
30570 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30571 echo ' .ent x' > conftest.s
30572 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30573 echo ' lw $25,%call16(y)($28)' >> conftest.s
30574 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30575 echo '1: jalr $25' >> conftest.s
30576 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30577 echo '1: jalr $25' >> conftest.s
30578 echo ' .end x' >> conftest.s
30579 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30580 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30581 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30582 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30583 gcc_cv_as_ld_jalr_reloc=yes
30586 rm -f conftest.*
30589 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30590 if test x$target_cpu_default = x; then
30591 target_cpu_default=MASK_RELAX_PIC_CALLS
30592 else
30593 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30597 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30600 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30601 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30602 $as_echo_n "(cached) " >&6
30603 else
30604 gcc_cv_ld_mips_personality_relaxation=no
30605 if test $in_tree_ld = yes ; then
30606 if test "$gcc_cv_gld_major_version" -eq 2 \
30607 -a "$gcc_cv_gld_minor_version" -ge 21 \
30608 -o "$gcc_cv_gld_major_version" -gt 2; then
30609 gcc_cv_ld_mips_personality_relaxation=yes
30611 elif test x$gcc_cv_as != x \
30612 -a x$gcc_cv_ld != x \
30613 -a x$gcc_cv_readelf != x ; then
30614 cat > conftest.s <<EOF
30615 .cfi_startproc
30616 .cfi_personality 0x80,indirect_ptr
30617 .ent test
30618 test:
30620 .end test
30621 .cfi_endproc
30623 .section .data,"aw",@progbits
30624 indirect_ptr:
30625 .dc.a personality
30627 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30628 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30629 if $gcc_cv_readelf -d conftest 2>&1 \
30630 | grep TEXTREL > /dev/null 2>&1; then
30632 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30633 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30635 else
30636 gcc_cv_ld_mips_personality_relaxation=yes
30640 rm -f conftest.s conftest.o conftest
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30643 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30644 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30646 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30651 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30652 if ${gcc_cv_as_mips_nan+:} false; then :
30653 $as_echo_n "(cached) " >&6
30654 else
30655 gcc_cv_as_mips_nan=no
30656 if test x$gcc_cv_as != x; then
30657 $as_echo '' > conftest.s
30658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30660 (eval $ac_try) 2>&5
30661 ac_status=$?
30662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30663 test $ac_status = 0; }; }
30664 then
30665 gcc_cv_as_mips_nan=yes
30666 else
30667 echo "configure: failed program was" >&5
30668 cat conftest.s >&5
30670 rm -f conftest.o conftest.s
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30674 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30675 if test $gcc_cv_as_mips_nan = yes; then
30677 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30681 if test x$gcc_cv_as_mips_nan = xno \
30682 && test x$with_nan != x; then
30683 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30686 msp430-*-*)
30687 # Earlier GAS versions generically support .gnu_attribute, but the
30688 # msp430 assembler will not do anything with it.
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30690 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30691 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30692 $as_echo_n "(cached) " >&6
30693 else
30694 gcc_cv_as_msp430_gnu_attribute=no
30695 if test x$gcc_cv_as != x; then
30696 $as_echo '.gnu_attribute 4,1' > conftest.s
30697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30699 (eval $ac_try) 2>&5
30700 ac_status=$?
30701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30702 test $ac_status = 0; }; }
30703 then
30704 gcc_cv_as_msp430_gnu_attribute=yes
30705 else
30706 echo "configure: failed program was" >&5
30707 cat conftest.s >&5
30709 rm -f conftest.o conftest.s
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30713 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30714 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30716 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30721 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30722 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30723 $as_echo_n "(cached) " >&6
30724 else
30725 gcc_cv_as_msp430_mspabi_attribute=no
30726 if test x$gcc_cv_as != x; then
30727 $as_echo '.mspabi_attribute 4,2' > conftest.s
30728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30730 (eval $ac_try) 2>&5
30731 ac_status=$?
30732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30733 test $ac_status = 0; }; }
30734 then
30735 gcc_cv_as_msp430_mspabi_attribute=yes
30736 else
30737 echo "configure: failed program was" >&5
30738 cat conftest.s >&5
30740 rm -f conftest.o conftest.s
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30744 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30745 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30747 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30751 if test x$enable_newlib_nano_formatted_io = xyes; then
30753 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30757 nios2-*-*)
30758 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30759 # syntax that is documented in the ABI specification.
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30761 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30762 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30763 $as_echo_n "(cached) " >&6
30764 else
30765 gcc_cv_as_nios2_gotoff_relocation=no
30766 if test x$gcc_cv_as != x; then
30767 $as_echo ' .extern foo
30768 .data
30769 .long %gotoff(foo)' > conftest.s
30770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30772 (eval $ac_try) 2>&5
30773 ac_status=$?
30774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30775 test $ac_status = 0; }; }
30776 then
30777 gcc_cv_as_nios2_gotoff_relocation=yes
30778 else
30779 echo "configure: failed program was" >&5
30780 cat conftest.s >&5
30782 rm -f conftest.o conftest.s
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30786 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30787 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30789 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30794 riscv*-*-*)
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30796 $as_echo_n "checking assembler for .attribute support... " >&6; }
30797 if ${gcc_cv_as_riscv_attribute+:} false; then :
30798 $as_echo_n "(cached) " >&6
30799 else
30800 gcc_cv_as_riscv_attribute=no
30801 if test x$gcc_cv_as != x; then
30802 $as_echo '.attribute stack_align,4' > conftest.s
30803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30805 (eval $ac_try) 2>&5
30806 ac_status=$?
30807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30808 test $ac_status = 0; }; }
30809 then
30810 gcc_cv_as_riscv_attribute=yes
30811 else
30812 echo "configure: failed program was" >&5
30813 cat conftest.s >&5
30815 rm -f conftest.o conftest.s
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30819 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30820 if test $gcc_cv_as_riscv_attribute = yes; then
30822 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30827 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30828 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30829 $as_echo_n "(cached) " >&6
30830 else
30831 gcc_cv_as_riscv_isa_spec=no
30832 if test x$gcc_cv_as != x; then
30833 $as_echo '' > conftest.s
30834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30836 (eval $ac_try) 2>&5
30837 ac_status=$?
30838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30839 test $ac_status = 0; }; }
30840 then
30841 gcc_cv_as_riscv_isa_spec=yes
30842 else
30843 echo "configure: failed program was" >&5
30844 cat conftest.s >&5
30846 rm -f conftest.o conftest.s
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30850 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30851 if test $gcc_cv_as_riscv_isa_spec = yes; then
30853 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30858 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30859 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30860 $as_echo_n "(cached) " >&6
30861 else
30862 gcc_cv_as_riscv_march_zifencei=no
30863 if test x$gcc_cv_as != x; then
30864 $as_echo '' > conftest.s
30865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30867 (eval $ac_try) 2>&5
30868 ac_status=$?
30869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30870 test $ac_status = 0; }; }
30871 then
30872 gcc_cv_as_riscv_march_zifencei=yes
30873 else
30874 echo "configure: failed program was" >&5
30875 cat conftest.s >&5
30877 rm -f conftest.o conftest.s
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30881 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30882 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30884 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30889 loongarch*-*-*)
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30891 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30892 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30893 $as_echo_n "(cached) " >&6
30894 else
30895 gcc_cv_as_loongarch_dtprelword=no
30896 if test x$gcc_cv_as != x; then
30897 $as_echo '' > conftest.s
30898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30903 test $ac_status = 0; }; }
30904 then
30905 .section .tdata,"awT",@progbits
30907 .word 2
30908 .text
30909 .dtprelword x+0x8000
30910 else
30911 echo "configure: failed program was" >&5
30912 cat conftest.s >&5
30914 rm -f conftest.o conftest.s
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30918 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30920 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30922 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30926 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30927 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30928 $as_echo_n "(cached) " >&6
30929 else
30930 gcc_cv_as_loongarch_explicit_relocs=no
30931 if test x$gcc_cv_as != x; then
30932 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30935 (eval $ac_try) 2>&5
30936 ac_status=$?
30937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30938 test $ac_status = 0; }; }
30939 then
30940 gcc_cv_as_loongarch_explicit_relocs=yes
30941 else
30942 echo "configure: failed program was" >&5
30943 cat conftest.s >&5
30945 rm -f conftest.o conftest.s
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30949 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30950 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30952 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30957 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30958 if ${gcc_cv_as_loongarch_call36+:} false; then :
30959 $as_echo_n "(cached) " >&6
30960 else
30961 gcc_cv_as_loongarch_call36=no
30962 if test x$gcc_cv_as != x; then
30963 $as_echo 'pcaddu18i $r1, %call36(a)
30964 jirl $r1, $r1, 0' > conftest.s
30965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30967 (eval $ac_try) 2>&5
30968 ac_status=$?
30969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30970 test $ac_status = 0; }; }
30971 then
30972 gcc_cv_as_loongarch_call36=yes
30973 else
30974 echo "configure: failed program was" >&5
30975 cat conftest.s >&5
30977 rm -f conftest.o conftest.s
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
30981 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
30982 if test $gcc_cv_as_loongarch_call36 = yes; then
30984 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
30989 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
30990 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
30991 $as_echo_n "(cached) " >&6
30992 else
30993 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
30994 if test x$gcc_cv_as != x; then
30995 $as_echo '.cfi_startproc
30996 .cfi_personality 0x9b,a
30997 .cfi_lsda 0x1b,b
30998 .cfi_endproc' > conftest.s
30999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31001 (eval $ac_try) 2>&5
31002 ac_status=$?
31003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31004 test $ac_status = 0; }; }
31005 then
31006 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31007 else
31008 echo "configure: failed program was" >&5
31009 cat conftest.s >&5
31011 rm -f conftest.o conftest.s
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31015 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31016 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31018 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31023 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31024 if ${gcc_cv_as_loongarch_relax+:} false; then :
31025 $as_echo_n "(cached) " >&6
31026 else
31027 gcc_cv_as_loongarch_relax=no
31028 if test x$gcc_cv_as != x; then
31029 $as_echo '.text' > conftest.s
31030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31032 (eval $ac_try) 2>&5
31033 ac_status=$?
31034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31035 test $ac_status = 0; }; }
31036 then
31037 gcc_cv_as_loongarch_relax=yes
31038 else
31039 echo "configure: failed program was" >&5
31040 cat conftest.s >&5
31042 rm -f conftest.o conftest.s
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31046 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31047 if test $gcc_cv_as_loongarch_relax = yes; then
31049 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31054 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31055 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31056 $as_echo_n "(cached) " >&6
31057 else
31058 gcc_cv_as_loongarch_cond_branch_relax=no
31059 if test x$gcc_cv_as != x; then
31060 $as_echo 'a:
31061 .rept 32769
31063 .endr
31064 beq $a0,$a1,a' > conftest.s
31065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31070 test $ac_status = 0; }; }
31071 then
31072 gcc_cv_as_loongarch_cond_branch_relax=yes
31073 else
31074 echo "configure: failed program was" >&5
31075 cat conftest.s >&5
31077 rm -f conftest.o conftest.s
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31081 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31082 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31084 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31089 s390*-*-*)
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31091 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31092 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31093 $as_echo_n "(cached) " >&6
31094 else
31095 gcc_cv_as_s390_gnu_attribute=no
31096 if test x$gcc_cv_as != x; then
31097 $as_echo '.gnu_attribute 8,1' > conftest.s
31098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31100 (eval $ac_try) 2>&5
31101 ac_status=$?
31102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31103 test $ac_status = 0; }; }
31104 then
31105 gcc_cv_as_s390_gnu_attribute=yes
31106 else
31107 echo "configure: failed program was" >&5
31108 cat conftest.s >&5
31110 rm -f conftest.o conftest.s
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31114 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31115 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31117 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31122 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31123 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31124 $as_echo_n "(cached) " >&6
31125 else
31126 gcc_cv_as_s390_machine_machinemode=no
31127 if test x$gcc_cv_as != x; then
31128 $as_echo ' .machinemode push
31129 .machinemode pop
31130 .machine push
31131 .machine pop' > conftest.s
31132 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31134 (eval $ac_try) 2>&5
31135 ac_status=$?
31136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31137 test $ac_status = 0; }; }
31138 then
31139 gcc_cv_as_s390_machine_machinemode=yes
31140 else
31141 echo "configure: failed program was" >&5
31142 cat conftest.s >&5
31144 rm -f conftest.o conftest.s
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31148 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31149 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31151 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31156 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31157 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31158 $as_echo_n "(cached) " >&6
31159 else
31160 gcc_cv_as_s390_architecture_modifiers=no
31161 if test x$gcc_cv_as != x; then
31162 $as_echo ' .machine z13+vx ' > conftest.s
31163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31165 (eval $ac_try) 2>&5
31166 ac_status=$?
31167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31168 test $ac_status = 0; }; }
31169 then
31170 gcc_cv_as_s390_architecture_modifiers=yes
31171 else
31172 echo "configure: failed program was" >&5
31173 cat conftest.s >&5
31175 rm -f conftest.o conftest.s
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31179 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31180 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31182 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31187 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31188 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31189 $as_echo_n "(cached) " >&6
31190 else
31191 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31192 if test x$gcc_cv_as != x; then
31193 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31194 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31196 (eval $ac_try) 2>&5
31197 ac_status=$?
31198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31199 test $ac_status = 0; }; }
31200 then
31201 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31202 else
31203 echo "configure: failed program was" >&5
31204 cat conftest.s >&5
31206 rm -f conftest.o conftest.s
31209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31210 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31211 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31213 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31218 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31219 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31220 $as_echo_n "(cached) " >&6
31221 else
31222 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31223 if test x$gcc_cv_as != x; then
31224 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31230 test $ac_status = 0; }; }
31231 then
31232 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31233 else
31234 echo "configure: failed program was" >&5
31235 cat conftest.s >&5
31237 rm -f conftest.o conftest.s
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31241 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31242 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31244 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31250 esac
31252 # Mips, LoongArch and HP-UX need the GNU assembler.
31253 # Linux on IA64 might be able to use the Intel assembler.
31255 case "$target" in
31256 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31257 if test x$gas_flag = xyes \
31258 || test x"$host" != x"$build" \
31259 || test ! -x "$gcc_cv_as" \
31260 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31262 else
31263 echo "*** This configuration requires the GNU assembler" >&2
31264 exit 1
31267 esac
31269 # AMD GCN needs the LLVM assembler and linker.
31270 # Test that LLVM is at least 13.0.1.
31271 case "$target" in
31272 amdgcn-* | gcn-*)
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31274 $as_echo_n "checking llvm assembler version... " >&6; }
31275 gcc_cv_as_version="unknown"
31276 if test x$gcc_cv_as != x; then
31277 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31278 case "$gcc_cv_as_version" in
31279 13.0.[1-9]*) ;; # 13.0.1+
31280 13.[1-9]*) ;; # 13.1+
31281 1[4-9]*) ;; # 14..19
31282 [2-9][0-9]*) ;; # 20..99
31283 [1-9][0-9][0-9]*) ;; # 100+
31284 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31285 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31286 esac
31288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31289 $as_echo "$gcc_cv_as_version, ok" >&6; }
31291 esac
31293 case "$target" in
31294 arm*)
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31296 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31297 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31298 $as_echo_n "(cached) " >&6
31299 else
31300 gcc_cv_as_arm_option_extensions=no
31301 if test x$gcc_cv_as != x; then
31302 $as_echo '.text
31303 .thumb
31304 .syntax unified
31305 vmov.f32 s0, s1' > conftest.s
31306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31308 (eval $ac_try) 2>&5
31309 ac_status=$?
31310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31311 test $ac_status = 0; }; }
31312 then
31313 gcc_cv_as_arm_option_extensions=yes
31314 else
31315 echo "configure: failed program was" >&5
31316 cat conftest.s >&5
31318 rm -f conftest.o conftest.s
31321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31322 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31323 if test $gcc_cv_as_arm_option_extensions = yes; then
31325 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31329 esac
31331 # ??? Not all targets support dwarf2 debug_line, even within a version
31332 # of gas. Moreover, we need to emit a valid instruction to trigger any
31333 # info to the output file. So, as supported targets are added to gas 2.11,
31334 # add some instruction here to (also) show we expect this might work.
31335 # ??? Once 2.11 is released, probably need to add first known working
31336 # version to the per-target configury.
31337 case "$cpu_type" in
31338 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31339 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31340 | visium | xstormy16 | xtensa)
31341 insn="nop"
31343 ia64 | s390)
31344 insn="nop 0"
31346 mmix)
31347 insn="swym 0"
31349 esac
31350 if test x"$insn" != x; then
31351 conftest_s="\
31352 .file 1 \"conftest.s\"
31353 .loc 1 3 0
31354 $insn"
31355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31356 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31357 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31358 $as_echo_n "(cached) " >&6
31359 else
31360 gcc_cv_as_dwarf2_debug_line=no
31361 if test x$gcc_cv_as != x; then
31362 $as_echo "$conftest_s" > conftest.s
31363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31365 (eval $ac_try) 2>&5
31366 ac_status=$?
31367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31368 test $ac_status = 0; }; }
31369 then
31370 if test x$gcc_cv_objdump != x \
31371 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31372 | grep debug_line > /dev/null 2>&1; then
31373 gcc_cv_as_dwarf2_debug_line=yes
31374 elif test x$gcc_cv_otool != x \
31375 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31376 | grep debug_line > /dev/null 2>&1; then
31377 gcc_cv_as_dwarf2_debug_line=yes
31379 else
31380 echo "configure: failed program was" >&5
31381 cat conftest.s >&5
31383 rm -f conftest.o conftest.s
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31387 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31391 # The .debug_line file table must be in the exact order that
31392 # we specified the files, since these indices are also used
31393 # by DW_AT_decl_file. Approximate this test by testing if
31394 # the assembler bitches if the same index is assigned twice.
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31396 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31397 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31398 $as_echo_n "(cached) " >&6
31399 else
31400 gcc_cv_as_dwarf2_file_buggy=no
31401 if test x$gcc_cv_as != x; then
31402 $as_echo ' .file 1 "foo.s"
31403 .file 1 "bar.s"' > conftest.s
31404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31409 test $ac_status = 0; }; }
31410 then
31411 gcc_cv_as_dwarf2_file_buggy=yes
31412 else
31413 echo "configure: failed program was" >&5
31414 cat conftest.s >&5
31416 rm -f conftest.o conftest.s
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31420 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31424 if test $gcc_cv_as_dwarf2_debug_line = yes \
31425 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31427 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31430 if test $gcc_cv_as_leb128 = yes; then
31431 conftest_s="\
31432 .file 1 \"conftest.s\"
31433 .loc 1 3 0 view .LVU1
31434 $insn
31435 .data
31436 .uleb128 .LVU1
31437 .uleb128 .LVU1
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31440 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31441 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31442 $as_echo_n "(cached) " >&6
31443 else
31444 gcc_cv_as_dwarf2_debug_view=no
31445 if test x$gcc_cv_as != x; then
31446 $as_echo "$conftest_s" > conftest.s
31447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31449 (eval $ac_try) 2>&5
31450 ac_status=$?
31451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31452 test $ac_status = 0; }; }
31453 then
31454 gcc_cv_as_dwarf2_debug_view=yes
31455 else
31456 echo "configure: failed program was" >&5
31457 cat conftest.s >&5
31459 rm -f conftest.o conftest.s
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31463 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31464 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31466 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31474 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31475 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31476 $as_echo_n "(cached) " >&6
31477 else
31478 gcc_cv_as_gdwarf2_flag=no
31479 if test x$gcc_cv_as != x; then
31480 $as_echo "$insn" > conftest.s
31481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31486 test $ac_status = 0; }; }
31487 then
31488 gcc_cv_as_gdwarf2_flag=yes
31489 else
31490 echo "configure: failed program was" >&5
31491 cat conftest.s >&5
31493 rm -f conftest.o conftest.s
31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31497 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31498 if test $gcc_cv_as_gdwarf2_flag = yes; then
31500 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31506 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31507 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31508 $as_echo_n "(cached) " >&6
31509 else
31510 gcc_cv_as_gdwarf_5_flag=no
31511 if test x$gcc_cv_as != x; then
31512 $as_echo "$insn" > conftest.s
31513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31515 (eval $ac_try) 2>&5
31516 ac_status=$?
31517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31518 test $ac_status = 0; }; }
31519 then
31520 if test x$gcc_cv_objdump != x \
31521 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31522 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31523 gcc_cv_as_gdwarf_5_flag=yes;
31525 else
31526 echo "configure: failed program was" >&5
31527 cat conftest.s >&5
31529 rm -f conftest.o conftest.s
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31533 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31534 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31536 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31541 case $target_os in
31542 win32 | pe | cygwin* | mingw32*)
31543 section_flags=\"dr\"
31544 function_type=".def foo; .scl 2; .type 32; .endef"
31545 function_size="";;
31547 section_flags=\"\",%progbits
31548 function_type=".type foo, %function"
31549 function_size=".size foo, .-foo";;
31550 esac
31551 dwarf4_debug_info_size=0x46
31552 dwarf4_high_pc_form=7
31553 dwarf4_debug_aranges_size=0x2c
31554 dwarf4_line_sz=9
31555 for dwarf4_addr_size in 8 4; do
31556 conftest_s="\
31557 .file \"a.c\"
31558 .text
31559 .Ltext0:
31560 .p2align 4
31561 .globl foo
31562 $function_type
31563 foo:
31564 .LFB0:
31565 .LM1:
31566 $insn
31567 .LM2:
31568 .LFE0:
31569 $function_size
31570 .Letext0:
31571 .section .debug_info,$section_flags
31572 .Ldebug_info0:
31573 .4byte $dwarf4_debug_info_size
31574 .2byte 0x4
31575 .4byte .Ldebug_abbrev0
31576 .byte 0x$dwarf4_addr_size
31577 .byte 0x1
31578 .ascii \"GNU C17\\0\"
31579 .byte 0xc
31580 .ascii \"a.c\\0\"
31581 .ascii \"/\\0\"
31582 .${dwarf4_addr_size}byte .Ltext0
31583 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31584 .4byte .Ldebug_line0
31585 .byte 0x2
31586 .ascii \"foo\\0\"
31587 .byte 0x1
31588 .byte 0x2
31589 .byte 0x1
31590 .${dwarf4_addr_size}byte .LFB0
31591 .${dwarf4_addr_size}byte .LFE0-.LFB0
31592 .byte 0x1
31593 .byte 0x9c
31594 .byte 0
31595 .section .debug_abbrev,$section_flags
31596 .Ldebug_abbrev0:
31597 .byte 0x1
31598 .byte 0x11
31599 .byte 0x1
31600 .byte 0x25
31601 .byte 0x8
31602 .byte 0x13
31603 .byte 0xb
31604 .byte 0x3
31605 .byte 0x8
31606 .byte 0x1b
31607 .byte 0x8
31608 .byte 0x11
31609 .byte 0x1
31610 .byte 0x12
31611 .byte 0x$dwarf4_high_pc_form
31612 .byte 0x10
31613 .byte 0x17
31614 .byte 0
31615 .byte 0
31616 .byte 0x2
31617 .byte 0x2e
31618 .byte 0
31619 .byte 0x3f
31620 .byte 0x19
31621 .byte 0x3
31622 .byte 0x8
31623 .byte 0x3a
31624 .byte 0xb
31625 .byte 0x3b
31626 .byte 0xb
31627 .byte 0x39
31628 .byte 0xb
31629 .byte 0x11
31630 .byte 0x1
31631 .byte 0x12
31632 .byte 0x$dwarf4_high_pc_form
31633 .byte 0x40
31634 .byte 0x18
31635 .byte 0
31636 .byte 0
31637 .byte 0
31638 .section .debug_aranges,$section_flags
31639 .4byte $dwarf4_debug_aranges_size
31640 .2byte 0x2
31641 .4byte .Ldebug_info0
31642 .byte 0x8
31643 .byte 0
31644 .2byte 0
31645 .2byte 0
31646 .${dwarf4_addr_size}byte .Ltext0
31647 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31648 .${dwarf4_addr_size}byte 0
31649 .${dwarf4_addr_size}byte 0
31650 .section .debug_line,$section_flags
31651 .Ldebug_line0:
31652 .4byte .LELT0-.LSLT0
31653 .LSLT0:
31654 .2byte 0x4
31655 .4byte .LELTP0-.LASLTP0
31656 .LASLTP0:
31657 .byte 0x1
31658 .byte 0x1
31659 .byte 0x1
31660 .byte 0xf6
31661 .byte 0xf2
31662 .byte 0xd
31663 .byte 0
31664 .byte 0x1
31665 .byte 0x1
31666 .byte 0x1
31667 .byte 0x1
31668 .byte 0
31669 .byte 0
31670 .byte 0
31671 .byte 0x1
31672 .byte 0
31673 .byte 0
31674 .byte 0x1
31675 .byte 0
31676 .ascii \"a.c\\0\"
31677 .byte 0
31678 .byte 0
31679 .byte 0
31680 .byte 0
31681 .LELTP0:
31682 .byte 0
31683 .byte 0x$dwarf4_line_sz
31684 .byte 0x2
31685 .${dwarf4_addr_size}byte .LM1
31686 .byte 0x18
31687 .byte 0x5
31688 .byte 0x1
31689 .byte 0
31690 .byte 0x$dwarf4_line_sz
31691 .byte 0x2
31692 .${dwarf4_addr_size}byte .LM2
31693 .byte 0x1
31694 .byte 0x5
31695 .byte 0x1
31696 .byte 0
31697 .byte 0x$dwarf4_line_sz
31698 .byte 0x2
31699 .${dwarf4_addr_size}byte .Letext0
31700 .byte 0
31701 .byte 0x1
31702 .byte 0x1
31703 .LELT0:
31704 .section .debug_str,$section_flags
31705 .ident \"GCC\"
31707 dwarf4_success=no
31708 if test $dwarf4_addr_size = 4; then
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31710 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31711 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31712 $as_echo_n "(cached) " >&6
31713 else
31714 gcc_cv_as_debug_line_32_flag=no
31715 if test x$gcc_cv_as != x; then
31716 $as_echo "$conftest_s" > conftest.s
31717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31722 test $ac_status = 0; }; }
31723 then
31724 gcc_cv_as_debug_line_32_flag=yes
31725 else
31726 echo "configure: failed program was" >&5
31727 cat conftest.s >&5
31729 rm -f conftest.o conftest.s
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31733 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31734 if test $gcc_cv_as_debug_line_32_flag = yes; then
31735 dwarf4_success=yes
31738 else
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31740 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31741 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31742 $as_echo_n "(cached) " >&6
31743 else
31744 gcc_cv_as_debug_line_64_flag=no
31745 if test x$gcc_cv_as != x; then
31746 $as_echo "$conftest_s" > conftest.s
31747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31752 test $ac_status = 0; }; }
31753 then
31754 gcc_cv_as_debug_line_64_flag=yes
31755 else
31756 echo "configure: failed program was" >&5
31757 cat conftest.s >&5
31759 rm -f conftest.o conftest.s
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31763 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31764 if test $gcc_cv_as_debug_line_64_flag = yes; then
31765 dwarf4_success=yes
31769 if test $dwarf4_success = yes; then
31770 dwarf4_success=no
31771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31772 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31773 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31774 $as_echo_n "(cached) " >&6
31775 else
31776 gcc_cv_as_dwarf_4_debug_line_flag=no
31777 if test x$gcc_cv_as != x; then
31778 $as_echo "$conftest_s" > conftest.s
31779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31781 (eval $ac_try) 2>&5
31782 ac_status=$?
31783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31784 test $ac_status = 0; }; }
31785 then
31786 gcc_cv_as_dwarf_4_debug_line_flag=yes
31787 else
31788 echo "configure: failed program was" >&5
31789 cat conftest.s >&5
31791 rm -f conftest.o conftest.s
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31795 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31796 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31797 dwarf4_success=yes
31800 break
31802 dwarf4_debug_info_size=0x36
31803 dwarf4_high_pc_form=6
31804 dwarf4_debug_aranges_size=0x1c
31805 dwarf4_line_sz=5
31806 done
31808 if test $dwarf4_success = yes; then
31809 conftest_s="\
31810 .file \"foo.c\"
31811 .text
31812 bar:
31813 #APP
31814 # 82 \"xxx.h\" 1
31815 $insn
31816 # 0 \"\" 2
31817 #NO_APP
31818 $insn
31819 foo:
31820 .file 1 \"foo.c\"
31821 $insn
31822 .file 2 \"foo.h\"
31825 dwarf4_success=no
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31827 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31828 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31829 $as_echo_n "(cached) " >&6
31830 else
31831 gcc_cv_as_dwarf_4_app_flag=no
31832 if test x$gcc_cv_as != x; then
31833 $as_echo "$conftest_s" > conftest.s
31834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31836 (eval $ac_try) 2>&5
31837 ac_status=$?
31838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31839 test $ac_status = 0; }; }
31840 then
31841 gcc_cv_as_dwarf_4_app_flag=yes
31842 else
31843 echo "configure: failed program was" >&5
31844 cat conftest.s >&5
31846 rm -f conftest.o conftest.s
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31850 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31851 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31852 dwarf4_success=yes
31857 if test $dwarf4_success = yes; then
31858 conftest_s="\
31859 .text
31860 .globl foo
31861 $function_type
31862 foo:
31863 $insn
31864 $function_size
31865 .file 1 \"foo.c\"
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31868 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31869 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31870 $as_echo_n "(cached) " >&6
31871 else
31872 gcc_cv_as_working_gdwarf_n_flag=no
31873 if test x$gcc_cv_as != x; then
31874 $as_echo "$conftest_s" > conftest.s
31875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31877 (eval $ac_try) 2>&5
31878 ac_status=$?
31879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31880 test $ac_status = 0; }; }
31881 then
31882 if test x$gcc_cv_objdump != x \
31883 && $gcc_cv_objdump -W conftest.o 2>&1 \
31884 | grep conftest.s > /dev/null 2>&1; then
31885 gcc_cv_as_working_gdwarf_n_flag=no
31886 else
31887 gcc_cv_as_working_gdwarf_n_flag=yes
31889 else
31890 echo "configure: failed program was" >&5
31891 cat conftest.s >&5
31893 rm -f conftest.o conftest.s
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31897 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31900 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31902 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31908 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31909 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31910 $as_echo_n "(cached) " >&6
31911 else
31912 gcc_cv_as_debug_prefix_map_flag=no
31913 if test x$gcc_cv_as != x; then
31914 $as_echo "$insn" > conftest.s
31915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31917 (eval $ac_try) 2>&5
31918 ac_status=$?
31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31920 test $ac_status = 0; }; }
31921 then
31922 gcc_cv_as_debug_prefix_map_flag=yes
31923 else
31924 echo "configure: failed program was" >&5
31925 cat conftest.s >&5
31927 rm -f conftest.o conftest.s
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31931 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31932 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31934 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
31941 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
31942 if ${gcc_cv_as_compress_debug+:} false; then :
31943 $as_echo_n "(cached) " >&6
31944 else
31945 gcc_cv_as_compress_debug=no
31946 if test x$gcc_cv_as != x; then
31947 $as_echo '' > conftest.s
31948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31950 (eval $ac_try) 2>&5
31951 ac_status=$?
31952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31953 test $ac_status = 0; }; }
31954 then
31955 # gas compiled without zlib cannot compress debug sections and warns
31956 # about it, but still exits successfully. So check for this, too.
31957 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
31958 then
31959 gcc_cv_as_compress_debug=0
31960 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
31961 then
31962 gcc_cv_as_compress_debug=1
31963 gcc_cv_as_compress_debug_option="--compress-debug-sections"
31964 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
31965 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
31966 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
31967 then
31968 gcc_cv_as_compress_debug=2
31970 else
31971 gcc_cv_as_compress_debug=0
31973 else
31974 echo "configure: failed program was" >&5
31975 cat conftest.s >&5
31977 rm -f conftest.o conftest.s
31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
31981 $as_echo "$gcc_cv_as_compress_debug" >&6; }
31985 cat >>confdefs.h <<_ACEOF
31986 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
31987 _ACEOF
31990 cat >>confdefs.h <<_ACEOF
31991 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
31992 _ACEOF
31995 cat >>confdefs.h <<_ACEOF
31996 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
31997 _ACEOF
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32001 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32002 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32003 $as_echo_n "(cached) " >&6
32004 else
32005 gcc_cv_as_lcomm_with_alignment=no
32006 if test x$gcc_cv_as != x; then
32007 $as_echo '.lcomm bar,4,16' > conftest.s
32008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32010 (eval $ac_try) 2>&5
32011 ac_status=$?
32012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32013 test $ac_status = 0; }; }
32014 then
32015 gcc_cv_as_lcomm_with_alignment=yes
32016 else
32017 echo "configure: failed program was" >&5
32018 cat conftest.s >&5
32020 rm -f conftest.o conftest.s
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32024 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32025 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32027 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32032 if test x$with_sysroot = x && test x$host = x$target \
32033 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32034 && test "$prefix" != "NONE"; then
32036 cat >>confdefs.h <<_ACEOF
32037 #define PREFIX_INCLUDE_DIR "$prefix/include"
32038 _ACEOF
32042 # Determine the version of glibc, if any, used on the target.
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32044 $as_echo_n "checking for target glibc version... " >&6; }
32046 # Check whether --with-glibc-version was given.
32047 if test "${with_glibc_version+set}" = set; then :
32048 withval=$with_glibc_version;
32049 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32050 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32051 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32052 else
32053 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32055 else
32057 glibc_version_major=0
32058 glibc_version_minor=0
32059 if test -f $target_header_dir/features.h \
32060 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32061 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32062 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32063 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32068 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32070 cat >>confdefs.h <<_ACEOF
32071 #define TARGET_GLIBC_MAJOR $glibc_version_major
32072 _ACEOF
32075 cat >>confdefs.h <<_ACEOF
32076 #define TARGET_GLIBC_MINOR $glibc_version_minor
32077 _ACEOF
32080 # Check whether --enable-gnu-unique-object was given.
32081 if test "${enable_gnu_unique_object+set}" = set; then :
32082 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32083 yes | no) ;;
32084 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32085 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32086 esac
32087 else
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32089 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32090 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32091 $as_echo_n "(cached) " >&6
32092 else
32093 gcc_cv_as_gnu_unique_object=no
32094 if test x$gcc_cv_as != x; then
32095 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32098 (eval $ac_try) 2>&5
32099 ac_status=$?
32100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32101 test $ac_status = 0; }; }
32102 then
32103 gcc_cv_as_gnu_unique_object=yes
32104 else
32105 echo "configure: failed program was" >&5
32106 cat conftest.s >&5
32108 rm -f conftest.o conftest.s
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32112 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32113 if test $gcc_cv_as_gnu_unique_object = yes; then
32114 # We need to unquote above to to use the definition from config.gcc.
32115 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32117 if test $glibc_version_major -gt 2 \
32118 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32119 enable_gnu_unique_object=yes
32126 if test x$enable_gnu_unique_object = xyes; then
32128 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32133 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32134 if ${gcc_cv_as_line_zero+:} false; then :
32135 $as_echo_n "(cached) " >&6
32136 else
32137 gcc_cv_as_line_zero=no
32138 if test "x$gcc_cv_as" != x; then
32139 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32140 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32142 (eval $ac_try) 2>&5
32143 ac_status=$?
32144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32145 test $ac_status = 0; }; } &&
32146 test "x`cat conftest.out`" = x
32147 then
32148 gcc_cv_as_line_zero=yes
32149 else
32150 echo "configure: failed program was" >&5
32151 cat conftest.s >&5
32152 echo "configure: error output was" >&5
32153 cat conftest.out >&5
32155 rm -f conftest.o conftest.s conftest.out
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32159 $as_echo "$gcc_cv_as_line_zero" >&6; }
32160 if test "x$gcc_cv_as_line_zero" = xyes; then
32162 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32167 $as_echo_n "checking support for thin archives... " >&6; }
32168 thin_archive_support=no
32169 echo 'int main (void) { return 0; }' > conftest.c
32170 if ($AR --version | sed 1q | grep "GNU ar" \
32171 && $CC $CFLAGS -c conftest.c \
32172 && $AR rcT conftest.a conftest.o \
32173 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32174 thin_archive_support=yes
32176 rm -f conftest.c conftest.o conftest.a conftest
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32178 $as_echo "$thin_archive_support" >&6; }
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32182 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32183 gcc_cv_ld_eh_frame_hdr=no
32184 if test $in_tree_ld = yes ; then
32185 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 \
32186 && test $in_tree_ld_is_elf = yes; then
32187 gcc_cv_ld_eh_frame_hdr=yes
32189 elif test x$gcc_cv_ld != x; then
32190 if echo "$ld_ver" | grep GNU > /dev/null; then
32191 # Check if linker supports --eh-frame-hdr option
32192 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32193 gcc_cv_ld_eh_frame_hdr=yes
32195 else
32196 case "$target" in
32197 *-*-solaris2*)
32198 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32199 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32200 gcc_cv_ld_eh_frame_hdr=yes
32203 esac
32207 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32209 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32213 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32216 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32217 gcc_cv_ld_eh_frame_ciev3=no
32218 if test $in_tree_ld = yes ; then
32219 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 \
32220 && test $in_tree_ld_is_elf = yes; then
32221 gcc_cv_ld_eh_frame_ciev3=yes
32223 elif test x$gcc_cv_ld != x; then
32224 if echo "$ld_ver" | grep GNU > /dev/null; then
32225 gcc_cv_ld_eh_frame_ciev3=yes
32226 if test 0"$ld_date" -lt 20040513; then
32227 if test -n "$ld_date"; then
32228 # If there was date string, but was earlier than 2004-05-13, fail
32229 gcc_cv_ld_eh_frame_ciev3=no
32230 elif test "$ld_vers_major" -lt 2; then
32231 gcc_cv_ld_eh_frame_ciev3=no
32232 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32233 gcc_cv_ld_eh_frame_ciev3=no
32236 else
32237 case "$target" in
32238 *-*-solaris2*)
32239 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32240 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32241 gcc_cv_ld_eh_frame_ciev3=yes
32244 esac
32248 cat >>confdefs.h <<_ACEOF
32249 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32250 _ACEOF
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32253 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32256 $as_echo_n "checking linker position independent executable support... " >&6; }
32257 gcc_cv_ld_pie=no
32258 if test $in_tree_ld = yes ; then
32259 case "$target" in
32260 # Full PIE support on Solaris was only introduced in gld 2.26.
32261 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32262 *) gcc_gld_pie_min_version=15 ;;
32263 esac
32264 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 \
32265 && test $in_tree_ld_is_elf = yes; then
32266 gcc_cv_ld_pie=yes
32268 elif test x$gcc_cv_ld != x; then
32269 # Check if linker supports -pie option
32270 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32271 gcc_cv_ld_pie=yes
32272 case "$target" in
32273 *-*-solaris2*)
32274 if echo "$ld_ver" | grep GNU > /dev/null \
32275 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32276 gcc_cv_ld_pie=no
32279 esac
32280 else
32281 case "$target" in
32282 *-*-solaris2.1[1-9]*)
32283 # Solaris 11.3 added PIE support.
32284 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32285 gcc_cv_ld_pie=yes
32288 esac
32291 if test x"$gcc_cv_ld_pie" = xyes; then
32293 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32297 $as_echo "$gcc_cv_ld_pie" >&6; }
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32300 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32301 gcc_cv_ld_pie_copyreloc=no
32302 if test $gcc_cv_ld_pie = yes ; then
32303 if test $in_tree_ld = yes ; then
32304 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
32305 gcc_cv_ld_pie_copyreloc=yes
32307 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32308 # Check if linker supports -pie option with copy reloc
32309 case "$target" in
32310 i?86-*-linux* | x86_64-*-linux*)
32311 cat > conftest1.s <<EOF
32312 .globl a_glob
32313 .data
32314 .type a_glob, @object
32315 .size a_glob, 4
32316 a_glob:
32317 .long 2
32319 cat > conftest2.s <<EOF
32320 .text
32321 .globl main
32322 .type main, @function
32323 main:
32324 movl %eax, a_glob(%rip)
32325 .size main, .-main
32326 .globl ptr
32327 .section .data.rel,"aw",@progbits
32328 .type ptr, @object
32329 ptr:
32330 .quad a_glob
32332 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32333 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32334 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32335 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32336 gcc_cv_ld_pie_copyreloc=yes
32338 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32340 esac
32344 cat >>confdefs.h <<_ACEOF
32345 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32346 _ACEOF
32348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32349 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32352 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32353 gcc_cv_ld_eh_gc_sections=no
32354 if test $in_tree_ld = yes ; then
32355 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 \
32356 && test $in_tree_ld_is_elf = yes; then
32357 gcc_cv_ld_eh_gc_sections=yes
32359 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32360 cat > conftest.s <<EOF
32361 .section .text
32362 .globl _start
32363 .type _start, @function
32364 _start:
32365 .long foo
32366 .size _start, .-_start
32367 .section .text.foo,"ax",@progbits
32368 .type foo, @function
32369 foo:
32370 .long 0
32371 .size foo, .-foo
32372 .section .gcc_except_table.foo,"a",@progbits
32373 .L0:
32374 .long 0
32375 .section .eh_frame,"a",@progbits
32376 .long .L0
32378 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32379 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32380 | grep "gc-sections option ignored" > /dev/null; then
32381 gcc_cv_ld_eh_gc_sections=no
32382 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32383 | grep gcc_except_table > /dev/null; then
32384 gcc_cv_ld_eh_gc_sections=yes
32385 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32386 if test x$gcc_cv_as_comdat_group != xyes; then
32387 gcc_cv_ld_eh_gc_sections=no
32388 cat > conftest.s <<EOF
32389 .section .text
32390 .globl _start
32391 .type _start, @function
32392 _start:
32393 .long foo
32394 .size _start, .-_start
32395 .section .gnu.linkonce.t.foo,"ax",@progbits
32396 .type foo, @function
32397 foo:
32398 .long 0
32399 .size foo, .-foo
32400 .section .gcc_except_table.foo,"a",@progbits
32401 .L0:
32402 .long 0
32403 .section .eh_frame,"a",@progbits
32404 .long .L0
32406 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32407 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32408 | grep "gc-sections option ignored" > /dev/null; then
32409 gcc_cv_ld_eh_gc_sections=no
32410 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32411 | grep gcc_except_table > /dev/null; then
32412 gcc_cv_ld_eh_gc_sections=yes
32418 rm -f conftest.s conftest.o conftest
32420 case "$target" in
32421 hppa*-*-linux*)
32422 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32423 gcc_cv_ld_eh_gc_sections=no
32425 esac
32426 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32428 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32432 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32435 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32436 gcc_cv_ld_eh_gc_sections_bug=no
32437 if test $in_tree_ld = yes ; then
32438 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 \
32439 && test $in_tree_ld_is_elf = yes; then
32440 gcc_cv_ld_eh_gc_sections_bug=yes
32442 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
32443 gcc_cv_ld_eh_gc_sections_bug=yes
32444 cat > conftest.s <<EOF
32445 .section .text
32446 .globl _start
32447 .type _start, @function
32448 _start:
32449 .long foo
32450 .size _start, .-_start
32451 .section .text.startup.foo,"ax",@progbits
32452 .type foo, @function
32453 foo:
32454 .long 0
32455 .size foo, .-foo
32456 .section .gcc_except_table.foo,"a",@progbits
32457 .L0:
32458 .long 0
32459 .section .eh_frame,"a",@progbits
32460 .long .L0
32462 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32463 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32464 | grep "gc-sections option ignored" > /dev/null; then
32466 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32467 | grep gcc_except_table > /dev/null; then
32468 gcc_cv_ld_eh_gc_sections_bug=no
32471 rm -f conftest.s conftest.o conftest
32473 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32475 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32479 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32482 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32483 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32484 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32485 gcc_cv_ld_compress_debug=1
32486 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32487 # Detect zstd debug section compression support
32488 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32489 gcc_cv_ld_compress_debug=2
32491 else
32492 case "${target}" in
32493 *-*-solaris2*)
32494 # Introduced in Solaris 11.2.
32495 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32496 gcc_cv_ld_compress_debug=1
32497 gcc_cv_ld_compress_debug_option="-z compress-sections"
32498 else
32499 gcc_cv_ld_compress_debug=0
32503 # Assume linkers other than GNU ld don't support compessed debug
32504 # sections.
32505 gcc_cv_ld_compress_debug=0
32507 esac
32510 cat >>confdefs.h <<_ACEOF
32511 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32512 _ACEOF
32515 cat >>confdefs.h <<_ACEOF
32516 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32517 _ACEOF
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32520 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32522 if test x"$ld64_flag" = x"yes"; then
32524 # Set defaults for possibly untestable items.
32525 gcc_cv_ld64_export_dynamic=0
32526 gcc_cv_ld64_platform_version=0
32527 gcc_cv_ld64_demangle=0
32529 if test "$build" = "$host"; then
32530 darwin_try_test=1
32531 else
32532 darwin_try_test=0
32535 # On Darwin, because of FAT library support, it is often possible to execute
32536 # exes from compatible archs even when the host differs from the build system.
32537 case "$build","$host" in
32538 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32539 darwin_try_test=1;;
32540 *) ;;
32541 esac
32543 # If the configurer specified a minimum ld64 version to be supported, then use
32544 # that to determine feature support.
32545 if test x"${gcc_cv_ld64_version}" != x; then
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32547 $as_echo_n "checking ld64 specified version... " >&6; }
32548 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32550 $as_echo "$gcc_cv_ld64_major" >&6; }
32551 if test "$gcc_cv_ld64_major" -ge 97; then
32552 gcc_cv_ld64_demangle=1
32554 if test "$gcc_cv_ld64_major" -ge 236; then
32555 gcc_cv_ld64_export_dynamic=1
32557 if test "$gcc_cv_ld64_major" -ge 512; then
32558 gcc_cv_ld64_platform_version=1
32560 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32561 # If the version was not specified, try to find it.
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32563 $as_echo_n "checking linker version... " >&6; }
32564 if test x"${gcc_cv_ld64_version}" = x; then
32565 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32566 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32569 $as_echo "$gcc_cv_ld64_version" >&6; }
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32572 $as_echo_n "checking linker for -demangle support... " >&6; }
32573 gcc_cv_ld64_demangle=1
32574 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32575 gcc_cv_ld64_demangle=0
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32578 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32581 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32582 gcc_cv_ld64_export_dynamic=1
32583 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32584 gcc_cv_ld64_export_dynamic=0
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32587 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32590 $as_echo_n "checking linker for -platform_version support... " >&6; }
32591 gcc_cv_ld64_platform_version=1
32592 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32593 gcc_cv_ld64_platform_version=0
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32596 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32599 if test x"${gcc_cv_ld64_version}" != x; then
32601 cat >>confdefs.h <<_ACEOF
32602 #define LD64_VERSION "${gcc_cv_ld64_version}"
32603 _ACEOF
32608 cat >>confdefs.h <<_ACEOF
32609 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32610 _ACEOF
32614 cat >>confdefs.h <<_ACEOF
32615 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32616 _ACEOF
32620 cat >>confdefs.h <<_ACEOF
32621 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32622 _ACEOF
32626 if test x"$dsymutil_flag" = x"yes"; then
32628 # If the user specified a dsymutil path, then we will already have the
32629 # version string, otherwise, pick it up.
32630 if test x"$gcc_cv_dsymutil" = x; then
32631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32632 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32633 dsymutil_vers="tool unspecified"
32634 elif test x"$dsymutil_vers" = x; then
32635 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32638 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32640 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32641 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32642 dsymutil_kind=DWARFUTILS
32643 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32644 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32645 dsymutil_kind=CLANG
32646 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32647 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32648 dsymutil_kind=LLVM
32649 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32650 else
32651 dsymutil_kind=DET_UNKNOWN
32652 dsymutil_vers="0.0"
32654 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32655 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32656 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32657 if test x"${dsymutil_minor}" = x; then
32658 dsymutil_minor=0
32660 if test x"${dsymutil_tiny}" = x; then
32661 dsymutil_tiny=0
32664 cat >>confdefs.h <<_ACEOF
32665 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32666 _ACEOF
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32669 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32672 case $target_os in
32673 win32 | pe | cygwin* | mingw32*)
32674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32675 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32676 gcc_cv_ld_broken_pe_dwarf5=yes
32677 if test $in_tree_ld = yes ; then
32678 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32679 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32680 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32681 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32682 gcc_cv_ld_broken_pe_dwarf5=no
32684 else
32685 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32686 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32687 gcc_cv_ld_broken_pe_dwarf5=no
32690 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32692 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32696 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32699 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32700 gcc_cv_ld_disable_dynamicbase=no
32701 if test $in_tree_ld = yes; then
32702 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 \
32703 gcc_cv_ld_disable_dynamicbase=yes
32705 else
32706 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32707 gcc_cv_ld_disable_dynamicbase=yes
32710 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32712 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32716 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32718 esac
32720 # --------
32721 # UNSORTED
32722 # --------
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32725 $as_echo_n "checking linker --as-needed support... " >&6; }
32726 if ${gcc_cv_ld_as_needed+:} false; then :
32727 $as_echo_n "(cached) " >&6
32728 else
32729 gcc_cv_ld_as_needed=no
32730 gcc_cv_ld_as_needed_option='--as-needed'
32731 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32732 if test $in_tree_ld = yes ; then
32733 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 \
32734 && test $in_tree_ld_is_elf = yes; then
32735 gcc_cv_ld_as_needed=yes
32736 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32737 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32738 gcc_cv_ld_no_as_needed_option='--pop-state'
32741 elif test x$gcc_cv_ld != x; then
32742 # Check if linker supports --as-needed and --no-as-needed options
32743 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32744 gcc_cv_ld_as_needed=yes
32745 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32746 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32747 && echo "$ld_ver" | grep GNU > /dev/null \
32748 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32749 # Use these options only when both ld.bfd and ld.gold support
32750 # --push-state/--pop-state, which unfortunately wasn't added
32751 # at the same time.
32752 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32753 gcc_cv_ld_no_as_needed_option='--pop-state'
32756 case "$target:$gnu_ld" in
32757 *-*-solaris2*:no)
32758 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32759 # forms.
32760 gcc_cv_ld_as_needed=yes
32761 gcc_cv_ld_as_needed_option="-z ignore"
32762 gcc_cv_ld_no_as_needed_option="-z record"
32764 esac
32766 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32767 # dl_iterate_phdr, i.e. since Solaris 11.
32768 case "$target" in
32769 *-*-solaris2.1[1-9]*)
32770 case "$target" in
32771 i?86-*-* | x86_64-*-*)
32772 if echo "$ld_ver" | grep GNU > /dev/null; then
32773 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32774 gcc_cv_ld_as_needed=no
32777 esac
32779 *-*-solaris2*)
32780 gcc_cv_ld_as_needed=no
32782 esac
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32786 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32787 if test x"$gcc_cv_ld_as_needed" = xyes; then
32789 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32792 cat >>confdefs.h <<_ACEOF
32793 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32794 _ACEOF
32797 cat >>confdefs.h <<_ACEOF
32798 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32799 _ACEOF
32803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32804 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32805 saved_LDFLAGS="$LDFLAGS"
32806 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32807 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32809 /* end confdefs.h. */
32810 int main(void) {return 0;}
32811 _ACEOF
32812 if ac_fn_cxx_try_link "$LINENO"; then :
32813 gcc_cv_ld_clearcap=yes; break
32814 else
32815 gcc_cv_ld_clearcap=no
32817 rm -f core conftest.err conftest.$ac_objext \
32818 conftest$ac_exeext conftest.$ac_ext
32819 done
32820 LDFLAGS="$saved_LDFLAGS"
32821 if test "x$gcc_cv_ld_clearcap" = xyes; then
32823 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32825 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32829 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32831 case "$target" in
32832 powerpc*-*-*)
32833 case "$target" in
32834 *le-*-linux*)
32835 emul_name="-melf32lppc"
32838 emul_name="-melf32ppc"
32840 esac
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32842 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32843 if ${gcc_cv_ld_ppc_attr+:} false; then :
32844 $as_echo_n "(cached) " >&6
32845 else
32846 gcc_cv_ld_ppc_attr=no
32847 if test x"$ld_is_gold" = xyes; then
32848 gcc_cv_ld_ppc_attr=yes
32849 elif test $in_tree_ld = yes ; then
32850 if test "$gcc_cv_gld_major_version" -eq 2 \
32851 -a "$gcc_cv_gld_minor_version" -ge 28 \
32852 -o "$gcc_cv_gld_major_version" -gt 2; then
32853 gcc_cv_ld_ppc_attr=yes
32855 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32856 # check that merging the long double .gnu_attribute doesn't warn
32857 cat > conftest1.s <<EOF
32858 .gnu_attribute 4,1
32860 cat > conftest2.s <<EOF
32861 .gnu_attribute 4,9
32863 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32864 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32865 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32866 && test ! -s conftest.err; then
32867 gcc_cv_ld_ppc_attr=yes
32869 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32874 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32875 if test x$gcc_cv_ld_ppc_attr = xyes; then
32877 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32881 esac
32883 case "$target:$tm_file" in
32884 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32885 case "$target" in
32886 *le-*-linux*)
32887 emul_name="-melf64lppc"
32889 *-*-linux*)
32890 emul_name="-melf64ppc"
32892 *le-*-freebsd*)
32893 emul_name="-melf64lppc_fbsd"
32895 *-*-freebsd*)
32896 emul_name="-melf64ppc_fbsd"
32898 esac
32899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32900 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32901 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32902 $as_echo_n "(cached) " >&6
32903 else
32904 gcc_cv_ld_no_dot_syms=no
32905 if test x"$ld_is_gold" = xyes; then
32906 gcc_cv_ld_no_dot_syms=yes
32907 elif test $in_tree_ld = yes ; then
32908 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
32909 gcc_cv_ld_no_dot_syms=yes
32911 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32912 cat > conftest1.s <<EOF
32913 .text
32914 bl .foo
32916 cat > conftest2.s <<EOF
32917 .section ".opd","aw"
32918 .align 3
32919 .globl foo
32920 .type foo,@function
32921 foo:
32922 .quad .LEfoo,.TOC.@tocbase,0
32923 .text
32924 .LEfoo:
32926 .size foo,.-.LEfoo
32928 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32929 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32930 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32931 gcc_cv_ld_no_dot_syms=yes
32933 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32938 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
32939 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
32941 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
32946 $as_echo_n "checking linker large toc support... " >&6; }
32947 if ${gcc_cv_ld_large_toc+:} false; then :
32948 $as_echo_n "(cached) " >&6
32949 else
32950 gcc_cv_ld_large_toc=no
32951 if test x"$ld_is_gold" = xyes; then
32952 gcc_cv_ld_large_toc=yes
32953 elif test $in_tree_ld = yes ; then
32954 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
32955 gcc_cv_ld_large_toc=yes
32957 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32958 cat > conftest.s <<EOF
32959 .section ".tbss","awT",@nobits
32960 .align 3
32961 ie0: .space 8
32962 .global _start
32963 .text
32964 _start:
32965 addis 9,13,ie0@got@tprel@ha
32966 ld 9,ie0@got@tprel@l(9)
32968 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
32969 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
32970 gcc_cv_ld_large_toc=yes
32972 rm -f conftest conftest.o conftest.s
32976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
32977 $as_echo "$gcc_cv_ld_large_toc" >&6; }
32978 if test x"$gcc_cv_ld_large_toc" = xyes; then
32980 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
32984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
32985 $as_echo_n "checking linker toc pointer alignment... " >&6; }
32986 if ${gcc_cv_ld_toc_align+:} false; then :
32987 $as_echo_n "(cached) " >&6
32988 else
32989 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
32990 cat > conftest.s <<EOF
32991 .global _start
32992 .text
32993 _start:
32994 addis 9,2,x@got@ha
32995 .section .data.rel.ro,"aw",@progbits
32996 .p2align 16
32997 .space 32768
32998 x: .quad .TOC.
33000 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33001 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33002 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)) }'`
33004 rm -f conftest conftest.o conftest.s
33008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33009 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33010 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33012 cat >>confdefs.h <<_ACEOF
33013 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33014 _ACEOF
33018 esac
33020 case "$target" in
33021 *-*-aix*)
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33023 $as_echo_n "checking linker large toc support... " >&6; }
33024 if ${gcc_cv_ld_large_toc+:} false; then :
33025 $as_echo_n "(cached) " >&6
33026 else
33027 gcc_cv_ld_large_toc=no
33028 if test x$gcc_cv_as != x ; then
33029 cat > conftest.s <<EOF
33030 .toc
33031 LC..1:
33032 .tc a[TC],a[RW]
33033 .extern a[RW]
33034 .csect .text[PR]
33035 .largetoctest:
33036 addis 9,LC..1@u(2)
33037 ld 3,LC..1@l(9)
33039 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33040 gcc_cv_ld_large_toc=yes
33042 rm -f conftest conftest.o conftest.s
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33047 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33048 if test x"$gcc_cv_ld_large_toc" = xyes; then
33050 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33054 esac
33056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33057 $as_echo_n "checking linker --build-id support... " >&6; }
33058 if ${gcc_cv_ld_buildid+:} false; then :
33059 $as_echo_n "(cached) " >&6
33060 else
33061 gcc_cv_ld_buildid=no
33062 if test $in_tree_ld = yes ; then
33063 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33064 "$gcc_cv_gld_minor_version" -ge 18 -o \
33065 "$gcc_cv_gld_major_version" -gt 2 \
33066 && test $in_tree_ld_is_elf = yes; then
33067 gcc_cv_ld_buildid=yes
33069 elif test x$gcc_cv_ld != x; then
33070 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33071 gcc_cv_ld_buildid=yes
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33076 $as_echo "$gcc_cv_ld_buildid" >&6; }
33077 if test x"$gcc_cv_ld_buildid" = xyes; then
33079 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33083 # Check whether --enable-linker-build-id was given.
33084 if test "${enable_linker_build_id+set}" = set; then :
33085 enableval=$enable_linker_build_id;
33086 else
33087 enable_linker_build_id=no
33091 if test x"$enable_linker_build_id" = xyes; then
33092 if test x"$gcc_cv_ld_buildid" = xyes; then
33094 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33096 else
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33098 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33102 # In binutils 2.21, GNU ld gained support for new emulations fully
33103 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33105 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33106 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33107 $as_echo_n "(cached) " >&6
33108 else
33109 gcc_cv_ld_sol2_emulation=no
33110 if test $in_tree_ld = yes ; then
33111 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33112 "$gcc_cv_gld_minor_version" -ge 21 -o \
33113 "$gcc_cv_gld_major_version" -gt 2 \
33114 && test $in_tree_ld_is_elf = yes; then
33115 gcc_cv_ld_sol2_emulation=yes
33117 elif test x$gcc_cv_ld != x; then
33118 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33119 grep _sol2 > /dev/null; then
33120 gcc_cv_ld_sol2_emulation=yes
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33125 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33126 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33128 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33133 $as_echo_n "checking linker --sysroot support... " >&6; }
33134 if ${gcc_cv_ld_sysroot+:} false; then :
33135 $as_echo_n "(cached) " >&6
33136 else
33137 gcc_cv_ld_sysroot=no
33138 if test $in_tree_ld = yes ; then
33139 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
33140 gcc_cv_ld_sysroot=yes
33142 elif test x$gcc_cv_ld != x; then
33143 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33144 gcc_cv_ld_sysroot=yes
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33149 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33150 if test x"$gcc_cv_ld_sysroot" = xyes; then
33152 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33156 case $target in
33157 *-*-solaris2*)
33158 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33160 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33161 if ${gcc_cv_solaris_crts+:} false; then :
33162 $as_echo_n "(cached) " >&6
33163 else
33164 gcc_cv_solaris_crts=no
33165 if test x$host != x$target; then
33166 if test "x$with_sysroot" = xyes; then
33167 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33168 else
33169 target_sysroot="${with_sysroot}"
33172 target_libdir="$target_sysroot/usr/lib"
33173 # At the time they were added, gcrt1.o became a symlink for backwards
33174 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33175 case $target in
33176 i?86-*-solaris2* | x86_64-*-solaris2*)
33177 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33179 sparc*-*-solaris2*)
33180 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33182 esac
33184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33185 $as_echo "$gcc_cv_solaris_crts" >&6; }
33187 esac
33188 if test x$gcc_cv_solaris_crts = xyes; then
33190 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33194 # Check whether --enable-libssp was given.
33195 if test "${enable_libssp+set}" = set; then :
33196 enableval=$enable_libssp; case "${enableval}" in
33197 yes|no)
33200 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33202 esac
33206 # Test for stack protector support in target C library.
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33208 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33209 if ${gcc_cv_libc_provides_ssp+:} false; then :
33210 $as_echo_n "(cached) " >&6
33211 else
33212 gcc_cv_libc_provides_ssp=no
33213 if test "x$enable_libssp" = "xno"; then
33214 gcc_cv_libc_provides_ssp=yes
33215 elif test "x$enable_libssp" = "xyes"; then
33216 gcc_cv_libc_provides_ssp=no
33217 else
33218 case "$target" in
33219 *-*-musl*)
33220 # All versions of musl provide stack protector
33221 gcc_cv_libc_provides_ssp=yes;;
33222 *-*-linux* | *-*-kfreebsd*-gnu)
33223 # glibc 2.4 and later provides __stack_chk_fail and
33224 # either __stack_chk_guard, or TLS access to stack guard canary.
33226 if test $glibc_version_major -gt 2 \
33227 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33228 gcc_cv_libc_provides_ssp=yes
33229 else
33231 if test -f $target_header_dir/features.h \
33232 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33233 $target_header_dir/features.h > /dev/null; then
33234 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33235 $target_header_dir/features.h > /dev/null && \
33236 test -f $target_header_dir/bits/uClibc_config.h && \
33237 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33238 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33239 gcc_cv_libc_provides_ssp=yes
33241 # all versions of Bionic support stack protector
33242 elif test -f $target_header_dir/sys/cdefs.h \
33243 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33244 $target_header_dir/sys/cdefs.h > /dev/null; then
33245 gcc_cv_libc_provides_ssp=yes
33249 *-*-gnu*)
33250 # Avoid complicated tests (see
33251 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33252 # simply assert that glibc does provide this, which is true for all
33253 # realistically usable GNU/Hurd configurations.
33254 # All supported versions of musl provide it as well
33255 gcc_cv_libc_provides_ssp=yes;;
33256 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33257 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33258 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33259 gcc_cv_libc_provides_ssp=yes
33260 else
33261 echo "no __stack_chk_fail on this target"
33265 *) gcc_cv_libc_provides_ssp=no ;;
33266 esac
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33270 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33272 if test x$gcc_cv_libc_provides_ssp = xyes; then
33274 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33278 # Check whether --enable-default-ssp was given.
33279 # Check whether --enable-default-ssp was given.
33280 if test "${enable_default_ssp+set}" = set; then :
33281 enableval=$enable_default_ssp;
33282 if test x$gcc_cv_libc_provides_ssp = xyes; then
33283 case "$target" in
33284 ia64*-*-*) enable_default_ssp=no ;;
33285 *) enable_default_ssp=$enableval ;;
33286 esac
33287 else
33288 enable_default_ssp=no
33290 else
33291 enable_default_ssp=no
33294 if test x$enable_default_ssp = xyes ; then
33296 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33301 # Test for <sys/sdt.h> on the target.
33303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33304 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33305 if ${gcc_cv_sys_sdt_h+:} false; then :
33306 $as_echo_n "(cached) " >&6
33307 else
33309 gcc_cv_sys_sdt_h=no
33310 if test -f $target_header_dir/sys/sdt.h; then
33311 gcc_cv_sys_sdt_h=yes
33315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33316 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33317 if test x$gcc_cv_sys_sdt_h = xyes; then :
33320 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33325 # Check if TFmode long double should be used by default or not.
33326 # Some glibc targets used DFmode long double, but with glibc 2.4
33327 # and later they can use TFmode.
33328 case "$target" in
33329 powerpc*-*-linux* | \
33330 sparc*-*-linux* | \
33331 s390*-*-linux* | \
33332 alpha*-*-linux*)
33334 # Check whether --with-long-double-128 was given.
33335 if test "${with_long_double_128+set}" = set; then :
33336 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33337 else
33339 case "$target" in
33340 s390*-*-linux-musl*)
33341 gcc_cv_target_ldbl128=yes
33343 powerpc*-*-linux-musl*)
33344 gcc_cv_target_ldbl128=no
33348 if test $glibc_version_major -gt 2 \
33349 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33350 gcc_cv_target_ldbl128=yes
33351 else
33353 gcc_cv_target_ldbl128=no
33354 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33355 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33356 && gcc_cv_target_ldbl128=yes
33361 esac
33366 esac
33367 if test x$gcc_cv_target_ldbl128 = xyes; then
33369 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33373 # Check if TFmode long double target should use the IBM extended double or IEEE
33374 # 128-bit floating point formats if long doubles are 128-bits long. The long
33375 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33376 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33377 # libgcc.
33379 # Check whether --with-long-double-format was given.
33380 if test "${with_long_double_format+set}" = set; then :
33381 withval=$with_long_double_format;
33382 case "$target:$with_long_double_format" in
33383 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33386 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33387 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33388 case "$with_cpu" in
33389 power7 | power8 | power9 | power1*)
33393 as_fn_error $? "Configuration option --with-long-double-format is only \
33394 supported if the default cpu is power7 or newer" "$LINENO" 5
33395 with_long_double_format=""
33397 esac
33399 powerpc64*-*-linux*:*)
33400 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33401 with_long_double_format=""
33404 as_fn_error $? "Configure option --with-long-double-format is only supported \
33405 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33406 with_long_double_format=""
33408 esac
33412 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33413 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33414 gcc_cv_libc_provides_hwcap_in_tcb=no
33415 case "$target" in
33416 powerpc*-*-linux*)
33418 if test $glibc_version_major -gt 2 \
33419 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33420 gcc_cv_libc_provides_hwcap_in_tcb=yes
33423 esac
33424 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33426 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33430 # Check if the target LIBC handles PT_GNU_STACK.
33431 gcc_cv_libc_gnustack=unknown
33432 case "$target" in
33433 mips*-*-linux-musl*)
33434 gcc_cv_libc_gnustack=yes
33436 mips*-*-linux*)
33438 if test $glibc_version_major -gt 2 \
33439 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33440 gcc_cv_libc_gnustack=yes
33443 esac
33444 if test x$gcc_cv_libc_gnustack = xyes; then
33446 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33451 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33452 gcc_cv_target_dl_iterate_phdr=unknown
33453 case "$target" in
33454 *-*-solaris2*)
33455 # <link.h> needs both a dl_iterate_phdr declaration and support for
33456 # compilation with largefile support.
33457 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
33458 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
33459 gcc_cv_target_dl_iterate_phdr=yes
33460 else
33461 gcc_cv_target_dl_iterate_phdr=no
33464 *-*-dragonfly* | *-*-freebsd*)
33465 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33466 gcc_cv_target_dl_iterate_phdr=yes
33467 else
33468 gcc_cv_target_dl_iterate_phdr=no
33471 *-linux-musl*)
33472 gcc_cv_target_dl_iterate_phdr=yes
33474 esac
33476 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33478 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33482 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33484 # We no longer support different GC mechanisms. Emit an error if
33485 # the user configures with --with-gc.
33487 # Check whether --with-gc was given.
33488 if test "${with_gc+set}" = set; then :
33489 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33493 # Libraries to use on the host. This will normally be set by the top
33494 # level Makefile. Here we simply capture the value for our Makefile.
33495 if test -z "${HOST_LIBS+set}"; then
33496 HOST_LIBS=
33500 # Use the system's zlib library.
33502 # Use the system's zlib library.
33503 zlibdir="-L\$(top_builddir)/../zlib"
33504 zlibinc="-I\$(top_srcdir)/../zlib"
33506 # Check whether --with-system-zlib was given.
33507 if test "${with_system_zlib+set}" = set; then :
33508 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33509 zlibdir=
33510 zlibinc=
33520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33521 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33522 # Check whether --enable-maintainer-mode was given.
33523 if test "${enable_maintainer_mode+set}" = set; then :
33524 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33525 else
33526 maintainer_mode=no
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33531 $as_echo "$maintainer_mode" >&6; }
33533 if test "$maintainer_mode" = "yes"; then
33534 MAINT=''
33535 else
33536 MAINT='#'
33539 if test -z "$CTAGS"; then
33540 CTAGS=ctags
33543 if test -z "$ETAGS"; then
33544 ETAGS=etags
33547 if test -z "$CSCOPE"; then
33548 CSCOPE=cscope
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33554 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33555 # Check whether --enable-link-mutex was given.
33556 if test "${enable_link_mutex+set}" = set; then :
33557 enableval=$enable_link_mutex; do_link_mutex=$enableval
33558 else
33559 do_link_mutex=no
33562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33563 $as_echo "$do_link_mutex" >&6; }
33565 if test "$do_link_mutex" = "yes"; then
33566 DO_LINK_MUTEX=true
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&5
33568 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33569 else
33570 DO_LINK_MUTEX=false
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33576 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33577 # Check whether --enable-link-serialization was given.
33578 if test "${enable_link_serialization+set}" = set; then :
33579 enableval=$enable_link_serialization; do_link_serialization=$enableval
33580 else
33581 do_link_serialization=no
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33585 $as_echo "$do_link_serialization" >&6; }
33587 case "$do_link_serialization" in
33588 yes)
33589 DO_LINK_SERIALIZATION=1;;
33590 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33591 DO_LINK_SERIALIZATION=$do_link_serialization;;
33593 DO_LINK_SERIALIZATION=;;
33595 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33596 esac
33599 # --------------
33600 # Language hooks
33601 # --------------
33603 # Make empty files to contain the specs and options for each language.
33604 # Then add #include lines to for a compiler that has specs and/or options.
33606 subdirs=
33607 lang_opt_files=
33608 lang_specs_files=
33609 lang_tree_files=
33610 # These (without "all_") are set in each config-lang.in.
33611 # `language' must be a single word so is spelled singularly.
33612 all_languages=
33613 all_compilers=
33614 all_outputs='Makefile'
33615 # List of language configure and makefile fragments.
33616 all_lang_configurefrags=
33617 all_lang_makefrags=
33618 # Additional files for gengtype
33619 all_gtfiles="$target_gtfiles"
33621 # These are the languages that are set in --enable-languages,
33622 # and are available in the GCC tree.
33623 all_selected_languages=
33625 # Add the language fragments.
33626 # Languages are added via two mechanisms. Some information must be
33627 # recorded in makefile variables, these are defined in config-lang.in.
33628 # We accumulate them and plug them into the main Makefile.
33629 # The other mechanism is a set of hooks for each of the main targets
33630 # like `clean', `install', etc.
33632 language_hooks="Make-hooks"
33634 for lang in ${srcdir}/*/config-lang.in
33636 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33638 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33639 if test "x$lang_alias" = x
33640 then
33641 echo "$lang doesn't set \$language." 1>&2
33642 exit 1
33644 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33645 subdirs="$subdirs $subdir"
33647 # $gcc_subdir is where the gcc integration files are to be found
33648 # for a language, both for internal compiler purposes (compiler
33649 # sources implementing front-end to GCC tree converters), and for
33650 # build infrastructure purposes (Make-lang.in, etc.)
33652 # This will be <subdir> (relative to $srcdir) if a line like
33653 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33654 # is found in <langdir>/config-lang.in, and will remain <langdir>
33655 # otherwise.
33657 # Except for the language alias (fetched above), the regular
33658 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33659 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33660 # only this and the language alias.
33662 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33663 if [ "$gcc_subdir" = "" ]; then
33664 gcc_subdir="$subdir"
33667 case ",$enable_languages," in
33668 *,$lang_alias,*)
33669 all_selected_languages="$all_selected_languages $lang_alias"
33670 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33671 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33674 esac
33676 language=
33677 boot_language=
33678 compilers=
33679 outputs=
33680 gtfiles=
33681 subdir_requires=
33682 . ${srcdir}/$gcc_subdir/config-lang.in
33683 if test "x$language" = x
33684 then
33685 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33686 exit 1
33689 ok=:
33690 case ",$enable_languages," in
33691 *,$lang_alias,*) ;;
33693 for i in $subdir_requires; do
33694 test -f "${srcdir}/$i/config-lang.in" && continue
33695 ok=false
33696 break
33697 done
33699 esac
33700 $ok || continue
33702 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33703 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33704 # Put c/Make-lang.in fragment first to match serialization languages order.
33705 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33706 else
33707 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33709 if test -f $srcdir/$gcc_subdir/lang.opt; then
33710 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33711 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33713 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33714 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33716 all_languages="$all_languages $language"
33717 all_compilers="$all_compilers $compilers"
33718 all_outputs="$all_outputs $outputs"
33719 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33720 case ",$enable_languages," in
33721 *,lto,*)
33723 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33725 enable_lto=yes
33728 *) ;;
33729 esac
33730 done
33732 check_languages=
33733 for language in $all_selected_languages
33735 check_languages="$check_languages check-$language"
33736 done
33738 selftest_languages=
33739 for language in $all_selected_languages
33741 selftest_languages="$selftest_languages selftest-$language"
33742 done
33744 # We link each language in with a set of hooks, reached indirectly via
33745 # lang.${target}. Only do so for selected languages.
33747 rm -f Make-hooks
33748 touch Make-hooks
33749 target_list="all.cross start.encap rest.encap tags \
33750 install-common install-man install-info install-dvi install-pdf \
33751 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33752 mostlyclean clean distclean maintainer-clean install-plugin"
33754 for t in $target_list
33757 for lang in $all_selected_languages
33759 x="$x $lang.$t"
33760 done
33761 echo "lang.$t: $x" >> Make-hooks
33762 done
33764 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33765 echo "SERIAL_LIST =" >> Make-hooks
33766 echo else >> Make-hooks
33767 lang_cnt=0
33768 lang_list=
33769 prev=c
33770 serialization_languages=c
33771 for lang in $all_selected_languages
33773 test $lang = c && continue
33774 if test $lang = lto; then
33775 serialization_languages="$serialization_languages lto1 lto2"
33776 else
33777 serialization_languages="$serialization_languages $lang"
33779 done
33780 for lang in $serialization_languages
33782 test $lang = c && continue
33783 lang_cnt=`expr $lang_cnt + 1`
33784 lang_list=" $prev$lang_list"
33785 prev=${lang}
33786 done
33787 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33788 echo endif >> Make-hooks
33789 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33790 echo "INDEX.c = 0" >> Make-hooks
33791 lang_idx=1
33792 for lang in $serialization_languages
33794 test $lang = c && continue
33795 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33796 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33797 lang_cnt=`expr $lang_cnt - 1`
33798 lang_idx=`expr $lang_idx + 1`
33799 done
33801 # --------
33802 # Option include files
33803 # --------
33805 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33806 option_includes="option-includes.mk"
33809 # --------
33810 # UNSORTED
33811 # --------
33813 # Create .gdbinit.
33815 echo "dir ." > .gdbinit
33816 echo "dir ${srcdir}" >> .gdbinit
33817 if test x$gdb_needs_out_file_path = xyes
33818 then
33819 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33821 if test "x$subdirs" != x; then
33822 for s in $subdirs
33824 echo "dir ${srcdir}/$s" >> .gdbinit
33825 done
33827 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33828 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33830 # Put a breakpoint on __asan_report_error to help with debugging buffer
33831 # overflow.
33832 case "$CFLAGS" in
33833 *-fsanitize=address*)
33834 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33836 esac
33838 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33842 # Find a directory in which to install a shared libgcc.
33844 # Check whether --enable-version-specific-runtime-libs was given.
33845 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33846 enableval=$enable_version_specific_runtime_libs;
33850 # Substitute configuration variables
33923 # Echo link setup.
33924 if test x${build} = x${host} ; then
33925 if test x${host} = x${target} ; then
33926 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33927 else
33928 echo "Links are now set up to build a cross-compiler" 1>&2
33929 echo " from ${host} to ${target}." 1>&2
33931 else
33932 if test x${host} = x${target} ; then
33933 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33934 echo " for ${target}." 1>&2
33935 else
33936 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33937 echo " from ${host} to ${target}." 1>&2
33946 if test "x${ISLLIBS}" != "x" ; then
33948 $as_echo "#define HAVE_isl 1" >>confdefs.h
33952 # Check for plugin support
33953 # Check whether --enable-plugin was given.
33954 if test "${enable_plugin+set}" = set; then :
33955 enableval=$enable_plugin; enable_plugin=$enableval
33956 else
33957 enable_plugin=yes; default_plugin=yes
33961 pluginlibs=
33962 plugin_check=yes
33964 case "${host}" in
33965 *-*-mingw*)
33966 # Since plugin support under MinGW is not as straightforward as on
33967 # other platforms (e.g., we have to link import library, etc), we
33968 # only enable it if explicitly requested.
33969 if test x"$default_plugin" = x"yes"; then
33970 enable_plugin=no
33971 elif test x"$enable_plugin" = x"yes"; then
33972 # Use make's target variable to derive import library name.
33973 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
33974 plugin_check=no
33977 *-*-darwin*)
33978 if test x$build = x$host; then
33979 export_sym_check="nm${exeext} -g"
33980 elif test x$host = x$target; then
33981 export_sym_check="$gcc_cv_nm -g"
33982 else
33983 export_sym_check=
33987 if test x$build = x$host; then
33988 export_sym_check="$ac_cv_prog_OBJDUMP -T"
33989 elif test x$host = x$target; then
33990 export_sym_check="$gcc_cv_objdump -T"
33991 else
33992 export_sym_check="$ac_cv_prog_OBJDUMP -T"
33995 esac
33997 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
33999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34000 $as_echo_n "checking for exported symbols... " >&6; }
34001 if test "x$export_sym_check" != x; then
34002 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34003 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34004 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34005 : # No need to use a flag
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34007 $as_echo "yes" >&6; }
34008 else
34009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34010 $as_echo "yes" >&6; }
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34012 $as_echo_n "checking for -rdynamic... " >&6; }
34013 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34014 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34015 plugin_rdynamic=yes
34016 pluginlibs="-rdynamic"
34017 else
34018 plugin_rdynamic=no
34019 enable_plugin=no
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34022 $as_echo "$plugin_rdynamic" >&6; }
34024 else
34025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34026 $as_echo "unable to check" >&6; }
34029 # Check -ldl
34030 saved_LIBS="$LIBS"
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34032 $as_echo_n "checking for library containing dlopen... " >&6; }
34033 if ${ac_cv_search_dlopen+:} false; then :
34034 $as_echo_n "(cached) " >&6
34035 else
34036 ac_func_search_save_LIBS=$LIBS
34037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34038 /* end confdefs.h. */
34040 /* Override any GCC internal prototype to avoid an error.
34041 Use char because int might match the return type of a GCC
34042 builtin and then its argument prototype would still apply. */
34043 #ifdef __cplusplus
34044 extern "C"
34045 #endif
34046 char dlopen ();
34048 main ()
34050 return dlopen ();
34052 return 0;
34054 _ACEOF
34055 for ac_lib in '' dl; do
34056 if test -z "$ac_lib"; then
34057 ac_res="none required"
34058 else
34059 ac_res=-l$ac_lib
34060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34062 if ac_fn_cxx_try_link "$LINENO"; then :
34063 ac_cv_search_dlopen=$ac_res
34065 rm -f core conftest.err conftest.$ac_objext \
34066 conftest$ac_exeext
34067 if ${ac_cv_search_dlopen+:} false; then :
34068 break
34070 done
34071 if ${ac_cv_search_dlopen+:} false; then :
34073 else
34074 ac_cv_search_dlopen=no
34076 rm conftest.$ac_ext
34077 LIBS=$ac_func_search_save_LIBS
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34080 $as_echo "$ac_cv_search_dlopen" >&6; }
34081 ac_res=$ac_cv_search_dlopen
34082 if test "$ac_res" != no; then :
34083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34087 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34088 pluginlibs="$pluginlibs -ldl"
34090 LIBS="$saved_LIBS"
34092 # Check that we can build shared objects with -fPIC -shared
34093 saved_LDFLAGS="$LDFLAGS"
34094 saved_CFLAGS="$CFLAGS"
34095 saved_CXXFLAGS="$CXXFLAGS"
34096 case "${host}" in
34097 *-*-darwin*)
34098 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34099 CFLAGS="$CFLAGS -fPIC"
34100 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34101 CXXFLAGS="$CXXFLAGS -fPIC"
34102 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34105 CFLAGS="$CFLAGS -fPIC"
34106 CXXFLAGS="$CXXFLAGS -fPIC"
34107 LDFLAGS="$LDFLAGS -fPIC -shared"
34109 esac
34110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34111 $as_echo_n "checking for -fPIC -shared... " >&6; }
34112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34113 /* end confdefs.h. */
34114 extern int X;
34116 main ()
34118 return X == 0;
34120 return 0;
34122 _ACEOF
34123 if ac_fn_cxx_try_link "$LINENO"; then :
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34125 $as_echo "yes" >&6; }; have_pic_shared=yes
34126 else
34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34128 $as_echo "no" >&6; }; have_pic_shared=no
34130 rm -f core conftest.err conftest.$ac_objext \
34131 conftest$ac_exeext conftest.$ac_ext
34132 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34133 pluginlibs=
34134 enable_plugin=no
34136 LDFLAGS="$saved_LDFLAGS"
34137 CFLAGS="$saved_CFLAGS"
34138 CXXFLAGS="$saved_CXXFLAGS"
34140 # If plugin support had been requested but not available, fail.
34141 if test x"$enable_plugin" = x"no" ; then
34142 if test x"$default_plugin" != x"yes"; then
34143 as_fn_error $? "
34144 Building GCC with plugin support requires a host that supports
34145 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34152 if test x"$enable_plugin" = x"yes"; then
34154 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34159 # Enable --enable-host-shared
34160 # Check whether --enable-host-shared was given.
34161 if test "${enable_host_shared+set}" = set; then :
34162 enableval=$enable_host_shared;
34167 # Enable --enable-host-pie
34168 # Check whether --enable-host-pie was given.
34169 if test "${enable_host_pie+set}" = set; then :
34170 enableval=$enable_host_pie;
34175 # Enable --enable-host-bind-now
34176 # Check whether --enable-host-bind-now was given.
34177 if test "${enable_host_bind_now+set}" = set; then :
34178 enableval=$enable_host_bind_now;
34183 # Check whether --enable-libquadmath-support was given.
34184 if test "${enable_libquadmath_support+set}" = set; then :
34185 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34186 else
34187 ENABLE_LIBQUADMATH_SUPPORT=yes
34190 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34192 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34197 # Specify what hash style to use by default.
34199 # Check whether --with-linker-hash-style was given.
34200 if test "${with_linker_hash_style+set}" = set; then :
34201 withval=$with_linker_hash_style; case x"$withval" in
34202 xsysv)
34203 LINKER_HASH_STYLE=sysv
34205 xgnu)
34206 LINKER_HASH_STYLE=gnu
34208 xboth)
34209 LINKER_HASH_STYLE=both
34212 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34214 esac
34215 else
34216 LINKER_HASH_STYLE=''
34219 if test x"${LINKER_HASH_STYLE}" != x; then
34221 cat >>confdefs.h <<_ACEOF
34222 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34223 _ACEOF
34227 # Specify what should be the default of -fdiagnostics-color option.
34229 # Check whether --with-diagnostics-color was given.
34230 if test "${with_diagnostics_color+set}" = set; then :
34231 withval=$with_diagnostics_color; case x"$withval" in
34232 xnever)
34233 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34235 xauto)
34236 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34238 xauto-if-env)
34239 DIAGNOSTICS_COLOR_DEFAULT=-1
34241 xalways)
34242 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34245 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34247 esac
34248 else
34249 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34253 cat >>confdefs.h <<_ACEOF
34254 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34255 _ACEOF
34258 # Specify what should be the default of -fdiagnostics-urls option.
34260 # Check whether --with-diagnostics-urls was given.
34261 if test "${with_diagnostics_urls+set}" = set; then :
34262 withval=$with_diagnostics_urls; case x"$withval" in
34263 xnever)
34264 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34266 xauto)
34267 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34269 xauto-if-env)
34270 DIAGNOSTICS_URLS_DEFAULT=-1
34272 xalways)
34273 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34276 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34278 esac
34279 else
34280 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34284 cat >>confdefs.h <<_ACEOF
34285 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34286 _ACEOF
34289 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34290 # of jit/jit-playback.cc.
34291 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34292 echo "gcc_driver_version: ${gcc_driver_version}"
34293 cat > gcc-driver-name.h <<EOF
34294 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34297 # Check whether --enable-default-pie was given.
34298 # Check whether --enable-default-pie was given.
34299 if test "${enable_default_pie+set}" = set; then :
34300 enableval=$enable_default_pie; enable_default_pie=$enableval
34301 else
34302 enable_default_pie=no
34305 if test x$enable_default_pie = xyes ; then
34307 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34312 # Check if -fno-PIE works.
34313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34314 $as_echo_n "checking for -fno-PIE option... " >&6; }
34315 if ${gcc_cv_c_no_fpie+:} false; then :
34316 $as_echo_n "(cached) " >&6
34317 else
34318 saved_CXXFLAGS="$CXXFLAGS"
34319 CXXFLAGS="$CXXFLAGS -fno-PIE"
34320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34321 /* end confdefs.h. */
34322 int main(void) {return 0;}
34323 _ACEOF
34324 if ac_fn_cxx_try_compile "$LINENO"; then :
34325 gcc_cv_c_no_fpie=yes
34326 else
34327 gcc_cv_c_no_fpie=no
34329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330 CXXFLAGS="$saved_CXXFLAGS"
34332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34333 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34335 # Check if -no-pie works.
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34337 $as_echo_n "checking for -no-pie option... " >&6; }
34338 if ${gcc_cv_no_pie+:} false; then :
34339 $as_echo_n "(cached) " >&6
34340 else
34341 saved_LDFLAGS="$LDFLAGS"
34342 LDFLAGS="$LDFLAGS -no-pie"
34343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34344 /* end confdefs.h. */
34345 int main(void) {return 0;}
34346 _ACEOF
34347 if ac_fn_cxx_try_link "$LINENO"; then :
34348 gcc_cv_no_pie=yes
34349 else
34350 gcc_cv_no_pie=no
34352 rm -f core conftest.err conftest.$ac_objext \
34353 conftest$ac_exeext conftest.$ac_ext
34354 LDFLAGS="$saved_LDFLAGS"
34356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34357 $as_echo "$gcc_cv_no_pie" >&6; }
34359 if test x$enable_host_shared = xyes; then
34360 PICFLAG=-fPIC
34361 elif test x$enable_host_pie = xyes; then
34362 PICFLAG=-fPIE
34363 elif test x$gcc_cv_c_no_fpie = xyes; then
34364 PICFLAG=-fno-PIE
34365 else
34366 PICFLAG=
34371 if test x$enable_host_pie = xyes; then
34372 LD_PICFLAG=-pie
34373 elif test x$gcc_cv_no_pie = xyes; then
34374 LD_PICFLAG=-no-pie
34375 else
34376 LD_PICFLAG=
34379 if test x$enable_host_bind_now = xyes; then
34380 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34385 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34386 # Check whether --enable-cet was given.
34387 if test "${enable_cet+set}" = set; then :
34388 enableval=$enable_cet;
34389 case "$enableval" in
34390 yes|no|auto) ;;
34391 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34392 esac
34394 else
34395 enable_cet=auto
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34400 $as_echo_n "checking for CET support... " >&6; }
34402 case "$host" in
34403 i[34567]86-*-linux* | x86_64-*-linux*)
34404 may_have_cet=yes
34405 cet_save_CFLAGS="$CFLAGS"
34406 CFLAGS="$CFLAGS -fcf-protection"
34407 case "$enable_cet" in
34408 auto)
34409 # Check if target supports multi-byte NOPs
34410 # and if compiler and assembler support CET.
34411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34412 /* end confdefs.h. */
34415 main ()
34418 #if !defined(__SSE2__)
34419 #error target does not support multi-byte NOPs
34420 #else
34421 asm ("setssbsy");
34422 #endif
34425 return 0;
34427 _ACEOF
34428 if ac_fn_cxx_try_compile "$LINENO"; then :
34429 enable_cet=yes
34430 else
34431 enable_cet=no
34433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34435 yes)
34436 # Check if compiler and assembler support CET.
34437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34438 /* end confdefs.h. */
34441 main ()
34443 asm ("setssbsy");
34445 return 0;
34447 _ACEOF
34448 if ac_fn_cxx_try_compile "$LINENO"; then :
34449 support_cet=yes
34450 else
34451 support_cet=no
34453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34454 if test $support_cet = "no"; then
34455 if test x$enable_bootstrap != xno \
34456 && test -z "${with_build_subdir}" \
34457 && (test ! -f ../stage_current \
34458 || test `cat ../stage_current` != "stage1"); then
34459 # Require CET support only for the final GCC build.
34460 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34461 else
34462 # Don't enable CET without CET support for non-bootstrap
34463 # build, in stage1 nor for build support.
34464 enable_cet=no
34468 esac
34469 CFLAGS="$cet_save_CFLAGS"
34472 may_have_cet=no
34473 enable_cet=no
34475 esac
34477 cet_save_CFLAGS="$CFLAGS"
34478 CFLAGS="$CFLAGS -fcf-protection=none"
34479 cet_save_LDFLAGS="$LDFLAGS"
34480 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34481 if test x$may_have_cet = xyes; then
34482 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34484 /* end confdefs.h. */
34487 main ()
34489 return 0;
34491 return 0;
34493 _ACEOF
34494 if ac_fn_cxx_try_link "$LINENO"; then :
34495 may_have_cet=yes
34496 else
34497 may_have_cet=no
34499 rm -f core conftest.err conftest.$ac_objext \
34500 conftest$ac_exeext conftest.$ac_ext
34503 if test x$may_have_cet = xyes; then
34504 if test x$cross_compiling = xno; then
34505 if test "$cross_compiling" = yes; then :
34506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34508 as_fn_error $? "cannot run test program while cross compiling
34509 See \`config.log' for more details" "$LINENO" 5; }
34510 else
34511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34512 /* end confdefs.h. */
34515 main ()
34517 asm ("endbr32");
34518 return 0;
34521 _ACEOF
34522 if ac_fn_cxx_try_run "$LINENO"; then :
34523 have_multi_byte_nop=yes
34524 else
34525 have_multi_byte_nop=no
34527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34528 conftest.$ac_objext conftest.beam conftest.$ac_ext
34531 have_cet=no
34532 if test x$have_multi_byte_nop = xyes; then
34533 if test "$cross_compiling" = yes; then :
34534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34536 as_fn_error $? "cannot run test program while cross compiling
34537 See \`config.log' for more details" "$LINENO" 5; }
34538 else
34539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34540 /* end confdefs.h. */
34542 static void
34543 foo (void)
34547 static void
34548 __attribute__ ((noinline, noclone))
34549 xxx (void (*f) (void))
34551 f ();
34554 static void
34555 __attribute__ ((noinline, noclone))
34556 bar (void)
34558 xxx (foo);
34562 main ()
34564 bar ();
34565 return 0;
34568 _ACEOF
34569 if ac_fn_cxx_try_run "$LINENO"; then :
34570 have_cet=no
34571 else
34572 have_cet=yes
34574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34575 conftest.$ac_objext conftest.beam conftest.$ac_ext
34579 if test x$enable_cet = xno -a x$have_cet = xyes; then
34580 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34583 else
34584 # Enable CET in cross compiler if possible so that it will run on both
34585 # CET and non-CET hosts.
34586 have_cet=yes
34588 if test x$enable_cet = xyes; then
34589 CET_HOST_FLAGS="-fcf-protection"
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34591 $as_echo "yes" >&6; }
34592 else
34593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34594 $as_echo "no" >&6; }
34596 CFLAGS="$cet_save_CFLAGS"
34597 LDFLAGS="$cet_save_LDFLAGS"
34599 case x$enable_languages in
34600 *jit*)
34603 CET_HOST_FLAGS=
34605 esac
34608 # Check linker supports '-z bndplt'
34609 ld_bndplt_support=no
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34611 $as_echo_n "checking linker -z bndplt option... " >&6; }
34612 if test x"$ld_is_gold" = xno; then
34613 if test $in_tree_ld = yes ; then
34614 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
34615 ld_bndplt_support=yes
34617 elif test x$gcc_cv_ld != x; then
34618 # Check if linker supports -a bndplt option
34619 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34620 ld_bndplt_support=yes
34624 if test x"$ld_bndplt_support" = xyes; then
34626 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34630 $as_echo "$ld_bndplt_support" >&6; }
34632 # Check linker supports '--push-state'/'--pop-state'
34633 ld_pushpopstate_support=no
34634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34635 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34636 if test x"$ld_is_gold" = xno; then
34637 if test $in_tree_ld = yes ; then
34638 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
34639 ld_pushpopstate_support=yes
34641 elif test x$gcc_cv_ld != x; then
34642 # Check if linker supports --push-state/--pop-state options
34643 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34644 ld_pushpopstate_support=yes
34648 if test x"$ld_pushpopstate_support" = xyes; then
34650 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34654 $as_echo "$ld_pushpopstate_support" >&6; }
34656 # On s390, float_t has historically been statically defined as double for no
34657 # good reason. To comply with the C standard in the light of this definition,
34658 # gcc has evaluated float expressions in double precision when in
34659 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34660 # a smooth transition towards the new model used by most architectures, where
34661 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34662 # float_t from that, this behavior can be configured with
34663 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34664 # the old model. When omitted, native builds and cross compiles that have target
34665 # libc headers will detect whether libc clamps float_t to double and in that
34666 # case maintain the old model. Otherwise, they will default to the new model.
34667 # Check whether --enable-s390-excess-float-precision was given.
34668 if test "${enable_s390_excess_float_precision+set}" = set; then :
34669 enableval=$enable_s390_excess_float_precision;
34670 else
34671 enable_s390_excess_float_precision=auto
34675 case $target in
34676 s390*-linux*)
34677 if test x"$enable_s390_excess_float_precision" = xauto; then
34678 # Can we autodetect the behavior of the target libc?
34679 if test "$target" = "$host" -a "$host" = "$build"; then
34680 enable_s390_excess_float_precision=autodetect
34681 elif test "x$with_headers" != xno; then
34682 # cross build. are target headers available?
34683 # carefully coerce the build-system compiler to use target headers
34684 saved_CXXFLAGS="$CXXFLAGS"
34685 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34686 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34687 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34689 /* end confdefs.h. */
34691 #include <math.h>
34693 _ACEOF
34694 if ac_fn_cxx_try_compile "$LINENO"; then :
34695 enable_s390_excess_float_precision=autodetect
34697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34698 CXXFLAGS="$saved_CXXFLAGS"
34701 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34702 saved_CXXFLAGS="$CXXFLAGS"
34703 if ! test "$target" = "$host" -a "$host" = "$build"; then
34704 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34705 unset CROSS_TEST_CXXFLAGS
34707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34708 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34709 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34710 $as_echo_n "(cached) " >&6
34711 else
34713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34714 /* end confdefs.h. */
34716 #define __FLT_EVAL_METHOD__ 0
34717 #include <math.h>
34718 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34720 _ACEOF
34721 if ac_fn_cxx_try_compile "$LINENO"; then :
34722 gcc_cv_float_t_clamped_to_double=yes
34723 else
34724 gcc_cv_float_t_clamped_to_double=no
34726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34729 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34730 CXXFLAGS="$saved_CXXFLAGS"
34731 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34732 else
34733 # no way to detect behavior of target libc, default to new model
34734 enable_s390_excess_float_precision=no
34739 if test x"$enable_s390_excess_float_precision" = xyes; then
34741 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34745 esac
34747 # Configure the subdirectories
34748 # AC_CONFIG_SUBDIRS($subdirs)
34750 # Create the Makefile
34751 # and configure language subdirectories
34752 ac_config_files="$ac_config_files $all_outputs"
34755 ac_config_commands="$ac_config_commands default"
34757 cat >confcache <<\_ACEOF
34758 # This file is a shell script that caches the results of configure
34759 # tests run on this system so they can be shared between configure
34760 # scripts and configure runs, see configure's option --config-cache.
34761 # It is not useful on other systems. If it contains results you don't
34762 # want to keep, you may remove or edit it.
34764 # config.status only pays attention to the cache file if you give it
34765 # the --recheck option to rerun configure.
34767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34769 # following values.
34771 _ACEOF
34773 # The following way of writing the cache mishandles newlines in values,
34774 # but we know of no workaround that is simple, portable, and efficient.
34775 # So, we kill variables containing newlines.
34776 # Ultrix sh set writes to stderr and can't be redirected directly,
34777 # and sets the high bit in the cache file unless we assign to the vars.
34779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34780 eval ac_val=\$$ac_var
34781 case $ac_val in #(
34782 *${as_nl}*)
34783 case $ac_var in #(
34784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34786 esac
34787 case $ac_var in #(
34788 _ | IFS | as_nl) ;; #(
34789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34790 *) { eval $ac_var=; unset $ac_var;} ;;
34791 esac ;;
34792 esac
34793 done
34795 (set) 2>&1 |
34796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34797 *${as_nl}ac_space=\ *)
34798 # `set' does not quote correctly, so add quotes: double-quote
34799 # substitution turns \\\\ into \\, and sed turns \\ into \.
34800 sed -n \
34801 "s/'/'\\\\''/g;
34802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34803 ;; #(
34805 # `set' quotes correctly as required by POSIX, so do not add quotes.
34806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34808 esac |
34809 sort
34811 sed '
34812 /^ac_cv_env_/b end
34813 t clear
34814 :clear
34815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34816 t end
34817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34818 :end' >>confcache
34819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34820 if test -w "$cache_file"; then
34821 if test "x$cache_file" != "x/dev/null"; then
34822 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34823 $as_echo "$as_me: updating cache $cache_file" >&6;}
34824 if test ! -f "$cache_file" || test -h "$cache_file"; then
34825 cat confcache >"$cache_file"
34826 else
34827 case $cache_file in #(
34828 */* | ?:*)
34829 mv -f confcache "$cache_file"$$ &&
34830 mv -f "$cache_file"$$ "$cache_file" ;; #(
34832 mv -f confcache "$cache_file" ;;
34833 esac
34836 else
34837 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34841 rm -f confcache
34843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34844 # Let make expand exec_prefix.
34845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34847 DEFS=-DHAVE_CONFIG_H
34849 ac_libobjs=
34850 ac_ltlibobjs=
34852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34853 # 1. Remove the extension, and $U if already installed.
34854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34855 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34857 # will be set to the directory where LIBOBJS objects are built.
34858 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34859 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34860 done
34861 LIBOBJS=$ac_libobjs
34863 LTLIBOBJS=$ac_ltlibobjs
34867 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34868 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34872 : "${CONFIG_STATUS=./config.status}"
34873 ac_write_fail=0
34874 ac_clean_files_save=$ac_clean_files
34875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34878 as_write_fail=0
34879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34880 #! $SHELL
34881 # Generated by $as_me.
34882 # Run this file to recreate the current configuration.
34883 # Compiler output produced by configure, useful for debugging
34884 # configure, is in config.log if it exists.
34886 debug=false
34887 ac_cs_recheck=false
34888 ac_cs_silent=false
34890 SHELL=\${CONFIG_SHELL-$SHELL}
34891 export SHELL
34892 _ASEOF
34893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34894 ## -------------------- ##
34895 ## M4sh Initialization. ##
34896 ## -------------------- ##
34898 # Be more Bourne compatible
34899 DUALCASE=1; export DUALCASE # for MKS sh
34900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34901 emulate sh
34902 NULLCMD=:
34903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34904 # is contrary to our usage. Disable this feature.
34905 alias -g '${1+"$@"}'='"$@"'
34906 setopt NO_GLOB_SUBST
34907 else
34908 case `(set -o) 2>/dev/null` in #(
34909 *posix*) :
34910 set -o posix ;; #(
34911 *) :
34913 esac
34917 as_nl='
34919 export as_nl
34920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34924 # Prefer a ksh shell builtin over an external printf program on Solaris,
34925 # but without wasting forks for bash or zsh.
34926 if test -z "$BASH_VERSION$ZSH_VERSION" \
34927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34928 as_echo='print -r --'
34929 as_echo_n='print -rn --'
34930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34931 as_echo='printf %s\n'
34932 as_echo_n='printf %s'
34933 else
34934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34936 as_echo_n='/usr/ucb/echo -n'
34937 else
34938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34939 as_echo_n_body='eval
34940 arg=$1;
34941 case $arg in #(
34942 *"$as_nl"*)
34943 expr "X$arg" : "X\\(.*\\)$as_nl";
34944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34945 esac;
34946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34948 export as_echo_n_body
34949 as_echo_n='sh -c $as_echo_n_body as_echo'
34951 export as_echo_body
34952 as_echo='sh -c $as_echo_body as_echo'
34955 # The user is always right.
34956 if test "${PATH_SEPARATOR+set}" != set; then
34957 PATH_SEPARATOR=:
34958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34960 PATH_SEPARATOR=';'
34965 # IFS
34966 # We need space, tab and new line, in precisely that order. Quoting is
34967 # there to prevent editors from complaining about space-tab.
34968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34969 # splitting by setting IFS to empty value.)
34970 IFS=" "" $as_nl"
34972 # Find who we are. Look in the path if we contain no directory separator.
34973 as_myself=
34974 case $0 in #((
34975 *[\\/]* ) as_myself=$0 ;;
34976 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34977 for as_dir in $PATH
34979 IFS=$as_save_IFS
34980 test -z "$as_dir" && as_dir=.
34981 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34982 done
34983 IFS=$as_save_IFS
34986 esac
34987 # We did not find ourselves, most probably we were run as `sh COMMAND'
34988 # in which case we are not to be found in the path.
34989 if test "x$as_myself" = x; then
34990 as_myself=$0
34992 if test ! -f "$as_myself"; then
34993 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34994 exit 1
34997 # Unset variables that we do not need and which cause bugs (e.g. in
34998 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34999 # suppresses any "Segmentation fault" message there. '((' could
35000 # trigger a bug in pdksh 5.2.14.
35001 for as_var in BASH_ENV ENV MAIL MAILPATH
35002 do eval test x\${$as_var+set} = xset \
35003 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35004 done
35005 PS1='$ '
35006 PS2='> '
35007 PS4='+ '
35009 # NLS nuisances.
35010 LC_ALL=C
35011 export LC_ALL
35012 LANGUAGE=C
35013 export LANGUAGE
35015 # CDPATH.
35016 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35019 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35020 # ----------------------------------------
35021 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35022 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35023 # script with STATUS, using 1 if that was 0.
35024 as_fn_error ()
35026 as_status=$1; test $as_status -eq 0 && as_status=1
35027 if test "$4"; then
35028 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35029 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35031 $as_echo "$as_me: error: $2" >&2
35032 as_fn_exit $as_status
35033 } # as_fn_error
35036 # as_fn_set_status STATUS
35037 # -----------------------
35038 # Set $? to STATUS, without forking.
35039 as_fn_set_status ()
35041 return $1
35042 } # as_fn_set_status
35044 # as_fn_exit STATUS
35045 # -----------------
35046 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35047 as_fn_exit ()
35049 set +e
35050 as_fn_set_status $1
35051 exit $1
35052 } # as_fn_exit
35054 # as_fn_unset VAR
35055 # ---------------
35056 # Portably unset VAR.
35057 as_fn_unset ()
35059 { eval $1=; unset $1;}
35061 as_unset=as_fn_unset
35062 # as_fn_append VAR VALUE
35063 # ----------------------
35064 # Append the text in VALUE to the end of the definition contained in VAR. Take
35065 # advantage of any shell optimizations that allow amortized linear growth over
35066 # repeated appends, instead of the typical quadratic growth present in naive
35067 # implementations.
35068 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35069 eval 'as_fn_append ()
35071 eval $1+=\$2
35073 else
35074 as_fn_append ()
35076 eval $1=\$$1\$2
35078 fi # as_fn_append
35080 # as_fn_arith ARG...
35081 # ------------------
35082 # Perform arithmetic evaluation on the ARGs, and store the result in the
35083 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35084 # must be portable across $(()) and expr.
35085 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35086 eval 'as_fn_arith ()
35088 as_val=$(( $* ))
35090 else
35091 as_fn_arith ()
35093 as_val=`expr "$@" || test $? -eq 1`
35095 fi # as_fn_arith
35098 if expr a : '\(a\)' >/dev/null 2>&1 &&
35099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35100 as_expr=expr
35101 else
35102 as_expr=false
35105 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35106 as_basename=basename
35107 else
35108 as_basename=false
35111 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35112 as_dirname=dirname
35113 else
35114 as_dirname=false
35117 as_me=`$as_basename -- "$0" ||
35118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35119 X"$0" : 'X\(//\)$' \| \
35120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35121 $as_echo X/"$0" |
35122 sed '/^.*\/\([^/][^/]*\)\/*$/{
35123 s//\1/
35126 /^X\/\(\/\/\)$/{
35127 s//\1/
35130 /^X\/\(\/\).*/{
35131 s//\1/
35134 s/.*/./; q'`
35136 # Avoid depending upon Character Ranges.
35137 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35138 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35139 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35140 as_cr_digits='0123456789'
35141 as_cr_alnum=$as_cr_Letters$as_cr_digits
35143 ECHO_C= ECHO_N= ECHO_T=
35144 case `echo -n x` in #(((((
35145 -n*)
35146 case `echo 'xy\c'` in
35147 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35148 xy) ECHO_C='\c';;
35149 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35150 ECHO_T=' ';;
35151 esac;;
35153 ECHO_N='-n';;
35154 esac
35156 rm -f conf$$ conf$$.exe conf$$.file
35157 if test -d conf$$.dir; then
35158 rm -f conf$$.dir/conf$$.file
35159 else
35160 rm -f conf$$.dir
35161 mkdir conf$$.dir 2>/dev/null
35163 if (echo >conf$$.file) 2>/dev/null; then
35164 if ln -s conf$$.file conf$$ 2>/dev/null; then
35165 as_ln_s='ln -s'
35166 # ... but there are two gotchas:
35167 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35168 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35169 # In both cases, we have to default to `cp -pR'.
35170 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35171 as_ln_s='cp -pR'
35172 elif ln conf$$.file conf$$ 2>/dev/null; then
35173 as_ln_s=ln
35174 else
35175 as_ln_s='cp -pR'
35177 else
35178 as_ln_s='cp -pR'
35180 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35181 rmdir conf$$.dir 2>/dev/null
35184 # as_fn_mkdir_p
35185 # -------------
35186 # Create "$as_dir" as a directory, including parents if necessary.
35187 as_fn_mkdir_p ()
35190 case $as_dir in #(
35191 -*) as_dir=./$as_dir;;
35192 esac
35193 test -d "$as_dir" || eval $as_mkdir_p || {
35194 as_dirs=
35195 while :; do
35196 case $as_dir in #(
35197 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35198 *) as_qdir=$as_dir;;
35199 esac
35200 as_dirs="'$as_qdir' $as_dirs"
35201 as_dir=`$as_dirname -- "$as_dir" ||
35202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35203 X"$as_dir" : 'X\(//\)[^/]' \| \
35204 X"$as_dir" : 'X\(//\)$' \| \
35205 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35206 $as_echo X"$as_dir" |
35207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35208 s//\1/
35211 /^X\(\/\/\)[^/].*/{
35212 s//\1/
35215 /^X\(\/\/\)$/{
35216 s//\1/
35219 /^X\(\/\).*/{
35220 s//\1/
35223 s/.*/./; q'`
35224 test -d "$as_dir" && break
35225 done
35226 test -z "$as_dirs" || eval "mkdir $as_dirs"
35227 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35230 } # as_fn_mkdir_p
35231 if mkdir -p . 2>/dev/null; then
35232 as_mkdir_p='mkdir -p "$as_dir"'
35233 else
35234 test -d ./-p && rmdir ./-p
35235 as_mkdir_p=false
35239 # as_fn_executable_p FILE
35240 # -----------------------
35241 # Test if FILE is an executable regular file.
35242 as_fn_executable_p ()
35244 test -f "$1" && test -x "$1"
35245 } # as_fn_executable_p
35246 as_test_x='test -x'
35247 as_executable_p=as_fn_executable_p
35249 # Sed expression to map a string onto a valid CPP name.
35250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35252 # Sed expression to map a string onto a valid variable name.
35253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35256 exec 6>&1
35257 ## ----------------------------------- ##
35258 ## Main body of $CONFIG_STATUS script. ##
35259 ## ----------------------------------- ##
35260 _ASEOF
35261 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35264 # Save the log message, to keep $0 and so on meaningful, and to
35265 # report actual input values of CONFIG_FILES etc. instead of their
35266 # values after options handling.
35267 ac_log="
35268 This file was extended by $as_me, which was
35269 generated by GNU Autoconf 2.69. Invocation command line was
35271 CONFIG_FILES = $CONFIG_FILES
35272 CONFIG_HEADERS = $CONFIG_HEADERS
35273 CONFIG_LINKS = $CONFIG_LINKS
35274 CONFIG_COMMANDS = $CONFIG_COMMANDS
35275 $ $0 $@
35277 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35280 _ACEOF
35282 case $ac_config_files in *"
35283 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35284 esac
35286 case $ac_config_headers in *"
35287 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35288 esac
35291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35292 # Files that config.status was made for.
35293 config_files="$ac_config_files"
35294 config_headers="$ac_config_headers"
35295 config_links="$ac_config_links"
35296 config_commands="$ac_config_commands"
35298 _ACEOF
35300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35301 ac_cs_usage="\
35302 \`$as_me' instantiates files and other configuration actions
35303 from templates according to the current configuration. Unless the files
35304 and actions are specified as TAGs, all are instantiated by default.
35306 Usage: $0 [OPTION]... [TAG]...
35308 -h, --help print this help, then exit
35309 -V, --version print version number and configuration settings, then exit
35310 --config print configuration, then exit
35311 -q, --quiet, --silent
35312 do not print progress messages
35313 -d, --debug don't remove temporary files
35314 --recheck update $as_me by reconfiguring in the same conditions
35315 --file=FILE[:TEMPLATE]
35316 instantiate the configuration file FILE
35317 --header=FILE[:TEMPLATE]
35318 instantiate the configuration header FILE
35320 Configuration files:
35321 $config_files
35323 Configuration headers:
35324 $config_headers
35326 Configuration links:
35327 $config_links
35329 Configuration commands:
35330 $config_commands
35332 Report bugs to the package provider."
35334 _ACEOF
35335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35336 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35337 ac_cs_version="\\
35338 config.status
35339 configured by $0, generated by GNU Autoconf 2.69,
35340 with options \\"\$ac_cs_config\\"
35342 Copyright (C) 2012 Free Software Foundation, Inc.
35343 This config.status script is free software; the Free Software Foundation
35344 gives unlimited permission to copy, distribute and modify it."
35346 ac_pwd='$ac_pwd'
35347 srcdir='$srcdir'
35348 INSTALL='$INSTALL'
35349 AWK='$AWK'
35350 test -n "\$AWK" || AWK=awk
35351 _ACEOF
35353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35354 # The default lists apply if the user does not specify any file.
35355 ac_need_defaults=:
35356 while test $# != 0
35358 case $1 in
35359 --*=?*)
35360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35362 ac_shift=:
35364 --*=)
35365 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35366 ac_optarg=
35367 ac_shift=:
35370 ac_option=$1
35371 ac_optarg=$2
35372 ac_shift=shift
35374 esac
35376 case $ac_option in
35377 # Handling of the options.
35378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35379 ac_cs_recheck=: ;;
35380 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35381 $as_echo "$ac_cs_version"; exit ;;
35382 --config | --confi | --conf | --con | --co | --c )
35383 $as_echo "$ac_cs_config"; exit ;;
35384 --debug | --debu | --deb | --de | --d | -d )
35385 debug=: ;;
35386 --file | --fil | --fi | --f )
35387 $ac_shift
35388 case $ac_optarg in
35389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35390 '') as_fn_error $? "missing file argument" ;;
35391 esac
35392 as_fn_append CONFIG_FILES " '$ac_optarg'"
35393 ac_need_defaults=false;;
35394 --header | --heade | --head | --hea )
35395 $ac_shift
35396 case $ac_optarg in
35397 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35398 esac
35399 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35400 ac_need_defaults=false;;
35401 --he | --h)
35402 # Conflict between --help and --header
35403 as_fn_error $? "ambiguous option: \`$1'
35404 Try \`$0 --help' for more information.";;
35405 --help | --hel | -h )
35406 $as_echo "$ac_cs_usage"; exit ;;
35407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35408 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35409 ac_cs_silent=: ;;
35411 # This is an error.
35412 -*) as_fn_error $? "unrecognized option: \`$1'
35413 Try \`$0 --help' for more information." ;;
35415 *) as_fn_append ac_config_targets " $1"
35416 ac_need_defaults=false ;;
35418 esac
35419 shift
35420 done
35422 ac_configure_extra_args=
35424 if $ac_cs_silent; then
35425 exec 6>/dev/null
35426 ac_configure_extra_args="$ac_configure_extra_args --silent"
35429 _ACEOF
35430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35431 if \$ac_cs_recheck; then
35432 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35433 shift
35434 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35435 CONFIG_SHELL='$SHELL'
35436 export CONFIG_SHELL
35437 exec "\$@"
35440 _ACEOF
35441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35442 exec 5>>config.log
35444 echo
35445 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35446 ## Running $as_me. ##
35447 _ASBOX
35448 $as_echo "$ac_log"
35449 } >&5
35451 _ACEOF
35452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35454 # INIT-COMMANDS
35456 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35457 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35458 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35459 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35460 # from automake.
35461 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35462 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35463 LINGUAS="${LINGUAS-%UNSET%}"
35465 subdirs='$subdirs'
35467 _ACEOF
35469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35471 # Handling of arguments.
35472 for ac_config_target in $ac_config_targets
35474 case $ac_config_target in
35475 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35476 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35477 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35478 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35479 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35480 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35481 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35482 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35483 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35484 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35485 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35487 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35488 esac
35489 done
35492 # If the user did not use the arguments to specify the items to instantiate,
35493 # then the envvar interface is used. Set only those that are not.
35494 # We use the long form for the default assignment because of an extremely
35495 # bizarre bug on SunOS 4.1.3.
35496 if $ac_need_defaults; then
35497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35499 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35503 # Have a temporary directory for convenience. Make it in the build tree
35504 # simply because there is no reason against having it here, and in addition,
35505 # creating and moving files from /tmp can sometimes cause problems.
35506 # Hook for its removal unless debugging.
35507 # Note that there is a small window in which the directory will not be cleaned:
35508 # after its creation but before its name has been assigned to `$tmp'.
35509 $debug ||
35511 tmp= ac_tmp=
35512 trap 'exit_status=$?
35513 : "${ac_tmp:=$tmp}"
35514 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35516 trap 'as_fn_exit 1' 1 2 13 15
35518 # Create a (secure) tmp directory for tmp files.
35521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35522 test -d "$tmp"
35523 } ||
35525 tmp=./conf$$-$RANDOM
35526 (umask 077 && mkdir "$tmp")
35527 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35528 ac_tmp=$tmp
35530 # Set up the scripts for CONFIG_FILES section.
35531 # No need to generate them if there are no CONFIG_FILES.
35532 # This happens for instance with `./config.status config.h'.
35533 if test -n "$CONFIG_FILES"; then
35535 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35536 ac_cs_awk_getline=:
35537 ac_cs_awk_pipe_init=
35538 ac_cs_awk_read_file='
35539 while ((getline aline < (F[key])) > 0)
35540 print(aline)
35541 close(F[key])'
35542 ac_cs_awk_pipe_fini=
35543 else
35544 ac_cs_awk_getline=false
35545 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35546 ac_cs_awk_read_file='
35547 print "|#_!!_#|"
35548 print "cat " F[key] " &&"
35549 '$ac_cs_awk_pipe_init
35550 # The final `:' finishes the AND list.
35551 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35553 ac_cr=`echo X | tr X '\015'`
35554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35555 # But we know of no other shell where ac_cr would be empty at this
35556 # point, so we can use a bashism as a fallback.
35557 if test "x$ac_cr" = x; then
35558 eval ac_cr=\$\'\\r\'
35560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35562 ac_cs_awk_cr='\\r'
35563 else
35564 ac_cs_awk_cr=$ac_cr
35567 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35568 _ACEOF
35570 # Create commands to substitute file output variables.
35572 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35573 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35574 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35575 echo "_ACAWK" &&
35576 echo "_ACEOF"
35577 } >conf$$files.sh &&
35578 . ./conf$$files.sh ||
35579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35580 rm -f conf$$files.sh
35583 echo "cat >conf$$subs.awk <<_ACEOF" &&
35584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35585 echo "_ACEOF"
35586 } >conf$$subs.sh ||
35587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35589 ac_delim='%!_!# '
35590 for ac_last_try in false false false false false :; do
35591 . ./conf$$subs.sh ||
35592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35594 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35595 if test $ac_delim_n = $ac_delim_num; then
35596 break
35597 elif $ac_last_try; then
35598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35599 else
35600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35602 done
35603 rm -f conf$$subs.sh
35605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35606 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35607 _ACEOF
35608 sed -n '
35610 s/^/S["/; s/!.*/"]=/
35613 s/^[^!]*!//
35614 :repl
35615 t repl
35616 s/'"$ac_delim"'$//
35617 t delim
35620 s/\(.\{148\}\)..*/\1/
35621 t more1
35622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35625 b repl
35626 :more1
35627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35630 s/.\{148\}//
35631 t nl
35632 :delim
35634 s/\(.\{148\}\)..*/\1/
35635 t more2
35636 s/["\\]/\\&/g; s/^/"/; s/$/"/
35639 :more2
35640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35643 s/.\{148\}//
35644 t delim
35645 ' <conf$$subs.awk | sed '
35646 /^[^""]/{
35648 s/\n//
35650 ' >>$CONFIG_STATUS || ac_write_fail=1
35651 rm -f conf$$subs.awk
35652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35653 _ACAWK
35654 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35655 for (key in S) S_is_set[key] = 1
35656 FS = "\a"
35657 \$ac_cs_awk_pipe_init
35660 line = $ 0
35661 nfields = split(line, field, "@")
35662 substed = 0
35663 len = length(field[1])
35664 for (i = 2; i < nfields; i++) {
35665 key = field[i]
35666 keylen = length(key)
35667 if (S_is_set[key]) {
35668 value = S[key]
35669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35670 len += length(value) + length(field[++i])
35671 substed = 1
35672 } else
35673 len += 1 + keylen
35675 if (nfields == 3 && !substed) {
35676 key = field[2]
35677 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35678 \$ac_cs_awk_read_file
35679 next
35682 print line
35684 \$ac_cs_awk_pipe_fini
35685 _ACAWK
35686 _ACEOF
35687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35688 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35689 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35690 else
35692 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35693 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35694 _ACEOF
35696 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35697 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35698 # trailing colons and then remove the whole line if VPATH becomes empty
35699 # (actually we leave an empty line to preserve line numbers).
35700 if test "x$srcdir" = x.; then
35701 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35703 s///
35704 s/^/:/
35705 s/[ ]*$/:/
35706 s/:\$(srcdir):/:/g
35707 s/:\${srcdir}:/:/g
35708 s/:@srcdir@:/:/g
35709 s/^:*//
35710 s/:*$//
35712 s/\(=[ ]*\).*/\1/
35714 s/\n//
35715 s/^[^=]*=[ ]*$//
35719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35720 fi # test -n "$CONFIG_FILES"
35722 # Set up the scripts for CONFIG_HEADERS section.
35723 # No need to generate them if there are no CONFIG_HEADERS.
35724 # This happens for instance with `./config.status Makefile'.
35725 if test -n "$CONFIG_HEADERS"; then
35726 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35727 BEGIN {
35728 _ACEOF
35730 # Transform confdefs.h into an awk script `defines.awk', embedded as
35731 # here-document in config.status, that substitutes the proper values into
35732 # config.h.in to produce config.h.
35734 # Create a delimiter string that does not exist in confdefs.h, to ease
35735 # handling of long lines.
35736 ac_delim='%!_!# '
35737 for ac_last_try in false false :; do
35738 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35739 if test -z "$ac_tt"; then
35740 break
35741 elif $ac_last_try; then
35742 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35743 else
35744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35746 done
35748 # For the awk script, D is an array of macro values keyed by name,
35749 # likewise P contains macro parameters if any. Preserve backslash
35750 # newline sequences.
35752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35753 sed -n '
35754 s/.\{148\}/&'"$ac_delim"'/g
35755 t rset
35756 :rset
35757 s/^[ ]*#[ ]*define[ ][ ]*/ /
35758 t def
35760 :def
35761 s/\\$//
35762 t bsnl
35763 s/["\\]/\\&/g
35764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35765 D["\1"]=" \3"/p
35766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35768 :bsnl
35769 s/["\\]/\\&/g
35770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35771 D["\1"]=" \3\\\\\\n"\\/p
35772 t cont
35773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35774 t cont
35776 :cont
35778 s/.\{148\}/&'"$ac_delim"'/g
35779 t clear
35780 :clear
35781 s/\\$//
35782 t bsnlc
35783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35785 :bsnlc
35786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35787 b cont
35788 ' <confdefs.h | sed '
35789 s/'"$ac_delim"'/"\\\
35790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35793 for (key in D) D_is_set[key] = 1
35794 FS = "\a"
35796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35797 line = \$ 0
35798 split(line, arg, " ")
35799 if (arg[1] == "#") {
35800 defundef = arg[2]
35801 mac1 = arg[3]
35802 } else {
35803 defundef = substr(arg[1], 2)
35804 mac1 = arg[2]
35806 split(mac1, mac2, "(") #)
35807 macro = mac2[1]
35808 prefix = substr(line, 1, index(line, defundef) - 1)
35809 if (D_is_set[macro]) {
35810 # Preserve the white space surrounding the "#".
35811 print prefix "define", macro P[macro] D[macro]
35812 next
35813 } else {
35814 # Replace #undef with comments. This is necessary, for example,
35815 # in the case of _POSIX_SOURCE, which is predefined and required
35816 # on some systems where configure will not decide to define it.
35817 if (defundef == "undef") {
35818 print "/*", prefix defundef, macro, "*/"
35819 next
35823 { print }
35824 _ACAWK
35825 _ACEOF
35826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35827 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35828 fi # test -n "$CONFIG_HEADERS"
35831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35832 shift
35833 for ac_tag
35835 case $ac_tag in
35836 :[FHLC]) ac_mode=$ac_tag; continue;;
35837 esac
35838 case $ac_mode$ac_tag in
35839 :[FHL]*:*);;
35840 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35841 :[FH]-) ac_tag=-:-;;
35842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35843 esac
35844 ac_save_IFS=$IFS
35845 IFS=:
35846 set x $ac_tag
35847 IFS=$ac_save_IFS
35848 shift
35849 ac_file=$1
35850 shift
35852 case $ac_mode in
35853 :L) ac_source=$1;;
35854 :[FH])
35855 ac_file_inputs=
35856 for ac_f
35858 case $ac_f in
35859 -) ac_f="$ac_tmp/stdin";;
35860 *) # Look for the file first in the build tree, then in the source tree
35861 # (if the path is not absolute). The absolute path cannot be DOS-style,
35862 # because $ac_f cannot contain `:'.
35863 test -f "$ac_f" ||
35864 case $ac_f in
35865 [\\/$]*) false;;
35866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35867 esac ||
35868 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35869 esac
35870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35871 as_fn_append ac_file_inputs " '$ac_f'"
35872 done
35874 # Let's still pretend it is `configure' which instantiates (i.e., don't
35875 # use $as_me), people would be surprised to read:
35876 # /* config.h. Generated by config.status. */
35877 configure_input='Generated from '`
35878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35879 `' by configure.'
35880 if test x"$ac_file" != x-; then
35881 configure_input="$ac_file. $configure_input"
35882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35883 $as_echo "$as_me: creating $ac_file" >&6;}
35885 # Neutralize special characters interpreted by sed in replacement strings.
35886 case $configure_input in #(
35887 *\&* | *\|* | *\\* )
35888 ac_sed_conf_input=`$as_echo "$configure_input" |
35889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35890 *) ac_sed_conf_input=$configure_input;;
35891 esac
35893 case $ac_tag in
35894 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35895 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35896 esac
35898 esac
35900 ac_dir=`$as_dirname -- "$ac_file" ||
35901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35902 X"$ac_file" : 'X\(//\)[^/]' \| \
35903 X"$ac_file" : 'X\(//\)$' \| \
35904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35905 $as_echo X"$ac_file" |
35906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35907 s//\1/
35910 /^X\(\/\/\)[^/].*/{
35911 s//\1/
35914 /^X\(\/\/\)$/{
35915 s//\1/
35918 /^X\(\/\).*/{
35919 s//\1/
35922 s/.*/./; q'`
35923 as_dir="$ac_dir"; as_fn_mkdir_p
35924 ac_builddir=.
35926 case "$ac_dir" in
35927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35930 # A ".." for each directory in $ac_dir_suffix.
35931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35932 case $ac_top_builddir_sub in
35933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35935 esac ;;
35936 esac
35937 ac_abs_top_builddir=$ac_pwd
35938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35939 # for backward compatibility:
35940 ac_top_builddir=$ac_top_build_prefix
35942 case $srcdir in
35943 .) # We are building in place.
35944 ac_srcdir=.
35945 ac_top_srcdir=$ac_top_builddir_sub
35946 ac_abs_top_srcdir=$ac_pwd ;;
35947 [\\/]* | ?:[\\/]* ) # Absolute name.
35948 ac_srcdir=$srcdir$ac_dir_suffix;
35949 ac_top_srcdir=$srcdir
35950 ac_abs_top_srcdir=$srcdir ;;
35951 *) # Relative name.
35952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35953 ac_top_srcdir=$ac_top_build_prefix$srcdir
35954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35955 esac
35956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35959 case $ac_mode in
35962 # CONFIG_FILE
35965 case $INSTALL in
35966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35968 esac
35969 _ACEOF
35971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35972 # If the template does not know about datarootdir, expand it.
35973 # FIXME: This hack should be removed a few years after 2.60.
35974 ac_datarootdir_hack=; ac_datarootdir_seen=
35975 ac_sed_dataroot='
35976 /datarootdir/ {
35980 /@datadir@/p
35981 /@docdir@/p
35982 /@infodir@/p
35983 /@localedir@/p
35984 /@mandir@/p'
35985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35986 *datarootdir*) ac_datarootdir_seen=yes;;
35987 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35990 _ACEOF
35991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35992 ac_datarootdir_hack='
35993 s&@datadir@&$datadir&g
35994 s&@docdir@&$docdir&g
35995 s&@infodir@&$infodir&g
35996 s&@localedir@&$localedir&g
35997 s&@mandir@&$mandir&g
35998 s&\\\${datarootdir}&$datarootdir&g' ;;
35999 esac
36000 _ACEOF
36002 # Neutralize VPATH when `$srcdir' = `.'.
36003 # Shell code in configure.ac might set extrasub.
36004 # FIXME: do we really want to maintain this feature?
36005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36006 ac_sed_extra="$ac_vpsub
36007 $extrasub
36008 _ACEOF
36009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36011 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36012 s|@configure_input@|$ac_sed_conf_input|;t t
36013 s&@top_builddir@&$ac_top_builddir_sub&;t t
36014 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36015 s&@srcdir@&$ac_srcdir&;t t
36016 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36017 s&@top_srcdir@&$ac_top_srcdir&;t t
36018 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36019 s&@builddir@&$ac_builddir&;t t
36020 s&@abs_builddir@&$ac_abs_builddir&;t t
36021 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36022 s&@INSTALL@&$ac_INSTALL&;t t
36023 $ac_datarootdir_hack
36025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36026 if $ac_cs_awk_getline; then
36027 $AWK -f "$ac_tmp/subs.awk"
36028 else
36029 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36030 fi \
36031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36038 which seems to be undefined. Please make sure it is defined" >&5
36039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36040 which seems to be undefined. Please make sure it is defined" >&2;}
36042 rm -f "$ac_tmp/stdin"
36043 case $ac_file in
36044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36046 esac \
36047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36051 # CONFIG_HEADER
36053 if test x"$ac_file" != x-; then
36055 $as_echo "/* $configure_input */" \
36056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36057 } >"$ac_tmp/config.h" \
36058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36062 else
36063 rm -f "$ac_file"
36064 mv "$ac_tmp/config.h" "$ac_file" \
36065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36067 else
36068 $as_echo "/* $configure_input */" \
36069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36070 || as_fn_error $? "could not create -" "$LINENO" 5
36075 # CONFIG_LINK
36078 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36080 else
36081 # Prefer the file from the source tree if names are identical.
36082 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36083 ac_source=$srcdir/$ac_source
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36087 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36089 if test ! -r "$ac_source"; then
36090 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36092 rm -f "$ac_file"
36094 # Try a relative symlink, then a hard link, then a copy.
36095 case $ac_source in
36096 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36097 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36098 esac
36099 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36100 ln "$ac_source" "$ac_file" 2>/dev/null ||
36101 cp -p "$ac_source" "$ac_file" ||
36102 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36105 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36106 $as_echo "$as_me: executing $ac_file commands" >&6;}
36108 esac
36111 case $ac_file$ac_mode in
36112 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36113 "gccdepdir":C)
36114 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36115 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36117 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36118 done ;;
36119 "default-1":C)
36120 for ac_file in $CONFIG_FILES; do
36121 # Support "outfile[:infile[:infile...]]"
36122 case "$ac_file" in
36123 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36124 esac
36125 # PO directories have a Makefile.in generated from Makefile.in.in.
36126 case "$ac_file" in */Makefile.in)
36127 # Adjust a relative srcdir.
36128 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36129 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36130 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36131 # In autoconf-2.13 it is called $ac_given_srcdir.
36132 # In autoconf-2.50 it is called $srcdir.
36133 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36134 case "$ac_given_srcdir" in
36135 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36136 /*) top_srcdir="$ac_given_srcdir" ;;
36137 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36138 esac
36139 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36140 rm -f "$ac_dir/POTFILES"
36141 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36142 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36143 POMAKEFILEDEPS="POTFILES.in"
36144 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36145 # on $ac_dir but don't depend on user-specified configuration
36146 # parameters.
36147 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36148 # The LINGUAS file contains the set of available languages.
36149 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36150 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36152 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36153 # Hide the ALL_LINGUAS assigment from automake.
36154 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36155 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36156 else
36157 # The set of available languages was given in configure.ac.
36158 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36160 case "$ac_given_srcdir" in
36161 .) srcdirpre= ;;
36162 *) srcdirpre='$(srcdir)/' ;;
36163 esac
36164 POFILES=
36165 GMOFILES=
36166 UPDATEPOFILES=
36167 DUMMYPOFILES=
36168 for lang in $ALL_LINGUAS; do
36169 POFILES="$POFILES $srcdirpre$lang.po"
36170 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36171 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36172 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36173 done
36174 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36175 # environment variable.
36176 INST_LINGUAS=
36177 if test -n "$ALL_LINGUAS"; then
36178 for presentlang in $ALL_LINGUAS; do
36179 useit=no
36180 if test "%UNSET%" != "$LINGUAS"; then
36181 desiredlanguages="$LINGUAS"
36182 else
36183 desiredlanguages="$ALL_LINGUAS"
36185 for desiredlang in $desiredlanguages; do
36186 # Use the presentlang catalog if desiredlang is
36187 # a. equal to presentlang, or
36188 # b. a variant of presentlang (because in this case,
36189 # presentlang can be used as a fallback for messages
36190 # which are not translated in the desiredlang catalog).
36191 case "$desiredlang" in
36192 "$presentlang"*) useit=yes;;
36193 esac
36194 done
36195 if test $useit = yes; then
36196 INST_LINGUAS="$INST_LINGUAS $presentlang"
36198 done
36200 CATALOGS=
36201 if test -n "$INST_LINGUAS"; then
36202 for lang in $INST_LINGUAS; do
36203 CATALOGS="$CATALOGS $lang.gmo"
36204 done
36206 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36207 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36208 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36209 if test -f "$f"; then
36210 case "$f" in
36211 *.orig | *.bak | *~) ;;
36212 *) cat "$f" >> "$ac_dir/Makefile" ;;
36213 esac
36215 done
36218 esac
36219 done ;;
36220 "as":F) chmod +x as ;;
36221 "collect-ld":F) chmod +x collect-ld ;;
36222 "nm":F) chmod +x nm ;;
36223 "dsymutil":F) chmod +x dsymutil ;;
36224 "default":C)
36225 case ${CONFIG_HEADERS} in
36226 *auto-host.h:config.in*)
36227 echo > cstamp-h ;;
36228 esac
36229 # Make sure all the subdirs exist.
36230 for d in $subdirs doc build common c-family
36232 test -d $d || mkdir $d
36233 done
36236 esac
36237 done # for ac_tag
36240 as_fn_exit 0
36241 _ACEOF
36242 ac_clean_files=$ac_clean_files_save
36244 test $ac_write_fail = 0 ||
36245 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36248 # configure is writing to config.log, and then calls config.status.
36249 # config.status does its own redirection, appending to config.log.
36250 # Unfortunately, on DOS this fails, as config.log is still kept open
36251 # by configure, so config.status won't be able to write to it; its
36252 # output is simply discarded. So we exec the FD to /dev/null,
36253 # effectively closing config.log, so it can be properly (re)opened and
36254 # appended to by config.status. When coming back to configure, we
36255 # need to make the FD available again.
36256 if test "$no_create" != yes; then
36257 ac_cs_success=:
36258 ac_config_status_args=
36259 test "$silent" = yes &&
36260 ac_config_status_args="$ac_config_status_args --quiet"
36261 exec 5>/dev/null
36262 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36263 exec 5>>config.log
36264 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36265 # would make configure fail if this is the last instruction.
36266 $ac_cs_success || as_fn_exit 1
36268 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36270 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}