libstdc++: Simplify std::any to fix -Wdeprecated-declarations warning
[official-gcc.git] / gcc / configure
blob3d301b6ecd3df1352322260de69475012f04604b
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 EXTRA_GCC_LIBS
813 GNAT_LIBEXC
814 COLLECT2_LIBS
815 CXXDEPMODE
816 DEPDIR
817 am__leading_dot
818 doc_build_sys
821 HAVE_PYTHON
822 PYTHON
823 BISON
824 FLEX
825 GENERATED_MANPAGES
826 MAKEINFO_TOC_INLINE_FLAG
827 BUILD_INFO
828 MAKEINFO
829 have_mktemp_command
830 make_compare_target
831 INSTALL_DATA
832 INSTALL_PROGRAM
833 INSTALL
834 ranlib_flags
835 RANLIB
837 LN_S
839 SET_MAKE
840 omp_device_property_deps
841 omp_device_properties
842 accel_dir_suffix
843 real_target_noncanonical
844 enable_as_accelerator
845 gnat_install_lib
846 REPORT_BUGS_TEXI
847 REPORT_BUGS_TO
848 PKGVERSION
849 CONFIGURE_SPECS
850 enable_gcov
851 enable_shared
852 enable_fixed_point
853 enable_decimal_float
854 DEFAULT_INSNEMIT_PARTITIONS
855 DEFAULT_MATCHPD_PARTITIONS
856 with_float
857 with_cpu
858 enable_multiarch
859 enable_multilib
860 coverage_flags
861 valgrind_command
862 valgrind_path_defines
863 valgrind_path
864 TREECHECKING
865 noexception_flags
866 warn_cxxflags
867 warn_cflags
868 c_strict_warn
869 strict_warn
870 c_loose_warn
871 loose_warn
872 aliasing_flags
874 EGREP
875 GREP
876 CXXCPP
877 PICFLAG_FOR_TARGET
878 GDCFLAGS
880 GNATMAKE
881 GNATBIND
882 ac_ct_CXX
883 CXXFLAGS
885 OBJEXT
886 EXEEXT
887 ac_ct_CC
888 CPPFLAGS
889 LDFLAGS
890 CFLAGS
892 GENINSRC
893 CROSS_SYSTEM_HEADER_DIR
894 TARGET_SYSTEM_ROOT_DEFINE
895 TARGET_SYSTEM_ROOT
896 SYSROOT_CFLAGS_FOR_TARGET
897 target_subdir
898 host_subdir
899 build_subdir
900 build_libsubdir
901 target_noncanonical
902 host_noncanonical
903 target_os
904 target_vendor
905 target_cpu
906 target
907 host_os
908 host_vendor
909 host_cpu
910 host
911 build_os
912 build_vendor
913 build_cpu
914 build
915 target_alias
916 host_alias
917 build_alias
918 LIBS
919 ECHO_T
920 ECHO_N
921 ECHO_C
922 DEFS
923 mandir
924 localedir
925 libdir
926 psdir
927 pdfdir
928 dvidir
929 htmldir
930 infodir
931 docdir
932 oldincludedir
933 includedir
934 localstatedir
935 sharedstatedir
936 sysconfdir
937 datadir
938 datarootdir
939 libexecdir
940 sbindir
941 bindir
942 program_transform_name
943 prefix
944 exec_prefix
945 PACKAGE_URL
946 PACKAGE_BUGREPORT
947 PACKAGE_STRING
948 PACKAGE_VERSION
949 PACKAGE_TARNAME
950 PACKAGE_NAME
951 PATH_SEPARATOR
952 SHELL'
953 ac_subst_files='option_includes
954 language_hooks'
955 ac_user_opts='
956 enable_option_checking
957 with_build_libsubdir
958 with_local_prefix
959 with_native_system_header_dir
960 with_build_sysroot
961 with_sysroot
962 with_gxx_include_dir
963 with_gxx_libcxx_include_dir
964 with_cpp_install_dir
965 enable_generated_files_in_srcdir
966 with_gnu_ld
967 with_ld
968 with_demangler_in_ld
969 with_dsymutil
970 with_gnu_as
971 with_as
972 enable_largefile
973 enable_build_format_warnings
974 enable_werror_always
975 enable_checking
976 enable_coverage
977 enable_gather_detailed_mem_stats
978 enable_valgrind_annotations
979 enable_multilib
980 enable_multiarch
981 with_stack_clash_protection_guard_size
982 with_matchpd_partitions
983 with_insnemit_partitions
984 enable___cxa_atexit
985 enable_decimal_float
986 enable_fixed_point
987 enable_threads
988 enable_tls
989 enable_vtable_verify
990 enable_analyzer
991 enable_objc_gc
992 with_dwarf2
993 enable_shared
994 enable_gcov
995 with_specs
996 with_pkgversion
997 with_bugurl
998 with_documentation_root_url
999 with_changes_root_url
1000 enable_languages
1001 with_multilib_list
1002 with_multilib_generator
1003 with_zstd
1004 with_zstd_include
1005 with_zstd_lib
1006 enable_rpath
1007 with_libiconv_prefix
1008 with_libiconv_type
1009 enable_sjlj_exceptions
1010 enable_win32_utf8_manifest
1011 with_gcc_major_version_only
1012 enable_nls
1013 with_libintl_prefix
1014 with_libintl_type
1015 enable_secureplt
1016 enable_mingw_wildcard
1017 enable_large_address_aware
1018 enable_leading_mingw64_underscores
1019 enable_cld
1020 enable_frame_pointer
1021 enable_win32_registry
1022 enable_static
1023 with_pic
1024 enable_fast_install
1025 enable_libtool_lock
1026 enable_darwin_at_rpath
1027 with_darwin_extra_rpath
1028 enable_ld
1029 enable_gold
1030 with_plugin_ld
1031 enable_gnu_indirect_function
1032 enable_initfini_array
1033 enable_comdat
1034 enable_newlib_nano_formatted_io
1035 enable_standard_branch_protection
1036 enable_fix_cortex_a53_835769
1037 enable_fix_cortex_a53_843419
1038 with_glibc_version
1039 enable_gnu_unique_object
1040 enable_linker_build_id
1041 enable_libssp
1042 enable_default_ssp
1043 with_long_double_128
1044 with_long_double_format
1045 with_gc
1046 with_system_zlib
1047 enable_maintainer_mode
1048 enable_link_mutex
1049 enable_link_serialization
1050 enable_version_specific_runtime_libs
1051 enable_plugin
1052 enable_host_shared
1053 enable_host_pie
1054 enable_host_bind_now
1055 enable_libquadmath_support
1056 with_linker_hash_style
1057 with_diagnostics_color
1058 with_diagnostics_urls
1059 enable_default_pie
1060 enable_cet
1061 enable_s390_excess_float_precision
1063 ac_precious_vars='build_alias
1064 host_alias
1065 target_alias
1067 CFLAGS
1068 LDFLAGS
1069 LIBS
1070 CPPFLAGS
1072 CXXFLAGS
1074 CXXCPP
1076 GMPLIBS
1077 GMPINC
1078 ISLLIBS
1079 ISLINC'
1082 # Initialize some variables set by options.
1083 ac_init_help=
1084 ac_init_version=false
1085 ac_unrecognized_opts=
1086 ac_unrecognized_sep=
1087 # The variables have the same names as the options, with
1088 # dashes changed to underlines.
1089 cache_file=/dev/null
1090 exec_prefix=NONE
1091 no_create=
1092 no_recursion=
1093 prefix=NONE
1094 program_prefix=NONE
1095 program_suffix=NONE
1096 program_transform_name=s,x,x,
1097 silent=
1098 site=
1099 srcdir=
1100 verbose=
1101 x_includes=NONE
1102 x_libraries=NONE
1104 # Installation directory options.
1105 # These are left unexpanded so users can "make install exec_prefix=/foo"
1106 # and all the variables that are supposed to be based on exec_prefix
1107 # by default will actually change.
1108 # Use braces instead of parens because sh, perl, etc. also accept them.
1109 # (The list follows the same order as the GNU Coding Standards.)
1110 bindir='${exec_prefix}/bin'
1111 sbindir='${exec_prefix}/sbin'
1112 libexecdir='${exec_prefix}/libexec'
1113 datarootdir='${prefix}/share'
1114 datadir='${datarootdir}'
1115 sysconfdir='${prefix}/etc'
1116 sharedstatedir='${prefix}/com'
1117 localstatedir='${prefix}/var'
1118 includedir='${prefix}/include'
1119 oldincludedir='/usr/include'
1120 docdir='${datarootdir}/doc/${PACKAGE}'
1121 infodir='${datarootdir}/info'
1122 htmldir='${docdir}'
1123 dvidir='${docdir}'
1124 pdfdir='${docdir}'
1125 psdir='${docdir}'
1126 libdir='${exec_prefix}/lib'
1127 localedir='${datarootdir}/locale'
1128 mandir='${datarootdir}/man'
1130 ac_prev=
1131 ac_dashdash=
1132 for ac_option
1134 # If the previous option needs an argument, assign it.
1135 if test -n "$ac_prev"; then
1136 eval $ac_prev=\$ac_option
1137 ac_prev=
1138 continue
1141 case $ac_option in
1142 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1143 *=) ac_optarg= ;;
1144 *) ac_optarg=yes ;;
1145 esac
1147 # Accept the important Cygnus configure options, so we can diagnose typos.
1149 case $ac_dashdash$ac_option in
1151 ac_dashdash=yes ;;
1153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1154 ac_prev=bindir ;;
1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156 bindir=$ac_optarg ;;
1158 -build | --build | --buil | --bui | --bu)
1159 ac_prev=build_alias ;;
1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161 build_alias=$ac_optarg ;;
1163 -cache-file | --cache-file | --cache-fil | --cache-fi \
1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165 ac_prev=cache_file ;;
1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168 cache_file=$ac_optarg ;;
1170 --config-cache | -C)
1171 cache_file=config.cache ;;
1173 -datadir | --datadir | --datadi | --datad)
1174 ac_prev=datadir ;;
1175 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176 datadir=$ac_optarg ;;
1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179 | --dataroo | --dataro | --datar)
1180 ac_prev=datarootdir ;;
1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183 datarootdir=$ac_optarg ;;
1185 -disable-* | --disable-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid feature name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "enable_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval enable_$ac_useropt=no ;;
1201 -docdir | --docdir | --docdi | --doc | --do)
1202 ac_prev=docdir ;;
1203 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1204 docdir=$ac_optarg ;;
1206 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1207 ac_prev=dvidir ;;
1208 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1209 dvidir=$ac_optarg ;;
1211 -enable-* | --enable-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid feature name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "enable_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval enable_$ac_useropt=\$ac_optarg ;;
1227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229 | --exec | --exe | --ex)
1230 ac_prev=exec_prefix ;;
1231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233 | --exec=* | --exe=* | --ex=*)
1234 exec_prefix=$ac_optarg ;;
1236 -gas | --gas | --ga | --g)
1237 # Obsolete; use --with-gas.
1238 with_gas=yes ;;
1240 -help | --help | --hel | --he | -h)
1241 ac_init_help=long ;;
1242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243 ac_init_help=recursive ;;
1244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245 ac_init_help=short ;;
1247 -host | --host | --hos | --ho)
1248 ac_prev=host_alias ;;
1249 -host=* | --host=* | --hos=* | --ho=*)
1250 host_alias=$ac_optarg ;;
1252 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1253 ac_prev=htmldir ;;
1254 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1255 | --ht=*)
1256 htmldir=$ac_optarg ;;
1258 -includedir | --includedir | --includedi | --included | --include \
1259 | --includ | --inclu | --incl | --inc)
1260 ac_prev=includedir ;;
1261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262 | --includ=* | --inclu=* | --incl=* | --inc=*)
1263 includedir=$ac_optarg ;;
1265 -infodir | --infodir | --infodi | --infod | --info | --inf)
1266 ac_prev=infodir ;;
1267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268 infodir=$ac_optarg ;;
1270 -libdir | --libdir | --libdi | --libd)
1271 ac_prev=libdir ;;
1272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273 libdir=$ac_optarg ;;
1275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276 | --libexe | --libex | --libe)
1277 ac_prev=libexecdir ;;
1278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279 | --libexe=* | --libex=* | --libe=*)
1280 libexecdir=$ac_optarg ;;
1282 -localedir | --localedir | --localedi | --localed | --locale)
1283 ac_prev=localedir ;;
1284 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285 localedir=$ac_optarg ;;
1287 -localstatedir | --localstatedir | --localstatedi | --localstated \
1288 | --localstate | --localstat | --localsta | --localst | --locals)
1289 ac_prev=localstatedir ;;
1290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292 localstatedir=$ac_optarg ;;
1294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1295 ac_prev=mandir ;;
1296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297 mandir=$ac_optarg ;;
1299 -nfp | --nfp | --nf)
1300 # Obsolete; use --without-fp.
1301 with_fp=no ;;
1303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304 | --no-cr | --no-c | -n)
1305 no_create=yes ;;
1307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1309 no_recursion=yes ;;
1311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313 | --oldin | --oldi | --old | --ol | --o)
1314 ac_prev=oldincludedir ;;
1315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318 oldincludedir=$ac_optarg ;;
1320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1321 ac_prev=prefix ;;
1322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323 prefix=$ac_optarg ;;
1325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326 | --program-pre | --program-pr | --program-p)
1327 ac_prev=program_prefix ;;
1328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330 program_prefix=$ac_optarg ;;
1332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333 | --program-suf | --program-su | --program-s)
1334 ac_prev=program_suffix ;;
1335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337 program_suffix=$ac_optarg ;;
1339 -program-transform-name | --program-transform-name \
1340 | --program-transform-nam | --program-transform-na \
1341 | --program-transform-n | --program-transform- \
1342 | --program-transform | --program-transfor \
1343 | --program-transfo | --program-transf \
1344 | --program-trans | --program-tran \
1345 | --progr-tra | --program-tr | --program-t)
1346 ac_prev=program_transform_name ;;
1347 -program-transform-name=* | --program-transform-name=* \
1348 | --program-transform-nam=* | --program-transform-na=* \
1349 | --program-transform-n=* | --program-transform-=* \
1350 | --program-transform=* | --program-transfor=* \
1351 | --program-transfo=* | --program-transf=* \
1352 | --program-trans=* | --program-tran=* \
1353 | --progr-tra=* | --program-tr=* | --program-t=*)
1354 program_transform_name=$ac_optarg ;;
1356 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1357 ac_prev=pdfdir ;;
1358 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359 pdfdir=$ac_optarg ;;
1361 -psdir | --psdir | --psdi | --psd | --ps)
1362 ac_prev=psdir ;;
1363 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1364 psdir=$ac_optarg ;;
1366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367 | -silent | --silent | --silen | --sile | --sil)
1368 silent=yes ;;
1370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1371 ac_prev=sbindir ;;
1372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1373 | --sbi=* | --sb=*)
1374 sbindir=$ac_optarg ;;
1376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378 | --sharedst | --shareds | --shared | --share | --shar \
1379 | --sha | --sh)
1380 ac_prev=sharedstatedir ;;
1381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1384 | --sha=* | --sh=*)
1385 sharedstatedir=$ac_optarg ;;
1387 -site | --site | --sit)
1388 ac_prev=site ;;
1389 -site=* | --site=* | --sit=*)
1390 site=$ac_optarg ;;
1392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1393 ac_prev=srcdir ;;
1394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395 srcdir=$ac_optarg ;;
1397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398 | --syscon | --sysco | --sysc | --sys | --sy)
1399 ac_prev=sysconfdir ;;
1400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402 sysconfdir=$ac_optarg ;;
1404 -target | --target | --targe | --targ | --tar | --ta | --t)
1405 ac_prev=target_alias ;;
1406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407 target_alias=$ac_optarg ;;
1409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1410 verbose=yes ;;
1412 -version | --version | --versio | --versi | --vers | -V)
1413 ac_init_version=: ;;
1415 -with-* | --with-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error $? "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "with_$ac_useropt"
1425 "*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval with_$ac_useropt=\$ac_optarg ;;
1431 -without-* | --without-*)
1432 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 as_fn_error $? "invalid package name: $ac_useropt"
1436 ac_useropt_orig=$ac_useropt
1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438 case $ac_user_opts in
1440 "with_$ac_useropt"
1441 "*) ;;
1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1443 ac_unrecognized_sep=', ';;
1444 esac
1445 eval with_$ac_useropt=no ;;
1447 --x)
1448 # Obsolete; use --with-x.
1449 with_x=yes ;;
1451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1452 | --x-incl | --x-inc | --x-in | --x-i)
1453 ac_prev=x_includes ;;
1454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1456 x_includes=$ac_optarg ;;
1458 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1460 ac_prev=x_libraries ;;
1461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1463 x_libraries=$ac_optarg ;;
1465 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1466 Try \`$0 --help' for more information"
1469 *=*)
1470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1471 # Reject names that are not valid shell variable names.
1472 case $ac_envvar in #(
1473 '' | [0-9]* | *[!_$as_cr_alnum]* )
1474 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1475 esac
1476 eval $ac_envvar=\$ac_optarg
1477 export $ac_envvar ;;
1480 # FIXME: should be removed in autoconf 3.0.
1481 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1483 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1484 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1487 esac
1488 done
1490 if test -n "$ac_prev"; then
1491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1492 as_fn_error $? "missing argument to $ac_option"
1495 if test -n "$ac_unrecognized_opts"; then
1496 case $enable_option_checking in
1497 no) ;;
1498 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1499 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1500 esac
1503 # Check all directory arguments for consistency.
1504 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1505 datadir sysconfdir sharedstatedir localstatedir includedir \
1506 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1507 libdir localedir mandir
1509 eval ac_val=\$$ac_var
1510 # Remove trailing slashes.
1511 case $ac_val in
1512 */ )
1513 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1514 eval $ac_var=\$ac_val;;
1515 esac
1516 # Be sure to have absolute directory names.
1517 case $ac_val in
1518 [\\/$]* | ?:[\\/]* ) continue;;
1519 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1520 esac
1521 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1522 done
1524 # There might be people who depend on the old broken behavior: `$host'
1525 # used to hold the argument of --host etc.
1526 # FIXME: To remove some day.
1527 build=$build_alias
1528 host=$host_alias
1529 target=$target_alias
1531 # FIXME: To remove some day.
1532 if test "x$host_alias" != x; then
1533 if test "x$build_alias" = x; then
1534 cross_compiling=maybe
1535 elif test "x$build_alias" != "x$host_alias"; then
1536 cross_compiling=yes
1540 ac_tool_prefix=
1541 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543 test "$silent" = yes && exec 6>/dev/null
1546 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1547 ac_ls_di=`ls -di .` &&
1548 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1549 as_fn_error $? "working directory cannot be determined"
1550 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1551 as_fn_error $? "pwd does not report name of working directory"
1554 # Find the source files, if location was not specified.
1555 if test -z "$srcdir"; then
1556 ac_srcdir_defaulted=yes
1557 # Try the directory containing this script, then the parent directory.
1558 ac_confdir=`$as_dirname -- "$as_myself" ||
1559 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1560 X"$as_myself" : 'X\(//\)[^/]' \| \
1561 X"$as_myself" : 'X\(//\)$' \| \
1562 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1563 $as_echo X"$as_myself" |
1564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1565 s//\1/
1568 /^X\(\/\/\)[^/].*/{
1569 s//\1/
1572 /^X\(\/\/\)$/{
1573 s//\1/
1576 /^X\(\/\).*/{
1577 s//\1/
1580 s/.*/./; q'`
1581 srcdir=$ac_confdir
1582 if test ! -r "$srcdir/$ac_unique_file"; then
1583 srcdir=..
1585 else
1586 ac_srcdir_defaulted=no
1588 if test ! -r "$srcdir/$ac_unique_file"; then
1589 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1590 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1593 ac_abs_confdir=`(
1594 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1595 pwd)`
1596 # When building in place, set srcdir=.
1597 if test "$ac_abs_confdir" = "$ac_pwd"; then
1598 srcdir=.
1600 # Remove unnecessary trailing slashes from srcdir.
1601 # Double slashes in file names in object file debugging info
1602 # mess up M-x gdb in Emacs.
1603 case $srcdir in
1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1605 esac
1606 for ac_var in $ac_precious_vars; do
1607 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608 eval ac_env_${ac_var}_value=\$${ac_var}
1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1611 done
1614 # Report the --help message.
1616 if test "$ac_init_help" = "long"; then
1617 # Omit some internal or obsolete options to make the list less imposing.
1618 # This message is too long to be a string in the A/UX 3.1 sh.
1619 cat <<_ACEOF
1620 \`configure' configures this package to adapt to many kinds of systems.
1622 Usage: $0 [OPTION]... [VAR=VALUE]...
1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625 VAR=VALUE. See below for descriptions of some of the useful variables.
1627 Defaults for the options are specified in brackets.
1629 Configuration:
1630 -h, --help display this help and exit
1631 --help=short display options specific to this package
1632 --help=recursive display the short help of all the included packages
1633 -V, --version display version information and exit
1634 -q, --quiet, --silent do not print \`checking ...' messages
1635 --cache-file=FILE cache test results in FILE [disabled]
1636 -C, --config-cache alias for \`--cache-file=config.cache'
1637 -n, --no-create do not create output files
1638 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640 Installation directories:
1641 --prefix=PREFIX install architecture-independent files in PREFIX
1642 [$ac_default_prefix]
1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1644 [PREFIX]
1646 By default, \`make install' will install all the files in
1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649 for instance \`--prefix=\$HOME'.
1651 For better control, use the options below.
1653 Fine tuning of the installation directories:
1654 --bindir=DIR user executables [EPREFIX/bin]
1655 --sbindir=DIR system admin executables [EPREFIX/sbin]
1656 --libexecdir=DIR program executables [EPREFIX/libexec]
1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1660 --libdir=DIR object code libraries [EPREFIX/lib]
1661 --includedir=DIR C header files [PREFIX/include]
1662 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1665 --infodir=DIR info documentation [DATAROOTDIR/info]
1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1667 --mandir=DIR man documentation [DATAROOTDIR/man]
1668 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1669 --htmldir=DIR html documentation [DOCDIR]
1670 --dvidir=DIR dvi documentation [DOCDIR]
1671 --pdfdir=DIR pdf documentation [DOCDIR]
1672 --psdir=DIR ps documentation [DOCDIR]
1673 _ACEOF
1675 cat <<\_ACEOF
1677 Program names:
1678 --program-prefix=PREFIX prepend PREFIX to installed program names
1679 --program-suffix=SUFFIX append SUFFIX to installed program names
1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1682 System types:
1683 --build=BUILD configure for building on BUILD [guessed]
1684 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1685 --target=TARGET configure for building compilers for TARGET [HOST]
1686 _ACEOF
1689 if test -n "$ac_init_help"; then
1691 cat <<\_ACEOF
1693 Optional Features:
1694 --disable-option-checking ignore unrecognized --enable/--with options
1695 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1696 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1697 --enable-generated-files-in-srcdir
1698 put copies of generated files in source dir intended
1699 for creating source tarballs for users without
1700 texinfo bison or flex
1701 --disable-largefile omit support for large files
1702 --disable-build-format-warnings
1703 don't use -Wformat while building GCC
1704 --enable-werror-always enable -Werror despite compiler version
1705 --enable-checking[=LIST]
1706 enable expensive run-time checks. With LIST, enable
1707 only specific categories of checks. Categories are:
1708 yes,no,all,none,release. Flags are:
1709 assert,df,extra,fold,gc,gcac,gimple,misc,
1710 rtlflag,rtl,runtime,tree,valgrind,types
1711 --enable-coverage[=LEVEL]
1712 enable compiler's code coverage collection. Use to
1713 measure compiler performance and locate unused parts
1714 of the compiler. With LEVEL, specify optimization.
1715 Values are opt, noopt, default is noopt
1716 --enable-gather-detailed-mem-stats
1717 enable detailed memory allocation stats gathering
1718 --enable-valgrind-annotations
1719 enable valgrind runtime interaction
1720 --enable-multilib enable library support for multiple ABIs
1721 --enable-multiarch enable support for multiarch paths
1722 --enable-__cxa_atexit enable __cxa_atexit for C++
1723 --enable-decimal-float={no,yes,bid,dpd}
1724 enable decimal float extension to C. Selecting 'bid'
1725 or 'dpd' choses which decimal floating point format
1726 to use
1727 --enable-fixed-point enable fixed-point arithmetic extension to C
1728 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1729 package
1730 --enable-tls enable or disable generation of tls code overriding
1731 the assembler check for tls support
1732 --enable-vtable-verify enable vtable verification feature
1733 --disable-analyzer disable -fanalyzer static analyzer
1734 --enable-objc-gc enable the use of Boehm's garbage collector with the
1735 GNU Objective-C runtime
1736 --disable-shared don't provide a shared libgcc
1737 --disable-gcov don't provide libgcov and related host tools
1738 --enable-languages=LIST specify which front-ends to build
1739 --disable-rpath do not hardcode runtime library paths
1740 --enable-sjlj-exceptions
1741 arrange to use setjmp/longjmp exception handling
1742 --disable-win32-utf8-manifest
1743 disable embedding a utf8 manifest on mingw hosts
1744 --enable-win32-utf8-manifest
1745 enable embedding a utf8 manifest on mingw hosts
1746 (default)
1747 --disable-nls do not use Native Language Support
1748 --enable-secureplt enable -msecure-plt by default for PowerPC
1749 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1750 Default to platform configuration
1751 --enable-large-address-aware
1752 Link mingw executables with --large-address-aware
1753 --enable-leading-mingw64-underscores
1754 enable leading underscores on 64 bit mingw targets
1755 --enable-cld enable -mcld by default for 32bit x86
1756 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1757 --disable-win32-registry
1758 disable lookup of installation paths in the Registry
1759 on Windows hosts
1760 --enable-win32-registry enable registry lookup (default)
1761 --enable-win32-registry=KEY
1762 use KEY instead of GCC version as the last portion
1763 of the registry key
1764 --enable-shared[=PKGS] build shared libraries [default=yes]
1765 --enable-static[=PKGS] build static libraries [default=yes]
1766 --enable-fast-install[=PKGS]
1767 optimize for fast installation [default=yes]
1768 --disable-libtool-lock avoid locking (might break parallel builds)
1769 --enable-darwin-at-rpath
1770 install libraries with @rpath/library-name, requires
1771 rpaths to be added to executables
1772 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1773 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1774 --enable-gnu-indirect-function
1775 enable the use of the @gnu_indirect_function to
1776 glibc systems
1777 --enable-initfini-array use .init_array/.fini_array sections
1778 --enable-comdat enable COMDAT group support
1779 --enable-newlib-nano-formatted-io
1780 Use nano version formatted IO
1782 --enable-standard-branch-protection
1783 enable Branch Target Identification Mechanism and
1784 Return Address Signing by default for AArch64
1785 --disable-standard-branch-protection
1786 disable Branch Target Identification Mechanism and
1787 Return Address Signing by default for AArch64
1790 --enable-fix-cortex-a53-835769
1791 enable workaround for AArch64 Cortex-A53 erratum
1792 835769 by default
1793 --disable-fix-cortex-a53-835769
1794 disable workaround for AArch64 Cortex-A53 erratum
1795 835769 by default
1798 --enable-fix-cortex-a53-843419
1799 enable workaround for AArch64 Cortex-A53 erratum
1800 843419 by default
1801 --disable-fix-cortex-a53-843419
1802 disable workaround for AArch64 Cortex-A53 erratum
1803 843419 by default
1805 --enable-gnu-unique-object
1806 enable the use of the @gnu_unique_object ELF
1807 extension on glibc systems
1808 --enable-linker-build-id
1809 compiler will always pass --build-id to linker
1810 --enable-libssp enable linking against libssp
1811 --enable-default-ssp enable Stack Smashing Protection as default
1812 --enable-maintainer-mode
1813 enable make rules and dependencies not useful (and
1814 sometimes confusing) to the casual installer
1815 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1816 thrashing on the build machine
1817 --enable-link-serialization
1818 avoid linking multiple GCC front-ends at once using
1819 make dependencies to avoid thrashing on the build
1820 machine
1821 --enable-version-specific-runtime-libs
1822 specify that runtime libraries should be installed
1823 in a compiler-specific directory
1824 --enable-plugin enable plugin support
1825 --enable-host-shared build host code as shared libraries
1826 --enable-host-pie build host code as PIE
1827 --enable-host-bind-now link host code as BIND_NOW
1828 --disable-libquadmath-support
1829 disable libquadmath support for Fortran
1830 --enable-default-pie enable Position Independent Executable as default
1831 --enable-cet enable Intel CET in host libraries [default=auto]
1832 --enable-s390-excess-float-precision
1833 on s390 targets, evaluate float with double
1834 precision when in standards-conforming mode
1836 Optional Packages:
1837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1839 --with-build-libsubdir=DIR Directory where to find libraries for build system
1840 --with-local-prefix=DIR specifies directory to put local include
1841 --with-native-system-header-dir=dir
1842 use dir as the directory to look for standard
1843 system header files in. Defaults to /usr/include.
1844 --with-build-sysroot=sysroot
1845 use sysroot as the system root during the build
1846 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1847 --with-gxx-include-dir=DIR
1848 specifies directory to put g++ header files
1849 --with-gxx-libcxx-include-dir=DIR
1850 specifies directory to find libc++ header files
1851 --with-cpp-install-dir=DIR
1852 install the user visible C preprocessor in DIR
1853 (relative to PREFIX) as well as PREFIX/bin
1854 --with-gnu-ld arrange to work with GNU ld
1855 --with-ld arrange to use the specified ld (full pathname)
1856 --with-demangler-in-ld try to use demangler in GNU ld
1857 --with-dsymutil arrange to use the specified dsymutil (full
1858 pathname)
1859 --with-gnu-as arrange to work with GNU as
1860 --with-as arrange to use the specified as (full pathname)
1861 --with-stack-clash-protection-guard-size=size
1862 Set the default stack clash protection guard size
1863 for specific targets as a power of two in bytes.
1864 --with-matchpd-partitions=num
1865 Set the number of partitions to make for gimple and
1866 generic when splitting match.pd. [default=10]
1867 --with-insnemit-partitions=num
1868 Set the number of partitions of insn-emit.cc for
1869 genemit to create. [default=10]
1870 --with-dwarf2 force the default debug format to be DWARF 2 (or
1871 later)
1872 --with-specs=SPECS add SPECS to driver command-line processing
1873 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1874 --with-bugurl=URL Direct users to URL to report a bug
1875 --with-documentation-root-url=URL
1876 Root for documentation URLs
1877 --with-changes-root-url=URL
1878 Root for GCC changes URLs
1879 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1880 SH and x86-64 only)
1881 --with-multilib-generator
1882 Multi-libs configuration string (RISC-V only)
1883 --with-zstd=PATH specify prefix directory for installed zstd library.
1884 Equivalent to --with-zstd-include=PATH/include plus
1885 --with-zstd-lib=PATH/lib
1886 --with-zstd-include=PATH
1887 specify directory for installed zstd include files
1888 --with-zstd-lib=PATH specify directory for the installed zstd library
1889 --with-gnu-ld assume the C compiler uses GNU ld default=no
1890 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1891 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1892 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1893 --with-gcc-major-version-only
1894 use only GCC major number in filesystem paths
1895 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1896 --without-libintl-prefix don't search for libintl in includedir and libdir
1897 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1898 --with-pic try to use only PIC/non-PIC objects [default=use
1899 both]
1900 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1901 --with-darwin-extra-rpath=[ARG]
1902 Specify a runpath directory, additional to those
1903 provided by the compiler
1904 --with-plugin-ld=[ARG] specify the plugin linker
1905 --with-glibc-version=M.N
1906 assume GCC used with glibc version M.N or later
1907 --with-long-double-128 use 128-bit long double by default
1908 --with-long-double-format={ieee,ibm}
1909 Specify whether PowerPC long double uses IEEE or IBM format
1911 --with-gc={page,zone} this option is not supported anymore. It used to
1912 choose the garbage collection mechanism to use with
1913 the compiler
1914 --with-system-zlib use installed libz
1915 --with-linker-hash-style={sysv,gnu,both}
1916 specify the linker hash style
1917 --with-diagnostics-color={never,auto,auto-if-env,always}
1918 specify the default of -fdiagnostics-color option
1919 auto-if-env stands for -fdiagnostics-color=auto if
1920 GCC_COLOR environment variable is present and
1921 -fdiagnostics-color=never otherwise
1922 --with-diagnostics-urls={never,auto,auto-if-env,always}
1923 specify the default of -fdiagnostics-urls option
1924 auto-if-env stands for -fdiagnostics-urls=auto if
1925 GCC_URLS or TERM_URLS environment variable is
1926 present and -fdiagnostics-urls=never otherwise
1928 Some influential environment variables:
1929 CC C compiler command
1930 CFLAGS C compiler flags
1931 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1932 nonstandard directory <lib dir>
1933 LIBS libraries to pass to the linker, e.g. -l<library>
1934 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1935 you have headers in a nonstandard directory <include dir>
1936 CXX C++ compiler command
1937 CXXFLAGS C++ compiler flags
1938 CXXCPP C++ preprocessor
1939 CPP C preprocessor
1940 GMPLIBS How to link GMP
1941 GMPINC How to find GMP include files
1942 ISLLIBS How to link isl
1943 ISLINC How to find isl include files
1945 Use these variables to override the choices made by `configure' or to help
1946 it to find libraries and programs with nonstandard names/locations.
1948 Report bugs to the package provider.
1949 _ACEOF
1950 ac_status=$?
1953 if test "$ac_init_help" = "recursive"; then
1954 # If there are subdirs, report their specific --help.
1955 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1956 test -d "$ac_dir" ||
1957 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1958 continue
1959 ac_builddir=.
1961 case "$ac_dir" in
1962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1965 # A ".." for each directory in $ac_dir_suffix.
1966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1967 case $ac_top_builddir_sub in
1968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1970 esac ;;
1971 esac
1972 ac_abs_top_builddir=$ac_pwd
1973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1974 # for backward compatibility:
1975 ac_top_builddir=$ac_top_build_prefix
1977 case $srcdir in
1978 .) # We are building in place.
1979 ac_srcdir=.
1980 ac_top_srcdir=$ac_top_builddir_sub
1981 ac_abs_top_srcdir=$ac_pwd ;;
1982 [\\/]* | ?:[\\/]* ) # Absolute name.
1983 ac_srcdir=$srcdir$ac_dir_suffix;
1984 ac_top_srcdir=$srcdir
1985 ac_abs_top_srcdir=$srcdir ;;
1986 *) # Relative name.
1987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1988 ac_top_srcdir=$ac_top_build_prefix$srcdir
1989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1990 esac
1991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1993 cd "$ac_dir" || { ac_status=$?; continue; }
1994 # Check for guested configure.
1995 if test -f "$ac_srcdir/configure.gnu"; then
1996 echo &&
1997 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1998 elif test -f "$ac_srcdir/configure"; then
1999 echo &&
2000 $SHELL "$ac_srcdir/configure" --help=recursive
2001 else
2002 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2003 fi || ac_status=$?
2004 cd "$ac_pwd" || { ac_status=$?; break; }
2005 done
2008 test -n "$ac_init_help" && exit $ac_status
2009 if $ac_init_version; then
2010 cat <<\_ACEOF
2011 configure
2012 generated by GNU Autoconf 2.69
2014 Copyright (C) 2012 Free Software Foundation, Inc.
2015 This configure script is free software; the Free Software Foundation
2016 gives unlimited permission to copy, distribute and modify it.
2017 _ACEOF
2018 exit
2021 ## ------------------------ ##
2022 ## Autoconf initialization. ##
2023 ## ------------------------ ##
2025 # ac_fn_c_try_compile LINENO
2026 # --------------------------
2027 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_c_try_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext
2032 if { { ac_try="$ac_compile"
2033 case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_compile") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest.$ac_objext; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2056 ac_retval=1
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 as_fn_set_status $ac_retval
2061 } # ac_fn_c_try_compile
2063 # ac_fn_cxx_try_compile LINENO
2064 # ----------------------------
2065 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_cxx_try_compile ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext
2070 if { { ac_try="$ac_compile"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_compile") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_cxx_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest.$ac_objext; then :
2089 ac_retval=0
2090 else
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=1
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_cxx_try_compile
2101 # ac_fn_cxx_try_cpp LINENO
2102 # ------------------------
2103 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_cxx_try_cpp ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_cpp conftest.$ac_ext"
2108 case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111 esac
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2115 ac_status=$?
2116 if test -s conftest.err; then
2117 grep -v '^ *+' conftest.err >conftest.er1
2118 cat conftest.er1 >&5
2119 mv -f conftest.er1 conftest.err
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; } > conftest.i && {
2123 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2124 test ! -s conftest.err
2125 }; then :
2126 ac_retval=0
2127 else
2128 $as_echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2131 ac_retval=1
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_cxx_try_cpp
2138 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2139 # ---------------------------------------------------------
2140 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2141 # the include files in INCLUDES and setting the cache variable VAR
2142 # accordingly.
2143 ac_fn_cxx_check_header_mongrel ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if eval \${$3+:} false; then :
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 else
2156 # Is the header compilable?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2158 $as_echo_n "checking $2 usability... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 #include <$2>
2163 _ACEOF
2164 if ac_fn_cxx_try_compile "$LINENO"; then :
2165 ac_header_compiler=yes
2166 else
2167 ac_header_compiler=no
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2171 $as_echo "$ac_header_compiler" >&6; }
2173 # Is the header present?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2175 $as_echo_n "checking $2 presence... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_cxx_try_cpp "$LINENO"; then :
2181 ac_header_preproc=yes
2182 else
2183 ac_header_preproc=no
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2187 $as_echo "$ac_header_preproc" >&6; }
2189 # So? What about this header?
2190 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2191 yes:no: )
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2193 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2197 no:yes:* )
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2199 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2201 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2203 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2205 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2209 esac
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if eval \${$3+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 eval "$3=\$ac_header_compiler"
2217 eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 } # ac_fn_cxx_check_header_mongrel
2225 # ac_fn_cxx_try_run LINENO
2226 # ------------------------
2227 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228 # that executables *can* be run.
2229 ac_fn_cxx_try_run ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { { ac_try="$ac_link"
2233 case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236 esac
2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238 $as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_link") 2>&5
2240 ac_status=$?
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243 { { case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246 esac
2247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248 $as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_try") 2>&5
2250 ac_status=$?
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; }; }; then :
2253 ac_retval=0
2254 else
2255 $as_echo "$as_me: program exited with status $ac_status" >&5
2256 $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2259 ac_retval=$ac_status
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2265 } # ac_fn_cxx_try_run
2267 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2268 # ---------------------------------------------------------
2269 # Tests whether HEADER exists and can be compiled using the include files in
2270 # INCLUDES, setting the cache variable VAR accordingly.
2271 ac_fn_cxx_check_header_compile ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2282 #include <$2>
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 eval "$3=yes"
2286 else
2287 eval "$3=no"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_cxx_check_header_compile
2298 # ac_fn_c_try_cpp LINENO
2299 # ----------------------
2300 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2301 ac_fn_c_try_cpp ()
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { { ac_try="$ac_cpp conftest.$ac_ext"
2305 case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2312 ac_status=$?
2313 if test -s conftest.err; then
2314 grep -v '^ *+' conftest.err >conftest.er1
2315 cat conftest.er1 >&5
2316 mv -f conftest.er1 conftest.err
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } > conftest.i && {
2320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2321 test ! -s conftest.err
2322 }; then :
2323 ac_retval=0
2324 else
2325 $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2328 ac_retval=1
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_c_try_cpp
2335 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2336 # ----------------------------------------------
2337 # Tries to find the compile-time value of EXPR in a program that includes
2338 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2339 # computed
2340 ac_fn_cxx_compute_int ()
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 if test "$cross_compiling" = yes; then
2344 # Depending upon the size, compute the lo and hi bounds.
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 static int test_array [1 - 2 * !(($2) >= 0)];
2352 test_array [0] = 0;
2353 return test_array [0];
2356 return 0;
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360 ac_lo=0 ac_mid=0
2361 while :; do
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2369 test_array [0] = 0;
2370 return test_array [0];
2373 return 0;
2375 _ACEOF
2376 if ac_fn_cxx_try_compile "$LINENO"; then :
2377 ac_hi=$ac_mid; break
2378 else
2379 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2380 if test $ac_lo -le $ac_mid; then
2381 ac_lo= ac_hi=
2382 break
2384 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 done
2388 else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2393 main ()
2395 static int test_array [1 - 2 * !(($2) < 0)];
2396 test_array [0] = 0;
2397 return test_array [0];
2400 return 0;
2402 _ACEOF
2403 if ac_fn_cxx_try_compile "$LINENO"; then :
2404 ac_hi=-1 ac_mid=-1
2405 while :; do
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2410 main ()
2412 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2413 test_array [0] = 0;
2414 return test_array [0];
2417 return 0;
2419 _ACEOF
2420 if ac_fn_cxx_try_compile "$LINENO"; then :
2421 ac_lo=$ac_mid; break
2422 else
2423 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2424 if test $ac_mid -le $ac_hi; then
2425 ac_lo= ac_hi=
2426 break
2428 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432 else
2433 ac_lo= ac_hi=
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 # Binary search between lo and hi bounds.
2439 while test "x$ac_lo" != "x$ac_hi"; do
2440 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2445 main ()
2447 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2448 test_array [0] = 0;
2449 return test_array [0];
2452 return 0;
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2456 ac_hi=$ac_mid
2457 else
2458 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 case $ac_lo in #((
2463 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2464 '') ac_retval=1 ;;
2465 esac
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2470 static long int longval () { return $2; }
2471 static unsigned long int ulongval () { return $2; }
2472 #include <stdio.h>
2473 #include <stdlib.h>
2475 main ()
2478 FILE *f = fopen ("conftest.val", "w");
2479 if (! f)
2480 return 1;
2481 if (($2) < 0)
2483 long int i = longval ();
2484 if (i != ($2))
2485 return 1;
2486 fprintf (f, "%ld", i);
2488 else
2490 unsigned long int i = ulongval ();
2491 if (i != ($2))
2492 return 1;
2493 fprintf (f, "%lu", i);
2495 /* Do not output a trailing newline, as this causes \r\n confusion
2496 on some platforms. */
2497 return ferror (f) || fclose (f) != 0;
2500 return 0;
2502 _ACEOF
2503 if ac_fn_cxx_try_run "$LINENO"; then :
2504 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2505 else
2506 ac_retval=1
2508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2509 conftest.$ac_objext conftest.beam conftest.$ac_ext
2510 rm -f conftest.val
2513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2514 as_fn_set_status $ac_retval
2516 } # ac_fn_cxx_compute_int
2518 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2519 # ---------------------------------------------
2520 # Tests whether TYPE exists after having included INCLUDES, setting cache
2521 # variable VAR accordingly.
2522 ac_fn_cxx_check_type ()
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if eval \${$3+:} false; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 eval "$3=no"
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2535 main ()
2537 if (sizeof ($2))
2538 return 0;
2540 return 0;
2542 _ACEOF
2543 if ac_fn_cxx_try_compile "$LINENO"; then :
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2548 main ()
2550 if (sizeof (($2)))
2551 return 0;
2553 return 0;
2555 _ACEOF
2556 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 else
2559 eval "$3=yes"
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570 } # ac_fn_cxx_check_type
2572 # ac_fn_c_find_intX_t LINENO BITS VAR
2573 # -----------------------------------
2574 # Finds a signed integer type with width BITS, setting cache variable VAR
2575 # accordingly.
2576 ac_fn_c_find_intX_t ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2580 $as_echo_n "checking for int$2_t... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 eval "$3=no"
2585 # Order is important - never check a type that is potentially smaller
2586 # than half of the expected target width.
2587 for ac_type in int$2_t 'int' 'long int' \
2588 'long long int' 'short int' 'signed char'; do
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591 $ac_includes_default
2592 enum { N = $2 / 2 - 1 };
2594 main ()
2596 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2597 test_array [0] = 0;
2598 return test_array [0];
2601 return 0;
2603 _ACEOF
2604 if ac_fn_cxx_try_compile "$LINENO"; then :
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606 /* end confdefs.h. */
2607 $ac_includes_default
2608 enum { N = $2 / 2 - 1 };
2610 main ()
2612 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2613 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2614 test_array [0] = 0;
2615 return test_array [0];
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_compile "$LINENO"; then :
2623 else
2624 case $ac_type in #(
2625 int$2_t) :
2626 eval "$3=yes" ;; #(
2627 *) :
2628 eval "$3=\$ac_type" ;;
2629 esac
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 if eval test \"x\$"$3"\" = x"no"; then :
2636 else
2637 break
2639 done
2641 eval ac_res=\$$3
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646 } # ac_fn_c_find_intX_t
2648 # ac_fn_cxx_try_link LINENO
2649 # -------------------------
2650 # Try to link conftest.$ac_ext, and return whether this succeeded.
2651 ac_fn_cxx_try_link ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { { ac_try="$ac_link"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2661 $as_echo "$ac_try_echo"; } >&5
2662 (eval "$ac_link") 2>conftest.err
2663 ac_status=$?
2664 if test -s conftest.err; then
2665 grep -v '^ *+' conftest.err >conftest.er1
2666 cat conftest.er1 >&5
2667 mv -f conftest.er1 conftest.err
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; } && {
2671 test -z "$ac_cxx_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest$ac_exeext && {
2674 test "$cross_compiling" = yes ||
2675 test -x conftest$ac_exeext
2676 }; then :
2677 ac_retval=0
2678 else
2679 $as_echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_retval=1
2684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2686 # interfere with the next link command; also delete a directory that is
2687 # left behind by Apple's compiler. We do this before executing the actions.
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2692 } # ac_fn_cxx_try_link
2694 # ac_fn_c_find_uintX_t LINENO BITS VAR
2695 # ------------------------------------
2696 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2697 # accordingly.
2698 ac_fn_c_find_uintX_t ()
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2702 $as_echo_n "checking for uint$2_t... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 eval "$3=no"
2707 # Order is important - never check a type that is potentially smaller
2708 # than half of the expected target width.
2709 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2710 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713 $ac_includes_default
2715 main ()
2717 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2718 test_array [0] = 0;
2719 return test_array [0];
2722 return 0;
2724 _ACEOF
2725 if ac_fn_cxx_try_compile "$LINENO"; then :
2726 case $ac_type in #(
2727 uint$2_t) :
2728 eval "$3=yes" ;; #(
2729 *) :
2730 eval "$3=\$ac_type" ;;
2731 esac
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 if eval test \"x\$"$3"\" = x"no"; then :
2736 else
2737 break
2739 done
2741 eval ac_res=\$$3
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2746 } # ac_fn_c_find_uintX_t
2748 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2749 # ------------------------------------------------
2750 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2751 ac_fn_cxx_check_header_preproc ()
2753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2755 $as_echo_n "checking for $2... " >&6; }
2756 if eval \${$3+:} false; then :
2757 $as_echo_n "(cached) " >&6
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2761 #include <$2>
2762 _ACEOF
2763 if ac_fn_cxx_try_cpp "$LINENO"; then :
2764 eval "$3=yes"
2765 else
2766 eval "$3=no"
2768 rm -f conftest.err conftest.i conftest.$ac_ext
2770 eval ac_res=\$$3
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2772 $as_echo "$ac_res" >&6; }
2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775 } # ac_fn_cxx_check_header_preproc
2777 # ac_fn_cxx_check_func LINENO FUNC VAR
2778 # ------------------------------------
2779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2780 ac_fn_cxx_check_func ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2784 $as_echo_n "checking for $2... " >&6; }
2785 if eval \${$3+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2792 #define $2 innocuous_$2
2794 /* System header to define __stub macros and hopefully few prototypes,
2795 which can conflict with char $2 (); below.
2796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2797 <limits.h> exists even on freestanding compilers. */
2799 #ifdef __STDC__
2800 # include <limits.h>
2801 #else
2802 # include <assert.h>
2803 #endif
2805 #undef $2
2807 /* Override any GCC internal prototype to avoid an error.
2808 Use char because int might match the return type of a GCC
2809 builtin and then its argument prototype would still apply. */
2810 #ifdef __cplusplus
2811 extern "C"
2812 #endif
2813 char $2 ();
2814 /* The GNU C library defines this for functions which it implements
2815 to always fail with ENOSYS. Some functions are actually named
2816 something starting with __ and the normal name is an alias. */
2817 #if defined __stub_$2 || defined __stub___$2
2818 choke me
2819 #endif
2822 main ()
2824 return $2 ();
2826 return 0;
2828 _ACEOF
2829 if ac_fn_cxx_try_link "$LINENO"; then :
2830 eval "$3=yes"
2831 else
2832 eval "$3=no"
2834 rm -f core conftest.err conftest.$ac_objext \
2835 conftest$ac_exeext conftest.$ac_ext
2837 eval ac_res=\$$3
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2839 $as_echo "$ac_res" >&6; }
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842 } # ac_fn_cxx_check_func
2844 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2845 # -----------------------------------------------
2846 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2847 # accordingly.
2848 ac_fn_cxx_check_decl ()
2850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2851 as_decl_name=`echo $2|sed 's/ *(.*//'`
2852 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2854 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2855 if eval \${$3+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2862 main ()
2864 #ifndef $as_decl_name
2865 #ifdef __cplusplus
2866 (void) $as_decl_use;
2867 #else
2868 (void) $as_decl_name;
2869 #endif
2870 #endif
2873 return 0;
2875 _ACEOF
2876 if ac_fn_cxx_try_compile "$LINENO"; then :
2877 eval "$3=yes"
2878 else
2879 eval "$3=no"
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 eval ac_res=\$$3
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888 } # ac_fn_cxx_check_decl
2890 # ac_fn_c_try_link LINENO
2891 # -----------------------
2892 # Try to link conftest.$ac_ext, and return whether this succeeded.
2893 ac_fn_c_try_link ()
2895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2896 rm -f conftest.$ac_objext conftest$ac_exeext
2897 if { { ac_try="$ac_link"
2898 case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901 esac
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link") 2>conftest.err
2905 ac_status=$?
2906 if test -s conftest.err; then
2907 grep -v '^ *+' conftest.err >conftest.er1
2908 cat conftest.er1 >&5
2909 mv -f conftest.er1 conftest.err
2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest$ac_exeext && {
2916 test "$cross_compiling" = yes ||
2917 test -x conftest$ac_exeext
2918 }; then :
2919 ac_retval=0
2920 else
2921 $as_echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 ac_retval=1
2926 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2927 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2928 # interfere with the next link command; also delete a directory that is
2929 # left behind by Apple's compiler. We do this before executing the actions.
2930 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2932 as_fn_set_status $ac_retval
2934 } # ac_fn_c_try_link
2936 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2937 # ----------------------------------------------
2938 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2939 ac_fn_c_check_header_preproc ()
2941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2943 $as_echo_n "checking for $2... " >&6; }
2944 if eval \${$3+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2949 #include <$2>
2950 _ACEOF
2951 if ac_fn_c_try_cpp "$LINENO"; then :
2952 eval "$3=yes"
2953 else
2954 eval "$3=no"
2956 rm -f conftest.err conftest.i conftest.$ac_ext
2958 eval ac_res=\$$3
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2960 $as_echo "$ac_res" >&6; }
2961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963 } # ac_fn_c_check_header_preproc
2965 # ac_fn_c_check_func LINENO FUNC VAR
2966 # ----------------------------------
2967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2968 ac_fn_c_check_func ()
2970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2972 $as_echo_n "checking for $2... " >&6; }
2973 if eval \${$3+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2980 #define $2 innocuous_$2
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $2 (); below.
2984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 <limits.h> exists even on freestanding compilers. */
2987 #ifdef __STDC__
2988 # include <limits.h>
2989 #else
2990 # include <assert.h>
2991 #endif
2993 #undef $2
2995 /* Override any GCC internal prototype to avoid an error.
2996 Use char because int might match the return type of a GCC
2997 builtin and then its argument prototype would still apply. */
2998 #ifdef __cplusplus
2999 extern "C"
3000 #endif
3001 char $2 ();
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined __stub_$2 || defined __stub___$2
3006 choke me
3007 #endif
3010 main ()
3012 return $2 ();
3014 return 0;
3016 _ACEOF
3017 if ac_fn_c_try_link "$LINENO"; then :
3018 eval "$3=yes"
3019 else
3020 eval "$3=no"
3022 rm -f core conftest.err conftest.$ac_objext \
3023 conftest$ac_exeext conftest.$ac_ext
3025 eval ac_res=\$$3
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3027 $as_echo "$ac_res" >&6; }
3028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3030 } # ac_fn_c_check_func
3031 cat >config.log <<_ACEOF
3032 This file contains any messages produced by compilers while
3033 running configure, to aid debugging if configure makes a mistake.
3035 It was created by $as_me, which was
3036 generated by GNU Autoconf 2.69. Invocation command line was
3038 $ $0 $@
3040 _ACEOF
3041 exec 5>>config.log
3043 cat <<_ASUNAME
3044 ## --------- ##
3045 ## Platform. ##
3046 ## --------- ##
3048 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3049 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3050 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3051 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3052 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3054 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3055 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3057 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3058 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3059 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3060 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3061 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3062 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3063 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3065 _ASUNAME
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 $as_echo "PATH: $as_dir"
3073 done
3074 IFS=$as_save_IFS
3076 } >&5
3078 cat >&5 <<_ACEOF
3081 ## ----------- ##
3082 ## Core tests. ##
3083 ## ----------- ##
3085 _ACEOF
3088 # Keep a trace of the command line.
3089 # Strip out --no-create and --no-recursion so they do not pile up.
3090 # Strip out --silent because we don't want to record it for future runs.
3091 # Also quote any args containing shell meta-characters.
3092 # Make two passes to allow for proper duplicate-argument suppression.
3093 ac_configure_args=
3094 ac_configure_args0=
3095 ac_configure_args1=
3096 ac_must_keep_next=false
3097 for ac_pass in 1 2
3099 for ac_arg
3101 case $ac_arg in
3102 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3104 | -silent | --silent | --silen | --sile | --sil)
3105 continue ;;
3106 *\'*)
3107 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3108 esac
3109 case $ac_pass in
3110 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3112 as_fn_append ac_configure_args1 " '$ac_arg'"
3113 if test $ac_must_keep_next = true; then
3114 ac_must_keep_next=false # Got value, back to normal.
3115 else
3116 case $ac_arg in
3117 *=* | --config-cache | -C | -disable-* | --disable-* \
3118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3120 | -with-* | --with-* | -without-* | --without-* | --x)
3121 case "$ac_configure_args0 " in
3122 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3123 esac
3125 -* ) ac_must_keep_next=true ;;
3126 esac
3128 as_fn_append ac_configure_args " '$ac_arg'"
3130 esac
3131 done
3132 done
3133 { ac_configure_args0=; unset ac_configure_args0;}
3134 { ac_configure_args1=; unset ac_configure_args1;}
3136 # When interrupted or exit'd, cleanup temporary files, and complete
3137 # config.log. We remove comments because anyway the quotes in there
3138 # would cause problems or look ugly.
3139 # WARNING: Use '\'' to represent an apostrophe within the trap.
3140 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3141 trap 'exit_status=$?
3142 # Save into config.log some information that might help in debugging.
3144 echo
3146 $as_echo "## ---------------- ##
3147 ## Cache variables. ##
3148 ## ---------------- ##"
3149 echo
3150 # The following way of writing the cache mishandles newlines in values,
3152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3153 eval ac_val=\$$ac_var
3154 case $ac_val in #(
3155 *${as_nl}*)
3156 case $ac_var in #(
3157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3158 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3159 esac
3160 case $ac_var in #(
3161 _ | IFS | as_nl) ;; #(
3162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3163 *) { eval $ac_var=; unset $ac_var;} ;;
3164 esac ;;
3165 esac
3166 done
3167 (set) 2>&1 |
3168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3169 *${as_nl}ac_space=\ *)
3170 sed -n \
3171 "s/'\''/'\''\\\\'\'''\''/g;
3172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3173 ;; #(
3175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3177 esac |
3178 sort
3180 echo
3182 $as_echo "## ----------------- ##
3183 ## Output variables. ##
3184 ## ----------------- ##"
3185 echo
3186 for ac_var in $ac_subst_vars
3188 eval ac_val=\$$ac_var
3189 case $ac_val in
3190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3191 esac
3192 $as_echo "$ac_var='\''$ac_val'\''"
3193 done | sort
3194 echo
3196 if test -n "$ac_subst_files"; then
3197 $as_echo "## ------------------- ##
3198 ## File substitutions. ##
3199 ## ------------------- ##"
3200 echo
3201 for ac_var in $ac_subst_files
3203 eval ac_val=\$$ac_var
3204 case $ac_val in
3205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3206 esac
3207 $as_echo "$ac_var='\''$ac_val'\''"
3208 done | sort
3209 echo
3212 if test -s confdefs.h; then
3213 $as_echo "## ----------- ##
3214 ## confdefs.h. ##
3215 ## ----------- ##"
3216 echo
3217 cat confdefs.h
3218 echo
3220 test "$ac_signal" != 0 &&
3221 $as_echo "$as_me: caught signal $ac_signal"
3222 $as_echo "$as_me: exit $exit_status"
3223 } >&5
3224 rm -f core *.core core.conftest.* &&
3225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226 exit $exit_status
3228 for ac_signal in 1 2 13 15; do
3229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3230 done
3231 ac_signal=0
3233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3234 rm -f -r conftest* confdefs.h
3236 $as_echo "/* confdefs.h */" > confdefs.h
3238 # Predefined preprocessor variables.
3240 cat >>confdefs.h <<_ACEOF
3241 #define PACKAGE_NAME "$PACKAGE_NAME"
3242 _ACEOF
3244 cat >>confdefs.h <<_ACEOF
3245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246 _ACEOF
3248 cat >>confdefs.h <<_ACEOF
3249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3250 _ACEOF
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_STRING "$PACKAGE_STRING"
3254 _ACEOF
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258 _ACEOF
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_URL "$PACKAGE_URL"
3262 _ACEOF
3265 # Let the site file select an alternate cache file if it wants to.
3266 # Prefer an explicitly selected file to automatically selected ones.
3267 ac_site_file1=NONE
3268 ac_site_file2=NONE
3269 if test -n "$CONFIG_SITE"; then
3270 # We do not want a PATH search for config.site.
3271 case $CONFIG_SITE in #((
3272 -*) ac_site_file1=./$CONFIG_SITE;;
3273 */*) ac_site_file1=$CONFIG_SITE;;
3274 *) ac_site_file1=./$CONFIG_SITE;;
3275 esac
3276 elif test "x$prefix" != xNONE; then
3277 ac_site_file1=$prefix/share/config.site
3278 ac_site_file2=$prefix/etc/config.site
3279 else
3280 ac_site_file1=$ac_default_prefix/share/config.site
3281 ac_site_file2=$ac_default_prefix/etc/config.site
3283 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3285 test "x$ac_site_file" = xNONE && continue
3286 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3288 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3289 sed 's/^/| /' "$ac_site_file" >&5
3290 . "$ac_site_file" \
3291 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "failed to load site script $ac_site_file
3294 See \`config.log' for more details" "$LINENO" 5; }
3296 done
3298 if test -r "$cache_file"; then
3299 # Some versions of bash will fail to source /dev/null (special files
3300 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3301 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3303 $as_echo "$as_me: loading cache $cache_file" >&6;}
3304 case $cache_file in
3305 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3306 *) . "./$cache_file";;
3307 esac
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3311 $as_echo "$as_me: creating cache $cache_file" >&6;}
3312 >$cache_file
3315 gt_needs="$gt_needs "
3316 # Check that the precious variables saved in the cache have kept the same
3317 # value.
3318 ac_cache_corrupted=false
3319 for ac_var in $ac_precious_vars; do
3320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3321 eval ac_new_set=\$ac_env_${ac_var}_set
3322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3323 eval ac_new_val=\$ac_env_${ac_var}_value
3324 case $ac_old_set,$ac_new_set in
3325 set,)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3328 ac_cache_corrupted=: ;;
3329 ,set)
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3332 ac_cache_corrupted=: ;;
3333 ,);;
3335 if test "x$ac_old_val" != "x$ac_new_val"; then
3336 # differences in whitespace do not lead to failure.
3337 ac_old_val_w=`echo x $ac_old_val`
3338 ac_new_val_w=`echo x $ac_new_val`
3339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3342 ac_cache_corrupted=:
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3346 eval $ac_var=\$ac_old_val
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3352 fi;;
3353 esac
3354 # Pass precious variables to config.status.
3355 if test "$ac_new_set" = set; then
3356 case $ac_new_val in
3357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3358 *) ac_arg=$ac_var=$ac_new_val ;;
3359 esac
3360 case " $ac_configure_args " in
3361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3363 esac
3365 done
3366 if $ac_cache_corrupted; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3373 ## -------------------- ##
3374 ## Main body of script. ##
3375 ## -------------------- ##
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3392 gcc_version=`cat $srcdir/BASE-VER`
3394 # Determine the host, build, and target systems
3395 ac_aux_dir=
3396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3397 if 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/install.sh"; then
3402 ac_aux_dir=$ac_dir
3403 ac_install_sh="$ac_aux_dir/install.sh -c"
3404 break
3405 elif test -f "$ac_dir/shtool"; then
3406 ac_aux_dir=$ac_dir
3407 ac_install_sh="$ac_aux_dir/shtool install -c"
3408 break
3410 done
3411 if test -z "$ac_aux_dir"; then
3412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3415 # These three variables are undocumented and unsupported,
3416 # and are intended to be withdrawn in a future Autoconf release.
3417 # They can cause serious problems if a builder's source tree is in a directory
3418 # whose full name contains unusual characters.
3419 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3420 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3421 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3424 # Make sure we can run config.sub.
3425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3429 $as_echo_n "checking build system type... " >&6; }
3430 if ${ac_cv_build+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_build_alias=$build_alias
3434 test "x$ac_build_alias" = x &&
3435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3436 test "x$ac_build_alias" = x &&
3437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3443 $as_echo "$ac_cv_build" >&6; }
3444 case $ac_cv_build in
3445 *-*-*) ;;
3446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3447 esac
3448 build=$ac_cv_build
3449 ac_save_IFS=$IFS; IFS='-'
3450 set x $ac_cv_build
3451 shift
3452 build_cpu=$1
3453 build_vendor=$2
3454 shift; shift
3455 # Remember, the first character of IFS is used to create $*,
3456 # except with old shells:
3457 build_os=$*
3458 IFS=$ac_save_IFS
3459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3463 $as_echo_n "checking host system type... " >&6; }
3464 if ${ac_cv_host+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test "x$host_alias" = x; then
3468 ac_cv_host=$ac_cv_build
3469 else
3470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3476 $as_echo "$ac_cv_host" >&6; }
3477 case $ac_cv_host in
3478 *-*-*) ;;
3479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3480 esac
3481 host=$ac_cv_host
3482 ac_save_IFS=$IFS; IFS='-'
3483 set x $ac_cv_host
3484 shift
3485 host_cpu=$1
3486 host_vendor=$2
3487 shift; shift
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3490 host_os=$*
3491 IFS=$ac_save_IFS
3492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3496 $as_echo_n "checking target system type... " >&6; }
3497 if ${ac_cv_target+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test "x$target_alias" = x; then
3501 ac_cv_target=$ac_cv_host
3502 else
3503 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3509 $as_echo "$ac_cv_target" >&6; }
3510 case $ac_cv_target in
3511 *-*-*) ;;
3512 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3513 esac
3514 target=$ac_cv_target
3515 ac_save_IFS=$IFS; IFS='-'
3516 set x $ac_cv_target
3517 shift
3518 target_cpu=$1
3519 target_vendor=$2
3520 shift; shift
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3523 target_os=$*
3524 IFS=$ac_save_IFS
3525 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3528 # The aliases save the names the user supplied, while $host etc.
3529 # will get canonicalized.
3530 test -n "$target_alias" &&
3531 test "$program_prefix$program_suffix$program_transform_name" = \
3532 NONENONEs,x,x, &&
3533 program_prefix=${target_alias}-
3535 # Determine the noncanonical host name, for Ada.
3536 case ${build_alias} in
3537 "") build_noncanonical=${build} ;;
3538 *) build_noncanonical=${build_alias} ;;
3539 esac
3541 case ${host_alias} in
3542 "") host_noncanonical=${build_noncanonical} ;;
3543 *) host_noncanonical=${host_alias} ;;
3544 esac
3549 # Determine the noncanonical target name, for directory use.
3550 case ${target_alias} in
3551 "") target_noncanonical=${host_noncanonical} ;;
3552 *) target_noncanonical=${target_alias} ;;
3553 esac
3558 # Used for constructing correct paths for offload compilers.
3559 real_target_noncanonical=${target_noncanonical}
3560 accel_dir_suffix=
3562 # Determine the target- and build-specific subdirectories
3564 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3565 # have matching libraries, they should use host libraries: Makefile.tpl
3566 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3567 # However, they still use the build modules, because the corresponding
3568 # host modules (e.g. bison) are only built for the host when bootstrap
3569 # finishes. So:
3570 # - build_subdir is where we find build modules, and never changes.
3571 # - build_libsubdir is where we find build libraries, and can be overridden.
3573 # Prefix 'build-' so this never conflicts with target_subdir.
3574 build_subdir="build-${build_noncanonical}"
3576 # Check whether --with-build-libsubdir was given.
3577 if test "${with_build_libsubdir+set}" = set; then :
3578 withval=$with_build_libsubdir; build_libsubdir="$withval"
3579 else
3580 build_libsubdir="$build_subdir"
3583 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3584 if ( test $srcdir = . && test -d gcc ) \
3585 || test -d $srcdir/../host-${host_noncanonical}; then
3586 host_subdir="host-${host_noncanonical}"
3587 else
3588 host_subdir=.
3590 # No prefix.
3591 target_subdir=${target_noncanonical}
3594 # Set program_transform_name
3595 test "$program_prefix" != NONE &&
3596 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3597 # Use a double $ so make ignores it.
3598 test "$program_suffix" != NONE &&
3599 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3600 # Double any \ or $.
3601 # By default was `s,x,x', remove it if useless.
3602 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3603 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3606 # Check for bogus environment variables.
3607 # Test if LIBRARY_PATH contains the notation for the current directory
3608 # since this would lead to problems installing/building glibc.
3609 # LIBRARY_PATH contains the current directory if one of the following
3610 # is true:
3611 # - one of the terminals (":" and ";") is the first or last sign
3612 # - two terminals occur directly after each other
3613 # - the path contains an element with a dot in it
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3615 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3616 case ${LIBRARY_PATH} in
3617 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3618 library_path_setting="contains current directory"
3621 library_path_setting="ok"
3623 esac
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3625 $as_echo "$library_path_setting" >&6; }
3626 if test "$library_path_setting" != "ok"; then
3627 as_fn_error $? "
3628 *** LIBRARY_PATH shouldn't contain the current directory when
3629 *** building gcc. Please change the environment variable
3630 *** and run configure again." "$LINENO" 5
3633 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3634 # since this would lead to problems installing/building glibc.
3635 # GCC_EXEC_PREFIX contains the current directory if one of the following
3636 # is true:
3637 # - one of the terminals (":" and ";") is the first or last sign
3638 # - two terminals occur directly after each other
3639 # - the path contains an element with a dot in it
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3641 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3642 case ${GCC_EXEC_PREFIX} in
3643 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3644 gcc_exec_prefix_setting="contains current directory"
3647 gcc_exec_prefix_setting="ok"
3649 esac
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3651 $as_echo "$gcc_exec_prefix_setting" >&6; }
3652 if test "$gcc_exec_prefix_setting" != "ok"; then
3653 as_fn_error $? "
3654 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3655 *** building gcc. Please change the environment variable
3656 *** and run configure again." "$LINENO" 5
3659 # -----------
3660 # Directories
3661 # -----------
3663 # Specify the local prefix
3664 local_prefix=
3666 # Check whether --with-local-prefix was given.
3667 if test "${with_local_prefix+set}" = set; then :
3668 withval=$with_local_prefix; case "${withval}" in
3669 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3670 no) ;;
3671 *) local_prefix=$with_local_prefix ;;
3672 esac
3676 # Default local prefix if it is empty
3677 if test x$local_prefix = x; then
3678 local_prefix=/usr/local
3682 # Check whether --with-native-system-header-dir was given.
3683 if test "${with_native_system_header_dir+set}" = set; then :
3684 withval=$with_native_system_header_dir;
3685 case ${with_native_system_header_dir} in
3686 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3687 /* | [A-Za-z]:[\\/]*) ;;
3688 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3689 esac
3690 configured_native_system_header_dir="${withval}"
3692 else
3693 configured_native_system_header_dir=
3698 # Check whether --with-build-sysroot was given.
3699 if test "${with_build_sysroot+set}" = set; then :
3700 withval=$with_build_sysroot; if test x"$withval" != x ; then
3701 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3703 else
3704 SYSROOT_CFLAGS_FOR_TARGET=
3709 if test "x$prefix" = xNONE; then
3710 test_prefix=/usr/local
3711 else
3712 test_prefix=$prefix
3714 if test "x$exec_prefix" = xNONE; then
3715 test_exec_prefix=$test_prefix
3716 else
3717 test_exec_prefix=$exec_prefix
3721 # Check whether --with-sysroot was given.
3722 if test "${with_sysroot+set}" = set; then :
3723 withval=$with_sysroot;
3724 case ${with_sysroot} in
3725 /) ;;
3726 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3727 esac
3728 case ${with_sysroot} in
3729 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3730 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3731 esac
3733 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3734 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3736 case ${TARGET_SYSTEM_ROOT} in
3737 "${test_prefix}"|"${test_prefix}/"*|\
3738 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3739 '${prefix}'|'${prefix}/'*|\
3740 '${exec_prefix}'|'${exec_prefix}/'*)
3741 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3742 TARGET_SYSTEM_ROOT_DEFINE="$t"
3744 esac
3746 else
3748 TARGET_SYSTEM_ROOT=
3749 TARGET_SYSTEM_ROOT_DEFINE=
3750 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3758 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3759 # passed in by the toplevel make and thus we'd get different behavior
3760 # depending on where we built the sources.
3761 gcc_gxx_include_dir=
3762 # Specify the g++ header file directory
3764 # Check whether --with-gxx-include-dir was given.
3765 if test "${with_gxx_include_dir+set}" = set; then :
3766 withval=$with_gxx_include_dir; case "${withval}" in
3767 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3768 no) ;;
3769 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3770 esac
3774 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3775 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3776 # relative to the sysroot.
3777 gcc_gxx_include_dir_add_sysroot=0
3779 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3780 if test x${gcc_gxx_include_dir} = x; then
3781 if test x${enable_version_specific_runtime_libs} = xyes; then
3782 gcc_gxx_include_dir='${libsubdir}/include/c++'
3783 else
3784 libstdcxx_incdir='include/c++/$(version)'
3785 if test x$host != x$target; then
3786 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3788 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3790 elif test "${with_sysroot+set}" = set; then
3791 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3792 if test "${gcc_gxx_without_sysroot}"; then
3793 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3794 gcc_gxx_include_dir_add_sysroot=1
3798 # Configuration for an alternate set of C++ headers.
3799 gcc_gxx_libcxx_include_dir=
3800 # Specify the alternate g++ header file directory
3802 # Check whether --with-gxx-libcxx-include-dir was given.
3803 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3804 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3805 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3806 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3807 esac
3811 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3812 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3813 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3814 # based on the platform (to be available on platform versions where it is the
3815 # default for the system tools). We also use a default path within the compiler
3816 # install tree.
3817 # Otherwise, we use the path provided and enable the stdlib option.
3818 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3819 # check to see if the latter starts with the former and, upon success, compute
3820 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3821 gcc_gxx_libcxx_include_dir_add_sysroot=0
3822 gcc_enable_stdlib_opt=0
3823 if test x${gcc_gxx_libcxx_include_dir} != x; then
3824 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3825 # set defaults for the dir, but the option is disabled anyway.
3826 gcc_gxx_libcxx_include_dir=
3827 else
3828 gcc_enable_stdlib_opt=1
3830 else
3831 case $target in
3832 *-darwin1[1-9]* | *-darwin2*)
3833 # Default this on for Darwin versions which default to libcxx,
3834 # and embed the path in the compiler install so that we get a
3835 # self-contained toolchain.
3836 gcc_enable_stdlib_opt=1
3838 *) ;;
3839 esac
3842 cat >>confdefs.h <<_ACEOF
3843 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3844 _ACEOF
3847 # Sysroot behaviour as for gxx-include-dir
3848 if test x${gcc_gxx_libcxx_include_dir} = x; then
3849 # default path,embedded in the compiler tree.
3850 libcxx_incdir='include/c++/v1'
3851 if test x${enable_version_specific_runtime_libs} = xyes; then
3852 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3853 else
3854 if test x$host != x$target; then
3855 libcxx_incdir="$target_alias/$libcxx_incdir"
3857 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3859 elif test "${with_sysroot+set}" = set; then
3860 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3861 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3862 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3863 gcc_gxx_libcxx_include_dir_add_sysroot=1
3868 # Check whether --with-cpp_install_dir was given.
3869 if test "${with_cpp_install_dir+set}" = set; then :
3870 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3871 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3872 elif test x$withval != xno; then
3873 cpp_install_dir=$withval
3878 # We would like to our source tree to be readonly. However when releases or
3879 # pre-releases are generated, the flex/bison generated files as well as the
3880 # various formats of manuals need to be included along with the rest of the
3881 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3882 # just that.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3885 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3886 # Check whether --enable-generated-files-in-srcdir was given.
3887 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3888 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3889 else
3890 generated_files_in_srcdir=no
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3895 $as_echo "$generated_files_in_srcdir" >&6; }
3897 if test "$generated_files_in_srcdir" = "yes"; then
3898 GENINSRC=''
3899 else
3900 GENINSRC='#'
3904 # -------------------
3905 # Find default linker
3906 # -------------------
3908 # With GNU ld
3910 # Check whether --with-gnu-ld was given.
3911 if test "${with_gnu_ld+set}" = set; then :
3912 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3913 else
3914 gnu_ld_flag=no
3918 case $target in
3919 *darwin*)
3920 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3921 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3924 ld64_flag=no
3925 dsymutil_flag=no
3927 esac
3929 # With pre-defined ld
3931 # Check whether --with-ld was given.
3932 if test "${with_ld+set}" = set; then :
3933 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3936 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3937 if test ! -x "$DEFAULT_LINKER"; then
3938 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3939 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3940 gnu_ld_flag=yes
3941 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3942 ld64_flag=yes
3945 cat >>confdefs.h <<_ACEOF
3946 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3947 _ACEOF
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3952 $as_echo_n "checking whether a default linker was specified... " >&6; }
3953 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3954 if test x"$gnu_ld_flag" = x"no"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3956 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3959 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3966 # With demangler in GNU ld
3968 # Check whether --with-demangler-in-ld was given.
3969 if test "${with_demangler_in_ld+set}" = set; then :
3970 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3971 else
3972 demangler_in_ld=yes
3976 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3978 # Check whether --with-dsymutil was given.
3979 if test "${with_dsymutil+set}" = set; then :
3980 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3984 dsymutil_vers=
3985 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3986 if test ! -x "$DEFAULT_DSYMUTIL"; then
3987 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3988 else
3989 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3990 dsymutil_flag=yes
3994 cat >>confdefs.h <<_ACEOF
3995 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3996 _ACEOF
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4001 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4002 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4004 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4010 # ----------------------
4011 # Find default assembler
4012 # ----------------------
4014 # With GNU as
4016 # Check whether --with-gnu-as was given.
4017 if test "${with_gnu_as+set}" = set; then :
4018 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4019 else
4020 gas_flag=no
4025 # Check whether --with-as was given.
4026 if test "${with_as+set}" = set; then :
4027 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4030 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4031 if test ! -x "$DEFAULT_ASSEMBLER"; then
4032 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4033 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4034 gas_flag=yes
4037 cat >>confdefs.h <<_ACEOF
4038 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4039 _ACEOF
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4044 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4045 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4046 if test x"$gas_flag" = x"no"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4048 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4051 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4058 # ---------------
4059 # Find C compiler
4060 # ---------------
4062 # If a non-executable a.out is present (e.g. created by GNU as above even if
4063 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4064 # file, even when creating an executable, so an execution test fails.
4065 # Remove possible default executable files to avoid this.
4067 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4068 # Autoconf includes it.
4069 rm -f a.out a.exe b.out
4071 # Find the native compiler
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 CC=$ac_cv_prog_CC
4106 if test -n "$CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4108 $as_echo "$CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_CC"; then
4117 ac_ct_CC=$CC
4118 # Extract the first word of "gcc", so it can be a program name with args.
4119 set dummy gcc; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_CC"; then
4126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_CC="gcc"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 $as_echo "$ac_ct_CC" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_CC" = x; then
4155 CC=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 CC=$ac_ct_CC
4165 else
4166 CC="$ac_cv_prog_CC"
4169 if test -z "$CC"; then
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}cc; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_CC+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$CC"; then
4179 ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_CC="${ac_tool_prefix}cc"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4192 done
4193 done
4194 IFS=$as_save_IFS
4198 CC=$ac_cv_prog_CC
4199 if test -n "$CC"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201 $as_echo "$CC" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4210 if test -z "$CC"; then
4211 # Extract the first word of "cc", so it can be a program name with args.
4212 set dummy cc; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_CC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$CC"; then
4219 ac_cv_prog_CC="$CC" # Let the user override the test.
4220 else
4221 ac_prog_rejected=no
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4230 ac_prog_rejected=yes
4231 continue
4233 ac_cv_prog_CC="cc"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4237 done
4238 done
4239 IFS=$as_save_IFS
4241 if test $ac_prog_rejected = yes; then
4242 # We found a bogon in the path, so make sure we never use it.
4243 set dummy $ac_cv_prog_CC
4244 shift
4245 if test $# != 0; then
4246 # We chose a different compiler from the bogus one.
4247 # However, it has the same basename, so the bogon will be chosen
4248 # first if we set CC to just the basename; use the full file name.
4249 shift
4250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4266 if test -z "$CC"; then
4267 if test -n "$ac_tool_prefix"; then
4268 for ac_prog in cl.exe
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_CC+:} false; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300 $as_echo "$CC" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$CC" && break
4308 done
4310 if test -z "$CC"; then
4311 ac_ct_CC=$CC
4312 for ac_prog in cl.exe
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$ac_ct_CC"; then
4322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_CC="$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4344 $as_echo "$ac_ct_CC" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$ac_ct_CC" && break
4352 done
4354 if test "x$ac_ct_CC" = x; then
4355 CC=""
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CC=$ac_ct_CC
4370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "no acceptable C compiler found in \$PATH
4373 See \`config.log' for more details" "$LINENO" 5; }
4375 # Provide some information about the compiler.
4376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4377 set X $ac_compile
4378 ac_compiler=$2
4379 for ac_option in --version -v -V -qversion; do
4380 { { ac_try="$ac_compiler $ac_option >&5"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4388 ac_status=$?
4389 if test -s conftest.err; then
4390 sed '10a\
4391 ... rest of stderr output deleted ...
4392 10q' conftest.err >conftest.er1
4393 cat conftest.er1 >&5
4395 rm -f conftest.er1 conftest.err
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 done
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 ac_clean_files_save=$ac_clean_files
4412 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4413 # Try to create an executable without -o first, disregard a.out.
4414 # It will help us diagnose broken compilers, and finding out an intuition
4415 # of exeext.
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4417 $as_echo_n "checking whether the C compiler works... " >&6; }
4418 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4420 # The possible output files:
4421 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4423 ac_rmfiles=
4424 for ac_file in $ac_files
4426 case $ac_file in
4427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4428 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4429 esac
4430 done
4431 rm -f $ac_rmfiles
4433 if { { ac_try="$ac_link_default"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440 (eval "$ac_link_default") 2>&5
4441 ac_status=$?
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }; then :
4444 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4445 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4446 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4447 # so that the user can short-circuit this test for compilers unknown to
4448 # Autoconf.
4449 for ac_file in $ac_files ''
4451 test -f "$ac_file" || continue
4452 case $ac_file in
4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4455 [ab].out )
4456 # We found the default executable, but exeext='' is most
4457 # certainly right.
4458 break;;
4459 *.* )
4460 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4461 then :; else
4462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4464 # We set ac_cv_exeext here because the later test for it is not
4465 # safe: cross compilers may not add the suffix if given an `-o'
4466 # argument, so we may need to know it at that point already.
4467 # Even if this section looks crufty: it has the advantage of
4468 # actually working.
4469 break;;
4471 break;;
4472 esac
4473 done
4474 test "$ac_cv_exeext" = no && ac_cv_exeext=
4476 else
4477 ac_file=''
4479 if test -z "$ac_file"; then :
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error 77 "C compiler cannot create executables
4488 See \`config.log' for more details" "$LINENO" 5; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4491 $as_echo "yes" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4494 $as_echo_n "checking for C compiler default output file name... " >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4496 $as_echo "$ac_file" >&6; }
4497 ac_exeext=$ac_cv_exeext
4499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4500 ac_clean_files=$ac_clean_files_save
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4502 $as_echo_n "checking for suffix of executables... " >&6; }
4503 if { { ac_try="$ac_link"
4504 case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507 esac
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_link") 2>&5
4511 ac_status=$?
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4516 # work properly (i.e., refer to `conftest.exe'), while it won't with
4517 # `rm'.
4518 for ac_file in conftest.exe conftest conftest.*; do
4519 test -f "$ac_file" || continue
4520 case $ac_file in
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 break;;
4524 * ) break;;
4525 esac
4526 done
4527 else
4528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4530 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4531 See \`config.log' for more details" "$LINENO" 5; }
4533 rm -f conftest conftest$ac_cv_exeext
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4535 $as_echo "$ac_cv_exeext" >&6; }
4537 rm -f conftest.$ac_ext
4538 EXEEXT=$ac_cv_exeext
4539 ac_exeext=$EXEEXT
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <stdio.h>
4544 main ()
4546 FILE *f = fopen ("conftest.out", "w");
4547 return ferror (f) || fclose (f) != 0;
4550 return 0;
4552 _ACEOF
4553 ac_clean_files="$ac_clean_files conftest.out"
4554 # Check that the compiler produces executables we can run. If not, either
4555 # the compiler is broken, or we cross compile.
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4557 $as_echo_n "checking whether we are cross compiling... " >&6; }
4558 if test "$cross_compiling" != yes; then
4559 { { ac_try="$ac_link"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 $as_echo "$ac_try_echo"; } >&5
4566 (eval "$ac_link") 2>&5
4567 ac_status=$?
4568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569 test $ac_status = 0; }
4570 if { ac_try='./conftest$ac_cv_exeext'
4571 { { case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 $as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_try") 2>&5
4578 ac_status=$?
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }; }; then
4581 cross_compiling=no
4582 else
4583 if test "$cross_compiling" = maybe; then
4584 cross_compiling=yes
4585 else
4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4588 as_fn_error $? "cannot run C compiled programs.
4589 If you meant to cross compile, use \`--host'.
4590 See \`config.log' for more details" "$LINENO" 5; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4595 $as_echo "$cross_compiling" >&6; }
4597 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4598 ac_clean_files=$ac_clean_files_save
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4600 $as_echo_n "checking for suffix of object files... " >&6; }
4601 if ${ac_cv_objext+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 rm -f conftest.o conftest.obj
4616 if { { ac_try="$ac_compile"
4617 case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622 $as_echo "$ac_try_echo"; } >&5
4623 (eval "$ac_compile") 2>&5
4624 ac_status=$?
4625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; then :
4627 for ac_file in conftest.o conftest.obj conftest.*; do
4628 test -f "$ac_file" || continue;
4629 case $ac_file in
4630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4632 break;;
4633 esac
4634 done
4635 else
4636 $as_echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $? "cannot compute suffix of object files: cannot compile
4642 See \`config.log' for more details" "$LINENO" 5; }
4644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4647 $as_echo "$ac_cv_objext" >&6; }
4648 OBJEXT=$ac_cv_objext
4649 ac_objext=$OBJEXT
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4652 if ${ac_cv_c_compiler_gnu+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GCC=yes
4682 else
4683 GCC=
4685 ac_test_CFLAGS=${CFLAGS+set}
4686 ac_save_CFLAGS=$CFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4689 if ${ac_cv_prog_cc_g+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_c_werror_flag=$ac_c_werror_flag
4693 ac_c_werror_flag=yes
4694 ac_cv_prog_cc_g=no
4695 CFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_g=yes
4709 else
4710 CFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4724 else
4725 ac_c_werror_flag=$ac_save_c_werror_flag
4726 CFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv_prog_cc_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749 $as_echo "$ac_cv_prog_cc_g" >&6; }
4750 if test "$ac_test_CFLAGS" = set; then
4751 CFLAGS=$ac_save_CFLAGS
4752 elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4758 else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4767 if ${ac_cv_prog_cc_c89+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 ac_cv_prog_cc_c89=no
4771 ac_save_CC=$CC
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <stdarg.h>
4775 #include <stdio.h>
4776 struct stat;
4777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4778 struct buf { int x; };
4779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4780 static char *e (p, i)
4781 char **p;
4782 int i;
4784 return p[i];
4786 static char *f (char * (*g) (char **, int), char **p, ...)
4788 char *s;
4789 va_list v;
4790 va_start (v,p);
4791 s = g (p, va_arg (v,int));
4792 va_end (v);
4793 return s;
4796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4797 function prototypes and stuff, but not '\xHH' hex character constants.
4798 These don't provoke an error unfortunately, instead are silently treated
4799 as 'x'. The following induces an error, until -std is added to get
4800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4801 array size at least. It's necessary to write '\x00'==0 to get something
4802 that's true only with -std. */
4803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4806 inside strings and character constants. */
4807 #define FOO(x) 'x'
4808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4810 int test (int i, double x);
4811 struct s1 {int (*f) (int a);};
4812 struct s2 {int (*f) (double a);};
4813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814 int argc;
4815 char **argv;
4817 main ()
4819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4821 return 0;
4823 _ACEOF
4824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4827 CC="$ac_save_CC $ac_arg"
4828 if ac_fn_c_try_compile "$LINENO"; then :
4829 ac_cv_prog_cc_c89=$ac_arg
4831 rm -f core conftest.err conftest.$ac_objext
4832 test "x$ac_cv_prog_cc_c89" != "xno" && break
4833 done
4834 rm -f conftest.$ac_ext
4835 CC=$ac_save_CC
4838 # AC_CACHE_VAL
4839 case "x$ac_cv_prog_cc_c89" in
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4842 $as_echo "none needed" >&6; } ;;
4843 xno)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4845 $as_echo "unsupported" >&6; } ;;
4847 CC="$CC $ac_cv_prog_cc_c89"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4849 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4850 esac
4851 if test "x$ac_cv_prog_cc_c89" != xno; then :
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 ac_ext=cpp
4862 ac_cpp='$CXXCPP $CPPFLAGS'
4863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866 if test -z "$CXX"; then
4867 if test -n "$CCC"; then
4868 CXX=$CCC
4869 else
4870 if test -n "$ac_tool_prefix"; then
4871 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_CXX+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if test -n "$CXX"; then
4881 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4900 CXX=$ac_cv_prog_CXX
4901 if test -n "$CXX"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4903 $as_echo "$CXX" >&6; }
4904 else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4910 test -n "$CXX" && break
4911 done
4913 if test -z "$CXX"; then
4914 ac_ct_CXX=$CXX
4915 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4917 # Extract the first word of "$ac_prog", so it can be a program name with args.
4918 set dummy $ac_prog; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$ac_ct_CXX"; then
4925 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_CXX="$ac_prog"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4938 done
4939 done
4940 IFS=$as_save_IFS
4944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4945 if test -n "$ac_ct_CXX"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4947 $as_echo "$ac_ct_CXX" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4954 test -n "$ac_ct_CXX" && break
4955 done
4957 if test "x$ac_ct_CXX" = x; then
4958 CXX="g++"
4959 else
4960 case $cross_compiling:$ac_tool_warned in
4961 yes:)
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4964 ac_tool_warned=yes ;;
4965 esac
4966 CXX=$ac_ct_CXX
4972 # Provide some information about the compiler.
4973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4974 set X $ac_compile
4975 ac_compiler=$2
4976 for ac_option in --version -v -V -qversion; do
4977 { { ac_try="$ac_compiler $ac_option >&5"
4978 case "(($ac_try" in
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4981 esac
4982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4983 $as_echo "$ac_try_echo"; } >&5
4984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4985 ac_status=$?
4986 if test -s conftest.err; then
4987 sed '10a\
4988 ... rest of stderr output deleted ...
4989 10q' conftest.err >conftest.er1
4990 cat conftest.er1 >&5
4992 rm -f conftest.er1 conftest.err
4993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }
4995 done
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4998 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4999 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 main ()
5008 #ifndef __GNUC__
5009 choke me
5010 #endif
5013 return 0;
5015 _ACEOF
5016 if ac_fn_cxx_try_compile "$LINENO"; then :
5017 ac_compiler_gnu=yes
5018 else
5019 ac_compiler_gnu=no
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5026 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5027 if test $ac_compiler_gnu = yes; then
5028 GXX=yes
5029 else
5030 GXX=
5032 ac_test_CXXFLAGS=${CXXFLAGS+set}
5033 ac_save_CXXFLAGS=$CXXFLAGS
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5035 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5036 if ${ac_cv_prog_cxx_g+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5040 ac_cxx_werror_flag=yes
5041 ac_cv_prog_cxx_g=no
5042 CXXFLAGS="-g"
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5047 main ()
5051 return 0;
5053 _ACEOF
5054 if ac_fn_cxx_try_compile "$LINENO"; then :
5055 ac_cv_prog_cxx_g=yes
5056 else
5057 CXXFLAGS=""
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5066 return 0;
5068 _ACEOF
5069 if ac_fn_cxx_try_compile "$LINENO"; then :
5071 else
5072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5073 CXXFLAGS="-g"
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5078 main ()
5082 return 0;
5084 _ACEOF
5085 if ac_fn_cxx_try_compile "$LINENO"; then :
5086 ac_cv_prog_cxx_g=yes
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5096 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5097 if test "$ac_test_CXXFLAGS" = set; then
5098 CXXFLAGS=$ac_save_CXXFLAGS
5099 elif test $ac_cv_prog_cxx_g = yes; then
5100 if test "$GXX" = yes; then
5101 CXXFLAGS="-g -O2"
5102 else
5103 CXXFLAGS="-g"
5105 else
5106 if test "$GXX" = yes; then
5107 CXXFLAGS="-O2"
5108 else
5109 CXXFLAGS=
5112 ac_ext=c
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_prog_GNATBIND+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 if test -n "$GNATBIND"; then
5130 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 GNATBIND=$ac_cv_prog_GNATBIND
5150 if test -n "$GNATBIND"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5152 $as_echo "$GNATBIND" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5160 if test -z "$ac_cv_prog_GNATBIND"; then
5161 ac_ct_GNATBIND=$GNATBIND
5162 # Extract the first word of "gnatbind", so it can be a program name with args.
5163 set dummy gnatbind; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if test -n "$ac_ct_GNATBIND"; then
5170 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5190 if test -n "$ac_ct_GNATBIND"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5192 $as_echo "$ac_ct_GNATBIND" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5198 if test "x$ac_ct_GNATBIND" = x; then
5199 GNATBIND="no"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205 ac_tool_warned=yes ;;
5206 esac
5207 GNATBIND=$ac_ct_GNATBIND
5209 else
5210 GNATBIND="$ac_cv_prog_GNATBIND"
5213 if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_GNATMAKE+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$GNATMAKE"; then
5222 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 GNATMAKE=$ac_cv_prog_GNATMAKE
5242 if test -n "$GNATMAKE"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5244 $as_echo "$GNATMAKE" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5252 if test -z "$ac_cv_prog_GNATMAKE"; then
5253 ac_ct_GNATMAKE=$GNATMAKE
5254 # Extract the first word of "gnatmake", so it can be a program name with args.
5255 set dummy gnatmake; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$ac_ct_GNATMAKE"; then
5262 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5282 if test -n "$ac_ct_GNATMAKE"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5284 $as_echo "$ac_ct_GNATMAKE" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5290 if test "x$ac_ct_GNATMAKE" = x; then
5291 GNATMAKE="no"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 GNATMAKE=$ac_ct_GNATMAKE
5301 else
5302 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5306 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5307 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309 else
5310 cat >conftest.adb <<EOF
5311 pragma Warnings (Off);
5312 with System.CRTL;
5313 pragma Warnings (On);
5314 use type System.CRTL.int64;
5315 procedure conftest is begin null; end conftest;
5317 acx_cv_cc_gcc_supports_ada=no
5318 # There is a bug in old released versions of GCC which causes the
5319 # driver to exit successfully when the appropriate language module
5320 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5321 # Therefore we must check for the error message as well as an
5322 # unsuccessful exit.
5323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5324 # given a .adb file, but produce no object file. So we must check
5325 # if an object file was really produced to guard against this.
5326 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5327 if test x"$errors" = x && test -f conftest.$ac_objext; then
5328 acx_cv_cc_gcc_supports_ada=yes
5330 rm -f conftest.*
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5333 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5335 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5336 have_gnat=yes
5337 else
5338 have_gnat=no
5343 if test -n "$ac_tool_prefix"; then
5344 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5345 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_GDC+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$GDC"; then
5352 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5371 GDC=$ac_cv_prog_GDC
5372 if test -n "$GDC"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5374 $as_echo "$GDC" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5382 if test -z "$ac_cv_prog_GDC"; then
5383 ac_ct_GDC=$GDC
5384 # Extract the first word of "gdc", so it can be a program name with args.
5385 set dummy gdc; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$ac_ct_GDC"; then
5392 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_GDC="gdc"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5412 if test -n "$ac_ct_GDC"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5414 $as_echo "$ac_ct_GDC" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5420 if test "x$ac_ct_GDC" = x; then
5421 GDC="no"
5422 else
5423 case $cross_compiling:$ac_tool_warned in
5424 yes:)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5427 ac_tool_warned=yes ;;
5428 esac
5429 GDC=$ac_ct_GDC
5431 else
5432 GDC="$ac_cv_prog_GDC"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5436 $as_echo_n "checking whether the D compiler works... " >&6; }
5437 if ${acx_cv_d_compiler_works+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat >conftest.d <<EOF
5441 module conftest; int main() { return 0; }
5443 acx_cv_d_compiler_works=no
5444 if test "x$GDC" != xno; then
5445 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5446 if test x"$errors" = x && test -f conftest.$ac_objext; then
5447 acx_cv_d_compiler_works=yes
5449 rm -f conftest.*
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5453 $as_echo "$acx_cv_d_compiler_works" >&6; }
5454 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5455 have_gdc=yes
5456 else
5457 have_gdc=no
5461 # Do configure tests with the C++ compiler, since that's what we build with.
5462 ac_ext=cpp
5463 ac_cpp='$CXXCPP $CPPFLAGS'
5464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5469 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5470 # optimizations to be activated explicitly by the toplevel.
5471 case "$CC" in
5472 */prev-gcc/xgcc*) ;;
5473 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5474 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5475 esac
5480 # Determine PICFLAG for target gnatlib.
5485 case "${target}" in
5486 # PIC is the default on some targets or must not be used.
5487 *-*-darwin*)
5488 # For darwin, common symbols are not allowed in MH_DYLIB files
5489 case "${CFLAGS}" in
5490 # If we are using a compiler supporting mdynamic-no-pic
5491 # and the option has been tested as safe to add, then cancel
5492 # it here, since the code generated is incompatible with shared
5493 # libs.
5494 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5495 *) PICFLAG_FOR_TARGET=-fno-common ;;
5496 esac
5498 alpha*-dec-osf5*)
5499 # PIC is the default.
5501 hppa*64*-*-hpux*)
5502 # PIC is the default for 64-bit PA HP-UX.
5504 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5506 i[34567]86-*-mingw* | x86_64-*-mingw*)
5508 i[34567]86-*-interix[3-9]*)
5509 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5510 # Instead, we relocate shared libraries at runtime.
5512 i[34567]86-*-nto-qnx*)
5513 # QNX uses GNU C++, but need to define -shared option too, otherwise
5514 # it will coredump.
5515 PICFLAG_FOR_TARGET='-fPIC -shared'
5517 i[34567]86-pc-msdosdjgpp*)
5518 # DJGPP does not support shared libraries at all.
5520 ia64*-*-hpux*)
5521 # On IA64 HP-UX, PIC is the default but the pic flag
5522 # sets the default TLS model and affects inlining.
5523 PICFLAG_FOR_TARGET=-fPIC
5525 loongarch*-*-*)
5526 PICFLAG_FOR_TARGET=-fpic
5528 mips-sgi-irix6*)
5529 # PIC is the default.
5531 rs6000-ibm-aix* | powerpc-ibm-aix*)
5532 # All AIX code is PIC.
5535 # Some targets support both -fPIC and -fpic, but prefer the latter.
5536 # FIXME: Why?
5537 i[34567]86-*-* | x86_64-*-*)
5538 PICFLAG_FOR_TARGET=-fpic
5540 # FIXME: Override -fPIC default in libgcc only?
5541 sh-*-linux* | sh[2346lbe]*-*-linux*)
5542 PICFLAG_FOR_TARGET=-fpic
5544 sh*-*-netbsd*)
5545 PICFLAG_FOR_TARGET=-fpic
5547 # Default to -fPIC unless specified otherwise.
5549 PICFLAG_FOR_TARGET=-fPIC
5551 esac
5553 # If the user explicitly uses -fpic/-fPIC, keep that.
5554 case "${CFLAGS_FOR_TARGET}" in
5555 *-fpic*)
5556 PICFLAG_FOR_TARGET=-fpic
5558 *-fPIC*)
5559 PICFLAG_FOR_TARGET=-fPIC
5561 esac
5565 # -------------------------
5566 # Check C compiler features
5567 # -------------------------
5570 ac_ext=cpp
5571 ac_cpp='$CXXCPP $CPPFLAGS'
5572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5576 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5577 if test -z "$CXXCPP"; then
5578 if ${ac_cv_prog_CXXCPP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 # Double quotes because CXXCPP needs to be expanded
5582 for CXXCPP in "$CXX -E" "/lib/cpp"
5584 ac_preproc_ok=false
5585 for ac_cxx_preproc_warn_flag in '' yes
5587 # Use a header file that comes with gcc, so configuring glibc
5588 # with a fresh cross-compiler works.
5589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590 # <limits.h> exists even on freestanding compilers.
5591 # On the NeXT, cc -E runs the code through the compiler's parser,
5592 # not just through cpp. "Syntax error" is here to catch this case.
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #ifdef __STDC__
5596 # include <limits.h>
5597 #else
5598 # include <assert.h>
5599 #endif
5600 Syntax error
5601 _ACEOF
5602 if ac_fn_cxx_try_cpp "$LINENO"; then :
5604 else
5605 # Broken: fails on valid input.
5606 continue
5608 rm -f conftest.err conftest.i conftest.$ac_ext
5610 # OK, works on sane cases. Now check whether nonexistent headers
5611 # can be detected and how.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #include <ac_nonexistent.h>
5615 _ACEOF
5616 if ac_fn_cxx_try_cpp "$LINENO"; then :
5617 # Broken: success on invalid input.
5618 continue
5619 else
5620 # Passes both tests.
5621 ac_preproc_ok=:
5622 break
5624 rm -f conftest.err conftest.i conftest.$ac_ext
5626 done
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.i conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then :
5630 break
5633 done
5634 ac_cv_prog_CXXCPP=$CXXCPP
5637 CXXCPP=$ac_cv_prog_CXXCPP
5638 else
5639 ac_cv_prog_CXXCPP=$CXXCPP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5642 $as_echo "$CXXCPP" >&6; }
5643 ac_preproc_ok=false
5644 for ac_cxx_preproc_warn_flag in '' yes
5646 # Use a header file that comes with gcc, so configuring glibc
5647 # with a fresh cross-compiler works.
5648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 # <limits.h> exists even on freestanding compilers.
5650 # On the NeXT, cc -E runs the code through the compiler's parser,
5651 # not just through cpp. "Syntax error" is here to catch this case.
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #ifdef __STDC__
5655 # include <limits.h>
5656 #else
5657 # include <assert.h>
5658 #endif
5659 Syntax error
5660 _ACEOF
5661 if ac_fn_cxx_try_cpp "$LINENO"; then :
5663 else
5664 # Broken: fails on valid input.
5665 continue
5667 rm -f conftest.err conftest.i conftest.$ac_ext
5669 # OK, works on sane cases. Now check whether nonexistent headers
5670 # can be detected and how.
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <ac_nonexistent.h>
5674 _ACEOF
5675 if ac_fn_cxx_try_cpp "$LINENO"; then :
5676 # Broken: success on invalid input.
5677 continue
5678 else
5679 # Passes both tests.
5680 ac_preproc_ok=:
5681 break
5683 rm -f conftest.err conftest.i conftest.$ac_ext
5685 done
5686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5687 rm -f conftest.i conftest.err conftest.$ac_ext
5688 if $ac_preproc_ok; then :
5690 else
5691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5693 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5694 See \`config.log' for more details" "$LINENO" 5; }
5697 ac_ext=cpp
5698 ac_cpp='$CXXCPP $CPPFLAGS'
5699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5705 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5706 if ${ac_cv_path_GREP+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -z "$GREP"; then
5710 ac_path_GREP_found=false
5711 # Loop through the user's path and test for each of PROGNAME-LIST
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_prog in grep ggrep; do
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5720 as_fn_executable_p "$ac_path_GREP" || continue
5721 # Check for GNU ac_path_GREP and select it if it is found.
5722 # Check for GNU $ac_path_GREP
5723 case `"$ac_path_GREP" --version 2>&1` in
5724 *GNU*)
5725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5727 ac_count=0
5728 $as_echo_n 0123456789 >"conftest.in"
5729 while :
5731 cat "conftest.in" "conftest.in" >"conftest.tmp"
5732 mv "conftest.tmp" "conftest.in"
5733 cp "conftest.in" "conftest.nl"
5734 $as_echo 'GREP' >> "conftest.nl"
5735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737 as_fn_arith $ac_count + 1 && ac_count=$as_val
5738 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5739 # Best one so far, save it but keep looking for a better one
5740 ac_cv_path_GREP="$ac_path_GREP"
5741 ac_path_GREP_max=$ac_count
5743 # 10*(2^10) chars as input seems more than enough
5744 test $ac_count -gt 10 && break
5745 done
5746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747 esac
5749 $ac_path_GREP_found && break 3
5750 done
5751 done
5752 done
5753 IFS=$as_save_IFS
5754 if test -z "$ac_cv_path_GREP"; then
5755 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757 else
5758 ac_cv_path_GREP=$GREP
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5763 $as_echo "$ac_cv_path_GREP" >&6; }
5764 GREP="$ac_cv_path_GREP"
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5768 $as_echo_n "checking for egrep... " >&6; }
5769 if ${ac_cv_path_EGREP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5773 then ac_cv_path_EGREP="$GREP -E"
5774 else
5775 if test -z "$EGREP"; then
5776 ac_path_EGREP_found=false
5777 # Loop through the user's path and test for each of PROGNAME-LIST
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_prog in egrep; do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5786 as_fn_executable_p "$ac_path_EGREP" || continue
5787 # Check for GNU ac_path_EGREP and select it if it is found.
5788 # Check for GNU $ac_path_EGREP
5789 case `"$ac_path_EGREP" --version 2>&1` in
5790 *GNU*)
5791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5793 ac_count=0
5794 $as_echo_n 0123456789 >"conftest.in"
5795 while :
5797 cat "conftest.in" "conftest.in" >"conftest.tmp"
5798 mv "conftest.tmp" "conftest.in"
5799 cp "conftest.in" "conftest.nl"
5800 $as_echo 'EGREP' >> "conftest.nl"
5801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5803 as_fn_arith $ac_count + 1 && ac_count=$as_val
5804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5805 # Best one so far, save it but keep looking for a better one
5806 ac_cv_path_EGREP="$ac_path_EGREP"
5807 ac_path_EGREP_max=$ac_count
5809 # 10*(2^10) chars as input seems more than enough
5810 test $ac_count -gt 10 && break
5811 done
5812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5813 esac
5815 $ac_path_EGREP_found && break 3
5816 done
5817 done
5818 done
5819 IFS=$as_save_IFS
5820 if test -z "$ac_cv_path_EGREP"; then
5821 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823 else
5824 ac_cv_path_EGREP=$EGREP
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5830 $as_echo "$ac_cv_path_EGREP" >&6; }
5831 EGREP="$ac_cv_path_EGREP"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5835 $as_echo_n "checking for ANSI C header files... " >&6; }
5836 if ${ac_cv_header_stdc+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841 #include <stdlib.h>
5842 #include <stdarg.h>
5843 #include <string.h>
5844 #include <float.h>
5847 main ()
5851 return 0;
5853 _ACEOF
5854 if ac_fn_cxx_try_compile "$LINENO"; then :
5855 ac_cv_header_stdc=yes
5856 else
5857 ac_cv_header_stdc=no
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 if test $ac_cv_header_stdc = yes; then
5862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <string.h>
5867 _ACEOF
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 $EGREP "memchr" >/dev/null 2>&1; then :
5871 else
5872 ac_cv_header_stdc=no
5874 rm -f conftest*
5878 if test $ac_cv_header_stdc = yes; then
5879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #include <stdlib.h>
5884 _ACEOF
5885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5886 $EGREP "free" >/dev/null 2>&1; then :
5888 else
5889 ac_cv_header_stdc=no
5891 rm -f conftest*
5895 if test $ac_cv_header_stdc = yes; then
5896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5897 if test "$cross_compiling" = yes; then :
5899 else
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #include <ctype.h>
5903 #include <stdlib.h>
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5907 #else
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5913 #endif
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5917 main ()
5919 int i;
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5923 return 2;
5924 return 0;
5926 _ACEOF
5927 if ac_fn_cxx_try_run "$LINENO"; then :
5929 else
5930 ac_cv_header_stdc=no
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5933 conftest.$ac_objext conftest.beam conftest.$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5939 $as_echo "$ac_cv_header_stdc" >&6; }
5940 if test $ac_cv_header_stdc = yes; then
5942 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5946 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5948 inttypes.h stdint.h unistd.h
5949 do :
5950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5951 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5954 cat >>confdefs.h <<_ACEOF
5955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5960 done
5964 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5965 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5966 MINIX=yes
5967 else
5968 MINIX=
5972 if test "$MINIX" = yes; then
5974 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5977 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5980 $as_echo "#define _MINIX 1" >>confdefs.h
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5986 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5987 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5993 # define __EXTENSIONS__ 1
5994 $ac_includes_default
5996 main ()
6000 return 0;
6002 _ACEOF
6003 if ac_fn_cxx_try_compile "$LINENO"; then :
6004 ac_cv_safe_to_define___extensions__=yes
6005 else
6006 ac_cv_safe_to_define___extensions__=no
6008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6011 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6012 test $ac_cv_safe_to_define___extensions__ = yes &&
6013 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6015 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6017 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6019 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6021 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6032 # On Suns, sometimes $CPP names a directory.
6033 if test -n "$CPP" && test -d "$CPP"; then
6034 CPP=
6036 if test -z "$CPP"; then
6037 if ${ac_cv_prog_CPP+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 # Double quotes because CPP needs to be expanded
6041 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 ac_preproc_ok=false
6044 for ac_c_preproc_warn_flag in '' yes
6046 # Use a header file that comes with gcc, so configuring glibc
6047 # with a fresh cross-compiler works.
6048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6049 # <limits.h> exists even on freestanding compilers.
6050 # On the NeXT, cc -E runs the code through the compiler's parser,
6051 # not just through cpp. "Syntax error" is here to catch this case.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #ifdef __STDC__
6055 # include <limits.h>
6056 #else
6057 # include <assert.h>
6058 #endif
6059 Syntax error
6060 _ACEOF
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6063 else
6064 # Broken: fails on valid input.
6065 continue
6067 rm -f conftest.err conftest.i conftest.$ac_ext
6069 # OK, works on sane cases. Now check whether nonexistent headers
6070 # can be detected and how.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <ac_nonexistent.h>
6074 _ACEOF
6075 if ac_fn_c_try_cpp "$LINENO"; then :
6076 # Broken: success on invalid input.
6077 continue
6078 else
6079 # Passes both tests.
6080 ac_preproc_ok=:
6081 break
6083 rm -f conftest.err conftest.i conftest.$ac_ext
6085 done
6086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6087 rm -f conftest.i conftest.err conftest.$ac_ext
6088 if $ac_preproc_ok; then :
6089 break
6092 done
6093 ac_cv_prog_CPP=$CPP
6096 CPP=$ac_cv_prog_CPP
6097 else
6098 ac_cv_prog_CPP=$CPP
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6101 $as_echo "$CPP" >&6; }
6102 ac_preproc_ok=false
6103 for ac_c_preproc_warn_flag in '' yes
6105 # Use a header file that comes with gcc, so configuring glibc
6106 # with a fresh cross-compiler works.
6107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 # <limits.h> exists even on freestanding compilers.
6109 # On the NeXT, cc -E runs the code through the compiler's parser,
6110 # not just through cpp. "Syntax error" is here to catch this case.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #ifdef __STDC__
6114 # include <limits.h>
6115 #else
6116 # include <assert.h>
6117 #endif
6118 Syntax error
6119 _ACEOF
6120 if ac_fn_c_try_cpp "$LINENO"; then :
6122 else
6123 # Broken: fails on valid input.
6124 continue
6126 rm -f conftest.err conftest.i conftest.$ac_ext
6128 # OK, works on sane cases. Now check whether nonexistent headers
6129 # can be detected and how.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if ac_fn_c_try_cpp "$LINENO"; then :
6135 # Broken: success on invalid input.
6136 continue
6137 else
6138 # Passes both tests.
6139 ac_preproc_ok=:
6140 break
6142 rm -f conftest.err conftest.i conftest.$ac_ext
6144 done
6145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6146 rm -f conftest.i conftest.err conftest.$ac_ext
6147 if $ac_preproc_ok; then :
6149 else
6150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6152 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6153 See \`config.log' for more details" "$LINENO" 5; }
6156 ac_ext=cpp
6157 ac_cpp='$CXXCPP $CPPFLAGS'
6158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6163 $as_echo_n "checking for inline... " >&6; }
6164 if ${ac_cv_c_inline+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 ac_cv_c_inline=no
6168 for ac_kw in inline __inline__ __inline; do
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #ifndef __cplusplus
6172 typedef int foo_t;
6173 static $ac_kw foo_t static_foo () {return 0; }
6174 $ac_kw foo_t foo () {return 0; }
6175 #endif
6177 _ACEOF
6178 if ac_fn_cxx_try_compile "$LINENO"; then :
6179 ac_cv_c_inline=$ac_kw
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 test "$ac_cv_c_inline" != no && break
6183 done
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6187 $as_echo "$ac_cv_c_inline" >&6; }
6189 case $ac_cv_c_inline in
6190 inline | yes) ;;
6192 case $ac_cv_c_inline in
6193 no) ac_val=;;
6194 *) ac_val=$ac_cv_c_inline;;
6195 esac
6196 cat >>confdefs.h <<_ACEOF
6197 #ifndef __cplusplus
6198 #define inline $ac_val
6199 #endif
6200 _ACEOF
6202 esac
6205 # Check whether --enable-largefile was given.
6206 if test "${enable_largefile+set}" = set; then :
6207 enableval=$enable_largefile;
6210 if test "$enable_largefile" != no; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6213 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6214 if ${ac_cv_sys_largefile_CC+:} false; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 ac_cv_sys_largefile_CC=no
6218 if test "$GCC" != yes; then
6219 ac_save_CC=$CC
6220 while :; do
6221 # IRIX 6.2 and later do not support large files by default,
6222 # so use the C compiler's -n32 option if that helps.
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 #include <sys/types.h>
6226 /* Check that off_t can represent 2**63 - 1 correctly.
6227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6228 since some C++ compilers masquerading as C compilers
6229 incorrectly reject 9223372036854775807. */
6230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6232 && LARGE_OFF_T % 2147483647 == 1)
6233 ? 1 : -1];
6235 main ()
6239 return 0;
6241 _ACEOF
6242 if ac_fn_cxx_try_compile "$LINENO"; then :
6243 break
6245 rm -f core conftest.err conftest.$ac_objext
6246 CC="$CC -n32"
6247 if ac_fn_cxx_try_compile "$LINENO"; then :
6248 ac_cv_sys_largefile_CC=' -n32'; break
6250 rm -f core conftest.err conftest.$ac_objext
6251 break
6252 done
6253 CC=$ac_save_CC
6254 rm -f conftest.$ac_ext
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6258 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6259 if test "$ac_cv_sys_largefile_CC" != no; then
6260 CC=$CC$ac_cv_sys_largefile_CC
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6264 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6265 if ${ac_cv_sys_file_offset_bits+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 while :; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #include <sys/types.h>
6272 /* Check that off_t can represent 2**63 - 1 correctly.
6273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6274 since some C++ compilers masquerading as C compilers
6275 incorrectly reject 9223372036854775807. */
6276 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6278 && LARGE_OFF_T % 2147483647 == 1)
6279 ? 1 : -1];
6281 main ()
6285 return 0;
6287 _ACEOF
6288 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 ac_cv_sys_file_offset_bits=no; break
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #define _FILE_OFFSET_BITS 64
6295 #include <sys/types.h>
6296 /* Check that off_t can represent 2**63 - 1 correctly.
6297 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6298 since some C++ compilers masquerading as C compilers
6299 incorrectly reject 9223372036854775807. */
6300 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6301 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6302 && LARGE_OFF_T % 2147483647 == 1)
6303 ? 1 : -1];
6305 main ()
6309 return 0;
6311 _ACEOF
6312 if ac_fn_cxx_try_compile "$LINENO"; then :
6313 ac_cv_sys_file_offset_bits=64; break
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 ac_cv_sys_file_offset_bits=unknown
6317 break
6318 done
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6321 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6322 case $ac_cv_sys_file_offset_bits in #(
6323 no | unknown) ;;
6325 cat >>confdefs.h <<_ACEOF
6326 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6327 _ACEOF
6329 esac
6330 rm -rf conftest*
6331 if test $ac_cv_sys_file_offset_bits = unknown; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6333 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6334 if ${ac_cv_sys_large_files+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 while :; do
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 #include <sys/types.h>
6341 /* Check that off_t can represent 2**63 - 1 correctly.
6342 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6343 since some C++ compilers masquerading as C compilers
6344 incorrectly reject 9223372036854775807. */
6345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6346 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6347 && LARGE_OFF_T % 2147483647 == 1)
6348 ? 1 : -1];
6350 main ()
6354 return 0;
6356 _ACEOF
6357 if ac_fn_cxx_try_compile "$LINENO"; then :
6358 ac_cv_sys_large_files=no; break
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #define _LARGE_FILES 1
6364 #include <sys/types.h>
6365 /* Check that off_t can represent 2**63 - 1 correctly.
6366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6367 since some C++ compilers masquerading as C compilers
6368 incorrectly reject 9223372036854775807. */
6369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6371 && LARGE_OFF_T % 2147483647 == 1)
6372 ? 1 : -1];
6374 main ()
6378 return 0;
6380 _ACEOF
6381 if ac_fn_cxx_try_compile "$LINENO"; then :
6382 ac_cv_sys_large_files=1; break
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 ac_cv_sys_large_files=unknown
6386 break
6387 done
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6390 $as_echo "$ac_cv_sys_large_files" >&6; }
6391 case $ac_cv_sys_large_files in #(
6392 no | unknown) ;;
6394 cat >>confdefs.h <<_ACEOF
6395 #define _LARGE_FILES $ac_cv_sys_large_files
6396 _ACEOF
6398 esac
6399 rm -rf conftest*
6405 # The cast to long int works around a bug in the HP C Compiler
6406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6408 # This bug is HP SR number 8606223364.
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6410 $as_echo_n "checking size of ino_t... " >&6; }
6411 if ${ac_cv_sizeof_ino_t+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6416 else
6417 if test "$ac_cv_type_ino_t" = yes; then
6418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6420 as_fn_error 77 "cannot compute sizeof (ino_t)
6421 See \`config.log' for more details" "$LINENO" 5; }
6422 else
6423 ac_cv_sizeof_ino_t=0
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6429 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6433 cat >>confdefs.h <<_ACEOF
6434 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6435 _ACEOF
6438 # The cast to long int works around a bug in the HP C Compiler
6439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6441 # This bug is HP SR number 8606223364.
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6443 $as_echo_n "checking size of dev_t... " >&6; }
6444 if ${ac_cv_sizeof_dev_t+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6449 else
6450 if test "$ac_cv_type_dev_t" = yes; then
6451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6453 as_fn_error 77 "cannot compute sizeof (dev_t)
6454 See \`config.log' for more details" "$LINENO" 5; }
6455 else
6456 ac_cv_sizeof_dev_t=0
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6462 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6466 cat >>confdefs.h <<_ACEOF
6467 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6468 _ACEOF
6472 # Select the right stat being able to handle 64bit inodes, if needed.
6473 if test "$enable_largefile" != no; then
6474 case "$host, $build" in
6475 *-*-aix*,*|*,*-*-aix*)
6476 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6478 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6480 fi;;
6481 esac
6485 # sizeof(char) is 1 by definition.
6486 # The cast to long int works around a bug in the HP C Compiler
6487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6489 # This bug is HP SR number 8606223364.
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6491 $as_echo_n "checking size of void *... " >&6; }
6492 if ${ac_cv_sizeof_void_p+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6497 else
6498 if test "$ac_cv_type_void_p" = yes; then
6499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6501 as_fn_error 77 "cannot compute sizeof (void *)
6502 See \`config.log' for more details" "$LINENO" 5; }
6503 else
6504 ac_cv_sizeof_void_p=0
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6510 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6514 cat >>confdefs.h <<_ACEOF
6515 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6516 _ACEOF
6519 # The cast to long int works around a bug in the HP C Compiler
6520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6522 # This bug is HP SR number 8606223364.
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6524 $as_echo_n "checking size of short... " >&6; }
6525 if ${ac_cv_sizeof_short+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6530 else
6531 if test "$ac_cv_type_short" = yes; then
6532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6534 as_fn_error 77 "cannot compute sizeof (short)
6535 See \`config.log' for more details" "$LINENO" 5; }
6536 else
6537 ac_cv_sizeof_short=0
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6543 $as_echo "$ac_cv_sizeof_short" >&6; }
6547 cat >>confdefs.h <<_ACEOF
6548 #define SIZEOF_SHORT $ac_cv_sizeof_short
6549 _ACEOF
6552 # The cast to long int works around a bug in the HP C Compiler
6553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6555 # This bug is HP SR number 8606223364.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6557 $as_echo_n "checking size of int... " >&6; }
6558 if ${ac_cv_sizeof_int+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6563 else
6564 if test "$ac_cv_type_int" = yes; then
6565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error 77 "cannot compute sizeof (int)
6568 See \`config.log' for more details" "$LINENO" 5; }
6569 else
6570 ac_cv_sizeof_int=0
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6576 $as_echo "$ac_cv_sizeof_int" >&6; }
6580 cat >>confdefs.h <<_ACEOF
6581 #define SIZEOF_INT $ac_cv_sizeof_int
6582 _ACEOF
6585 # The cast to long int works around a bug in the HP C Compiler
6586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6588 # This bug is HP SR number 8606223364.
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6590 $as_echo_n "checking size of long... " >&6; }
6591 if ${ac_cv_sizeof_long+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6596 else
6597 if test "$ac_cv_type_long" = yes; then
6598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6600 as_fn_error 77 "cannot compute sizeof (long)
6601 See \`config.log' for more details" "$LINENO" 5; }
6602 else
6603 ac_cv_sizeof_long=0
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6609 $as_echo "$ac_cv_sizeof_long" >&6; }
6613 cat >>confdefs.h <<_ACEOF
6614 #define SIZEOF_LONG $ac_cv_sizeof_long
6615 _ACEOF
6618 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6619 if test "x$ac_cv_type_long_long" = xyes; then :
6621 cat >>confdefs.h <<_ACEOF
6622 #define HAVE_LONG_LONG 1
6623 _ACEOF
6625 # The cast to long int works around a bug in the HP C Compiler
6626 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6627 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6628 # This bug is HP SR number 8606223364.
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6630 $as_echo_n "checking size of long long... " >&6; }
6631 if ${ac_cv_sizeof_long_long+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6636 else
6637 if test "$ac_cv_type_long_long" = yes; then
6638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6640 as_fn_error 77 "cannot compute sizeof (long long)
6641 See \`config.log' for more details" "$LINENO" 5; }
6642 else
6643 ac_cv_sizeof_long_long=0
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6649 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6653 cat >>confdefs.h <<_ACEOF
6654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6655 _ACEOF
6660 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6661 case $ac_cv_c_int8_t in #(
6662 no|yes) ;; #(
6665 cat >>confdefs.h <<_ACEOF
6666 #define int8_t $ac_cv_c_int8_t
6667 _ACEOF
6669 esac
6671 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6672 case $ac_cv_c_int16_t in #(
6673 no|yes) ;; #(
6676 cat >>confdefs.h <<_ACEOF
6677 #define int16_t $ac_cv_c_int16_t
6678 _ACEOF
6680 esac
6682 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6683 case $ac_cv_c_int32_t in #(
6684 no|yes) ;; #(
6687 cat >>confdefs.h <<_ACEOF
6688 #define int32_t $ac_cv_c_int32_t
6689 _ACEOF
6691 esac
6693 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6694 case $ac_cv_c_int64_t in #(
6695 no|yes) ;; #(
6698 cat >>confdefs.h <<_ACEOF
6699 #define int64_t $ac_cv_c_int64_t
6700 _ACEOF
6702 esac
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6706 $as_echo_n "checking for unsigned long long int... " >&6; }
6707 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6708 $as_echo_n "(cached) " >&6
6709 else
6710 ac_cv_type_unsigned_long_long_int=yes
6711 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 /* For now, do not test the preprocessor; as of 2007 there are too many
6716 implementations with broken preprocessors. Perhaps this can
6717 be revisited in 2012. In the meantime, code should not expect
6718 #if to work with literals wider than 32 bits. */
6719 /* Test literals. */
6720 long long int ll = 9223372036854775807ll;
6721 long long int nll = -9223372036854775807LL;
6722 unsigned long long int ull = 18446744073709551615ULL;
6723 /* Test constant expressions. */
6724 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6725 ? 1 : -1)];
6726 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6727 ? 1 : -1)];
6728 int i = 63;
6730 main ()
6732 /* Test availability of runtime routines for shift and division. */
6733 long long int llmax = 9223372036854775807ll;
6734 unsigned long long int ullmax = 18446744073709551615ull;
6735 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6736 | (llmax / ll) | (llmax % ll)
6737 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6738 | (ullmax / ull) | (ullmax % ull));
6740 return 0;
6743 _ACEOF
6744 if ac_fn_cxx_try_link "$LINENO"; then :
6746 else
6747 ac_cv_type_unsigned_long_long_int=no
6749 rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6754 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6755 if test $ac_cv_type_unsigned_long_long_int = yes; then
6757 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6764 $as_echo_n "checking for long long int... " >&6; }
6765 if ${ac_cv_type_long_long_int+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 ac_cv_type_long_long_int=yes
6769 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6770 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6771 if test $ac_cv_type_long_long_int = yes; then
6772 if test "$cross_compiling" = yes; then :
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 #include <limits.h>
6778 #ifndef LLONG_MAX
6779 # define HALF \
6780 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6781 # define LLONG_MAX (HALF - 1 + HALF)
6782 #endif
6784 main ()
6786 long long int n = 1;
6787 int i;
6788 for (i = 0; ; i++)
6790 long long int m = n << i;
6791 if (m >> i != n)
6792 return 1;
6793 if (LLONG_MAX / 2 < m)
6794 break;
6796 return 0;
6798 return 0;
6800 _ACEOF
6801 if ac_fn_cxx_try_run "$LINENO"; then :
6803 else
6804 ac_cv_type_long_long_int=no
6806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6807 conftest.$ac_objext conftest.beam conftest.$ac_ext
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6814 $as_echo "$ac_cv_type_long_long_int" >&6; }
6815 if test $ac_cv_type_long_long_int = yes; then
6817 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6823 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6824 if test "x$ac_cv_type_intmax_t" = xyes; then :
6826 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6828 else
6829 test $ac_cv_type_long_long_int = yes \
6830 && ac_type='long long int' \
6831 || ac_type='long int'
6833 cat >>confdefs.h <<_ACEOF
6834 #define intmax_t $ac_type
6835 _ACEOF
6841 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6842 if test "x$ac_cv_type_intptr_t" = xyes; then :
6844 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6846 else
6847 for ac_type in 'int' 'long int' 'long long int'; do
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 $ac_includes_default
6852 main ()
6854 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6855 test_array [0] = 0;
6856 return test_array [0];
6859 return 0;
6861 _ACEOF
6862 if ac_fn_cxx_try_compile "$LINENO"; then :
6864 cat >>confdefs.h <<_ACEOF
6865 #define intptr_t $ac_type
6866 _ACEOF
6868 ac_type=
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 test -z "$ac_type" && break
6872 done
6876 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6877 case $ac_cv_c_uint8_t in #(
6878 no|yes) ;; #(
6881 $as_echo "#define _UINT8_T 1" >>confdefs.h
6884 cat >>confdefs.h <<_ACEOF
6885 #define uint8_t $ac_cv_c_uint8_t
6886 _ACEOF
6888 esac
6890 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6891 case $ac_cv_c_uint16_t in #(
6892 no|yes) ;; #(
6896 cat >>confdefs.h <<_ACEOF
6897 #define uint16_t $ac_cv_c_uint16_t
6898 _ACEOF
6900 esac
6902 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6903 case $ac_cv_c_uint32_t in #(
6904 no|yes) ;; #(
6907 $as_echo "#define _UINT32_T 1" >>confdefs.h
6910 cat >>confdefs.h <<_ACEOF
6911 #define uint32_t $ac_cv_c_uint32_t
6912 _ACEOF
6914 esac
6916 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6917 case $ac_cv_c_uint64_t in #(
6918 no|yes) ;; #(
6921 $as_echo "#define _UINT64_T 1" >>confdefs.h
6924 cat >>confdefs.h <<_ACEOF
6925 #define uint64_t $ac_cv_c_uint64_t
6926 _ACEOF
6928 esac
6932 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6933 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6935 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6937 else
6938 test $ac_cv_type_unsigned_long_long_int = yes \
6939 && ac_type='unsigned long long int' \
6940 || ac_type='unsigned long int'
6942 cat >>confdefs.h <<_ACEOF
6943 #define uintmax_t $ac_type
6944 _ACEOF
6950 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6951 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6953 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6955 else
6956 for ac_type in 'unsigned int' 'unsigned long int' \
6957 'unsigned long long int'; do
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6960 $ac_includes_default
6962 main ()
6964 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6965 test_array [0] = 0;
6966 return test_array [0];
6969 return 0;
6971 _ACEOF
6972 if ac_fn_cxx_try_compile "$LINENO"; then :
6974 cat >>confdefs.h <<_ACEOF
6975 #define uintptr_t $ac_type
6976 _ACEOF
6978 ac_type=
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 test -z "$ac_type" && break
6982 done
6998 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6999 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7002 # check what underlying integer type int64_t uses
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7004 $as_echo_n "checking for int64_t underlying type... " >&6; }
7005 if ${ac_cv_int64_t_type+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7012 #ifdef HAVE_STDINT_H
7013 #include <stdint.h>
7014 #endif
7015 template <typename T> struct X { };
7016 template <>
7017 struct X<long> { typedef long t; };
7020 main ()
7022 X<int64_t>::t x;
7024 return 0;
7026 _ACEOF
7027 if ac_fn_cxx_try_compile "$LINENO"; then :
7028 ac_cv_int64_t_type=long
7029 else
7030 ac_cv_int64_t_type="long long"
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7035 $as_echo "$ac_cv_int64_t_type" >&6; }
7036 if test "$ac_cv_int64_t_type" = "long"; then
7038 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7040 else
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 #ifdef HAVE_STDINT_H
7045 #include <stdint.h>
7046 #endif
7047 template <typename T> struct X { };
7048 template <>
7049 struct X<long long> { typedef long long t; };
7052 main ()
7054 X<int64_t>::t x;
7056 return 0;
7058 _ACEOF
7059 if ac_fn_cxx_try_compile "$LINENO"; then :
7061 else
7062 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7068 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7069 if ${ac_cv_std_swap_in_utility+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7076 #include <utility>
7079 main ()
7081 int a, b; std::swap(a,b);
7083 return 0;
7085 _ACEOF
7086 if ac_fn_cxx_try_compile "$LINENO"; then :
7087 ac_cv_std_swap_in_utility=yes
7088 else
7089 ac_cv_std_swap_in_utility=no
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7094 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7095 if test $ac_cv_std_swap_in_utility = yes; then
7097 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7101 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7102 # If the host compiler is affected by the bug, and we build with optimization
7103 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7104 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7105 # Since there is no reliable feature check for the presence of this bug,
7106 # we simply use a GCC version number check. (This should never trigger for
7107 # stages 2 or 3 of a native bootstrap.)
7108 aliasing_flags=
7109 if test "$GCC" = yes; then
7110 saved_CXXFLAGS="$CXXFLAGS"
7112 # The following test compilation will succeed if and only if $CXX accepts
7113 # -fno-strict-aliasing *and* is older than GCC 4.3.
7114 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7116 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7120 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7121 #error compiler not affected by placement new aliasing bug
7122 #endif
7124 _ACEOF
7125 if ac_fn_cxx_try_compile "$LINENO"; then :
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 CXXFLAGS="$saved_CXXFLAGS"
7140 # ---------------------
7141 # Warnings and checking
7142 # ---------------------
7144 # Check $CC warning features (if it's GCC).
7145 # We want to use -pedantic, but we don't want warnings about
7146 # * 'long long'
7147 # * variadic macros
7148 # * overlong strings
7149 # * C++11 narrowing conversions in { }
7150 # So, we only use -pedantic if we can disable those warnings.
7152 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7153 # Check whether --enable-build-format-warnings was given.
7154 if test "${enable_build_format_warnings+set}" = set; then :
7155 enableval=$enable_build_format_warnings;
7156 else
7157 enable_build_format_warnings=yes
7160 if test $enable_build_format_warnings = no; then :
7161 wf_opt=-Wno-format
7162 else
7163 wf_opt=
7165 ac_ext=cpp
7166 ac_cpp='$CXXCPP $CPPFLAGS'
7167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7171 loose_warn=
7172 save_CXXFLAGS="$CXXFLAGS"
7173 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7174 # Do the check with the no- prefix removed since gcc silently
7175 # accepts any -Wno-* option on purpose
7176 case $real_option in
7177 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7178 *) option=$real_option ;;
7179 esac
7180 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7183 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7184 if eval \${$as_acx_Woption+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 CXXFLAGS="$option"
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7192 main ()
7196 return 0;
7198 _ACEOF
7199 if ac_fn_cxx_try_compile "$LINENO"; then :
7200 eval "$as_acx_Woption=yes"
7201 else
7202 eval "$as_acx_Woption=no"
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 eval ac_res=\$$as_acx_Woption
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7209 $as_echo "$ac_res" >&6; }
7210 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7211 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7213 done
7214 CXXFLAGS="$save_CXXFLAGS"
7215 ac_ext=cpp
7216 ac_cpp='$CXXCPP $CPPFLAGS'
7217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7223 ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229 c_loose_warn=
7230 save_CFLAGS="$CFLAGS"
7231 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7232 # Do the check with the no- prefix removed since gcc silently
7233 # accepts any -Wno-* option on purpose
7234 case $real_option in
7235 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7236 *) option=$real_option ;;
7237 esac
7238 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7241 $as_echo_n "checking whether $CC supports $option... " >&6; }
7242 if eval \${$as_acx_Woption+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 CFLAGS="$option"
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7250 main ()
7254 return 0;
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 eval "$as_acx_Woption=yes"
7259 else
7260 eval "$as_acx_Woption=no"
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 eval ac_res=\$$as_acx_Woption
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7267 $as_echo "$ac_res" >&6; }
7268 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7269 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7271 done
7272 CFLAGS="$save_CFLAGS"
7273 ac_ext=cpp
7274 ac_cpp='$CXXCPP $CPPFLAGS'
7275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7280 ac_ext=cpp
7281 ac_cpp='$CXXCPP $CPPFLAGS'
7282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7286 strict_warn=
7287 save_CXXFLAGS="$CXXFLAGS"
7288 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7289 # Do the check with the no- prefix removed since gcc silently
7290 # accepts any -Wno-* option on purpose
7291 case $real_option in
7292 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7293 *) option=$real_option ;;
7294 esac
7295 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7298 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7299 if eval \${$as_acx_Woption+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 CXXFLAGS="$option"
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7307 main ()
7311 return 0;
7313 _ACEOF
7314 if ac_fn_cxx_try_compile "$LINENO"; then :
7315 eval "$as_acx_Woption=yes"
7316 else
7317 eval "$as_acx_Woption=no"
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 eval ac_res=\$$as_acx_Woption
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7324 $as_echo "$ac_res" >&6; }
7325 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7326 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7328 done
7329 CXXFLAGS="$save_CXXFLAGS"
7330 ac_ext=cpp
7331 ac_cpp='$CXXCPP $CPPFLAGS'
7332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7337 ac_ext=c
7338 ac_cpp='$CPP $CPPFLAGS'
7339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343 c_strict_warn=
7344 save_CFLAGS="$CFLAGS"
7345 for real_option in -Wold-style-definition -Wc++-compat; do
7346 # Do the check with the no- prefix removed since gcc silently
7347 # accepts any -Wno-* option on purpose
7348 case $real_option in
7349 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7350 *) option=$real_option ;;
7351 esac
7352 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7355 $as_echo_n "checking whether $CC supports $option... " >&6; }
7356 if eval \${$as_acx_Woption+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 CFLAGS="$option"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 main ()
7368 return 0;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"; then :
7372 eval "$as_acx_Woption=yes"
7373 else
7374 eval "$as_acx_Woption=no"
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 eval ac_res=\$$as_acx_Woption
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7381 $as_echo "$ac_res" >&6; }
7382 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7383 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7385 done
7386 CFLAGS="$save_CFLAGS"
7387 ac_ext=cpp
7388 ac_cpp='$CXXCPP $CPPFLAGS'
7389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7394 ac_ext=cpp
7395 ac_cpp='$CXXCPP $CPPFLAGS'
7396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7400 # Do the check with the no- prefix removed from the warning options
7401 # since gcc silently accepts any -Wno-* option on purpose
7402 if test "$GXX" = yes; then :
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7404 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7405 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 save_CXXFLAGS="$CXXFLAGS"
7409 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7414 main ()
7418 return 0;
7420 _ACEOF
7421 if ac_fn_cxx_try_compile "$LINENO"; then :
7422 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7423 else
7424 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 CXXFLAGS="$save_CXXFLAGS"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7430 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7431 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7432 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7436 ac_ext=cpp
7437 ac_cpp='$CXXCPP $CPPFLAGS'
7438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7443 ac_ext=cpp
7444 ac_cpp='$CXXCPP $CPPFLAGS'
7445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7449 # Check whether --enable-werror-always was given.
7450 if test "${enable_werror_always+set}" = set; then :
7451 enableval=$enable_werror_always;
7452 else
7453 enable_werror_always=no
7456 if test $enable_werror_always = yes; then :
7457 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7460 ac_ext=cpp
7461 ac_cpp='$CXXCPP $CPPFLAGS'
7462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7468 # The above macros do nothing if the compiler is not GCC. However, the
7469 # Makefile has more goo to add other flags, so these variables are used
7470 # to enable warnings only for GCC.
7471 warn_cflags=
7472 warn_cxxflags=
7473 if test "x$GCC" = "xyes"; then
7474 warn_cflags='$(GCC_WARN_CFLAGS)'
7475 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7480 # Disable exceptions and RTTI if building with g++
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487 noexception_flags=
7488 save_CFLAGS="$CFLAGS"
7489 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7490 # Do the check with the no- prefix removed since gcc silently
7491 # accepts any -Wno-* option on purpose
7492 case $real_option in
7493 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7494 *) option=$real_option ;;
7495 esac
7496 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7499 $as_echo_n "checking whether $CC supports $option... " >&6; }
7500 if eval \${$as_acx_Woption+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 CFLAGS="$option"
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7508 main ()
7512 return 0;
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 eval "$as_acx_Woption=yes"
7517 else
7518 eval "$as_acx_Woption=no"
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 eval ac_res=\$$as_acx_Woption
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7525 $as_echo "$ac_res" >&6; }
7526 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7527 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7529 done
7530 CFLAGS="$save_CFLAGS"
7531 ac_ext=cpp
7532 ac_cpp='$CXXCPP $CPPFLAGS'
7533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7539 # Enable expensive internal checks
7540 is_release=
7541 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7542 is_release=yes
7545 # Check whether --enable-checking was given.
7546 if test "${enable_checking+set}" = set; then :
7547 enableval=$enable_checking; ac_checking_flags="${enableval}"
7548 else
7550 # Determine the default checks.
7551 if test x$is_release = x ; then
7552 ac_checking_flags=yes,extra
7553 else
7554 ac_checking_flags=release
7558 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7559 for check in release $ac_checking_flags
7561 case $check in
7562 # these set all the flags to specific states
7563 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7564 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7565 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7566 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7567 ac_tree_checking=1 ; ac_valgrind_checking= ;
7568 ac_types_checking=1 ;;
7569 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7570 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7571 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7572 ac_rtlflag_checking= ; ac_runtime_checking= ;
7573 ac_tree_checking= ; ac_valgrind_checking= ;
7574 ac_types_checking= ;;
7575 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7576 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7577 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7578 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7579 ac_tree_checking=1 ; ac_valgrind_checking= ;
7580 ac_types_checking=1 ;;
7581 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7582 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7583 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7584 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7585 ac_tree_checking= ; ac_valgrind_checking= ;
7586 ac_types_checking= ;;
7587 # these enable particular checks
7588 assert) ac_assert_checking=1 ;;
7589 df) ac_df_checking=1 ;;
7590 extra) ac_extra_checking=1 ;;
7591 fold) ac_fold_checking=1 ;;
7592 gc) ac_gc_checking=1 ;;
7593 gcac) ac_gc_always_collect=1 ;;
7594 gimple) ac_gimple_checking=1 ;;
7595 misc) ac_checking=1 ;;
7596 rtl) ac_rtl_checking=1 ;;
7597 rtlflag) ac_rtlflag_checking=1 ;;
7598 runtime) ac_runtime_checking=1 ;;
7599 tree) ac_tree_checking=1 ;;
7600 types) ac_types_checking=1 ;;
7601 valgrind) ac_valgrind_checking=1 ;;
7602 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7603 esac
7604 done
7605 IFS="$ac_save_IFS"
7607 if test x$ac_checking != x ; then
7609 $as_echo "#define CHECKING_P 1" >>confdefs.h
7611 else
7612 $as_echo "#define CHECKING_P 0" >>confdefs.h
7615 if test x$ac_extra_checking != x ; then
7617 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7619 else
7620 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7623 if test x$ac_df_checking != x ; then
7625 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7628 if test x$ac_assert_checking != x ; then
7630 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7633 if test x$ac_gimple_checking != x ; then
7635 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7639 if test x$ac_runtime_checking != x ; then
7641 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7644 if test x$ac_tree_checking != x ; then
7646 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7648 TREECHECKING=yes
7650 if test x$ac_types_checking != x ; then
7652 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7656 if test x$ac_rtl_checking != x ; then
7658 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7661 if test x$ac_rtlflag_checking != x ; then
7663 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7666 if test x$ac_gc_checking != x ; then
7668 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7671 if test x$ac_gc_always_collect != x ; then
7673 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7676 if test x$ac_fold_checking != x ; then
7678 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7681 valgrind_path_defines=
7682 valgrind_command=
7683 if test x$ac_valgrind_checking != x ; then
7685 # Prepare PATH_SEPARATOR.
7686 # The user is always right.
7687 if test "${PATH_SEPARATOR+set}" != set; then
7688 echo "#! /bin/sh" >conf$$.sh
7689 echo "exit 0" >>conf$$.sh
7690 chmod +x conf$$.sh
7691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7692 PATH_SEPARATOR=';'
7693 else
7694 PATH_SEPARATOR=:
7696 rm -f conf$$.sh
7699 # Find out how to test for executable files. Don't use a zero-byte file,
7700 # as systems may use methods other than mode bits to determine executability.
7701 cat >conf$$.file <<_ASEOF
7702 #! /bin/sh
7703 exit 0
7704 _ASEOF
7705 chmod +x conf$$.file
7706 if test -x conf$$.file >/dev/null 2>&1; then
7707 ac_executable_p="test -x"
7708 else
7709 ac_executable_p="test -f"
7711 rm -f conf$$.file
7713 # Extract the first word of "valgrind", so it can be a program name with args.
7714 set dummy valgrind; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_path_valgrind_path+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 case "$valgrind_path" in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7725 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7726 for ac_dir in $PATH; do
7727 IFS="$ac_save_IFS"
7728 test -z "$ac_dir" && ac_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7731 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7732 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7733 break 2
7736 done
7737 done
7738 IFS="$ac_save_IFS"
7740 esac
7742 valgrind_path="$ac_cv_path_valgrind_path"
7743 if test -n "$valgrind_path"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7745 $as_echo "$valgrind_path" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7751 if test "x$valgrind_path" = "x"; then
7752 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7754 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7755 valgrind_command="$valgrind_path -q"
7757 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7763 # Enable code coverage collection
7764 # Check whether --enable-coverage was given.
7765 if test "${enable_coverage+set}" = set; then :
7766 enableval=$enable_coverage; case "${enableval}" in
7767 yes|noopt)
7768 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7770 opt)
7771 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7774 # a.k.a. --disable-coverage
7775 coverage_flags=""
7778 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7780 esac
7781 else
7782 coverage_flags=""
7787 # Check whether --enable-gather-detailed-mem-stats was given.
7788 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7789 enableval=$enable_gather_detailed_mem_stats;
7790 else
7791 enable_gather_detailed_mem_stats=no
7794 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7796 cat >>confdefs.h <<_ACEOF
7797 #define GATHER_STATISTICS $gather_stats
7798 _ACEOF
7801 # Check whether --enable-valgrind-annotations was given.
7802 if test "${enable_valgrind_annotations+set}" = set; then :
7803 enableval=$enable_valgrind_annotations;
7804 else
7805 enable_valgrind_annotations=no
7808 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7809 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7814 if test x$enable_valgrind_annotations != xno \
7815 || test x$ac_valgrind_checking != x; then
7816 if test $ac_cv_header_valgrind_memcheck_h = no; then
7817 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7820 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7824 # -------------------------------
7825 # Miscenalleous configure options
7826 # -------------------------------
7828 # Determine whether or not multilibs are enabled.
7829 # Check whether --enable-multilib was given.
7830 if test "${enable_multilib+set}" = set; then :
7831 enableval=$enable_multilib;
7832 else
7833 enable_multilib=yes
7838 # Determine whether or not multiarch is enabled.
7839 # Check whether --enable-multiarch was given.
7840 if test "${enable_multiarch+set}" = set; then :
7841 enableval=$enable_multiarch; case "${enableval}" in
7842 yes|no|auto) enable_multiarch=$enableval;;
7843 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7844 esac
7845 else
7846 enable_multiarch=auto
7849 if test x${enable_multiarch} = xauto; then
7850 if test x${with_native_system_header_dir} != x; then
7851 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7852 enable_multiarch=no
7854 if test x$host != x$target && test "x$with_sysroot" = x; then
7855 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7856 enable_multiarch=no
7859 if test x${enable_multiarch} = xyes; then
7861 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7865 $as_echo_n "checking for multiarch configuration... " >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7868 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7870 # needed for setting the multiarch name for soft-float/hard-float ABIs
7874 # default stack clash protection guard size as power of twos in bytes.
7875 # Please keep these in sync with params.def.
7876 stk_clash_min=12
7877 stk_clash_max=30
7879 # Keep the default value when the option is not used to 0, this allows us to
7880 # distinguish between the cases where the user specifially set a value via
7881 # configure and when the normal default value is used.
7883 # Check whether --with-stack-clash-protection-guard-size was given.
7884 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7885 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7886 else
7887 DEFAULT_STK_CLASH_GUARD_SIZE=0
7890 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7891 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7892 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7893 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
7897 cat >>confdefs.h <<_ACEOF
7898 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7899 _ACEOF
7902 # Specify the number of splits of match.pd to generate.
7904 # Check whether --with-matchpd-partitions was given.
7905 if test "${with_matchpd_partitions+set}" = set; then :
7906 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7907 else
7908 DEFAULT_MATCHPD_PARTITIONS=10
7911 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7912 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7917 # Specify the number of splits of insn-emit.cc to generate.
7919 # Check whether --with-insnemit-partitions was given.
7920 if test "${with_insnemit_partitions+set}" = set; then :
7921 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7922 else
7923 DEFAULT_INSNEMIT_PARTITIONS=10
7926 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7927 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7932 # Enable __cxa_atexit for C++.
7933 # Check whether --enable-__cxa_atexit was given.
7934 if test "${enable___cxa_atexit+set}" = set; then :
7935 enableval=$enable___cxa_atexit;
7939 # Enable C extension for decimal float if target supports it.
7941 # Check whether --enable-decimal-float was given.
7942 if test "${enable_decimal_float+set}" = set; then :
7943 enableval=$enable_decimal_float;
7944 case $enable_decimal_float in
7945 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7946 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7947 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7948 esac
7950 else
7952 case $target in
7953 aarch64* | \
7954 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7955 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7956 i?86*-*-mingw* | x86_64*-*-mingw* | \
7957 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7958 enable_decimal_float=yes
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7962 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7963 enable_decimal_float=no
7965 esac
7970 # x86's use BID format instead of DPD
7971 case x$enable_decimal_float in
7972 xyes)
7973 case $target in
7974 aarch64* | i?86*-*-* | x86_64*-*-*)
7975 enable_decimal_float=bid
7978 enable_decimal_float=dpd
7980 esac
7981 default_decimal_float=$enable_decimal_float
7983 xno)
7984 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7985 # dependency on libdecnumber.
7986 default_decimal_float=dpd
7988 esac
7993 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7995 cat >>confdefs.h <<_ACEOF
7996 #define ENABLE_DECIMAL_FLOAT $dfp
7997 _ACEOF
8000 # Use default_decimal_float for dependency.
8001 enable_decimal_float=$default_decimal_float
8003 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8005 cat >>confdefs.h <<_ACEOF
8006 #define ENABLE_DECIMAL_BID_FORMAT $bid
8007 _ACEOF
8010 # Enable C extension for fixed-point arithmetic.
8011 # Check whether --enable-fixed-point was given.
8012 if test "${enable_fixed_point+set}" = set; then :
8013 enableval=$enable_fixed_point;
8014 else
8016 case $target in
8017 arm*)
8018 enable_fixed_point=yes
8021 mips*-*-*)
8022 enable_fixed_point=yes
8024 loongarch*-*-*)
8025 enable_fixed_point=yes
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8029 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8030 enable_fixed_point=no
8032 esac
8038 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8040 cat >>confdefs.h <<_ACEOF
8041 #define ENABLE_FIXED_POINT $fixedpoint
8042 _ACEOF
8045 # Enable threads
8046 # Pass with no value to take the default
8047 # Pass with a value to specify a thread package
8048 # Check whether --enable-threads was given.
8049 if test "${enable_threads+set}" = set; then :
8050 enableval=$enable_threads;
8051 else
8052 enable_threads=''
8056 # Check whether --enable-tls was given.
8057 if test "${enable_tls+set}" = set; then :
8058 enableval=$enable_tls;
8059 case $enable_tls in
8060 yes | no) ;;
8061 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8062 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8063 esac
8065 else
8066 enable_tls=''
8070 # Check whether --enable-vtable-verify was given.
8071 if test "${enable_vtable_verify+set}" = set; then :
8072 enableval=$enable_vtable_verify;
8073 else
8074 enable_vtable_verify=no
8077 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8079 cat >>confdefs.h <<_ACEOF
8080 #define ENABLE_VTABLE_VERIFY $vtable_verify
8081 _ACEOF
8084 # Check whether --enable-analyzer was given.
8085 if test "${enable_analyzer+set}" = set; then :
8086 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8087 analyzer=0
8088 else
8089 analyzer=1
8091 else
8092 analyzer=1
8096 cat >>confdefs.h <<_ACEOF
8097 #define ENABLE_ANALYZER $analyzer
8098 _ACEOF
8101 # Check whether --enable-objc-gc was given.
8102 if test "${enable_objc_gc+set}" = set; then :
8103 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8104 objc_boehm_gc=''
8105 else
8106 objc_boehm_gc=1
8108 else
8109 objc_boehm_gc=''
8114 # Check whether --with-dwarf2 was given.
8115 if test "${with_dwarf2+set}" = set; then :
8116 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8117 else
8118 dwarf2=no
8122 # Check whether --enable-shared was given.
8123 if test "${enable_shared+set}" = set; then :
8124 enableval=$enable_shared;
8125 case $enable_shared in
8126 yes | no) ;;
8128 enable_shared=no
8129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8130 for pkg in $enableval; do
8131 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8132 enable_shared=yes
8134 done
8135 IFS="$ac_save_ifs"
8137 esac
8139 else
8140 enable_shared=yes
8145 # Check whether --enable-gcov was given.
8146 if test "${enable_gcov+set}" = set; then :
8147 enableval=$enable_gcov;
8148 else
8149 case $target in
8150 bpf-*-*)
8151 enable_gcov=no
8154 enable_gcov=yes
8156 esac
8163 # Check whether --with-specs was given.
8164 if test "${with_specs+set}" = set; then :
8165 withval=$with_specs; CONFIGURE_SPECS=$withval
8166 else
8167 CONFIGURE_SPECS=
8175 # Check whether --with-pkgversion was given.
8176 if test "${with_pkgversion+set}" = set; then :
8177 withval=$with_pkgversion; case "$withval" in
8178 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8179 no) PKGVERSION= ;;
8180 *) PKGVERSION="($withval) " ;;
8181 esac
8182 else
8183 PKGVERSION="(GCC) "
8191 # Check whether --with-bugurl was given.
8192 if test "${with_bugurl+set}" = set; then :
8193 withval=$with_bugurl; case "$withval" in
8194 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8195 no) BUGURL=
8197 *) BUGURL="$withval"
8199 esac
8200 else
8201 BUGURL="https://gcc.gnu.org/bugs/"
8205 case ${BUGURL} in
8207 REPORT_BUGS_TO=
8208 REPORT_BUGS_TEXI=
8211 REPORT_BUGS_TO="<$BUGURL>"
8212 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8214 esac;
8219 # Allow overriding the default URL for documentation
8221 # Check whether --with-documentation-root-url was given.
8222 if test "${with_documentation_root_url+set}" = set; then :
8223 withval=$with_documentation_root_url; case "$withval" in
8224 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8225 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8226 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8227 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8228 esac
8229 else
8231 docroot_url_suffix=
8232 case "$gcc_version" in
8233 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8234 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8235 esac
8236 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8241 cat >>confdefs.h <<_ACEOF
8242 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8243 _ACEOF
8246 # Allow overriding the default URL for GCC changes
8248 # Check whether --with-changes-root-url was given.
8249 if test "${with_changes_root_url+set}" = set; then :
8250 withval=$with_changes_root_url; case "$withval" in
8251 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8252 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8253 */) CHANGES_ROOT_URL="$withval" ;;
8254 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8255 esac
8256 else
8257 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8262 cat >>confdefs.h <<_ACEOF
8263 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8264 _ACEOF
8267 # Sanity check enable_languages in case someone does not run the toplevel
8268 # configure # script.
8269 # Check whether --enable-languages was given.
8270 if test "${enable_languages+set}" = set; then :
8271 enableval=$enable_languages; case ,${enable_languages}, in
8272 ,,|,yes,)
8273 # go safe -- we cannot be much sure without the toplevel
8274 # configure's
8275 # analysis of which target libs are present and usable
8276 enable_languages=c
8278 *,all,*)
8279 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8281 *,c,*)
8284 enable_languages=c,${enable_languages}
8286 esac
8287 else
8288 enable_languages=c
8292 # If top-level libada has been disabled, then wire in install-gnatlib
8293 # invocation with `make install', so that one can build and install
8294 # the library manually with `make -C gcc all gnatlib gnattools install'.
8295 if test x"$enable_libada" = xno; then
8296 gnat_install_lib=gnat-install-lib
8297 else
8298 gnat_install_lib=
8302 if test x"$enable_as_accelerator_for" != x; then
8304 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8306 enable_as_accelerator=yes
8307 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8308 program_transform_name=`echo $program_transform_name | sed $sedscript`
8309 accel_dir_suffix=/accel/${target_noncanonical}
8310 real_target_noncanonical=${enable_as_accelerator_for}
8316 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8317 tgt=`echo $tgt | sed 's/=.*//'`
8319 enable_offloading=1
8320 case "$tgt" in
8321 amdgcn*)
8322 omp_device_property=omp-device-properties-gcn
8323 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8325 nvptx*)
8326 omp_device_property=omp-device-properties-nvptx
8327 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8330 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8332 esac
8333 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8334 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8336 if test x"$offload_targets" = x; then
8337 offload_targets=$tgt
8338 else
8339 offload_targets="$offload_targets,$tgt"
8341 done
8346 cat >>confdefs.h <<_ACEOF
8347 #define OFFLOAD_TARGETS "$offload_targets"
8348 _ACEOF
8350 if test x"$enable_offloading" != x; then
8352 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8354 else
8356 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8360 if test "x$enable_offload_defaulted" = xyes; then
8362 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8367 # Check whether --with-multilib-list was given.
8368 if test "${with_multilib_list+set}" = set; then :
8369 withval=$with_multilib_list; :
8370 else
8371 with_multilib_list=default
8376 # Check whether --with-multilib-generator was given.
8377 if test "${with_multilib_generator+set}" = set; then :
8378 withval=$with_multilib_generator; :
8379 else
8380 with_multilib_generator=default
8384 # -------------------------
8385 # Checks for other programs
8386 # -------------------------
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8389 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8390 set x ${MAKE-make}
8391 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8392 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat >conftest.make <<\_ACEOF
8396 SHELL = /bin/sh
8397 all:
8398 @echo '@@@%%%=$(MAKE)=@@@%%%'
8399 _ACEOF
8400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8402 *@@@%%%=?*=@@@%%%*)
8403 eval ac_cv_prog_make_${ac_make}_set=yes;;
8405 eval ac_cv_prog_make_${ac_make}_set=no;;
8406 esac
8407 rm -f conftest.make
8409 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8411 $as_echo "yes" >&6; }
8412 SET_MAKE=
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 SET_MAKE="MAKE=${MAKE-make}"
8420 # Find some useful tools
8421 for ac_prog in gawk mawk nawk awk
8423 # Extract the first word of "$ac_prog", so it can be a program name with args.
8424 set dummy $ac_prog; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_prog_AWK+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 if test -n "$AWK"; then
8431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_prog_AWK="$ac_prog"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8450 AWK=$ac_cv_prog_AWK
8451 if test -n "$AWK"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8453 $as_echo "$AWK" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8460 test -n "$AWK" && break
8461 done
8463 # We need awk to create options.cc and options.h.
8464 # Bail out if it's missing.
8465 case ${AWK} in
8466 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8467 esac
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8470 $as_echo_n "checking whether ln -s works... " >&6; }
8471 if ${gcc_cv_prog_LN_S+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 rm -f conftestdata_t
8475 echo >conftestdata_f
8476 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8477 then
8478 gcc_cv_prog_LN_S="ln -s"
8479 else
8480 if ln conftestdata_f conftestdata_t 2>/dev/null
8481 then
8482 gcc_cv_prog_LN_S=ln
8483 else
8484 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8485 then
8486 gcc_cv_prog_LN_S="cp -p"
8487 else
8488 gcc_cv_prog_LN_S=cp
8492 rm -f conftestdata_f conftestdata_t
8495 LN_S="$gcc_cv_prog_LN_S"
8496 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8498 $as_echo "yes" >&6; }
8499 else
8500 if test "$gcc_cv_prog_LN_S" = "ln"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8502 $as_echo "no, using ln" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8505 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8510 $as_echo_n "checking whether ln works... " >&6; }
8511 if ${acx_cv_prog_LN+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 rm -f conftestdata_t
8515 echo >conftestdata_f
8516 if ln conftestdata_f conftestdata_t 2>/dev/null
8517 then
8518 acx_cv_prog_LN=ln
8519 else
8520 acx_cv_prog_LN=no
8522 rm -f conftestdata_f conftestdata_t
8525 if test $acx_cv_prog_LN = no; then
8526 LN="$LN_S"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8528 $as_echo "no, using $LN" >&6; }
8529 else
8530 LN="$acx_cv_prog_LN"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8532 $as_echo "yes" >&6; }
8535 if test -n "$ac_tool_prefix"; then
8536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_RANLIB+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$RANLIB"; then
8544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8559 IFS=$as_save_IFS
8563 RANLIB=$ac_cv_prog_RANLIB
8564 if test -n "$RANLIB"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8566 $as_echo "$RANLIB" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8574 if test -z "$ac_cv_prog_RANLIB"; then
8575 ac_ct_RANLIB=$RANLIB
8576 # Extract the first word of "ranlib", so it can be a program name with args.
8577 set dummy ranlib; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 if test -n "$ac_ct_RANLIB"; then
8584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8593 ac_cv_prog_ac_ct_RANLIB="ranlib"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8597 done
8598 done
8599 IFS=$as_save_IFS
8603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8604 if test -n "$ac_ct_RANLIB"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8606 $as_echo "$ac_ct_RANLIB" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8612 if test "x$ac_ct_RANLIB" = x; then
8613 RANLIB=":"
8614 else
8615 case $cross_compiling:$ac_tool_warned in
8616 yes:)
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8619 ac_tool_warned=yes ;;
8620 esac
8621 RANLIB=$ac_ct_RANLIB
8623 else
8624 RANLIB="$ac_cv_prog_RANLIB"
8627 ranlib_flags=""
8630 # Find a good install program. We prefer a C program (faster),
8631 # so one script is as good as another. But avoid the broken or
8632 # incompatible versions:
8633 # SysV /etc/install, /usr/sbin/install
8634 # SunOS /usr/etc/install
8635 # IRIX /sbin/install
8636 # AIX /bin/install
8637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8639 # ./install, which can be erroneously created by make from ./install.sh.
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8641 $as_echo_n "checking for a BSD compatible install... " >&6; }
8642 if test -z "$INSTALL"; then
8643 if ${ac_cv_path_install+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8647 for ac_dir in $PATH; do
8648 # Account for people who put trailing slashes in PATH elements.
8649 case "$ac_dir/" in
8650 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8652 # OSF1 and SCO ODT 3.0 have their own names for install.
8653 for ac_prog in ginstall scoinst install; do
8654 if test -f $ac_dir/$ac_prog; then
8655 if test $ac_prog = install &&
8656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8657 # AIX install. It has an incompatible calling convention.
8658 # OSF/1 installbsd also uses dspmsg, but is usable.
8660 else
8661 ac_cv_path_install="$ac_dir/$ac_prog -c"
8662 break 2
8665 done
8667 esac
8668 done
8669 IFS="$ac_save_IFS"
8672 if test "${ac_cv_path_install+set}" = set; then
8673 INSTALL="$ac_cv_path_install"
8674 else
8675 # As a last resort, use the slow shell script. We don't cache a
8676 # path for INSTALL within a source directory, because that will
8677 # break other packages using the cache if that directory is
8678 # removed, or if the path is relative.
8679 INSTALL="$ac_install_sh"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8683 $as_echo "$INSTALL" >&6; }
8685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8686 # It thinks the first close brace ends the variable substitution.
8687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8692 # See if cmp has --ignore-initial.
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8694 $as_echo_n "checking for cmp's capabilities... " >&6; }
8695 if ${gcc_cv_prog_cmp_skip+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 echo abfoo >t1
8699 echo cdfoo >t2
8700 gcc_cv_prog_cmp_skip=slowcompare
8701 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8702 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8704 else
8705 gcc_cv_prog_cmp_skip=gnucompare
8708 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8709 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8710 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8712 else
8713 gcc_cv_prog_cmp_skip=fastcompare
8717 rm t1 t2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8721 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8722 make_compare_target=$gcc_cv_prog_cmp_skip
8726 # See if we have the mktemp command.
8727 # Extract the first word of "mktemp", so it can be a program name with args.
8728 set dummy mktemp; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 if test -n "$have_mktemp_command"; then
8735 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_have_mktemp_command="yes"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8748 done
8749 done
8750 IFS=$as_save_IFS
8752 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8755 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8756 if test -n "$have_mktemp_command"; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8758 $as_echo "$have_mktemp_command" >&6; }
8759 else
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8766 # See if makeinfo has been installed and is modern enough
8767 # that we can use it.
8769 # Extract the first word of "makeinfo", so it can be a program name with args.
8770 set dummy makeinfo; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_MAKEINFO+:} false; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 if test -n "$MAKEINFO"; then
8777 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_prog_MAKEINFO="makeinfo"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8790 done
8791 done
8792 IFS=$as_save_IFS
8796 MAKEINFO=$ac_cv_prog_MAKEINFO
8797 if test -n "$MAKEINFO"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8799 $as_echo "$MAKEINFO" >&6; }
8800 else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8806 if test -n "$MAKEINFO"; then
8807 # Found it, now check the version.
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8809 $as_echo_n "checking for modern makeinfo... " >&6; }
8810 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8814 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8816 case $ac_prog_version in
8817 '') gcc_cv_prog_makeinfo_modern=no;;
8818 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8819 *) gcc_cv_prog_makeinfo_modern=no;;
8820 esac
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8824 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8825 else
8826 gcc_cv_prog_makeinfo_modern=no
8828 if test $gcc_cv_prog_makeinfo_modern = no; then
8829 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8832 if test $gcc_cv_prog_makeinfo_modern = no; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8834 *** Makeinfo is missing or too old.
8835 *** Info documentation will not be built." >&5
8836 $as_echo "$as_me: WARNING:
8837 *** Makeinfo is missing or too old.
8838 *** Info documentation will not be built." >&2;}
8839 BUILD_INFO=no-info
8840 else
8841 BUILD_INFO=info
8845 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8846 # If it does, we want to pass it to makeinfo in order to restore the old
8847 # behavior of @{summary,}contents placement.
8848 MAKEINFO_TOC_INLINE_FLAG=
8849 if test x"$MAKEINFO" != x; then :
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8852 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8853 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8857 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8858 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8859 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8860 gcc_cv_texi_add_toc_inline_flags=no
8861 else
8862 gcc_cv_texi_add_toc_inline_flags=yes
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8867 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8868 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8869 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8875 # Is pod2man recent enough to regenerate manpages?
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8877 $as_echo_n "checking for recent Pod::Man... " >&6; }
8878 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8881 GENERATED_MANPAGES=generated-manpages
8882 else
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 GENERATED_MANPAGES=
8889 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8891 # How about lex?
8892 for ac_prog in flex
8894 # Extract the first word of "$ac_prog", so it can be a program name with args.
8895 set dummy $ac_prog; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_prog_FLEX+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 if test -n "$FLEX"; then
8902 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_FLEX="$ac_prog"
8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8915 done
8916 done
8917 IFS=$as_save_IFS
8921 FLEX=$ac_cv_prog_FLEX
8922 if test -n "$FLEX"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8924 $as_echo "$FLEX" >&6; }
8925 else
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927 $as_echo "no" >&6; }
8931 test -n "$FLEX" && break
8932 done
8933 test -n "$FLEX" || FLEX="$MISSING flex"
8936 # Bison?
8937 for ac_prog in bison
8939 # Extract the first word of "$ac_prog", so it can be a program name with args.
8940 set dummy $ac_prog; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if ${ac_cv_prog_BISON+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 if test -n "$BISON"; then
8947 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_prog_BISON="$ac_prog"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8960 done
8961 done
8962 IFS=$as_save_IFS
8966 BISON=$ac_cv_prog_BISON
8967 if test -n "$BISON"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8969 $as_echo "$BISON" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8976 test -n "$BISON" && break
8977 done
8978 test -n "$BISON" || BISON="$MISSING bison"
8981 # Python3?
8983 # Extract the first word of "python3", so it can be a program name with args.
8984 set dummy python3; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if ${ac_cv_prog_PYTHON+:} false; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 if test -n "$PYTHON"; then
8991 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9000 ac_cv_prog_PYTHON="python3"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9004 done
9005 done
9006 IFS=$as_save_IFS
9010 PYTHON=$ac_cv_prog_PYTHON
9011 if test -n "$PYTHON"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9013 $as_echo "$PYTHON" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9020 if test -n "$PYTHON"; then
9021 # Found it, now check the version.
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9023 $as_echo_n "checking for modern python3... " >&6; }
9024 if ${gcc_cv_prog_python3_modern+:} false; then :
9025 $as_echo_n "(cached) " >&6
9026 else
9027 ac_prog_version=`eval $PYTHON --version 2>&1 |
9028 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9030 case $ac_prog_version in
9031 '') gcc_cv_prog_python3_modern=no;;
9032 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9033 *) gcc_cv_prog_python3_modern=no;;
9034 esac
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9038 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9039 else
9040 gcc_cv_prog_python3_modern=no
9042 if test $gcc_cv_prog_python3_modern = no; then
9043 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9046 if test $gcc_cv_prog_python3_modern = no; then
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9048 *** Python3 is missing.
9049 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9050 $as_echo "$as_me: WARNING:
9051 *** Python3 is missing.
9052 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9053 HAVE_PYTHON=no
9054 else
9055 HAVE_PYTHON=yes
9059 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9060 # check for build == host before using them.
9062 # NM
9063 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9064 && test -d ../binutils ; then
9065 NM='../binutils/nm-new'
9066 else
9067 # Extract the first word of "nm", so it can be a program name with args.
9068 set dummy nm; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if ${ac_cv_prog_NM+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$NM"; then
9075 ac_cv_prog_NM="$NM" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9084 ac_cv_prog_NM="nm"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9092 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9095 NM=$ac_cv_prog_NM
9096 if test -n "$NM"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9098 $as_echo "$NM" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9107 # AR
9108 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9109 && test -d ../binutils ; then
9110 AR='../binutils/ar'
9111 else
9112 # Extract the first word of "ar", so it can be a program name with args.
9113 set dummy ar; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if ${ac_cv_prog_AR+:} false; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 if test -n "$AR"; then
9120 ac_cv_prog_AR="$AR" # Let the user override the test.
9121 else
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129 ac_cv_prog_AR="ar"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9137 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9140 AR=$ac_cv_prog_AR
9141 if test -n "$AR"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9143 $as_echo "$AR" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9152 # The jit documentation looks better if built with sphinx, but can be
9153 # built with texinfo if sphinx is not available.
9154 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9155 # Extract the first word of "sphinx-build", so it can be a program name with args.
9156 set dummy sphinx-build; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if ${ac_cv_prog_doc_build_sys+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 if test -n "$doc_build_sys"; then
9163 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9172 ac_cv_prog_doc_build_sys="sphinx"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9180 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9183 doc_build_sys=$ac_cv_prog_doc_build_sys
9184 if test -n "$doc_build_sys"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9186 $as_echo "$doc_build_sys" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9194 # --------------------
9195 # Checks for C headers
9196 # --------------------
9198 # Need to reject headers which give warnings, so that the -Werror bootstrap
9199 # works later. *sigh* This needs to come before all header checks.
9201 ac_c_preproc_warn_flag=yes
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9204 $as_echo_n "checking for ANSI C header files... " >&6; }
9205 if ${ac_cv_header_stdc+:} false; then :
9206 $as_echo_n "(cached) " >&6
9207 else
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 #include <stdlib.h>
9211 #include <stdarg.h>
9212 #include <string.h>
9213 #include <float.h>
9216 main ()
9220 return 0;
9222 _ACEOF
9223 if ac_fn_cxx_try_compile "$LINENO"; then :
9224 ac_cv_header_stdc=yes
9225 else
9226 ac_cv_header_stdc=no
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 if test $ac_cv_header_stdc = yes; then
9231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #include <string.h>
9236 _ACEOF
9237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9238 $EGREP "memchr" >/dev/null 2>&1; then :
9240 else
9241 ac_cv_header_stdc=no
9243 rm -f conftest*
9247 if test $ac_cv_header_stdc = yes; then
9248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9251 #include <stdlib.h>
9253 _ACEOF
9254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9255 $EGREP "free" >/dev/null 2>&1; then :
9257 else
9258 ac_cv_header_stdc=no
9260 rm -f conftest*
9264 if test $ac_cv_header_stdc = yes; then
9265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9266 if test "$cross_compiling" = yes; then :
9268 else
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9271 #include <ctype.h>
9272 #include <stdlib.h>
9273 #if ((' ' & 0x0FF) == 0x020)
9274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9276 #else
9277 # define ISLOWER(c) \
9278 (('a' <= (c) && (c) <= 'i') \
9279 || ('j' <= (c) && (c) <= 'r') \
9280 || ('s' <= (c) && (c) <= 'z'))
9281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9282 #endif
9284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9286 main ()
9288 int i;
9289 for (i = 0; i < 256; i++)
9290 if (XOR (islower (i), ISLOWER (i))
9291 || toupper (i) != TOUPPER (i))
9292 return 2;
9293 return 0;
9295 _ACEOF
9296 if ac_fn_cxx_try_run "$LINENO"; then :
9298 else
9299 ac_cv_header_stdc=no
9301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9302 conftest.$ac_objext conftest.beam conftest.$ac_ext
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9308 $as_echo "$ac_cv_header_stdc" >&6; }
9309 if test $ac_cv_header_stdc = yes; then
9311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9316 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9317 if ${ac_cv_header_time+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <sys/types.h>
9323 #include <sys/time.h>
9324 #include <time.h>
9327 main ()
9329 if ((struct tm *) 0)
9330 return 0;
9332 return 0;
9334 _ACEOF
9335 if ac_fn_cxx_try_compile "$LINENO"; then :
9336 ac_cv_header_time=yes
9337 else
9338 ac_cv_header_time=no
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9343 $as_echo "$ac_cv_header_time" >&6; }
9344 if test $ac_cv_header_time = yes; then
9346 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9351 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9352 if ${gcc_cv_header_string+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 #include <string.h>
9358 #include <strings.h>
9360 main ()
9364 return 0;
9366 _ACEOF
9367 if ac_fn_cxx_try_compile "$LINENO"; then :
9368 gcc_cv_header_string=yes
9369 else
9370 gcc_cv_header_string=no
9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9375 $as_echo "$gcc_cv_header_string" >&6; }
9376 if test $gcc_cv_header_string = yes; then
9378 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9383 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9384 if ${ac_cv_header_sys_wait_h+:} false; then :
9385 $as_echo_n "(cached) " >&6
9386 else
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #include <sys/types.h>
9390 #include <sys/wait.h>
9391 #ifndef WEXITSTATUS
9392 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9393 #endif
9394 #ifndef WIFEXITED
9395 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9396 #endif
9399 main ()
9401 int s;
9402 wait (&s);
9403 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9405 return 0;
9407 _ACEOF
9408 if ac_fn_cxx_try_compile "$LINENO"; then :
9409 ac_cv_header_sys_wait_h=yes
9410 else
9411 ac_cv_header_sys_wait_h=no
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9416 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9417 if test $ac_cv_header_sys_wait_h = yes; then
9419 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9424 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9425 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9429 /* end confdefs.h. */
9430 #include <sys/types.h>
9431 #include <termios.h>
9432 #ifdef TIOCGWINSZ
9434 #endif
9436 _ACEOF
9437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9438 $EGREP "yes" >/dev/null 2>&1; then :
9439 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9440 else
9441 ac_cv_sys_tiocgwinsz_in_termios_h=no
9443 rm -f conftest*
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9447 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9449 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9451 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9452 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454 else
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 #include <sys/types.h>
9458 #include <sys/ioctl.h>
9459 #ifdef TIOCGWINSZ
9461 #endif
9463 _ACEOF
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465 $EGREP "yes" >/dev/null 2>&1; then :
9466 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9467 else
9468 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9470 rm -f conftest*
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9474 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9476 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9478 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9483 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9484 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9485 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9486 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9487 do :
9488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9489 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9490 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9491 cat >>confdefs.h <<_ACEOF
9492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9493 _ACEOF
9496 done
9499 # Check for thread headers.
9500 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9501 if test "x$ac_cv_header_thread_h" = xyes; then :
9502 have_thread_h=yes
9503 else
9504 have_thread_h=
9507 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9508 if test "x$ac_cv_header_pthread_h" = xyes; then :
9509 have_pthread_h=yes
9510 else
9511 have_pthread_h=
9515 # These tests can't be done till we know if we have limits.h.
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9517 $as_echo_n "checking for CHAR_BIT... " >&6; }
9518 if ${gcc_cv_decl_char_bit+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #ifdef HAVE_LIMITS_H
9524 #include <limits.h>
9525 #endif
9526 #ifdef CHAR_BIT
9527 found
9528 #endif
9529 _ACEOF
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 $EGREP "found" >/dev/null 2>&1; then :
9532 gcc_cv_decl_char_bit=yes
9533 else
9534 gcc_cv_decl_char_bit=no
9536 rm -f conftest*
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9541 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9542 if test $gcc_cv_decl_char_bit = no; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9544 $as_echo_n "checking number of bits in a byte... " >&6; }
9545 if ${gcc_cv_c_nbby+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9549 gcc_cv_c_nbby=
9550 while test $i -lt 65; do
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9555 main ()
9557 switch(0) {
9558 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9559 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9562 return 0;
9564 _ACEOF
9565 if ac_fn_cxx_try_compile "$LINENO"; then :
9566 gcc_cv_c_nbby=$i; break
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 i=`expr $i + 1`
9570 done
9571 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9575 $as_echo "$gcc_cv_c_nbby" >&6; }
9576 if test $gcc_cv_c_nbby = failed; then
9577 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9578 else
9580 cat >>confdefs.h <<_ACEOF
9581 #define CHAR_BIT $gcc_cv_c_nbby
9582 _ACEOF
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9587 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9588 if ${ac_cv_c_bigendian+:} false; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 ac_cv_c_bigendian=unknown
9592 # See if we're dealing with a universal compiler.
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9595 #ifndef __APPLE_CC__
9596 not a universal capable compiler
9597 #endif
9598 typedef int dummy;
9600 _ACEOF
9601 if ac_fn_cxx_try_compile "$LINENO"; then :
9603 # Check for potential -arch flags. It is not universal unless
9604 # there are at least two -arch flags with different values.
9605 ac_arch=
9606 ac_prev=
9607 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9608 if test -n "$ac_prev"; then
9609 case $ac_word in
9610 i?86 | x86_64 | ppc | ppc64)
9611 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9612 ac_arch=$ac_word
9613 else
9614 ac_cv_c_bigendian=universal
9615 break
9618 esac
9619 ac_prev=
9620 elif test "x$ac_word" = "x-arch"; then
9621 ac_prev=arch
9623 done
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 if test $ac_cv_c_bigendian = unknown; then
9627 # See if sys/param.h defines the BYTE_ORDER macro.
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 #include <sys/types.h>
9631 #include <sys/param.h>
9634 main ()
9636 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9637 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9638 && LITTLE_ENDIAN)
9639 bogus endian macros
9640 #endif
9643 return 0;
9645 _ACEOF
9646 if ac_fn_cxx_try_compile "$LINENO"; then :
9647 # It does; now see whether it defined to BIG_ENDIAN or not.
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 #include <sys/types.h>
9651 #include <sys/param.h>
9654 main ()
9656 #if BYTE_ORDER != BIG_ENDIAN
9657 not big endian
9658 #endif
9661 return 0;
9663 _ACEOF
9664 if ac_fn_cxx_try_compile "$LINENO"; then :
9665 ac_cv_c_bigendian=yes
9666 else
9667 ac_cv_c_bigendian=no
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 if test $ac_cv_c_bigendian = unknown; then
9674 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #include <limits.h>
9680 main ()
9682 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9683 bogus endian macros
9684 #endif
9687 return 0;
9689 _ACEOF
9690 if ac_fn_cxx_try_compile "$LINENO"; then :
9691 # It does; now see whether it defined to _BIG_ENDIAN or not.
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 #include <limits.h>
9697 main ()
9699 #ifndef _BIG_ENDIAN
9700 not big endian
9701 #endif
9704 return 0;
9706 _ACEOF
9707 if ac_fn_cxx_try_compile "$LINENO"; then :
9708 ac_cv_c_bigendian=yes
9709 else
9710 ac_cv_c_bigendian=no
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 if test $ac_cv_c_bigendian = unknown; then
9717 # Compile a test program.
9718 if test "$cross_compiling" = yes; then :
9719 # Try to guess by grepping values from an object file.
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 short int ascii_mm[] =
9723 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9724 short int ascii_ii[] =
9725 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9726 int use_ascii (int i) {
9727 return ascii_mm[i] + ascii_ii[i];
9729 short int ebcdic_ii[] =
9730 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9731 short int ebcdic_mm[] =
9732 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9733 int use_ebcdic (int i) {
9734 return ebcdic_mm[i] + ebcdic_ii[i];
9736 extern int foo;
9739 main ()
9741 return use_ascii (foo) == use_ebcdic (foo);
9743 return 0;
9745 _ACEOF
9746 if ac_fn_cxx_try_compile "$LINENO"; then :
9747 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9748 ac_cv_c_bigendian=yes
9750 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9751 if test "$ac_cv_c_bigendian" = unknown; then
9752 ac_cv_c_bigendian=no
9753 else
9754 # finding both strings is unlikely to happen, but who knows?
9755 ac_cv_c_bigendian=unknown
9759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 else
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 $ac_includes_default
9765 main ()
9768 /* Are we little or big endian? From Harbison&Steele. */
9769 union
9771 long int l;
9772 char c[sizeof (long int)];
9773 } u;
9774 u.l = 1;
9775 return u.c[sizeof (long int) - 1] == 1;
9778 return 0;
9780 _ACEOF
9781 if ac_fn_cxx_try_run "$LINENO"; then :
9782 ac_cv_c_bigendian=no
9783 else
9784 ac_cv_c_bigendian=yes
9786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9787 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9793 $as_echo "$ac_cv_c_bigendian" >&6; }
9794 case $ac_cv_c_bigendian in #(
9795 yes)
9796 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9797 ;; #(
9799 ;; #(
9800 universal)
9802 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9804 ;; #(
9806 as_fn_error $? "unknown endianness
9807 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9808 esac
9811 # ----------------------
9812 # Checks for C++ headers
9813 # ----------------------
9815 ac_ext=cpp
9816 ac_cpp='$CXXCPP $CPPFLAGS'
9817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9821 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9822 if test -z "$CXXCPP"; then
9823 if ${ac_cv_prog_CXXCPP+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 # Double quotes because CXXCPP needs to be expanded
9827 for CXXCPP in "$CXX -E" "/lib/cpp"
9829 ac_preproc_ok=false
9830 for ac_cxx_preproc_warn_flag in '' yes
9832 # Use a header file that comes with gcc, so configuring glibc
9833 # with a fresh cross-compiler works.
9834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835 # <limits.h> exists even on freestanding compilers.
9836 # On the NeXT, cc -E runs the code through the compiler's parser,
9837 # not just through cpp. "Syntax error" is here to catch this case.
9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839 /* end confdefs.h. */
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9845 Syntax error
9846 _ACEOF
9847 if ac_fn_cxx_try_cpp "$LINENO"; then :
9849 else
9850 # Broken: fails on valid input.
9851 continue
9853 rm -f conftest.err conftest.i conftest.$ac_ext
9855 # OK, works on sane cases. Now check whether nonexistent headers
9856 # can be detected and how.
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 #include <ac_nonexistent.h>
9860 _ACEOF
9861 if ac_fn_cxx_try_cpp "$LINENO"; then :
9862 # Broken: success on invalid input.
9863 continue
9864 else
9865 # Passes both tests.
9866 ac_preproc_ok=:
9867 break
9869 rm -f conftest.err conftest.i conftest.$ac_ext
9871 done
9872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9873 rm -f conftest.i conftest.err conftest.$ac_ext
9874 if $ac_preproc_ok; then :
9875 break
9878 done
9879 ac_cv_prog_CXXCPP=$CXXCPP
9882 CXXCPP=$ac_cv_prog_CXXCPP
9883 else
9884 ac_cv_prog_CXXCPP=$CXXCPP
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9887 $as_echo "$CXXCPP" >&6; }
9888 ac_preproc_ok=false
9889 for ac_cxx_preproc_warn_flag in '' yes
9891 # Use a header file that comes with gcc, so configuring glibc
9892 # with a fresh cross-compiler works.
9893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894 # <limits.h> exists even on freestanding compilers.
9895 # On the NeXT, cc -E runs the code through the compiler's parser,
9896 # not just through cpp. "Syntax error" is here to catch this case.
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 #ifdef __STDC__
9900 # include <limits.h>
9901 #else
9902 # include <assert.h>
9903 #endif
9904 Syntax error
9905 _ACEOF
9906 if ac_fn_cxx_try_cpp "$LINENO"; then :
9908 else
9909 # Broken: fails on valid input.
9910 continue
9912 rm -f conftest.err conftest.i conftest.$ac_ext
9914 # OK, works on sane cases. Now check whether nonexistent headers
9915 # can be detected and how.
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918 #include <ac_nonexistent.h>
9919 _ACEOF
9920 if ac_fn_cxx_try_cpp "$LINENO"; then :
9921 # Broken: success on invalid input.
9922 continue
9923 else
9924 # Passes both tests.
9925 ac_preproc_ok=:
9926 break
9928 rm -f conftest.err conftest.i conftest.$ac_ext
9930 done
9931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9932 rm -f conftest.i conftest.err conftest.$ac_ext
9933 if $ac_preproc_ok; then :
9935 else
9936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9939 See \`config.log' for more details" >&5
9940 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9941 See \`config.log' for more details" >&2;}; }
9944 ac_ext=cpp
9945 ac_cpp='$CXXCPP $CPPFLAGS'
9946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9951 for ac_header in unordered_map
9952 do :
9953 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9954 if test "x$ac_cv_header_unordered_map" = xyes; then :
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_UNORDERED_MAP 1
9957 _ACEOF
9960 done
9962 for ac_header in tr1/unordered_map
9963 do :
9964 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9965 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9966 cat >>confdefs.h <<_ACEOF
9967 #define HAVE_TR1_UNORDERED_MAP 1
9968 _ACEOF
9971 done
9973 for ac_header in ext/hash_map
9974 do :
9975 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9976 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define HAVE_EXT_HASH_MAP 1
9979 _ACEOF
9982 done
9985 # --------
9986 # Dependency checking.
9987 # --------
9989 rm -rf .tst 2>/dev/null
9990 mkdir .tst 2>/dev/null
9991 if test -d .tst; then
9992 am__leading_dot=.
9993 else
9994 am__leading_dot=_
9996 rmdir .tst 2>/dev/null
9998 DEPDIR="${am__leading_dot}deps"
10000 ac_config_commands="$ac_config_commands depdir"
10003 ac_config_commands="$ac_config_commands gccdepdir"
10006 depcc="$CXX" am_compiler_list=
10008 am_depcomp=$ac_aux_dir/depcomp
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10010 $as_echo_n "checking dependency style of $depcc... " >&6; }
10011 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 if test -f "$am_depcomp"; then
10015 # We make a subdir and do the tests there. Otherwise we can end up
10016 # making bogus files that we don't know about and never remove. For
10017 # instance it was reported that on HP-UX the gcc test will end up
10018 # making a dummy file named `D' -- because `-MD' means `put the output
10019 # in D'.
10020 mkdir conftest.dir
10021 # Copy depcomp to subdir because otherwise we won't find it if we're
10022 # using a relative directory.
10023 cp "$am_depcomp" conftest.dir
10024 cd conftest.dir
10025 # We will build objects and dependencies in a subdirectory because
10026 # it helps to detect inapplicable dependency modes. For instance
10027 # both Tru64's cc and ICC support -MD to output dependencies as a
10028 # side effect of compilation, but ICC will put the dependencies in
10029 # the current directory while Tru64 will put them in the object
10030 # directory.
10031 mkdir sub
10033 am_cv_CXX_dependencies_compiler_type=none
10034 if test "$am_compiler_list" = ""; then
10035 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10037 for depmode in $am_compiler_list; do
10038 if test $depmode = none; then break; fi
10040 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10041 # Setup a source with many dependencies, because some compilers
10042 # like to wrap large dependency lists on column 80 (with \), and
10043 # we should not choose a depcomp mode which is confused by this.
10045 # We need to recreate these files for each test, as the compiler may
10046 # overwrite some of them when testing with obscure command lines.
10047 # This happens at least with the AIX C compiler.
10048 : > sub/conftest.c
10049 for i in 1 2 3 4 5 6; do
10050 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10051 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10052 # Solaris 8's {/usr,}/bin/sh.
10053 touch sub/conftst$i.h
10054 done
10055 echo "include sub/conftest.Po" > confmf
10057 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10058 # mode. It turns out that the SunPro C++ compiler does not properly
10059 # handle `-M -o', and we need to detect this.
10060 depcmd="depmode=$depmode \
10061 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10063 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10064 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10065 if env $depcmd > conftest.err 2>&1 &&
10066 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10067 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10068 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10069 # icc doesn't choke on unknown options, it will just issue warnings
10070 # or remarks (even with -Werror). So we grep stderr for any message
10071 # that says an option was ignored or not supported.
10072 # When given -MP, icc 7.0 and 7.1 complain thusly:
10073 # icc: Command line warning: ignoring option '-M'; no argument required
10074 # The diagnosis changed in icc 8.0:
10075 # icc: Command line remark: option '-MP' not supported
10076 if (grep 'ignoring option' conftest.err ||
10077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10078 am_cv_CXX_dependencies_compiler_type=$depmode
10079 $as_echo "$as_me:$LINENO: success" >&5
10080 break
10083 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10084 sed -e 's/^/| /' < conftest.err >&5
10085 done
10087 cd ..
10088 rm -rf conftest.dir
10089 else
10090 am_cv_CXX_dependencies_compiler_type=none
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10095 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10096 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10097 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10098 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10103 # --------
10104 # UNSORTED
10105 # --------
10108 # These libraries may be used by collect2.
10109 # We may need a special search path to get them linked.
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10111 $as_echo_n "checking for collect2 libraries... " >&6; }
10112 if ${gcc_cv_collect2_libs+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 save_LIBS="$LIBS"
10116 for libs in '' -lld -lmld \
10117 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10118 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10120 LIBS="$libs"
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10124 /* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 char ldopen ();
10132 main ()
10134 return ldopen ();
10136 return 0;
10138 _ACEOF
10139 if ac_fn_cxx_try_link "$LINENO"; then :
10140 gcc_cv_collect2_libs="$libs"; break
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 done
10145 LIBS="$save_LIBS"
10146 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10149 $as_echo "$gcc_cv_collect2_libs" >&6; }
10150 case $gcc_cv_collect2_libs in
10151 "none required") ;;
10152 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10153 esac
10156 # When building Ada code on Alpha, we need exc_resume which is usually in
10157 # -lexc. So test for it.
10158 save_LIBS="$LIBS"
10159 LIBS=
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10161 $as_echo_n "checking for library containing exc_resume... " >&6; }
10162 if ${ac_cv_search_exc_resume+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 ac_func_search_save_LIBS=$LIBS
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10169 /* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 char exc_resume ();
10177 main ()
10179 return exc_resume ();
10181 return 0;
10183 _ACEOF
10184 for ac_lib in '' exc; do
10185 if test -z "$ac_lib"; then
10186 ac_res="none required"
10187 else
10188 ac_res=-l$ac_lib
10189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10191 if ac_fn_cxx_try_link "$LINENO"; then :
10192 ac_cv_search_exc_resume=$ac_res
10194 rm -f core conftest.err conftest.$ac_objext \
10195 conftest$ac_exeext
10196 if ${ac_cv_search_exc_resume+:} false; then :
10197 break
10199 done
10200 if ${ac_cv_search_exc_resume+:} false; then :
10202 else
10203 ac_cv_search_exc_resume=no
10205 rm conftest.$ac_ext
10206 LIBS=$ac_func_search_save_LIBS
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10209 $as_echo "$ac_cv_search_exc_resume" >&6; }
10210 ac_res=$ac_cv_search_exc_resume
10211 if test "$ac_res" != no; then :
10212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10216 GNAT_LIBEXC="$LIBS"
10217 LIBS="$save_LIBS"
10220 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10221 save_LIBS="$LIBS"
10222 LIBS=
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10224 $as_echo_n "checking for library containing kstat_open... " >&6; }
10225 if ${ac_cv_search_kstat_open+:} false; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 ac_func_search_save_LIBS=$LIBS
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 /* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char kstat_open ();
10240 main ()
10242 return kstat_open ();
10244 return 0;
10246 _ACEOF
10247 for ac_lib in '' kstat; do
10248 if test -z "$ac_lib"; then
10249 ac_res="none required"
10250 else
10251 ac_res=-l$ac_lib
10252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10254 if ac_fn_cxx_try_link "$LINENO"; then :
10255 ac_cv_search_kstat_open=$ac_res
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext
10259 if ${ac_cv_search_kstat_open+:} false; then :
10260 break
10262 done
10263 if ${ac_cv_search_kstat_open+:} false; then :
10265 else
10266 ac_cv_search_kstat_open=no
10268 rm conftest.$ac_ext
10269 LIBS=$ac_func_search_save_LIBS
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10272 $as_echo "$ac_cv_search_kstat_open" >&6; }
10273 ac_res=$ac_cv_search_kstat_open
10274 if test "$ac_res" != no; then :
10275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10279 EXTRA_GCC_LIBS="$LIBS"
10280 LIBS="$save_LIBS"
10283 # Some systems put ldexp and frexp in libm instead of libc; assume
10284 # they're both in the same place. jcf-dump needs them.
10285 save_LIBS="$LIBS"
10286 LIBS=
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10288 $as_echo_n "checking for library containing ldexp... " >&6; }
10289 if ${ac_cv_search_ldexp+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_func_search_save_LIBS=$LIBS
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char ldexp ();
10304 main ()
10306 return ldexp ();
10308 return 0;
10310 _ACEOF
10311 for ac_lib in '' m; do
10312 if test -z "$ac_lib"; then
10313 ac_res="none required"
10314 else
10315 ac_res=-l$ac_lib
10316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10318 if ac_fn_cxx_try_link "$LINENO"; then :
10319 ac_cv_search_ldexp=$ac_res
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext
10323 if ${ac_cv_search_ldexp+:} false; then :
10324 break
10326 done
10327 if ${ac_cv_search_ldexp+:} false; then :
10329 else
10330 ac_cv_search_ldexp=no
10332 rm conftest.$ac_ext
10333 LIBS=$ac_func_search_save_LIBS
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10336 $as_echo "$ac_cv_search_ldexp" >&6; }
10337 ac_res=$ac_cv_search_ldexp
10338 if test "$ac_res" != no; then :
10339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10343 LDEXP_LIB="$LIBS"
10344 LIBS="$save_LIBS"
10347 # Some systems need dlopen
10348 save_LIBS="$LIBS"
10349 LIBS=
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10351 $as_echo_n "checking for library containing dlopen... " >&6; }
10352 if ${ac_cv_search_dlopen+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 ac_func_search_save_LIBS=$LIBS
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10359 /* Override any GCC internal prototype to avoid an error.
10360 Use char because int might match the return type of a GCC
10361 builtin and then its argument prototype would still apply. */
10362 #ifdef __cplusplus
10363 extern "C"
10364 #endif
10365 char dlopen ();
10367 main ()
10369 return dlopen ();
10371 return 0;
10373 _ACEOF
10374 for ac_lib in '' dl; do
10375 if test -z "$ac_lib"; then
10376 ac_res="none required"
10377 else
10378 ac_res=-l$ac_lib
10379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10381 if ac_fn_cxx_try_link "$LINENO"; then :
10382 ac_cv_search_dlopen=$ac_res
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext
10386 if ${ac_cv_search_dlopen+:} false; then :
10387 break
10389 done
10390 if ${ac_cv_search_dlopen+:} false; then :
10392 else
10393 ac_cv_search_dlopen=no
10395 rm conftest.$ac_ext
10396 LIBS=$ac_func_search_save_LIBS
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10399 $as_echo "$ac_cv_search_dlopen" >&6; }
10400 ac_res=$ac_cv_search_dlopen
10401 if test "$ac_res" != no; then :
10402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10406 DL_LIB="$LIBS"
10407 LIBS="$save_LIBS"
10410 # Use <inttypes.h> only if it exists,
10411 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10412 # PRId64
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10414 $as_echo_n "checking for inttypes.h... " >&6; }
10415 if ${gcc_cv_header_inttypes_h+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 #define __STDC_FORMAT_MACROS
10421 #include <sys/types.h>
10422 #include <inttypes.h>
10424 main ()
10426 intmax_t i = -1;
10427 #ifndef PRId64
10428 choke me
10429 #endif
10431 return 0;
10433 _ACEOF
10434 if ac_fn_cxx_try_compile "$LINENO"; then :
10435 gcc_cv_header_inttypes_h=yes
10436 else
10437 gcc_cv_header_inttypes_h=no
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10443 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10444 if test $gcc_cv_header_inttypes_h = yes; then
10446 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10450 # Look for the ZSTD package.
10451 ZSTD_INCLUDE=
10452 ZSTD_LIB=
10455 ZSTD_CPPFLAGS=
10456 ZSTD_LDFLAGS=
10460 # Check whether --with-zstd was given.
10461 if test "${with_zstd+set}" = set; then :
10462 withval=$with_zstd;
10466 # Check whether --with-zstd-include was given.
10467 if test "${with_zstd_include+set}" = set; then :
10468 withval=$with_zstd_include;
10472 # Check whether --with-zstd-lib was given.
10473 if test "${with_zstd_lib+set}" = set; then :
10474 withval=$with_zstd_lib;
10477 case "x$with_zstd" in
10478 x) ;;
10479 xno)
10480 ZSTD_INCLUDE=
10481 ZSTD_LIB=
10483 *) ZSTD_INCLUDE=$with_zstd/include
10484 ZSTD_LIB=$with_zstd/lib
10486 esac
10488 if test "x$with_zstd" != xno; then
10489 if test "x$with_zstd_include" != x; then
10490 ZSTD_INCLUDE=$with_zstd_include
10492 if test "x$with_zstd_lib" != x; then
10493 ZSTD_LIB=$with_zstd_lib
10495 if test "x$ZSTD_INCLUDE" != x \
10496 && test "x$ZSTD_INCLUDE" != xno; then
10497 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10499 if test "x$ZSTD_LIB" != x \
10500 && test "x$ZSTD_LIB" != xno; then
10501 ZSTD_LDFLAGS=-L$ZSTD_LIB
10504 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10505 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10507 # LTO can use zstd compression algorithm
10508 save_LIBS="$LIBS"
10509 LIBS=
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10511 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10512 if ${ac_cv_search_ZSTD_compress+:} false; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 ac_func_search_save_LIBS=$LIBS
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 /* Override any GCC internal prototype to avoid an error.
10520 Use char because int might match the return type of a GCC
10521 builtin and then its argument prototype would still apply. */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char ZSTD_compress ();
10527 main ()
10529 return ZSTD_compress ();
10531 return 0;
10533 _ACEOF
10534 for ac_lib in '' zstd; do
10535 if test -z "$ac_lib"; then
10536 ac_res="none required"
10537 else
10538 ac_res=-l$ac_lib
10539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10541 if ac_fn_cxx_try_link "$LINENO"; then :
10542 ac_cv_search_ZSTD_compress=$ac_res
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext
10546 if ${ac_cv_search_ZSTD_compress+:} false; then :
10547 break
10549 done
10550 if ${ac_cv_search_ZSTD_compress+:} false; then :
10552 else
10553 ac_cv_search_ZSTD_compress=no
10555 rm conftest.$ac_ext
10556 LIBS=$ac_func_search_save_LIBS
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10559 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10560 ac_res=$ac_cv_search_ZSTD_compress
10561 if test "$ac_res" != no; then :
10562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10564 else
10565 gcc_cv_header_zstd_h=no
10568 ZSTD_LIB="$LIBS"
10569 LIBS="$save_LIBS"
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10573 $as_echo_n "checking for zstd.h... " >&6; }
10574 if ${gcc_cv_header_zstd_h+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 # We require version 1.3.0 or later. This is the first version that has
10578 # ZSTD_getFrameContentSize.
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581 #include <zstd.h>
10582 #if ZSTD_VERSION_NUMBER < 10300
10583 #error "need zstd 1.3.0 or better"
10584 #endif
10586 main ()
10590 return 0;
10592 _ACEOF
10593 if ac_fn_cxx_try_compile "$LINENO"; then :
10594 gcc_cv_header_zstd_h=yes
10595 else
10596 gcc_cv_header_zstd_h=no
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10602 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10603 if test $gcc_cv_header_zstd_h = yes; then
10605 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10607 elif test "x$with_zstd" != x; then
10608 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10614 for ac_func in times clock kill getrlimit setrlimit atoq \
10615 popen sysconf strsignal getrusage nl_langinfo \
10616 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10617 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
10618 do :
10619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10620 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10624 _ACEOF
10627 done
10630 if test x$ac_cv_func_mbstowcs = xyes; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10632 $as_echo_n "checking whether mbstowcs works... " >&6; }
10633 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 if test "$cross_compiling" = yes; then :
10637 gcc_cv_func_mbstowcs_works=yes
10638 else
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641 #include <stdlib.h>
10642 int main()
10644 mbstowcs(0, "", 0);
10645 return 0;
10647 _ACEOF
10648 if ac_fn_cxx_try_run "$LINENO"; then :
10649 gcc_cv_func_mbstowcs_works=yes
10650 else
10651 gcc_cv_func_mbstowcs_works=no
10653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10654 conftest.$ac_objext conftest.beam conftest.$ac_ext
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10659 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10660 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10662 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10667 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10668 if test "x$ac_cv_type_ssize_t" = xyes; then :
10670 else
10672 cat >>confdefs.h <<_ACEOF
10673 #define ssize_t int
10674 _ACEOF
10678 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10679 if test "x$ac_cv_type_caddr_t" = xyes; then :
10681 else
10683 cat >>confdefs.h <<_ACEOF
10684 #define caddr_t char *
10685 _ACEOF
10689 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10691 if test "x$ac_cv_type_sighander_t" = xyes; then :
10693 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10699 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10700 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10701 gcc_header_sys_mman_h=yes
10702 else
10703 gcc_header_sys_mman_h=no
10706 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10707 if test "x$ac_cv_func_mmap" = xyes; then :
10708 gcc_func_mmap=yes
10709 else
10710 gcc_func_mmap=no
10713 if test "$gcc_header_sys_mman_h" != yes \
10714 || test "$gcc_func_mmap" != yes; then
10715 gcc_cv_func_mmap_file=no
10716 gcc_cv_func_mmap_dev_zero=no
10717 gcc_cv_func_mmap_anon=no
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10720 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10721 if ${gcc_cv_func_mmap_file+:} false; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 # Add a system to this blacklist if
10725 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10726 # memory area containing the same data that you'd get if you applied
10727 # read() to the same fd. The only system known to have a problem here
10728 # is VMS, where text files have record structure.
10729 case "$host_os" in
10730 *vms* | ultrix*)
10731 gcc_cv_func_mmap_file=no ;;
10733 gcc_cv_func_mmap_file=yes;;
10734 esac
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10737 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10739 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10740 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 # Add a system to this blacklist if it has mmap() but /dev/zero
10744 # does not exist, or if mmapping /dev/zero does not give anonymous
10745 # zeroed pages with both the following properties:
10746 # 1. If you map N consecutive pages in with one call, and then
10747 # unmap any subset of those pages, the pages that were not
10748 # explicitly unmapped remain accessible.
10749 # 2. If you map two adjacent blocks of memory and then unmap them
10750 # both at once, they must both go away.
10751 # Systems known to be in this category are Windows (all variants),
10752 # VMS, and Darwin.
10753 case "$host_os" in
10754 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10755 gcc_cv_func_mmap_dev_zero=no ;;
10757 gcc_cv_func_mmap_dev_zero=yes;;
10758 esac
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10761 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10763 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10765 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10766 if ${gcc_cv_decl_map_anon+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 #include <sys/types.h>
10772 #include <sys/mman.h>
10773 #include <unistd.h>
10775 #ifndef MAP_ANONYMOUS
10776 #define MAP_ANONYMOUS MAP_ANON
10777 #endif
10780 main ()
10782 int n = MAP_ANONYMOUS;
10784 return 0;
10786 _ACEOF
10787 if ac_fn_cxx_try_compile "$LINENO"; then :
10788 gcc_cv_decl_map_anon=yes
10789 else
10790 gcc_cv_decl_map_anon=no
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10795 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10797 if test $gcc_cv_decl_map_anon = no; then
10798 gcc_cv_func_mmap_anon=no
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10801 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10802 if ${gcc_cv_func_mmap_anon+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10806 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10807 # doesn't give anonymous zeroed pages with the same properties listed
10808 # above for use of /dev/zero.
10809 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10810 case "$host_os" in
10811 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10812 gcc_cv_func_mmap_anon=no ;;
10814 gcc_cv_func_mmap_anon=yes;;
10815 esac
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10818 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10822 if test $gcc_cv_func_mmap_file = yes; then
10824 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10827 if test $gcc_cv_func_mmap_dev_zero = yes; then
10829 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10832 if test $gcc_cv_func_mmap_anon = yes; then
10834 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10839 case "${host}" in
10840 *-*-*vms*)
10841 # Under VMS, vfork works very differently than on Unix. The standard test
10842 # won't work, and it isn't easily adaptable. It makes more sense to
10843 # just force it.
10844 ac_cv_func_vfork_works=yes
10846 esac
10847 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10848 if test "x$ac_cv_type_pid_t" = xyes; then :
10850 else
10852 cat >>confdefs.h <<_ACEOF
10853 #define pid_t int
10854 _ACEOF
10858 for ac_header in vfork.h
10859 do :
10860 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10861 if test "x$ac_cv_header_vfork_h" = xyes; then :
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_VFORK_H 1
10864 _ACEOF
10867 done
10869 for ac_func in fork vfork
10870 do :
10871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10872 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10874 cat >>confdefs.h <<_ACEOF
10875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10876 _ACEOF
10879 done
10881 if test "x$ac_cv_func_fork" = xyes; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10883 $as_echo_n "checking for working fork... " >&6; }
10884 if ${ac_cv_func_fork_works+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 if test "$cross_compiling" = yes; then :
10888 ac_cv_func_fork_works=cross
10889 else
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 $ac_includes_default
10894 main ()
10897 /* By Ruediger Kuhlmann. */
10898 return fork () < 0;
10901 return 0;
10903 _ACEOF
10904 if ac_fn_cxx_try_run "$LINENO"; then :
10905 ac_cv_func_fork_works=yes
10906 else
10907 ac_cv_func_fork_works=no
10909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10910 conftest.$ac_objext conftest.beam conftest.$ac_ext
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10915 $as_echo "$ac_cv_func_fork_works" >&6; }
10917 else
10918 ac_cv_func_fork_works=$ac_cv_func_fork
10920 if test "x$ac_cv_func_fork_works" = xcross; then
10921 case $host in
10922 *-*-amigaos* | *-*-msdosdjgpp*)
10923 # Override, as these systems have only a dummy fork() stub
10924 ac_cv_func_fork_works=no
10927 ac_cv_func_fork_works=yes
10929 esac
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10933 ac_cv_func_vfork_works=$ac_cv_func_vfork
10934 if test "x$ac_cv_func_vfork" = xyes; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10936 $as_echo_n "checking for working vfork... " >&6; }
10937 if ${ac_cv_func_vfork_works+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 if test "$cross_compiling" = yes; then :
10941 ac_cv_func_vfork_works=cross
10942 else
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945 /* Thanks to Paul Eggert for this test. */
10946 $ac_includes_default
10947 #include <sys/wait.h>
10948 #ifdef HAVE_VFORK_H
10949 # include <vfork.h>
10950 #endif
10951 /* On some sparc systems, changes by the child to local and incoming
10952 argument registers are propagated back to the parent. The compiler
10953 is told about this with #include <vfork.h>, but some compilers
10954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10955 static variable whose address is put into a register that is
10956 clobbered by the vfork. */
10957 static void
10958 #ifdef __cplusplus
10959 sparc_address_test (int arg)
10960 # else
10961 sparc_address_test (arg) int arg;
10962 #endif
10964 static pid_t child;
10965 if (!child) {
10966 child = vfork ();
10967 if (child < 0) {
10968 perror ("vfork");
10969 _exit(2);
10971 if (!child) {
10972 arg = getpid();
10973 write(-1, "", 0);
10974 _exit (arg);
10980 main ()
10982 pid_t parent = getpid ();
10983 pid_t child;
10985 sparc_address_test (0);
10987 child = vfork ();
10989 if (child == 0) {
10990 /* Here is another test for sparc vfork register problems. This
10991 test uses lots of local variables, at least as many local
10992 variables as main has allocated so far including compiler
10993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10995 reuse the register of parent for one of the local variables,
10996 since it will think that parent can't possibly be used any more
10997 in this routine. Assigning to the local variable will thus
10998 munge parent in the parent process. */
10999 pid_t
11000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11002 /* Convince the compiler that p..p7 are live; otherwise, it might
11003 use the same hardware register for all 8 local variables. */
11004 if (p != p1 || p != p2 || p != p3 || p != p4
11005 || p != p5 || p != p6 || p != p7)
11006 _exit(1);
11008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11009 from child file descriptors. If the child closes a descriptor
11010 before it execs or exits, this munges the parent's descriptor
11011 as well. Test for this by closing stdout in the child. */
11012 _exit(close(fileno(stdout)) != 0);
11013 } else {
11014 int status;
11015 struct stat st;
11017 while (wait(&status) != child)
11019 return (
11020 /* Was there some problem with vforking? */
11021 child < 0
11023 /* Did the child fail? (This shouldn't happen.) */
11024 || status
11026 /* Did the vfork/compiler bug occur? */
11027 || parent != getpid()
11029 /* Did the file descriptor bug occur? */
11030 || fstat(fileno(stdout), &st) != 0
11034 _ACEOF
11035 if ac_fn_cxx_try_run "$LINENO"; then :
11036 ac_cv_func_vfork_works=yes
11037 else
11038 ac_cv_func_vfork_works=no
11040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11041 conftest.$ac_objext conftest.beam conftest.$ac_ext
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11046 $as_echo "$ac_cv_func_vfork_works" >&6; }
11049 if test "x$ac_cv_func_fork_works" = xcross; then
11050 ac_cv_func_vfork_works=$ac_cv_func_vfork
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11055 if test "x$ac_cv_func_vfork_works" = xyes; then
11057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11059 else
11061 $as_echo "#define vfork fork" >>confdefs.h
11064 if test "x$ac_cv_func_fork_works" = xyes; then
11066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11072 if test "X$prefix" = "XNONE"; then
11073 acl_final_prefix="$ac_default_prefix"
11074 else
11075 acl_final_prefix="$prefix"
11077 if test "X$exec_prefix" = "XNONE"; then
11078 acl_final_exec_prefix='${prefix}'
11079 else
11080 acl_final_exec_prefix="$exec_prefix"
11082 acl_save_prefix="$prefix"
11083 prefix="$acl_final_prefix"
11084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11085 prefix="$acl_save_prefix"
11088 # Check whether --with-gnu-ld was given.
11089 if test "${with_gnu_ld+set}" = set; then :
11090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11091 else
11092 with_gnu_ld=no
11095 # Prepare PATH_SEPARATOR.
11096 # The user is always right.
11097 if test "${PATH_SEPARATOR+set}" != set; then
11098 echo "#! /bin/sh" >conf$$.sh
11099 echo "exit 0" >>conf$$.sh
11100 chmod +x conf$$.sh
11101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11102 PATH_SEPARATOR=';'
11103 else
11104 PATH_SEPARATOR=:
11106 rm -f conf$$.sh
11108 ac_prog=ld
11109 if test "$GCC" = yes; then
11110 # Check if gcc -print-prog-name=ld gives a path.
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11112 $as_echo_n "checking for ld used by GCC... " >&6; }
11113 case $host in
11114 *-*-mingw*)
11115 # gcc leaves a trailing carriage return which upsets mingw
11116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11119 esac
11120 case $ac_prog in
11121 # Accept absolute paths.
11122 [\\/]* | [A-Za-z]:[\\/]*)
11123 re_direlt='/[^/][^/]*/\.\./'
11124 # Canonicalize the path of ld
11125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11128 done
11129 test -z "$LD" && LD="$ac_prog"
11132 # If it fails, then pretend we aren't using GCC.
11133 ac_prog=ld
11136 # If it is relative, then search for the first ld in PATH.
11137 with_gnu_ld=unknown
11139 esac
11140 elif test "$with_gnu_ld" = yes; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11142 $as_echo_n "checking for GNU ld... " >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11145 $as_echo_n "checking for non-GNU ld... " >&6; }
11147 if ${acl_cv_path_LD+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 if test -z "$LD"; then
11151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11152 for ac_dir in $PATH; do
11153 test -z "$ac_dir" && ac_dir=.
11154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11155 acl_cv_path_LD="$ac_dir/$ac_prog"
11156 # Check to see if the program is GNU ld. I'd rather use --version,
11157 # but apparently some GNU ld's only accept -v.
11158 # Break only if it was the GNU/non-GNU ld that we prefer.
11159 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11160 test "$with_gnu_ld" != no && break
11161 else
11162 test "$with_gnu_ld" != yes && break
11165 done
11166 IFS="$ac_save_ifs"
11167 else
11168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11172 LD="$acl_cv_path_LD"
11173 if test -n "$LD"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11175 $as_echo "$LD" >&6; }
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11180 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11183 if ${acl_cv_prog_gnu_ld+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11187 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11188 acl_cv_prog_gnu_ld=yes
11189 else
11190 acl_cv_prog_gnu_ld=no
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11195 with_gnu_ld=$acl_cv_prog_gnu_ld
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11200 $as_echo_n "checking for shared library run path origin... " >&6; }
11201 if ${acl_cv_rpath+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11205 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11207 . ./conftest.sh
11208 rm -f ./conftest.sh
11209 acl_cv_rpath=done
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11213 $as_echo "$acl_cv_rpath" >&6; }
11214 wl="$acl_cv_wl"
11215 libext="$acl_cv_libext"
11216 shlibext="$acl_cv_shlibext"
11217 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11218 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11219 hardcode_direct="$acl_cv_hardcode_direct"
11220 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11221 # Check whether --enable-rpath was given.
11222 if test "${enable_rpath+set}" = set; then :
11223 enableval=$enable_rpath; :
11224 else
11225 enable_rpath=yes
11235 use_additional=yes
11237 acl_save_prefix="$prefix"
11238 prefix="$acl_final_prefix"
11239 acl_save_exec_prefix="$exec_prefix"
11240 exec_prefix="$acl_final_exec_prefix"
11242 eval additional_includedir=\"$includedir\"
11243 eval additional_libdir=\"$libdir\"
11245 exec_prefix="$acl_save_exec_prefix"
11246 prefix="$acl_save_prefix"
11249 # Check whether --with-libiconv-prefix was given.
11250 if test "${with_libiconv_prefix+set}" = set; then :
11251 withval=$with_libiconv_prefix;
11252 if test "X$withval" = "Xno"; then
11253 use_additional=no
11254 else
11255 if test "X$withval" = "X"; then
11257 acl_save_prefix="$prefix"
11258 prefix="$acl_final_prefix"
11259 acl_save_exec_prefix="$exec_prefix"
11260 exec_prefix="$acl_final_exec_prefix"
11262 eval additional_includedir=\"$includedir\"
11263 eval additional_libdir=\"$libdir\"
11265 exec_prefix="$acl_save_exec_prefix"
11266 prefix="$acl_save_prefix"
11268 else
11269 additional_includedir="$withval/include"
11270 additional_libdir="$withval/lib"
11277 # Check whether --with-libiconv-type was given.
11278 if test "${with_libiconv_type+set}" = set; then :
11279 withval=$with_libiconv_type; with_libiconv_type=$withval
11280 else
11281 with_libiconv_type=auto
11284 lib_type=`eval echo \$with_libiconv_type`
11286 LIBICONV=
11287 LTLIBICONV=
11288 INCICONV=
11289 rpathdirs=
11290 ltrpathdirs=
11291 names_already_handled=
11292 names_next_round='iconv '
11293 while test -n "$names_next_round"; do
11294 names_this_round="$names_next_round"
11295 names_next_round=
11296 for name in $names_this_round; do
11297 already_handled=
11298 for n in $names_already_handled; do
11299 if test "$n" = "$name"; then
11300 already_handled=yes
11301 break
11303 done
11304 if test -z "$already_handled"; then
11305 names_already_handled="$names_already_handled $name"
11306 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11307 eval value=\"\$HAVE_LIB$uppername\"
11308 if test -n "$value"; then
11309 if test "$value" = yes; then
11310 eval value=\"\$LIB$uppername\"
11311 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11312 eval value=\"\$LTLIB$uppername\"
11313 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11314 else
11317 else
11318 found_dir=
11319 found_la=
11320 found_so=
11321 found_a=
11322 if test $use_additional = yes; then
11323 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11324 found_dir="$additional_libdir"
11325 found_so="$additional_libdir/lib$name.$shlibext"
11326 if test -f "$additional_libdir/lib$name.la"; then
11327 found_la="$additional_libdir/lib$name.la"
11329 elif test x$lib_type != xshared; then
11330 if test -f "$additional_libdir/lib$name.$libext"; then
11331 found_dir="$additional_libdir"
11332 found_a="$additional_libdir/lib$name.$libext"
11333 if test -f "$additional_libdir/lib$name.la"; then
11334 found_la="$additional_libdir/lib$name.la"
11339 if test "X$found_dir" = "X"; then
11340 for x in $LDFLAGS $LTLIBICONV; do
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11346 eval x=\"$x\"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
11350 case "$x" in
11351 -L*)
11352 dir=`echo "X$x" | sed -e 's/^X-L//'`
11353 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11354 found_dir="$dir"
11355 found_so="$dir/lib$name.$shlibext"
11356 if test -f "$dir/lib$name.la"; then
11357 found_la="$dir/lib$name.la"
11359 elif test x$lib_type != xshared; then
11360 if test -f "$dir/lib$name.$libext"; then
11361 found_dir="$dir"
11362 found_a="$dir/lib$name.$libext"
11363 if test -f "$dir/lib$name.la"; then
11364 found_la="$dir/lib$name.la"
11369 esac
11370 if test "X$found_dir" != "X"; then
11371 break
11373 done
11375 if test "X$found_dir" != "X"; then
11376 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11377 if test "X$found_so" != "X"; then
11378 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11380 else
11381 haveit=
11382 for x in $ltrpathdirs; do
11383 if test "X$x" = "X$found_dir"; then
11384 haveit=yes
11385 break
11387 done
11388 if test -z "$haveit"; then
11389 ltrpathdirs="$ltrpathdirs $found_dir"
11391 if test "$hardcode_direct" = yes; then
11392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11393 else
11394 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11395 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11396 haveit=
11397 for x in $rpathdirs; do
11398 if test "X$x" = "X$found_dir"; then
11399 haveit=yes
11400 break
11402 done
11403 if test -z "$haveit"; then
11404 rpathdirs="$rpathdirs $found_dir"
11406 else
11407 haveit=
11408 for x in $LDFLAGS $LIBICONV; do
11410 acl_save_prefix="$prefix"
11411 prefix="$acl_final_prefix"
11412 acl_save_exec_prefix="$exec_prefix"
11413 exec_prefix="$acl_final_exec_prefix"
11414 eval x=\"$x\"
11415 exec_prefix="$acl_save_exec_prefix"
11416 prefix="$acl_save_prefix"
11418 if test "X$x" = "X-L$found_dir"; then
11419 haveit=yes
11420 break
11422 done
11423 if test -z "$haveit"; then
11424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11426 if test "$hardcode_minus_L" != no; then
11427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11428 else
11429 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11434 else
11435 if test "X$found_a" != "X"; then
11436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11437 else
11438 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11441 additional_includedir=
11442 case "$found_dir" in
11443 */lib | */lib/)
11444 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11445 additional_includedir="$basedir/include"
11447 esac
11448 if test "X$additional_includedir" != "X"; then
11449 if test "X$additional_includedir" != "X/usr/include"; then
11450 haveit=
11451 if test "X$additional_includedir" = "X/usr/local/include"; then
11452 if test -n "$GCC"; then
11453 case $host_os in
11454 linux*) haveit=yes;;
11455 esac
11458 if test -z "$haveit"; then
11459 for x in $CPPFLAGS $INCICONV; do
11461 acl_save_prefix="$prefix"
11462 prefix="$acl_final_prefix"
11463 acl_save_exec_prefix="$exec_prefix"
11464 exec_prefix="$acl_final_exec_prefix"
11465 eval x=\"$x\"
11466 exec_prefix="$acl_save_exec_prefix"
11467 prefix="$acl_save_prefix"
11469 if test "X$x" = "X-I$additional_includedir"; then
11470 haveit=yes
11471 break
11473 done
11474 if test -z "$haveit"; then
11475 if test -d "$additional_includedir"; then
11476 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11482 if test -n "$found_la"; then
11483 save_libdir="$libdir"
11484 case "$found_la" in
11485 */* | *\\*) . "$found_la" ;;
11486 *) . "./$found_la" ;;
11487 esac
11488 libdir="$save_libdir"
11489 for dep in $dependency_libs; do
11490 case "$dep" in
11491 -L*)
11492 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11493 if test "X$additional_libdir" != "X/usr/lib"; then
11494 haveit=
11495 if test "X$additional_libdir" = "X/usr/local/lib"; then
11496 if test -n "$GCC"; then
11497 case $host_os in
11498 linux*) haveit=yes;;
11499 esac
11502 if test -z "$haveit"; then
11503 haveit=
11504 for x in $LDFLAGS $LIBICONV; do
11506 acl_save_prefix="$prefix"
11507 prefix="$acl_final_prefix"
11508 acl_save_exec_prefix="$exec_prefix"
11509 exec_prefix="$acl_final_exec_prefix"
11510 eval x=\"$x\"
11511 exec_prefix="$acl_save_exec_prefix"
11512 prefix="$acl_save_prefix"
11514 if test "X$x" = "X-L$additional_libdir"; then
11515 haveit=yes
11516 break
11518 done
11519 if test -z "$haveit"; then
11520 if test -d "$additional_libdir"; then
11521 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11524 haveit=
11525 for x in $LDFLAGS $LTLIBICONV; do
11527 acl_save_prefix="$prefix"
11528 prefix="$acl_final_prefix"
11529 acl_save_exec_prefix="$exec_prefix"
11530 exec_prefix="$acl_final_exec_prefix"
11531 eval x=\"$x\"
11532 exec_prefix="$acl_save_exec_prefix"
11533 prefix="$acl_save_prefix"
11535 if test "X$x" = "X-L$additional_libdir"; then
11536 haveit=yes
11537 break
11539 done
11540 if test -z "$haveit"; then
11541 if test -d "$additional_libdir"; then
11542 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11548 -R*)
11549 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11550 if test "$enable_rpath" != no; then
11551 haveit=
11552 for x in $rpathdirs; do
11553 if test "X$x" = "X$dir"; then
11554 haveit=yes
11555 break
11557 done
11558 if test -z "$haveit"; then
11559 rpathdirs="$rpathdirs $dir"
11561 haveit=
11562 for x in $ltrpathdirs; do
11563 if test "X$x" = "X$dir"; then
11564 haveit=yes
11565 break
11567 done
11568 if test -z "$haveit"; then
11569 ltrpathdirs="$ltrpathdirs $dir"
11573 -l*)
11574 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11576 *.la)
11577 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11580 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11581 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11583 esac
11584 done
11586 else
11587 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11588 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11590 else
11591 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11597 done
11598 done
11599 if test "X$rpathdirs" != "X"; then
11600 if test -n "$hardcode_libdir_separator"; then
11601 alldirs=
11602 for found_dir in $rpathdirs; do
11603 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11604 done
11605 acl_save_libdir="$libdir"
11606 libdir="$alldirs"
11607 eval flag=\"$hardcode_libdir_flag_spec\"
11608 libdir="$acl_save_libdir"
11609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11610 else
11611 for found_dir in $rpathdirs; do
11612 acl_save_libdir="$libdir"
11613 libdir="$found_dir"
11614 eval flag=\"$hardcode_libdir_flag_spec\"
11615 libdir="$acl_save_libdir"
11616 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11617 done
11620 if test "X$ltrpathdirs" != "X"; then
11621 for found_dir in $ltrpathdirs; do
11622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11623 done
11632 am_save_CPPFLAGS="$CPPFLAGS"
11634 for element in $INCICONV; do
11635 haveit=
11636 for x in $CPPFLAGS; do
11638 acl_save_prefix="$prefix"
11639 prefix="$acl_final_prefix"
11640 acl_save_exec_prefix="$exec_prefix"
11641 exec_prefix="$acl_final_exec_prefix"
11642 eval x=\"$x\"
11643 exec_prefix="$acl_save_exec_prefix"
11644 prefix="$acl_save_prefix"
11646 if test "X$x" = "X$element"; then
11647 haveit=yes
11648 break
11650 done
11651 if test -z "$haveit"; then
11652 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11654 done
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11658 $as_echo_n "checking for iconv... " >&6; }
11659 if ${am_cv_func_iconv+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11663 am_cv_func_iconv="no, consider installing GNU libiconv"
11664 am_cv_lib_iconv=no
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 #include <stdlib.h>
11669 #include <iconv.h>
11672 main ()
11674 iconv_t cd = iconv_open("","");
11675 iconv(cd,NULL,NULL,NULL,NULL);
11676 iconv_close(cd);
11678 return 0;
11680 _ACEOF
11681 if ac_fn_cxx_try_link "$LINENO"; then :
11682 am_cv_func_iconv=yes
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 if test "$am_cv_func_iconv" != yes; then
11687 am_save_LIBS="$LIBS"
11688 LIBS="$LIBS $LIBICONV"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 #include <stdlib.h>
11693 #include <iconv.h>
11696 main ()
11698 iconv_t cd = iconv_open("","");
11699 iconv(cd,NULL,NULL,NULL,NULL);
11700 iconv_close(cd);
11702 return 0;
11704 _ACEOF
11705 if ac_fn_cxx_try_link "$LINENO"; then :
11706 am_cv_lib_iconv=yes
11707 am_cv_func_iconv=yes
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS="$am_save_LIBS"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11716 $as_echo "$am_cv_func_iconv" >&6; }
11717 if test "$am_cv_func_iconv" = yes; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11719 $as_echo_n "checking for working iconv... " >&6; }
11720 if ${am_cv_func_iconv_works+:} false; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11724 am_save_LIBS="$LIBS"
11725 if test $am_cv_lib_iconv = yes; then
11726 LIBS="$LIBS $LIBICONV"
11728 am_cv_func_iconv_works=no
11729 for ac_iconv_const in '' 'const'; do
11730 if test "$cross_compiling" = yes; then :
11731 case "$host_os" in
11732 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11733 *) am_cv_func_iconv_works="guessing yes" ;;
11734 esac
11735 else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 #include <iconv.h>
11740 #include <string.h>
11742 #ifndef ICONV_CONST
11743 # define ICONV_CONST $ac_iconv_const
11744 #endif
11747 main ()
11749 int result = 0;
11750 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11751 successful returns. This is even documented in
11752 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11754 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11755 if (cd_utf8_to_88591 != (iconv_t)(-1))
11757 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11758 char buf[10];
11759 ICONV_CONST char *inptr = input;
11760 size_t inbytesleft = strlen (input);
11761 char *outptr = buf;
11762 size_t outbytesleft = sizeof (buf);
11763 size_t res = iconv (cd_utf8_to_88591,
11764 &inptr, &inbytesleft,
11765 &outptr, &outbytesleft);
11766 if (res == 0)
11767 result |= 1;
11768 iconv_close (cd_utf8_to_88591);
11771 /* Test against Solaris 10 bug: Failures are not distinguishable from
11772 successful returns. */
11774 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11775 if (cd_ascii_to_88591 != (iconv_t)(-1))
11777 static ICONV_CONST char input[] = "\263";
11778 char buf[10];
11779 ICONV_CONST char *inptr = input;
11780 size_t inbytesleft = strlen (input);
11781 char *outptr = buf;
11782 size_t outbytesleft = sizeof (buf);
11783 size_t res = iconv (cd_ascii_to_88591,
11784 &inptr, &inbytesleft,
11785 &outptr, &outbytesleft);
11786 if (res == 0)
11787 result |= 2;
11788 iconv_close (cd_ascii_to_88591);
11791 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11793 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11794 if (cd_88591_to_utf8 != (iconv_t)(-1))
11796 static ICONV_CONST char input[] = "\304";
11797 static char buf[2] = { (char)0xDE, (char)0xAD };
11798 ICONV_CONST char *inptr = input;
11799 size_t inbytesleft = 1;
11800 char *outptr = buf;
11801 size_t outbytesleft = 1;
11802 size_t res = iconv (cd_88591_to_utf8,
11803 &inptr, &inbytesleft,
11804 &outptr, &outbytesleft);
11805 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11806 result |= 4;
11807 iconv_close (cd_88591_to_utf8);
11810 #if 0 /* This bug could be worked around by the caller. */
11811 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11813 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11814 if (cd_88591_to_utf8 != (iconv_t)(-1))
11816 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11817 char buf[50];
11818 ICONV_CONST char *inptr = input;
11819 size_t inbytesleft = strlen (input);
11820 char *outptr = buf;
11821 size_t outbytesleft = sizeof (buf);
11822 size_t res = iconv (cd_88591_to_utf8,
11823 &inptr, &inbytesleft,
11824 &outptr, &outbytesleft);
11825 if ((int)res > 0)
11826 result |= 8;
11827 iconv_close (cd_88591_to_utf8);
11830 #endif
11831 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11832 provided. */
11834 /* Try standardized names. */
11835 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11836 /* Try IRIX, OSF/1 names. */
11837 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11838 /* Try AIX names. */
11839 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11840 /* Try HP-UX names. */
11841 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11842 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11843 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11844 result |= 16;
11845 if (cd1 != (iconv_t)(-1))
11846 iconv_close (cd1);
11847 if (cd2 != (iconv_t)(-1))
11848 iconv_close (cd2);
11849 if (cd3 != (iconv_t)(-1))
11850 iconv_close (cd3);
11851 if (cd4 != (iconv_t)(-1))
11852 iconv_close (cd4);
11854 return result;
11857 return 0;
11859 _ACEOF
11860 if ac_fn_cxx_try_run "$LINENO"; then :
11861 am_cv_func_iconv_works=yes
11863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11864 conftest.$ac_objext conftest.beam conftest.$ac_ext
11867 test "$am_cv_func_iconv_works" = no || break
11868 done
11869 LIBS="$am_save_LIBS"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11873 $as_echo "$am_cv_func_iconv_works" >&6; }
11874 case "$am_cv_func_iconv_works" in
11875 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11876 *) am_func_iconv=yes ;;
11877 esac
11878 else
11879 am_func_iconv=no am_cv_lib_iconv=no
11881 if test "$am_func_iconv" = yes; then
11883 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11886 if test "$am_cv_lib_iconv" = yes; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11888 $as_echo_n "checking how to link with libiconv... " >&6; }
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11890 $as_echo "$LIBICONV" >&6; }
11891 else
11892 CPPFLAGS="$am_save_CPPFLAGS"
11893 LIBICONV=
11894 LTLIBICONV=
11899 if test "$am_cv_func_iconv" = yes; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
11901 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
11902 if ${gl_cv_iconv_nonconst+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 #include <stdlib.h>
11909 #include <iconv.h>
11910 extern
11911 #ifdef __cplusplus
11913 #endif
11914 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11917 main ()
11921 return 0;
11923 _ACEOF
11924 if ac_fn_cxx_try_compile "$LINENO"; then :
11925 gl_cv_iconv_nonconst=yes
11926 else
11927 gl_cv_iconv_nonconst=no
11929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
11933 $as_echo "$gl_cv_iconv_nonconst" >&6; }
11934 else
11935 gl_cv_iconv_nonconst=yes
11937 if test $gl_cv_iconv_nonconst = yes; then
11938 iconv_arg1=""
11939 else
11940 iconv_arg1="const"
11943 cat >>confdefs.h <<_ACEOF
11944 #define ICONV_CONST $iconv_arg1
11945 _ACEOF
11949 if test "$am_func_iconv" = yes; then
11950 if test -n "$LIBICONV"; then
11951 am_cv_func_iconv_summary='yes, in libiconv'
11952 else
11953 am_cv_func_iconv_summary='yes, in libc'
11955 else
11956 if test "$am_cv_func_iconv" = yes; then
11957 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
11958 else
11959 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
11964 # Until we have in-tree GNU iconv:
11965 LIBICONV_DEP=
11966 if test -f "$LTLIBICONV"; then
11967 LIBICONV_DEP=$LTLIBICONV
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11973 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11974 if ${am_cv_val_LC_MESSAGES+:} false; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 #include <locale.h>
11981 main ()
11983 return LC_MESSAGES
11985 return 0;
11987 _ACEOF
11988 if ac_fn_cxx_try_link "$LINENO"; then :
11989 am_cv_val_LC_MESSAGES=yes
11990 else
11991 am_cv_val_LC_MESSAGES=no
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11997 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11998 if test $am_cv_val_LC_MESSAGES = yes; then
12000 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12007 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12008 if ${am_cv_langinfo_codeset+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include <langinfo.h>
12015 main ()
12017 char* cs = nl_langinfo(CODESET);
12019 return 0;
12021 _ACEOF
12022 if ac_fn_cxx_try_link "$LINENO"; then :
12023 am_cv_langinfo_codeset=yes
12024 else
12025 am_cv_langinfo_codeset=no
12027 rm -f core conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12032 $as_echo "$am_cv_langinfo_codeset" >&6; }
12033 if test $am_cv_langinfo_codeset = yes; then
12035 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12040 # We will need to find libiberty.h and ansidecl.h
12041 saved_CFLAGS="$CFLAGS"
12042 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12043 saved_CXXFLAGS="$CXXFLAGS"
12044 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12046 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12047 # normal autoconf function for these. But force definition of
12048 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12049 # basename handling in libiberty.h.
12050 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12051 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12052 #undef HAVE_DECL_BASENAME
12053 #define HAVE_DECL_BASENAME 1
12054 #include \"ansidecl.h\"
12055 #include \"system.h\"
12057 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12058 ac_have_decl=1
12059 else
12060 ac_have_decl=0
12063 cat >>confdefs.h <<_ACEOF
12064 #define HAVE_DECL_BASENAME $ac_have_decl
12065 _ACEOF
12066 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12067 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12068 #undef HAVE_DECL_BASENAME
12069 #define HAVE_DECL_BASENAME 1
12070 #include \"ansidecl.h\"
12071 #include \"system.h\"
12073 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12074 ac_have_decl=1
12075 else
12076 ac_have_decl=0
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_DECL_STRSTR $ac_have_decl
12081 _ACEOF
12084 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12085 madvise stpcpy strnlen strsignal strverscmp \
12086 strtol strtoul strtoll strtoull setenv unsetenv \
12087 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12088 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
12090 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12092 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12093 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098 #undef $ac_tr_decl
12099 #define $ac_tr_decl 1
12101 #include "ansidecl.h"
12102 #include "system.h"
12105 main ()
12107 #ifndef $ac_func
12108 char *(*pfn) = (char *(*)) $ac_func ;
12109 #endif
12111 return 0;
12113 _ACEOF
12114 if ac_fn_cxx_try_compile "$LINENO"; then :
12115 eval "gcc_cv_have_decl_$ac_func=yes"
12116 else
12117 eval "gcc_cv_have_decl_$ac_func=no"
12119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12124 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12125 #define $ac_tr_decl 1
12126 _ACEOF
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12130 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12131 #define $ac_tr_decl 0
12132 _ACEOF
12136 done
12139 for ac_func in getrlimit setrlimit getrusage
12141 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12143 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12144 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #undef $ac_tr_decl
12150 #define $ac_tr_decl 1
12152 #include "ansidecl.h"
12153 #include "system.h"
12154 #ifdef HAVE_SYS_RESOURCE_H
12155 #include <sys/resource.h>
12156 #endif
12160 main ()
12162 #ifndef $ac_func
12163 char *(*pfn) = (char *(*)) $ac_func ;
12164 #endif
12166 return 0;
12168 _ACEOF
12169 if ac_fn_cxx_try_compile "$LINENO"; then :
12170 eval "gcc_cv_have_decl_$ac_func=yes"
12171 else
12172 eval "gcc_cv_have_decl_$ac_func=no"
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12179 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12180 #define $ac_tr_decl 1
12181 _ACEOF
12183 else
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12186 #define $ac_tr_decl 0
12187 _ACEOF
12191 done
12194 for ac_func in mallinfo mallinfo2
12196 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12198 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12199 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 #undef $ac_tr_decl
12205 #define $ac_tr_decl 1
12207 #include "ansidecl.h"
12208 #include "system.h"
12209 #ifdef HAVE_MALLOC_H
12210 #include <malloc.h>
12211 #endif
12215 main ()
12217 #ifndef $ac_func
12218 char *(*pfn) = (char *(*)) $ac_func ;
12219 #endif
12221 return 0;
12223 _ACEOF
12224 if ac_fn_cxx_try_compile "$LINENO"; then :
12225 eval "gcc_cv_have_decl_$ac_func=yes"
12226 else
12227 eval "gcc_cv_have_decl_$ac_func=no"
12229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12234 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12235 #define $ac_tr_decl 1
12236 _ACEOF
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12241 #define $ac_tr_decl 0
12242 _ACEOF
12246 done
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12252 #include "ansidecl.h"
12253 #include "system.h"
12254 #ifdef HAVE_SYS_RESOURCE_H
12255 #include <sys/resource.h>
12256 #endif
12259 main ()
12261 rlim_t l = 0;
12263 return 0;
12265 _ACEOF
12266 if ac_fn_cxx_try_compile "$LINENO"; then :
12268 else
12270 $as_echo "#define rlim_t long" >>confdefs.h
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12276 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12277 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12278 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12279 for ac_func in ldgetname
12281 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12283 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12284 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12285 $as_echo_n "(cached) " >&6
12286 else
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #undef $ac_tr_decl
12290 #define $ac_tr_decl 1
12292 #include "ansidecl.h"
12293 #include "system.h"
12294 #ifdef HAVE_LDFCN_H
12295 #undef FREAD
12296 #undef FWRITE
12297 #include <ldfcn.h>
12298 #endif
12302 main ()
12304 #ifndef $ac_func
12305 char *(*pfn) = (char *(*)) $ac_func ;
12306 #endif
12308 return 0;
12310 _ACEOF
12311 if ac_fn_cxx_try_compile "$LINENO"; then :
12312 eval "gcc_cv_have_decl_$ac_func=yes"
12313 else
12314 eval "gcc_cv_have_decl_$ac_func=no"
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12322 #define $ac_tr_decl 1
12323 _ACEOF
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12328 #define $ac_tr_decl 0
12329 _ACEOF
12333 done
12336 for ac_func in times
12338 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12340 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12341 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12346 #undef $ac_tr_decl
12347 #define $ac_tr_decl 1
12349 #include "ansidecl.h"
12350 #include "system.h"
12351 #ifdef HAVE_SYS_TIMES_H
12352 #include <sys/times.h>
12353 #endif
12357 main ()
12359 #ifndef $ac_func
12360 char *(*pfn) = (char *(*)) $ac_func ;
12361 #endif
12363 return 0;
12365 _ACEOF
12366 if ac_fn_cxx_try_compile "$LINENO"; then :
12367 eval "gcc_cv_have_decl_$ac_func=yes"
12368 else
12369 eval "gcc_cv_have_decl_$ac_func=no"
12371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12377 #define $ac_tr_decl 1
12378 _ACEOF
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12383 #define $ac_tr_decl 0
12384 _ACEOF
12388 done
12391 for ac_func in sigaltstack
12393 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12395 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12396 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12401 #undef $ac_tr_decl
12402 #define $ac_tr_decl 1
12404 #include "ansidecl.h"
12405 #include "system.h"
12406 #include <signal.h>
12410 main ()
12412 #ifndef $ac_func
12413 char *(*pfn) = (char *(*)) $ac_func ;
12414 #endif
12416 return 0;
12418 _ACEOF
12419 if ac_fn_cxx_try_compile "$LINENO"; then :
12420 eval "gcc_cv_have_decl_$ac_func=yes"
12421 else
12422 eval "gcc_cv_have_decl_$ac_func=no"
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12430 #define $ac_tr_decl 1
12431 _ACEOF
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12436 #define $ac_tr_decl 0
12437 _ACEOF
12441 done
12444 # More time-related stuff.
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12446 $as_echo_n "checking for struct tms... " >&6; }
12447 if ${ac_cv_struct_tms+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 #include "ansidecl.h"
12455 #include "system.h"
12456 #ifdef HAVE_SYS_TIMES_H
12457 #include <sys/times.h>
12458 #endif
12461 main ()
12463 struct tms tms;
12465 return 0;
12467 _ACEOF
12468 if ac_fn_cxx_try_compile "$LINENO"; then :
12469 ac_cv_struct_tms=yes
12470 else
12471 ac_cv_struct_tms=no
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12476 $as_echo "$ac_cv_struct_tms" >&6; }
12477 if test $ac_cv_struct_tms = yes; then
12479 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12483 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12484 # revisit after autoconf 2.50.
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12486 $as_echo_n "checking for clock_t... " >&6; }
12487 if ${gcc_cv_type_clock_t+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12494 #include "ansidecl.h"
12495 #include "system.h"
12498 main ()
12500 clock_t x;
12502 return 0;
12504 _ACEOF
12505 if ac_fn_cxx_try_compile "$LINENO"; then :
12506 gcc_cv_type_clock_t=yes
12507 else
12508 gcc_cv_type_clock_t=no
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12513 $as_echo "$gcc_cv_type_clock_t" >&6; }
12514 if test $gcc_cv_type_clock_t = yes; then
12516 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12520 # Check if F_SETLKW is supported by fcntl.
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12522 $as_echo_n "checking for F_SETLKW... " >&6; }
12523 if ${ac_cv_f_setlkw+:} false; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 #include <fcntl.h>
12532 main ()
12535 struct flock fl;
12536 fl.l_whence = 0;
12537 fl.l_start = 0;
12538 fl.l_len = 0;
12539 fl.l_pid = 0;
12540 return fcntl (1, F_SETLKW, &fl);
12542 return 0;
12544 _ACEOF
12545 if ac_fn_cxx_try_compile "$LINENO"; then :
12546 ac_cv_f_setlkw=yes
12547 else
12548 ac_cv_f_setlkw=no
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12553 $as_echo "$ac_cv_f_setlkw" >&6; }
12554 if test $ac_cv_f_setlkw = yes; then
12556 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12560 # Check if O_CLOEXEC is defined by fcntl
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12562 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12563 if ${ac_cv_o_cloexec+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 #include <fcntl.h>
12572 main ()
12575 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12577 return 0;
12579 _ACEOF
12580 if ac_fn_cxx_try_compile "$LINENO"; then :
12581 ac_cv_o_cloexec=yes
12582 else
12583 ac_cv_o_cloexec=no
12585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12588 $as_echo "$ac_cv_o_cloexec" >&6; }
12589 if test $ac_cv_o_cloexec = yes; then
12591 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12595 # Check if O_NONBLOCK is defined by fcntl
12596 for ac_header in fcntl.h
12597 do :
12598 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12599 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12600 cat >>confdefs.h <<_ACEOF
12601 #define HAVE_FCNTL_H 1
12602 _ACEOF
12605 done
12607 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12609 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12613 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12615 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12620 # C++ Modules would like some networking features to provide the mapping
12621 # server. You can still use modules without them though.
12622 # The following network-related checks could probably do with some
12623 # Windows and other non-linux defenses and checking.
12625 # Local socket connectivity wants AF_UNIX networking
12626 # Check for AF_UNIX networking
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12628 $as_echo_n "checking for AF_UNIX... " >&6; }
12629 if ${ac_cv_af_unix+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 #include <sys/types.h>
12637 #include <sys/socket.h>
12638 #include <sys/un.h>
12639 #include <netinet/in.h>
12641 main ()
12644 sockaddr_un un;
12645 un.sun_family = AF_UNSPEC;
12646 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12647 connect (fd, (sockaddr *)&un, sizeof (un));
12649 return 0;
12651 _ACEOF
12652 if ac_fn_cxx_try_compile "$LINENO"; then :
12653 ac_cv_af_unix=yes
12654 else
12655 ac_cv_af_unix=no
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12660 $as_echo "$ac_cv_af_unix" >&6; }
12661 if test $ac_cv_af_unix = yes; then
12663 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12667 # Remote socket connectivity wants AF_INET6 networking
12668 # Check for AF_INET6 networking
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12670 $as_echo_n "checking for AF_INET6... " >&6; }
12671 if ${ac_cv_af_inet6+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12678 #include <sys/types.h>
12679 #include <sys/socket.h>
12680 #include <netinet/in.h>
12681 #include <netdb.h>
12683 main ()
12686 sockaddr_in6 in6;
12687 in6.sin6_family = AF_UNSPEC;
12688 struct addrinfo *addrs = 0;
12689 struct addrinfo hints;
12690 hints.ai_flags = 0;
12691 hints.ai_family = AF_INET6;
12692 hints.ai_socktype = SOCK_STREAM;
12693 hints.ai_protocol = 0;
12694 hints.ai_canonname = 0;
12695 hints.ai_addr = 0;
12696 hints.ai_next = 0;
12697 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12698 const char *str = gai_strerror (e);
12699 freeaddrinfo (addrs);
12700 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12701 connect (fd, (sockaddr *)&in6, sizeof (in6));
12703 return 0;
12705 _ACEOF
12706 if ac_fn_cxx_try_compile "$LINENO"; then :
12707 ac_cv_af_inet6=yes
12708 else
12709 ac_cv_af_inet6=no
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12714 $as_echo "$ac_cv_af_inet6" >&6; }
12715 if test $ac_cv_af_inet6 = yes; then
12717 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12721 # Check if _LK_LOCK is supported by _locking
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12723 $as_echo_n "checking for _LK_LOCK... " >&6; }
12724 if ${ac_cv_lk_lock+:} false; then :
12725 $as_echo_n "(cached) " >&6
12726 else
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12731 #include <io.h>
12732 #include <sys/locking.h>
12734 main ()
12737 int fd;
12738 return _locking (fd, _LK_LOCK, 0);
12740 return 0;
12742 _ACEOF
12743 if ac_fn_cxx_try_compile "$LINENO"; then :
12744 ac_cv_lk_lock=yes
12745 else
12746 ac_cv_lk_lock=no
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12751 $as_echo "$ac_cv_lk_lock" >&6; }
12752 if test $ac_cv_lk_lock = yes; then
12754 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12758 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12759 CFLAGS="$saved_CFLAGS"
12760 CXXFLAGS="$saved_CXXFLAGS"
12762 # mkdir takes a single argument on some systems.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12764 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12765 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12771 #include <sys/types.h>
12772 #ifdef HAVE_SYS_STAT_H
12773 # include <sys/stat.h>
12774 #endif
12775 #ifdef HAVE_UNISTD_H
12776 # include <unistd.h>
12777 #endif
12778 #ifdef HAVE_DIRECT_H
12779 # include <direct.h>
12780 #endif
12782 main ()
12784 mkdir ("foo", 0);
12786 return 0;
12788 _ACEOF
12789 if ac_fn_cxx_try_compile "$LINENO"; then :
12790 gcc_cv_mkdir_takes_one_arg=no
12791 else
12792 gcc_cv_mkdir_takes_one_arg=yes
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12797 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12798 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12800 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12805 # File extensions
12806 manext='.1'
12807 objext='.o'
12811 # With Setjmp/Longjmp based exception handling.
12812 # Check whether --enable-sjlj-exceptions was given.
12813 if test "${enable_sjlj_exceptions+set}" = set; then :
12814 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12815 else
12816 case $target in
12817 lm32*-*-*)
12818 force_sjlj_exceptions=yes
12819 enableval=yes
12822 force_sjlj_exceptions=no
12824 esac
12827 if test $force_sjlj_exceptions = yes; then
12828 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12830 cat >>confdefs.h <<_ACEOF
12831 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12832 _ACEOF
12836 # Windows32 UTF-8 manifest support for running the driver and compiler
12837 # executables with the UTF-8 active code page on mingw hosts.
12838 # Non-mingw hosts ignore this option.
12839 # The shell variables this sets are picked up from the mingw branches
12840 # of config.host so they have to be set before it gets sourced.
12841 # Check whether --enable-win32-utf8-manifest was given.
12842 if test "${enable_win32_utf8_manifest+set}" = set; then :
12843 enableval=$enable_win32_utf8_manifest;
12847 if test "x$enable_win32_utf8_manifest" != xno; then
12848 host_xmake_mingw=i386/x-mingw32-utf8
12849 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
12850 host_extra_objs_mingw=utf8-mingw32.o
12853 # --------------------------------------------------------
12854 # Build, host, and target specific configuration fragments
12855 # --------------------------------------------------------
12857 # Collect build-machine-specific information.
12858 . ${srcdir}/config.build || exit 1
12860 # Collect host-machine-specific information.
12861 . ${srcdir}/config.host || exit 1
12863 target_gtfiles=
12865 # Collect target-machine-specific information.
12866 . ${srcdir}/config.gcc || exit 1
12868 extra_objs="${host_extra_objs} ${extra_objs}"
12869 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12871 # Default the target-machine variables that were not explicitly set.
12872 if test x"$tm_file" = x
12873 then tm_file=$cpu_type/$cpu_type.h; fi
12875 if test x"$extra_headers" = x
12876 then extra_headers=; fi
12878 if test x$md_file = x
12879 then md_file=$cpu_type/$cpu_type.md; fi
12881 if test x$out_file = x
12882 then out_file=$cpu_type/$cpu_type.cc; fi
12884 if test x"$tmake_file" = x
12885 then tmake_file=$cpu_type/t-$cpu_type
12888 # Support --enable-initfini-array.
12889 if test x$enable_initfini_array != xno; then
12890 tm_file="${tm_file} initfini-array.h"
12893 if test x"$dwarf2" = xyes
12894 then tm_file="$tm_file tm-dwarf2.h"
12897 # Say what files are being used for the output code and MD file.
12898 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12899 echo "Using \`$srcdir/config/$md_file' as machine description file."
12901 # If any of the xm_file variables contain nonexistent files, warn
12902 # about them and drop them.
12905 for x in $build_xm_file; do
12906 if test -f $srcdir/config/$x
12907 then bx="$bx $x"
12908 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12909 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12911 done
12912 build_xm_file="$bx"
12915 for x in $host_xm_file; do
12916 if test -f $srcdir/config/$x
12917 then hx="$hx $x"
12918 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12919 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12921 done
12922 host_xm_file="$hx"
12925 for x in $xm_file; do
12926 if test -f $srcdir/config/$x
12927 then tx="$tx $x"
12928 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12929 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12931 done
12932 xm_file="$tx"
12934 count=a
12935 for f in $tm_file; do
12936 count=${count}x
12937 done
12938 if test $count = ax; then
12939 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12940 else
12941 echo "Using the following target machine macro files:"
12942 for f in $tm_file; do
12943 echo " $srcdir/config/$f"
12944 done
12947 if test x$use_long_long_for_widest_fast_int = xyes; then
12949 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12953 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12955 cat >>confdefs.h <<_ACEOF
12956 #define HAVE_GNU_LD $gnu_ld_bool
12957 _ACEOF
12960 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12962 cat >>confdefs.h <<_ACEOF
12963 #define HAVE_GNU_AS $gnu_as_bool
12964 _ACEOF
12967 count=a
12968 for f in $host_xm_file; do
12969 count=${count}x
12970 done
12971 if test $count = a; then
12973 elif test $count = ax; then
12974 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12975 else
12976 echo "Using the following host machine macro files:"
12977 for f in $host_xm_file; do
12978 echo " $srcdir/config/$f"
12979 done
12981 echo "Using ${out_host_hook_obj} for host machine hooks."
12983 if test "$host_xm_file" != "$build_xm_file"; then
12984 count=a
12985 for f in $build_xm_file; do
12986 count=${count}x
12987 done
12988 if test $count = a; then
12990 elif test $count = ax; then
12991 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12992 else
12993 echo "Using the following build machine macro files:"
12994 for f in $build_xm_file; do
12995 echo " $srcdir/config/$f"
12996 done
13000 if test -n "$configured_native_system_header_dir"; then
13001 native_system_header_dir=$configured_native_system_header_dir
13003 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13006 case ${host} in
13007 powerpc*-*-darwin*)
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13009 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13010 if ${gcc_cv_mcontext_underscores+:} false; then :
13011 $as_echo_n "(cached) " >&6
13012 else
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13016 #include <sys/cdefs.h>
13017 #include <sys/signal.h>
13018 #include <ucontext.h>
13019 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13021 _ACEOF
13022 if ac_fn_cxx_try_compile "$LINENO"; then :
13023 gcc_cv_mcontext_underscores=no
13024 else
13025 gcc_cv_mcontext_underscores=yes
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13030 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13031 if test $gcc_cv_mcontext_underscores = yes; then
13033 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13037 esac
13039 # ---------
13040 # Threading
13041 # ---------
13043 # Check if a valid thread package
13044 case ${enable_threads} in
13045 "" | no)
13046 # No threads
13047 target_thread_file='single'
13049 yes)
13050 # default
13051 target_thread_file='single'
13053 aix | dce | lynx | mipssde | posix | rtems | \
13054 single | tpf | vxworks | win32 | mcf)
13055 target_thread_file=${enable_threads}
13058 echo "${enable_threads} is an unknown thread package" 1>&2
13059 exit 1
13061 esac
13063 if test x${thread_file} = x; then
13064 # No thread file set by target-specific clauses in config.gcc,
13065 # so use file chosen by default logic above
13066 thread_file=${target_thread_file}
13069 # --------
13070 # UNSORTED
13071 # --------
13073 use_cxa_atexit=no
13074 if test x$enable___cxa_atexit = xyes || \
13075 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13076 if test x$host = x$target; then
13077 case $host in
13078 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13079 # keyed to flag_use_cxa_atexit
13080 *-*-mingw32*)
13081 use_cxa_atexit=yes
13083 powerpc-ibm-aix*)
13084 use_cxa_atexit=yes
13087 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13088 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13089 use_cxa_atexit=yes
13090 else
13091 echo "__cxa_atexit can't be enabled on this target"
13095 esac
13096 else
13097 # We can't check for __cxa_atexit when building a cross, so assume
13098 # it is available
13099 use_cxa_atexit=yes
13101 if test x$use_cxa_atexit = xyes; then
13103 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13108 # Look for a file containing extra machine modes.
13109 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13110 extra_modes_file='$(srcdir)'/config/${extra_modes}
13113 cat >>confdefs.h <<_ACEOF
13114 #define EXTRA_MODES_FILE "config/$extra_modes"
13115 _ACEOF
13119 # Convert extra_options into a form suitable for Makefile use.
13120 extra_opt_files=
13121 all_opt_files=
13122 for f in $extra_options; do
13123 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13124 all_opt_files="$all_opt_files $srcdir/config/$f"
13125 done
13128 # auto-host.h is the file containing items generated by autoconf and is
13129 # the first file included by config.h.
13130 # If host=build, it is correct to have bconfig include auto-host.h
13131 # as well. If host!=build, we are in error and need to do more
13132 # work to find out the build config parameters.
13133 if test x$host = x$build
13134 then
13135 build_auto=auto-host.h
13136 HAVE_AUTO_BUILD='# '
13137 else
13138 # We create a subdir, then run autoconf in the subdir.
13139 # To prevent recursion we set host and build for the new
13140 # invocation of configure to the build for this invocation
13141 # of configure.
13142 tempdir=build.$$
13143 rm -rf $tempdir
13144 mkdir $tempdir
13145 cd $tempdir
13146 case ${srcdir} in
13147 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13148 *) realsrcdir=../${srcdir};;
13149 esac
13150 # Clearing GMPINC is necessary to prevent host headers being
13151 # used by the build compiler. Defining GENERATOR_FILE stops
13152 # system.h from including gmp.h.
13153 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13154 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13155 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13156 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13157 ${realsrcdir}/configure \
13158 --enable-languages=${enable_languages-all} \
13159 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13160 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13161 --target=$target_alias --host=$build_alias \
13162 --build=$build_alias || exit # retaining $tempdir
13164 # We just finished tests for the build machine, so rename
13165 # the file auto-build.h in the gcc directory.
13166 mv auto-host.h ../auto-build.h
13167 cd ..
13168 rm -rf $tempdir
13169 build_auto=auto-build.h
13170 HAVE_AUTO_BUILD=
13175 tm_file="${tm_file} defaults.h"
13176 tm_p_file="${tm_p_file} tm-preds.h"
13177 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13178 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13179 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13180 # put this back in temporarily.
13181 xm_file="auto-host.h ansidecl.h ${xm_file}"
13183 # --------
13184 # UNSORTED
13185 # --------
13187 # Compile in configure arguments.
13188 if test -f configargs.h ; then
13189 # Being re-configured.
13190 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13191 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13192 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13193 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13195 else
13196 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13199 # Double all backslashes and backslash all quotes to turn
13200 # gcc_config_arguments into a C string.
13201 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13202 $gcc_config_arguments
13204 gcc_config_arguments_str=`cat conftest.out`
13205 rm -f conftest.out
13207 cat > configargs.h <<EOF
13208 /* Generated automatically. */
13209 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13210 static const char thread_model[] = "$thread_file";
13212 static const struct {
13213 const char *name, *value;
13214 } configure_default_options[] = $configure_default_options;
13217 gcc_BASEVER=`cat $srcdir/BASE-VER`
13218 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13219 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13220 if test -f $srcdir/REVISION ; then
13221 gcc_REVISION=`cat $srcdir/REVISION`
13222 else
13223 gcc_REVISION=""
13225 cat > plugin-version.h <<EOF
13226 #include "configargs.h"
13228 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13229 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13230 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13231 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13233 static char basever[] = "$gcc_BASEVER";
13234 static char datestamp[] = "$gcc_DATESTAMP";
13235 static char devphase[] = "$gcc_DEVPHASE";
13236 static char revision[] = "$gcc_REVISION";
13238 /* FIXME plugins: We should make the version information more precise.
13239 One way to do is to add a checksum. */
13241 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13242 devphase, revision,
13243 configuration_arguments};
13246 # Determine what GCC version number to use in filesystem paths.
13248 get_gcc_base_ver="cat"
13250 # Check whether --with-gcc-major-version-only was given.
13251 if test "${with_gcc_major_version_only+set}" = set; then :
13252 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13253 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13261 # Internationalization
13262 # Find a good install program. We prefer a C program (faster),
13263 # so one script is as good as another. But avoid the broken or
13264 # incompatible versions:
13265 # SysV /etc/install, /usr/sbin/install
13266 # SunOS /usr/etc/install
13267 # IRIX /sbin/install
13268 # AIX /bin/install
13269 # AmigaOS /C/install, which installs bootblocks on floppy discs
13270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13273 # OS/2's system install, which has a completely different semantic
13274 # ./install, which can be erroneously created by make from ./install.sh.
13275 # Reject install programs that cannot install multiple files.
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13277 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13278 if test -z "$INSTALL"; then
13279 if ${ac_cv_path_install+:} false; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283 for as_dir in $PATH
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 # Account for people who put trailing slashes in PATH elements.
13288 case $as_dir/ in #((
13289 ./ | .// | /[cC]/* | \
13290 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13291 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13292 /usr/ucb/* ) ;;
13294 # OSF1 and SCO ODT 3.0 have their own names for install.
13295 # Don't use installbsd from OSF since it installs stuff as root
13296 # by default.
13297 for ac_prog in ginstall scoinst install; do
13298 for ac_exec_ext in '' $ac_executable_extensions; do
13299 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13300 if test $ac_prog = install &&
13301 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13302 # AIX install. It has an incompatible calling convention.
13304 elif test $ac_prog = install &&
13305 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13306 # program-specific install script used by HP pwplus--don't use.
13308 else
13309 rm -rf conftest.one conftest.two conftest.dir
13310 echo one > conftest.one
13311 echo two > conftest.two
13312 mkdir conftest.dir
13313 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13314 test -s conftest.one && test -s conftest.two &&
13315 test -s conftest.dir/conftest.one &&
13316 test -s conftest.dir/conftest.two
13317 then
13318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13319 break 3
13323 done
13324 done
13326 esac
13328 done
13329 IFS=$as_save_IFS
13331 rm -rf conftest.one conftest.two conftest.dir
13334 if test "${ac_cv_path_install+set}" = set; then
13335 INSTALL=$ac_cv_path_install
13336 else
13337 # As a last resort, use the slow shell script. Don't cache a
13338 # value for INSTALL within a source directory, because that will
13339 # break other packages using the cache if that directory is
13340 # removed, or if the value is a relative name.
13341 INSTALL=$ac_install_sh
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13345 $as_echo "$INSTALL" >&6; }
13347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13348 # It thinks the first close brace ends the variable substitution.
13349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13356 MKINSTALLDIRS=
13357 if test -n "$ac_aux_dir"; then
13358 case "$ac_aux_dir" in
13359 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13360 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13361 esac
13363 if test -z "$MKINSTALLDIRS"; then
13364 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13370 $as_echo_n "checking whether NLS is requested... " >&6; }
13371 # Check whether --enable-nls was given.
13372 if test "${enable_nls+set}" = set; then :
13373 enableval=$enable_nls; USE_NLS=$enableval
13374 else
13375 USE_NLS=yes
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13379 $as_echo "$USE_NLS" >&6; }
13386 # Prepare PATH_SEPARATOR.
13387 # The user is always right.
13388 if test "${PATH_SEPARATOR+set}" != set; then
13389 echo "#! /bin/sh" >conf$$.sh
13390 echo "exit 0" >>conf$$.sh
13391 chmod +x conf$$.sh
13392 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13393 PATH_SEPARATOR=';'
13394 else
13395 PATH_SEPARATOR=:
13397 rm -f conf$$.sh
13400 # Find out how to test for executable files. Don't use a zero-byte file,
13401 # as systems may use methods other than mode bits to determine executability.
13402 cat >conf$$.file <<_ASEOF
13403 #! /bin/sh
13404 exit 0
13405 _ASEOF
13406 chmod +x conf$$.file
13407 if test -x conf$$.file >/dev/null 2>&1; then
13408 ac_executable_p="test -x"
13409 else
13410 ac_executable_p="test -f"
13412 rm -f conf$$.file
13414 # Extract the first word of "msgfmt", so it can be a program name with args.
13415 set dummy msgfmt; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if ${ac_cv_path_MSGFMT+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 case "$MSGFMT" in
13422 [\\/]* | ?:[\\/]*)
13423 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13426 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13427 for ac_dir in $PATH; do
13428 IFS="$ac_save_IFS"
13429 test -z "$ac_dir" && ac_dir=.
13430 for ac_exec_ext in '' $ac_executable_extensions; do
13431 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13432 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13433 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13434 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13435 break 2
13438 done
13439 done
13440 IFS="$ac_save_IFS"
13441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13443 esac
13445 MSGFMT="$ac_cv_path_MSGFMT"
13446 if test "$MSGFMT" != ":"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13448 $as_echo "$MSGFMT" >&6; }
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13454 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13455 set dummy gmsgfmt; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if ${ac_cv_path_GMSGFMT+:} false; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 case $GMSGFMT in
13462 [\\/]* | ?:[\\/]*)
13463 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13469 IFS=$as_save_IFS
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475 break 2
13477 done
13478 done
13479 IFS=$as_save_IFS
13481 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13483 esac
13485 GMSGFMT=$ac_cv_path_GMSGFMT
13486 if test -n "$GMSGFMT"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13488 $as_echo "$GMSGFMT" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13497 # Prepare PATH_SEPARATOR.
13498 # The user is always right.
13499 if test "${PATH_SEPARATOR+set}" != set; then
13500 echo "#! /bin/sh" >conf$$.sh
13501 echo "exit 0" >>conf$$.sh
13502 chmod +x conf$$.sh
13503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13504 PATH_SEPARATOR=';'
13505 else
13506 PATH_SEPARATOR=:
13508 rm -f conf$$.sh
13511 # Find out how to test for executable files. Don't use a zero-byte file,
13512 # as systems may use methods other than mode bits to determine executability.
13513 cat >conf$$.file <<_ASEOF
13514 #! /bin/sh
13515 exit 0
13516 _ASEOF
13517 chmod +x conf$$.file
13518 if test -x conf$$.file >/dev/null 2>&1; then
13519 ac_executable_p="test -x"
13520 else
13521 ac_executable_p="test -f"
13523 rm -f conf$$.file
13525 # Extract the first word of "xgettext", so it can be a program name with args.
13526 set dummy xgettext; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if ${ac_cv_path_XGETTEXT+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 case "$XGETTEXT" in
13533 [\\/]* | ?:[\\/]*)
13534 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13537 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13538 for ac_dir in $PATH; do
13539 IFS="$ac_save_IFS"
13540 test -z "$ac_dir" && ac_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13543 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13544 (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
13545 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13546 break 2
13549 done
13550 done
13551 IFS="$ac_save_IFS"
13552 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13554 esac
13556 XGETTEXT="$ac_cv_path_XGETTEXT"
13557 if test "$XGETTEXT" != ":"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13559 $as_echo "$XGETTEXT" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13565 rm -f messages.po
13568 # Prepare PATH_SEPARATOR.
13569 # The user is always right.
13570 if test "${PATH_SEPARATOR+set}" != set; then
13571 echo "#! /bin/sh" >conf$$.sh
13572 echo "exit 0" >>conf$$.sh
13573 chmod +x conf$$.sh
13574 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13575 PATH_SEPARATOR=';'
13576 else
13577 PATH_SEPARATOR=:
13579 rm -f conf$$.sh
13582 # Find out how to test for executable files. Don't use a zero-byte file,
13583 # as systems may use methods other than mode bits to determine executability.
13584 cat >conf$$.file <<_ASEOF
13585 #! /bin/sh
13586 exit 0
13587 _ASEOF
13588 chmod +x conf$$.file
13589 if test -x conf$$.file >/dev/null 2>&1; then
13590 ac_executable_p="test -x"
13591 else
13592 ac_executable_p="test -f"
13594 rm -f conf$$.file
13596 # Extract the first word of "msgmerge", so it can be a program name with args.
13597 set dummy msgmerge; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if ${ac_cv_path_MSGMERGE+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 case "$MSGMERGE" in
13604 [\\/]* | ?:[\\/]*)
13605 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13608 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13609 for ac_dir in $PATH; do
13610 IFS="$ac_save_IFS"
13611 test -z "$ac_dir" && ac_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13614 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13615 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13616 break 2
13619 done
13620 done
13621 IFS="$ac_save_IFS"
13622 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13624 esac
13626 MSGMERGE="$ac_cv_path_MSGMERGE"
13627 if test "$MSGMERGE" != ":"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13629 $as_echo "$MSGMERGE" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13636 if test "$GMSGFMT" != ":"; then
13637 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13638 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13640 else
13641 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13643 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13644 GMSGFMT=":"
13648 if test "$XGETTEXT" != ":"; then
13649 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13650 (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
13652 else
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13654 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13655 XGETTEXT=":"
13657 rm -f messages.po
13660 ac_config_commands="$ac_config_commands default-1"
13666 if test -f ../gettext/uninstalled-config.sh; then
13667 relative_builddir='$(top_builddir)/../gettext'
13668 . ../gettext/uninstalled-config.sh
13669 else
13670 # The sister gettext directory doesn't exist and won't collect information on
13671 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13696 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13697 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 gt_save_LIBS="$LIBS"
13701 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 #include <CoreFoundation/CFPreferences.h>
13706 main ()
13708 CFPreferencesCopyAppValue(NULL, NULL)
13710 return 0;
13712 _ACEOF
13713 if ac_fn_cxx_try_link "$LINENO"; then :
13714 gt_cv_func_CFPreferencesCopyAppValue=yes
13715 else
13716 gt_cv_func_CFPreferencesCopyAppValue=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS="$gt_save_LIBS"
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13723 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13724 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13726 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13730 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13731 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 gt_save_LIBS="$LIBS"
13735 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 #include <CoreFoundation/CFLocale.h>
13740 main ()
13742 CFLocaleCopyPreferredLanguages();
13744 return 0;
13746 _ACEOF
13747 if ac_fn_cxx_try_link "$LINENO"; then :
13748 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13749 else
13750 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13752 rm -f core conftest.err conftest.$ac_objext \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS="$gt_save_LIBS"
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13757 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13758 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13760 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13763 INTL_MACOSX_LIBS=
13764 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13765 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13766 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13774 LIBINTL=
13775 LTLIBINTL=
13776 POSUB=
13778 case " $gt_needs " in
13779 *" need-formatstring-macros "*) gt_api_version=3 ;;
13780 *" need-ngettext "*) gt_api_version=2 ;;
13781 *) gt_api_version=1 ;;
13782 esac
13783 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13784 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13786 if test "$USE_NLS" = "yes"; then
13787 gt_use_preinstalled_gnugettext=no
13790 if test $gt_api_version -ge 3; then
13791 gt_revision_test_code='
13792 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13793 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13794 #endif
13795 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13797 else
13798 gt_revision_test_code=
13800 if test $gt_api_version -ge 2; then
13801 gt_expression_test_code=' + * ngettext ("", "", 0)'
13802 else
13803 gt_expression_test_code=
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13807 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13808 if eval \${$gt_func_gnugettext_libc+:} false; then :
13809 $as_echo_n "(cached) " >&6
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 #include <libintl.h>
13815 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13816 extern int _nl_msg_cat_cntr;
13817 extern int *_nl_domain_bindings;
13818 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13819 #else
13820 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13821 #endif
13822 $gt_revision_test_code
13825 main ()
13828 bindtextdomain ("", "");
13829 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13832 return 0;
13834 _ACEOF
13835 if ac_fn_cxx_try_link "$LINENO"; then :
13836 eval "$gt_func_gnugettext_libc=yes"
13837 else
13838 eval "$gt_func_gnugettext_libc=no"
13840 rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13843 eval ac_res=\$$gt_func_gnugettext_libc
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13845 $as_echo "$ac_res" >&6; }
13847 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13853 am_save_CPPFLAGS="$CPPFLAGS"
13855 for element in $INCICONV; do
13856 haveit=
13857 for x in $CPPFLAGS; do
13859 acl_save_prefix="$prefix"
13860 prefix="$acl_final_prefix"
13861 acl_save_exec_prefix="$exec_prefix"
13862 exec_prefix="$acl_final_exec_prefix"
13863 eval x=\"$x\"
13864 exec_prefix="$acl_save_exec_prefix"
13865 prefix="$acl_save_prefix"
13867 if test "X$x" = "X$element"; then
13868 haveit=yes
13869 break
13871 done
13872 if test -z "$haveit"; then
13873 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13875 done
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13879 $as_echo_n "checking for iconv... " >&6; }
13880 if ${am_cv_func_iconv+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13884 am_cv_func_iconv="no, consider installing GNU libiconv"
13885 am_cv_lib_iconv=no
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13889 #include <stdlib.h>
13890 #include <iconv.h>
13893 main ()
13895 iconv_t cd = iconv_open("","");
13896 iconv(cd,NULL,NULL,NULL,NULL);
13897 iconv_close(cd);
13899 return 0;
13901 _ACEOF
13902 if ac_fn_cxx_try_link "$LINENO"; then :
13903 am_cv_func_iconv=yes
13905 rm -f core conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 if test "$am_cv_func_iconv" != yes; then
13908 am_save_LIBS="$LIBS"
13909 LIBS="$LIBS $LIBICONV"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 #include <stdlib.h>
13914 #include <iconv.h>
13917 main ()
13919 iconv_t cd = iconv_open("","");
13920 iconv(cd,NULL,NULL,NULL,NULL);
13921 iconv_close(cd);
13923 return 0;
13925 _ACEOF
13926 if ac_fn_cxx_try_link "$LINENO"; then :
13927 am_cv_lib_iconv=yes
13928 am_cv_func_iconv=yes
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS="$am_save_LIBS"
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13937 $as_echo "$am_cv_func_iconv" >&6; }
13938 if test "$am_cv_func_iconv" = yes; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13940 $as_echo_n "checking for working iconv... " >&6; }
13941 if ${am_cv_func_iconv_works+:} false; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13945 am_save_LIBS="$LIBS"
13946 if test $am_cv_lib_iconv = yes; then
13947 LIBS="$LIBS $LIBICONV"
13949 am_cv_func_iconv_works=no
13950 for ac_iconv_const in '' 'const'; do
13951 if test "$cross_compiling" = yes; then :
13952 case "$host_os" in
13953 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13954 *) am_cv_func_iconv_works="guessing yes" ;;
13955 esac
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13960 #include <iconv.h>
13961 #include <string.h>
13963 #ifndef ICONV_CONST
13964 # define ICONV_CONST $ac_iconv_const
13965 #endif
13968 main ()
13970 int result = 0;
13971 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13972 successful returns. This is even documented in
13973 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13975 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13976 if (cd_utf8_to_88591 != (iconv_t)(-1))
13978 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13979 char buf[10];
13980 ICONV_CONST char *inptr = input;
13981 size_t inbytesleft = strlen (input);
13982 char *outptr = buf;
13983 size_t outbytesleft = sizeof (buf);
13984 size_t res = iconv (cd_utf8_to_88591,
13985 &inptr, &inbytesleft,
13986 &outptr, &outbytesleft);
13987 if (res == 0)
13988 result |= 1;
13989 iconv_close (cd_utf8_to_88591);
13992 /* Test against Solaris 10 bug: Failures are not distinguishable from
13993 successful returns. */
13995 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13996 if (cd_ascii_to_88591 != (iconv_t)(-1))
13998 static ICONV_CONST char input[] = "\263";
13999 char buf[10];
14000 ICONV_CONST char *inptr = input;
14001 size_t inbytesleft = strlen (input);
14002 char *outptr = buf;
14003 size_t outbytesleft = sizeof (buf);
14004 size_t res = iconv (cd_ascii_to_88591,
14005 &inptr, &inbytesleft,
14006 &outptr, &outbytesleft);
14007 if (res == 0)
14008 result |= 2;
14009 iconv_close (cd_ascii_to_88591);
14012 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14014 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14015 if (cd_88591_to_utf8 != (iconv_t)(-1))
14017 static ICONV_CONST char input[] = "\304";
14018 static char buf[2] = { (char)0xDE, (char)0xAD };
14019 ICONV_CONST char *inptr = input;
14020 size_t inbytesleft = 1;
14021 char *outptr = buf;
14022 size_t outbytesleft = 1;
14023 size_t res = iconv (cd_88591_to_utf8,
14024 &inptr, &inbytesleft,
14025 &outptr, &outbytesleft);
14026 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14027 result |= 4;
14028 iconv_close (cd_88591_to_utf8);
14031 #if 0 /* This bug could be worked around by the caller. */
14032 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14034 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14035 if (cd_88591_to_utf8 != (iconv_t)(-1))
14037 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14038 char buf[50];
14039 ICONV_CONST char *inptr = input;
14040 size_t inbytesleft = strlen (input);
14041 char *outptr = buf;
14042 size_t outbytesleft = sizeof (buf);
14043 size_t res = iconv (cd_88591_to_utf8,
14044 &inptr, &inbytesleft,
14045 &outptr, &outbytesleft);
14046 if ((int)res > 0)
14047 result |= 8;
14048 iconv_close (cd_88591_to_utf8);
14051 #endif
14052 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14053 provided. */
14055 /* Try standardized names. */
14056 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14057 /* Try IRIX, OSF/1 names. */
14058 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14059 /* Try AIX names. */
14060 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14061 /* Try HP-UX names. */
14062 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14063 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14064 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14065 result |= 16;
14066 if (cd1 != (iconv_t)(-1))
14067 iconv_close (cd1);
14068 if (cd2 != (iconv_t)(-1))
14069 iconv_close (cd2);
14070 if (cd3 != (iconv_t)(-1))
14071 iconv_close (cd3);
14072 if (cd4 != (iconv_t)(-1))
14073 iconv_close (cd4);
14075 return result;
14078 return 0;
14080 _ACEOF
14081 if ac_fn_cxx_try_run "$LINENO"; then :
14082 am_cv_func_iconv_works=yes
14084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14085 conftest.$ac_objext conftest.beam conftest.$ac_ext
14088 test "$am_cv_func_iconv_works" = no || break
14089 done
14090 LIBS="$am_save_LIBS"
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14094 $as_echo "$am_cv_func_iconv_works" >&6; }
14095 case "$am_cv_func_iconv_works" in
14096 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14097 *) am_func_iconv=yes ;;
14098 esac
14099 else
14100 am_func_iconv=no am_cv_lib_iconv=no
14102 if test "$am_func_iconv" = yes; then
14104 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14107 if test "$am_cv_lib_iconv" = yes; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14109 $as_echo_n "checking how to link with libiconv... " >&6; }
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14111 $as_echo "$LIBICONV" >&6; }
14112 else
14113 CPPFLAGS="$am_save_CPPFLAGS"
14114 LIBICONV=
14115 LTLIBICONV=
14123 use_additional=yes
14125 acl_save_prefix="$prefix"
14126 prefix="$acl_final_prefix"
14127 acl_save_exec_prefix="$exec_prefix"
14128 exec_prefix="$acl_final_exec_prefix"
14130 eval additional_includedir=\"$includedir\"
14131 eval additional_libdir=\"$libdir\"
14133 exec_prefix="$acl_save_exec_prefix"
14134 prefix="$acl_save_prefix"
14137 # Check whether --with-libintl-prefix was given.
14138 if test "${with_libintl_prefix+set}" = set; then :
14139 withval=$with_libintl_prefix;
14140 if test "X$withval" = "Xno"; then
14141 use_additional=no
14142 else
14143 if test "X$withval" = "X"; then
14145 acl_save_prefix="$prefix"
14146 prefix="$acl_final_prefix"
14147 acl_save_exec_prefix="$exec_prefix"
14148 exec_prefix="$acl_final_exec_prefix"
14150 eval additional_includedir=\"$includedir\"
14151 eval additional_libdir=\"$libdir\"
14153 exec_prefix="$acl_save_exec_prefix"
14154 prefix="$acl_save_prefix"
14156 else
14157 additional_includedir="$withval/include"
14158 additional_libdir="$withval/lib"
14165 # Check whether --with-libintl-type was given.
14166 if test "${with_libintl_type+set}" = set; then :
14167 withval=$with_libintl_type; with_libintl_type=$withval
14168 else
14169 with_libintl_type=auto
14172 lib_type=`eval echo \$with_libintl_type`
14174 LIBINTL=
14175 LTLIBINTL=
14176 INCINTL=
14177 rpathdirs=
14178 ltrpathdirs=
14179 names_already_handled=
14180 names_next_round='intl '
14181 while test -n "$names_next_round"; do
14182 names_this_round="$names_next_round"
14183 names_next_round=
14184 for name in $names_this_round; do
14185 already_handled=
14186 for n in $names_already_handled; do
14187 if test "$n" = "$name"; then
14188 already_handled=yes
14189 break
14191 done
14192 if test -z "$already_handled"; then
14193 names_already_handled="$names_already_handled $name"
14194 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14195 eval value=\"\$HAVE_LIB$uppername\"
14196 if test -n "$value"; then
14197 if test "$value" = yes; then
14198 eval value=\"\$LIB$uppername\"
14199 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14200 eval value=\"\$LTLIB$uppername\"
14201 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14202 else
14205 else
14206 found_dir=
14207 found_la=
14208 found_so=
14209 found_a=
14210 if test $use_additional = yes; then
14211 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14212 found_dir="$additional_libdir"
14213 found_so="$additional_libdir/lib$name.$shlibext"
14214 if test -f "$additional_libdir/lib$name.la"; then
14215 found_la="$additional_libdir/lib$name.la"
14217 elif test x$lib_type != xshared; then
14218 if test -f "$additional_libdir/lib$name.$libext"; then
14219 found_dir="$additional_libdir"
14220 found_a="$additional_libdir/lib$name.$libext"
14221 if test -f "$additional_libdir/lib$name.la"; then
14222 found_la="$additional_libdir/lib$name.la"
14227 if test "X$found_dir" = "X"; then
14228 for x in $LDFLAGS $LTLIBINTL; do
14230 acl_save_prefix="$prefix"
14231 prefix="$acl_final_prefix"
14232 acl_save_exec_prefix="$exec_prefix"
14233 exec_prefix="$acl_final_exec_prefix"
14234 eval x=\"$x\"
14235 exec_prefix="$acl_save_exec_prefix"
14236 prefix="$acl_save_prefix"
14238 case "$x" in
14239 -L*)
14240 dir=`echo "X$x" | sed -e 's/^X-L//'`
14241 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14242 found_dir="$dir"
14243 found_so="$dir/lib$name.$shlibext"
14244 if test -f "$dir/lib$name.la"; then
14245 found_la="$dir/lib$name.la"
14247 elif test x$lib_type != xshared; then
14248 if test -f "$dir/lib$name.$libext"; then
14249 found_dir="$dir"
14250 found_a="$dir/lib$name.$libext"
14251 if test -f "$dir/lib$name.la"; then
14252 found_la="$dir/lib$name.la"
14257 esac
14258 if test "X$found_dir" != "X"; then
14259 break
14261 done
14263 if test "X$found_dir" != "X"; then
14264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14265 if test "X$found_so" != "X"; then
14266 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14267 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14268 else
14269 haveit=
14270 for x in $ltrpathdirs; do
14271 if test "X$x" = "X$found_dir"; then
14272 haveit=yes
14273 break
14275 done
14276 if test -z "$haveit"; then
14277 ltrpathdirs="$ltrpathdirs $found_dir"
14279 if test "$hardcode_direct" = yes; then
14280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14281 else
14282 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14283 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14284 haveit=
14285 for x in $rpathdirs; do
14286 if test "X$x" = "X$found_dir"; then
14287 haveit=yes
14288 break
14290 done
14291 if test -z "$haveit"; then
14292 rpathdirs="$rpathdirs $found_dir"
14294 else
14295 haveit=
14296 for x in $LDFLAGS $LIBINTL; do
14298 acl_save_prefix="$prefix"
14299 prefix="$acl_final_prefix"
14300 acl_save_exec_prefix="$exec_prefix"
14301 exec_prefix="$acl_final_exec_prefix"
14302 eval x=\"$x\"
14303 exec_prefix="$acl_save_exec_prefix"
14304 prefix="$acl_save_prefix"
14306 if test "X$x" = "X-L$found_dir"; then
14307 haveit=yes
14308 break
14310 done
14311 if test -z "$haveit"; then
14312 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14314 if test "$hardcode_minus_L" != no; then
14315 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14316 else
14317 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14322 else
14323 if test "X$found_a" != "X"; then
14324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14325 else
14326 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14329 additional_includedir=
14330 case "$found_dir" in
14331 */lib | */lib/)
14332 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14333 additional_includedir="$basedir/include"
14335 esac
14336 if test "X$additional_includedir" != "X"; then
14337 if test "X$additional_includedir" != "X/usr/include"; then
14338 haveit=
14339 if test "X$additional_includedir" = "X/usr/local/include"; then
14340 if test -n "$GCC"; then
14341 case $host_os in
14342 linux*) haveit=yes;;
14343 esac
14346 if test -z "$haveit"; then
14347 for x in $CPPFLAGS $INCINTL; do
14349 acl_save_prefix="$prefix"
14350 prefix="$acl_final_prefix"
14351 acl_save_exec_prefix="$exec_prefix"
14352 exec_prefix="$acl_final_exec_prefix"
14353 eval x=\"$x\"
14354 exec_prefix="$acl_save_exec_prefix"
14355 prefix="$acl_save_prefix"
14357 if test "X$x" = "X-I$additional_includedir"; then
14358 haveit=yes
14359 break
14361 done
14362 if test -z "$haveit"; then
14363 if test -d "$additional_includedir"; then
14364 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14370 if test -n "$found_la"; then
14371 save_libdir="$libdir"
14372 case "$found_la" in
14373 */* | *\\*) . "$found_la" ;;
14374 *) . "./$found_la" ;;
14375 esac
14376 libdir="$save_libdir"
14377 for dep in $dependency_libs; do
14378 case "$dep" in
14379 -L*)
14380 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14381 if test "X$additional_libdir" != "X/usr/lib"; then
14382 haveit=
14383 if test "X$additional_libdir" = "X/usr/local/lib"; then
14384 if test -n "$GCC"; then
14385 case $host_os in
14386 linux*) haveit=yes;;
14387 esac
14390 if test -z "$haveit"; then
14391 haveit=
14392 for x in $LDFLAGS $LIBINTL; do
14394 acl_save_prefix="$prefix"
14395 prefix="$acl_final_prefix"
14396 acl_save_exec_prefix="$exec_prefix"
14397 exec_prefix="$acl_final_exec_prefix"
14398 eval x=\"$x\"
14399 exec_prefix="$acl_save_exec_prefix"
14400 prefix="$acl_save_prefix"
14402 if test "X$x" = "X-L$additional_libdir"; then
14403 haveit=yes
14404 break
14406 done
14407 if test -z "$haveit"; then
14408 if test -d "$additional_libdir"; then
14409 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14412 haveit=
14413 for x in $LDFLAGS $LTLIBINTL; do
14415 acl_save_prefix="$prefix"
14416 prefix="$acl_final_prefix"
14417 acl_save_exec_prefix="$exec_prefix"
14418 exec_prefix="$acl_final_exec_prefix"
14419 eval x=\"$x\"
14420 exec_prefix="$acl_save_exec_prefix"
14421 prefix="$acl_save_prefix"
14423 if test "X$x" = "X-L$additional_libdir"; then
14424 haveit=yes
14425 break
14427 done
14428 if test -z "$haveit"; then
14429 if test -d "$additional_libdir"; then
14430 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14436 -R*)
14437 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14438 if test "$enable_rpath" != no; then
14439 haveit=
14440 for x in $rpathdirs; do
14441 if test "X$x" = "X$dir"; then
14442 haveit=yes
14443 break
14445 done
14446 if test -z "$haveit"; then
14447 rpathdirs="$rpathdirs $dir"
14449 haveit=
14450 for x in $ltrpathdirs; do
14451 if test "X$x" = "X$dir"; then
14452 haveit=yes
14453 break
14455 done
14456 if test -z "$haveit"; then
14457 ltrpathdirs="$ltrpathdirs $dir"
14461 -l*)
14462 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14464 *.la)
14465 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14468 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14471 esac
14472 done
14474 else
14475 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14476 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14477 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14478 else
14479 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14480 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14485 done
14486 done
14487 if test "X$rpathdirs" != "X"; then
14488 if test -n "$hardcode_libdir_separator"; then
14489 alldirs=
14490 for found_dir in $rpathdirs; do
14491 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14492 done
14493 acl_save_libdir="$libdir"
14494 libdir="$alldirs"
14495 eval flag=\"$hardcode_libdir_flag_spec\"
14496 libdir="$acl_save_libdir"
14497 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14498 else
14499 for found_dir in $rpathdirs; do
14500 acl_save_libdir="$libdir"
14501 libdir="$found_dir"
14502 eval flag=\"$hardcode_libdir_flag_spec\"
14503 libdir="$acl_save_libdir"
14504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14505 done
14508 if test "X$ltrpathdirs" != "X"; then
14509 for found_dir in $ltrpathdirs; do
14510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14511 done
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14515 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14516 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14517 $as_echo_n "(cached) " >&6
14518 else
14519 gt_save_CPPFLAGS="$CPPFLAGS"
14520 CPPFLAGS="$CPPFLAGS $INCINTL"
14521 gt_save_LIBS="$LIBS"
14522 LIBS="$LIBS $LIBINTL"
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 #include <libintl.h>
14527 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14528 extern int _nl_msg_cat_cntr;
14529 extern
14530 #ifdef __cplusplus
14532 #endif
14533 const char *_nl_expand_alias (const char *);
14534 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14535 #else
14536 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14537 #endif
14538 $gt_revision_test_code
14541 main ()
14544 bindtextdomain ("", "");
14545 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14548 return 0;
14550 _ACEOF
14551 if ac_fn_cxx_try_link "$LINENO"; then :
14552 eval "$gt_func_gnugettext_libintl=yes"
14553 else
14554 eval "$gt_func_gnugettext_libintl=no"
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14558 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14559 LIBS="$LIBS $LIBICONV"
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14563 #include <libintl.h>
14564 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14565 extern int _nl_msg_cat_cntr;
14566 extern
14567 #ifdef __cplusplus
14569 #endif
14570 const char *_nl_expand_alias (const char *);
14571 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14572 #else
14573 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14574 #endif
14575 $gt_revision_test_code
14578 main ()
14581 bindtextdomain ("", "");
14582 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14585 return 0;
14587 _ACEOF
14588 if ac_fn_cxx_try_link "$LINENO"; then :
14589 LIBINTL="$LIBINTL $LIBICONV"
14590 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14591 eval "$gt_func_gnugettext_libintl=yes"
14594 rm -f core conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
14597 CPPFLAGS="$gt_save_CPPFLAGS"
14598 LIBS="$gt_save_LIBS"
14600 eval ac_res=\$$gt_func_gnugettext_libintl
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14602 $as_echo "$ac_res" >&6; }
14605 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14606 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14607 && test "$PACKAGE" != gettext-runtime \
14608 && test "$PACKAGE" != gettext-tools; }; then
14609 gt_use_preinstalled_gnugettext=yes
14610 else
14611 LIBINTL=
14612 LTLIBINTL=
14613 INCINTL=
14618 if test -n "$INTL_MACOSX_LIBS"; then
14619 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14620 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14621 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14622 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14626 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14627 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14629 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14631 else
14632 USE_NLS=no
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14637 $as_echo_n "checking whether to use NLS... " >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14639 $as_echo "$USE_NLS" >&6; }
14640 if test "$USE_NLS" = "yes"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14642 $as_echo_n "checking where the gettext function comes from... " >&6; }
14643 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14644 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14645 gt_source="external libintl"
14646 else
14647 gt_source="libc"
14649 else
14650 gt_source="included intl directory"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14653 $as_echo "$gt_source" >&6; }
14656 if test "$USE_NLS" = "yes"; then
14658 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14659 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14661 $as_echo_n "checking how to link with libintl... " >&6; }
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14663 $as_echo "$LIBINTL" >&6; }
14665 for element in $INCINTL; do
14666 haveit=
14667 for x in $CPPFLAGS; do
14669 acl_save_prefix="$prefix"
14670 prefix="$acl_final_prefix"
14671 acl_save_exec_prefix="$exec_prefix"
14672 exec_prefix="$acl_final_exec_prefix"
14673 eval x=\"$x\"
14674 exec_prefix="$acl_save_exec_prefix"
14675 prefix="$acl_save_prefix"
14677 if test "X$x" = "X$element"; then
14678 haveit=yes
14679 break
14681 done
14682 if test -z "$haveit"; then
14683 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14685 done
14690 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14693 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14697 POSUB=po
14702 INTLLIBS="$LIBINTL"
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14722 $as_echo_n "checking whether NLS is requested... " >&6; }
14723 if test x"$USE_NLS" != xyes; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14725 $as_echo "no" >&6; }
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14728 $as_echo "yes" >&6; }
14730 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14734 $as_echo_n "checking for catalogs to be installed... " >&6; }
14735 # Look for .po and .gmo files in the source directory.
14736 CATALOGS=
14737 XLINGUAS=
14738 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14739 # If there aren't any .gmo files the shell will give us the
14740 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14741 # weeded out.
14742 case "$cat" in *\**)
14743 continue;;
14744 esac
14745 # The quadruple backslash is collapsed to a double backslash
14746 # by the backticks, then collapsed again by the double quotes,
14747 # leaving us with one backslash in the sed expression (right
14748 # before the dot that mustn't act as a wildcard).
14749 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14750 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14751 # The user is allowed to set LINGUAS to a list of languages to
14752 # install catalogs for. If it's empty that means "all of them."
14753 if test "x$LINGUAS" = x; then
14754 CATALOGS="$CATALOGS $cat"
14755 XLINGUAS="$XLINGUAS $lang"
14756 else
14757 case "$LINGUAS" in *$lang*)
14758 CATALOGS="$CATALOGS $cat"
14759 XLINGUAS="$XLINGUAS $lang"
14761 esac
14763 done
14764 LINGUAS="$XLINGUAS"
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14766 $as_echo "$LINGUAS" >&6; }
14769 DATADIRNAME=share
14771 INSTOBJEXT=.mo
14773 GENCAT=gencat
14775 CATOBJEXT=.gmo
14779 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14780 # -liconv on the link line twice.
14781 case "$LIBINTL" in *$LIBICONV*)
14782 LIBICONV= ;;
14783 esac
14785 # Check whether --enable-secureplt was given.
14786 if test "${enable_secureplt+set}" = set; then :
14787 enableval=$enable_secureplt;
14791 # Check whether --enable-mingw-wildcard was given.
14792 if test "${enable_mingw_wildcard+set}" = set; then :
14793 enableval=$enable_mingw_wildcard;
14794 else
14795 enable_mingw_wildcard=platform
14798 if test x"$enable_mingw_wildcard" != xplatform ; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14802 _ACEOF
14806 # Check whether --enable-large-address-aware was given.
14807 if test "${enable_large_address_aware+set}" = set; then :
14808 enableval=$enable_large_address_aware;
14811 if test x"$enable_large_address_aware" = xyes; then :
14813 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14817 # Check whether --enable-leading-mingw64-underscores was given.
14818 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14819 enableval=$enable_leading_mingw64_underscores;
14822 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14824 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14828 # Check whether --enable-cld was given.
14829 if test "${enable_cld+set}" = set; then :
14830 enableval=$enable_cld;
14831 else
14832 enable_cld=no
14836 # Check whether --enable-frame-pointer was given.
14837 if test "${enable_frame_pointer+set}" = set; then :
14838 enableval=$enable_frame_pointer;
14839 else
14841 case $target_os in
14842 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
14843 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
14844 enable_frame_pointer=no
14847 enable_frame_pointer=yes
14849 esac
14854 case $target in
14855 i[34567]86-*-* | x86_64-*-*)
14856 if test "x$enable_cld" = xyes; then
14857 tm_defines="${tm_defines} USE_IX86_CLD=1"
14859 if test "x$enable_frame_pointer" = xyes; then
14860 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
14863 esac
14865 # Windows32 Registry support for specifying GCC installation paths.
14866 # Check whether --enable-win32-registry was given.
14867 if test "${enable_win32_registry+set}" = set; then :
14868 enableval=$enable_win32_registry;
14872 case $host_os in
14873 win32 | pe | cygwin* | mingw32*)
14874 if test "x$enable_win32_registry" != xno; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
14876 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
14877 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 ac_func_search_save_LIBS=$LIBS
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14884 /* Override any GCC internal prototype to avoid an error.
14885 Use char because int might match the return type of a GCC
14886 builtin and then its argument prototype would still apply. */
14887 #ifdef __cplusplus
14888 extern "C"
14889 #endif
14890 char RegOpenKeyExA ();
14892 main ()
14894 return RegOpenKeyExA ();
14896 return 0;
14898 _ACEOF
14899 for ac_lib in '' advapi32; do
14900 if test -z "$ac_lib"; then
14901 ac_res="none required"
14902 else
14903 ac_res=-l$ac_lib
14904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14906 if ac_fn_cxx_try_link "$LINENO"; then :
14907 ac_cv_search_RegOpenKeyExA=$ac_res
14909 rm -f core conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext
14911 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14912 break
14914 done
14915 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
14917 else
14918 ac_cv_search_RegOpenKeyExA=no
14920 rm conftest.$ac_ext
14921 LIBS=$ac_func_search_save_LIBS
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
14924 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
14925 ac_res=$ac_cv_search_RegOpenKeyExA
14926 if test "$ac_res" != no; then :
14927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14929 else
14930 enable_win32_registry=no
14935 if test "x$enable_win32_registry" != xno; then
14937 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
14940 if test "x$enable_win32_registry" != xyes \
14941 && test "x$enable_win32_registry" != x; then
14943 cat >>confdefs.h <<_ACEOF
14944 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14945 _ACEOF
14950 esac
14952 # Get an absolute path to the GCC top-level source directory
14953 holddir=`${PWDCMD-pwd}`
14954 cd $srcdir
14955 topdir=`${PWDCMD-pwd}`
14956 cd $holddir
14958 # Conditionalize the makefile for this host machine.
14959 xmake_file=
14960 for f in ${host_xmake_file}
14962 if test -f ${srcdir}/config/$f
14963 then
14964 xmake_file="${xmake_file} \$(srcdir)/config/$f"
14966 done
14968 # Conditionalize the makefile for this target machine.
14969 tmake_file_=
14970 for f in ${tmake_file}
14972 if test -f ${srcdir}/config/$f
14973 then
14974 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
14976 done
14977 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
14979 out_object_file=`basename $out_file .cc`.o
14980 common_out_object_file=`basename $common_out_file .cc`.o
14982 tm_file_list="options.h"
14983 tm_include_list="options.h insn-constants.h"
14984 for f in $tm_file; do
14985 case $f in
14986 ./* )
14987 f=`echo $f | sed 's/^..//'`
14988 tm_file_list="${tm_file_list} $f"
14989 tm_include_list="${tm_include_list} $f"
14991 defaults.h )
14992 tm_file_list="${tm_file_list} \$(srcdir)/$f"
14993 tm_include_list="${tm_include_list} $f"
14996 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
14997 tm_include_list="${tm_include_list} config/$f"
14999 esac
15000 done
15002 tm_p_file_list=
15003 tm_p_include_list=
15004 for f in $tm_p_file; do
15005 case $f in
15006 tm-preds.h )
15007 tm_p_file_list="${tm_p_file_list} $f"
15008 tm_p_include_list="${tm_p_include_list} $f"
15011 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15012 tm_p_include_list="${tm_p_include_list} config/$f"
15013 esac
15014 done
15016 tm_d_file_list=
15017 tm_d_include_list=
15018 for f in $tm_d_file; do
15019 case $f in
15021 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15022 tm_d_include_list="${tm_d_include_list} config/$f"
15024 esac
15025 done
15027 tm_rust_file_list=
15028 tm_rust_include_list=
15029 for f in $tm_rust_file; do
15030 case $f in
15032 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15033 tm_rust_include_list="${tm_rust_include_list} config/$f"
15035 esac
15036 done
15038 xm_file_list=
15039 xm_include_list=
15040 for f in $xm_file; do
15041 case $f in
15042 ansidecl.h )
15043 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15044 xm_include_list="${xm_include_list} $f"
15046 auto-host.h )
15047 xm_file_list="${xm_file_list} $f"
15048 xm_include_list="${xm_include_list} $f"
15051 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15052 xm_include_list="${xm_include_list} config/$f"
15054 esac
15055 done
15057 host_xm_file_list=
15058 host_xm_include_list=
15059 for f in $host_xm_file; do
15060 case $f in
15061 ansidecl.h )
15062 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15063 host_xm_include_list="${host_xm_include_list} $f"
15065 auto-host.h )
15066 host_xm_file_list="${host_xm_file_list} $f"
15067 host_xm_include_list="${host_xm_include_list} $f"
15070 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15071 host_xm_include_list="${host_xm_include_list} config/$f"
15073 esac
15074 done
15076 build_xm_file_list=
15077 for f in $build_xm_file; do
15078 case $f in
15079 ansidecl.h )
15080 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15081 build_xm_include_list="${build_xm_include_list} $f"
15083 auto-build.h | auto-host.h )
15084 build_xm_file_list="${build_xm_file_list} $f"
15085 build_xm_include_list="${build_xm_include_list} $f"
15088 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15089 build_xm_include_list="${build_xm_include_list} config/$f"
15091 esac
15092 done
15094 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15095 # cross-compiler which does not use the native headers and libraries.
15096 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15097 CROSS=
15098 ALL=all.internal
15099 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15100 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15102 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15103 test x$build != x$host || test "x$with_build_sysroot" != x; then
15104 if test "x$with_build_sysroot" != x; then
15105 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15106 else
15107 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15110 if test x$host != x$target
15111 then
15112 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15113 ALL=all.cross
15114 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15115 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15116 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15119 if test "x$with_build_sysroot" != "x"; then
15120 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15121 elif test "x$with_sysroot" = x; then
15122 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15123 elif test "x$with_sysroot" = xyes; then
15124 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15125 else
15126 target_header_dir="${with_sysroot}${native_system_header_dir}"
15128 else
15129 target_header_dir=${native_system_header_dir}
15132 # If this is a cross-compiler that does not
15133 # have its own set of headers then define
15134 # inhibit_libc
15136 # If this is using newlib, without having the headers available now,
15137 # then define inhibit_libc in LIBGCC2_CFLAGS.
15138 # This prevents libgcc2 from containing any code which requires libc
15139 # support.
15140 : ${inhibit_libc=false}
15141 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15142 test x$with_newlib = xyes ; } &&
15143 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15144 inhibit_libc=true
15148 # When building gcc with a cross-compiler, we need to adjust things so
15149 # that the generator programs are still built with the native compiler.
15150 # Also, we cannot run fixincludes.
15152 # These are the normal (build=host) settings:
15153 CC_FOR_BUILD='$(CC)'
15154 CXX_FOR_BUILD='$(CXX)'
15155 BUILD_CFLAGS='$(ALL_CFLAGS)'
15156 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15157 BUILD_LDFLAGS='$(LDFLAGS)'
15158 STMP_FIXINC=stmp-fixinc
15160 # And these apply if build != host, or we are generating coverage data
15161 if test x$build != x$host || test "x$coverage_flags" != x
15162 then
15163 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15164 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15165 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15169 if test x$enable_fixincludes = xno;
15170 then
15171 STMP_FIXINC=''
15174 # Expand extra_headers to include complete path.
15175 # This substitutes for lots of t-* files.
15176 extra_headers_list=
15177 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15178 for file in ${extra_headers} ; do
15179 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15180 done
15182 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15183 if test x"$use_gcc_tgmath" = xyes
15184 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15187 # Define collect2 in Makefile.
15188 case $host_can_use_collect2 in
15189 no) collect2= ;;
15190 *) collect2='collect2$(exeext)' ;;
15191 esac
15194 # Add a definition of USE_COLLECT2 if system wants one.
15195 case $use_collect2 in
15196 no) use_collect2= ;;
15197 "") ;;
15199 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15200 xm_defines="${xm_defines} USE_COLLECT2"
15201 case $host_can_use_collect2 in
15203 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15205 esac
15207 esac
15210 cat >>confdefs.h <<_ACEOF
15211 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15212 _ACEOF
15215 # ---------------------------
15216 # Assembler & linker features
15217 # ---------------------------
15219 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15220 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15221 # However when ld-new is first executed from the build tree, libtool will
15222 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15223 # to the build tree. While doing this we need to use the previous-stage
15224 # linker, or we have an infinite loop. The presence of a shell script as
15225 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15226 # the gcc/collect-ld script. So we need to know how libtool works, or
15227 # exec-tool will fail.
15230 case `pwd` in
15231 *\ * | *\ *)
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15233 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15234 esac
15238 macro_version='2.2.7a'
15239 macro_revision='1.3134'
15253 ltmain="$ac_aux_dir/ltmain.sh"
15255 # Backslashify metacharacters that are still active within
15256 # double-quoted strings.
15257 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15259 # Same as above, but do not quote variable references.
15260 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15262 # Sed substitution to delay expansion of an escaped shell variable in a
15263 # double_quote_subst'ed string.
15264 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15266 # Sed substitution to delay expansion of an escaped single quote.
15267 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15269 # Sed substitution to avoid accidental globbing in evaled expressions
15270 no_glob_subst='s/\*/\\\*/g'
15272 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15273 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15274 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15277 $as_echo_n "checking how to print strings... " >&6; }
15278 # Test print first, because it will be a builtin if present.
15279 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15280 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15281 ECHO='print -r --'
15282 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15283 ECHO='printf %s\n'
15284 else
15285 # Use this function as a fallback that always works.
15286 func_fallback_echo ()
15288 eval 'cat <<_LTECHO_EOF
15290 _LTECHO_EOF'
15292 ECHO='func_fallback_echo'
15295 # func_echo_all arg...
15296 # Invoke $ECHO with all args, space-separated.
15297 func_echo_all ()
15299 $ECHO ""
15302 case "$ECHO" in
15303 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15304 $as_echo "printf" >&6; } ;;
15305 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15306 $as_echo "print -r" >&6; } ;;
15307 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15308 $as_echo "cat" >&6; } ;;
15309 esac
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15325 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15326 if ${ac_cv_path_SED+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15330 for ac_i in 1 2 3 4 5 6 7; do
15331 ac_script="$ac_script$as_nl$ac_script"
15332 done
15333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15334 { ac_script=; unset ac_script;}
15335 if test -z "$SED"; then
15336 ac_path_SED_found=false
15337 # Loop through the user's path and test for each of PROGNAME-LIST
15338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15339 for as_dir in $PATH
15341 IFS=$as_save_IFS
15342 test -z "$as_dir" && as_dir=.
15343 for ac_prog in sed gsed; do
15344 for ac_exec_ext in '' $ac_executable_extensions; do
15345 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15346 as_fn_executable_p "$ac_path_SED" || continue
15347 # Check for GNU ac_path_SED and select it if it is found.
15348 # Check for GNU $ac_path_SED
15349 case `"$ac_path_SED" --version 2>&1` in
15350 *GNU*)
15351 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15353 ac_count=0
15354 $as_echo_n 0123456789 >"conftest.in"
15355 while :
15357 cat "conftest.in" "conftest.in" >"conftest.tmp"
15358 mv "conftest.tmp" "conftest.in"
15359 cp "conftest.in" "conftest.nl"
15360 $as_echo '' >> "conftest.nl"
15361 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15363 as_fn_arith $ac_count + 1 && ac_count=$as_val
15364 if test $ac_count -gt ${ac_path_SED_max-0}; then
15365 # Best one so far, save it but keep looking for a better one
15366 ac_cv_path_SED="$ac_path_SED"
15367 ac_path_SED_max=$ac_count
15369 # 10*(2^10) chars as input seems more than enough
15370 test $ac_count -gt 10 && break
15371 done
15372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15373 esac
15375 $ac_path_SED_found && break 3
15376 done
15377 done
15378 done
15379 IFS=$as_save_IFS
15380 if test -z "$ac_cv_path_SED"; then
15381 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15383 else
15384 ac_cv_path_SED=$SED
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15389 $as_echo "$ac_cv_path_SED" >&6; }
15390 SED="$ac_cv_path_SED"
15391 rm -f conftest.sed
15393 test -z "$SED" && SED=sed
15394 Xsed="$SED -e 1s/^X//"
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15407 $as_echo_n "checking for fgrep... " >&6; }
15408 if ${ac_cv_path_FGREP+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15412 then ac_cv_path_FGREP="$GREP -F"
15413 else
15414 if test -z "$FGREP"; then
15415 ac_path_FGREP_found=false
15416 # Loop through the user's path and test for each of PROGNAME-LIST
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 for ac_prog in fgrep; do
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15425 as_fn_executable_p "$ac_path_FGREP" || continue
15426 # Check for GNU ac_path_FGREP and select it if it is found.
15427 # Check for GNU $ac_path_FGREP
15428 case `"$ac_path_FGREP" --version 2>&1` in
15429 *GNU*)
15430 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15432 ac_count=0
15433 $as_echo_n 0123456789 >"conftest.in"
15434 while :
15436 cat "conftest.in" "conftest.in" >"conftest.tmp"
15437 mv "conftest.tmp" "conftest.in"
15438 cp "conftest.in" "conftest.nl"
15439 $as_echo 'FGREP' >> "conftest.nl"
15440 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15442 as_fn_arith $ac_count + 1 && ac_count=$as_val
15443 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15444 # Best one so far, save it but keep looking for a better one
15445 ac_cv_path_FGREP="$ac_path_FGREP"
15446 ac_path_FGREP_max=$ac_count
15448 # 10*(2^10) chars as input seems more than enough
15449 test $ac_count -gt 10 && break
15450 done
15451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15452 esac
15454 $ac_path_FGREP_found && break 3
15455 done
15456 done
15457 done
15458 IFS=$as_save_IFS
15459 if test -z "$ac_cv_path_FGREP"; then
15460 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15462 else
15463 ac_cv_path_FGREP=$FGREP
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15469 $as_echo "$ac_cv_path_FGREP" >&6; }
15470 FGREP="$ac_cv_path_FGREP"
15473 test -z "$GREP" && GREP=grep
15493 # Check whether --with-gnu-ld was given.
15494 if test "${with_gnu_ld+set}" = set; then :
15495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15496 else
15497 with_gnu_ld=no
15500 ac_prog=ld
15501 if test "$GCC" = yes; then
15502 # Check if gcc -print-prog-name=ld gives a path.
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15504 $as_echo_n "checking for ld used by $CC... " >&6; }
15505 case $host in
15506 *-*-mingw*)
15507 # gcc leaves a trailing carriage return which upsets mingw
15508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15511 esac
15512 case $ac_prog in
15513 # Accept absolute paths.
15514 [\\/]* | ?:[\\/]*)
15515 re_direlt='/[^/][^/]*/\.\./'
15516 # Canonicalize the pathname of ld
15517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15520 done
15521 test -z "$LD" && LD="$ac_prog"
15524 # If it fails, then pretend we aren't using GCC.
15525 ac_prog=ld
15528 # If it is relative, then search for the first ld in PATH.
15529 with_gnu_ld=unknown
15531 esac
15532 elif test "$with_gnu_ld" = yes; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15534 $as_echo_n "checking for GNU ld... " >&6; }
15535 else
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15537 $as_echo_n "checking for non-GNU ld... " >&6; }
15539 if ${lt_cv_path_LD+:} false; then :
15540 $as_echo_n "(cached) " >&6
15541 else
15542 if test -z "$LD"; then
15543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15544 for ac_dir in $PATH; do
15545 IFS="$lt_save_ifs"
15546 test -z "$ac_dir" && ac_dir=.
15547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15548 lt_cv_path_LD="$ac_dir/$ac_prog"
15549 # Check to see if the program is GNU ld. I'd rather use --version,
15550 # but apparently some variants of GNU ld only accept -v.
15551 # Break only if it was the GNU/non-GNU ld that we prefer.
15552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15553 *GNU* | *'with BFD'*)
15554 test "$with_gnu_ld" != no && break
15557 test "$with_gnu_ld" != yes && break
15559 esac
15561 done
15562 IFS="$lt_save_ifs"
15563 else
15564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15568 LD="$lt_cv_path_LD"
15569 if test -n "$LD"; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15571 $as_echo "$LD" >&6; }
15572 else
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15576 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15578 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15579 if ${lt_cv_prog_gnu_ld+:} false; then :
15580 $as_echo_n "(cached) " >&6
15581 else
15582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15583 case `$LD -v 2>&1 </dev/null` in
15584 *GNU* | *'with BFD'*)
15585 lt_cv_prog_gnu_ld=yes
15588 lt_cv_prog_gnu_ld=no
15590 esac
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15593 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15594 with_gnu_ld=$lt_cv_prog_gnu_ld
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15605 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15606 if ${lt_cv_path_NM+:} false; then :
15607 $as_echo_n "(cached) " >&6
15608 else
15609 if test -n "$NM"; then
15610 # Let the user override the nm to test.
15611 lt_nm_to_check="$NM"
15612 else
15613 lt_nm_to_check="${ac_tool_prefix}nm"
15614 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15615 lt_nm_to_check="$lt_nm_to_check nm"
15618 for lt_tmp_nm in "$lt_nm_to_check"; do
15619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15620 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15621 IFS="$lt_save_ifs"
15622 test -z "$ac_dir" && ac_dir=.
15623 # Strip out any user-provided options from the nm to test twice,
15624 # the first time to test to see if nm (rather than its options) has
15625 # an explicit path, the second time to yield a file which can be
15626 # nm'ed itself.
15627 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15628 case "$tmp_nm_path" in
15629 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15630 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15631 esac
15632 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15633 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15634 # Check to see if the nm accepts a BSD-compat flag.
15635 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15636 # nm: unknown option "B" ignored
15637 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15638 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15639 break
15642 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15643 *$tmp_nm*)
15644 lt_cv_path_NM="$tmp_nm -p"
15645 break
15648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15649 continue # so that we can try to find one that supports BSD flags
15651 esac
15653 esac
15655 done
15656 IFS="$lt_save_ifs"
15657 done
15658 : ${lt_cv_path_NM=no}
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15661 $as_echo "$lt_cv_path_NM" >&6; }
15662 if test "$lt_cv_path_NM" != "no"; then
15663 NM="$lt_cv_path_NM"
15664 else
15665 # Didn't find any BSD compatible name lister, look for dumpbin.
15666 if test -n "$DUMPBIN"; then :
15667 # Let the user override the test.
15668 else
15669 if test -n "$ac_tool_prefix"; then
15670 for ac_prog in dumpbin "link -dump"
15672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15675 $as_echo_n "checking for $ac_word... " >&6; }
15676 if ${ac_cv_prog_DUMPBIN+:} false; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 if test -n "$DUMPBIN"; then
15680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15681 else
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15685 IFS=$as_save_IFS
15686 test -z "$as_dir" && as_dir=.
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15691 break 2
15693 done
15694 done
15695 IFS=$as_save_IFS
15699 DUMPBIN=$ac_cv_prog_DUMPBIN
15700 if test -n "$DUMPBIN"; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15702 $as_echo "$DUMPBIN" >&6; }
15703 else
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705 $as_echo "no" >&6; }
15709 test -n "$DUMPBIN" && break
15710 done
15712 if test -z "$DUMPBIN"; then
15713 ac_ct_DUMPBIN=$DUMPBIN
15714 for ac_prog in dumpbin "link -dump"
15716 # Extract the first word of "$ac_prog", so it can be a program name with args.
15717 set dummy $ac_prog; ac_word=$2
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15719 $as_echo_n "checking for $ac_word... " >&6; }
15720 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 if test -n "$ac_ct_DUMPBIN"; then
15724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15725 else
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $PATH
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15737 done
15738 done
15739 IFS=$as_save_IFS
15743 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15744 if test -n "$ac_ct_DUMPBIN"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15746 $as_echo "$ac_ct_DUMPBIN" >&6; }
15747 else
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749 $as_echo "no" >&6; }
15753 test -n "$ac_ct_DUMPBIN" && break
15754 done
15756 if test "x$ac_ct_DUMPBIN" = x; then
15757 DUMPBIN=":"
15758 else
15759 case $cross_compiling:$ac_tool_warned in
15760 yes:)
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15763 ac_tool_warned=yes ;;
15764 esac
15765 DUMPBIN=$ac_ct_DUMPBIN
15769 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15770 *COFF*)
15771 DUMPBIN="$DUMPBIN -symbols"
15774 DUMPBIN=:
15776 esac
15779 if test "$DUMPBIN" != ":"; then
15780 NM="$DUMPBIN"
15783 test -z "$NM" && NM=nm
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15791 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15792 if ${lt_cv_nm_interface+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 lt_cv_nm_interface="BSD nm"
15796 echo "int some_variable = 0;" > conftest.$ac_ext
15797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15798 (eval "$ac_compile" 2>conftest.err)
15799 cat conftest.err >&5
15800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15802 cat conftest.err >&5
15803 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15804 cat conftest.out >&5
15805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15806 lt_cv_nm_interface="MS dumpbin"
15808 rm -f conftest*
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15811 $as_echo "$lt_cv_nm_interface" >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15814 $as_echo_n "checking whether ln -s works... " >&6; }
15815 LN_S=$as_ln_s
15816 if test "$LN_S" = "ln -s"; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819 else
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15821 $as_echo "no, using $LN_S" >&6; }
15824 # find the maximum length of command line arguments
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15826 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15827 if ${lt_cv_sys_max_cmd_len+:} false; then :
15828 $as_echo_n "(cached) " >&6
15829 else
15831 teststring="ABCD"
15833 case $build_os in
15834 msdosdjgpp*)
15835 # On DJGPP, this test can blow up pretty badly due to problems in libc
15836 # (any single argument exceeding 2000 bytes causes a buffer overrun
15837 # during glob expansion). Even if it were fixed, the result of this
15838 # check would be larger than it should be.
15839 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15842 gnu*)
15843 # Under GNU Hurd, this test is not required because there is
15844 # no limit to the length of command line arguments.
15845 # Libtool will interpret -1 as no limit whatsoever
15846 lt_cv_sys_max_cmd_len=-1;
15849 cygwin* | mingw* | cegcc*)
15850 # On Win9x/ME, this test blows up -- it succeeds, but takes
15851 # about 5 minutes as the teststring grows exponentially.
15852 # Worse, since 9x/ME are not pre-emptively multitasking,
15853 # you end up with a "frozen" computer, even though with patience
15854 # the test eventually succeeds (with a max line length of 256k).
15855 # Instead, let's just punt: use the minimum linelength reported by
15856 # all of the supported platforms: 8192 (on NT/2K/XP).
15857 lt_cv_sys_max_cmd_len=8192;
15860 mint*)
15861 # On MiNT this can take a long time and run out of memory.
15862 lt_cv_sys_max_cmd_len=8192;
15865 amigaos*)
15866 # On AmigaOS with pdksh, this test takes hours, literally.
15867 # So we just punt and use a minimum line length of 8192.
15868 lt_cv_sys_max_cmd_len=8192;
15871 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15872 # This has been around since 386BSD, at least. Likely further.
15873 if test -x /sbin/sysctl; then
15874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15875 elif test -x /usr/sbin/sysctl; then
15876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15877 else
15878 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15880 # And add a safety zone
15881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15885 interix*)
15886 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15887 lt_cv_sys_max_cmd_len=196608
15890 osf*)
15891 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15892 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15893 # nice to cause kernel panics so lets avoid the loop below.
15894 # First set a reasonable default.
15895 lt_cv_sys_max_cmd_len=16384
15897 if test -x /sbin/sysconfig; then
15898 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15899 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15900 esac
15903 sco3.2v5*)
15904 lt_cv_sys_max_cmd_len=102400
15906 sysv5* | sco5v6* | sysv4.2uw2*)
15907 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15908 if test -n "$kargmax"; then
15909 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15910 else
15911 lt_cv_sys_max_cmd_len=32768
15915 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15916 if test -n "$lt_cv_sys_max_cmd_len"; then
15917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15919 else
15920 # Make teststring a little bigger before we do anything with it.
15921 # a 1K string should be a reasonable start.
15922 for i in 1 2 3 4 5 6 7 8 ; do
15923 teststring=$teststring$teststring
15924 done
15925 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15926 # If test is not a shell built-in, we'll probably end up computing a
15927 # maximum length that is only half of the actual maximum length, but
15928 # we can't tell.
15929 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15930 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15931 test $i != 17 # 1/2 MB should be enough
15933 i=`expr $i + 1`
15934 teststring=$teststring$teststring
15935 done
15936 # Only check the string length outside the loop.
15937 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15938 teststring=
15939 # Add a significant safety factor because C++ compilers can tack on
15940 # massive amounts of additional arguments before passing them to the
15941 # linker. It appears as though 1/2 is a usable value.
15942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15945 esac
15949 if test -n $lt_cv_sys_max_cmd_len ; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15951 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15952 else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15954 $as_echo "none" >&6; }
15956 max_cmd_len=$lt_cv_sys_max_cmd_len
15963 : ${CP="cp -f"}
15964 : ${MV="mv -f"}
15965 : ${RM="rm -f"}
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
15968 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
15969 # Try some XSI features
15970 xsi_shell=no
15971 ( _lt_dummy="a/b/c"
15972 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15973 = c,a/b,, \
15974 && eval 'test $(( 1 + 1 )) -eq 2 \
15975 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15976 && xsi_shell=yes
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
15978 $as_echo "$xsi_shell" >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
15982 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
15983 lt_shell_append=no
15984 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15985 >/dev/null 2>&1 \
15986 && lt_shell_append=yes
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
15988 $as_echo "$lt_shell_append" >&6; }
15991 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15992 lt_unset=unset
15993 else
15994 lt_unset=false
16001 # test EBCDIC or ASCII
16002 case `echo X|tr X '\101'` in
16003 A) # ASCII based system
16004 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16005 lt_SP2NL='tr \040 \012'
16006 lt_NL2SP='tr \015\012 \040\040'
16008 *) # EBCDIC based system
16009 lt_SP2NL='tr \100 \n'
16010 lt_NL2SP='tr \r\n \100\100'
16012 esac
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16023 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16024 if ${lt_cv_ld_reload_flag+:} false; then :
16025 $as_echo_n "(cached) " >&6
16026 else
16027 lt_cv_ld_reload_flag='-r'
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16030 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16031 reload_flag=$lt_cv_ld_reload_flag
16032 case $reload_flag in
16033 "" | " "*) ;;
16034 *) reload_flag=" $reload_flag" ;;
16035 esac
16036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16037 case $host_os in
16038 darwin*)
16039 if test "$GCC" = yes; then
16040 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16041 else
16042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16045 esac
16055 if test -n "$ac_tool_prefix"; then
16056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16057 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16059 $as_echo_n "checking for $ac_word... " >&6; }
16060 if ${ac_cv_prog_OBJDUMP+:} false; then :
16061 $as_echo_n "(cached) " >&6
16062 else
16063 if test -n "$OBJDUMP"; then
16064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16065 else
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16069 IFS=$as_save_IFS
16070 test -z "$as_dir" && as_dir=.
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16075 break 2
16077 done
16078 done
16079 IFS=$as_save_IFS
16083 OBJDUMP=$ac_cv_prog_OBJDUMP
16084 if test -n "$OBJDUMP"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16086 $as_echo "$OBJDUMP" >&6; }
16087 else
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16089 $as_echo "no" >&6; }
16094 if test -z "$ac_cv_prog_OBJDUMP"; then
16095 ac_ct_OBJDUMP=$OBJDUMP
16096 # Extract the first word of "objdump", so it can be a program name with args.
16097 set dummy objdump; ac_word=$2
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099 $as_echo_n "checking for $ac_word... " >&6; }
16100 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16101 $as_echo_n "(cached) " >&6
16102 else
16103 if test -n "$ac_ct_OBJDUMP"; then
16104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16105 else
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16109 IFS=$as_save_IFS
16110 test -z "$as_dir" && as_dir=.
16111 for ac_exec_ext in '' $ac_executable_extensions; do
16112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16113 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16115 break 2
16117 done
16118 done
16119 IFS=$as_save_IFS
16123 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16124 if test -n "$ac_ct_OBJDUMP"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16126 $as_echo "$ac_ct_OBJDUMP" >&6; }
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129 $as_echo "no" >&6; }
16132 if test "x$ac_ct_OBJDUMP" = x; then
16133 OBJDUMP="false"
16134 else
16135 case $cross_compiling:$ac_tool_warned in
16136 yes:)
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16139 ac_tool_warned=yes ;;
16140 esac
16141 OBJDUMP=$ac_ct_OBJDUMP
16143 else
16144 OBJDUMP="$ac_cv_prog_OBJDUMP"
16147 test -z "$OBJDUMP" && OBJDUMP=objdump
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16158 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16159 if ${lt_cv_deplibs_check_method+:} false; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 lt_cv_file_magic_cmd='$MAGIC_CMD'
16163 lt_cv_file_magic_test_file=
16164 lt_cv_deplibs_check_method='unknown'
16165 # Need to set the preceding variable on all platforms that support
16166 # interlibrary dependencies.
16167 # 'none' -- dependencies not supported.
16168 # `unknown' -- same as none, but documents that we really don't know.
16169 # 'pass_all' -- all dependencies passed with no checks.
16170 # 'test_compile' -- check by making test program.
16171 # 'file_magic [[regex]]' -- check by looking for files in library path
16172 # which responds to the $file_magic_cmd with a given extended regex.
16173 # If you have `file' or equivalent on your system and you're not sure
16174 # whether `pass_all' will *always* work, you probably want this one.
16176 case $host_os in
16177 aix[4-9]*)
16178 lt_cv_deplibs_check_method=pass_all
16181 beos*)
16182 lt_cv_deplibs_check_method=pass_all
16185 bsdi[45]*)
16186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16187 lt_cv_file_magic_cmd='/usr/bin/file -L'
16188 lt_cv_file_magic_test_file=/shlib/libc.so
16191 cygwin*)
16192 # func_win32_libid is a shell function defined in ltmain.sh
16193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16194 lt_cv_file_magic_cmd='func_win32_libid'
16197 mingw* | pw32*)
16198 # Base MSYS/MinGW do not provide the 'file' command needed by
16199 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16200 # unless we find 'file', for example because we are cross-compiling.
16201 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16202 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16204 lt_cv_file_magic_cmd='func_win32_libid'
16205 else
16206 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16207 lt_cv_file_magic_cmd='$OBJDUMP -f'
16211 cegcc*)
16212 # use the weaker test based on 'objdump'. See mingw*.
16213 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16214 lt_cv_file_magic_cmd='$OBJDUMP -f'
16217 darwin* | rhapsody*)
16218 lt_cv_deplibs_check_method=pass_all
16221 freebsd* | dragonfly*)
16222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16223 case $host_cpu in
16224 i*86 )
16225 # Not sure whether the presence of OpenBSD here was a mistake.
16226 # Let's accept both of them until this is cleared up.
16227 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16228 lt_cv_file_magic_cmd=/usr/bin/file
16229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16231 esac
16232 else
16233 lt_cv_deplibs_check_method=pass_all
16237 gnu*)
16238 lt_cv_deplibs_check_method=pass_all
16241 haiku*)
16242 lt_cv_deplibs_check_method=pass_all
16245 hpux10.20* | hpux11*)
16246 lt_cv_file_magic_cmd=/usr/bin/file
16247 case $host_cpu in
16248 ia64*)
16249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16250 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16252 hppa*64*)
16253 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]'
16254 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16258 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16260 esac
16263 interix[3-9]*)
16264 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16268 irix5* | irix6* | nonstopux*)
16269 case $LD in
16270 *-32|*"-32 ") libmagic=32-bit;;
16271 *-n32|*"-n32 ") libmagic=N32;;
16272 *-64|*"-64 ") libmagic=64-bit;;
16273 *) libmagic=never-match;;
16274 esac
16275 lt_cv_deplibs_check_method=pass_all
16278 # This must be Linux ELF.
16279 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16280 lt_cv_deplibs_check_method=pass_all
16283 netbsd*)
16284 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16286 else
16287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16291 newos6*)
16292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16293 lt_cv_file_magic_cmd=/usr/bin/file
16294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16297 *nto* | *qnx*)
16298 lt_cv_deplibs_check_method=pass_all
16301 openbsd*)
16302 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16304 else
16305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16309 osf3* | osf4* | osf5*)
16310 lt_cv_deplibs_check_method=pass_all
16313 rdos*)
16314 lt_cv_deplibs_check_method=pass_all
16317 solaris*)
16318 lt_cv_deplibs_check_method=pass_all
16321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16322 lt_cv_deplibs_check_method=pass_all
16325 sysv4 | sysv4.3*)
16326 case $host_vendor in
16327 motorola)
16328 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]'
16329 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16331 ncr)
16332 lt_cv_deplibs_check_method=pass_all
16334 sequent)
16335 lt_cv_file_magic_cmd='/bin/file'
16336 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16338 sni)
16339 lt_cv_file_magic_cmd='/bin/file'
16340 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16341 lt_cv_file_magic_test_file=/lib/libc.so
16343 siemens)
16344 lt_cv_deplibs_check_method=pass_all
16347 lt_cv_deplibs_check_method=pass_all
16349 esac
16352 tpf*)
16353 lt_cv_deplibs_check_method=pass_all
16355 vxworks*)
16356 # Assume VxWorks cross toolchains are built on Linux, possibly
16357 # as canadian for Windows hosts.
16358 lt_cv_deplibs_check_method=pass_all
16360 esac
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16364 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16365 file_magic_cmd=$lt_cv_file_magic_cmd
16366 deplibs_check_method=$lt_cv_deplibs_check_method
16367 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16380 plugin_option=
16381 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16382 for plugin in $plugin_names; do
16383 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16384 if test x$plugin_so = x$plugin; then
16385 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16387 if test x$plugin_so != x$plugin; then
16388 plugin_option="--plugin $plugin_so"
16389 break
16391 done
16393 if test -n "$ac_tool_prefix"; then
16394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16395 set dummy ${ac_tool_prefix}ar; ac_word=$2
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16397 $as_echo_n "checking for $ac_word... " >&6; }
16398 if ${ac_cv_prog_AR+:} false; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 if test -n "$AR"; then
16402 ac_cv_prog_AR="$AR" # Let the user override the test.
16403 else
16404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16405 for as_dir in $PATH
16407 IFS=$as_save_IFS
16408 test -z "$as_dir" && as_dir=.
16409 for ac_exec_ext in '' $ac_executable_extensions; do
16410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16411 ac_cv_prog_AR="${ac_tool_prefix}ar"
16412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16413 break 2
16415 done
16416 done
16417 IFS=$as_save_IFS
16421 AR=$ac_cv_prog_AR
16422 if test -n "$AR"; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16424 $as_echo "$AR" >&6; }
16425 else
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427 $as_echo "no" >&6; }
16432 if test -z "$ac_cv_prog_AR"; then
16433 ac_ct_AR=$AR
16434 # Extract the first word of "ar", so it can be a program name with args.
16435 set dummy ar; ac_word=$2
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16437 $as_echo_n "checking for $ac_word... " >&6; }
16438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 if test -n "$ac_ct_AR"; then
16442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16443 else
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16447 IFS=$as_save_IFS
16448 test -z "$as_dir" && as_dir=.
16449 for ac_exec_ext in '' $ac_executable_extensions; do
16450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16451 ac_cv_prog_ac_ct_AR="ar"
16452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16453 break 2
16455 done
16456 done
16457 IFS=$as_save_IFS
16461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16462 if test -n "$ac_ct_AR"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16464 $as_echo "$ac_ct_AR" >&6; }
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16470 if test "x$ac_ct_AR" = x; then
16471 AR="false"
16472 else
16473 case $cross_compiling:$ac_tool_warned in
16474 yes:)
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16477 ac_tool_warned=yes ;;
16478 esac
16479 AR=$ac_ct_AR
16481 else
16482 AR="$ac_cv_prog_AR"
16485 test -z "$AR" && AR=ar
16486 if test -n "$plugin_option"; then
16487 if $AR --help 2>&1 | grep -q "\--plugin"; then
16488 touch conftest.c
16489 $AR $plugin_option rc conftest.a conftest.c
16490 if test "$?" != 0; then
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16492 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16493 else
16494 AR="$AR $plugin_option"
16496 rm -f conftest.*
16499 test -z "$AR_FLAGS" && AR_FLAGS=cru
16511 if test -n "$ac_tool_prefix"; then
16512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16513 set dummy ${ac_tool_prefix}strip; ac_word=$2
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16515 $as_echo_n "checking for $ac_word... " >&6; }
16516 if ${ac_cv_prog_STRIP+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 if test -n "$STRIP"; then
16520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16521 else
16522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16523 for as_dir in $PATH
16525 IFS=$as_save_IFS
16526 test -z "$as_dir" && as_dir=.
16527 for ac_exec_ext in '' $ac_executable_extensions; do
16528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16531 break 2
16533 done
16534 done
16535 IFS=$as_save_IFS
16539 STRIP=$ac_cv_prog_STRIP
16540 if test -n "$STRIP"; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16542 $as_echo "$STRIP" >&6; }
16543 else
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16550 if test -z "$ac_cv_prog_STRIP"; then
16551 ac_ct_STRIP=$STRIP
16552 # Extract the first word of "strip", so it can be a program name with args.
16553 set dummy strip; ac_word=$2
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16555 $as_echo_n "checking for $ac_word... " >&6; }
16556 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558 else
16559 if test -n "$ac_ct_STRIP"; then
16560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16561 else
16562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in $PATH
16565 IFS=$as_save_IFS
16566 test -z "$as_dir" && as_dir=.
16567 for ac_exec_ext in '' $ac_executable_extensions; do
16568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16569 ac_cv_prog_ac_ct_STRIP="strip"
16570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16571 break 2
16573 done
16574 done
16575 IFS=$as_save_IFS
16579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16580 if test -n "$ac_ct_STRIP"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16582 $as_echo "$ac_ct_STRIP" >&6; }
16583 else
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585 $as_echo "no" >&6; }
16588 if test "x$ac_ct_STRIP" = x; then
16589 STRIP=":"
16590 else
16591 case $cross_compiling:$ac_tool_warned in
16592 yes:)
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16595 ac_tool_warned=yes ;;
16596 esac
16597 STRIP=$ac_ct_STRIP
16599 else
16600 STRIP="$ac_cv_prog_STRIP"
16603 test -z "$STRIP" && STRIP=:
16610 if test -n "$ac_tool_prefix"; then
16611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614 $as_echo_n "checking for $ac_word... " >&6; }
16615 if ${ac_cv_prog_RANLIB+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 if test -n "$RANLIB"; then
16619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16620 else
16621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16622 for as_dir in $PATH
16624 IFS=$as_save_IFS
16625 test -z "$as_dir" && as_dir=.
16626 for ac_exec_ext in '' $ac_executable_extensions; do
16627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16630 break 2
16632 done
16633 done
16634 IFS=$as_save_IFS
16638 RANLIB=$ac_cv_prog_RANLIB
16639 if test -n "$RANLIB"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16641 $as_echo "$RANLIB" >&6; }
16642 else
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16644 $as_echo "no" >&6; }
16649 if test -z "$ac_cv_prog_RANLIB"; then
16650 ac_ct_RANLIB=$RANLIB
16651 # Extract the first word of "ranlib", so it can be a program name with args.
16652 set dummy ranlib; ac_word=$2
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16654 $as_echo_n "checking for $ac_word... " >&6; }
16655 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658 if test -n "$ac_ct_RANLIB"; then
16659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16660 else
16661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16662 for as_dir in $PATH
16664 IFS=$as_save_IFS
16665 test -z "$as_dir" && as_dir=.
16666 for ac_exec_ext in '' $ac_executable_extensions; do
16667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16668 ac_cv_prog_ac_ct_RANLIB="ranlib"
16669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16670 break 2
16672 done
16673 done
16674 IFS=$as_save_IFS
16678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16679 if test -n "$ac_ct_RANLIB"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16681 $as_echo "$ac_ct_RANLIB" >&6; }
16682 else
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16684 $as_echo "no" >&6; }
16687 if test "x$ac_ct_RANLIB" = x; then
16688 RANLIB=":"
16689 else
16690 case $cross_compiling:$ac_tool_warned in
16691 yes:)
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16694 ac_tool_warned=yes ;;
16695 esac
16696 RANLIB=$ac_ct_RANLIB
16698 else
16699 RANLIB="$ac_cv_prog_RANLIB"
16702 test -z "$RANLIB" && RANLIB=:
16703 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16704 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16705 RANLIB="$RANLIB $plugin_option"
16714 # Determine commands to create old-style static archives.
16715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16716 old_postinstall_cmds='chmod 644 $oldlib'
16717 old_postuninstall_cmds=
16719 if test -n "$RANLIB"; then
16720 case $host_os in
16721 openbsd*)
16722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16725 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16727 esac
16728 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16731 case $host_os in
16732 darwin*)
16733 lock_old_archive_extraction=yes ;;
16735 lock_old_archive_extraction=no ;;
16736 esac
16776 # If no C compiler was specified, use CC.
16777 LTCC=${LTCC-"$CC"}
16779 # If no C compiler flags were specified, use CFLAGS.
16780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16782 # Allow CC to be a program name with arguments.
16783 compiler=$CC
16786 # Check for command to grab the raw symbol name followed by C symbol from nm.
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16788 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16789 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16790 $as_echo_n "(cached) " >&6
16791 else
16793 # These are sane defaults that work on at least a few old systems.
16794 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16796 # Character class describing NM global symbol codes.
16797 symcode='[BCDEGRST]'
16799 # Regexp to match symbols that can be accessed directly from C.
16800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16802 # Define system-specific variables.
16803 case $host_os in
16804 aix*)
16805 symcode='[BCDT]'
16807 cygwin* | mingw* | pw32* | cegcc*)
16808 symcode='[ABCDGISTW]'
16810 hpux*)
16811 if test "$host_cpu" = ia64; then
16812 symcode='[ABCDEGRST]'
16815 irix* | nonstopux*)
16816 symcode='[BCDEGRST]'
16818 osf*)
16819 symcode='[BCDEGQRST]'
16821 solaris*)
16822 symcode='[BCDRT]'
16824 sco3.2v5*)
16825 symcode='[DT]'
16827 sysv4.2uw2*)
16828 symcode='[DT]'
16830 sysv5* | sco5v6* | unixware* | OpenUNIX*)
16831 symcode='[ABDT]'
16833 sysv4)
16834 symcode='[DFNSTU]'
16836 esac
16838 # If we're using GNU nm, then use its standard symbol codes.
16839 case `$NM -V 2>&1` in
16840 *GNU* | *'with BFD'*)
16841 symcode='[ABCDGIRSTW]' ;;
16842 esac
16844 # Transform an extracted symbol line into a proper C declaration.
16845 # Some systems (esp. on ia64) link data and code symbols differently,
16846 # so use this general approach.
16847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16849 # Transform an extracted symbol line into symbol name and symbol address
16850 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
16851 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'"
16853 # Handle CRLF in mingw tool chain
16854 opt_cr=
16855 case $build_os in
16856 mingw*)
16857 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16859 esac
16861 # Try without a prefix underscore, then with it.
16862 for ac_symprfx in "" "_"; do
16864 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16865 symxfrm="\\1 $ac_symprfx\\2 \\2"
16867 # Write the raw and C identifiers.
16868 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16869 # Fake it for dumpbin and say T for any non-static function
16870 # and D for any global variable.
16871 # Also find C++ and __fastcall symbols from MSVC++,
16872 # which start with @ or ?.
16873 lt_cv_sys_global_symbol_pipe="$AWK '"\
16874 " {last_section=section; section=\$ 3};"\
16875 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16876 " \$ 0!~/External *\|/{next};"\
16877 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16878 " {if(hide[section]) next};"\
16879 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
16880 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
16881 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
16882 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
16883 " ' prfx=^$ac_symprfx"
16884 else
16885 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16888 # Check to see that the pipe works correctly.
16889 pipe_works=no
16891 rm -f conftest*
16892 cat > conftest.$ac_ext <<_LT_EOF
16893 #ifdef __cplusplus
16894 extern "C" {
16895 #endif
16896 char nm_test_var;
16897 void nm_test_func(void);
16898 void nm_test_func(void){}
16899 #ifdef __cplusplus
16901 #endif
16902 int main(){nm_test_var='a';nm_test_func();return(0);}
16903 _LT_EOF
16905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16906 (eval $ac_compile) 2>&5
16907 ac_status=$?
16908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16909 test $ac_status = 0; }; then
16910 # Now try to grab the symbols.
16911 nlist=conftest.nm
16912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
16913 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
16914 ac_status=$?
16915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16916 test $ac_status = 0; } && test -s "$nlist"; then
16917 # Try sorting and uniquifying the output.
16918 if sort "$nlist" | uniq > "$nlist"T; then
16919 mv -f "$nlist"T "$nlist"
16920 else
16921 rm -f "$nlist"T
16924 # Make sure that we snagged all the symbols we need.
16925 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16926 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16927 cat <<_LT_EOF > conftest.$ac_ext
16928 #ifdef __cplusplus
16929 extern "C" {
16930 #endif
16932 _LT_EOF
16933 # Now generate the symbol file.
16934 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16936 cat <<_LT_EOF >> conftest.$ac_ext
16938 /* The mapping between symbol names and symbols. */
16939 const struct {
16940 const char *name;
16941 void *address;
16943 lt__PROGRAM__LTX_preloaded_symbols[] =
16945 { "@PROGRAM@", (void *) 0 },
16946 _LT_EOF
16947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16948 cat <<\_LT_EOF >> conftest.$ac_ext
16949 {0, (void *) 0}
16952 /* This works around a problem in FreeBSD linker */
16953 #ifdef FREEBSD_WORKAROUND
16954 static const void *lt_preloaded_setup() {
16955 return lt__PROGRAM__LTX_preloaded_symbols;
16957 #endif
16959 #ifdef __cplusplus
16961 #endif
16962 _LT_EOF
16963 # Now try linking the two files.
16964 mv conftest.$ac_objext conftstm.$ac_objext
16965 lt_save_LIBS="$LIBS"
16966 lt_save_CFLAGS="$CFLAGS"
16967 LIBS="conftstm.$ac_objext"
16968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16970 (eval $ac_link) 2>&5
16971 ac_status=$?
16972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
16974 pipe_works=yes
16976 LIBS="$lt_save_LIBS"
16977 CFLAGS="$lt_save_CFLAGS"
16978 else
16979 echo "cannot find nm_test_func in $nlist" >&5
16981 else
16982 echo "cannot find nm_test_var in $nlist" >&5
16984 else
16985 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16987 else
16988 echo "$progname: failed program was:" >&5
16989 cat conftest.$ac_ext >&5
16991 rm -rf conftest* conftst*
16993 # Do not use the global_symbol_pipe unless it works.
16994 if test "$pipe_works" = yes; then
16995 break
16996 else
16997 lt_cv_sys_global_symbol_pipe=
16999 done
17003 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17004 lt_cv_sys_global_symbol_to_cdecl=
17006 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17008 $as_echo "failed" >&6; }
17009 else
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17011 $as_echo "ok" >&6; }
17035 # Check whether --enable-libtool-lock was given.
17036 if test "${enable_libtool_lock+set}" = set; then :
17037 enableval=$enable_libtool_lock;
17040 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17042 # Some flags need to be propagated to the compiler or linker for good
17043 # libtool support.
17044 case $host in
17045 ia64-*-hpux*)
17046 # Find out which ABI we are using.
17047 echo 'int i;' > conftest.$ac_ext
17048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17049 (eval $ac_compile) 2>&5
17050 ac_status=$?
17051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052 test $ac_status = 0; }; then
17053 case `/usr/bin/file conftest.$ac_objext` in
17054 *ELF-32*)
17055 HPUX_IA64_MODE="32"
17057 *ELF-64*)
17058 HPUX_IA64_MODE="64"
17060 esac
17062 rm -rf conftest*
17064 *-*-irix6*)
17065 # Find out which ABI we are using.
17066 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17068 (eval $ac_compile) 2>&5
17069 ac_status=$?
17070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17071 test $ac_status = 0; }; then
17072 if test "$lt_cv_prog_gnu_ld" = yes; then
17073 case `/usr/bin/file conftest.$ac_objext` in
17074 *32-bit*)
17075 LD="${LD-ld} -melf32bsmip"
17077 *N32*)
17078 LD="${LD-ld} -melf32bmipn32"
17080 *64-bit*)
17081 LD="${LD-ld} -melf64bmip"
17083 esac
17084 else
17085 case `/usr/bin/file conftest.$ac_objext` in
17086 *32-bit*)
17087 LD="${LD-ld} -32"
17089 *N32*)
17090 LD="${LD-ld} -n32"
17092 *64-bit*)
17093 LD="${LD-ld} -64"
17095 esac
17098 rm -rf conftest*
17101 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17102 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17103 # Find out which ABI we are using.
17104 echo 'int i;' > conftest.$ac_ext
17105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17106 (eval $ac_compile) 2>&5
17107 ac_status=$?
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; then
17110 case `/usr/bin/file conftest.o` in
17111 *32-bit*)
17112 case $host in
17113 x86_64-*kfreebsd*-gnu)
17114 LD="${LD-ld} -m elf_i386_fbsd"
17116 x86_64-*linux*)
17117 case `/usr/bin/file conftest.o` in
17118 *x86-64*)
17119 LD="${LD-ld} -m elf32_x86_64"
17122 LD="${LD-ld} -m elf_i386"
17124 esac
17126 powerpc64le-*linux*)
17127 LD="${LD-ld} -m elf32lppclinux"
17129 powerpc64-*linux*)
17130 LD="${LD-ld} -m elf32ppclinux"
17132 s390x-*linux*)
17133 LD="${LD-ld} -m elf_s390"
17135 sparc64-*linux*)
17136 LD="${LD-ld} -m elf32_sparc"
17138 esac
17140 *64-bit*)
17141 case $host in
17142 x86_64-*kfreebsd*-gnu)
17143 LD="${LD-ld} -m elf_x86_64_fbsd"
17145 x86_64-*linux*)
17146 LD="${LD-ld} -m elf_x86_64"
17148 powerpcle-*linux*)
17149 LD="${LD-ld} -m elf64lppc"
17151 powerpc-*linux*)
17152 LD="${LD-ld} -m elf64ppc"
17154 s390*-*linux*|s390*-*tpf*)
17155 LD="${LD-ld} -m elf64_s390"
17157 sparc*-*linux*)
17158 LD="${LD-ld} -m elf64_sparc"
17160 esac
17162 esac
17164 rm -rf conftest*
17167 *-*-sco3.2v5*)
17168 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17169 SAVE_CFLAGS="$CFLAGS"
17170 CFLAGS="$CFLAGS -belf"
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17172 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17173 if ${lt_cv_cc_needs_belf+:} false; then :
17174 $as_echo_n "(cached) " >&6
17175 else
17176 ac_ext=c
17177 ac_cpp='$CPP $CPPFLAGS'
17178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17186 main ()
17190 return 0;
17192 _ACEOF
17193 if ac_fn_c_try_link "$LINENO"; then :
17194 lt_cv_cc_needs_belf=yes
17195 else
17196 lt_cv_cc_needs_belf=no
17198 rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17200 ac_ext=c
17201 ac_cpp='$CPP $CPPFLAGS'
17202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17208 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17211 CFLAGS="$SAVE_CFLAGS"
17214 sparc*-*solaris*)
17215 # Find out which ABI we are using.
17216 echo 'int i;' > conftest.$ac_ext
17217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17218 (eval $ac_compile) 2>&5
17219 ac_status=$?
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; }; then
17222 case `/usr/bin/file conftest.o` in
17223 *64-bit*)
17224 case $lt_cv_prog_gnu_ld in
17225 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17228 LD="${LD-ld} -64"
17231 esac
17233 esac
17235 rm -rf conftest*
17237 esac
17239 need_locks="$enable_libtool_lock"
17242 case $host_os in
17243 rhapsody* | darwin*)
17244 if test -n "$ac_tool_prefix"; then
17245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17246 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 if test -n "$DSYMUTIL"; then
17253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17254 else
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $PATH
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17266 done
17267 done
17268 IFS=$as_save_IFS
17272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17273 if test -n "$DSYMUTIL"; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17275 $as_echo "$DSYMUTIL" >&6; }
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17283 if test -z "$ac_cv_prog_DSYMUTIL"; then
17284 ac_ct_DSYMUTIL=$DSYMUTIL
17285 # Extract the first word of "dsymutil", so it can be a program name with args.
17286 set dummy dsymutil; ac_word=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17290 $as_echo_n "(cached) " >&6
17291 else
17292 if test -n "$ac_ct_DSYMUTIL"; then
17293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17294 else
17295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17296 for as_dir in $PATH
17298 IFS=$as_save_IFS
17299 test -z "$as_dir" && as_dir=.
17300 for ac_exec_ext in '' $ac_executable_extensions; do
17301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17302 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17304 break 2
17306 done
17307 done
17308 IFS=$as_save_IFS
17312 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17313 if test -n "$ac_ct_DSYMUTIL"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17315 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17316 else
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318 $as_echo "no" >&6; }
17321 if test "x$ac_ct_DSYMUTIL" = x; then
17322 DSYMUTIL=":"
17323 else
17324 case $cross_compiling:$ac_tool_warned in
17325 yes:)
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17328 ac_tool_warned=yes ;;
17329 esac
17330 DSYMUTIL=$ac_ct_DSYMUTIL
17332 else
17333 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17336 if test -n "$ac_tool_prefix"; then
17337 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17338 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17340 $as_echo_n "checking for $ac_word... " >&6; }
17341 if ${ac_cv_prog_NMEDIT+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344 if test -n "$NMEDIT"; then
17345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17346 else
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17350 IFS=$as_save_IFS
17351 test -z "$as_dir" && as_dir=.
17352 for ac_exec_ext in '' $ac_executable_extensions; do
17353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17354 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17356 break 2
17358 done
17359 done
17360 IFS=$as_save_IFS
17364 NMEDIT=$ac_cv_prog_NMEDIT
17365 if test -n "$NMEDIT"; then
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17367 $as_echo "$NMEDIT" >&6; }
17368 else
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17370 $as_echo "no" >&6; }
17375 if test -z "$ac_cv_prog_NMEDIT"; then
17376 ac_ct_NMEDIT=$NMEDIT
17377 # Extract the first word of "nmedit", so it can be a program name with args.
17378 set dummy nmedit; ac_word=$2
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17380 $as_echo_n "checking for $ac_word... " >&6; }
17381 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17382 $as_echo_n "(cached) " >&6
17383 else
17384 if test -n "$ac_ct_NMEDIT"; then
17385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17386 else
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17390 IFS=$as_save_IFS
17391 test -z "$as_dir" && as_dir=.
17392 for ac_exec_ext in '' $ac_executable_extensions; do
17393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17396 break 2
17398 done
17399 done
17400 IFS=$as_save_IFS
17404 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17405 if test -n "$ac_ct_NMEDIT"; then
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17407 $as_echo "$ac_ct_NMEDIT" >&6; }
17408 else
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17410 $as_echo "no" >&6; }
17413 if test "x$ac_ct_NMEDIT" = x; then
17414 NMEDIT=":"
17415 else
17416 case $cross_compiling:$ac_tool_warned in
17417 yes:)
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17420 ac_tool_warned=yes ;;
17421 esac
17422 NMEDIT=$ac_ct_NMEDIT
17424 else
17425 NMEDIT="$ac_cv_prog_NMEDIT"
17428 if test -n "$ac_tool_prefix"; then
17429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17430 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17432 $as_echo_n "checking for $ac_word... " >&6; }
17433 if ${ac_cv_prog_LIPO+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 if test -n "$LIPO"; then
17437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17438 else
17439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17440 for as_dir in $PATH
17442 IFS=$as_save_IFS
17443 test -z "$as_dir" && as_dir=.
17444 for ac_exec_ext in '' $ac_executable_extensions; do
17445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17448 break 2
17450 done
17451 done
17452 IFS=$as_save_IFS
17456 LIPO=$ac_cv_prog_LIPO
17457 if test -n "$LIPO"; then
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17459 $as_echo "$LIPO" >&6; }
17460 else
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17462 $as_echo "no" >&6; }
17467 if test -z "$ac_cv_prog_LIPO"; then
17468 ac_ct_LIPO=$LIPO
17469 # Extract the first word of "lipo", so it can be a program name with args.
17470 set dummy lipo; ac_word=$2
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17472 $as_echo_n "checking for $ac_word... " >&6; }
17473 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 if test -n "$ac_ct_LIPO"; then
17477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17478 else
17479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17480 for as_dir in $PATH
17482 IFS=$as_save_IFS
17483 test -z "$as_dir" && as_dir=.
17484 for ac_exec_ext in '' $ac_executable_extensions; do
17485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17486 ac_cv_prog_ac_ct_LIPO="lipo"
17487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17488 break 2
17490 done
17491 done
17492 IFS=$as_save_IFS
17496 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17497 if test -n "$ac_ct_LIPO"; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17499 $as_echo "$ac_ct_LIPO" >&6; }
17500 else
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17502 $as_echo "no" >&6; }
17505 if test "x$ac_ct_LIPO" = x; then
17506 LIPO=":"
17507 else
17508 case $cross_compiling:$ac_tool_warned in
17509 yes:)
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17512 ac_tool_warned=yes ;;
17513 esac
17514 LIPO=$ac_ct_LIPO
17516 else
17517 LIPO="$ac_cv_prog_LIPO"
17520 if test -n "$ac_tool_prefix"; then
17521 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17522 set dummy ${ac_tool_prefix}otool; ac_word=$2
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17524 $as_echo_n "checking for $ac_word... " >&6; }
17525 if ${ac_cv_prog_OTOOL+:} false; then :
17526 $as_echo_n "(cached) " >&6
17527 else
17528 if test -n "$OTOOL"; then
17529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17530 else
17531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17532 for as_dir in $PATH
17534 IFS=$as_save_IFS
17535 test -z "$as_dir" && as_dir=.
17536 for ac_exec_ext in '' $ac_executable_extensions; do
17537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17540 break 2
17542 done
17543 done
17544 IFS=$as_save_IFS
17548 OTOOL=$ac_cv_prog_OTOOL
17549 if test -n "$OTOOL"; then
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17551 $as_echo "$OTOOL" >&6; }
17552 else
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17559 if test -z "$ac_cv_prog_OTOOL"; then
17560 ac_ct_OTOOL=$OTOOL
17561 # Extract the first word of "otool", so it can be a program name with args.
17562 set dummy otool; ac_word=$2
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17564 $as_echo_n "checking for $ac_word... " >&6; }
17565 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17566 $as_echo_n "(cached) " >&6
17567 else
17568 if test -n "$ac_ct_OTOOL"; then
17569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17570 else
17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17572 for as_dir in $PATH
17574 IFS=$as_save_IFS
17575 test -z "$as_dir" && as_dir=.
17576 for ac_exec_ext in '' $ac_executable_extensions; do
17577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17578 ac_cv_prog_ac_ct_OTOOL="otool"
17579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17580 break 2
17582 done
17583 done
17584 IFS=$as_save_IFS
17588 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17589 if test -n "$ac_ct_OTOOL"; then
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17591 $as_echo "$ac_ct_OTOOL" >&6; }
17592 else
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17594 $as_echo "no" >&6; }
17597 if test "x$ac_ct_OTOOL" = x; then
17598 OTOOL=":"
17599 else
17600 case $cross_compiling:$ac_tool_warned in
17601 yes:)
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17604 ac_tool_warned=yes ;;
17605 esac
17606 OTOOL=$ac_ct_OTOOL
17608 else
17609 OTOOL="$ac_cv_prog_OTOOL"
17612 if test -n "$ac_tool_prefix"; then
17613 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17614 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616 $as_echo_n "checking for $ac_word... " >&6; }
17617 if ${ac_cv_prog_OTOOL64+:} false; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 if test -n "$OTOOL64"; then
17621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17622 else
17623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624 for as_dir in $PATH
17626 IFS=$as_save_IFS
17627 test -z "$as_dir" && as_dir=.
17628 for ac_exec_ext in '' $ac_executable_extensions; do
17629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17630 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632 break 2
17634 done
17635 done
17636 IFS=$as_save_IFS
17640 OTOOL64=$ac_cv_prog_OTOOL64
17641 if test -n "$OTOOL64"; then
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17643 $as_echo "$OTOOL64" >&6; }
17644 else
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17646 $as_echo "no" >&6; }
17651 if test -z "$ac_cv_prog_OTOOL64"; then
17652 ac_ct_OTOOL64=$OTOOL64
17653 # Extract the first word of "otool64", so it can be a program name with args.
17654 set dummy otool64; ac_word=$2
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17656 $as_echo_n "checking for $ac_word... " >&6; }
17657 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17658 $as_echo_n "(cached) " >&6
17659 else
17660 if test -n "$ac_ct_OTOOL64"; then
17661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17662 else
17663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17666 IFS=$as_save_IFS
17667 test -z "$as_dir" && as_dir=.
17668 for ac_exec_ext in '' $ac_executable_extensions; do
17669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670 ac_cv_prog_ac_ct_OTOOL64="otool64"
17671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17672 break 2
17674 done
17675 done
17676 IFS=$as_save_IFS
17680 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17681 if test -n "$ac_ct_OTOOL64"; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17683 $as_echo "$ac_ct_OTOOL64" >&6; }
17684 else
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686 $as_echo "no" >&6; }
17689 if test "x$ac_ct_OTOOL64" = x; then
17690 OTOOL64=":"
17691 else
17692 case $cross_compiling:$ac_tool_warned in
17693 yes:)
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17696 ac_tool_warned=yes ;;
17697 esac
17698 OTOOL64=$ac_ct_OTOOL64
17700 else
17701 OTOOL64="$ac_cv_prog_OTOOL64"
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17731 $as_echo_n "checking for -single_module linker flag... " >&6; }
17732 if ${lt_cv_apple_cc_single_mod+:} false; then :
17733 $as_echo_n "(cached) " >&6
17734 else
17735 lt_cv_apple_cc_single_mod=no
17736 if test -z "${LT_MULTI_MODULE}"; then
17737 # By default we will add the -single_module flag. You can override
17738 # by either setting the environment variable LT_MULTI_MODULE
17739 # non-empty at configure time, or by adding -multi_module to the
17740 # link flags.
17741 rm -rf libconftest.dylib*
17742 echo "int foo(void){return 1;}" > conftest.c
17743 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17744 -dynamiclib -Wl,-single_module conftest.c" >&5
17745 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17746 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17747 _lt_result=$?
17748 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17749 lt_cv_apple_cc_single_mod=yes
17750 else
17751 cat conftest.err >&5
17753 rm -rf libconftest.dylib*
17754 rm -f conftest.*
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17758 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17760 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17761 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 lt_cv_ld_exported_symbols_list=no
17765 save_LDFLAGS=$LDFLAGS
17766 echo "_main" > conftest.sym
17767 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17772 main ()
17776 return 0;
17778 _ACEOF
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 lt_cv_ld_exported_symbols_list=yes
17781 else
17782 lt_cv_ld_exported_symbols_list=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 LDFLAGS="$save_LDFLAGS"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17790 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17792 $as_echo_n "checking for -force_load linker flag... " >&6; }
17793 if ${lt_cv_ld_force_load+:} false; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17796 lt_cv_ld_force_load=no
17797 cat > conftest.c << _LT_EOF
17798 int forced_loaded() { return 2;}
17799 _LT_EOF
17800 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17801 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17802 echo "$AR cru libconftest.a conftest.o" >&5
17803 $AR cru libconftest.a conftest.o 2>&5
17804 cat > conftest.c << _LT_EOF
17805 int main() { return 0;}
17806 _LT_EOF
17807 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17808 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17809 _lt_result=$?
17810 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17811 lt_cv_ld_force_load=yes
17812 else
17813 cat conftest.err >&5
17815 rm -f conftest.err libconftest.a conftest conftest.c
17816 rm -rf conftest.dSYM
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17820 $as_echo "$lt_cv_ld_force_load" >&6; }
17821 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17822 # build without first building modern cctools / linker.
17823 case $host_cpu-$host_os in
17824 *-rhapsody* | *-darwin1.[012])
17825 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17826 *-darwin1.*)
17827 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17828 *-darwin*)
17829 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17830 # deployment target is forced to an earlier version.
17831 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
17832 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
17834 10.[012][,.]*)
17835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17839 esac
17841 esac
17842 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
17843 _lt_dar_single_mod='$single_module'
17845 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
17846 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
17847 else
17848 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
17850 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
17851 _lt_dsymutil='~$DSYMUTIL $lib || :'
17852 else
17853 _lt_dsymutil=
17856 esac
17859 for ac_header in dlfcn.h
17860 do :
17861 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
17862 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
17863 cat >>confdefs.h <<_ACEOF
17864 #define HAVE_DLFCN_H 1
17865 _ACEOF
17868 done
17874 # Set options
17878 enable_dlopen=no
17881 enable_win32_dll=no
17884 # Check whether --enable-shared was given.
17885 if test "${enable_shared+set}" = set; then :
17886 enableval=$enable_shared; p=${PACKAGE-default}
17887 case $enableval in
17888 yes) enable_shared=yes ;;
17889 no) enable_shared=no ;;
17891 enable_shared=no
17892 # Look at the argument we got. We use all the common list separators.
17893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17894 for pkg in $enableval; do
17895 IFS="$lt_save_ifs"
17896 if test "X$pkg" = "X$p"; then
17897 enable_shared=yes
17899 done
17900 IFS="$lt_save_ifs"
17902 esac
17903 else
17904 enable_shared=yes
17915 # Check whether --enable-static was given.
17916 if test "${enable_static+set}" = set; then :
17917 enableval=$enable_static; p=${PACKAGE-default}
17918 case $enableval in
17919 yes) enable_static=yes ;;
17920 no) enable_static=no ;;
17922 enable_static=no
17923 # Look at the argument we got. We use all the common list separators.
17924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17925 for pkg in $enableval; do
17926 IFS="$lt_save_ifs"
17927 if test "X$pkg" = "X$p"; then
17928 enable_static=yes
17930 done
17931 IFS="$lt_save_ifs"
17933 esac
17934 else
17935 enable_static=yes
17947 # Check whether --with-pic was given.
17948 if test "${with_pic+set}" = set; then :
17949 withval=$with_pic; pic_mode="$withval"
17950 else
17951 pic_mode=default
17955 test -z "$pic_mode" && pic_mode=default
17963 # Check whether --enable-fast-install was given.
17964 if test "${enable_fast_install+set}" = set; then :
17965 enableval=$enable_fast_install; p=${PACKAGE-default}
17966 case $enableval in
17967 yes) enable_fast_install=yes ;;
17968 no) enable_fast_install=no ;;
17970 enable_fast_install=no
17971 # Look at the argument we got. We use all the common list separators.
17972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17973 for pkg in $enableval; do
17974 IFS="$lt_save_ifs"
17975 if test "X$pkg" = "X$p"; then
17976 enable_fast_install=yes
17978 done
17979 IFS="$lt_save_ifs"
17981 esac
17982 else
17983 enable_fast_install=yes
17996 # This can be used to rebuild libtool when needed
17997 LIBTOOL_DEPS="$ltmain"
17999 # Always use our own libtool.
18000 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18027 test -z "$LN_S" && LN_S="ln -s"
18042 if test -n "${ZSH_VERSION+set}" ; then
18043 setopt NO_GLOB_SUBST
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18047 $as_echo_n "checking for objdir... " >&6; }
18048 if ${lt_cv_objdir+:} false; then :
18049 $as_echo_n "(cached) " >&6
18050 else
18051 rm -f .libs 2>/dev/null
18052 mkdir .libs 2>/dev/null
18053 if test -d .libs; then
18054 lt_cv_objdir=.libs
18055 else
18056 # MS-DOS does not allow filenames that begin with a dot.
18057 lt_cv_objdir=_libs
18059 rmdir .libs 2>/dev/null
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18062 $as_echo "$lt_cv_objdir" >&6; }
18063 objdir=$lt_cv_objdir
18069 cat >>confdefs.h <<_ACEOF
18070 #define LT_OBJDIR "$lt_cv_objdir/"
18071 _ACEOF
18076 case $host_os in
18077 aix3*)
18078 # AIX sometimes has problems with the GCC collect2 program. For some
18079 # reason, if we set the COLLECT_NAMES environment variable, the problems
18080 # vanish in a puff of smoke.
18081 if test "X${COLLECT_NAMES+set}" != Xset; then
18082 COLLECT_NAMES=
18083 export COLLECT_NAMES
18086 esac
18088 # Global variables:
18089 ofile=libtool
18090 can_build_shared=yes
18092 # All known linkers require a `.a' archive for static linking (except MSVC,
18093 # which needs '.lib').
18094 libext=a
18096 with_gnu_ld="$lt_cv_prog_gnu_ld"
18098 old_CC="$CC"
18099 old_CFLAGS="$CFLAGS"
18101 # Set sane defaults for various variables
18102 test -z "$CC" && CC=cc
18103 test -z "$LTCC" && LTCC=$CC
18104 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18105 test -z "$LD" && LD=ld
18106 test -z "$ac_objext" && ac_objext=o
18108 for cc_temp in $compiler""; do
18109 case $cc_temp in
18110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18112 \-*) ;;
18113 *) break;;
18114 esac
18115 done
18116 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18119 # Only perform the check for file, if the check method requires it
18120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18121 case $deplibs_check_method in
18122 file_magic*)
18123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18127 $as_echo_n "(cached) " >&6
18128 else
18129 case $MAGIC_CMD in
18130 [\\/*] | ?:[\\/]*)
18131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18134 lt_save_MAGIC_CMD="$MAGIC_CMD"
18135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18137 for ac_dir in $ac_dummy; do
18138 IFS="$lt_save_ifs"
18139 test -z "$ac_dir" && ac_dir=.
18140 if test -f $ac_dir/${ac_tool_prefix}file; then
18141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18142 if test -n "$file_magic_test_file"; then
18143 case $deplibs_check_method in
18144 "file_magic "*)
18145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18148 $EGREP "$file_magic_regex" > /dev/null; then
18150 else
18151 cat <<_LT_EOF 1>&2
18153 *** Warning: the command libtool uses to detect shared libraries,
18154 *** $file_magic_cmd, produces output that libtool cannot recognize.
18155 *** The result is that libtool may fail to recognize shared libraries
18156 *** as such. This will affect the creation of libtool libraries that
18157 *** depend on shared libraries, but programs linked with such libtool
18158 *** libraries will work regardless of this problem. Nevertheless, you
18159 *** may want to report the problem to your system manager and/or to
18160 *** bug-libtool@gnu.org
18162 _LT_EOF
18163 fi ;;
18164 esac
18166 break
18168 done
18169 IFS="$lt_save_ifs"
18170 MAGIC_CMD="$lt_save_MAGIC_CMD"
18172 esac
18175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18176 if test -n "$MAGIC_CMD"; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18178 $as_echo "$MAGIC_CMD" >&6; }
18179 else
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181 $as_echo "no" >&6; }
18188 if test -z "$lt_cv_path_MAGIC_CMD"; then
18189 if test -n "$ac_tool_prefix"; then
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18191 $as_echo_n "checking for file... " >&6; }
18192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 case $MAGIC_CMD in
18196 [\\/*] | ?:[\\/]*)
18197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18200 lt_save_MAGIC_CMD="$MAGIC_CMD"
18201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18203 for ac_dir in $ac_dummy; do
18204 IFS="$lt_save_ifs"
18205 test -z "$ac_dir" && ac_dir=.
18206 if test -f $ac_dir/file; then
18207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18208 if test -n "$file_magic_test_file"; then
18209 case $deplibs_check_method in
18210 "file_magic "*)
18211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18214 $EGREP "$file_magic_regex" > /dev/null; then
18216 else
18217 cat <<_LT_EOF 1>&2
18219 *** Warning: the command libtool uses to detect shared libraries,
18220 *** $file_magic_cmd, produces output that libtool cannot recognize.
18221 *** The result is that libtool may fail to recognize shared libraries
18222 *** as such. This will affect the creation of libtool libraries that
18223 *** depend on shared libraries, but programs linked with such libtool
18224 *** libraries will work regardless of this problem. Nevertheless, you
18225 *** may want to report the problem to your system manager and/or to
18226 *** bug-libtool@gnu.org
18228 _LT_EOF
18229 fi ;;
18230 esac
18232 break
18234 done
18235 IFS="$lt_save_ifs"
18236 MAGIC_CMD="$lt_save_MAGIC_CMD"
18238 esac
18241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18242 if test -n "$MAGIC_CMD"; then
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18244 $as_echo "$MAGIC_CMD" >&6; }
18245 else
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18247 $as_echo "no" >&6; }
18251 else
18252 MAGIC_CMD=:
18258 esac
18260 # Use C for the default configuration in the libtool script
18262 lt_save_CC="$CC"
18263 ac_ext=c
18264 ac_cpp='$CPP $CPPFLAGS'
18265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18270 # Source file extension for C test sources.
18271 ac_ext=c
18273 # Object file extension for compiled C test sources.
18274 objext=o
18275 objext=$objext
18277 # Code to be used in simple compile tests
18278 lt_simple_compile_test_code="int some_variable = 0;"
18280 # Code to be used in simple link tests
18281 lt_simple_link_test_code='int main(){return(0);}'
18289 # If no C compiler was specified, use CC.
18290 LTCC=${LTCC-"$CC"}
18292 # If no C compiler flags were specified, use CFLAGS.
18293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18295 # Allow CC to be a program name with arguments.
18296 compiler=$CC
18298 # Save the default compiler, since it gets overwritten when the other
18299 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18300 compiler_DEFAULT=$CC
18302 # save warnings/boilerplate of simple test code
18303 ac_outfile=conftest.$ac_objext
18304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18306 _lt_compiler_boilerplate=`cat conftest.err`
18307 $RM conftest*
18309 ac_outfile=conftest.$ac_objext
18310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18312 _lt_linker_boilerplate=`cat conftest.err`
18313 $RM -r conftest*
18316 ## CAVEAT EMPTOR:
18317 ## There is no encapsulation within the following macros, do not change
18318 ## the running order or otherwise move them around unless you know exactly
18319 ## what you are doing...
18320 if test -n "$compiler"; then
18322 lt_prog_compiler_no_builtin_flag=
18324 if test "$GCC" = yes; then
18325 case $cc_basename in
18326 nvcc*)
18327 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18329 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18330 esac
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18333 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18334 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18335 $as_echo_n "(cached) " >&6
18336 else
18337 lt_cv_prog_compiler_rtti_exceptions=no
18338 ac_outfile=conftest.$ac_objext
18339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18340 lt_compiler_flag="-fno-rtti -fno-exceptions"
18341 # Insert the option either (1) after the last *FLAGS variable, or
18342 # (2) before a word containing "conftest.", or (3) at the end.
18343 # Note that $ac_compile itself does not contain backslashes and begins
18344 # with a dollar sign (not a hyphen), so the echo should work correctly.
18345 # The option is referenced via a variable to avoid confusing sed.
18346 lt_compile=`echo "$ac_compile" | $SED \
18347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18349 -e 's:$: $lt_compiler_flag:'`
18350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18351 (eval "$lt_compile" 2>conftest.err)
18352 ac_status=$?
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 if (exit $ac_status) && test -s "$ac_outfile"; then
18356 # The compiler can only warn and ignore the option if not recognized
18357 # So say no if there are warnings other than the usual output.
18358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18361 lt_cv_prog_compiler_rtti_exceptions=yes
18364 $RM conftest*
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18368 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18370 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18371 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18372 else
18383 lt_prog_compiler_wl=
18384 lt_prog_compiler_pic=
18385 lt_prog_compiler_static=
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18388 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18390 if test "$GCC" = yes; then
18391 lt_prog_compiler_wl='-Wl,'
18392 lt_prog_compiler_static='-static'
18394 case $host_os in
18395 aix*)
18396 # All AIX code is PIC.
18397 if test "$host_cpu" = ia64; then
18398 # AIX 5 now supports IA64 processor
18399 lt_prog_compiler_static='-Bstatic'
18401 lt_prog_compiler_pic='-fPIC'
18404 amigaos*)
18405 case $host_cpu in
18406 powerpc)
18407 # see comment about AmigaOS4 .so support
18408 lt_prog_compiler_pic='-fPIC'
18410 m68k)
18411 # FIXME: we need at least 68020 code to build shared libraries, but
18412 # adding the `-m68020' flag to GCC prevents building anything better,
18413 # like `-m68040'.
18414 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18416 esac
18419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18420 # PIC is the default for these OSes.
18423 mingw* | cygwin* | pw32* | os2* | cegcc*)
18424 # This hack is so that the source file can tell whether it is being
18425 # built for inclusion in a dll (and should export symbols for example).
18426 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18427 # (--disable-auto-import) libraries
18428 lt_prog_compiler_pic='-DDLL_EXPORT'
18431 darwin* | rhapsody*)
18432 # PIC is the default on this platform
18433 # Common symbols not allowed in MH_DYLIB files
18434 lt_prog_compiler_pic='-fno-common'
18437 haiku*)
18438 # PIC is the default for Haiku.
18439 # The "-static" flag exists, but is broken.
18440 lt_prog_compiler_static=
18443 hpux*)
18444 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18445 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18446 # sets the default TLS model and affects inlining.
18447 case $host_cpu in
18448 hppa*64*)
18449 # +Z the default
18452 lt_prog_compiler_pic='-fPIC'
18454 esac
18457 interix[3-9]*)
18458 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18459 # Instead, we relocate shared libraries at runtime.
18462 msdosdjgpp*)
18463 # Just because we use GCC doesn't mean we suddenly get shared libraries
18464 # on systems that don't support them.
18465 lt_prog_compiler_can_build_shared=no
18466 enable_shared=no
18469 *nto* | *qnx*)
18470 # QNX uses GNU C++, but need to define -shared option too, otherwise
18471 # it will coredump.
18472 lt_prog_compiler_pic='-fPIC -shared'
18475 sysv4*MP*)
18476 if test -d /usr/nec; then
18477 lt_prog_compiler_pic=-Kconform_pic
18482 lt_prog_compiler_pic='-fPIC'
18484 esac
18486 case $cc_basename in
18487 nvcc*) # Cuda Compiler Driver 2.2
18488 lt_prog_compiler_wl='-Xlinker '
18489 lt_prog_compiler_pic='-Xcompiler -fPIC'
18491 esac
18492 else
18493 # PORTME Check for flag to pass linker flags through the system compiler.
18494 case $host_os in
18495 aix*)
18496 lt_prog_compiler_wl='-Wl,'
18497 if test "$host_cpu" = ia64; then
18498 # AIX 5 now supports IA64 processor
18499 lt_prog_compiler_static='-Bstatic'
18500 else
18501 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18505 mingw* | cygwin* | pw32* | os2* | cegcc*)
18506 # This hack is so that the source file can tell whether it is being
18507 # built for inclusion in a dll (and should export symbols for example).
18508 lt_prog_compiler_pic='-DDLL_EXPORT'
18511 hpux9* | hpux10* | hpux11*)
18512 lt_prog_compiler_wl='-Wl,'
18513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18514 # not for PA HP-UX.
18515 case $host_cpu in
18516 hppa*64*|ia64*)
18517 # +Z the default
18520 lt_prog_compiler_pic='+Z'
18522 esac
18523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18524 lt_prog_compiler_static='${wl}-a ${wl}archive'
18527 irix5* | irix6* | nonstopux*)
18528 lt_prog_compiler_wl='-Wl,'
18529 # PIC (with -KPIC) is the default.
18530 lt_prog_compiler_static='-non_shared'
18533 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18534 case $cc_basename in
18535 # old Intel for x86_64 which still supported -KPIC.
18536 ecc*)
18537 lt_prog_compiler_wl='-Wl,'
18538 lt_prog_compiler_pic='-KPIC'
18539 lt_prog_compiler_static='-static'
18541 # icc used to be incompatible with GCC.
18542 # ICC 10 doesn't accept -KPIC any more.
18543 icc* | ifort*)
18544 lt_prog_compiler_wl='-Wl,'
18545 lt_prog_compiler_pic='-fPIC'
18546 lt_prog_compiler_static='-static'
18548 # Lahey Fortran 8.1.
18549 lf95*)
18550 lt_prog_compiler_wl='-Wl,'
18551 lt_prog_compiler_pic='--shared'
18552 lt_prog_compiler_static='--static'
18554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18555 # Portland Group compilers (*not* the Pentium gcc compiler,
18556 # which looks to be a dead project)
18557 lt_prog_compiler_wl='-Wl,'
18558 lt_prog_compiler_pic='-fpic'
18559 lt_prog_compiler_static='-Bstatic'
18561 ccc*)
18562 lt_prog_compiler_wl='-Wl,'
18563 # All Alpha code is PIC.
18564 lt_prog_compiler_static='-non_shared'
18566 xl* | bgxl* | bgf* | mpixl*)
18567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18568 lt_prog_compiler_wl='-Wl,'
18569 lt_prog_compiler_pic='-qpic'
18570 lt_prog_compiler_static='-qstaticlink'
18573 case `$CC -V 2>&1 | sed 5q` in
18574 *Sun\ F* | *Sun*Fortran*)
18575 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18576 lt_prog_compiler_pic='-KPIC'
18577 lt_prog_compiler_static='-Bstatic'
18578 lt_prog_compiler_wl=''
18580 *Sun\ C*)
18581 # Sun C 5.9
18582 lt_prog_compiler_pic='-KPIC'
18583 lt_prog_compiler_static='-Bstatic'
18584 lt_prog_compiler_wl='-Wl,'
18586 esac
18588 esac
18591 newsos6)
18592 lt_prog_compiler_pic='-KPIC'
18593 lt_prog_compiler_static='-Bstatic'
18596 *nto* | *qnx*)
18597 # QNX uses GNU C++, but need to define -shared option too, otherwise
18598 # it will coredump.
18599 lt_prog_compiler_pic='-fPIC -shared'
18602 osf3* | osf4* | osf5*)
18603 lt_prog_compiler_wl='-Wl,'
18604 # All OSF/1 code is PIC.
18605 lt_prog_compiler_static='-non_shared'
18608 rdos*)
18609 lt_prog_compiler_static='-non_shared'
18612 solaris*)
18613 lt_prog_compiler_pic='-KPIC'
18614 lt_prog_compiler_static='-Bstatic'
18615 case $cc_basename in
18616 f77* | f90* | f95*)
18617 lt_prog_compiler_wl='-Qoption ld ';;
18619 lt_prog_compiler_wl='-Wl,';;
18620 esac
18623 sunos4*)
18624 lt_prog_compiler_wl='-Qoption ld '
18625 lt_prog_compiler_pic='-PIC'
18626 lt_prog_compiler_static='-Bstatic'
18629 sysv4 | sysv4.2uw2* | sysv4.3*)
18630 lt_prog_compiler_wl='-Wl,'
18631 lt_prog_compiler_pic='-KPIC'
18632 lt_prog_compiler_static='-Bstatic'
18635 sysv4*MP*)
18636 if test -d /usr/nec ;then
18637 lt_prog_compiler_pic='-Kconform_pic'
18638 lt_prog_compiler_static='-Bstatic'
18642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18643 lt_prog_compiler_wl='-Wl,'
18644 lt_prog_compiler_pic='-KPIC'
18645 lt_prog_compiler_static='-Bstatic'
18648 unicos*)
18649 lt_prog_compiler_wl='-Wl,'
18650 lt_prog_compiler_can_build_shared=no
18653 uts4*)
18654 lt_prog_compiler_pic='-pic'
18655 lt_prog_compiler_static='-Bstatic'
18659 lt_prog_compiler_can_build_shared=no
18661 esac
18664 case $host_os in
18665 # For platforms which do not support PIC, -DPIC is meaningless:
18666 *djgpp*)
18667 lt_prog_compiler_pic=
18670 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18672 esac
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18674 $as_echo "$lt_prog_compiler_pic" >&6; }
18682 # Check to make sure the PIC flag actually works.
18684 if test -n "$lt_prog_compiler_pic"; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18686 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18687 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18688 $as_echo_n "(cached) " >&6
18689 else
18690 lt_cv_prog_compiler_pic_works=no
18691 ac_outfile=conftest.$ac_objext
18692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18694 # Insert the option either (1) after the last *FLAGS variable, or
18695 # (2) before a word containing "conftest.", or (3) at the end.
18696 # Note that $ac_compile itself does not contain backslashes and begins
18697 # with a dollar sign (not a hyphen), so the echo should work correctly.
18698 # The option is referenced via a variable to avoid confusing sed.
18699 lt_compile=`echo "$ac_compile" | $SED \
18700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18702 -e 's:$: $lt_compiler_flag:'`
18703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18704 (eval "$lt_compile" 2>conftest.err)
18705 ac_status=$?
18706 cat conftest.err >&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 if (exit $ac_status) && test -s "$ac_outfile"; then
18709 # The compiler can only warn and ignore the option if not recognized
18710 # So say no if there are warnings other than the usual output.
18711 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18714 lt_cv_prog_compiler_pic_works=yes
18717 $RM conftest*
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18721 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18723 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18724 case $lt_prog_compiler_pic in
18725 "" | " "*) ;;
18726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18727 esac
18728 else
18729 lt_prog_compiler_pic=
18730 lt_prog_compiler_can_build_shared=no
18741 # Check to make sure the static flag actually works.
18743 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18745 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18746 if ${lt_cv_prog_compiler_static_works+:} false; then :
18747 $as_echo_n "(cached) " >&6
18748 else
18749 lt_cv_prog_compiler_static_works=no
18750 save_LDFLAGS="$LDFLAGS"
18751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18752 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18754 # The linker can only warn and ignore the option if not recognized
18755 # So say no if there are warnings
18756 if test -s conftest.err; then
18757 # Append any errors to the config.log.
18758 cat conftest.err 1>&5
18759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18761 if diff conftest.exp conftest.er2 >/dev/null; then
18762 lt_cv_prog_compiler_static_works=yes
18764 else
18765 lt_cv_prog_compiler_static_works=yes
18768 $RM -r conftest*
18769 LDFLAGS="$save_LDFLAGS"
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18773 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18775 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18777 else
18778 lt_prog_compiler_static=
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18789 if ${lt_cv_prog_compiler_c_o+:} false; then :
18790 $as_echo_n "(cached) " >&6
18791 else
18792 lt_cv_prog_compiler_c_o=no
18793 $RM -r conftest 2>/dev/null
18794 mkdir conftest
18795 cd conftest
18796 mkdir out
18797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18799 lt_compiler_flag="-o out/conftest2.$ac_objext"
18800 # Insert the option either (1) after the last *FLAGS variable, or
18801 # (2) before a word containing "conftest.", or (3) at the end.
18802 # Note that $ac_compile itself does not contain backslashes and begins
18803 # with a dollar sign (not a hyphen), so the echo should work correctly.
18804 lt_compile=`echo "$ac_compile" | $SED \
18805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18807 -e 's:$: $lt_compiler_flag:'`
18808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18809 (eval "$lt_compile" 2>out/conftest.err)
18810 ac_status=$?
18811 cat out/conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18814 then
18815 # The compiler can only warn and ignore the option if not recognized
18816 # So say no if there are warnings
18817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18820 lt_cv_prog_compiler_c_o=yes
18823 chmod u+w . 2>&5
18824 $RM conftest*
18825 # SGI C++ compiler will create directory out/ii_files/ for
18826 # template instantiation
18827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18828 $RM out/* && rmdir out
18829 cd ..
18830 $RM -r conftest
18831 $RM conftest*
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18835 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18844 if ${lt_cv_prog_compiler_c_o+:} false; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 lt_cv_prog_compiler_c_o=no
18848 $RM -r conftest 2>/dev/null
18849 mkdir conftest
18850 cd conftest
18851 mkdir out
18852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18854 lt_compiler_flag="-o out/conftest2.$ac_objext"
18855 # Insert the option either (1) after the last *FLAGS variable, or
18856 # (2) before a word containing "conftest.", or (3) at the end.
18857 # Note that $ac_compile itself does not contain backslashes and begins
18858 # with a dollar sign (not a hyphen), so the echo should work correctly.
18859 lt_compile=`echo "$ac_compile" | $SED \
18860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18862 -e 's:$: $lt_compiler_flag:'`
18863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18864 (eval "$lt_compile" 2>out/conftest.err)
18865 ac_status=$?
18866 cat out/conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18869 then
18870 # The compiler can only warn and ignore the option if not recognized
18871 # So say no if there are warnings
18872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18875 lt_cv_prog_compiler_c_o=yes
18878 chmod u+w . 2>&5
18879 $RM conftest*
18880 # SGI C++ compiler will create directory out/ii_files/ for
18881 # template instantiation
18882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18883 $RM out/* && rmdir out
18884 cd ..
18885 $RM -r conftest
18886 $RM conftest*
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
18890 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
18895 hard_links="nottested"
18896 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18897 # do not overwrite the value of need_locks provided by the user
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18899 $as_echo_n "checking if we can lock with hard links... " >&6; }
18900 hard_links=yes
18901 $RM conftest*
18902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18903 touch conftest.a
18904 ln conftest.a conftest.b 2>&5 || hard_links=no
18905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18907 $as_echo "$hard_links" >&6; }
18908 if test "$hard_links" = no; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18910 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18911 need_locks=warn
18913 else
18914 need_locks=no
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18923 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18925 runpath_var=
18926 allow_undefined_flag=
18927 always_export_symbols=no
18928 archive_cmds=
18929 archive_expsym_cmds=
18930 compiler_needs_object=no
18931 enable_shared_with_static_runtimes=no
18932 export_dynamic_flag_spec=
18933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18934 hardcode_automatic=no
18935 hardcode_direct=no
18936 hardcode_direct_absolute=no
18937 hardcode_libdir_flag_spec=
18938 hardcode_libdir_flag_spec_ld=
18939 hardcode_libdir_separator=
18940 hardcode_minus_L=no
18941 hardcode_shlibpath_var=unsupported
18942 inherit_rpath=no
18943 link_all_deplibs=unknown
18944 module_cmds=
18945 module_expsym_cmds=
18946 old_archive_from_new_cmds=
18947 old_archive_from_expsyms_cmds=
18948 thread_safe_flag_spec=
18949 whole_archive_flag_spec=
18950 # include_expsyms should be a list of space-separated symbols to be *always*
18951 # included in the symbol list
18952 include_expsyms=
18953 # exclude_expsyms can be an extended regexp of symbols to exclude
18954 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18956 # as well as any symbol that contains `d'.
18957 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18959 # platforms (ab)use it in PIC code, but their linkers get confused if
18960 # the symbol is explicitly referenced. Since portable code cannot
18961 # rely on this symbol name, it's probably fine to never include it in
18962 # preloaded symbol tables.
18963 # Exclude shared library initialization/finalization symbols.
18964 extract_expsyms_cmds=
18966 case $host_os in
18967 cygwin* | mingw* | pw32* | cegcc*)
18968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18969 # When not using gcc, we currently assume that we are using
18970 # Microsoft Visual C++.
18971 if test "$GCC" != yes; then
18972 with_gnu_ld=no
18975 interix*)
18976 # we just hope/assume this is gcc and not c89 (= MSVC++)
18977 with_gnu_ld=yes
18979 openbsd*)
18980 with_gnu_ld=no
18982 esac
18984 ld_shlibs=yes
18986 # On some targets, GNU ld is compatible enough with the native linker
18987 # that we're better off using the native interface for both.
18988 lt_use_gnu_ld_interface=no
18989 if test "$with_gnu_ld" = yes; then
18990 case $host_os in
18991 aix*)
18992 # The AIX port of GNU ld has always aspired to compatibility
18993 # with the native linker. However, as the warning in the GNU ld
18994 # block says, versions before 2.19.5* couldn't really create working
18995 # shared libraries, regardless of the interface used.
18996 case `$LD -v 2>&1` in
18997 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18998 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18999 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19001 lt_use_gnu_ld_interface=yes
19003 esac
19006 lt_use_gnu_ld_interface=yes
19008 esac
19011 if test "$lt_use_gnu_ld_interface" = yes; then
19012 # If archive_cmds runs LD, not CC, wlarc should be empty
19013 wlarc='${wl}'
19015 # Set some defaults for GNU ld with shared library support. These
19016 # are reset later if shared libraries are not supported. Putting them
19017 # here allows them to be overridden if necessary.
19018 runpath_var=LD_RUN_PATH
19019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19020 export_dynamic_flag_spec='${wl}--export-dynamic'
19021 # ancient GNU ld didn't support --whole-archive et. al.
19022 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19023 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19024 else
19025 whole_archive_flag_spec=
19027 supports_anon_versioning=no
19028 case `$LD -v 2>&1` in
19029 *GNU\ gold*) supports_anon_versioning=yes ;;
19030 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19031 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19032 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19033 *\ 2.11.*) ;; # other 2.11 versions
19034 *) supports_anon_versioning=yes ;;
19035 esac
19037 # See if GNU ld supports shared libraries.
19038 case $host_os in
19039 aix[3-9]*)
19040 # On AIX/PPC, the GNU linker is very broken
19041 if test "$host_cpu" != ia64; then
19042 ld_shlibs=no
19043 cat <<_LT_EOF 1>&2
19045 *** Warning: the GNU linker, at least up to release 2.19, is reported
19046 *** to be unable to reliably create shared libraries on AIX.
19047 *** Therefore, libtool is disabling shared libraries support. If you
19048 *** really care for shared libraries, you may want to install binutils
19049 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19050 *** You will then need to restart the configuration process.
19052 _LT_EOF
19056 amigaos*)
19057 case $host_cpu in
19058 powerpc)
19059 # see comment about AmigaOS4 .so support
19060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19061 archive_expsym_cmds=''
19063 m68k)
19064 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)'
19065 hardcode_libdir_flag_spec='-L$libdir'
19066 hardcode_minus_L=yes
19068 esac
19071 beos*)
19072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19073 allow_undefined_flag=unsupported
19074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19075 # support --undefined. This deserves some investigation. FIXME
19076 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19077 else
19078 ld_shlibs=no
19082 cygwin* | mingw* | pw32* | cegcc*)
19083 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19084 # as there is no search path for DLLs.
19085 hardcode_libdir_flag_spec='-L$libdir'
19086 export_dynamic_flag_spec='${wl}--export-all-symbols'
19087 allow_undefined_flag=unsupported
19088 always_export_symbols=no
19089 enable_shared_with_static_runtimes=yes
19090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19092 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19094 # If the export-symbols file already is a .def file (1st line
19095 # is EXPORTS), use it as is; otherwise, prepend...
19096 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19097 cp $export_symbols $output_objdir/$soname.def;
19098 else
19099 echo EXPORTS > $output_objdir/$soname.def;
19100 cat $export_symbols >> $output_objdir/$soname.def;
19102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19103 else
19104 ld_shlibs=no
19108 haiku*)
19109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110 link_all_deplibs=yes
19113 interix[3-9]*)
19114 hardcode_direct=no
19115 hardcode_shlibpath_var=no
19116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19117 export_dynamic_flag_spec='${wl}-E'
19118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19119 # Instead, shared libraries are loaded at an image base (0x10000000 by
19120 # default) and relocated if they conflict, which is a slow very memory
19121 # consuming and fragmenting process. To avoid this, we pick a random,
19122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19125 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'
19128 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19129 tmp_diet=no
19130 if test "$host_os" = linux-dietlibc; then
19131 case $cc_basename in
19132 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19133 esac
19135 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19136 && test "$tmp_diet" = no
19137 then
19138 tmp_addflag=' $pic_flag'
19139 tmp_sharedflag='-shared'
19140 case $cc_basename,$host_cpu in
19141 pgcc*) # Portland Group C compiler
19142 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'
19143 tmp_addflag=' $pic_flag'
19145 pgf77* | pgf90* | pgf95* | pgfortran*)
19146 # Portland Group f77 and f90 compilers
19147 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'
19148 tmp_addflag=' $pic_flag -Mnomain' ;;
19149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19150 tmp_addflag=' -i_dynamic' ;;
19151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19152 tmp_addflag=' -i_dynamic -nofor_main' ;;
19153 ifc* | ifort*) # Intel Fortran compiler
19154 tmp_addflag=' -nofor_main' ;;
19155 lf95*) # Lahey Fortran 8.1
19156 whole_archive_flag_spec=
19157 tmp_sharedflag='--shared' ;;
19158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19159 tmp_sharedflag='-qmkshrobj'
19160 tmp_addflag= ;;
19161 nvcc*) # Cuda Compiler Driver 2.2
19162 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'
19163 compiler_needs_object=yes
19165 esac
19166 case `$CC -V 2>&1 | sed 5q` in
19167 *Sun\ C*) # Sun C 5.9
19168 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'
19169 compiler_needs_object=yes
19170 tmp_sharedflag='-G' ;;
19171 *Sun\ F*) # Sun Fortran 8.3
19172 tmp_sharedflag='-G' ;;
19173 esac
19174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19176 if test "x$supports_anon_versioning" = xyes; then
19177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19179 echo "local: *; };" >> $output_objdir/$libname.ver~
19180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19183 case $cc_basename in
19184 xlf* | bgf* | bgxlf* | mpixlf*)
19185 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19186 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19187 hardcode_libdir_flag_spec=
19188 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19189 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19190 if test "x$supports_anon_versioning" = xyes; then
19191 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19193 echo "local: *; };" >> $output_objdir/$libname.ver~
19194 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19197 esac
19198 else
19199 ld_shlibs=no
19203 netbsd*)
19204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19205 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19206 wlarc=
19207 else
19208 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19209 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19213 solaris*)
19214 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19215 ld_shlibs=no
19216 cat <<_LT_EOF 1>&2
19218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19219 *** create shared libraries on Solaris systems. Therefore, libtool
19220 *** is disabling shared libraries support. We urge you to upgrade GNU
19221 *** binutils to release 2.9.1 or newer. Another option is to modify
19222 *** your PATH or compiler configuration so that the native linker is
19223 *** used, and then restart.
19225 _LT_EOF
19226 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19229 else
19230 ld_shlibs=no
19234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19235 case `$LD -v 2>&1` in
19236 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19237 ld_shlibs=no
19238 cat <<_LT_EOF 1>&2
19240 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19241 *** reliably create shared libraries on SCO systems. Therefore, libtool
19242 *** is disabling shared libraries support. We urge you to upgrade GNU
19243 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19244 *** your PATH or compiler configuration so that the native linker is
19245 *** used, and then restart.
19247 _LT_EOF
19250 # For security reasons, it is highly recommended that you always
19251 # use absolute paths for naming shared libraries, and exclude the
19252 # DT_RUNPATH tag from executables and libraries. But doing so
19253 # requires that you compile everything twice, which is a pain.
19254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19258 else
19259 ld_shlibs=no
19262 esac
19265 sunos4*)
19266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19267 wlarc=
19268 hardcode_direct=yes
19269 hardcode_shlibpath_var=no
19273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19276 else
19277 ld_shlibs=no
19280 esac
19282 if test "$ld_shlibs" = no; then
19283 runpath_var=
19284 hardcode_libdir_flag_spec=
19285 export_dynamic_flag_spec=
19286 whole_archive_flag_spec=
19288 else
19289 # PORTME fill in a description of your system's linker (not GNU ld)
19290 case $host_os in
19291 aix3*)
19292 allow_undefined_flag=unsupported
19293 always_export_symbols=yes
19294 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'
19295 # Note: this linker hardcodes the directories in LIBPATH if there
19296 # are no directories specified by -L.
19297 hardcode_minus_L=yes
19298 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19299 # Neither direct hardcoding nor static linking is supported with a
19300 # broken collect2.
19301 hardcode_direct=unsupported
19305 aix[4-9]*)
19306 if test "$host_cpu" = ia64; then
19307 # On IA64, the linker does run time linking by default, so we don't
19308 # have to do anything special.
19309 aix_use_runtimelinking=no
19310 exp_sym_flag='-Bexport'
19311 no_entry_flag=""
19312 else
19313 # If we're using GNU nm, then we don't want the "-C" option.
19314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19315 # Also, AIX nm treats weak defined symbols like other global
19316 # defined symbols, whereas GNU nm marks them as "W".
19317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19318 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'
19319 else
19320 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'
19322 aix_use_runtimelinking=no
19324 # Test if we are trying to use run time linking or normal
19325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19326 # need to do runtime linking.
19327 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19328 for ld_flag in $LDFLAGS; do
19329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19330 aix_use_runtimelinking=yes
19331 break
19333 done
19335 esac
19337 exp_sym_flag='-bexport'
19338 no_entry_flag='-bnoentry'
19341 # When large executables or shared objects are built, AIX ld can
19342 # have problems creating the table of contents. If linking a library
19343 # or program results in "error TOC overflow" add -mminimal-toc to
19344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19347 archive_cmds=''
19348 hardcode_direct=yes
19349 hardcode_direct_absolute=yes
19350 hardcode_libdir_separator=':'
19351 link_all_deplibs=yes
19352 file_list_spec='${wl}-f,'
19354 if test "$GCC" = yes; then
19355 case $host_os in aix4.[012]|aix4.[012].*)
19356 # We only want to do this on AIX 4.2 and lower, the check
19357 # below for broken collect2 doesn't work under 4.3+
19358 collect2name=`${CC} -print-prog-name=collect2`
19359 if test -f "$collect2name" &&
19360 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19361 then
19362 # We have reworked collect2
19364 else
19365 # We have old collect2
19366 hardcode_direct=unsupported
19367 # It fails to find uninstalled libraries when the uninstalled
19368 # path is not listed in the libpath. Setting hardcode_minus_L
19369 # to unsupported forces relinking
19370 hardcode_minus_L=yes
19371 hardcode_libdir_flag_spec='-L$libdir'
19372 hardcode_libdir_separator=
19375 esac
19376 shared_flag='-shared'
19377 if test "$aix_use_runtimelinking" = yes; then
19378 shared_flag="$shared_flag "'${wl}-G'
19380 else
19381 # not using gcc
19382 if test "$host_cpu" = ia64; then
19383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19384 # chokes on -Wl,-G. The following line is correct:
19385 shared_flag='-G'
19386 else
19387 if test "$aix_use_runtimelinking" = yes; then
19388 shared_flag='${wl}-G'
19389 else
19390 shared_flag='${wl}-bM:SRE'
19395 export_dynamic_flag_spec='${wl}-bexpall'
19396 # It seems that -bexpall does not export symbols beginning with
19397 # underscore (_), so it is better to generate a list of symbols to export.
19398 always_export_symbols=yes
19399 if test "$aix_use_runtimelinking" = yes; then
19400 # Warning - without using the other runtime loading flags (-brtl),
19401 # -berok will link without error, but may produce a broken library.
19402 allow_undefined_flag='-berok'
19403 # Determine the default libpath from the value encoded in an
19404 # empty executable.
19405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h. */
19409 main ()
19413 return 0;
19415 _ACEOF
19416 if ac_fn_c_try_link "$LINENO"; then :
19418 lt_aix_libpath_sed='
19419 /Import File Strings/,/^$/ {
19420 /^0/ {
19421 s/^0 *\(.*\)$/\1/
19425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19426 # Check for a 64-bit object if we didn't find anything.
19427 if test -z "$aix_libpath"; then
19428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19431 rm -f core conftest.err conftest.$ac_objext \
19432 conftest$ac_exeext conftest.$ac_ext
19433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19436 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"
19437 else
19438 if test "$host_cpu" = ia64; then
19439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19440 allow_undefined_flag="-z nodefs"
19441 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"
19442 else
19443 # Determine the default libpath from the value encoded in an
19444 # empty executable.
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19449 main ()
19453 return 0;
19455 _ACEOF
19456 if ac_fn_c_try_link "$LINENO"; then :
19458 lt_aix_libpath_sed='
19459 /Import File Strings/,/^$/ {
19460 /^0/ {
19461 s/^0 *\(.*\)$/\1/
19465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19466 # Check for a 64-bit object if we didn't find anything.
19467 if test -z "$aix_libpath"; then
19468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19476 # Warning - without using the other run time loading flags,
19477 # -berok will link without error, but may produce a broken library.
19478 no_undefined_flag=' ${wl}-bernotok'
19479 allow_undefined_flag=' ${wl}-berok'
19480 if test "$with_gnu_ld" = yes; then
19481 # We only use this code for GNU lds that support --whole-archive.
19482 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19483 else
19484 # Exported symbols can be pulled into shared objects from archives
19485 whole_archive_flag_spec='$convenience'
19487 archive_cmds_need_lc=yes
19488 # This is similar to how AIX traditionally builds its shared libraries.
19489 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'
19494 amigaos*)
19495 case $host_cpu in
19496 powerpc)
19497 # see comment about AmigaOS4 .so support
19498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499 archive_expsym_cmds=''
19501 m68k)
19502 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)'
19503 hardcode_libdir_flag_spec='-L$libdir'
19504 hardcode_minus_L=yes
19506 esac
19509 bsdi[45]*)
19510 export_dynamic_flag_spec=-rdynamic
19513 cygwin* | mingw* | pw32* | cegcc*)
19514 # When not using gcc, we currently assume that we are using
19515 # Microsoft Visual C++.
19516 # hardcode_libdir_flag_spec is actually meaningless, as there is
19517 # no search path for DLLs.
19518 hardcode_libdir_flag_spec=' '
19519 allow_undefined_flag=unsupported
19520 # Tell ltmain to make .lib files, not .a files.
19521 libext=lib
19522 # Tell ltmain to make .dll files, not .so files.
19523 shrext_cmds=".dll"
19524 # FIXME: Setting linknames here is a bad hack.
19525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19526 # The linker will automatically build a .lib file if we build a DLL.
19527 old_archive_from_new_cmds='true'
19528 # FIXME: Should let the user specify the lib program.
19529 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19530 fix_srcfile_path='`cygpath -w "$srcfile"`'
19531 enable_shared_with_static_runtimes=yes
19534 darwin* | rhapsody*)
19538 # Publish an arg to allow the user to select that Darwin host (and target)
19539 # libraries should be given install-names like @rpath/libfoo.dylib. This
19540 # requires that the user of the library then adds an 'rpath' to the DSO that
19541 # needs access.
19542 # NOTE: there are defaults below, for systems that support rpaths. The person
19543 # configuring can override the defaults for any system version that supports
19544 # them - they are, however, forced off for system versions without support.
19545 # Check whether --enable-darwin-at-rpath was given.
19546 if test "${enable_darwin_at_rpath+set}" = set; then :
19547 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19548 # This is not supported before macOS 10.5 / Darwin9.
19549 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19550 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19552 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19553 enable_darwin_at_rpath=no
19555 esac
19557 else
19558 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19559 # As above, before 10.5 / Darwin9 this does not work.
19560 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19561 enable_darwin_at_rpath=no
19564 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19565 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19566 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19567 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19569 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19570 enable_darwin_at_rpath=yes
19572 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19573 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19575 esac
19580 archive_cmds_need_lc=no
19581 hardcode_direct=no
19582 hardcode_automatic=yes
19583 hardcode_shlibpath_var=unsupported
19584 if test "$lt_cv_ld_force_load" = "yes"; then
19585 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\"`'
19586 else
19587 whole_archive_flag_spec=''
19589 link_all_deplibs=yes
19590 allow_undefined_flag="$_lt_dar_allow_undefined"
19591 case $cc_basename in
19592 ifort*) _lt_dar_can_shared=yes ;;
19593 *) _lt_dar_can_shared=$GCC ;;
19594 esac
19595 if test "$_lt_dar_can_shared" = "yes"; then
19596 output_verbose_link_cmd=func_echo_all
19597 _lt_install_name='\$rpath/\$soname'
19598 if test "x$enable_darwin_at_rpath" = "xyes"; then
19599 _lt_install_name='@rpath/\$soname'
19601 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19602 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19603 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}"
19604 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}"
19606 else
19607 ld_shlibs=no
19612 dgux*)
19613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19614 hardcode_libdir_flag_spec='-L$libdir'
19615 hardcode_shlibpath_var=no
19618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19619 # support. Future versions do this automatically, but an explicit c++rt0.o
19620 # does not break anything, and helps significantly (at the cost of a little
19621 # extra space).
19622 freebsd2.2*)
19623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19624 hardcode_libdir_flag_spec='-R$libdir'
19625 hardcode_direct=yes
19626 hardcode_shlibpath_var=no
19629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19630 freebsd2.*)
19631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19632 hardcode_direct=yes
19633 hardcode_minus_L=yes
19634 hardcode_shlibpath_var=no
19637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19638 freebsd* | dragonfly*)
19639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19640 hardcode_libdir_flag_spec='-R$libdir'
19641 hardcode_direct=yes
19642 hardcode_shlibpath_var=no
19645 hpux9*)
19646 if test "$GCC" = yes; then
19647 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'
19648 else
19649 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'
19651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19652 hardcode_libdir_separator=:
19653 hardcode_direct=yes
19655 # hardcode_minus_L: Not really in the search PATH,
19656 # but as the default location of the library.
19657 hardcode_minus_L=yes
19658 export_dynamic_flag_spec='${wl}-E'
19661 hpux10*)
19662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19664 else
19665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19667 if test "$with_gnu_ld" = no; then
19668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19669 hardcode_libdir_flag_spec_ld='+b $libdir'
19670 hardcode_libdir_separator=:
19671 hardcode_direct=yes
19672 hardcode_direct_absolute=yes
19673 export_dynamic_flag_spec='${wl}-E'
19674 # hardcode_minus_L: Not really in the search PATH,
19675 # but as the default location of the library.
19676 hardcode_minus_L=yes
19680 hpux11*)
19681 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19682 case $host_cpu in
19683 hppa*64*)
19684 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19686 ia64*)
19687 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19692 esac
19693 else
19694 case $host_cpu in
19695 hppa*64*)
19696 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19698 ia64*)
19699 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19703 # Older versions of the 11.00 compiler do not understand -b yet
19704 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19706 $as_echo_n "checking if $CC understands -b... " >&6; }
19707 if ${lt_cv_prog_compiler__b+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709 else
19710 lt_cv_prog_compiler__b=no
19711 save_LDFLAGS="$LDFLAGS"
19712 LDFLAGS="$LDFLAGS -b"
19713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19715 # The linker can only warn and ignore the option if not recognized
19716 # So say no if there are warnings
19717 if test -s conftest.err; then
19718 # Append any errors to the config.log.
19719 cat conftest.err 1>&5
19720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19722 if diff conftest.exp conftest.er2 >/dev/null; then
19723 lt_cv_prog_compiler__b=yes
19725 else
19726 lt_cv_prog_compiler__b=yes
19729 $RM -r conftest*
19730 LDFLAGS="$save_LDFLAGS"
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19734 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19736 if test x"$lt_cv_prog_compiler__b" = xyes; then
19737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19738 else
19739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19743 esac
19745 if test "$with_gnu_ld" = no; then
19746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19747 hardcode_libdir_separator=:
19749 case $host_cpu in
19750 hppa*64*|ia64*)
19751 hardcode_direct=no
19752 hardcode_shlibpath_var=no
19755 hardcode_direct=yes
19756 hardcode_direct_absolute=yes
19757 export_dynamic_flag_spec='${wl}-E'
19759 # hardcode_minus_L: Not really in the search PATH,
19760 # but as the default location of the library.
19761 hardcode_minus_L=yes
19763 esac
19767 irix5* | irix6* | nonstopux*)
19768 if test "$GCC" = yes; then
19769 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'
19770 # Try to use the -exported_symbol ld option, if it does not
19771 # work, assume that -exports_file does not work either and
19772 # implicitly export all symbols.
19773 save_LDFLAGS="$LDFLAGS"
19774 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h. */
19777 int foo(void) {}
19778 _ACEOF
19779 if ac_fn_c_try_link "$LINENO"; then :
19780 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'
19783 rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19785 LDFLAGS="$save_LDFLAGS"
19786 else
19787 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'
19788 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'
19790 archive_cmds_need_lc='no'
19791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19792 hardcode_libdir_separator=:
19793 inherit_rpath=yes
19794 link_all_deplibs=yes
19797 netbsd*)
19798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19800 else
19801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19803 hardcode_libdir_flag_spec='-R$libdir'
19804 hardcode_direct=yes
19805 hardcode_shlibpath_var=no
19808 newsos6)
19809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19810 hardcode_direct=yes
19811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19812 hardcode_libdir_separator=:
19813 hardcode_shlibpath_var=no
19816 *nto* | *qnx*)
19819 openbsd*)
19820 if test -f /usr/libexec/ld.so; then
19821 hardcode_direct=yes
19822 hardcode_shlibpath_var=no
19823 hardcode_direct_absolute=yes
19824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19828 export_dynamic_flag_spec='${wl}-E'
19829 else
19830 case $host_os in
19831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19833 hardcode_libdir_flag_spec='-R$libdir'
19836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19839 esac
19841 else
19842 ld_shlibs=no
19846 os2*)
19847 hardcode_libdir_flag_spec='-L$libdir'
19848 hardcode_minus_L=yes
19849 allow_undefined_flag=unsupported
19850 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'
19851 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19854 osf3*)
19855 if test "$GCC" = yes; then
19856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19857 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'
19858 else
19859 allow_undefined_flag=' -expect_unresolved \*'
19860 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'
19862 archive_cmds_need_lc='no'
19863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19864 hardcode_libdir_separator=:
19867 osf4* | osf5*) # as osf3* with the addition of -msym flag
19868 if test "$GCC" = yes; then
19869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19870 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'
19871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19872 else
19873 allow_undefined_flag=' -expect_unresolved \*'
19874 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'
19875 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~
19876 $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'
19878 # Both c and cxx compiler support -rpath directly
19879 hardcode_libdir_flag_spec='-rpath $libdir'
19881 archive_cmds_need_lc='no'
19882 hardcode_libdir_separator=:
19885 solaris*)
19886 no_undefined_flag=' -z defs'
19887 if test "$GCC" = yes; then
19888 wlarc='${wl}'
19889 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19891 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19892 else
19893 case `$CC -V 2>&1` in
19894 *"Compilers 5.0"*)
19895 wlarc=''
19896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19901 wlarc='${wl}'
19902 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19904 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19906 esac
19908 hardcode_libdir_flag_spec='-R$libdir'
19909 hardcode_shlibpath_var=no
19910 case $host_os in
19911 solaris2.[0-5] | solaris2.[0-5].*) ;;
19913 # The compiler driver will combine and reorder linker options,
19914 # but understands `-z linker_flag'. GCC discards it without `$wl',
19915 # but is careful enough not to reorder.
19916 # Supported since Solaris 2.6 (maybe 2.5.1?)
19917 if test "$GCC" = yes; then
19918 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19919 else
19920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19923 esac
19924 link_all_deplibs=yes
19927 sunos4*)
19928 if test "x$host_vendor" = xsequent; then
19929 # Use $CC to link under sequent, because it throws in some extra .o
19930 # files that make .init and .fini sections work.
19931 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19932 else
19933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19935 hardcode_libdir_flag_spec='-L$libdir'
19936 hardcode_direct=yes
19937 hardcode_minus_L=yes
19938 hardcode_shlibpath_var=no
19941 sysv4)
19942 case $host_vendor in
19943 sni)
19944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19945 hardcode_direct=yes # is this really true???
19947 siemens)
19948 ## LD is ld it makes a PLAMLIB
19949 ## CC just makes a GrossModule.
19950 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19951 reload_cmds='$CC -r -o $output$reload_objs'
19952 hardcode_direct=no
19954 motorola)
19955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19956 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19958 esac
19959 runpath_var='LD_RUN_PATH'
19960 hardcode_shlibpath_var=no
19963 sysv4.3*)
19964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19965 hardcode_shlibpath_var=no
19966 export_dynamic_flag_spec='-Bexport'
19969 sysv4*MP*)
19970 if test -d /usr/nec; then
19971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19972 hardcode_shlibpath_var=no
19973 runpath_var=LD_RUN_PATH
19974 hardcode_runpath_var=yes
19975 ld_shlibs=yes
19979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19980 no_undefined_flag='${wl}-z,text'
19981 archive_cmds_need_lc=no
19982 hardcode_shlibpath_var=no
19983 runpath_var='LD_RUN_PATH'
19985 if test "$GCC" = yes; then
19986 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19987 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19988 else
19989 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19990 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19994 sysv5* | sco3.2v5* | sco5v6*)
19995 # Note: We can NOT use -z defs as we might desire, because we do not
19996 # link with -lc, and that would cause any symbols used from libc to
19997 # always be unresolved, which means just about no library would
19998 # ever link correctly. If we're not using GNU ld we use -z text
19999 # though, which does catch some bad symbols but isn't as heavy-handed
20000 # as -z defs.
20001 no_undefined_flag='${wl}-z,text'
20002 allow_undefined_flag='${wl}-z,nodefs'
20003 archive_cmds_need_lc=no
20004 hardcode_shlibpath_var=no
20005 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20006 hardcode_libdir_separator=':'
20007 link_all_deplibs=yes
20008 export_dynamic_flag_spec='${wl}-Bexport'
20009 runpath_var='LD_RUN_PATH'
20011 if test "$GCC" = yes; then
20012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20014 else
20015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20020 uts4*)
20021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20022 hardcode_libdir_flag_spec='-L$libdir'
20023 hardcode_shlibpath_var=no
20027 ld_shlibs=no
20029 esac
20031 if test x$host_vendor = xsni; then
20032 case $host in
20033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20034 export_dynamic_flag_spec='${wl}-Blargedynsym'
20036 esac
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20041 $as_echo "$ld_shlibs" >&6; }
20042 test "$ld_shlibs" = no && can_build_shared=no
20044 with_gnu_ld=$with_gnu_ld
20061 # Do we need to explicitly link libc?
20063 case "x$archive_cmds_need_lc" in
20064 x|xyes)
20065 # Assume -lc should be added
20066 archive_cmds_need_lc=yes
20068 if test "$enable_shared" = yes && test "$GCC" = yes; then
20069 case $archive_cmds in
20070 *'~'*)
20071 # FIXME: we may have to deal with multi-command sequences.
20073 '$CC '*)
20074 # Test whether the compiler implicitly links with -lc since on some
20075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20076 # to ld, don't add -lc before -lgcc.
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20078 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20079 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20080 $as_echo_n "(cached) " >&6
20081 else
20082 $RM conftest*
20083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20086 (eval $ac_compile) 2>&5
20087 ac_status=$?
20088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20089 test $ac_status = 0; } 2>conftest.err; then
20090 soname=conftest
20091 lib=conftest
20092 libobjs=conftest.$ac_objext
20093 deplibs=
20094 wl=$lt_prog_compiler_wl
20095 pic_flag=$lt_prog_compiler_pic
20096 compiler_flags=-v
20097 linker_flags=-v
20098 verstring=
20099 output_objdir=.
20100 libname=conftest
20101 lt_save_allow_undefined_flag=$allow_undefined_flag
20102 allow_undefined_flag=
20103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20104 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20105 ac_status=$?
20106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20107 test $ac_status = 0; }
20108 then
20109 lt_cv_archive_cmds_need_lc=no
20110 else
20111 lt_cv_archive_cmds_need_lc=yes
20113 allow_undefined_flag=$lt_save_allow_undefined_flag
20114 else
20115 cat conftest.err 1>&5
20117 $RM conftest*
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20121 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20122 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20124 esac
20127 esac
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20286 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20288 if test "$GCC" = yes; then
20289 case $host_os in
20290 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20291 *) lt_awk_arg="/^libraries:/" ;;
20292 esac
20293 case $host_os in
20294 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20295 *) lt_sed_strip_eq="s,=/,/,g" ;;
20296 esac
20297 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20298 case $lt_search_path_spec in
20299 *\;*)
20300 # if the path contains ";" then we assume it to be the separator
20301 # otherwise default to the standard path separator (i.e. ":") - it is
20302 # assumed that no part of a normal pathname contains ";" but that should
20303 # okay in the real world where ";" in dirpaths is itself problematic.
20304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20309 esac
20310 # Ok, now we have the path, separated by spaces, we can step through it
20311 # and add multilib dir if necessary.
20312 lt_tmp_lt_search_path_spec=
20313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20314 for lt_sys_path in $lt_search_path_spec; do
20315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20317 else
20318 test -d "$lt_sys_path" && \
20319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20321 done
20322 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20323 BEGIN {RS=" "; FS="/|\n";} {
20324 lt_foo="";
20325 lt_count=0;
20326 for (lt_i = NF; lt_i > 0; lt_i--) {
20327 if ($lt_i != "" && $lt_i != ".") {
20328 if ($lt_i == "..") {
20329 lt_count++;
20330 } else {
20331 if (lt_count == 0) {
20332 lt_foo="/" $lt_i lt_foo;
20333 } else {
20334 lt_count--;
20339 if (lt_foo != "") { lt_freq[lt_foo]++; }
20340 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20342 # AWK program above erroneously prepends '/' to C:/dos/paths
20343 # for these hosts.
20344 case $host_os in
20345 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20346 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20347 esac
20348 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20349 else
20350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20352 library_names_spec=
20353 libname_spec='lib$name'
20354 soname_spec=
20355 shrext_cmds=".so"
20356 postinstall_cmds=
20357 postuninstall_cmds=
20358 finish_cmds=
20359 finish_eval=
20360 shlibpath_var=
20361 shlibpath_overrides_runpath=unknown
20362 version_type=none
20363 dynamic_linker="$host_os ld.so"
20364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20365 need_lib_prefix=unknown
20366 hardcode_into_libs=no
20368 # when you set need_version to no, make sure it does not cause -set_version
20369 # flags to be left without arguments
20370 need_version=unknown
20372 case $host_os in
20373 aix3*)
20374 version_type=linux
20375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20376 shlibpath_var=LIBPATH
20378 # AIX 3 has no versioning support, so we append a major version to the name.
20379 soname_spec='${libname}${release}${shared_ext}$major'
20382 aix[4-9]*)
20383 version_type=linux
20384 need_lib_prefix=no
20385 need_version=no
20386 hardcode_into_libs=yes
20387 if test "$host_cpu" = ia64; then
20388 # AIX 5 supports IA64
20389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20390 shlibpath_var=LD_LIBRARY_PATH
20391 else
20392 # With GCC up to 2.95.x, collect2 would create an import file
20393 # for dependence libraries. The import file would start with
20394 # the line `#! .'. This would cause the generated library to
20395 # depend on `.', always an invalid library. This was fixed in
20396 # development snapshots of GCC prior to 3.0.
20397 case $host_os in
20398 aix4 | aix4.[01] | aix4.[01].*)
20399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20400 echo ' yes '
20401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20403 else
20404 can_build_shared=no
20407 esac
20408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20409 # soname into executable. Probably we can add versioning support to
20410 # collect2, so additional links can be useful in future.
20411 if test "$aix_use_runtimelinking" = yes; then
20412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20413 # instead of lib<name>.a to let people know that these are not
20414 # typical AIX shared libraries.
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 else
20417 # We preserve .a as extension for shared libraries through AIX4.2
20418 # and later when we are not doing run time linking.
20419 library_names_spec='${libname}${release}.a $libname.a'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20422 shlibpath_var=LIBPATH
20426 amigaos*)
20427 case $host_cpu in
20428 powerpc)
20429 # Since July 2007 AmigaOS4 officially supports .so libraries.
20430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 m68k)
20434 library_names_spec='$libname.ixlibrary $libname.a'
20435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20436 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'
20438 esac
20441 beos*)
20442 library_names_spec='${libname}${shared_ext}'
20443 dynamic_linker="$host_os ld.so"
20444 shlibpath_var=LIBRARY_PATH
20447 bsdi[45]*)
20448 version_type=linux
20449 need_version=no
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20451 soname_spec='${libname}${release}${shared_ext}$major'
20452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20456 # the default ld.so.conf also contains /usr/contrib/lib and
20457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20458 # libtool to hard-code these into programs
20461 cygwin* | mingw* | pw32* | cegcc*)
20462 version_type=windows
20463 shrext_cmds=".dll"
20464 need_version=no
20465 need_lib_prefix=no
20467 case $GCC,$host_os in
20468 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20469 library_names_spec='$libname.dll.a'
20470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20471 postinstall_cmds='base_file=`basename \${file}`~
20472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20473 dldir=$destdir/`dirname \$dlpath`~
20474 test -d \$dldir || mkdir -p \$dldir~
20475 $install_prog $dir/$dlname \$dldir/$dlname~
20476 chmod a+x \$dldir/$dlname~
20477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20481 dlpath=$dir/\$dldll~
20482 $RM \$dlpath'
20483 shlibpath_overrides_runpath=yes
20485 case $host_os in
20486 cygwin*)
20487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20492 mingw* | cegcc*)
20493 # MinGW DLLs use traditional 'lib' prefix
20494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20496 pw32*)
20497 # pw32 DLLs use 'pw' prefix rather than 'lib'
20498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20500 esac
20504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20506 esac
20507 dynamic_linker='Win32 ld.exe'
20508 # FIXME: first we should search . and the directory the executable is in
20509 shlibpath_var=PATH
20512 darwin* | rhapsody*)
20513 dynamic_linker="$host_os dyld"
20514 version_type=darwin
20515 need_lib_prefix=no
20516 need_version=no
20517 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20518 soname_spec='${libname}${release}${major}$shared_ext'
20519 shlibpath_overrides_runpath=yes
20520 shlibpath_var=DYLD_LIBRARY_PATH
20521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20527 dgux*)
20528 version_type=linux
20529 need_lib_prefix=no
20530 need_version=no
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20532 soname_spec='${libname}${release}${shared_ext}$major'
20533 shlibpath_var=LD_LIBRARY_PATH
20536 freebsd* | dragonfly*)
20537 # DragonFly does not have aout. When/if they implement a new
20538 # versioning mechanism, adjust this.
20539 if test -x /usr/bin/objformat; then
20540 objformat=`/usr/bin/objformat`
20541 else
20542 case $host_os in
20543 freebsd[23].*) objformat=aout ;;
20544 *) objformat=elf ;;
20545 esac
20547 version_type=freebsd-$objformat
20548 case $version_type in
20549 freebsd-elf*)
20550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20551 need_version=no
20552 need_lib_prefix=no
20554 freebsd-*)
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20556 need_version=yes
20558 esac
20559 shlibpath_var=LD_LIBRARY_PATH
20560 case $host_os in
20561 freebsd2.*)
20562 shlibpath_overrides_runpath=yes
20564 freebsd3.[01]* | freebsdelf3.[01]*)
20565 shlibpath_overrides_runpath=yes
20566 hardcode_into_libs=yes
20568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20570 shlibpath_overrides_runpath=no
20571 hardcode_into_libs=yes
20573 *) # from 4.6 on, and DragonFly
20574 shlibpath_overrides_runpath=yes
20575 hardcode_into_libs=yes
20577 esac
20580 haiku*)
20581 version_type=linux
20582 need_lib_prefix=no
20583 need_version=no
20584 dynamic_linker="$host_os runtime_loader"
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 shlibpath_var=LIBRARY_PATH
20588 shlibpath_overrides_runpath=yes
20589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20590 hardcode_into_libs=yes
20593 hpux9* | hpux10* | hpux11*)
20594 # Give a soname corresponding to the major version so that dld.sl refuses to
20595 # link against other versions.
20596 version_type=sunos
20597 need_lib_prefix=no
20598 need_version=no
20599 case $host_cpu in
20600 ia64*)
20601 shrext_cmds='.so'
20602 hardcode_into_libs=yes
20603 dynamic_linker="$host_os dld.so"
20604 shlibpath_var=LD_LIBRARY_PATH
20605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20607 soname_spec='${libname}${release}${shared_ext}$major'
20608 if test "X$HPUX_IA64_MODE" = X32; then
20609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20610 else
20611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20615 hppa*64*)
20616 shrext_cmds='.sl'
20617 hardcode_into_libs=yes
20618 dynamic_linker="$host_os dld.sl"
20619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622 soname_spec='${libname}${release}${shared_ext}$major'
20623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20627 shrext_cmds='.sl'
20628 dynamic_linker="$host_os dld.sl"
20629 shlibpath_var=SHLIB_PATH
20630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20632 soname_spec='${libname}${release}${shared_ext}$major'
20634 esac
20635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20636 postinstall_cmds='chmod 555 $lib'
20637 # or fails outright, so override atomically:
20638 install_override_mode=555
20641 interix[3-9]*)
20642 version_type=linux
20643 need_lib_prefix=no
20644 need_version=no
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 shlibpath_overrides_runpath=no
20650 hardcode_into_libs=yes
20653 irix5* | irix6* | nonstopux*)
20654 case $host_os in
20655 nonstopux*) version_type=nonstopux ;;
20657 if test "$lt_cv_prog_gnu_ld" = yes; then
20658 version_type=linux
20659 else
20660 version_type=irix
20661 fi ;;
20662 esac
20663 need_lib_prefix=no
20664 need_version=no
20665 soname_spec='${libname}${release}${shared_ext}$major'
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20667 case $host_os in
20668 irix5* | nonstopux*)
20669 libsuff= shlibsuff=
20672 case $LD in # libtool.m4 will add one of these switches to LD
20673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20674 libsuff= shlibsuff= libmagic=32-bit;;
20675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20676 libsuff=32 shlibsuff=N32 libmagic=N32;;
20677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20679 *) libsuff= shlibsuff= libmagic=never-match;;
20680 esac
20682 esac
20683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20684 shlibpath_overrides_runpath=no
20685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20687 hardcode_into_libs=yes
20690 # No shared lib support for Linux oldld, aout, or coff.
20691 linux*oldld* | linux*aout* | linux*coff*)
20692 dynamic_linker=no
20695 # This must be Linux ELF.
20697 # uclinux* changes (here and below) have been submitted to the libtool
20698 # project, but have not yet been accepted: they are GCC-local changes
20699 # for the time being. (See
20700 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20702 version_type=linux
20703 need_lib_prefix=no
20704 need_version=no
20705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20706 soname_spec='${libname}${release}${shared_ext}$major'
20707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20708 shlibpath_var=LD_LIBRARY_PATH
20709 shlibpath_overrides_runpath=no
20711 # Some binutils ld are patched to set DT_RUNPATH
20712 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20713 $as_echo_n "(cached) " >&6
20714 else
20715 lt_cv_shlibpath_overrides_runpath=no
20716 save_LDFLAGS=$LDFLAGS
20717 save_libdir=$libdir
20718 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20719 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20721 /* end confdefs.h. */
20724 main ()
20728 return 0;
20730 _ACEOF
20731 if ac_fn_c_try_link "$LINENO"; then :
20732 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20733 lt_cv_shlibpath_overrides_runpath=yes
20736 rm -f core conftest.err conftest.$ac_objext \
20737 conftest$ac_exeext conftest.$ac_ext
20738 LDFLAGS=$save_LDFLAGS
20739 libdir=$save_libdir
20743 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20745 # This implies no fast_install, which is unacceptable.
20746 # Some rework will be needed to allow for fast_install
20747 # before this can be enabled.
20748 hardcode_into_libs=yes
20750 # Append ld.so.conf contents to the search path
20751 if test -f /etc/ld.so.conf; then
20752 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' ' '`
20753 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20756 # We used to test for /lib/ld.so.1 and disable shared libraries on
20757 # powerpc, because MkLinux only supported shared libraries with the
20758 # GNU dynamic linker. Since this was broken with cross compilers,
20759 # most powerpc-linux boxes support dynamic linking these days and
20760 # people can always --disable-shared, the test was removed, and we
20761 # assume the GNU/Linux dynamic linker is in use.
20762 dynamic_linker='GNU/Linux ld.so'
20765 netbsd*)
20766 version_type=sunos
20767 need_lib_prefix=no
20768 need_version=no
20769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20772 dynamic_linker='NetBSD (a.out) ld.so'
20773 else
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20775 soname_spec='${libname}${release}${shared_ext}$major'
20776 dynamic_linker='NetBSD ld.elf_so'
20778 shlibpath_var=LD_LIBRARY_PATH
20779 shlibpath_overrides_runpath=yes
20780 hardcode_into_libs=yes
20783 newsos6)
20784 version_type=linux
20785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20786 shlibpath_var=LD_LIBRARY_PATH
20787 shlibpath_overrides_runpath=yes
20790 *nto* | *qnx*)
20791 version_type=qnx
20792 need_lib_prefix=no
20793 need_version=no
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20795 soname_spec='${libname}${release}${shared_ext}$major'
20796 shlibpath_var=LD_LIBRARY_PATH
20797 shlibpath_overrides_runpath=no
20798 hardcode_into_libs=yes
20799 dynamic_linker='ldqnx.so'
20802 openbsd*)
20803 version_type=sunos
20804 sys_lib_dlsearch_path_spec="/usr/lib"
20805 need_lib_prefix=no
20806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20807 case $host_os in
20808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20809 *) need_version=no ;;
20810 esac
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20815 case $host_os in
20816 openbsd2.[89] | openbsd2.[89].*)
20817 shlibpath_overrides_runpath=no
20820 shlibpath_overrides_runpath=yes
20822 esac
20823 else
20824 shlibpath_overrides_runpath=yes
20828 os2*)
20829 libname_spec='$name'
20830 shrext_cmds=".dll"
20831 need_lib_prefix=no
20832 library_names_spec='$libname${shared_ext} $libname.a'
20833 dynamic_linker='OS/2 ld.exe'
20834 shlibpath_var=LIBPATH
20837 osf3* | osf4* | osf5*)
20838 version_type=osf
20839 need_lib_prefix=no
20840 need_version=no
20841 soname_spec='${libname}${release}${shared_ext}$major'
20842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20848 rdos*)
20849 dynamic_linker=no
20852 solaris*)
20853 version_type=linux
20854 need_lib_prefix=no
20855 need_version=no
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857 soname_spec='${libname}${release}${shared_ext}$major'
20858 shlibpath_var=LD_LIBRARY_PATH
20859 shlibpath_overrides_runpath=yes
20860 hardcode_into_libs=yes
20861 # ldd complains unless libraries are executable
20862 postinstall_cmds='chmod +x $lib'
20865 sunos4*)
20866 version_type=sunos
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20868 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20869 shlibpath_var=LD_LIBRARY_PATH
20870 shlibpath_overrides_runpath=yes
20871 if test "$with_gnu_ld" = yes; then
20872 need_lib_prefix=no
20874 need_version=yes
20877 sysv4 | sysv4.3*)
20878 version_type=linux
20879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec='${libname}${release}${shared_ext}$major'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 case $host_vendor in
20883 sni)
20884 shlibpath_overrides_runpath=no
20885 need_lib_prefix=no
20886 runpath_var=LD_RUN_PATH
20888 siemens)
20889 need_lib_prefix=no
20891 motorola)
20892 need_lib_prefix=no
20893 need_version=no
20894 shlibpath_overrides_runpath=no
20895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20897 esac
20900 sysv4*MP*)
20901 if test -d /usr/nec ;then
20902 version_type=linux
20903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20904 soname_spec='$libname${shared_ext}.$major'
20905 shlibpath_var=LD_LIBRARY_PATH
20909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20910 version_type=freebsd-elf
20911 need_lib_prefix=no
20912 need_version=no
20913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20914 soname_spec='${libname}${release}${shared_ext}$major'
20915 shlibpath_var=LD_LIBRARY_PATH
20916 shlibpath_overrides_runpath=yes
20917 hardcode_into_libs=yes
20918 if test "$with_gnu_ld" = yes; then
20919 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20920 else
20921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20922 case $host_os in
20923 sco3.2v5*)
20924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20926 esac
20928 sys_lib_dlsearch_path_spec='/usr/lib'
20931 tpf*)
20932 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20933 version_type=linux
20934 need_lib_prefix=no
20935 need_version=no
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20937 shlibpath_var=LD_LIBRARY_PATH
20938 shlibpath_overrides_runpath=no
20939 hardcode_into_libs=yes
20942 uts4*)
20943 version_type=linux
20944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20945 soname_spec='${libname}${release}${shared_ext}$major'
20946 shlibpath_var=LD_LIBRARY_PATH
20949 # Shared libraries for VwWorks, >= 7 only at this stage
20950 # and (fpic) still incompatible with "large" code models
20951 # in a few configurations. Only for RTP mode in any case,
20952 # and upon explicit request at configure time.
20953 vxworks7*)
20954 dynamic_linker=no
20955 case ${with_multisubdir}-${enable_shared} in
20956 *large*)
20958 *mrtp*-yes)
20959 version_type=linux
20960 need_lib_prefix=no
20961 need_version=no
20962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20963 soname_spec='${libname}${release}${shared_ext}$major'
20964 dynamic_linker="$host_os module_loader"
20966 esac
20969 dynamic_linker=no
20971 esac
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20973 $as_echo "$dynamic_linker" >&6; }
20974 test "$dynamic_linker" = no && can_build_shared=no
20976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20977 if test "$GCC" = yes; then
20978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21081 hardcode_action=
21082 if test -n "$hardcode_libdir_flag_spec" ||
21083 test -n "$runpath_var" ||
21084 test "X$hardcode_automatic" = "Xyes" ; then
21086 # We can hardcode non-existent directories.
21087 if test "$hardcode_direct" != no &&
21088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21089 # have to relink, otherwise we might link with an installed library
21090 # when we should be linking with a yet-to-be-installed one
21091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21092 test "$hardcode_minus_L" != no; then
21093 # Linking always hardcodes the temporary library directory.
21094 hardcode_action=relink
21095 else
21096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21097 hardcode_action=immediate
21099 else
21100 # We cannot hardcode anything, or else we can only hardcode existing
21101 # directories.
21102 hardcode_action=unsupported
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21105 $as_echo "$hardcode_action" >&6; }
21107 if test "$hardcode_action" = relink ||
21108 test "$inherit_rpath" = yes; then
21109 # Fast installation is not supported
21110 enable_fast_install=no
21111 elif test "$shlibpath_overrides_runpath" = yes ||
21112 test "$enable_shared" = no; then
21113 # Fast installation is not necessary
21114 enable_fast_install=needless
21122 if test "x$enable_dlopen" != xyes; then
21123 enable_dlopen=unknown
21124 enable_dlopen_self=unknown
21125 enable_dlopen_self_static=unknown
21126 else
21127 lt_cv_dlopen=no
21128 lt_cv_dlopen_libs=
21130 case $host_os in
21131 beos*)
21132 lt_cv_dlopen="load_add_on"
21133 lt_cv_dlopen_libs=
21134 lt_cv_dlopen_self=yes
21137 mingw* | pw32* | cegcc*)
21138 lt_cv_dlopen="LoadLibrary"
21139 lt_cv_dlopen_libs=
21142 cygwin*)
21143 lt_cv_dlopen="dlopen"
21144 lt_cv_dlopen_libs=
21147 darwin*)
21148 # if libdl is installed we need to link against it
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21151 if ${ac_cv_lib_dl_dlopen+:} false; then :
21152 $as_echo_n "(cached) " >&6
21153 else
21154 ac_check_lib_save_LIBS=$LIBS
21155 LIBS="-ldl $LIBS"
21156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157 /* end confdefs.h. */
21159 /* Override any GCC internal prototype to avoid an error.
21160 Use char because int might match the return type of a GCC
21161 builtin and then its argument prototype would still apply. */
21162 #ifdef __cplusplus
21163 extern "C"
21164 #endif
21165 char dlopen ();
21167 main ()
21169 return dlopen ();
21171 return 0;
21173 _ACEOF
21174 if ac_fn_c_try_link "$LINENO"; then :
21175 ac_cv_lib_dl_dlopen=yes
21176 else
21177 ac_cv_lib_dl_dlopen=no
21179 rm -f core conftest.err conftest.$ac_objext \
21180 conftest$ac_exeext conftest.$ac_ext
21181 LIBS=$ac_check_lib_save_LIBS
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21187 else
21189 lt_cv_dlopen="dyld"
21190 lt_cv_dlopen_libs=
21191 lt_cv_dlopen_self=yes
21198 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21199 if test "x$ac_cv_func_shl_load" = xyes; then :
21200 lt_cv_dlopen="shl_load"
21201 else
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21203 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21204 if ${ac_cv_lib_dld_shl_load+:} false; then :
21205 $as_echo_n "(cached) " >&6
21206 else
21207 ac_check_lib_save_LIBS=$LIBS
21208 LIBS="-ldld $LIBS"
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21210 /* end confdefs.h. */
21212 /* Override any GCC internal prototype to avoid an error.
21213 Use char because int might match the return type of a GCC
21214 builtin and then its argument prototype would still apply. */
21215 #ifdef __cplusplus
21216 extern "C"
21217 #endif
21218 char shl_load ();
21220 main ()
21222 return shl_load ();
21224 return 0;
21226 _ACEOF
21227 if ac_fn_c_try_link "$LINENO"; then :
21228 ac_cv_lib_dld_shl_load=yes
21229 else
21230 ac_cv_lib_dld_shl_load=no
21232 rm -f core conftest.err conftest.$ac_objext \
21233 conftest$ac_exeext conftest.$ac_ext
21234 LIBS=$ac_check_lib_save_LIBS
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21237 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21238 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21239 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21240 else
21241 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21242 if test "x$ac_cv_func_dlopen" = xyes; then :
21243 lt_cv_dlopen="dlopen"
21244 else
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21247 if ${ac_cv_lib_dl_dlopen+:} false; then :
21248 $as_echo_n "(cached) " >&6
21249 else
21250 ac_check_lib_save_LIBS=$LIBS
21251 LIBS="-ldl $LIBS"
21252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21255 /* Override any GCC internal prototype to avoid an error.
21256 Use char because int might match the return type of a GCC
21257 builtin and then its argument prototype would still apply. */
21258 #ifdef __cplusplus
21259 extern "C"
21260 #endif
21261 char dlopen ();
21263 main ()
21265 return dlopen ();
21267 return 0;
21269 _ACEOF
21270 if ac_fn_c_try_link "$LINENO"; then :
21271 ac_cv_lib_dl_dlopen=yes
21272 else
21273 ac_cv_lib_dl_dlopen=no
21275 rm -f core conftest.err conftest.$ac_objext \
21276 conftest$ac_exeext conftest.$ac_ext
21277 LIBS=$ac_check_lib_save_LIBS
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21281 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21283 else
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21285 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21286 if ${ac_cv_lib_svld_dlopen+:} false; then :
21287 $as_echo_n "(cached) " >&6
21288 else
21289 ac_check_lib_save_LIBS=$LIBS
21290 LIBS="-lsvld $LIBS"
21291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h. */
21294 /* Override any GCC internal prototype to avoid an error.
21295 Use char because int might match the return type of a GCC
21296 builtin and then its argument prototype would still apply. */
21297 #ifdef __cplusplus
21298 extern "C"
21299 #endif
21300 char dlopen ();
21302 main ()
21304 return dlopen ();
21306 return 0;
21308 _ACEOF
21309 if ac_fn_c_try_link "$LINENO"; then :
21310 ac_cv_lib_svld_dlopen=yes
21311 else
21312 ac_cv_lib_svld_dlopen=no
21314 rm -f core conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21316 LIBS=$ac_check_lib_save_LIBS
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21319 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21320 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21322 else
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21325 if ${ac_cv_lib_dld_dld_link+:} false; then :
21326 $as_echo_n "(cached) " >&6
21327 else
21328 ac_check_lib_save_LIBS=$LIBS
21329 LIBS="-ldld $LIBS"
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21333 /* Override any GCC internal prototype to avoid an error.
21334 Use char because int might match the return type of a GCC
21335 builtin and then its argument prototype would still apply. */
21336 #ifdef __cplusplus
21337 extern "C"
21338 #endif
21339 char dld_link ();
21341 main ()
21343 return dld_link ();
21345 return 0;
21347 _ACEOF
21348 if ac_fn_c_try_link "$LINENO"; then :
21349 ac_cv_lib_dld_dld_link=yes
21350 else
21351 ac_cv_lib_dld_dld_link=no
21353 rm -f core conftest.err conftest.$ac_objext \
21354 conftest$ac_exeext conftest.$ac_ext
21355 LIBS=$ac_check_lib_save_LIBS
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21359 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21360 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21379 esac
21381 if test "x$lt_cv_dlopen" != xno; then
21382 enable_dlopen=yes
21383 else
21384 enable_dlopen=no
21387 case $lt_cv_dlopen in
21388 dlopen)
21389 save_CPPFLAGS="$CPPFLAGS"
21390 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21392 save_LDFLAGS="$LDFLAGS"
21393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21395 save_LIBS="$LIBS"
21396 LIBS="$lt_cv_dlopen_libs $LIBS"
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21400 if ${lt_cv_dlopen_self+:} false; then :
21401 $as_echo_n "(cached) " >&6
21402 else
21403 if test "$cross_compiling" = yes; then :
21404 lt_cv_dlopen_self=cross
21405 else
21406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21407 lt_status=$lt_dlunknown
21408 cat > conftest.$ac_ext <<_LT_EOF
21409 #line 21409 "configure"
21410 #include "confdefs.h"
21412 #if HAVE_DLFCN_H
21413 #include <dlfcn.h>
21414 #endif
21416 #include <stdio.h>
21418 #ifdef RTLD_GLOBAL
21419 # define LT_DLGLOBAL RTLD_GLOBAL
21420 #else
21421 # ifdef DL_GLOBAL
21422 # define LT_DLGLOBAL DL_GLOBAL
21423 # else
21424 # define LT_DLGLOBAL 0
21425 # endif
21426 #endif
21428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21429 find out it does not work in some platform. */
21430 #ifndef LT_DLLAZY_OR_NOW
21431 # ifdef RTLD_LAZY
21432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21433 # else
21434 # ifdef DL_LAZY
21435 # define LT_DLLAZY_OR_NOW DL_LAZY
21436 # else
21437 # ifdef RTLD_NOW
21438 # define LT_DLLAZY_OR_NOW RTLD_NOW
21439 # else
21440 # ifdef DL_NOW
21441 # define LT_DLLAZY_OR_NOW DL_NOW
21442 # else
21443 # define LT_DLLAZY_OR_NOW 0
21444 # endif
21445 # endif
21446 # endif
21447 # endif
21448 #endif
21450 /* When -fvisbility=hidden is used, assume the code has been annotated
21451 correspondingly for the symbols needed. */
21452 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21453 void fnord () __attribute__((visibility("default")));
21454 #endif
21456 void fnord () { int i=42; }
21457 int main ()
21459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21460 int status = $lt_dlunknown;
21462 if (self)
21464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21465 else
21467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21468 else puts (dlerror ());
21470 /* dlclose (self); */
21472 else
21473 puts (dlerror ());
21475 return status;
21477 _LT_EOF
21478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21479 (eval $ac_link) 2>&5
21480 ac_status=$?
21481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21483 (./conftest; exit; ) >&5 2>/dev/null
21484 lt_status=$?
21485 case x$lt_status in
21486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21488 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21489 esac
21490 else :
21491 # compilation failed
21492 lt_cv_dlopen_self=no
21495 rm -fr conftest*
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21500 $as_echo "$lt_cv_dlopen_self" >&6; }
21502 if test "x$lt_cv_dlopen_self" = xyes; then
21503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21505 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21506 if ${lt_cv_dlopen_self_static+:} false; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 if test "$cross_compiling" = yes; then :
21510 lt_cv_dlopen_self_static=cross
21511 else
21512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21513 lt_status=$lt_dlunknown
21514 cat > conftest.$ac_ext <<_LT_EOF
21515 #line 21515 "configure"
21516 #include "confdefs.h"
21518 #if HAVE_DLFCN_H
21519 #include <dlfcn.h>
21520 #endif
21522 #include <stdio.h>
21524 #ifdef RTLD_GLOBAL
21525 # define LT_DLGLOBAL RTLD_GLOBAL
21526 #else
21527 # ifdef DL_GLOBAL
21528 # define LT_DLGLOBAL DL_GLOBAL
21529 # else
21530 # define LT_DLGLOBAL 0
21531 # endif
21532 #endif
21534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21535 find out it does not work in some platform. */
21536 #ifndef LT_DLLAZY_OR_NOW
21537 # ifdef RTLD_LAZY
21538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21539 # else
21540 # ifdef DL_LAZY
21541 # define LT_DLLAZY_OR_NOW DL_LAZY
21542 # else
21543 # ifdef RTLD_NOW
21544 # define LT_DLLAZY_OR_NOW RTLD_NOW
21545 # else
21546 # ifdef DL_NOW
21547 # define LT_DLLAZY_OR_NOW DL_NOW
21548 # else
21549 # define LT_DLLAZY_OR_NOW 0
21550 # endif
21551 # endif
21552 # endif
21553 # endif
21554 #endif
21556 /* When -fvisbility=hidden is used, assume the code has been annotated
21557 correspondingly for the symbols needed. */
21558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21559 void fnord () __attribute__((visibility("default")));
21560 #endif
21562 void fnord () { int i=42; }
21563 int main ()
21565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21566 int status = $lt_dlunknown;
21568 if (self)
21570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21571 else
21573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21574 else puts (dlerror ());
21576 /* dlclose (self); */
21578 else
21579 puts (dlerror ());
21581 return status;
21583 _LT_EOF
21584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21585 (eval $ac_link) 2>&5
21586 ac_status=$?
21587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21589 (./conftest; exit; ) >&5 2>/dev/null
21590 lt_status=$?
21591 case x$lt_status in
21592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21595 esac
21596 else :
21597 # compilation failed
21598 lt_cv_dlopen_self_static=no
21601 rm -fr conftest*
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21606 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21609 CPPFLAGS="$save_CPPFLAGS"
21610 LDFLAGS="$save_LDFLAGS"
21611 LIBS="$save_LIBS"
21613 esac
21615 case $lt_cv_dlopen_self in
21616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21617 *) enable_dlopen_self=unknown ;;
21618 esac
21620 case $lt_cv_dlopen_self_static in
21621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21622 *) enable_dlopen_self_static=unknown ;;
21623 esac
21642 striplib=
21643 old_striplib=
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21645 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21648 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21650 $as_echo "yes" >&6; }
21651 else
21652 # FIXME - insert some real tests, host_os isn't really good enough
21653 case $host_os in
21654 darwin*)
21655 if test -n "$STRIP" ; then
21656 striplib="$STRIP -x"
21657 old_striplib="$STRIP -S"
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21659 $as_echo "yes" >&6; }
21660 else
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21662 $as_echo "no" >&6; }
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21667 $as_echo "no" >&6; }
21669 esac
21683 # Report which library types will actually be built
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21685 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21687 $as_echo "$can_build_shared" >&6; }
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21690 $as_echo_n "checking whether to build shared libraries... " >&6; }
21691 test "$can_build_shared" = "no" && enable_shared=no
21693 # On AIX, shared libraries and static libraries use the same namespace, and
21694 # are all built from PIC.
21695 case $host_os in
21696 aix3*)
21697 test "$enable_shared" = yes && enable_static=no
21698 if test -n "$RANLIB"; then
21699 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21700 postinstall_cmds='$RANLIB $lib'
21704 aix[4-9]*)
21705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21706 test "$enable_shared" = yes && enable_static=no
21709 esac
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21711 $as_echo "$enable_shared" >&6; }
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21714 $as_echo_n "checking whether to build static libraries... " >&6; }
21715 # Make sure either enable_shared or enable_static is yes.
21716 test "$enable_shared" = yes || enable_static=yes
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21718 $as_echo "$enable_static" >&6; }
21724 ac_ext=cpp
21725 ac_cpp='$CXXCPP $CPPFLAGS'
21726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21730 CC="$lt_save_CC"
21732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21734 (test "X$CXX" != "Xg++"))) ; then
21735 ac_ext=cpp
21736 ac_cpp='$CXXCPP $CPPFLAGS'
21737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21741 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21742 if test -z "$CXXCPP"; then
21743 if ${ac_cv_prog_CXXCPP+:} false; then :
21744 $as_echo_n "(cached) " >&6
21745 else
21746 # Double quotes because CXXCPP needs to be expanded
21747 for CXXCPP in "$CXX -E" "/lib/cpp"
21749 ac_preproc_ok=false
21750 for ac_cxx_preproc_warn_flag in '' yes
21752 # Use a header file that comes with gcc, so configuring glibc
21753 # with a fresh cross-compiler works.
21754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21755 # <limits.h> exists even on freestanding compilers.
21756 # On the NeXT, cc -E runs the code through the compiler's parser,
21757 # not just through cpp. "Syntax error" is here to catch this case.
21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h. */
21760 #ifdef __STDC__
21761 # include <limits.h>
21762 #else
21763 # include <assert.h>
21764 #endif
21765 Syntax error
21766 _ACEOF
21767 if ac_fn_cxx_try_cpp "$LINENO"; then :
21769 else
21770 # Broken: fails on valid input.
21771 continue
21773 rm -f conftest.err conftest.i conftest.$ac_ext
21775 # OK, works on sane cases. Now check whether nonexistent headers
21776 # can be detected and how.
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21779 #include <ac_nonexistent.h>
21780 _ACEOF
21781 if ac_fn_cxx_try_cpp "$LINENO"; then :
21782 # Broken: success on invalid input.
21783 continue
21784 else
21785 # Passes both tests.
21786 ac_preproc_ok=:
21787 break
21789 rm -f conftest.err conftest.i conftest.$ac_ext
21791 done
21792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21793 rm -f conftest.i conftest.err conftest.$ac_ext
21794 if $ac_preproc_ok; then :
21795 break
21798 done
21799 ac_cv_prog_CXXCPP=$CXXCPP
21802 CXXCPP=$ac_cv_prog_CXXCPP
21803 else
21804 ac_cv_prog_CXXCPP=$CXXCPP
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21807 $as_echo "$CXXCPP" >&6; }
21808 ac_preproc_ok=false
21809 for ac_cxx_preproc_warn_flag in '' yes
21811 # Use a header file that comes with gcc, so configuring glibc
21812 # with a fresh cross-compiler works.
21813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 # <limits.h> exists even on freestanding compilers.
21815 # On the NeXT, cc -E runs the code through the compiler's parser,
21816 # not just through cpp. "Syntax error" is here to catch this case.
21817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h. */
21819 #ifdef __STDC__
21820 # include <limits.h>
21821 #else
21822 # include <assert.h>
21823 #endif
21824 Syntax error
21825 _ACEOF
21826 if ac_fn_cxx_try_cpp "$LINENO"; then :
21828 else
21829 # Broken: fails on valid input.
21830 continue
21832 rm -f conftest.err conftest.i conftest.$ac_ext
21834 # OK, works on sane cases. Now check whether nonexistent headers
21835 # can be detected and how.
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21838 #include <ac_nonexistent.h>
21839 _ACEOF
21840 if ac_fn_cxx_try_cpp "$LINENO"; then :
21841 # Broken: success on invalid input.
21842 continue
21843 else
21844 # Passes both tests.
21845 ac_preproc_ok=:
21846 break
21848 rm -f conftest.err conftest.i conftest.$ac_ext
21850 done
21851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21852 rm -f conftest.i conftest.err conftest.$ac_ext
21853 if $ac_preproc_ok; then :
21855 else
21856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21858 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
21859 See \`config.log' for more details" "$LINENO" 5; }
21862 ac_ext=cpp
21863 ac_cpp='$CXXCPP $CPPFLAGS'
21864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21868 else
21869 _lt_caught_CXX_error=yes
21872 ac_ext=cpp
21873 ac_cpp='$CXXCPP $CPPFLAGS'
21874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21878 archive_cmds_need_lc_CXX=no
21879 allow_undefined_flag_CXX=
21880 always_export_symbols_CXX=no
21881 archive_expsym_cmds_CXX=
21882 compiler_needs_object_CXX=no
21883 export_dynamic_flag_spec_CXX=
21884 hardcode_direct_CXX=no
21885 hardcode_direct_absolute_CXX=no
21886 hardcode_libdir_flag_spec_CXX=
21887 hardcode_libdir_flag_spec_ld_CXX=
21888 hardcode_libdir_separator_CXX=
21889 hardcode_minus_L_CXX=no
21890 hardcode_shlibpath_var_CXX=unsupported
21891 hardcode_automatic_CXX=no
21892 inherit_rpath_CXX=no
21893 module_cmds_CXX=
21894 module_expsym_cmds_CXX=
21895 link_all_deplibs_CXX=unknown
21896 old_archive_cmds_CXX=$old_archive_cmds
21897 reload_flag_CXX=$reload_flag
21898 reload_cmds_CXX=$reload_cmds
21899 no_undefined_flag_CXX=
21900 whole_archive_flag_spec_CXX=
21901 enable_shared_with_static_runtimes_CXX=no
21903 # Source file extension for C++ test sources.
21904 ac_ext=cpp
21906 # Object file extension for compiled C++ test sources.
21907 objext=o
21908 objext_CXX=$objext
21910 # No sense in running all these tests if we already determined that
21911 # the CXX compiler isn't working. Some variables (like enable_shared)
21912 # are currently assumed to apply to all compilers on this platform,
21913 # and will be corrupted by setting them based on a non-working compiler.
21914 if test "$_lt_caught_CXX_error" != yes; then
21915 # Code to be used in simple compile tests
21916 lt_simple_compile_test_code="int some_variable = 0;"
21918 # Code to be used in simple link tests
21919 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21928 # If no C compiler was specified, use CC.
21929 LTCC=${LTCC-"$CC"}
21931 # If no C compiler flags were specified, use CFLAGS.
21932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21934 # Allow CC to be a program name with arguments.
21935 compiler=$CC
21938 # save warnings/boilerplate of simple test code
21939 ac_outfile=conftest.$ac_objext
21940 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21942 _lt_compiler_boilerplate=`cat conftest.err`
21943 $RM conftest*
21945 ac_outfile=conftest.$ac_objext
21946 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21948 _lt_linker_boilerplate=`cat conftest.err`
21949 $RM -r conftest*
21952 # Allow CC to be a program name with arguments.
21953 lt_save_CC=$CC
21954 lt_save_LD=$LD
21955 lt_save_GCC=$GCC
21956 GCC=$GXX
21957 lt_save_with_gnu_ld=$with_gnu_ld
21958 lt_save_path_LD=$lt_cv_path_LD
21959 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21960 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21961 else
21962 $as_unset lt_cv_prog_gnu_ld
21964 if test -n "${lt_cv_path_LDCXX+set}"; then
21965 lt_cv_path_LD=$lt_cv_path_LDCXX
21966 else
21967 $as_unset lt_cv_path_LD
21969 test -z "${LDCXX+set}" || LD=$LDCXX
21970 CC=${CXX-"c++"}
21971 compiler=$CC
21972 compiler_CXX=$CC
21973 for cc_temp in $compiler""; do
21974 case $cc_temp in
21975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21977 \-*) ;;
21978 *) break;;
21979 esac
21980 done
21981 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21984 if test -n "$compiler"; then
21985 # We don't want -fno-exception when compiling C++ code, so set the
21986 # no_builtin_flag separately
21987 if test "$GXX" = yes; then
21988 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21989 else
21990 lt_prog_compiler_no_builtin_flag_CXX=
21993 if test "$GXX" = yes; then
21994 # Set up default GNU C++ configuration
21998 # Check whether --with-gnu-ld was given.
21999 if test "${with_gnu_ld+set}" = set; then :
22000 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22001 else
22002 with_gnu_ld=no
22005 ac_prog=ld
22006 if test "$GCC" = yes; then
22007 # Check if gcc -print-prog-name=ld gives a path.
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22009 $as_echo_n "checking for ld used by $CC... " >&6; }
22010 case $host in
22011 *-*-mingw*)
22012 # gcc leaves a trailing carriage return which upsets mingw
22013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22016 esac
22017 case $ac_prog in
22018 # Accept absolute paths.
22019 [\\/]* | ?:[\\/]*)
22020 re_direlt='/[^/][^/]*/\.\./'
22021 # Canonicalize the pathname of ld
22022 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22023 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22024 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22025 done
22026 test -z "$LD" && LD="$ac_prog"
22029 # If it fails, then pretend we aren't using GCC.
22030 ac_prog=ld
22033 # If it is relative, then search for the first ld in PATH.
22034 with_gnu_ld=unknown
22036 esac
22037 elif test "$with_gnu_ld" = yes; then
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22039 $as_echo_n "checking for GNU ld... " >&6; }
22040 else
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22042 $as_echo_n "checking for non-GNU ld... " >&6; }
22044 if ${lt_cv_path_LD+:} false; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 if test -z "$LD"; then
22048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22049 for ac_dir in $PATH; do
22050 IFS="$lt_save_ifs"
22051 test -z "$ac_dir" && ac_dir=.
22052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22053 lt_cv_path_LD="$ac_dir/$ac_prog"
22054 # Check to see if the program is GNU ld. I'd rather use --version,
22055 # but apparently some variants of GNU ld only accept -v.
22056 # Break only if it was the GNU/non-GNU ld that we prefer.
22057 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22058 *GNU* | *'with BFD'*)
22059 test "$with_gnu_ld" != no && break
22062 test "$with_gnu_ld" != yes && break
22064 esac
22066 done
22067 IFS="$lt_save_ifs"
22068 else
22069 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22073 LD="$lt_cv_path_LD"
22074 if test -n "$LD"; then
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22076 $as_echo "$LD" >&6; }
22077 else
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079 $as_echo "no" >&6; }
22081 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22083 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22084 if ${lt_cv_prog_gnu_ld+:} false; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22088 case `$LD -v 2>&1 </dev/null` in
22089 *GNU* | *'with BFD'*)
22090 lt_cv_prog_gnu_ld=yes
22093 lt_cv_prog_gnu_ld=no
22095 esac
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22098 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22099 with_gnu_ld=$lt_cv_prog_gnu_ld
22107 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22108 # archiving commands below assume that GNU ld is being used.
22109 if test "$with_gnu_ld" = yes; then
22110 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22111 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'
22113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22114 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22116 # If archive_cmds runs LD, not CC, wlarc should be empty
22117 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22118 # investigate it a little bit more. (MM)
22119 wlarc='${wl}'
22121 # ancient GNU ld didn't support --whole-archive et. al.
22122 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22123 $GREP 'no-whole-archive' > /dev/null; then
22124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22125 else
22126 whole_archive_flag_spec_CXX=
22128 else
22129 with_gnu_ld=no
22130 wlarc=
22132 # A generic and very simple default shared library creation
22133 # command for GNU C++ for the case where it uses the native
22134 # linker, instead of GNU ld. If possible, this setting should
22135 # overridden to take advantage of the native linker features on
22136 # the platform it is being used on.
22137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22140 # Commands to make compiler produce verbose output that lists
22141 # what "hidden" libraries, object files and flags are used when
22142 # linking a shared library.
22143 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22145 else
22146 GXX=no
22147 with_gnu_ld=no
22148 wlarc=
22151 # PORTME: fill in a description of your system's C++ link characteristics
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22154 ld_shlibs_CXX=yes
22155 case $host_os in
22156 aix3*)
22157 # FIXME: insert proper C++ library support
22158 ld_shlibs_CXX=no
22160 aix[4-9]*)
22161 if test "$host_cpu" = ia64; then
22162 # On IA64, the linker does run time linking by default, so we don't
22163 # have to do anything special.
22164 aix_use_runtimelinking=no
22165 exp_sym_flag='-Bexport'
22166 no_entry_flag=""
22167 else
22168 aix_use_runtimelinking=no
22170 # Test if we are trying to use run time linking or normal
22171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22172 # need to do runtime linking.
22173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22174 for ld_flag in $LDFLAGS; do
22175 case $ld_flag in
22176 *-brtl*)
22177 aix_use_runtimelinking=yes
22178 break
22180 esac
22181 done
22183 esac
22185 exp_sym_flag='-bexport'
22186 no_entry_flag='-bnoentry'
22189 # When large executables or shared objects are built, AIX ld can
22190 # have problems creating the table of contents. If linking a library
22191 # or program results in "error TOC overflow" add -mminimal-toc to
22192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22195 archive_cmds_CXX=''
22196 hardcode_direct_CXX=yes
22197 hardcode_direct_absolute_CXX=yes
22198 hardcode_libdir_separator_CXX=':'
22199 link_all_deplibs_CXX=yes
22200 file_list_spec_CXX='${wl}-f,'
22202 if test "$GXX" = yes; then
22203 case $host_os in aix4.[012]|aix4.[012].*)
22204 # We only want to do this on AIX 4.2 and lower, the check
22205 # below for broken collect2 doesn't work under 4.3+
22206 collect2name=`${CC} -print-prog-name=collect2`
22207 if test -f "$collect2name" &&
22208 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22209 then
22210 # We have reworked collect2
22212 else
22213 # We have old collect2
22214 hardcode_direct_CXX=unsupported
22215 # It fails to find uninstalled libraries when the uninstalled
22216 # path is not listed in the libpath. Setting hardcode_minus_L
22217 # to unsupported forces relinking
22218 hardcode_minus_L_CXX=yes
22219 hardcode_libdir_flag_spec_CXX='-L$libdir'
22220 hardcode_libdir_separator_CXX=
22222 esac
22223 shared_flag='-shared'
22224 if test "$aix_use_runtimelinking" = yes; then
22225 shared_flag="$shared_flag "'${wl}-G'
22227 else
22228 # not using gcc
22229 if test "$host_cpu" = ia64; then
22230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22231 # chokes on -Wl,-G. The following line is correct:
22232 shared_flag='-G'
22233 else
22234 if test "$aix_use_runtimelinking" = yes; then
22235 shared_flag='${wl}-G'
22236 else
22237 shared_flag='${wl}-bM:SRE'
22242 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22243 # It seems that -bexpall does not export symbols beginning with
22244 # underscore (_), so it is better to generate a list of symbols to
22245 # export.
22246 always_export_symbols_CXX=yes
22247 if test "$aix_use_runtimelinking" = yes; then
22248 # Warning - without using the other runtime loading flags (-brtl),
22249 # -berok will link without error, but may produce a broken library.
22250 allow_undefined_flag_CXX='-berok'
22251 # Determine the default libpath from the value encoded in an empty
22252 # executable.
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22257 main ()
22261 return 0;
22263 _ACEOF
22264 if ac_fn_cxx_try_link "$LINENO"; then :
22266 lt_aix_libpath_sed='
22267 /Import File Strings/,/^$/ {
22268 /^0/ {
22269 s/^0 *\(.*\)$/\1/
22273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22274 # Check for a 64-bit object if we didn't find anything.
22275 if test -z "$aix_libpath"; then
22276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22279 rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22285 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"
22286 else
22287 if test "$host_cpu" = ia64; then
22288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22289 allow_undefined_flag_CXX="-z nodefs"
22290 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"
22291 else
22292 # Determine the default libpath from the value encoded in an
22293 # empty executable.
22294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22295 /* end confdefs.h. */
22298 main ()
22302 return 0;
22304 _ACEOF
22305 if ac_fn_cxx_try_link "$LINENO"; then :
22307 lt_aix_libpath_sed='
22308 /Import File Strings/,/^$/ {
22309 /^0/ {
22310 s/^0 *\(.*\)$/\1/
22314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22315 # Check for a 64-bit object if we didn't find anything.
22316 if test -z "$aix_libpath"; then
22317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22320 rm -f core conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
22322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22324 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22325 # Warning - without using the other run time loading flags,
22326 # -berok will link without error, but may produce a broken library.
22327 no_undefined_flag_CXX=' ${wl}-bernotok'
22328 allow_undefined_flag_CXX=' ${wl}-berok'
22329 if test "$with_gnu_ld" = yes; then
22330 # We only use this code for GNU lds that support --whole-archive.
22331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22332 else
22333 # Exported symbols can be pulled into shared objects from archives
22334 whole_archive_flag_spec_CXX='$convenience'
22336 archive_cmds_need_lc_CXX=yes
22337 # This is similar to how AIX traditionally builds its shared
22338 # libraries.
22339 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'
22344 beos*)
22345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22346 allow_undefined_flag_CXX=unsupported
22347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22348 # support --undefined. This deserves some investigation. FIXME
22349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22350 else
22351 ld_shlibs_CXX=no
22355 chorus*)
22356 case $cc_basename in
22358 # FIXME: insert proper C++ library support
22359 ld_shlibs_CXX=no
22361 esac
22364 cygwin* | mingw* | pw32* | cegcc*)
22365 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22366 # as there is no search path for DLLs.
22367 hardcode_libdir_flag_spec_CXX='-L$libdir'
22368 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22369 allow_undefined_flag_CXX=unsupported
22370 always_export_symbols_CXX=no
22371 enable_shared_with_static_runtimes_CXX=yes
22373 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22374 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'
22375 # If the export-symbols file already is a .def file (1st line
22376 # is EXPORTS), use it as is; otherwise, prepend...
22377 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22378 cp $export_symbols $output_objdir/$soname.def;
22379 else
22380 echo EXPORTS > $output_objdir/$soname.def;
22381 cat $export_symbols >> $output_objdir/$soname.def;
22383 $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'
22384 else
22385 ld_shlibs_CXX=no
22388 darwin* | rhapsody*)
22392 # Publish an arg to allow the user to select that Darwin host (and target)
22393 # libraries should be given install-names like @rpath/libfoo.dylib. This
22394 # requires that the user of the library then adds an 'rpath' to the DSO that
22395 # needs access.
22396 # NOTE: there are defaults below, for systems that support rpaths. The person
22397 # configuring can override the defaults for any system version that supports
22398 # them - they are, however, forced off for system versions without support.
22399 # Check whether --enable-darwin-at-rpath was given.
22400 if test "${enable_darwin_at_rpath+set}" = set; then :
22401 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22402 # This is not supported before macOS 10.5 / Darwin9.
22403 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22404 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22406 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22407 enable_darwin_at_rpath=no
22409 esac
22411 else
22412 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22413 # As above, before 10.5 / Darwin9 this does not work.
22414 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22415 enable_darwin_at_rpath=no
22418 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22419 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22420 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22421 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22423 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22424 enable_darwin_at_rpath=yes
22426 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22427 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22429 esac
22434 archive_cmds_need_lc_CXX=no
22435 hardcode_direct_CXX=no
22436 hardcode_automatic_CXX=yes
22437 hardcode_shlibpath_var_CXX=unsupported
22438 if test "$lt_cv_ld_force_load" = "yes"; then
22439 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\"`'
22440 else
22441 whole_archive_flag_spec_CXX=''
22443 link_all_deplibs_CXX=yes
22444 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22445 case $cc_basename in
22446 ifort*) _lt_dar_can_shared=yes ;;
22447 *) _lt_dar_can_shared=$GCC ;;
22448 esac
22449 if test "$_lt_dar_can_shared" = "yes"; then
22450 output_verbose_link_cmd=func_echo_all
22451 _lt_install_name='\$rpath/\$soname'
22452 if test "x$enable_darwin_at_rpath" = "xyes"; then
22453 _lt_install_name='@rpath/\$soname'
22455 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22456 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22457 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}"
22458 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}"
22459 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22460 _lt_install_name='\$rpath/\$soname'
22461 if test "x$enable_darwin_at_rpath" = "xyes"; then
22462 _lt_install_name='@rpath/\$soname'
22464 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}"
22465 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}"
22468 else
22469 ld_shlibs_CXX=no
22474 dgux*)
22475 case $cc_basename in
22476 ec++*)
22477 # FIXME: insert proper C++ library support
22478 ld_shlibs_CXX=no
22480 ghcx*)
22481 # Green Hills C++ Compiler
22482 # FIXME: insert proper C++ library support
22483 ld_shlibs_CXX=no
22486 # FIXME: insert proper C++ library support
22487 ld_shlibs_CXX=no
22489 esac
22492 freebsd2.*)
22493 # C++ shared libraries reported to be fairly broken before
22494 # switch to ELF
22495 ld_shlibs_CXX=no
22498 freebsd-elf*)
22499 archive_cmds_need_lc_CXX=no
22502 freebsd* | dragonfly*)
22503 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22504 # conventions
22505 ld_shlibs_CXX=yes
22508 gnu*)
22511 haiku*)
22512 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22513 link_all_deplibs_CXX=yes
22516 hpux9*)
22517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22518 hardcode_libdir_separator_CXX=:
22519 export_dynamic_flag_spec_CXX='${wl}-E'
22520 hardcode_direct_CXX=yes
22521 hardcode_minus_L_CXX=yes # Not in the search PATH,
22522 # but as the default
22523 # location of the library.
22525 case $cc_basename in
22526 CC*)
22527 # FIXME: insert proper C++ library support
22528 ld_shlibs_CXX=no
22530 aCC*)
22531 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'
22532 # Commands to make compiler produce verbose output that lists
22533 # what "hidden" libraries, object files and flags are used when
22534 # linking a shared library.
22536 # There doesn't appear to be a way to prevent this compiler from
22537 # explicitly linking system object files so we need to strip them
22538 # from the output so that they don't get included in the library
22539 # dependencies.
22540 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"'
22543 if test "$GXX" = yes; then
22544 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'
22545 else
22546 # FIXME: insert proper C++ library support
22547 ld_shlibs_CXX=no
22550 esac
22553 hpux10*|hpux11*)
22554 if test $with_gnu_ld = no; then
22555 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22556 hardcode_libdir_separator_CXX=:
22558 case $host_cpu in
22559 hppa*64*|ia64*)
22562 export_dynamic_flag_spec_CXX='${wl}-E'
22564 esac
22566 case $host_cpu in
22567 hppa*64*|ia64*)
22568 hardcode_direct_CXX=no
22569 hardcode_shlibpath_var_CXX=no
22572 hardcode_direct_CXX=yes
22573 hardcode_direct_absolute_CXX=yes
22574 hardcode_minus_L_CXX=yes # Not in the search PATH,
22575 # but as the default
22576 # location of the library.
22578 esac
22580 case $cc_basename in
22581 CC*)
22582 # FIXME: insert proper C++ library support
22583 ld_shlibs_CXX=no
22585 aCC*)
22586 case $host_cpu in
22587 hppa*64*)
22588 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22590 ia64*)
22591 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22596 esac
22597 # Commands to make compiler produce verbose output that lists
22598 # what "hidden" libraries, object files and flags are used when
22599 # linking a shared library.
22601 # There doesn't appear to be a way to prevent this compiler from
22602 # explicitly linking system object files so we need to strip them
22603 # from the output so that they don't get included in the library
22604 # dependencies.
22605 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"'
22608 if test "$GXX" = yes; then
22609 if test $with_gnu_ld = no; then
22610 case $host_cpu in
22611 hppa*64*)
22612 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22614 ia64*)
22615 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22618 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'
22620 esac
22622 else
22623 # FIXME: insert proper C++ library support
22624 ld_shlibs_CXX=no
22627 esac
22630 interix[3-9]*)
22631 hardcode_direct_CXX=no
22632 hardcode_shlibpath_var_CXX=no
22633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22634 export_dynamic_flag_spec_CXX='${wl}-E'
22635 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22636 # Instead, shared libraries are loaded at an image base (0x10000000 by
22637 # default) and relocated if they conflict, which is a slow very memory
22638 # consuming and fragmenting process. To avoid this, we pick a random,
22639 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22640 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22641 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'
22642 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'
22644 irix5* | irix6*)
22645 case $cc_basename in
22646 CC*)
22647 # SGI C++
22648 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'
22650 # Archives containing C++ object files must be created using
22651 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22652 # necessary to make sure instantiated templates are included
22653 # in the archive.
22654 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22657 if test "$GXX" = yes; then
22658 if test "$with_gnu_ld" = no; then
22659 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'
22660 else
22661 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'
22664 link_all_deplibs_CXX=yes
22666 esac
22667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22668 hardcode_libdir_separator_CXX=:
22669 inherit_rpath_CXX=yes
22672 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22673 case $cc_basename in
22674 KCC*)
22675 # Kuck and Associates, Inc. (KAI) C++ Compiler
22677 # KCC will only create a shared library if the output file
22678 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22679 # to its proper name (with version) after linking.
22680 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'
22681 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'
22682 # Commands to make compiler produce verbose output that lists
22683 # what "hidden" libraries, object files and flags are used when
22684 # linking a shared library.
22686 # There doesn't appear to be a way to prevent this compiler from
22687 # explicitly linking system object files so we need to strip them
22688 # from the output so that they don't get included in the library
22689 # dependencies.
22690 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"'
22692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22693 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22695 # Archives containing C++ object files must be created using
22696 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22697 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22699 icpc* | ecpc* )
22700 # Intel C++
22701 with_gnu_ld=yes
22702 # version 8.0 and above of icpc choke on multiply defined symbols
22703 # if we add $predep_objects and $postdep_objects, however 7.1 and
22704 # earlier do not add the objects themselves.
22705 case `$CC -V 2>&1` in
22706 *"Version 7."*)
22707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22708 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'
22710 *) # Version 8.0 or newer
22711 tmp_idyn=
22712 case $host_cpu in
22713 ia64*) tmp_idyn=' -i_dynamic';;
22714 esac
22715 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22716 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'
22718 esac
22719 archive_cmds_need_lc_CXX=no
22720 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22724 pgCC* | pgcpp*)
22725 # Portland Group C++ compiler
22726 case `$CC -V` in
22727 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22728 prelink_cmds_CXX='tpldir=Template.dir~
22729 rm -rf $tpldir~
22730 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22731 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22732 old_archive_cmds_CXX='tpldir=Template.dir~
22733 rm -rf $tpldir~
22734 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22735 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22736 $RANLIB $oldlib'
22737 archive_cmds_CXX='tpldir=Template.dir~
22738 rm -rf $tpldir~
22739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22740 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22741 archive_expsym_cmds_CXX='tpldir=Template.dir~
22742 rm -rf $tpldir~
22743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22744 $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'
22746 *) # Version 6 and above use weak symbols
22747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22748 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'
22750 esac
22752 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22753 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22754 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'
22756 cxx*)
22757 # Compaq C++
22758 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22759 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'
22761 runpath_var=LD_RUN_PATH
22762 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22763 hardcode_libdir_separator_CXX=:
22765 # Commands to make compiler produce verbose output that lists
22766 # what "hidden" libraries, object files and flags are used when
22767 # linking a shared library.
22769 # There doesn't appear to be a way to prevent this compiler from
22770 # explicitly linking system object files so we need to strip them
22771 # from the output so that they don't get included in the library
22772 # dependencies.
22773 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'
22775 xl* | mpixl* | bgxl*)
22776 # IBM XL 8.0 on PPC, with GNU ld
22777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22778 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22779 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22780 if test "x$supports_anon_versioning" = xyes; then
22781 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22783 echo "local: *; };" >> $output_objdir/$libname.ver~
22784 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22788 case `$CC -V 2>&1 | sed 5q` in
22789 *Sun\ C*)
22790 # Sun C++ 5.9
22791 no_undefined_flag_CXX=' -zdefs'
22792 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22793 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'
22794 hardcode_libdir_flag_spec_CXX='-R$libdir'
22795 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'
22796 compiler_needs_object_CXX=yes
22798 # Not sure whether something based on
22799 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22800 # would be better.
22801 output_verbose_link_cmd='func_echo_all'
22803 # Archives containing C++ object files must be created using
22804 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22805 # necessary to make sure instantiated templates are included
22806 # in the archive.
22807 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22809 esac
22811 esac
22814 lynxos*)
22815 # FIXME: insert proper C++ library support
22816 ld_shlibs_CXX=no
22819 m88k*)
22820 # FIXME: insert proper C++ library support
22821 ld_shlibs_CXX=no
22824 mvs*)
22825 case $cc_basename in
22826 cxx*)
22827 # FIXME: insert proper C++ library support
22828 ld_shlibs_CXX=no
22831 # FIXME: insert proper C++ library support
22832 ld_shlibs_CXX=no
22834 esac
22837 netbsd*)
22838 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22839 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22840 wlarc=
22841 hardcode_libdir_flag_spec_CXX='-R$libdir'
22842 hardcode_direct_CXX=yes
22843 hardcode_shlibpath_var_CXX=no
22845 # Workaround some broken pre-1.5 toolchains
22846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22849 *nto* | *qnx*)
22850 ld_shlibs_CXX=yes
22853 openbsd2*)
22854 # C++ shared libraries are fairly broken
22855 ld_shlibs_CXX=no
22858 openbsd*)
22859 if test -f /usr/libexec/ld.so; then
22860 hardcode_direct_CXX=yes
22861 hardcode_shlibpath_var_CXX=no
22862 hardcode_direct_absolute_CXX=yes
22863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22867 export_dynamic_flag_spec_CXX='${wl}-E'
22868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22870 output_verbose_link_cmd=func_echo_all
22871 else
22872 ld_shlibs_CXX=no
22876 osf3* | osf4* | osf5*)
22877 case $cc_basename in
22878 KCC*)
22879 # Kuck and Associates, Inc. (KAI) C++ Compiler
22881 # KCC will only create a shared library if the output file
22882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22883 # to its proper name (with version) after linking.
22884 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'
22886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22887 hardcode_libdir_separator_CXX=:
22889 # Archives containing C++ object files must be created using
22890 # the KAI C++ compiler.
22891 case $host in
22892 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22893 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22894 esac
22896 RCC*)
22897 # Rational C++ 2.4.1
22898 # FIXME: insert proper C++ library support
22899 ld_shlibs_CXX=no
22901 cxx*)
22902 case $host in
22903 osf3*)
22904 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22905 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'
22906 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22909 allow_undefined_flag_CXX=' -expect_unresolved \*'
22910 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'
22911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22912 echo "-hidden">> $lib.exp~
22913 $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~
22914 $RM $lib.exp'
22915 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22917 esac
22919 hardcode_libdir_separator_CXX=:
22921 # Commands to make compiler produce verbose output that lists
22922 # what "hidden" libraries, object files and flags are used when
22923 # linking a shared library.
22925 # There doesn't appear to be a way to prevent this compiler from
22926 # explicitly linking system object files so we need to strip them
22927 # from the output so that they don't get included in the library
22928 # dependencies.
22929 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"'
22932 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22933 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22934 case $host in
22935 osf3*)
22936 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'
22939 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'
22941 esac
22943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22944 hardcode_libdir_separator_CXX=:
22946 # Commands to make compiler produce verbose output that lists
22947 # what "hidden" libraries, object files and flags are used when
22948 # linking a shared library.
22949 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22951 else
22952 # FIXME: insert proper C++ library support
22953 ld_shlibs_CXX=no
22956 esac
22959 psos*)
22960 # FIXME: insert proper C++ library support
22961 ld_shlibs_CXX=no
22964 sunos4*)
22965 case $cc_basename in
22966 CC*)
22967 # Sun C++ 4.x
22968 # FIXME: insert proper C++ library support
22969 ld_shlibs_CXX=no
22971 lcc*)
22972 # Lucid
22973 # FIXME: insert proper C++ library support
22974 ld_shlibs_CXX=no
22977 # FIXME: insert proper C++ library support
22978 ld_shlibs_CXX=no
22980 esac
22983 solaris*)
22984 case $cc_basename in
22985 CC*)
22986 # Sun C++ 4.2, 5.x and Centerline C++
22987 archive_cmds_need_lc_CXX=yes
22988 no_undefined_flag_CXX=' -zdefs'
22989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22991 $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'
22993 hardcode_libdir_flag_spec_CXX='-R$libdir'
22994 hardcode_shlibpath_var_CXX=no
22995 case $host_os in
22996 solaris2.[0-5] | solaris2.[0-5].*) ;;
22998 # The compiler driver will combine and reorder linker options,
22999 # but understands `-z linker_flag'.
23000 # Supported since Solaris 2.6 (maybe 2.5.1?)
23001 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23003 esac
23004 link_all_deplibs_CXX=yes
23006 output_verbose_link_cmd='func_echo_all'
23008 # Archives containing C++ object files must be created using
23009 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23010 # necessary to make sure instantiated templates are included
23011 # in the archive.
23012 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23014 gcx*)
23015 # Green Hills C++ Compiler
23016 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23018 # The C++ compiler must be used to create the archive.
23019 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23022 # GNU C++ compiler with Solaris linker
23023 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23024 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23025 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23026 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23027 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23028 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23030 # Commands to make compiler produce verbose output that lists
23031 # what "hidden" libraries, object files and flags are used when
23032 # linking a shared library.
23033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23034 else
23035 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23036 # platform.
23037 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23038 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23039 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23041 # Commands to make compiler produce verbose output that lists
23042 # what "hidden" libraries, object files and flags are used when
23043 # linking a shared library.
23044 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23047 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23048 case $host_os in
23049 solaris2.[0-5] | solaris2.[0-5].*) ;;
23051 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23053 esac
23056 esac
23059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23060 no_undefined_flag_CXX='${wl}-z,text'
23061 archive_cmds_need_lc_CXX=no
23062 hardcode_shlibpath_var_CXX=no
23063 runpath_var='LD_RUN_PATH'
23065 case $cc_basename in
23066 CC*)
23067 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23068 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23071 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23072 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23074 esac
23077 sysv5* | sco3.2v5* | sco5v6*)
23078 # Note: We can NOT use -z defs as we might desire, because we do not
23079 # link with -lc, and that would cause any symbols used from libc to
23080 # always be unresolved, which means just about no library would
23081 # ever link correctly. If we're not using GNU ld we use -z text
23082 # though, which does catch some bad symbols but isn't as heavy-handed
23083 # as -z defs.
23084 no_undefined_flag_CXX='${wl}-z,text'
23085 allow_undefined_flag_CXX='${wl}-z,nodefs'
23086 archive_cmds_need_lc_CXX=no
23087 hardcode_shlibpath_var_CXX=no
23088 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23089 hardcode_libdir_separator_CXX=':'
23090 link_all_deplibs_CXX=yes
23091 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23092 runpath_var='LD_RUN_PATH'
23094 case $cc_basename in
23095 CC*)
23096 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23097 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23098 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23099 '"$old_archive_cmds_CXX"
23100 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23101 '"$reload_cmds_CXX"
23104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23107 esac
23110 tandem*)
23111 case $cc_basename in
23112 NCC*)
23113 # NonStop-UX NCC 3.20
23114 # FIXME: insert proper C++ library support
23115 ld_shlibs_CXX=no
23118 # FIXME: insert proper C++ library support
23119 ld_shlibs_CXX=no
23121 esac
23124 vxworks*)
23125 # For VxWorks ports, we assume the use of a GNU linker with
23126 # standard elf conventions.
23127 ld_shlibs_CXX=yes
23131 # FIXME: insert proper C++ library support
23132 ld_shlibs_CXX=no
23134 esac
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23137 $as_echo "$ld_shlibs_CXX" >&6; }
23138 test "$ld_shlibs_CXX" = no && can_build_shared=no
23140 GCC_CXX="$GXX"
23141 LD_CXX="$LD"
23143 ## CAVEAT EMPTOR:
23144 ## There is no encapsulation within the following macros, do not change
23145 ## the running order or otherwise move them around unless you know exactly
23146 ## what you are doing...
23147 # Dependencies to place before and after the object being linked:
23148 predep_objects_CXX=
23149 postdep_objects_CXX=
23150 predeps_CXX=
23151 postdeps_CXX=
23152 compiler_lib_search_path_CXX=
23154 cat > conftest.$ac_ext <<_LT_EOF
23155 class Foo
23157 public:
23158 Foo (void) { a = 0; }
23159 private:
23160 int a;
23162 _LT_EOF
23164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23165 (eval $ac_compile) 2>&5
23166 ac_status=$?
23167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23168 test $ac_status = 0; }; then
23169 # Parse the compiler output and extract the necessary
23170 # objects, libraries and library flags.
23172 # Sentinel used to keep track of whether or not we are before
23173 # the conftest object file.
23174 pre_test_object_deps_done=no
23176 for p in `eval "$output_verbose_link_cmd"`; do
23177 case $p in
23179 -L* | -R* | -l*)
23180 # Some compilers place space between "-{L,R}" and the path.
23181 # Remove the space.
23182 if test $p = "-L" ||
23183 test $p = "-R"; then
23184 prev=$p
23185 continue
23186 else
23187 prev=
23190 if test "$pre_test_object_deps_done" = no; then
23191 case $p in
23192 -L* | -R*)
23193 # Internal compiler library paths should come after those
23194 # provided the user. The postdeps already come after the
23195 # user supplied libs so there is no need to process them.
23196 if test -z "$compiler_lib_search_path_CXX"; then
23197 compiler_lib_search_path_CXX="${prev}${p}"
23198 else
23199 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23202 # The "-l" case would never come before the object being
23203 # linked, so don't bother handling this case.
23204 esac
23205 else
23206 if test -z "$postdeps_CXX"; then
23207 postdeps_CXX="${prev}${p}"
23208 else
23209 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23214 *.$objext)
23215 # This assumes that the test object file only shows up
23216 # once in the compiler output.
23217 if test "$p" = "conftest.$objext"; then
23218 pre_test_object_deps_done=yes
23219 continue
23222 if test "$pre_test_object_deps_done" = no; then
23223 if test -z "$predep_objects_CXX"; then
23224 predep_objects_CXX="$p"
23225 else
23226 predep_objects_CXX="$predep_objects_CXX $p"
23228 else
23229 if test -z "$postdep_objects_CXX"; then
23230 postdep_objects_CXX="$p"
23231 else
23232 postdep_objects_CXX="$postdep_objects_CXX $p"
23237 *) ;; # Ignore the rest.
23239 esac
23240 done
23242 # Clean up.
23243 rm -f a.out a.exe
23244 else
23245 echo "libtool.m4: error: problem compiling CXX test program"
23248 $RM -f confest.$objext
23250 # PORTME: override above test on systems where it is broken
23251 case $host_os in
23252 interix[3-9]*)
23253 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23254 # hack all around it, let's just trust "g++" to DTRT.
23255 predep_objects_CXX=
23256 postdep_objects_CXX=
23257 postdeps_CXX=
23260 linux*)
23261 case `$CC -V 2>&1 | sed 5q` in
23262 *Sun\ C*)
23263 # Sun C++ 5.9
23265 # The more standards-conforming stlport4 library is
23266 # incompatible with the Cstd library. Avoid specifying
23267 # it if it's in CXXFLAGS. Ignore libCrun as
23268 # -library=stlport4 depends on it.
23269 case " $CXX $CXXFLAGS " in
23270 *" -library=stlport4 "*)
23271 solaris_use_stlport4=yes
23273 esac
23275 if test "$solaris_use_stlport4" != yes; then
23276 postdeps_CXX='-library=Cstd -library=Crun'
23279 esac
23282 solaris*)
23283 case $cc_basename in
23284 CC*)
23285 # The more standards-conforming stlport4 library is
23286 # incompatible with the Cstd library. Avoid specifying
23287 # it if it's in CXXFLAGS. Ignore libCrun as
23288 # -library=stlport4 depends on it.
23289 case " $CXX $CXXFLAGS " in
23290 *" -library=stlport4 "*)
23291 solaris_use_stlport4=yes
23293 esac
23295 # Adding this requires a known-good setup of shared libraries for
23296 # Sun compiler versions before 5.6, else PIC objects from an old
23297 # archive will be linked into the output, leading to subtle bugs.
23298 if test "$solaris_use_stlport4" != yes; then
23299 postdeps_CXX='-library=Cstd -library=Crun'
23302 esac
23304 esac
23307 case " $postdeps_CXX " in
23308 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23309 esac
23310 compiler_lib_search_dirs_CXX=
23311 if test -n "${compiler_lib_search_path_CXX}"; then
23312 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23345 lt_prog_compiler_wl_CXX=
23346 lt_prog_compiler_pic_CXX=
23347 lt_prog_compiler_static_CXX=
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23352 # C++ specific cases for pic, static, wl, etc.
23353 if test "$GXX" = yes; then
23354 lt_prog_compiler_wl_CXX='-Wl,'
23355 lt_prog_compiler_static_CXX='-static'
23357 case $host_os in
23358 aix*)
23359 # All AIX code is PIC.
23360 if test "$host_cpu" = ia64; then
23361 # AIX 5 now supports IA64 processor
23362 lt_prog_compiler_static_CXX='-Bstatic'
23364 lt_prog_compiler_pic_CXX='-fPIC'
23367 amigaos*)
23368 case $host_cpu in
23369 powerpc)
23370 # see comment about AmigaOS4 .so support
23371 lt_prog_compiler_pic_CXX='-fPIC'
23373 m68k)
23374 # FIXME: we need at least 68020 code to build shared libraries, but
23375 # adding the `-m68020' flag to GCC prevents building anything better,
23376 # like `-m68040'.
23377 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23379 esac
23382 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23383 # PIC is the default for these OSes.
23385 mingw* | cygwin* | os2* | pw32* | cegcc*)
23386 # This hack is so that the source file can tell whether it is being
23387 # built for inclusion in a dll (and should export symbols for example).
23388 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23389 # (--disable-auto-import) libraries
23390 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23392 darwin* | rhapsody*)
23393 # PIC is the default on this platform
23394 # Common symbols not allowed in MH_DYLIB files
23395 lt_prog_compiler_pic_CXX='-fno-common'
23397 *djgpp*)
23398 # DJGPP does not support shared libraries at all
23399 lt_prog_compiler_pic_CXX=
23401 haiku*)
23402 # PIC is the default for Haiku.
23403 # The "-static" flag exists, but is broken.
23404 lt_prog_compiler_static_CXX=
23406 interix[3-9]*)
23407 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23408 # Instead, we relocate shared libraries at runtime.
23410 sysv4*MP*)
23411 if test -d /usr/nec; then
23412 lt_prog_compiler_pic_CXX=-Kconform_pic
23415 hpux*)
23416 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23417 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23418 # sets the default TLS model and affects inlining.
23419 case $host_cpu in
23420 hppa*64*)
23423 lt_prog_compiler_pic_CXX='-fPIC'
23425 esac
23427 *qnx* | *nto*)
23428 # QNX uses GNU C++, but need to define -shared option too, otherwise
23429 # it will coredump.
23430 lt_prog_compiler_pic_CXX='-fPIC -shared'
23433 lt_prog_compiler_pic_CXX='-fPIC'
23435 esac
23436 else
23437 case $host_os in
23438 aix[4-9]*)
23439 # All AIX code is PIC.
23440 if test "$host_cpu" = ia64; then
23441 # AIX 5 now supports IA64 processor
23442 lt_prog_compiler_static_CXX='-Bstatic'
23443 else
23444 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23447 chorus*)
23448 case $cc_basename in
23449 cxch68*)
23450 # Green Hills C++ Compiler
23451 # _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"
23453 esac
23455 dgux*)
23456 case $cc_basename in
23457 ec++*)
23458 lt_prog_compiler_pic_CXX='-KPIC'
23460 ghcx*)
23461 # Green Hills C++ Compiler
23462 lt_prog_compiler_pic_CXX='-pic'
23466 esac
23468 freebsd* | dragonfly*)
23469 # FreeBSD uses GNU C++
23471 hpux9* | hpux10* | hpux11*)
23472 case $cc_basename in
23473 CC*)
23474 lt_prog_compiler_wl_CXX='-Wl,'
23475 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23476 if test "$host_cpu" != ia64; then
23477 lt_prog_compiler_pic_CXX='+Z'
23480 aCC*)
23481 lt_prog_compiler_wl_CXX='-Wl,'
23482 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23483 case $host_cpu in
23484 hppa*64*|ia64*)
23485 # +Z the default
23488 lt_prog_compiler_pic_CXX='+Z'
23490 esac
23494 esac
23496 interix*)
23497 # This is c89, which is MS Visual C++ (no shared libs)
23498 # Anyone wants to do a port?
23500 irix5* | irix6* | nonstopux*)
23501 case $cc_basename in
23502 CC*)
23503 lt_prog_compiler_wl_CXX='-Wl,'
23504 lt_prog_compiler_static_CXX='-non_shared'
23505 # CC pic flag -KPIC is the default.
23509 esac
23511 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23512 case $cc_basename in
23513 KCC*)
23514 # KAI C++ Compiler
23515 lt_prog_compiler_wl_CXX='--backend -Wl,'
23516 lt_prog_compiler_pic_CXX='-fPIC'
23518 ecpc* )
23519 # old Intel C++ for x86_64 which still supported -KPIC.
23520 lt_prog_compiler_wl_CXX='-Wl,'
23521 lt_prog_compiler_pic_CXX='-KPIC'
23522 lt_prog_compiler_static_CXX='-static'
23524 icpc* )
23525 # Intel C++, used to be incompatible with GCC.
23526 # ICC 10 doesn't accept -KPIC any more.
23527 lt_prog_compiler_wl_CXX='-Wl,'
23528 lt_prog_compiler_pic_CXX='-fPIC'
23529 lt_prog_compiler_static_CXX='-static'
23531 pgCC* | pgcpp*)
23532 # Portland Group C++ compiler
23533 lt_prog_compiler_wl_CXX='-Wl,'
23534 lt_prog_compiler_pic_CXX='-fpic'
23535 lt_prog_compiler_static_CXX='-Bstatic'
23537 cxx*)
23538 # Compaq C++
23539 # Make sure the PIC flag is empty. It appears that all Alpha
23540 # Linux and Compaq Tru64 Unix objects are PIC.
23541 lt_prog_compiler_pic_CXX=
23542 lt_prog_compiler_static_CXX='-non_shared'
23544 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23545 # IBM XL 8.0, 9.0 on PPC and BlueGene
23546 lt_prog_compiler_wl_CXX='-Wl,'
23547 lt_prog_compiler_pic_CXX='-qpic'
23548 lt_prog_compiler_static_CXX='-qstaticlink'
23551 case `$CC -V 2>&1 | sed 5q` in
23552 *Sun\ C*)
23553 # Sun C++ 5.9
23554 lt_prog_compiler_pic_CXX='-KPIC'
23555 lt_prog_compiler_static_CXX='-Bstatic'
23556 lt_prog_compiler_wl_CXX='-Qoption ld '
23558 esac
23560 esac
23562 lynxos*)
23564 m88k*)
23566 mvs*)
23567 case $cc_basename in
23568 cxx*)
23569 lt_prog_compiler_pic_CXX='-W c,exportall'
23573 esac
23575 netbsd*)
23577 *qnx* | *nto*)
23578 # QNX uses GNU C++, but need to define -shared option too, otherwise
23579 # it will coredump.
23580 lt_prog_compiler_pic_CXX='-fPIC -shared'
23582 osf3* | osf4* | osf5*)
23583 case $cc_basename in
23584 KCC*)
23585 lt_prog_compiler_wl_CXX='--backend -Wl,'
23587 RCC*)
23588 # Rational C++ 2.4.1
23589 lt_prog_compiler_pic_CXX='-pic'
23591 cxx*)
23592 # Digital/Compaq C++
23593 lt_prog_compiler_wl_CXX='-Wl,'
23594 # Make sure the PIC flag is empty. It appears that all Alpha
23595 # Linux and Compaq Tru64 Unix objects are PIC.
23596 lt_prog_compiler_pic_CXX=
23597 lt_prog_compiler_static_CXX='-non_shared'
23601 esac
23603 psos*)
23605 solaris*)
23606 case $cc_basename in
23607 CC*)
23608 # Sun C++ 4.2, 5.x and Centerline C++
23609 lt_prog_compiler_pic_CXX='-KPIC'
23610 lt_prog_compiler_static_CXX='-Bstatic'
23611 lt_prog_compiler_wl_CXX='-Qoption ld '
23613 gcx*)
23614 # Green Hills C++ Compiler
23615 lt_prog_compiler_pic_CXX='-PIC'
23619 esac
23621 sunos4*)
23622 case $cc_basename in
23623 CC*)
23624 # Sun C++ 4.x
23625 lt_prog_compiler_pic_CXX='-pic'
23626 lt_prog_compiler_static_CXX='-Bstatic'
23628 lcc*)
23629 # Lucid
23630 lt_prog_compiler_pic_CXX='-pic'
23634 esac
23636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23637 case $cc_basename in
23638 CC*)
23639 lt_prog_compiler_wl_CXX='-Wl,'
23640 lt_prog_compiler_pic_CXX='-KPIC'
23641 lt_prog_compiler_static_CXX='-Bstatic'
23643 esac
23645 tandem*)
23646 case $cc_basename in
23647 NCC*)
23648 # NonStop-UX NCC 3.20
23649 lt_prog_compiler_pic_CXX='-KPIC'
23653 esac
23655 vxworks*)
23658 lt_prog_compiler_can_build_shared_CXX=no
23660 esac
23663 case $host_os in
23664 # For platforms which do not support PIC, -DPIC is meaningless:
23665 *djgpp*)
23666 lt_prog_compiler_pic_CXX=
23669 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23671 esac
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23673 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23678 # Check to make sure the PIC flag actually works.
23680 if test -n "$lt_prog_compiler_pic_CXX"; then
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23683 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23684 $as_echo_n "(cached) " >&6
23685 else
23686 lt_cv_prog_compiler_pic_works_CXX=no
23687 ac_outfile=conftest.$ac_objext
23688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23689 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23690 # Insert the option either (1) after the last *FLAGS variable, or
23691 # (2) before a word containing "conftest.", or (3) at the end.
23692 # Note that $ac_compile itself does not contain backslashes and begins
23693 # with a dollar sign (not a hyphen), so the echo should work correctly.
23694 # The option is referenced via a variable to avoid confusing sed.
23695 lt_compile=`echo "$ac_compile" | $SED \
23696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23698 -e 's:$: $lt_compiler_flag:'`
23699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23700 (eval "$lt_compile" 2>conftest.err)
23701 ac_status=$?
23702 cat conftest.err >&5
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 if (exit $ac_status) && test -s "$ac_outfile"; then
23705 # The compiler can only warn and ignore the option if not recognized
23706 # So say no if there are warnings other than the usual output.
23707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23710 lt_cv_prog_compiler_pic_works_CXX=yes
23713 $RM conftest*
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23717 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23719 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23720 case $lt_prog_compiler_pic_CXX in
23721 "" | " "*) ;;
23722 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23723 esac
23724 else
23725 lt_prog_compiler_pic_CXX=
23726 lt_prog_compiler_can_build_shared_CXX=no
23734 # Check to make sure the static flag actually works.
23736 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23739 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23740 $as_echo_n "(cached) " >&6
23741 else
23742 lt_cv_prog_compiler_static_works_CXX=no
23743 save_LDFLAGS="$LDFLAGS"
23744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23747 # The linker can only warn and ignore the option if not recognized
23748 # So say no if there are warnings
23749 if test -s conftest.err; then
23750 # Append any errors to the config.log.
23751 cat conftest.err 1>&5
23752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23754 if diff conftest.exp conftest.er2 >/dev/null; then
23755 lt_cv_prog_compiler_static_works_CXX=yes
23757 else
23758 lt_cv_prog_compiler_static_works_CXX=yes
23761 $RM -r conftest*
23762 LDFLAGS="$save_LDFLAGS"
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23766 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23768 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23770 else
23771 lt_prog_compiler_static_CXX=
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23779 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23780 $as_echo_n "(cached) " >&6
23781 else
23782 lt_cv_prog_compiler_c_o_CXX=no
23783 $RM -r conftest 2>/dev/null
23784 mkdir conftest
23785 cd conftest
23786 mkdir out
23787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23789 lt_compiler_flag="-o out/conftest2.$ac_objext"
23790 # Insert the option either (1) after the last *FLAGS variable, or
23791 # (2) before a word containing "conftest.", or (3) at the end.
23792 # Note that $ac_compile itself does not contain backslashes and begins
23793 # with a dollar sign (not a hyphen), so the echo should work correctly.
23794 lt_compile=`echo "$ac_compile" | $SED \
23795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23797 -e 's:$: $lt_compiler_flag:'`
23798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23799 (eval "$lt_compile" 2>out/conftest.err)
23800 ac_status=$?
23801 cat out/conftest.err >&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23804 then
23805 # The compiler can only warn and ignore the option if not recognized
23806 # So say no if there are warnings
23807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23810 lt_cv_prog_compiler_c_o_CXX=yes
23813 chmod u+w . 2>&5
23814 $RM conftest*
23815 # SGI C++ compiler will create directory out/ii_files/ for
23816 # template instantiation
23817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23818 $RM out/* && rmdir out
23819 cd ..
23820 $RM -r conftest
23821 $RM conftest*
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23825 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23831 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23832 $as_echo_n "(cached) " >&6
23833 else
23834 lt_cv_prog_compiler_c_o_CXX=no
23835 $RM -r conftest 2>/dev/null
23836 mkdir conftest
23837 cd conftest
23838 mkdir out
23839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23841 lt_compiler_flag="-o out/conftest2.$ac_objext"
23842 # Insert the option either (1) after the last *FLAGS variable, or
23843 # (2) before a word containing "conftest.", or (3) at the end.
23844 # Note that $ac_compile itself does not contain backslashes and begins
23845 # with a dollar sign (not a hyphen), so the echo should work correctly.
23846 lt_compile=`echo "$ac_compile" | $SED \
23847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23849 -e 's:$: $lt_compiler_flag:'`
23850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23851 (eval "$lt_compile" 2>out/conftest.err)
23852 ac_status=$?
23853 cat out/conftest.err >&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23856 then
23857 # The compiler can only warn and ignore the option if not recognized
23858 # So say no if there are warnings
23859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23862 lt_cv_prog_compiler_c_o_CXX=yes
23865 chmod u+w . 2>&5
23866 $RM conftest*
23867 # SGI C++ compiler will create directory out/ii_files/ for
23868 # template instantiation
23869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23870 $RM out/* && rmdir out
23871 cd ..
23872 $RM -r conftest
23873 $RM conftest*
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23877 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23882 hard_links="nottested"
23883 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23884 # do not overwrite the value of need_locks provided by the user
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23886 $as_echo_n "checking if we can lock with hard links... " >&6; }
23887 hard_links=yes
23888 $RM conftest*
23889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23890 touch conftest.a
23891 ln conftest.a conftest.b 2>&5 || hard_links=no
23892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
23894 $as_echo "$hard_links" >&6; }
23895 if test "$hard_links" = no; then
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23897 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23898 need_locks=warn
23900 else
23901 need_locks=no
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
23909 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23910 case $host_os in
23911 aix[4-9]*)
23912 # If we're using GNU nm, then we don't want the "-C" option.
23913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23914 # Also, AIX nm treats weak defined symbols like other global defined
23915 # symbols, whereas GNU nm marks them as "W".
23916 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23917 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'
23918 else
23919 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'
23922 pw32*)
23923 export_symbols_cmds_CXX="$ltdll_cmds"
23925 cygwin* | mingw* | cegcc*)
23926 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'
23929 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23931 esac
23932 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23935 $as_echo "$ld_shlibs_CXX" >&6; }
23936 test "$ld_shlibs_CXX" = no && can_build_shared=no
23938 with_gnu_ld_CXX=$with_gnu_ld
23946 # Do we need to explicitly link libc?
23948 case "x$archive_cmds_need_lc_CXX" in
23949 x|xyes)
23950 # Assume -lc should be added
23951 archive_cmds_need_lc_CXX=yes
23953 if test "$enable_shared" = yes && test "$GCC" = yes; then
23954 case $archive_cmds_CXX in
23955 *'~'*)
23956 # FIXME: we may have to deal with multi-command sequences.
23958 '$CC '*)
23959 # Test whether the compiler implicitly links with -lc since on some
23960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23961 # to ld, don't add -lc before -lgcc.
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
23963 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23964 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
23965 $as_echo_n "(cached) " >&6
23966 else
23967 $RM conftest*
23968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23971 (eval $ac_compile) 2>&5
23972 ac_status=$?
23973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23974 test $ac_status = 0; } 2>conftest.err; then
23975 soname=conftest
23976 lib=conftest
23977 libobjs=conftest.$ac_objext
23978 deplibs=
23979 wl=$lt_prog_compiler_wl_CXX
23980 pic_flag=$lt_prog_compiler_pic_CXX
23981 compiler_flags=-v
23982 linker_flags=-v
23983 verstring=
23984 output_objdir=.
23985 libname=conftest
23986 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23987 allow_undefined_flag_CXX=
23988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
23989 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23990 ac_status=$?
23991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23992 test $ac_status = 0; }
23993 then
23994 lt_cv_archive_cmds_need_lc_CXX=no
23995 else
23996 lt_cv_archive_cmds_need_lc_CXX=yes
23998 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23999 else
24000 cat conftest.err 1>&5
24002 $RM conftest*
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24006 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24007 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24009 esac
24012 esac
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24078 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24080 library_names_spec=
24081 libname_spec='lib$name'
24082 soname_spec=
24083 shrext_cmds=".so"
24084 postinstall_cmds=
24085 postuninstall_cmds=
24086 finish_cmds=
24087 finish_eval=
24088 shlibpath_var=
24089 shlibpath_overrides_runpath=unknown
24090 version_type=none
24091 dynamic_linker="$host_os ld.so"
24092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24093 need_lib_prefix=unknown
24094 hardcode_into_libs=no
24096 # when you set need_version to no, make sure it does not cause -set_version
24097 # flags to be left without arguments
24098 need_version=unknown
24100 case $host_os in
24101 aix3*)
24102 version_type=linux
24103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24104 shlibpath_var=LIBPATH
24106 # AIX 3 has no versioning support, so we append a major version to the name.
24107 soname_spec='${libname}${release}${shared_ext}$major'
24110 aix[4-9]*)
24111 version_type=linux
24112 need_lib_prefix=no
24113 need_version=no
24114 hardcode_into_libs=yes
24115 if test "$host_cpu" = ia64; then
24116 # AIX 5 supports IA64
24117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24118 shlibpath_var=LD_LIBRARY_PATH
24119 else
24120 # With GCC up to 2.95.x, collect2 would create an import file
24121 # for dependence libraries. The import file would start with
24122 # the line `#! .'. This would cause the generated library to
24123 # depend on `.', always an invalid library. This was fixed in
24124 # development snapshots of GCC prior to 3.0.
24125 case $host_os in
24126 aix4 | aix4.[01] | aix4.[01].*)
24127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24128 echo ' yes '
24129 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24131 else
24132 can_build_shared=no
24135 esac
24136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24137 # soname into executable. Probably we can add versioning support to
24138 # collect2, so additional links can be useful in future.
24139 if test "$aix_use_runtimelinking" = yes; then
24140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24141 # instead of lib<name>.a to let people know that these are not
24142 # typical AIX shared libraries.
24143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24144 else
24145 # We preserve .a as extension for shared libraries through AIX4.2
24146 # and later when we are not doing run time linking.
24147 library_names_spec='${libname}${release}.a $libname.a'
24148 soname_spec='${libname}${release}${shared_ext}$major'
24150 shlibpath_var=LIBPATH
24154 amigaos*)
24155 case $host_cpu in
24156 powerpc)
24157 # Since July 2007 AmigaOS4 officially supports .so libraries.
24158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24161 m68k)
24162 library_names_spec='$libname.ixlibrary $libname.a'
24163 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24164 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'
24166 esac
24169 beos*)
24170 library_names_spec='${libname}${shared_ext}'
24171 dynamic_linker="$host_os ld.so"
24172 shlibpath_var=LIBRARY_PATH
24175 bsdi[45]*)
24176 version_type=linux
24177 need_version=no
24178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24179 soname_spec='${libname}${release}${shared_ext}$major'
24180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24181 shlibpath_var=LD_LIBRARY_PATH
24182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24184 # the default ld.so.conf also contains /usr/contrib/lib and
24185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24186 # libtool to hard-code these into programs
24189 cygwin* | mingw* | pw32* | cegcc*)
24190 version_type=windows
24191 shrext_cmds=".dll"
24192 need_version=no
24193 need_lib_prefix=no
24195 case $GCC,$host_os in
24196 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24197 library_names_spec='$libname.dll.a'
24198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24199 postinstall_cmds='base_file=`basename \${file}`~
24200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24201 dldir=$destdir/`dirname \$dlpath`~
24202 test -d \$dldir || mkdir -p \$dldir~
24203 $install_prog $dir/$dlname \$dldir/$dlname~
24204 chmod a+x \$dldir/$dlname~
24205 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24206 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24209 dlpath=$dir/\$dldll~
24210 $RM \$dlpath'
24211 shlibpath_overrides_runpath=yes
24213 case $host_os in
24214 cygwin*)
24215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24219 mingw* | cegcc*)
24220 # MinGW DLLs use traditional 'lib' prefix
24221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24223 pw32*)
24224 # pw32 DLLs use 'pw' prefix rather than 'lib'
24225 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24227 esac
24231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24233 esac
24234 dynamic_linker='Win32 ld.exe'
24235 # FIXME: first we should search . and the directory the executable is in
24236 shlibpath_var=PATH
24239 darwin* | rhapsody*)
24240 dynamic_linker="$host_os dyld"
24241 version_type=darwin
24242 need_lib_prefix=no
24243 need_version=no
24244 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24245 soname_spec='${libname}${release}${major}$shared_ext'
24246 shlibpath_overrides_runpath=yes
24247 shlibpath_var=DYLD_LIBRARY_PATH
24248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24253 dgux*)
24254 version_type=linux
24255 need_lib_prefix=no
24256 need_version=no
24257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24258 soname_spec='${libname}${release}${shared_ext}$major'
24259 shlibpath_var=LD_LIBRARY_PATH
24262 freebsd* | dragonfly*)
24263 # DragonFly does not have aout. When/if they implement a new
24264 # versioning mechanism, adjust this.
24265 if test -x /usr/bin/objformat; then
24266 objformat=`/usr/bin/objformat`
24267 else
24268 case $host_os in
24269 freebsd[23].*) objformat=aout ;;
24270 *) objformat=elf ;;
24271 esac
24273 version_type=freebsd-$objformat
24274 case $version_type in
24275 freebsd-elf*)
24276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24277 need_version=no
24278 need_lib_prefix=no
24280 freebsd-*)
24281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24282 need_version=yes
24284 esac
24285 shlibpath_var=LD_LIBRARY_PATH
24286 case $host_os in
24287 freebsd2.*)
24288 shlibpath_overrides_runpath=yes
24290 freebsd3.[01]* | freebsdelf3.[01]*)
24291 shlibpath_overrides_runpath=yes
24292 hardcode_into_libs=yes
24294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24296 shlibpath_overrides_runpath=no
24297 hardcode_into_libs=yes
24299 *) # from 4.6 on, and DragonFly
24300 shlibpath_overrides_runpath=yes
24301 hardcode_into_libs=yes
24303 esac
24306 haiku*)
24307 version_type=linux
24308 need_lib_prefix=no
24309 need_version=no
24310 dynamic_linker="$host_os runtime_loader"
24311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24312 soname_spec='${libname}${release}${shared_ext}$major'
24313 shlibpath_var=LIBRARY_PATH
24314 shlibpath_overrides_runpath=yes
24315 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24316 hardcode_into_libs=yes
24319 hpux9* | hpux10* | hpux11*)
24320 # Give a soname corresponding to the major version so that dld.sl refuses to
24321 # link against other versions.
24322 version_type=sunos
24323 need_lib_prefix=no
24324 need_version=no
24325 case $host_cpu in
24326 ia64*)
24327 shrext_cmds='.so'
24328 hardcode_into_libs=yes
24329 dynamic_linker="$host_os dld.so"
24330 shlibpath_var=LD_LIBRARY_PATH
24331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24333 soname_spec='${libname}${release}${shared_ext}$major'
24334 if test "X$HPUX_IA64_MODE" = X32; then
24335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24336 else
24337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24341 hppa*64*)
24342 shrext_cmds='.sl'
24343 hardcode_into_libs=yes
24344 dynamic_linker="$host_os dld.sl"
24345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24348 soname_spec='${libname}${release}${shared_ext}$major'
24349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24353 shrext_cmds='.sl'
24354 dynamic_linker="$host_os dld.sl"
24355 shlibpath_var=SHLIB_PATH
24356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24358 soname_spec='${libname}${release}${shared_ext}$major'
24360 esac
24361 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24362 postinstall_cmds='chmod 555 $lib'
24363 # or fails outright, so override atomically:
24364 install_override_mode=555
24367 interix[3-9]*)
24368 version_type=linux
24369 need_lib_prefix=no
24370 need_version=no
24371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24372 soname_spec='${libname}${release}${shared_ext}$major'
24373 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24374 shlibpath_var=LD_LIBRARY_PATH
24375 shlibpath_overrides_runpath=no
24376 hardcode_into_libs=yes
24379 irix5* | irix6* | nonstopux*)
24380 case $host_os in
24381 nonstopux*) version_type=nonstopux ;;
24383 if test "$lt_cv_prog_gnu_ld" = yes; then
24384 version_type=linux
24385 else
24386 version_type=irix
24387 fi ;;
24388 esac
24389 need_lib_prefix=no
24390 need_version=no
24391 soname_spec='${libname}${release}${shared_ext}$major'
24392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24393 case $host_os in
24394 irix5* | nonstopux*)
24395 libsuff= shlibsuff=
24398 case $LD in # libtool.m4 will add one of these switches to LD
24399 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24400 libsuff= shlibsuff= libmagic=32-bit;;
24401 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24402 libsuff=32 shlibsuff=N32 libmagic=N32;;
24403 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24404 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24405 *) libsuff= shlibsuff= libmagic=never-match;;
24406 esac
24408 esac
24409 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24410 shlibpath_overrides_runpath=no
24411 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24412 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24413 hardcode_into_libs=yes
24416 # No shared lib support for Linux oldld, aout, or coff.
24417 linux*oldld* | linux*aout* | linux*coff*)
24418 dynamic_linker=no
24421 # This must be Linux ELF.
24423 # uclinux* changes (here and below) have been submitted to the libtool
24424 # project, but have not yet been accepted: they are GCC-local changes
24425 # for the time being. (See
24426 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24427 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24428 version_type=linux
24429 need_lib_prefix=no
24430 need_version=no
24431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24432 soname_spec='${libname}${release}${shared_ext}$major'
24433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24434 shlibpath_var=LD_LIBRARY_PATH
24435 shlibpath_overrides_runpath=no
24437 # Some binutils ld are patched to set DT_RUNPATH
24438 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24439 $as_echo_n "(cached) " >&6
24440 else
24441 lt_cv_shlibpath_overrides_runpath=no
24442 save_LDFLAGS=$LDFLAGS
24443 save_libdir=$libdir
24444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h. */
24450 main ()
24454 return 0;
24456 _ACEOF
24457 if ac_fn_cxx_try_link "$LINENO"; then :
24458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24459 lt_cv_shlibpath_overrides_runpath=yes
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LDFLAGS=$save_LDFLAGS
24465 libdir=$save_libdir
24469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24471 # This implies no fast_install, which is unacceptable.
24472 # Some rework will be needed to allow for fast_install
24473 # before this can be enabled.
24474 hardcode_into_libs=yes
24476 # Append ld.so.conf contents to the search path
24477 if test -f /etc/ld.so.conf; then
24478 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' ' '`
24479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24482 # We used to test for /lib/ld.so.1 and disable shared libraries on
24483 # powerpc, because MkLinux only supported shared libraries with the
24484 # GNU dynamic linker. Since this was broken with cross compilers,
24485 # most powerpc-linux boxes support dynamic linking these days and
24486 # people can always --disable-shared, the test was removed, and we
24487 # assume the GNU/Linux dynamic linker is in use.
24488 dynamic_linker='GNU/Linux ld.so'
24491 netbsd*)
24492 version_type=sunos
24493 need_lib_prefix=no
24494 need_version=no
24495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24498 dynamic_linker='NetBSD (a.out) ld.so'
24499 else
24500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24501 soname_spec='${libname}${release}${shared_ext}$major'
24502 dynamic_linker='NetBSD ld.elf_so'
24504 shlibpath_var=LD_LIBRARY_PATH
24505 shlibpath_overrides_runpath=yes
24506 hardcode_into_libs=yes
24509 newsos6)
24510 version_type=linux
24511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24512 shlibpath_var=LD_LIBRARY_PATH
24513 shlibpath_overrides_runpath=yes
24516 *nto* | *qnx*)
24517 version_type=qnx
24518 need_lib_prefix=no
24519 need_version=no
24520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24521 soname_spec='${libname}${release}${shared_ext}$major'
24522 shlibpath_var=LD_LIBRARY_PATH
24523 shlibpath_overrides_runpath=no
24524 hardcode_into_libs=yes
24525 dynamic_linker='ldqnx.so'
24528 openbsd*)
24529 version_type=sunos
24530 sys_lib_dlsearch_path_spec="/usr/lib"
24531 need_lib_prefix=no
24532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24533 case $host_os in
24534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24535 *) need_version=no ;;
24536 esac
24537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24539 shlibpath_var=LD_LIBRARY_PATH
24540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24541 case $host_os in
24542 openbsd2.[89] | openbsd2.[89].*)
24543 shlibpath_overrides_runpath=no
24546 shlibpath_overrides_runpath=yes
24548 esac
24549 else
24550 shlibpath_overrides_runpath=yes
24554 os2*)
24555 libname_spec='$name'
24556 shrext_cmds=".dll"
24557 need_lib_prefix=no
24558 library_names_spec='$libname${shared_ext} $libname.a'
24559 dynamic_linker='OS/2 ld.exe'
24560 shlibpath_var=LIBPATH
24563 osf3* | osf4* | osf5*)
24564 version_type=osf
24565 need_lib_prefix=no
24566 need_version=no
24567 soname_spec='${libname}${release}${shared_ext}$major'
24568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24569 shlibpath_var=LD_LIBRARY_PATH
24570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24574 rdos*)
24575 dynamic_linker=no
24578 solaris*)
24579 version_type=linux
24580 need_lib_prefix=no
24581 need_version=no
24582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24583 soname_spec='${libname}${release}${shared_ext}$major'
24584 shlibpath_var=LD_LIBRARY_PATH
24585 shlibpath_overrides_runpath=yes
24586 hardcode_into_libs=yes
24587 # ldd complains unless libraries are executable
24588 postinstall_cmds='chmod +x $lib'
24591 sunos4*)
24592 version_type=sunos
24593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24595 shlibpath_var=LD_LIBRARY_PATH
24596 shlibpath_overrides_runpath=yes
24597 if test "$with_gnu_ld" = yes; then
24598 need_lib_prefix=no
24600 need_version=yes
24603 sysv4 | sysv4.3*)
24604 version_type=linux
24605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24606 soname_spec='${libname}${release}${shared_ext}$major'
24607 shlibpath_var=LD_LIBRARY_PATH
24608 case $host_vendor in
24609 sni)
24610 shlibpath_overrides_runpath=no
24611 need_lib_prefix=no
24612 runpath_var=LD_RUN_PATH
24614 siemens)
24615 need_lib_prefix=no
24617 motorola)
24618 need_lib_prefix=no
24619 need_version=no
24620 shlibpath_overrides_runpath=no
24621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24623 esac
24626 sysv4*MP*)
24627 if test -d /usr/nec ;then
24628 version_type=linux
24629 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24630 soname_spec='$libname${shared_ext}.$major'
24631 shlibpath_var=LD_LIBRARY_PATH
24635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24636 version_type=freebsd-elf
24637 need_lib_prefix=no
24638 need_version=no
24639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24640 soname_spec='${libname}${release}${shared_ext}$major'
24641 shlibpath_var=LD_LIBRARY_PATH
24642 shlibpath_overrides_runpath=yes
24643 hardcode_into_libs=yes
24644 if test "$with_gnu_ld" = yes; then
24645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24646 else
24647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24648 case $host_os in
24649 sco3.2v5*)
24650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24652 esac
24654 sys_lib_dlsearch_path_spec='/usr/lib'
24657 tpf*)
24658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24659 version_type=linux
24660 need_lib_prefix=no
24661 need_version=no
24662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24663 shlibpath_var=LD_LIBRARY_PATH
24664 shlibpath_overrides_runpath=no
24665 hardcode_into_libs=yes
24668 uts4*)
24669 version_type=linux
24670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24671 soname_spec='${libname}${release}${shared_ext}$major'
24672 shlibpath_var=LD_LIBRARY_PATH
24675 # Shared libraries for VwWorks, >= 7 only at this stage
24676 # and (fpic) still incompatible with "large" code models
24677 # in a few configurations. Only for RTP mode in any case,
24678 # and upon explicit request at configure time.
24679 vxworks7*)
24680 dynamic_linker=no
24681 case ${with_multisubdir}-${enable_shared} in
24682 *large*)
24684 *mrtp*-yes)
24685 version_type=linux
24686 need_lib_prefix=no
24687 need_version=no
24688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24689 soname_spec='${libname}${release}${shared_ext}$major'
24690 dynamic_linker="$host_os module_loader"
24692 esac
24695 dynamic_linker=no
24697 esac
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24699 $as_echo "$dynamic_linker" >&6; }
24700 test "$dynamic_linker" = no && can_build_shared=no
24702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24703 if test "$GCC" = yes; then
24704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24707 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24710 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24753 hardcode_action_CXX=
24754 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24755 test -n "$runpath_var_CXX" ||
24756 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24758 # We can hardcode non-existent directories.
24759 if test "$hardcode_direct_CXX" != no &&
24760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24761 # have to relink, otherwise we might link with an installed library
24762 # when we should be linking with a yet-to-be-installed one
24763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24764 test "$hardcode_minus_L_CXX" != no; then
24765 # Linking always hardcodes the temporary library directory.
24766 hardcode_action_CXX=relink
24767 else
24768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24769 hardcode_action_CXX=immediate
24771 else
24772 # We cannot hardcode anything, or else we can only hardcode existing
24773 # directories.
24774 hardcode_action_CXX=unsupported
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24777 $as_echo "$hardcode_action_CXX" >&6; }
24779 if test "$hardcode_action_CXX" = relink ||
24780 test "$inherit_rpath_CXX" = yes; then
24781 # Fast installation is not supported
24782 enable_fast_install=no
24783 elif test "$shlibpath_overrides_runpath" = yes ||
24784 test "$enable_shared" = no; then
24785 # Fast installation is not necessary
24786 enable_fast_install=needless
24795 fi # test -n "$compiler"
24797 CC=$lt_save_CC
24798 LDCXX=$LD
24799 LD=$lt_save_LD
24800 GCC=$lt_save_GCC
24801 with_gnu_ld=$lt_save_with_gnu_ld
24802 lt_cv_path_LDCXX=$lt_cv_path_LD
24803 lt_cv_path_LD=$lt_save_path_LD
24804 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24805 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24806 fi # test "$_lt_caught_CXX_error" != yes
24808 ac_ext=cpp
24809 ac_cpp='$CXXCPP $CPPFLAGS'
24810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24829 # Only expand once:
24835 if test x$enable_darwin_at_rpath = xyes; then
24836 ENABLE_DARWIN_AT_RPATH_TRUE=
24837 ENABLE_DARWIN_AT_RPATH_FALSE='#'
24838 else
24839 ENABLE_DARWIN_AT_RPATH_TRUE='#'
24840 ENABLE_DARWIN_AT_RPATH_FALSE=
24843 DARWIN_DO_EXTRA_RPATH=0
24845 # Check whether --with-darwin-extra-rpath was given.
24846 if test "${with_darwin_extra_rpath+set}" = set; then :
24847 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
24848 DARWIN_ADD_RPATH="$withval"
24849 DARWIN_DO_EXTRA_RPATH=1
24854 cat >>confdefs.h <<_ACEOF
24855 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
24856 _ACEOF
24859 cat >>confdefs.h <<_ACEOF
24860 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
24861 _ACEOF
24864 # Identify the assembler which will work hand-in-glove with the newly
24865 # built GCC, so that we can examine its features. This is the assembler
24866 # which will be driven by the driver program.
24868 # If build != host, and we aren't building gas in-tree, we identify a
24869 # build->target assembler and hope that it will have the same features
24870 # as the host->target assembler we'll be using.
24871 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24873 if ${gcc_cv_as+:} false; then :
24875 else
24877 if test -x "$DEFAULT_ASSEMBLER"; then
24878 gcc_cv_as="$DEFAULT_ASSEMBLER"
24879 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
24880 && test -f ../gas/Makefile \
24881 && test x$build = x$host; then
24882 gcc_cv_as=../gas/as-new$build_exeext
24883 elif test -x as$build_exeext; then
24884 # Build using assembler in the current directory.
24885 gcc_cv_as=./as$build_exeext
24886 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
24887 gcc_cv_as="$AS_FOR_TARGET"
24888 else
24889 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24890 set dummy $AS_FOR_TARGET; ac_word=$2
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24892 $as_echo_n "checking for $ac_word... " >&6; }
24893 if ${ac_cv_path_gcc_cv_as+:} false; then :
24894 $as_echo_n "(cached) " >&6
24895 else
24896 case $gcc_cv_as in
24897 [\\/]* | ?:[\\/]*)
24898 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
24901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24902 for as_dir in $PATH
24904 IFS=$as_save_IFS
24905 test -z "$as_dir" && as_dir=.
24906 for ac_exec_ext in '' $ac_executable_extensions; do
24907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24908 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
24909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24910 break 2
24912 done
24913 done
24914 IFS=$as_save_IFS
24917 esac
24919 gcc_cv_as=$ac_cv_path_gcc_cv_as
24920 if test -n "$gcc_cv_as"; then
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
24922 $as_echo "$gcc_cv_as" >&6; }
24923 else
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24925 $as_echo "no" >&6; }
24932 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
24934 case "$ORIGINAL_AS_FOR_TARGET" in
24935 ./as | ./as$build_exeext) ;;
24936 *) ac_config_files="$ac_config_files as:exec-tool.in"
24938 esac
24940 default_ld=
24941 # Check whether --enable-ld was given.
24942 if test "${enable_ld+set}" = set; then :
24943 enableval=$enable_ld; case "${enableval}" in
24945 default_ld=ld.gold
24947 esac
24951 install_gold_as_default=no
24952 # Check whether --enable-gold was given.
24953 if test "${enable_gold+set}" = set; then :
24954 enableval=$enable_gold; case "${enableval}" in
24955 default)
24956 install_gold_as_default=yes
24958 yes)
24959 if test x${default_ld} != x; then
24960 install_gold_as_default=yes
24966 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
24968 esac
24972 # Identify the linker which will work hand-in-glove with the newly
24973 # built GCC, so that we can examine its features. This is the linker
24974 # which will be driven by the driver program.
24976 # If build != host, and we aren't building gas in-tree, we identify a
24977 # build->target linker and hope that it will have the same features
24978 # as the host->target linker we'll be using.
24979 gcc_cv_gld_major_version=
24980 gcc_cv_gld_minor_version=
24981 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24982 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
24983 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24985 if ${gcc_cv_ld+:} false; then :
24987 else
24989 if test -x "$DEFAULT_LINKER"; then
24990 gcc_cv_ld="$DEFAULT_LINKER"
24991 elif test $install_gold_as_default = yes \
24992 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
24993 && test -f ../gold/Makefile \
24994 && test x$build = x$host; then
24995 gcc_cv_ld=../gold/ld-new$build_exeext
24996 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
24997 && test -f ../ld/Makefile \
24998 && test x$build = x$host; then
24999 gcc_cv_ld=../ld/ld-new$build_exeext
25000 elif test -x collect-ld$build_exeext; then
25001 # Build using linker in the current directory.
25002 gcc_cv_ld=./collect-ld$build_exeext
25003 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25004 gcc_cv_ld="$LD_FOR_TARGET"
25005 else
25006 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25007 set dummy $LD_FOR_TARGET; ac_word=$2
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25009 $as_echo_n "checking for $ac_word... " >&6; }
25010 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25011 $as_echo_n "(cached) " >&6
25012 else
25013 case $gcc_cv_ld in
25014 [\\/]* | ?:[\\/]*)
25015 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25019 for as_dir in $PATH
25021 IFS=$as_save_IFS
25022 test -z "$as_dir" && as_dir=.
25023 for ac_exec_ext in '' $ac_executable_extensions; do
25024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25025 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25027 break 2
25029 done
25030 done
25031 IFS=$as_save_IFS
25034 esac
25036 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25037 if test -n "$gcc_cv_ld"; then
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25039 $as_echo "$gcc_cv_ld" >&6; }
25040 else
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25042 $as_echo "no" >&6; }
25049 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25050 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25051 # if the PLUGIN_LD is set ld-new, just have it as ld
25052 # as that is the installed named.
25053 if test x$PLUGIN_LD_SUFFIX = xld-new \
25054 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25055 PLUGIN_LD_SUFFIX=ld
25058 # Check whether --with-plugin-ld was given.
25059 if test "${with_plugin_ld+set}" = set; then :
25060 withval=$with_plugin_ld; if test x"$withval" != x; then
25061 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25062 PLUGIN_LD_SUFFIX="$withval"
25068 cat >>confdefs.h <<_ACEOF
25069 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25070 _ACEOF
25073 # Check to see if we are using gold instead of ld
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25075 $as_echo_n "checking whether we are using gold... " >&6; }
25076 ld_is_gold=no
25077 if test x$gcc_cv_ld != x; then
25078 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25079 | grep "GNU gold" > /dev/null; then
25080 ld_is_gold=yes
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25084 $as_echo "$ld_is_gold" >&6; }
25086 # Check to see if we are using mold instead of ld
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25088 $as_echo_n "checking whether we are using mold... " >&6; }
25089 ld_is_mold=no
25090 if test x$gcc_cv_ld != x; then
25091 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25092 | grep "mold" > /dev/null; then
25093 ld_is_mold=yes
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25097 $as_echo "$ld_is_mold" >&6; }
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25101 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25102 # Check to see if default ld is not gold, but gold is
25103 # available and has support for split stack. If gcc was configured
25104 # with gold then no checking is done.
25106 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25108 # For platforms other than powerpc64*, enable as appropriate.
25110 gold_non_default=no
25111 ld_gold=`which ${gcc_cv_ld}.gold`
25112 # Make sure this gold has minimal split stack support
25113 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25114 ld_vers=`$ld_gold --version | sed 1q`
25115 gold_vers=`echo $ld_vers | sed -n \
25116 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25117 case $target in
25118 # check that the gold version contains the complete split stack support
25119 # on powerpc64 big and little endian
25120 powerpc64*-*-*)
25121 case "$gold_vers" in
25122 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25124 *) gold_non_default=no
25126 esac
25128 esac
25130 if test $gold_non_default = yes; then
25132 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25137 $as_echo "$gold_non_default" >&6; }
25139 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25141 case "$ORIGINAL_LD_FOR_TARGET" in
25142 ./collect-ld | ./collect-ld$build_exeext) ;;
25143 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25145 esac
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25148 $as_echo_n "checking what linker to use... " >&6; }
25149 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25150 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25151 # Single tree build which includes ld. We want to prefer it
25152 # over whatever linker top-level may have detected, since
25153 # we'll use what we're building after installation anyway.
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25155 $as_echo "newly built ld" >&6; }
25156 in_tree_ld=yes
25157 in_tree_ld_is_elf=no
25158 if (grep 'EMUL = .*elf' ../ld/Makefile \
25159 || grep 'EMUL = .*linux' ../ld/Makefile \
25160 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25161 in_tree_ld_is_elf=yes
25162 elif test "$ld_is_gold" = yes; then
25163 in_tree_ld_is_elf=yes
25165 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
25167 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25168 if test x$gcc_cv_gld_version != x; then
25169 break
25171 done
25172 case $gcc_cv_gld_version in
25173 VERSION=[0-9]*) ;;
25174 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25175 esac
25176 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25177 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25178 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25179 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25180 else
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25182 $as_echo "$gcc_cv_ld" >&6; }
25183 in_tree_ld=no
25184 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25185 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25186 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25192 # Figure out what nm we will be using.
25193 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25194 if ${gcc_cv_nm+:} false; then :
25196 else
25198 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25199 && test -f ../binutils/Makefile \
25200 && test x$build = x$host; then
25201 gcc_cv_nm=../binutils/nm-new$build_exeext
25202 elif test -x nm$build_exeext; then
25203 gcc_cv_nm=./nm$build_exeext
25204 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25205 gcc_cv_nm="$NM_FOR_TARGET"
25206 else
25207 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25208 set dummy $NM_FOR_TARGET; ac_word=$2
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25210 $as_echo_n "checking for $ac_word... " >&6; }
25211 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 case $gcc_cv_nm in
25215 [\\/]* | ?:[\\/]*)
25216 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25220 for as_dir in $PATH
25222 IFS=$as_save_IFS
25223 test -z "$as_dir" && as_dir=.
25224 for ac_exec_ext in '' $ac_executable_extensions; do
25225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25226 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25228 break 2
25230 done
25231 done
25232 IFS=$as_save_IFS
25235 esac
25237 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25238 if test -n "$gcc_cv_nm"; then
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25240 $as_echo "$gcc_cv_nm" >&6; }
25241 else
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25243 $as_echo "no" >&6; }
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25251 $as_echo_n "checking what nm to use... " >&6; }
25252 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25253 # Single tree build which includes binutils.
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25255 $as_echo "newly built nm" >&6; }
25256 in_tree_nm=yes
25257 else
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25259 $as_echo "$gcc_cv_nm" >&6; }
25260 in_tree_nm=no
25263 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25265 case "$ORIGINAL_NM_FOR_TARGET" in
25266 ./nm | ./nm$build_exeext) ;;
25267 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25269 esac
25272 # Figure out what objdump we will be using.
25273 if ${gcc_cv_objdump+:} false; then :
25275 else
25277 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25278 && test -f ../binutils/Makefile \
25279 && test x$build = x$host; then
25280 # Single tree build which includes binutils.
25281 gcc_cv_objdump=../binutils/objdump$build_exeext
25282 elif test -x objdump$build_exeext; then
25283 gcc_cv_objdump=./objdump$build_exeext
25284 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25285 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25286 else
25287 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25288 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25290 $as_echo_n "checking for $ac_word... " >&6; }
25291 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 case $gcc_cv_objdump in
25295 [\\/]* | ?:[\\/]*)
25296 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25300 for as_dir in $PATH
25302 IFS=$as_save_IFS
25303 test -z "$as_dir" && as_dir=.
25304 for ac_exec_ext in '' $ac_executable_extensions; do
25305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25306 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25308 break 2
25310 done
25311 done
25312 IFS=$as_save_IFS
25315 esac
25317 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25318 if test -n "$gcc_cv_objdump"; then
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25320 $as_echo "$gcc_cv_objdump" >&6; }
25321 else
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25323 $as_echo "no" >&6; }
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25331 $as_echo_n "checking what objdump to use... " >&6; }
25332 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25333 # Single tree build which includes binutils.
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25335 $as_echo "newly built objdump" >&6; }
25336 elif test x$gcc_cv_objdump = x; then
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25338 $as_echo "not found" >&6; }
25339 else
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25341 $as_echo "$gcc_cv_objdump" >&6; }
25344 # Figure out what readelf we will be using.
25345 if ${gcc_cv_readelf+:} false; then :
25347 else
25349 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25350 && test -f ../binutils/Makefile \
25351 && test x$build = x$host; then
25352 # Single tree build which includes binutils.
25353 gcc_cv_readelf=../binutils/readelf$build_exeext
25354 elif test -x readelf$build_exeext; then
25355 gcc_cv_readelf=./readelf$build_exeext
25356 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25357 gcc_cv_readelf="$READELF_FOR_TARGET"
25358 else
25359 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25360 set dummy $READELF_FOR_TARGET; ac_word=$2
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25362 $as_echo_n "checking for $ac_word... " >&6; }
25363 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 case $gcc_cv_readelf in
25367 [\\/]* | ?:[\\/]*)
25368 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25372 for as_dir in $PATH
25374 IFS=$as_save_IFS
25375 test -z "$as_dir" && as_dir=.
25376 for ac_exec_ext in '' $ac_executable_extensions; do
25377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25378 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25380 break 2
25382 done
25383 done
25384 IFS=$as_save_IFS
25387 esac
25389 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25390 if test -n "$gcc_cv_readelf"; then
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25392 $as_echo "$gcc_cv_readelf" >&6; }
25393 else
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25395 $as_echo "no" >&6; }
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25403 $as_echo_n "checking what readelf to use... " >&6; }
25404 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25405 # Single tree build which includes binutils.
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25407 $as_echo "newly built readelf" >&6; }
25408 elif test x$gcc_cv_readelf = x; then
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25410 $as_echo "not found" >&6; }
25411 else
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25413 $as_echo "$gcc_cv_readelf" >&6; }
25416 # Figure out what otool we will be using.
25417 if ${gcc_cv_otool+:} false; then :
25419 else
25421 if test -x otool$build_exeext; then
25422 gcc_cv_otool=./otool$build_exeext
25423 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25424 gcc_cv_otool="$OTOOL_FOR_TARGET"
25425 else
25426 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25427 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25429 $as_echo_n "checking for $ac_word... " >&6; }
25430 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25431 $as_echo_n "(cached) " >&6
25432 else
25433 case $gcc_cv_otool in
25434 [\\/]* | ?:[\\/]*)
25435 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25439 for as_dir in $PATH
25441 IFS=$as_save_IFS
25442 test -z "$as_dir" && as_dir=.
25443 for ac_exec_ext in '' $ac_executable_extensions; do
25444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25445 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25447 break 2
25449 done
25450 done
25451 IFS=$as_save_IFS
25454 esac
25456 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25457 if test -n "$gcc_cv_otool"; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25459 $as_echo "$gcc_cv_otool" >&6; }
25460 else
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25462 $as_echo "no" >&6; }
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25470 $as_echo_n "checking what otool to use... " >&6; }
25471 if test x$gcc_cv_otool = x; then
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25473 $as_echo "not found" >&6; }
25474 else
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25476 $as_echo "$gcc_cv_otool" >&6; }
25479 # Figure out the dsymutil we will use.
25480 if ${gcc_cv_dsymutil+:} false; then :
25482 else
25484 if test -x "$DEFAULT_DSYMUTIL"; then
25485 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25486 elif test -x dsymutil$build_exeext; then
25487 gcc_cv_dsymutil=./dsymutil$build_exeext
25488 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25489 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25490 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25491 gcc_cv_dsymutil=$DSYMUTIL
25492 else
25493 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25494 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25496 $as_echo_n "checking for $ac_word... " >&6; }
25497 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25498 $as_echo_n "(cached) " >&6
25499 else
25500 case $gcc_cv_dsymutil in
25501 [\\/]* | ?:[\\/]*)
25502 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25506 for as_dir in $PATH
25508 IFS=$as_save_IFS
25509 test -z "$as_dir" && as_dir=.
25510 for ac_exec_ext in '' $ac_executable_extensions; do
25511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25512 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25514 break 2
25516 done
25517 done
25518 IFS=$as_save_IFS
25521 esac
25523 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25524 if test -n "$gcc_cv_dsymutil"; then
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25526 $as_echo "$gcc_cv_dsymutil" >&6; }
25527 else
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25529 $as_echo "no" >&6; }
25536 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25538 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25539 ./dsymutil | ./dsymutil$build_exeext) ;;
25540 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25542 esac
25544 # Figure out what assembler alignment features are present.
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25546 $as_echo_n "checking assembler flags... " >&6; }
25547 if ${gcc_cv_as_flags+:} false; then :
25548 $as_echo_n "(cached) " >&6
25549 else
25550 case "$target" in
25551 i[34567]86-*-linux*)
25552 gcc_cv_as_flags=--32
25554 x86_64-*-linux-gnux32)
25555 gcc_cv_as_flags=--x32
25557 x86_64-*-linux*)
25558 gcc_cv_as_flags=--64
25560 powerpc*-*-darwin*)
25561 gcc_cv_as_flags="-arch ppc"
25564 gcc_cv_as_flags=" "
25566 esac
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25569 $as_echo "$gcc_cv_as_flags" >&6; }
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25572 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25573 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25574 $as_echo_n "(cached) " >&6
25575 else
25576 gcc_cv_as_balign_and_p2align=no
25577 if test x$gcc_cv_as != x; then
25578 $as_echo '.balign 4
25579 .p2align 2' > conftest.s
25580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25585 test $ac_status = 0; }; }
25586 then
25587 gcc_cv_as_balign_and_p2align=yes
25588 else
25589 echo "configure: failed program was" >&5
25590 cat conftest.s >&5
25592 rm -f conftest.o conftest.s
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25596 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25597 if test $gcc_cv_as_balign_and_p2align = yes; then
25599 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25605 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25606 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25607 $as_echo_n "(cached) " >&6
25608 else
25609 gcc_cv_as_max_skip_p2align=no
25610 if test x$gcc_cv_as != x; then
25611 $as_echo '.p2align 4,,7' > conftest.s
25612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25618 then
25619 gcc_cv_as_max_skip_p2align=yes
25620 else
25621 echo "configure: failed program was" >&5
25622 cat conftest.s >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25628 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25629 if test $gcc_cv_as_max_skip_p2align = yes; then
25631 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25637 $as_echo_n "checking assembler for .literal16... " >&6; }
25638 if ${gcc_cv_as_literal16+:} false; then :
25639 $as_echo_n "(cached) " >&6
25640 else
25641 gcc_cv_as_literal16=no
25642 if test x$gcc_cv_as != x; then
25643 $as_echo '.literal16' > conftest.s
25644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25649 test $ac_status = 0; }; }
25650 then
25651 gcc_cv_as_literal16=yes
25652 else
25653 echo "configure: failed program was" >&5
25654 cat conftest.s >&5
25656 rm -f conftest.o conftest.s
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25660 $as_echo "$gcc_cv_as_literal16" >&6; }
25661 if test $gcc_cv_as_literal16 = yes; then
25663 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25669 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25670 if ${gcc_cv_as_subsection_m1+:} false; then :
25671 $as_echo_n "(cached) " >&6
25672 else
25673 gcc_cv_as_subsection_m1=no
25674 if test x$gcc_cv_as != x; then
25675 $as_echo 'conftest_label1: .word 0
25676 .subsection -1
25677 conftest_label2: .word 0
25678 .previous' > conftest.s
25679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25682 ac_status=$?
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25685 then
25686 if test x$gcc_cv_nm != x; then
25687 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25688 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25689 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25690 then :
25691 else gcc_cv_as_subsection_m1=yes
25693 rm -f conftest.nm1 conftest.nm2
25695 else
25696 echo "configure: failed program was" >&5
25697 cat conftest.s >&5
25699 rm -f conftest.o conftest.s
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25703 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25704 if test $gcc_cv_as_subsection_m1 = yes; then
25706 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25712 $as_echo_n "checking assembler for .weak... " >&6; }
25713 if ${gcc_cv_as_weak+:} false; then :
25714 $as_echo_n "(cached) " >&6
25715 else
25716 gcc_cv_as_weak=no
25717 if test x$gcc_cv_as != x; then
25718 $as_echo ' .weak foobar' > conftest.s
25719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25721 (eval $ac_try) 2>&5
25722 ac_status=$?
25723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25724 test $ac_status = 0; }; }
25725 then
25726 gcc_cv_as_weak=yes
25727 else
25728 echo "configure: failed program was" >&5
25729 cat conftest.s >&5
25731 rm -f conftest.o conftest.s
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25735 $as_echo "$gcc_cv_as_weak" >&6; }
25736 if test $gcc_cv_as_weak = yes; then
25738 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25744 $as_echo_n "checking assembler for .weakref... " >&6; }
25745 if ${gcc_cv_as_weakref+:} false; then :
25746 $as_echo_n "(cached) " >&6
25747 else
25748 gcc_cv_as_weakref=no
25749 if test x$gcc_cv_as != x; then
25750 $as_echo ' .weakref foobar, barfnot' > conftest.s
25751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25757 then
25758 gcc_cv_as_weakref=yes
25759 else
25760 echo "configure: failed program was" >&5
25761 cat conftest.s >&5
25763 rm -f conftest.o conftest.s
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25767 $as_echo "$gcc_cv_as_weakref" >&6; }
25768 if test $gcc_cv_as_weakref = yes; then
25770 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25776 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25777 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25778 $as_echo_n "(cached) " >&6
25779 else
25780 gcc_cv_as_nsubspa_comdat=no
25781 if test x$gcc_cv_as != x; then
25782 $as_echo ' .SPACE $TEXT$
25783 .NSUBSPA $CODE$,COMDAT' > conftest.s
25784 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25786 (eval $ac_try) 2>&5
25787 ac_status=$?
25788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25789 test $ac_status = 0; }; }
25790 then
25791 gcc_cv_as_nsubspa_comdat=yes
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25800 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25801 if test $gcc_cv_as_nsubspa_comdat = yes; then
25803 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25808 # .hidden needs to be supported in both the assembler and the linker,
25809 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25810 # This is irritatingly difficult to feature test for; we have to check the
25811 # date string after the version number. If we've got an in-tree
25812 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25813 # to be safe.
25814 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25815 case "${target}" in
25816 *-*-aix*)
25817 conftest_s=' .globl foobar,hidden'
25820 conftest_s=' .hidden foobar
25821 foobar:'
25823 esac
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25825 $as_echo_n "checking assembler for .hidden... " >&6; }
25826 if ${gcc_cv_as_hidden+:} false; then :
25827 $as_echo_n "(cached) " >&6
25828 else
25829 gcc_cv_as_hidden=no
25830 if test x$gcc_cv_as != x; then
25831 $as_echo "$conftest_s" > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 gcc_cv_as_hidden=yes
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25844 rm -f conftest.o conftest.s
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
25848 $as_echo "$gcc_cv_as_hidden" >&6; }
25851 case "${target}" in
25852 *-*-darwin*)
25853 # Darwin as has some visibility support, though with a different syntax.
25854 gcc_cv_as_hidden=yes
25856 esac
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .base64" >&5
25859 $as_echo_n "checking assembler for .base64... " >&6; }
25860 if ${gcc_cv_as_base64+:} false; then :
25861 $as_echo_n "(cached) " >&6
25862 else
25863 gcc_cv_as_base64=no
25864 if test x$gcc_cv_as != x; then
25865 $as_echo ' .section .rodata
25866 .base64 "Tm9uIHB1ZG9yIGVzdCBuaWwgc2NpcmUsIHB1ZG9yIG5pbCBkaXNjZXJlIHZlbGxlLgo="' > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 gcc_cv_as_base64=yes
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_base64" >&5
25883 $as_echo "$gcc_cv_as_base64" >&6; }
25884 if test $gcc_cv_as_base64 = yes; then
25886 $as_echo "#define HAVE_GAS_BASE64 1" >>confdefs.h
25891 # gnu_indirect_function type is an extension proposed at
25892 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
25893 # selection of function implementation
25894 # Check whether --enable-gnu-indirect-function was given.
25895 if test "${enable_gnu_indirect_function+set}" = set; then :
25896 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
25897 yes | no) ;;
25898 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
25899 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25900 esac
25901 else
25902 enable_gnu_indirect_function="$default_gnu_indirect_function"
25906 case "${target}" in
25907 riscv*-*-linux*)
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
25909 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
25910 cat > conftest.s <<EOF
25911 .text
25912 .type foo_resolver, @function
25913 foo_resolver:
25915 .size foo_resolver, .-foo_resolver
25917 .globl foo
25918 .type foo, %gnu_indirect_function
25919 .set foo, foo_resolver
25921 .globl bar
25922 .type bar, @function
25923 bar:
25924 call foo
25926 .size bar, .-bar
25928 if test x$gcc_cv_as != x \
25929 && test x$gcc_cv_ld != x \
25930 && test x$gcc_cv_readelf != x \
25931 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
25932 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
25933 && $gcc_cv_readelf --relocs --wide conftest \
25934 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
25935 enable_gnu_indirect_function=yes
25937 rm -f conftest conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
25939 $as_echo "$enable_gnu_indirect_function" >&6; }
25941 esac
25943 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
25945 cat >>confdefs.h <<_ACEOF
25946 #define HAVE_GNU_INDIRECT_FUNCTION $gif
25947 _ACEOF
25951 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25952 if test $in_tree_ld != yes ; then
25953 if echo "$ld_ver" | grep GNU > /dev/null; then
25954 if test x"$ld_is_gold" = xyes; then
25955 # GNU gold --version looks like this:
25957 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
25959 # We extract the binutils version which is more familiar and specific
25960 # than the gold version.
25961 ld_vers=`echo $ld_ver | sed -n \
25962 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25963 else
25964 # GNU ld --version looks like this:
25966 # GNU ld (GNU Binutils) 2.21.51.20110225
25967 ld_vers=`echo $ld_ver | sed -n \
25968 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25970 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'`
25971 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25972 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25973 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25974 else
25975 case "${target}" in
25976 *-*-solaris2*)
25977 # Solaris 2 ld -V output looks like this for a regular version:
25979 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
25981 # but test versions add stuff at the end:
25983 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
25985 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
25986 # numbers can be used in ld.so.1 feature checks even if a different
25987 # linker is configured.
25988 ld_ver=`$gcc_cv_ld -V 2>&1`
25989 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
25990 ld_vers=`echo $ld_ver | sed -n \
25991 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
25992 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25993 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25996 esac
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26001 $as_echo_n "checking linker for .hidden support... " >&6; }
26002 if ${gcc_cv_ld_hidden+:} false; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 if test $in_tree_ld = yes ; then
26006 gcc_cv_ld_hidden=no
26007 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 \
26008 && test $in_tree_ld_is_elf = yes; then
26009 gcc_cv_ld_hidden=yes
26011 else
26012 gcc_cv_ld_hidden=yes
26013 if test x"$ld_is_gold" = xyes; then
26015 elif test x"$ld_is_mold" = xyes; then
26017 elif echo "$ld_ver" | grep GNU > /dev/null; then
26018 if test 0"$ld_date" -lt 20020404; then
26019 if test -n "$ld_date"; then
26020 # If there was date string, but was earlier than 2002-04-04, fail
26021 gcc_cv_ld_hidden=no
26022 elif test -z "$ld_vers"; then
26023 # If there was no date string nor ld version number, something is wrong
26024 gcc_cv_ld_hidden=no
26025 else
26026 test -z "$ld_vers_patch" && ld_vers_patch=0
26027 if test "$ld_vers_major" -lt 2; then
26028 gcc_cv_ld_hidden=no
26029 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26030 gcc_cv_ld_hidden="no"
26031 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26032 gcc_cv_ld_hidden=no
26036 else
26037 case "${target}" in
26038 *-*-aix[789]*)
26039 gcc_cv_ld_hidden=yes
26041 *-*-darwin*)
26042 # Darwin ld has some visibility support.
26043 gcc_cv_ld_hidden=yes
26045 hppa64*-*-hpux* | ia64*-*-hpux*)
26046 gcc_cv_ld_hidden=yes
26048 *-*-solaris2*)
26049 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26050 # .symbolic was only added in Solaris 9 12/02.
26051 gcc_cv_ld_hidden=yes
26054 gcc_cv_ld_hidden=no
26056 esac
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26061 $as_echo "$gcc_cv_ld_hidden" >&6; }
26062 libgcc_visibility=no
26065 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26066 libgcc_visibility=yes
26068 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26073 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26074 gcc_cv_ld_ro_rw_mix=unknown
26075 if test $in_tree_ld = yes ; then
26076 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 \
26077 && test $in_tree_ld_is_elf = yes; then
26078 gcc_cv_ld_ro_rw_mix=read-write
26080 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26081 echo '.section myfoosect, "a"' > conftest1.s
26082 echo '.section myfoosect, "aw"' > conftest2.s
26083 echo '.byte 1' >> conftest2.s
26084 echo '.section myfoosect, "a"' > conftest3.s
26085 echo '.byte 0' >> conftest3.s
26086 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26087 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26088 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26089 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26090 conftest2.o conftest3.o > /dev/null 2>&1 \
26091 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26092 conftest2.o conftest3.o > /dev/null 2>&1; then
26093 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26094 | sed -e '/myfoosect/!d' -e N`
26095 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26096 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26097 gcc_cv_ld_ro_rw_mix=read-only
26098 else
26099 gcc_cv_ld_ro_rw_mix=read-write
26104 rm -f conftest.* conftest[123].*
26106 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26108 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26112 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26114 # Check whether --enable-initfini-array was given.
26115 if test "${enable_initfini_array+set}" = set; then :
26116 enableval=$enable_initfini_array;
26117 else
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26120 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26121 if ${gcc_cv_initfini_array+:} false; then :
26122 $as_echo_n "(cached) " >&6
26123 else
26124 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26125 case "${target}" in
26126 ia64-*)
26127 if test "$cross_compiling" = yes; then :
26128 gcc_cv_initfini_array=no
26129 else
26130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26131 /* end confdefs.h. */
26133 #ifndef __ELF__
26134 #error Not an ELF OS
26135 #endif
26136 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26137 if it can be used. */
26138 static int x = -1;
26139 int main (void) { return x; }
26140 int foo (void) { x = 0; }
26141 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26143 _ACEOF
26144 if ac_fn_cxx_try_run "$LINENO"; then :
26145 gcc_cv_initfini_array=yes
26146 else
26147 gcc_cv_initfini_array=no
26149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26150 conftest.$ac_objext conftest.beam conftest.$ac_ext
26154 gcc_cv_initfini_array=no
26155 if test $in_tree_ld = yes ; then
26156 if test "$gcc_cv_gld_major_version" -eq 2 \
26157 -a "$gcc_cv_gld_minor_version" -ge 22 \
26158 -o "$gcc_cv_gld_major_version" -gt 2 \
26159 && test $in_tree_ld_is_elf = yes; then
26160 gcc_cv_initfini_array=yes
26162 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26163 case $target:$gas in
26164 *:yes)
26165 sh_flags='"a"'
26166 sh_type='%progbits'
26168 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26169 sh_flags='"a"'
26170 sh_type='@progbits'
26172 sparc*-*-solaris2*:no)
26173 sh_flags='#alloc'
26174 sh_type='#progbits'
26175 sh_quote='"'
26177 esac
26178 case "$target:$gnu_ld" in
26179 *:yes)
26180 cat > conftest.s <<EOF
26181 .section .dtors,$sh_flags,$sh_type
26182 .balign 4
26183 .byte 'A', 'A', 'A', 'A'
26184 .section .ctors,$sh_flags,$sh_type
26185 .balign 4
26186 .byte 'B', 'B', 'B', 'B'
26187 .section .fini_array.65530,$sh_flags,$sh_type
26188 .balign 4
26189 .byte 'C', 'C', 'C', 'C'
26190 .section .init_array.65530,$sh_flags,$sh_type
26191 .balign 4
26192 .byte 'D', 'D', 'D', 'D'
26193 .section .dtors.64528,$sh_flags,$sh_type
26194 .balign 4
26195 .byte 'E', 'E', 'E', 'E'
26196 .section .ctors.64528,$sh_flags,$sh_type
26197 .balign 4
26198 .byte 'F', 'F', 'F', 'F'
26199 .section .fini_array.01005,$sh_flags,$sh_type
26200 .balign 4
26201 .byte 'G', 'G', 'G', 'G'
26202 .section .init_array.01005,$sh_flags,$sh_type
26203 .balign 4
26204 .byte 'H', 'H', 'H', 'H'
26205 .text
26206 .globl _start
26207 _start:
26209 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26210 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26211 && $gcc_cv_objdump -s -j .init_array conftest \
26212 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26213 && $gcc_cv_objdump -s -j .fini_array conftest \
26214 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26215 gcc_cv_initfini_array=yes
26218 *-*-solaris2*:no)
26219 # When Solaris ld added constructor priority support, it was
26220 # decided to only handle .init_array.N/.fini_array.N since
26221 # there was no need for backwards compatibility with
26222 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26223 # sections with correct execution order resp. to
26224 # .init_array/.fini_array, while gld merges them into
26225 # .init_array/.fini_array.
26226 cat > conftest.s <<EOF
26227 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26228 .align 4
26229 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26230 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26231 .align 4
26232 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26233 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26234 .align 4
26235 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26236 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26237 .align 4
26238 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26239 .text
26240 .globl _start
26241 _start:
26243 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26244 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26245 && $gcc_cv_objdump -s -j .init_array conftest \
26246 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26247 && $gcc_cv_objdump -s -j .fini_array conftest \
26248 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26249 gcc_cv_initfini_array=yes
26252 esac
26253 rm -f conftest conftest.*
26255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256 /* end confdefs.h. */
26258 #ifndef __ELF__
26259 # error Not an ELF OS
26260 #endif
26261 #include <stdlib.h>
26262 #if defined __GLIBC_PREREQ
26263 # if __GLIBC_PREREQ (2, 4)
26264 # else
26265 # error GLIBC 2.4 required
26266 # endif
26267 #else
26268 # if defined __sun__ && defined __svr4__
26269 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26270 # else
26271 # error The C library not known to support .init_array/.fini_array
26272 # endif
26273 #endif
26275 _ACEOF
26276 if ac_fn_cxx_try_cpp "$LINENO"; then :
26278 else
26279 gcc_cv_initfini_array=no
26281 rm -f conftest.err conftest.i conftest.$ac_ext;;
26282 esac
26283 else
26284 case "${target}" in
26285 aarch64*-linux-gnu*)
26286 # AArch64 postdates glibc support for .init_array/.fini_array,
26287 # so we don't need the preprocessor test above.
26288 gcc_cv_initfini_array=yes
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26293 $as_echo_n "checking cross compile... guessing... " >&6; }
26294 gcc_cv_initfini_array=no
26296 esac
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26300 $as_echo "$gcc_cv_initfini_array" >&6; }
26301 enable_initfini_array=$gcc_cv_initfini_array
26306 cat >>confdefs.h <<_ACEOF
26307 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26308 _ACEOF
26312 # Some assemblers (GNU as for LoongArch) generates relocations for
26313 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26314 # probing leb128 support then.
26315 case $target in
26316 loongarch*-*-*)
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26318 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26319 if ${gcc_cv_as_mno_relax+:} false; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 gcc_cv_as_mno_relax=no
26323 if test x$gcc_cv_as != x; then
26324 $as_echo '.text' > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_mno_relax=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26341 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26342 if test $gcc_cv_as_mno_relax = yes; then
26343 check_leb128_asflags=-mno-relax
26348 check_leb128_asflags=
26350 esac
26352 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26353 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26354 # these directives, even when they appear to accept them.
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26356 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26357 if ${gcc_cv_as_leb128+:} false; then :
26358 $as_echo_n "(cached) " >&6
26359 else
26360 gcc_cv_as_leb128=no
26361 if test x$gcc_cv_as != x; then
26362 $as_echo ' .data
26363 .uleb128 L2 - L1
26365 .uleb128 1280
26366 .sleb128 -1010
26368 .uleb128 0x8000000000000000
26369 ' > conftest.s
26370 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26372 (eval $ac_try) 2>&5
26373 ac_status=$?
26374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26375 test $ac_status = 0; }; }
26376 then
26378 if test "x$gcc_cv_objdump" != x; then
26379 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26380 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26381 gcc_cv_as_leb128=yes
26383 elif test "x$gcc_cv_otool" != x; then
26384 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26385 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26386 gcc_cv_as_leb128=yes
26388 else
26389 # play safe, assume the assembler is broken.
26393 else
26394 echo "configure: failed program was" >&5
26395 cat conftest.s >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26401 $as_echo "$gcc_cv_as_leb128" >&6; }
26402 if test $gcc_cv_as_leb128 = yes; then
26404 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26407 if test $gcc_cv_as_leb128 != yes; then
26409 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26413 # Determine if an .eh_frame section is read-only.
26414 gcc_fn_eh_frame_ro () {
26415 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26416 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26417 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26420 # Check if we have assembler support for unwind directives.
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26422 $as_echo_n "checking assembler for cfi directives... " >&6; }
26423 if ${gcc_cv_as_cfi_directive+:} false; then :
26424 $as_echo_n "(cached) " >&6
26425 else
26426 gcc_cv_as_cfi_directive=no
26427 if test x$gcc_cv_as != x; then
26428 $as_echo ' .text
26429 .cfi_startproc
26430 .cfi_offset 0, 0
26431 .cfi_same_value 1
26432 .cfi_def_cfa 1, 2
26433 .cfi_escape 1, 2, 3, 4, 5
26434 .cfi_endproc' > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 case "$target" in
26443 *-*-solaris*)
26444 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26445 # read-only and read-write sections, we need to make sure that the
26446 # assembler used emits read-write .eh_frame sections.
26447 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26448 gcc_cv_as_cfi_directive=yes
26449 elif test "x$gcc_cv_objdump" = x; then
26450 # No objdump, err on the side of caution.
26451 gcc_cv_as_cfi_directive=no
26452 else
26453 if test x$gas = xyes; then
26454 as_32_opt="--32"
26455 as_64_opt="--64"
26456 else
26457 as_32_opt="-m32"
26458 as_64_opt="-m64"
26460 case "$target" in
26461 sparc*-*-solaris2.*)
26462 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26463 if gcc_fn_eh_frame_ro $as_32_opt \
26464 || gcc_fn_eh_frame_ro $as_64_opt; then
26465 gcc_cv_as_cfi_directive=no
26466 else
26467 gcc_cv_as_cfi_directive=yes
26470 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26471 # On Solaris/x86, make sure that GCC and assembler agree on using
26472 # read-only .eh_frame sections for 64-bit.
26473 if gcc_fn_eh_frame_ro $as_32_opt; then
26474 gcc_cv_as_cfi_directive=no
26475 elif gcc_fn_eh_frame_ro $as_64_opt; then
26476 gcc_cv_as_cfi_directive=yes
26477 else
26478 gcc_cv_as_cfi_directive=no
26481 esac
26484 *-*-*)
26485 gcc_cv_as_cfi_directive=yes
26487 esac
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26496 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26499 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26501 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26502 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26503 $as_echo_n "(cached) " >&6
26504 else
26505 gcc_cv_as_cfi_advance_working=no
26506 if test x$gcc_cv_as != x; then
26507 $as_echo ' .text
26508 .cfi_startproc
26509 .cfi_adjust_cfa_offset 64
26510 .skip 75040, 0
26511 .cfi_adjust_cfa_offset 128
26512 .cfi_endproc' > conftest.s
26513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26516 ac_status=$?
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; }
26519 then
26521 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26522 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26523 gcc_cv_as_cfi_advance_working=yes
26526 else
26527 echo "configure: failed program was" >&5
26528 cat conftest.s >&5
26530 rm -f conftest.o conftest.s
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26534 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26537 else
26538 # no objdump, err on the side of caution
26539 gcc_cv_as_cfi_advance_working=no
26543 cat >>confdefs.h <<_ACEOF
26544 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26545 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26546 _ACEOF
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26551 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26552 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_cfi_personality_directive=no
26556 if test x$gcc_cv_as != x; then
26557 $as_echo ' .text
26558 .cfi_startproc
26559 .cfi_personality 0, symbol
26560 .cfi_endproc' > conftest.s
26561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26563 (eval $ac_try) 2>&5
26564 ac_status=$?
26565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566 test $ac_status = 0; }; }
26567 then
26568 gcc_cv_as_cfi_personality_directive=yes
26569 else
26570 echo "configure: failed program was" >&5
26571 cat conftest.s >&5
26573 rm -f conftest.o conftest.s
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26577 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26581 cat >>confdefs.h <<_ACEOF
26582 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26583 _ACEOF
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26587 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26588 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26589 $as_echo_n "(cached) " >&6
26590 else
26591 gcc_cv_as_cfi_sections_directive=no
26592 if test x$gcc_cv_as != x; then
26593 $as_echo ' .text
26594 .cfi_sections .debug_frame, .eh_frame
26595 .cfi_startproc
26596 .cfi_endproc' > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 case $target_os in
26605 win32 | pe | cygwin* | mingw32*)
26606 # Need to check that we generated the correct relocation for the
26607 # .debug_frame section. This was fixed for binutils 2.21.
26608 gcc_cv_as_cfi_sections_directive=no
26609 if test "x$gcc_cv_objdump" != x; then
26610 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26611 grep -i secrel > /dev/null; then
26612 gcc_cv_as_cfi_sections_directive=yes
26617 gcc_cv_as_cfi_sections_directive=yes
26619 esac
26620 else
26621 echo "configure: failed program was" >&5
26622 cat conftest.s >&5
26624 rm -f conftest.o conftest.s
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
26628 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26633 cat >>confdefs.h <<_ACEOF
26634 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26635 _ACEOF
26638 # GAS versions up to and including 2.11.0 may mis-optimize
26639 # .eh_frame data.
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26641 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26642 if ${gcc_cv_as_eh_frame+:} false; then :
26643 $as_echo_n "(cached) " >&6
26644 else
26645 gcc_cv_as_eh_frame=no
26646 if test x$gcc_cv_as != x; then
26647 $as_echo ' .text
26648 .LFB1:
26649 .4byte 0
26650 .L1:
26651 .4byte 0
26652 .LFE1:
26653 .section .eh_frame,"aw",@progbits
26654 __FRAME_BEGIN__:
26655 .4byte .LECIE1-.LSCIE1
26656 .LSCIE1:
26657 .4byte 0x0
26658 .byte 0x1
26659 .ascii "z\0"
26660 .byte 0x1
26661 .byte 0x78
26662 .byte 0x1a
26663 .byte 0x0
26664 .byte 0x4
26665 .4byte 1
26666 .p2align 1
26667 .LECIE1:
26668 .LSFDE1:
26669 .4byte .LEFDE1-.LASFDE1
26670 .LASFDE1:
26671 .4byte .LASFDE1-__FRAME_BEGIN__
26672 .4byte .LFB1
26673 .4byte .LFE1-.LFB1
26674 .byte 0x4
26675 .4byte .LFE1-.LFB1
26676 .byte 0x4
26677 .4byte .L1-.LFB1
26678 .LEFDE1:' > conftest.s
26679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26685 then
26686 cat > conftest.lit <<EOF
26687 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26688 0010 01000000 12000000 18000000 00000000 ................
26689 0020 08000000 04080000 0044 .........D
26691 cat > conftest.big <<EOF
26692 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26693 0010 00000001 00000012 00000018 00000000 ................
26694 0020 00000008 04000000 0844 .........D
26696 # If the assembler didn't choke, and we can objdump,
26697 # and we got the correct data, then succeed.
26698 # The text in the here-document typically retains its unix-style line
26699 # endings, while the output of objdump will use host line endings.
26700 # Therefore, use diff -b for the comparisons.
26701 if test x$gcc_cv_objdump != x \
26702 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26703 | tail -3 > conftest.got \
26704 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26705 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26706 then
26707 gcc_cv_as_eh_frame=yes
26708 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26713 test $ac_status = 0; }; }; then
26714 gcc_cv_as_eh_frame=buggy
26715 else
26716 # Uh oh, what do we do now?
26717 gcc_cv_as_eh_frame=no
26719 else
26720 echo "configure: failed program was" >&5
26721 cat conftest.s >&5
26723 rm -f conftest.o conftest.s
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26727 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26731 if test $gcc_cv_as_eh_frame = buggy; then
26733 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26737 # Test if the assembler supports the section flag 'e' or #exclude for
26738 # specifying an excluded section.
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26740 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26741 if ${gcc_cv_as_section_exclude_e+:} false; then :
26742 $as_echo_n "(cached) " >&6
26743 else
26744 gcc_cv_as_section_exclude_e=no
26745 if test x$gcc_cv_as != x; then
26746 $as_echo '.section foo1,"e"
26747 .byte 0,0,0,0' > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_section_exclude_e=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26760 rm -f conftest.o conftest.s
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26764 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26767 if test $gcc_cv_as_section_exclude_e = no; then
26768 case "${target}" in
26769 # Solaris as uses #exclude instead.
26770 *-*-solaris2*)
26771 case "${target}" in
26772 sparc*-*-solaris2*)
26773 conftest_s='.section "foo1", #exclude'
26775 i?86-*-solaris2* | x86_64-*-solaris2*)
26776 conftest_s='.section foo1, #exclude'
26778 esac
26780 esac
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26782 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26783 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26784 $as_echo_n "(cached) " >&6
26785 else
26786 gcc_cv_as_section_exclude_hash=no
26787 if test x$gcc_cv_as != x; then
26788 $as_echo "$conftest_s
26789 .byte 0,0,0,0" > conftest.s
26790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26795 test $ac_status = 0; }; }
26796 then
26797 gcc_cv_as_section_exclude_hash=yes
26798 else
26799 echo "configure: failed program was" >&5
26800 cat conftest.s >&5
26802 rm -f conftest.o conftest.s
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26806 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26811 cat >>confdefs.h <<_ACEOF
26812 #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`
26813 _ACEOF
26816 # Test if the assembler supports the section flag 'R' for specifying
26817 # section with SHF_GNU_RETAIN.
26818 case "${target}" in
26819 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26820 # assembler supports the section flag 'R', it doesn't mean that
26821 # Solairs ld supports it.
26822 *-*-solaris2*)
26823 gcc_cv_as_shf_gnu_retain=no
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26827 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26828 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26829 $as_echo_n "(cached) " >&6
26830 else
26831 gcc_cv_as_shf_gnu_retain=no
26832 if test x$gcc_cv_as != x; then
26833 $as_echo '.section .foo,"awR",%progbits
26834 .byte 0' > conftest.s
26835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26837 (eval $ac_try) 2>&5
26838 ac_status=$?
26839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26840 test $ac_status = 0; }; }
26841 then
26842 gcc_cv_as_shf_gnu_retain=yes
26843 else
26844 echo "configure: failed program was" >&5
26845 cat conftest.s >&5
26847 rm -f conftest.o conftest.s
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26851 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26855 esac
26857 cat >>confdefs.h <<_ACEOF
26858 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26859 _ACEOF
26862 # Test if the assembler supports the section flag 'o' for specifying
26863 # section with link-order.
26864 case "${target}" in
26865 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26866 # assembler supports the section flag 'o', it doesn't mean that
26867 # Solairs ld supports it.
26868 *-*-solaris2*)
26869 gcc_cv_as_section_link_order=no
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
26873 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
26874 if ${gcc_cv_as_section_link_order+:} false; then :
26875 $as_echo_n "(cached) " >&6
26876 else
26877 gcc_cv_as_section_link_order=no
26878 if test x$gcc_cv_as != x; then
26879 $as_echo '.section .foo,"a"
26880 .byte 0
26881 .section __patchable_function_entries,"awo",%progbits,.foo
26882 .byte 0' > conftest.s
26883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26885 (eval $ac_try) 2>&5
26886 ac_status=$?
26887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26888 test $ac_status = 0; }; }
26889 then
26890 gcc_cv_as_section_link_order=yes
26891 else
26892 echo "configure: failed program was" >&5
26893 cat conftest.s >&5
26895 rm -f conftest.o conftest.s
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
26899 $as_echo "$gcc_cv_as_section_link_order" >&6; }
26903 esac
26905 cat >>confdefs.h <<_ACEOF
26906 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
26907 _ACEOF
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26911 $as_echo_n "checking assembler for section merging support... " >&6; }
26912 if ${gcc_cv_as_shf_merge+:} false; then :
26913 $as_echo_n "(cached) " >&6
26914 else
26915 gcc_cv_as_shf_merge=no
26916 if test x$gcc_cv_as != x; then
26917 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
26918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26924 then
26925 gcc_cv_as_shf_merge=yes
26926 else
26927 echo "configure: failed program was" >&5
26928 cat conftest.s >&5
26930 rm -f conftest.o conftest.s
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26934 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26937 if test $gcc_cv_as_shf_merge = no; then
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
26939 $as_echo_n "checking assembler for section merging support... " >&6; }
26940 if ${gcc_cv_as_shf_merge+:} false; then :
26941 $as_echo_n "(cached) " >&6
26942 else
26943 gcc_cv_as_shf_merge=no
26944 if test x$gcc_cv_as != x; then
26945 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
26946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26948 (eval $ac_try) 2>&5
26949 ac_status=$?
26950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26951 test $ac_status = 0; }; }
26952 then
26953 gcc_cv_as_shf_merge=yes
26954 else
26955 echo "configure: failed program was" >&5
26956 cat conftest.s >&5
26958 rm -f conftest.o conftest.s
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
26962 $as_echo "$gcc_cv_as_shf_merge" >&6; }
26967 cat >>confdefs.h <<_ACEOF
26968 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
26969 _ACEOF
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
26973 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
26974 if ${gcc_cv_as_comdat_group+:} false; then :
26975 $as_echo_n "(cached) " >&6
26976 else
26977 gcc_cv_as_comdat_group=no
26978 if test x$gcc_cv_as != x; then
26979 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
26980 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26982 (eval $ac_try) 2>&5
26983 ac_status=$?
26984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26985 test $ac_status = 0; }; }
26986 then
26987 gcc_cv_as_comdat_group=yes
26988 else
26989 echo "configure: failed program was" >&5
26990 cat conftest.s >&5
26992 rm -f conftest.o conftest.s
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
26996 $as_echo "$gcc_cv_as_comdat_group" >&6; }
26999 if test $gcc_cv_as_comdat_group = yes; then
27000 gcc_cv_as_comdat_group_percent=no
27001 gcc_cv_as_comdat_group_group=no
27002 else
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27004 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27005 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27006 $as_echo_n "(cached) " >&6
27007 else
27008 gcc_cv_as_comdat_group_percent=no
27009 if test x$gcc_cv_as != x; then
27010 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27017 then
27018 gcc_cv_as_comdat_group_percent=yes
27019 else
27020 echo "configure: failed program was" >&5
27021 cat conftest.s >&5
27023 rm -f conftest.o conftest.s
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27027 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27030 if test $gcc_cv_as_comdat_group_percent = yes; then
27031 gcc_cv_as_comdat_group_group=no
27032 else
27033 case "${target}" in
27034 # Sun as uses a completely different syntax.
27035 *-*-solaris2*)
27036 case "${target}" in
27037 sparc*-*-solaris2*)
27038 conftest_s='
27039 .group foo,".text%foo",#comdat
27040 .section ".text%foo", #alloc,#execinstr,#progbits
27041 .globl foo
27042 foo:
27045 i?86-*-solaris2* | x86_64-*-solaris2*)
27046 conftest_s='
27047 .group foo,.text%foo,#comdat
27048 .section .text%foo, "ax", @progbits
27049 .globl foo
27050 foo:
27053 esac
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27055 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27056 if ${gcc_cv_as_comdat_group_group+:} false; then :
27057 $as_echo_n "(cached) " >&6
27058 else
27059 gcc_cv_as_comdat_group_group=no
27060 if test x$gcc_cv_as != x; then
27061 $as_echo "$conftest_s" > conftest.s
27062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27068 then
27069 gcc_cv_as_comdat_group_group=yes
27070 else
27071 echo "configure: failed program was" >&5
27072 cat conftest.s >&5
27074 rm -f conftest.o conftest.s
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27078 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27082 esac
27083 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27084 gcc_cv_as_comdat_group_group=no
27088 if test x"$ld_is_gold" = xyes; then
27089 comdat_group=yes
27090 elif test x"$ld_is_mold" = xyes; then
27091 comdat_group=yes
27092 elif test $in_tree_ld = yes ; then
27093 comdat_group=no
27094 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 \
27095 && test $in_tree_ld_is_elf = yes; then
27096 comdat_group=yes
27098 elif echo "$ld_ver" | grep GNU > /dev/null; then
27099 comdat_group=yes
27100 if test 0"$ld_date" -lt 20050308; then
27101 if test -n "$ld_date"; then
27102 # If there was date string, but was earlier than 2005-03-08, fail
27103 comdat_group=no
27104 elif test "$ld_vers_major" -lt 2; then
27105 comdat_group=no
27106 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27107 comdat_group=no
27110 else
27111 case "${target}" in
27112 *-*-solaris2.1[1-9]*)
27113 comdat_group=no
27114 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27115 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27116 # version 1.688.
27118 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27119 # least ld version 1.2267.
27120 if test "$ld_vers_major" -gt 1; then
27121 comdat_group=yes
27122 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27123 comdat_group=yes
27124 elif test "$ld_vers_minor" -ge 2267; then
27125 comdat_group=yes
27129 # Assume linkers other than GNU ld don't support COMDAT group.
27130 comdat_group=no
27132 esac
27134 # Allow overriding the automatic COMDAT group tests above.
27135 # Check whether --enable-comdat was given.
27136 if test "${enable_comdat+set}" = set; then :
27137 enableval=$enable_comdat; comdat_group="$enable_comdat"
27140 if test $comdat_group = no; then
27141 gcc_cv_as_comdat_group=no
27142 gcc_cv_as_comdat_group_percent=no
27143 gcc_cv_as_comdat_group_group=no
27146 cat >>confdefs.h <<_ACEOF
27147 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27148 || test $gcc_cv_as_comdat_group_percent = yes \
27149 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27150 _ACEOF
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27154 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27155 if ${gcc_cv_as_is_stmt+:} false; then :
27156 $as_echo_n "(cached) " >&6
27157 else
27158 gcc_cv_as_is_stmt=no
27159 if test x$gcc_cv_as != x; then
27160 $as_echo ' .text
27161 .file 1 "conf.c"
27162 .loc 1 1 0 is_stmt 1' > conftest.s
27163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27165 (eval $ac_try) 2>&5
27166 ac_status=$?
27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27168 test $ac_status = 0; }; }
27169 then
27170 gcc_cv_as_is_stmt=yes
27171 else
27172 echo "configure: failed program was" >&5
27173 cat conftest.s >&5
27175 rm -f conftest.o conftest.s
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27179 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27180 if test $gcc_cv_as_is_stmt = yes; then
27182 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27188 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27189 if ${gcc_cv_as_discriminator+:} false; then :
27190 $as_echo_n "(cached) " >&6
27191 else
27192 gcc_cv_as_discriminator=no
27193 if test x$gcc_cv_as != x; then
27194 $as_echo ' .text
27195 .file 1 "conf.c"
27196 .loc 1 1 0 discriminator 1' > conftest.s
27197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202 test $ac_status = 0; }; }
27203 then
27204 gcc_cv_as_discriminator=yes
27205 else
27206 echo "configure: failed program was" >&5
27207 cat conftest.s >&5
27209 rm -f conftest.o conftest.s
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27213 $as_echo "$gcc_cv_as_discriminator" >&6; }
27214 if test $gcc_cv_as_discriminator = yes; then
27216 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27221 # Catch the newlib flag of the same name so we can gate GCC features on it.
27222 # Check whether --enable-newlib-nano-formatted-io was given.
27223 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27224 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27225 yes|no)
27228 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27230 esac
27234 # Thread-local storage - the check is heavily parameterized.
27235 conftest_s=
27236 tls_as_opt=
27237 case "$target" in
27238 alpha*-*-*)
27239 conftest_s='
27240 .section ".tdata","awT",@progbits
27241 foo: .long 25
27242 .text
27243 ldq $27,__tls_get_addr($29) !literal!1
27244 lda $16,foo($29) !tlsgd!1
27245 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27246 ldq $27,__tls_get_addr($29) !literal!2
27247 lda $16,foo($29) !tlsldm!2
27248 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27249 ldq $1,foo($29) !gotdtprel
27250 ldah $2,foo($29) !dtprelhi
27251 lda $3,foo($2) !dtprello
27252 lda $4,foo($29) !dtprel
27253 ldq $1,foo($29) !gottprel
27254 ldah $2,foo($29) !tprelhi
27255 lda $3,foo($2) !tprello
27256 lda $4,foo($29) !tprel'
27257 tls_as_opt=--fatal-warnings
27259 arc*-*-*)
27260 conftest_s='
27261 add_s r0,r0, @foo@tpoff'
27263 cris-*-*|crisv32-*-*)
27264 conftest_s='
27265 .section ".tdata","awT",@progbits
27266 x: .long 25
27267 .text
27268 move.d x:IE,$r10
27269 nop'
27270 tls_as_opt=--fatal-warnings
27272 frv*-*-*)
27273 conftest_s='
27274 .section ".tdata","awT",@progbits
27275 x: .long 25
27276 .text
27277 call #gettlsoff(x)'
27279 hppa*-*-linux*)
27280 conftest_s='
27281 t1: .reg %r20
27282 t2: .reg %r21
27283 gp: .reg %r19
27284 .section ".tdata","awT",@progbits
27285 foo: .long 25
27286 .text
27287 .align 4
27288 addil LT%foo-$tls_gdidx$,gp
27289 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27290 b __tls_get_addr
27292 addil LT%foo-$tls_ldidx$,gp
27293 b __tls_get_addr
27294 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27295 addil LR%foo-$tls_dtpoff$,%ret0
27296 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27297 mfctl %cr27,%t1
27298 addil LT%foo-$tls_ieoff$,gp
27299 ldw RT%foo-$tls_ieoff$(%r1),%t2
27300 add %t1,%t2,%t3
27301 mfctl %cr27,%t1
27302 addil LR%foo-$tls_leoff$,%t1
27303 ldo RR%foo-$tls_leoff$(%r1),%t2'
27304 tls_as_opt=--fatal-warnings
27306 arm*-*-*)
27307 conftest_s='
27308 .section ".tdata","awT",%progbits
27309 foo: .long 25
27310 .text
27311 .word foo(gottpoff)
27312 .word foo(tpoff)
27313 .word foo(tlsgd)
27314 .word foo(tlsldm)
27315 .word foo(tlsldo)'
27317 i[34567]86-*-* | x86_64-*-*)
27318 case "$target" in
27319 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27320 on_solaris=yes
27323 on_solaris=no
27325 esac
27326 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27327 conftest_s='
27328 .section .tdata,"awt",@progbits'
27329 tls_section_flag=t
27331 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27333 else
27334 conftest_s='
27335 .section ".tdata","awT",@progbits'
27336 tls_section_flag=T
27337 tls_as_opt="--fatal-warnings"
27339 case "$target" in
27340 i[34567]86-*-*)
27341 if test x$on_solaris = xyes; then
27342 case $gas_flag in
27343 yes) tls_as_opt="$tls_as_opt --32" ;;
27344 esac
27346 conftest_s="$conftest_s
27347 foo: .long 25
27348 .text
27349 movl %gs:0, %eax
27350 leal foo@tlsgd(,%ebx,1), %eax
27351 leal foo@tlsldm(%ebx), %eax
27352 leal foo@dtpoff(%eax), %edx
27353 movl foo@gottpoff(%ebx), %eax
27354 subl foo@gottpoff(%ebx), %eax
27355 addl foo@gotntpoff(%ebx), %eax
27356 movl foo@indntpoff, %eax
27357 movl \$foo@tpoff, %eax
27358 subl \$foo@tpoff, %eax
27359 leal foo@ntpoff(%ecx), %eax"
27361 x86_64-*-*)
27362 if test x$on_solaris = xyes; then
27363 case $gas_flag in
27364 yes) tls_as_opt="$tls_as_opt --64" ;;
27365 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27366 esac
27368 conftest_s="$conftest_s
27369 foo: .long 25
27370 .text
27371 movq %fs:0, %rax
27372 leaq foo@tlsgd(%rip), %rdi
27373 leaq foo@tlsld(%rip), %rdi
27374 leaq foo@dtpoff(%rax), %rdx
27375 movq foo@gottpoff(%rip), %rax
27376 movq \$foo@tpoff, %rax"
27378 esac
27380 ia64-*-*)
27381 conftest_s='
27382 .section ".tdata","awT",@progbits
27383 foo: data8 25
27384 .text
27385 addl r16 = @ltoff(@dtpmod(foo#)), gp
27386 addl r17 = @ltoff(@dtprel(foo#)), gp
27387 addl r18 = @ltoff(@tprel(foo#)), gp
27388 addl r19 = @dtprel(foo#), gp
27389 adds r21 = @dtprel(foo#), r13
27390 movl r23 = @dtprel(foo#)
27391 addl r20 = @tprel(foo#), gp
27392 adds r22 = @tprel(foo#), r13
27393 movl r24 = @tprel(foo#)'
27394 tls_as_opt=--fatal-warnings
27396 loongarch*-*-*)
27397 conftest_s='
27398 .section .tdata,"awT",@progbits
27399 x: .word 2
27400 .text
27401 la.tls.gd $a0,x
27402 bl __tls_get_addr'
27403 tls_first_major=0
27404 tls_first_minor=0
27405 tls_as_opt='--fatal-warnings'
27407 microblaze*-*-*)
27408 conftest_s='
27409 .section .tdata,"awT",@progbits
27411 .word 2
27412 .text
27413 addik r5,r20,x@TLSGD
27414 addik r5,r20,x@TLSLDM'
27415 tls_as_opt='--fatal-warnings'
27417 mips*-*-*)
27418 conftest_s='
27419 .section .tdata,"awT",@progbits
27421 .word 2
27422 .text
27423 addiu $4, $28, %tlsgd(x)
27424 addiu $4, $28, %tlsldm(x)
27425 lui $4, %dtprel_hi(x)
27426 addiu $4, $4, %dtprel_lo(x)
27427 lw $4, %gottprel(x)($28)
27428 lui $4, %tprel_hi(x)
27429 addiu $4, $4, %tprel_lo(x)'
27430 tls_as_opt='-32 --fatal-warnings'
27432 m68k-*-*)
27433 conftest_s='
27434 .section .tdata,"awT",@progbits
27436 .word 2
27437 .text
27438 foo:
27439 move.l x@TLSGD(%a5),%a0
27440 move.l x@TLSLDM(%a5),%a0
27441 move.l x@TLSLDO(%a5),%a0
27442 move.l x@TLSIE(%a5),%a0
27443 move.l x@TLSLE(%a5),%a0'
27444 tls_as_opt='--fatal-warnings'
27446 nios2-*-*)
27447 conftest_s='
27448 .section ".tdata","awT",@progbits'
27449 tls_as_opt="--fatal-warnings"
27451 aarch64*-*-*)
27452 conftest_s='
27453 .section ".tdata","awT",%progbits
27454 foo: .long 25
27455 .text
27456 adrp x0, :tlsgd:x
27457 add x0, x0, #:tlsgd_lo12:x
27458 bl __tls_get_addr
27459 nop'
27460 tls_as_opt='--fatal-warnings'
27462 or1k*-*-*)
27463 conftest_s='
27464 .section ".tdata","awT",@progbits
27465 foo: .long 25
27466 .text
27467 l.movhi r3, tpoffha(foo)
27468 l.add r3, r3, r10
27469 l.lwz r4, tpofflo(foo)(r3)'
27470 tls_as_opt=--fatal-warnings
27472 powerpc-ibm-aix*)
27473 conftest_s='
27474 .extern __get_tpointer
27475 .toc
27476 LC..1:
27477 .tc a[TC],a[TL]@le
27478 .csect .text[PR]
27479 .tlstest:
27480 lwz 9,LC..1(2)
27481 bla __get_tpointer
27482 lwzx 3,9,3
27483 .globl a
27484 .csect a[TL],4
27486 .space 4'
27488 powerpc64*-*-*)
27489 conftest_s='
27490 .section ".tdata","awT",@progbits
27491 .align 3
27492 ld0: .space 8
27493 ld1: .space 8
27494 x1: .space 8
27495 x2: .space 8
27496 x3: .space 8
27497 .text
27498 addi 3,2,ld0@got@tlsgd
27499 bl .__tls_get_addr
27501 addi 3,2,ld1@toc
27502 bl .__tls_get_addr
27504 addi 3,2,x1@got@tlsld
27505 bl .__tls_get_addr
27507 addi 9,3,x1@dtprel
27508 bl .__tls_get_addr
27510 addis 9,3,x2@dtprel@ha
27511 addi 9,9,x2@dtprel@l
27512 bl .__tls_get_addr
27514 ld 9,x3@got@dtprel(2)
27515 add 9,9,3
27516 bl .__tls_get_addr
27517 nop'
27518 tls_as_opt="-a64 --fatal-warnings"
27520 powerpc*-*-*)
27521 conftest_s='
27522 .section ".tdata","awT",@progbits
27523 .align 2
27524 ld0: .space 4
27525 ld1: .space 4
27526 x1: .space 4
27527 x2: .space 4
27528 x3: .space 4
27529 .text
27530 addi 3,31,ld0@got@tlsgd
27531 bl __tls_get_addr
27532 addi 3,31,x1@got@tlsld
27533 bl __tls_get_addr
27534 addi 9,3,x1@dtprel
27535 addis 9,3,x2@dtprel@ha
27536 addi 9,9,x2@dtprel@l
27537 lwz 9,x3@got@tprel(31)
27538 add 9,9,x@tls
27539 addi 9,2,x1@tprel
27540 addis 9,2,x2@tprel@ha
27541 addi 9,9,x2@tprel@l'
27542 tls_as_opt="-a32 --fatal-warnings"
27544 riscv*-*-*)
27545 conftest_s='
27546 .section .tdata,"awT",@progbits
27547 x: .word 2
27548 .text
27549 la.tls.gd a0,x
27550 call __tls_get_addr'
27551 tls_as_opt='--fatal-warnings'
27553 s390-*-*)
27554 conftest_s='
27555 .section ".tdata","awT",@progbits
27556 foo: .long 25
27557 .text
27558 .long foo@TLSGD
27559 .long foo@TLSLDM
27560 .long foo@DTPOFF
27561 .long foo@NTPOFF
27562 .long foo@GOTNTPOFF
27563 .long foo@INDNTPOFF
27564 l %r1,foo@GOTNTPOFF(%r12)
27565 l %r1,0(%r1):tls_load:foo
27566 bas %r14,0(%r1,%r13):tls_gdcall:foo
27567 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27568 tls_as_opt="-m31 --fatal-warnings"
27570 s390x-*-*)
27571 conftest_s='
27572 .section ".tdata","awT",@progbits
27573 foo: .long 25
27574 .text
27575 .quad foo@TLSGD
27576 .quad foo@TLSLDM
27577 .quad foo@DTPOFF
27578 .quad foo@NTPOFF
27579 .quad foo@GOTNTPOFF
27580 lg %r1,foo@GOTNTPOFF(%r12)
27581 larl %r1,foo@INDNTPOFF
27582 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27583 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27584 tls_as_opt="-m64 -Aesame --fatal-warnings"
27586 sh-*-* | sh[123456789lbe]*-*-*)
27587 conftest_s='
27588 .section ".tdata","awT",@progbits
27589 foo: .long 25
27590 .text
27591 .long foo@TLSGD
27592 .long foo@TLSLDM
27593 .long foo@DTPOFF
27594 .long foo@GOTTPOFF
27595 .long foo@TPOFF'
27596 tls_as_opt=--fatal-warnings
27598 sparc*-*-*)
27599 case "$target" in
27600 sparc*-sun-solaris2.*)
27601 on_solaris=yes
27604 on_solaris=no
27606 esac
27607 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27608 conftest_s='
27609 .section ".tdata",#alloc,#write,#tls'
27610 else
27611 conftest_s='
27612 .section ".tdata","awT",@progbits'
27613 tls_as_opt="-32 --fatal-warnings"
27615 conftest_s="$conftest_s
27616 foo: .long 25
27617 .text
27618 sethi %tgd_hi22(foo), %o0
27619 add %o0, %tgd_lo10(foo), %o1
27620 add %l7, %o1, %o0, %tgd_add(foo)
27621 call __tls_get_addr, %tgd_call(foo)
27622 sethi %tldm_hi22(foo), %l1
27623 add %l1, %tldm_lo10(foo), %l2
27624 add %l7, %l2, %o0, %tldm_add(foo)
27625 call __tls_get_addr, %tldm_call(foo)
27626 sethi %tldo_hix22(foo), %l3
27627 xor %l3, %tldo_lox10(foo), %l4
27628 add %o0, %l4, %l5, %tldo_add(foo)
27629 sethi %tie_hi22(foo), %o3
27630 add %o3, %tie_lo10(foo), %o3
27631 ld [%l7 + %o3], %o2, %tie_ld(foo)
27632 add %g7, %o2, %o4, %tie_add(foo)
27633 sethi %tle_hix22(foo), %l1
27634 xor %l1, %tle_lox10(foo), %o5
27635 ld [%g7 + %o5], %o1"
27637 xtensa*-*-*)
27638 conftest_s='
27639 .section ".tdata","awT",@progbits
27640 foo: .long 25
27641 .text
27642 movi a8, foo@TLSFUNC
27643 movi a10, foo@TLSARG
27644 callx8.tls a8, foo@TLSCALL'
27646 esac
27647 set_have_as_tls=no
27648 if test "x$enable_tls" = xno ; then
27649 : # TLS explicitly disabled.
27650 elif test "x$enable_tls" = xyes ; then
27651 set_have_as_tls=yes # TLS explicitly enabled.
27652 elif test -z "$conftest_s"; then
27653 : # If we don't have a check, assume no support.
27654 else
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27656 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27657 if ${gcc_cv_as_tls+:} false; then :
27658 $as_echo_n "(cached) " >&6
27659 else
27660 gcc_cv_as_tls=no
27661 if test x$gcc_cv_as != x; then
27662 $as_echo "$conftest_s" > conftest.s
27663 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27665 (eval $ac_try) 2>&5
27666 ac_status=$?
27667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27668 test $ac_status = 0; }; }
27669 then
27670 gcc_cv_as_tls=yes
27671 else
27672 echo "configure: failed program was" >&5
27673 cat conftest.s >&5
27675 rm -f conftest.o conftest.s
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27679 $as_echo "$gcc_cv_as_tls" >&6; }
27680 if test $gcc_cv_as_tls = yes; then
27681 set_have_as_tls=yes
27685 if test $set_have_as_tls = yes ; then
27687 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27691 # Target-specific assembler checks.
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27694 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27695 gcc_cv_ld_static_dynamic=no
27696 gcc_cv_ld_static_option='-Bstatic'
27697 gcc_cv_ld_dynamic_option='-Bdynamic'
27698 if test $in_tree_ld = yes ; then
27699 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
27700 gcc_cv_ld_static_dynamic=yes
27702 elif test x$gcc_cv_ld != x; then
27703 # Check if linker supports -Bstatic/-Bdynamic option
27704 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27705 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27706 gcc_cv_ld_static_dynamic=yes
27707 else
27708 case "$target" in
27709 # AIX ld uses -b flags
27710 *-*-aix4.[23]* | *-*-aix[5-9]*)
27711 gcc_cv_ld_static_dynamic=yes
27712 gcc_cv_ld_static_option="-bstatic"
27713 gcc_cv_ld_dynamic_option="-bdynamic"
27715 # HP-UX ld uses -a flags to select between shared and archive.
27716 *-*-hpux*)
27717 if test x"$gnu_ld" = xno; then
27718 gcc_cv_ld_static_dynamic=yes
27719 gcc_cv_ld_static_option="-aarchive_shared"
27720 gcc_cv_ld_dynamic_option="-adefault"
27723 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27724 *-*-solaris2*)
27725 gcc_cv_ld_static_dynamic=yes
27727 esac
27730 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27732 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27735 cat >>confdefs.h <<_ACEOF
27736 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27737 _ACEOF
27740 cat >>confdefs.h <<_ACEOF
27741 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27742 _ACEOF
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27746 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27749 $as_echo_n "checking linker --version-script option... " >&6; }
27750 gcc_cv_ld_version_script=no
27751 ld_version_script_option=''
27752 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27753 gcc_cv_ld_version_script=yes
27754 ld_version_script_option='--version-script'
27755 elif test x$gcc_cv_ld != x; then
27756 case "$target" in
27757 # Solaris 2 ld always supports -M. It also supports a subset of
27758 # --version-script since Solaris 11.4, but requires
27759 # -z gnu-version-script-compat to activate.
27760 *-*-solaris2*)
27761 gcc_cv_ld_version_script=yes
27762 ld_version_script_option='-M'
27764 esac
27766 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27768 $as_echo "$gcc_cv_ld_version_script" >&6; }
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27772 $as_echo_n "checking linker soname option... " >&6; }
27773 gcc_cv_ld_soname=no
27774 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27775 gcc_cv_ld_soname=yes
27776 ld_soname_option='-soname'
27777 elif test x$gcc_cv_ld != x; then
27778 case "$target" in
27779 *-*-darwin*)
27780 gcc_cv_ld_soname=yes
27781 ld_soname_option='-install_name'
27783 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27784 # ld compatiblity since some Solaris 10 update.
27785 *-*-solaris2*)
27786 gcc_cv_ld_soname=yes
27787 ld_soname_option='-h'
27789 esac
27791 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27793 $as_echo "$gcc_cv_ld_soname" >&6; }
27796 if test x"$demangler_in_ld" = xyes; then
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27798 $as_echo_n "checking linker --demangle support... " >&6; }
27799 gcc_cv_ld_demangle=no
27800 if test $in_tree_ld = yes; then
27801 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 \
27802 gcc_cv_ld_demangle=yes
27804 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27805 # Check if the GNU linker supports --demangle option
27806 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27807 gcc_cv_ld_demangle=yes
27810 if test x"$gcc_cv_ld_demangle" = xyes; then
27812 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27816 $as_echo "$gcc_cv_ld_demangle" >&6; }
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
27820 $as_echo_n "checking linker plugin support... " >&6; }
27821 gcc_cv_lto_plugin=0
27822 if test -f liblto_plugin.la; then
27823 save_ld_ver="$ld_ver"
27824 save_ld_vers_major="$ld_vers_major"
27825 save_ld_vers_minor="$ld_vers_minor"
27826 save_ld_is_gold="$ld_is_gold"
27828 ld_is_gold=no
27830 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
27831 ld_ver="GNU ld"
27832 # FIXME: ld_is_gold?
27833 ld_vers_major="$gcc_cv_gld_major_version"
27834 ld_vers_minor="$gcc_cv_gld_minor_version"
27835 else
27836 # Determine plugin linker version.
27837 # FIXME: Partial duplicate from above, generalize.
27838 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
27839 if echo "$ld_ver" | grep GNU > /dev/null; then
27840 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
27841 ld_is_gold=yes
27842 ld_vers=`echo $ld_ver | sed -n \
27843 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
27844 else
27845 ld_vers=`echo $ld_ver | sed -n \
27846 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
27848 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
27849 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
27853 # Determine plugin support.
27854 if echo "$ld_ver" | grep GNU > /dev/null; then
27855 # Require GNU ld or gold 2.21+ for plugin support by default.
27856 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
27857 gcc_cv_lto_plugin=2
27858 elif test "$ld_is_mold" = yes; then
27859 gcc_cv_lto_plugin=2
27860 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
27861 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
27862 gcc_cv_lto_plugin=1
27866 ld_ver="$save_ld_ver"
27867 ld_vers_major="$save_ld_vers_major"
27868 ld_vers_minor="$save_ld_vers_minor"
27869 ld_is_gold="$save_ld_is_gold"
27872 cat >>confdefs.h <<_ACEOF
27873 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
27874 _ACEOF
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
27877 $as_echo "$gcc_cv_lto_plugin" >&6; }
27879 # Target OS-specific assembler checks.
27881 case "$target_os" in
27882 darwin*)
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
27884 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
27885 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
27886 $as_echo_n "(cached) " >&6
27887 else
27888 gcc_cv_as_mmacosx_version_min=no
27889 if test x$gcc_cv_as != x; then
27890 $as_echo '.text' > conftest.s
27891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
27892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27893 (eval $ac_try) 2>&5
27894 ac_status=$?
27895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27896 test $ac_status = 0; }; }
27897 then
27898 gcc_cv_as_mmacosx_version_min=yes
27899 else
27900 echo "configure: failed program was" >&5
27901 cat conftest.s >&5
27903 rm -f conftest.o conftest.s
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
27907 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
27908 if test $gcc_cv_as_mmacosx_version_min = yes; then
27910 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
27914 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
27916 $as_echo_n "checking assembler for .build_version... " >&6; }
27917 if ${gcc_cv_as_darwin_build_version+:} false; then :
27918 $as_echo_n "(cached) " >&6
27919 else
27920 gcc_cv_as_darwin_build_version=no
27921 if test x$gcc_cv_as != x; then
27922 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
27923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
27924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27925 (eval $ac_try) 2>&5
27926 ac_status=$?
27927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27928 test $ac_status = 0; }; }
27929 then
27930 gcc_cv_as_darwin_build_version=yes
27931 else
27932 echo "configure: failed program was" >&5
27933 cat conftest.s >&5
27935 rm -f conftest.o conftest.s
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
27939 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
27940 if test $gcc_cv_as_darwin_build_version = yes; then
27942 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
27948 esac
27950 # Target CPU-specific assembler checks.
27952 case "$target" in
27953 aarch64*-*-*)
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
27955 $as_echo_n "checking assembler for -mabi option... " >&6; }
27956 if ${gcc_cv_as_aarch64_mabi+:} false; then :
27957 $as_echo_n "(cached) " >&6
27958 else
27959 gcc_cv_as_aarch64_mabi=no
27960 if test x$gcc_cv_as != x; then
27961 $as_echo '.text' > conftest.s
27962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
27963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27967 test $ac_status = 0; }; }
27968 then
27969 gcc_cv_as_aarch64_mabi=yes
27970 else
27971 echo "configure: failed program was" >&5
27972 cat conftest.s >&5
27974 rm -f conftest.o conftest.s
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
27978 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
27981 if test x$gcc_cv_as_aarch64_mabi = xyes; then
27983 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
27985 else
27986 if test x$with_abi = xilp32; then
27987 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27988 Upgrade the Assembler." "$LINENO" 5
27990 if test x"$with_multilib_list" = xdefault; then
27991 TM_MULTILIB_CONFIG=lp64
27992 else
27993 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
27994 for aarch64_multilib in ${aarch64_multilibs}; do
27995 case ${aarch64_multilib} in
27996 ilp32)
27997 as_fn_error $? "Assembler does not support -mabi=ilp32.\
27998 Upgrade the Assembler." "$LINENO" 5
28002 esac
28003 done
28006 # Check if we have binutils support for relocations types needed by -fpic
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28008 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28009 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28010 $as_echo_n "(cached) " >&6
28011 else
28012 gcc_cv_as_aarch64_picreloc=no
28013 if test x$gcc_cv_as != x; then
28014 $as_echo '
28015 .text
28016 ldr x0, [x2, #:gotpage_lo15:globalsym]
28017 ' > conftest.s
28018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28020 (eval $ac_try) 2>&5
28021 ac_status=$?
28022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28023 test $ac_status = 0; }; }
28024 then
28025 gcc_cv_as_aarch64_picreloc=yes
28026 else
28027 echo "configure: failed program was" >&5
28028 cat conftest.s >&5
28030 rm -f conftest.o conftest.s
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28034 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28035 if test $gcc_cv_as_aarch64_picreloc = yes; then
28037 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28041 # Enable Branch Target Identification Mechanism and Return Address
28042 # Signing by default.
28043 # Check whether --enable-standard-branch-protection was given.
28044 if test "${enable_standard_branch_protection+set}" = set; then :
28045 enableval=$enable_standard_branch_protection;
28046 case $enableval in
28047 yes)
28048 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28053 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28054 Valid choices are 'yes' and 'no'." "$LINENO" 5
28056 esac
28060 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28061 # Check whether --enable-fix-cortex-a53-835769 was given.
28062 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28063 enableval=$enable_fix_cortex_a53_835769;
28064 case $enableval in
28065 yes)
28066 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28071 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28072 Valid choices are 'yes' and 'no'." "$LINENO" 5
28075 esac
28079 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28080 # Check whether --enable-fix-cortex-a53-843419 was given.
28081 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28082 enableval=$enable_fix_cortex_a53_843419;
28083 case $enableval in
28084 yes)
28085 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28090 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28091 Valid choices are 'yes' and 'no'." "$LINENO" 5
28094 esac
28100 # All TARGET_ABI_OSF targets.
28101 alpha*-*-linux* | alpha*-*-*bsd*)
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28103 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28104 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28105 $as_echo_n "(cached) " >&6
28106 else
28107 gcc_cv_as_alpha_explicit_relocs=no
28108 if test x$gcc_cv_as != x; then
28109 $as_echo ' .set nomacro
28110 .text
28111 extbl $3, $2, $3 !lituse_bytoff!1
28112 ldq $2, a($29) !literal!1
28113 ldq $4, b($29) !literal!2
28114 ldq_u $3, 0($2) !lituse_base!1
28115 ldq $27, f($29) !literal!5
28116 jsr $26, ($27), f !lituse_jsr!5
28117 ldah $29, 0($26) !gpdisp!3
28118 lda $0, c($29) !gprel
28119 ldah $1, d($29) !gprelhigh
28120 lda $1, d($1) !gprellow
28121 lda $29, 0($29) !gpdisp!3' > conftest.s
28122 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28127 test $ac_status = 0; }; }
28128 then
28129 gcc_cv_as_alpha_explicit_relocs=yes
28130 else
28131 echo "configure: failed program was" >&5
28132 cat conftest.s >&5
28134 rm -f conftest.o conftest.s
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28138 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28139 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28141 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28146 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28147 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28148 $as_echo_n "(cached) " >&6
28149 else
28150 gcc_cv_as_alpha_jsrdirect_relocs=no
28151 if test x$gcc_cv_as != x; then
28152 $as_echo ' .set nomacro
28153 .text
28154 ldq $27, a($29) !literal!1
28155 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28161 test $ac_status = 0; }; }
28162 then
28163 gcc_cv_as_alpha_jsrdirect_relocs=yes
28164 else
28165 echo "configure: failed program was" >&5
28166 cat conftest.s >&5
28168 rm -f conftest.o conftest.s
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28172 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28173 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28175 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28181 avr-*-*)
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28183 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28184 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28185 $as_echo_n "(cached) " >&6
28186 else
28187 gcc_cv_as_avr_mlink_relax=no
28188 if test x$gcc_cv_as != x; then
28189 $as_echo '.text' > conftest.s
28190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28195 test $ac_status = 0; }; }
28196 then
28197 gcc_cv_as_avr_mlink_relax=yes
28198 else
28199 echo "configure: failed program was" >&5
28200 cat conftest.s >&5
28202 rm -f conftest.o conftest.s
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28206 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28207 if test $gcc_cv_as_avr_mlink_relax = yes; then
28209 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28215 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28216 if ${gcc_cv_as_avr_mrmw+:} false; then :
28217 $as_echo_n "(cached) " >&6
28218 else
28219 gcc_cv_as_avr_mrmw=no
28220 if test x$gcc_cv_as != x; then
28221 $as_echo '.text' > conftest.s
28222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28224 (eval $ac_try) 2>&5
28225 ac_status=$?
28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28227 test $ac_status = 0; }; }
28228 then
28229 gcc_cv_as_avr_mrmw=yes
28230 else
28231 echo "configure: failed program was" >&5
28232 cat conftest.s >&5
28234 rm -f conftest.o conftest.s
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28238 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28239 if test $gcc_cv_as_avr_mrmw = yes; then
28241 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28247 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28248 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28249 $as_echo_n "(cached) " >&6
28250 else
28251 gcc_cv_as_avr_mgccisr=no
28252 if test x$gcc_cv_as != x; then
28253 $as_echo '.text
28254 __gcc_isr 1
28255 __gcc_isr 2
28256 __gcc_isr 0,r24
28257 ' > conftest.s
28258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28260 (eval $ac_try) 2>&5
28261 ac_status=$?
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; }
28264 then
28265 gcc_cv_as_avr_mgccisr=yes
28266 else
28267 echo "configure: failed program was" >&5
28268 cat conftest.s >&5
28270 rm -f conftest.o conftest.s
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28274 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28275 if test $gcc_cv_as_avr_mgccisr = yes; then
28277 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28282 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28283 # Check how default linker description file implements .rodata for
28284 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28285 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28287 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28288 cat > conftest.s <<EOF
28289 .section .rodata,"a",@progbits
28290 .global xxvaryy
28291 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28292 xxvaryy:
28293 .word 1
28295 rm -f conftest.nm
28296 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28301 test $ac_status = 0; }; }
28302 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28307 test $ac_status = 0; }; }
28308 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28310 (eval $ac_try) 2>&5
28311 ac_status=$?
28312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28313 test $ac_status = 0; }; }
28314 if test -s conftest.nm
28315 then
28316 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28318 $as_echo "yes" >&6; }
28320 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28322 else
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28324 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28325 echo "$as_me: nm output was" >&5
28326 cat conftest.nm >&5
28327 { $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
28328 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28330 else
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28332 $as_echo "test failed" >&6; }
28333 echo "$as_me: failed program was" >&5
28334 cat conftest.s >&5
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28336 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28338 rm -f conftest.s conftest.o conftest.elf conftest.nm
28340 # Check for emulation avrxmega2_flmap.
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28342 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28343 cat > conftest.s <<EOF
28344 .section .text,"ax",@progbits
28345 ldi r16, __flmap_value_with_lock
28347 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28352 test $ac_status = 0; }; }
28353 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28358 test $ac_status = 0; }; }
28359 if test -s conftest.elf
28360 then
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28362 $as_echo "yes" >&6; }
28364 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28366 else
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28368 $as_echo "no" >&6; }
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28370 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28372 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28374 rm -f conftest.o conftest.elf
28376 # Check for emulation avrxmega4_flmap.
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28378 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28379 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28381 (eval $ac_try) 2>&5
28382 ac_status=$?
28383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28384 test $ac_status = 0; }; }
28385 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28387 (eval $ac_try) 2>&5
28388 ac_status=$?
28389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28390 test $ac_status = 0; }; }
28391 if test -s conftest.elf
28392 then
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28394 $as_echo "yes" >&6; }
28396 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28398 else
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28400 $as_echo "no" >&6; }
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28402 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28404 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28406 rm -f conftest.s conftest.o conftest.elf
28409 cris-*-*)
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28411 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28412 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28413 $as_echo_n "(cached) " >&6
28414 else
28415 gcc_cv_as_cris_no_mul_bug=no
28416 if test x$gcc_cv_as != x; then
28417 $as_echo '.text' > conftest.s
28418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28420 (eval $ac_try) 2>&5
28421 ac_status=$?
28422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28423 test $ac_status = 0; }; }
28424 then
28425 gcc_cv_as_cris_no_mul_bug=yes
28426 else
28427 echo "configure: failed program was" >&5
28428 cat conftest.s >&5
28430 rm -f conftest.o conftest.s
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28434 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28435 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28437 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28443 sparc*-*-*)
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28445 $as_echo_n "checking assembler for -relax option... " >&6; }
28446 if ${gcc_cv_as_sparc_relax+:} false; then :
28447 $as_echo_n "(cached) " >&6
28448 else
28449 gcc_cv_as_sparc_relax=no
28450 if test x$gcc_cv_as != x; then
28451 $as_echo '.text' > conftest.s
28452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28454 (eval $ac_try) 2>&5
28455 ac_status=$?
28456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28457 test $ac_status = 0; }; }
28458 then
28459 gcc_cv_as_sparc_relax=yes
28460 else
28461 echo "configure: failed program was" >&5
28462 cat conftest.s >&5
28464 rm -f conftest.o conftest.s
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
28468 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28469 if test $gcc_cv_as_sparc_relax = yes; then
28471 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28477 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28478 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28479 $as_echo_n "(cached) " >&6
28480 else
28481 gcc_cv_as_sparc_gotdata_op=no
28482 if test x$gcc_cv_as != x; then
28483 $as_echo '.text
28484 .align 4
28485 foo:
28487 bar:
28488 sethi %gdop_hix22(foo), %g1
28489 xor %g1, %gdop_lox10(foo), %g1
28490 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28496 test $ac_status = 0; }; }
28497 then
28498 if test x$gcc_cv_ld != x \
28499 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28500 if test x$gcc_cv_objdump != x; then
28501 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28502 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28503 gcc_cv_as_sparc_gotdata_op=no
28504 else
28505 gcc_cv_as_sparc_gotdata_op=yes
28509 rm -f conftest
28510 else
28511 echo "configure: failed program was" >&5
28512 cat conftest.s >&5
28514 rm -f conftest.o conftest.s
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28518 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28519 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28521 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28527 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28528 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28529 $as_echo_n "(cached) " >&6
28530 else
28531 gcc_cv_as_sparc_ua_pcrel=no
28532 if test x$gcc_cv_as != x; then
28533 $as_echo '.text
28534 foo:
28536 .data
28537 .align 4
28538 .byte 0
28539 .uaword %r_disp32(foo)' > conftest.s
28540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28545 test $ac_status = 0; }; }
28546 then
28547 if test x$gcc_cv_ld != x \
28548 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28549 gcc_cv_as_sparc_ua_pcrel=yes
28551 rm -f conftest
28552 else
28553 echo "configure: failed program was" >&5
28554 cat conftest.s >&5
28556 rm -f conftest.o conftest.s
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28560 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28561 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28563 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28567 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28568 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28569 $as_echo_n "(cached) " >&6
28570 else
28571 gcc_cv_as_sparc_ua_pcrel_hidden=no
28572 if test x$gcc_cv_as != x; then
28573 $as_echo '.data
28574 .align 4
28575 .byte 0x31
28576 .uaword %r_disp32(foo)
28577 .byte 0x32, 0x33, 0x34
28578 .global foo
28579 .hidden foo
28580 foo:
28581 .skip 4' > conftest.s
28582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28584 (eval $ac_try) 2>&5
28585 ac_status=$?
28586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28587 test $ac_status = 0; }; }
28588 then
28589 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28590 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28591 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28592 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28593 if $gcc_cv_objdump -R conftest 2> /dev/null \
28594 | grep 'DISP32' > /dev/null 2>&1; then
28596 else
28597 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28600 rm -f conftest
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_ua_pcrel_hidden" >&5
28609 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28610 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28612 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28618 # unaligned pcrel relocs
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28621 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28622 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28623 $as_echo_n "(cached) " >&6
28624 else
28625 gcc_cv_as_sparc_offsetable_lo10=no
28626 if test x$gcc_cv_as != x; then
28627 $as_echo '.text
28628 or %g1, %lo(ab) + 12, %g1
28629 or %g1, %lo(ab + 12), %g1' > conftest.s
28630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28635 test $ac_status = 0; }; }
28636 then
28637 if test x$gcc_cv_objdump != x \
28638 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28639 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28640 gcc_cv_as_sparc_offsetable_lo10=yes
28642 else
28643 echo "configure: failed program was" >&5
28644 cat conftest.s >&5
28646 rm -f conftest.o conftest.s
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28650 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28651 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28653 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28659 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28660 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28661 $as_echo_n "(cached) " >&6
28662 else
28663 gcc_cv_as_sparc_fmaf=no
28664 if test x$gcc_cv_as != x; then
28665 $as_echo '.text
28666 .register %g2, #scratch
28667 .register %g3, #scratch
28668 .align 4
28669 fmaddd %f0, %f2, %f4, %f6
28670 addxccc %g1, %g2, %g3
28671 fsrl32 %f2, %f4, %f8
28672 fnaddd %f10, %f12, %f14' > conftest.s
28673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28678 test $ac_status = 0; }; }
28679 then
28680 gcc_cv_as_sparc_fmaf=yes
28681 else
28682 echo "configure: failed program was" >&5
28683 cat conftest.s >&5
28685 rm -f conftest.o conftest.s
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28689 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28690 if test $gcc_cv_as_sparc_fmaf = yes; then
28692 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28698 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28699 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28700 $as_echo_n "(cached) " >&6
28701 else
28702 gcc_cv_as_sparc_sparc4=no
28703 if test x$gcc_cv_as != x; then
28704 $as_echo '.text
28705 .register %g2, #scratch
28706 .register %g3, #scratch
28707 .align 4
28708 cxbe %g2, %g3, 1f
28709 1: cwbneg %g2, %g3, 1f
28710 1: sha1
28712 aes_kexpand0 %f4, %f6, %f8
28713 des_round %f38, %f40, %f42, %f44
28714 camellia_f %f54, %f56, %f58, %f60
28715 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28721 test $ac_status = 0; }; }
28722 then
28723 gcc_cv_as_sparc_sparc4=yes
28724 else
28725 echo "configure: failed program was" >&5
28726 cat conftest.s >&5
28728 rm -f conftest.o conftest.s
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28732 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28733 if test $gcc_cv_as_sparc_sparc4 = yes; then
28735 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28741 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28742 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28743 $as_echo_n "(cached) " >&6
28744 else
28745 gcc_cv_as_sparc_sparc5=no
28746 if test x$gcc_cv_as != x; then
28747 $as_echo '.text
28748 .register %g2, #scratch
28749 .register %g3, #scratch
28750 .align 4
28751 subxc %g1, %g2, %g3
28752 fpadd8 %f0, %f2, %f4' > conftest.s
28753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28755 (eval $ac_try) 2>&5
28756 ac_status=$?
28757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28758 test $ac_status = 0; }; }
28759 then
28760 gcc_cv_as_sparc_sparc5=yes
28761 else
28762 echo "configure: failed program was" >&5
28763 cat conftest.s >&5
28765 rm -f conftest.o conftest.s
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28769 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28770 if test $gcc_cv_as_sparc_sparc5 = yes; then
28772 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28778 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28779 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28780 $as_echo_n "(cached) " >&6
28781 else
28782 gcc_cv_as_sparc_sparc6=no
28783 if test x$gcc_cv_as != x; then
28784 $as_echo '.text
28785 .register %g2, #scratch
28786 .register %g3, #scratch
28787 .align 4
28788 rd %entropy, %g1
28789 fpsll64x %f0, %f2, %f4' > conftest.s
28790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28795 test $ac_status = 0; }; }
28796 then
28797 gcc_cv_as_sparc_sparc6=yes
28798 else
28799 echo "configure: failed program was" >&5
28800 cat conftest.s >&5
28802 rm -f conftest.o conftest.s
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28806 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28807 if test $gcc_cv_as_sparc_sparc6 = yes; then
28809 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28815 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28816 if ${gcc_cv_as_sparc_leon+:} false; then :
28817 $as_echo_n "(cached) " >&6
28818 else
28819 gcc_cv_as_sparc_leon=no
28820 if test x$gcc_cv_as != x; then
28821 $as_echo '.text
28822 .register %g2, #scratch
28823 .register %g3, #scratch
28824 .align 4
28825 smac %g2, %g3, %g1
28826 umac %g2, %g3, %g1
28827 casa [%g2] 0xb, %g3, %g1' > conftest.s
28828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
28829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28830 (eval $ac_try) 2>&5
28831 ac_status=$?
28832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28833 test $ac_status = 0; }; }
28834 then
28835 gcc_cv_as_sparc_leon=yes
28836 else
28837 echo "configure: failed program was" >&5
28838 cat conftest.s >&5
28840 rm -f conftest.o conftest.s
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
28844 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
28845 if test $gcc_cv_as_sparc_leon = yes; then
28847 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
28853 i[34567]86-*-* | x86_64-*-*)
28854 case $target_os in
28855 cygwin*)
28856 # Full C++ conformance when using a shared libstdc++-v3 requires some
28857 # support from the Cygwin DLL, which in more recent versions exports
28858 # wrappers to aid in interposing and redirecting operators new, delete,
28859 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
28860 # are configuring for a version of Cygwin that exports the wrappers.
28861 if test x$host = x$target && test x$host_cpu = xi686; then
28862 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
28863 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
28864 gcc_ac_cygwin_dll_wrappers=yes
28865 else
28866 gcc_ac_cygwin_dll_wrappers=no
28869 else
28870 # Can't check presence of libc functions during cross-compile, so
28871 # we just have to assume we're building for an up-to-date target.
28872 gcc_ac_cygwin_dll_wrappers=yes
28875 cat >>confdefs.h <<_ACEOF
28876 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
28877 _ACEOF
28879 esac
28880 case $target_os in
28881 cygwin* | pe | mingw32*)
28882 # Recent binutils allows the three-operand form of ".comm" on PE. This
28883 # definition is used unconditionally to initialise the default state of
28884 # the target option variable that governs usage of the feature.
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
28886 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
28887 if ${gcc_cv_as_comm_has_align+:} false; then :
28888 $as_echo_n "(cached) " >&6
28889 else
28890 gcc_cv_as_comm_has_align=no
28891 if test x$gcc_cv_as != x; then
28892 $as_echo '.comm foo,1,32' > conftest.s
28893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28895 (eval $ac_try) 2>&5
28896 ac_status=$?
28897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28898 test $ac_status = 0; }; }
28899 then
28900 gcc_cv_as_comm_has_align=yes
28901 else
28902 echo "configure: failed program was" >&5
28903 cat conftest.s >&5
28905 rm -f conftest.o conftest.s
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
28909 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
28913 cat >>confdefs.h <<_ACEOF
28914 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
28915 _ACEOF
28917 # Used for DWARF 2 in PE
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
28919 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
28920 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
28921 $as_echo_n "(cached) " >&6
28922 else
28923 gcc_cv_as_ix86_pe_secrel32=no
28924 if test x$gcc_cv_as != x; then
28925 $as_echo '.text
28926 foo: nop
28927 .data
28928 .secrel32 foo' > conftest.s
28929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28931 (eval $ac_try) 2>&5
28932 ac_status=$?
28933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28934 test $ac_status = 0; }; }
28935 then
28936 if test x$gcc_cv_ld != x \
28937 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
28938 gcc_cv_as_ix86_pe_secrel32=yes
28940 rm -f conftest
28941 else
28942 echo "configure: failed program was" >&5
28943 cat conftest.s >&5
28945 rm -f conftest.o conftest.s
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
28949 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
28950 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
28952 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
28956 # Test if the assembler supports the extended form of the .section
28957 # directive that specifies section alignment. LTO support uses this,
28958 # but normally only after installation, so we warn but don't fail the
28959 # configure if LTO is enabled but the assembler does not support it.
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
28961 $as_echo_n "checking assembler for .section with alignment... " >&6; }
28962 if ${gcc_cv_as_section_has_align+:} false; then :
28963 $as_echo_n "(cached) " >&6
28964 else
28965 gcc_cv_as_section_has_align=no
28966 if test x$gcc_cv_as != x; then
28967 $as_echo '.section lto_test,"dr0"' > conftest.s
28968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
28969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28970 (eval $ac_try) 2>&5
28971 ac_status=$?
28972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28973 test $ac_status = 0; }; }
28974 then
28975 gcc_cv_as_section_has_align=yes
28976 else
28977 echo "configure: failed program was" >&5
28978 cat conftest.s >&5
28980 rm -f conftest.o conftest.s
28983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
28984 $as_echo "$gcc_cv_as_section_has_align" >&6; }
28987 if test x$gcc_cv_as_section_has_align != xyes; then
28988 case ",$enable_languages," in
28989 *,lto,*)
28990 { $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
28991 $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;}
28993 esac
28996 esac
28997 case $target_os in
28998 darwin2* | darwin19*)
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29000 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29001 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29002 $as_echo_n "(cached) " >&6
29003 else
29004 gcc_cv_as_mllvm_x86_pad_for_align=no
29005 if test x$gcc_cv_as != x; then
29006 $as_echo '.text' > conftest.s
29007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29009 (eval $ac_try) 2>&5
29010 ac_status=$?
29011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29012 test $ac_status = 0; }; }
29013 then
29014 gcc_cv_as_mllvm_x86_pad_for_align=yes
29015 else
29016 echo "configure: failed program was" >&5
29017 cat conftest.s >&5
29019 rm -f conftest.o conftest.s
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29023 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29024 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29026 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29031 esac
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29034 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29035 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29036 $as_echo_n "(cached) " >&6
29037 else
29038 gcc_cv_as_ix86_xbrace_comment=no
29039 if test x$gcc_cv_as != x; then
29040 $as_echo '.text' > conftest.s
29041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29043 (eval $ac_try) 2>&5
29044 ac_status=$?
29045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29046 test $ac_status = 0; }; }
29047 then
29048 gcc_cv_as_ix86_xbrace_comment=yes
29049 else
29050 echo "configure: failed program was" >&5
29051 cat conftest.s >&5
29053 rm -f conftest.o conftest.s
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29057 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29058 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29060 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29066 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29067 if ${gcc_cv_as_ix86_filds+:} false; then :
29068 $as_echo_n "(cached) " >&6
29069 else
29070 gcc_cv_as_ix86_filds=no
29071 if test x$gcc_cv_as != x; then
29072 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29078 test $ac_status = 0; }; }
29079 then
29080 gcc_cv_as_ix86_filds=yes
29081 else
29082 echo "configure: failed program was" >&5
29083 cat conftest.s >&5
29085 rm -f conftest.o conftest.s
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29089 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29090 if test $gcc_cv_as_ix86_filds = yes; then
29092 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29098 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29099 if ${gcc_cv_as_ix86_fildq+:} false; then :
29100 $as_echo_n "(cached) " >&6
29101 else
29102 gcc_cv_as_ix86_fildq=no
29103 if test x$gcc_cv_as != x; then
29104 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29110 test $ac_status = 0; }; }
29111 then
29112 gcc_cv_as_ix86_fildq=yes
29113 else
29114 echo "configure: failed program was" >&5
29115 cat conftest.s >&5
29117 rm -f conftest.o conftest.s
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29121 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29122 if test $gcc_cv_as_ix86_fildq = yes; then
29124 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29130 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29131 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29132 $as_echo_n "(cached) " >&6
29133 else
29134 gcc_cv_as_ix86_cmov_sun_syntax=no
29135 if test x$gcc_cv_as != x; then
29136 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29139 (eval $ac_try) 2>&5
29140 ac_status=$?
29141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29142 test $ac_status = 0; }; }
29143 then
29144 gcc_cv_as_ix86_cmov_sun_syntax=yes
29145 else
29146 echo "configure: failed program was" >&5
29147 cat conftest.s >&5
29149 rm -f conftest.o conftest.s
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29153 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29154 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29156 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29162 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29163 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29164 $as_echo_n "(cached) " >&6
29165 else
29166 gcc_cv_as_ix86_ffreep=no
29167 if test x$gcc_cv_as != x; then
29168 $as_echo 'ffreep %st(1)' > conftest.s
29169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29171 (eval $ac_try) 2>&5
29172 ac_status=$?
29173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29174 test $ac_status = 0; }; }
29175 then
29176 gcc_cv_as_ix86_ffreep=yes
29177 else
29178 echo "configure: failed program was" >&5
29179 cat conftest.s >&5
29181 rm -f conftest.o conftest.s
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29185 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29186 if test $gcc_cv_as_ix86_ffreep = yes; then
29188 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29194 $as_echo_n "checking assembler for .quad directive... " >&6; }
29195 if ${gcc_cv_as_ix86_quad+:} false; then :
29196 $as_echo_n "(cached) " >&6
29197 else
29198 gcc_cv_as_ix86_quad=no
29199 if test x$gcc_cv_as != x; then
29200 $as_echo '.quad 0' > conftest.s
29201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29203 (eval $ac_try) 2>&5
29204 ac_status=$?
29205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29206 test $ac_status = 0; }; }
29207 then
29208 gcc_cv_as_ix86_quad=yes
29209 else
29210 echo "configure: failed program was" >&5
29211 cat conftest.s >&5
29213 rm -f conftest.o conftest.s
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29217 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29218 if test $gcc_cv_as_ix86_quad = yes; then
29220 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29226 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29227 if ${gcc_cv_as_ix86_sahf+:} false; then :
29228 $as_echo_n "(cached) " >&6
29229 else
29230 gcc_cv_as_ix86_sahf=no
29231 if test x$gcc_cv_as != x; then
29232 $as_echo '.code64
29233 sahf' > conftest.s
29234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29236 (eval $ac_try) 2>&5
29237 ac_status=$?
29238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29239 test $ac_status = 0; }; }
29240 then
29241 gcc_cv_as_ix86_sahf=yes
29242 else
29243 echo "configure: failed program was" >&5
29244 cat conftest.s >&5
29246 rm -f conftest.o conftest.s
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29250 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29251 if test $gcc_cv_as_ix86_sahf = yes; then
29253 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29259 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29260 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29261 $as_echo_n "(cached) " >&6
29262 else
29263 gcc_cv_as_ix86_interunit_movq=no
29264 if test x$gcc_cv_as != x; then
29265 $as_echo '.code64
29266 movq %mm0, %rax
29267 movq %rax, %xmm0' > conftest.s
29268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29270 (eval $ac_try) 2>&5
29271 ac_status=$?
29272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29273 test $ac_status = 0; }; }
29274 then
29275 gcc_cv_as_ix86_interunit_movq=yes
29276 else
29277 echo "configure: failed program was" >&5
29278 cat conftest.s >&5
29280 rm -f conftest.o conftest.s
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29284 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29288 cat >>confdefs.h <<_ACEOF
29289 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29290 _ACEOF
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29294 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29295 if ${gcc_cv_as_ix86_hle+:} false; then :
29296 $as_echo_n "(cached) " >&6
29297 else
29298 gcc_cv_as_ix86_hle=no
29299 if test x$gcc_cv_as != x; then
29300 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29306 test $ac_status = 0; }; }
29307 then
29308 gcc_cv_as_ix86_hle=yes
29309 else
29310 echo "configure: failed program was" >&5
29311 cat conftest.s >&5
29313 rm -f conftest.o conftest.s
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29317 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29318 if test $gcc_cv_as_ix86_hle = yes; then
29320 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29326 $as_echo_n "checking assembler for swap suffix... " >&6; }
29327 if ${gcc_cv_as_ix86_swap+:} false; then :
29328 $as_echo_n "(cached) " >&6
29329 else
29330 gcc_cv_as_ix86_swap=no
29331 if test x$gcc_cv_as != x; then
29332 $as_echo 'movl.s %esp, %ebp' > conftest.s
29333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29335 (eval $ac_try) 2>&5
29336 ac_status=$?
29337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29338 test $ac_status = 0; }; }
29339 then
29340 gcc_cv_as_ix86_swap=yes
29341 else
29342 echo "configure: failed program was" >&5
29343 cat conftest.s >&5
29345 rm -f conftest.o conftest.s
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29349 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29350 if test $gcc_cv_as_ix86_swap = yes; then
29352 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29358 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29359 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29360 $as_echo_n "(cached) " >&6
29361 else
29362 gcc_cv_as_ix86_diff_sect_delta=no
29363 if test x$gcc_cv_as != x; then
29364 $as_echo '.section .rodata
29365 .L1:
29366 .long .L2-.L1
29367 .long .L3-.L1
29368 .text
29369 .L3: nop
29370 .L2: nop' > conftest.s
29371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; }
29377 then
29378 gcc_cv_as_ix86_diff_sect_delta=yes
29379 else
29380 echo "configure: failed program was" >&5
29381 cat conftest.s >&5
29383 rm -f conftest.o conftest.s
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29387 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29388 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29390 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29396 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29397 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29398 $as_echo_n "(cached) " >&6
29399 else
29400 gcc_cv_as_ix86_rep_lock_prefix=no
29401 if test x$gcc_cv_as != x; then
29402 $as_echo 'rep movsl
29403 rep ret
29404 rep nop
29405 rep bsf %ecx, %eax
29406 rep bsr %ecx, %eax
29407 lock addl %edi, (%eax,%esi)
29408 lock orl $0, (%esp)' > 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_rep_lock_prefix=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_rep_lock_prefix" >&5
29425 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29426 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29428 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29434 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29435 if ${gcc_cv_as_ix86_ud2+:} false; then :
29436 $as_echo_n "(cached) " >&6
29437 else
29438 gcc_cv_as_ix86_ud2=no
29439 if test x$gcc_cv_as != x; then
29440 $as_echo 'ud2' > conftest.s
29441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29443 (eval $ac_try) 2>&5
29444 ac_status=$?
29445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29446 test $ac_status = 0; }; }
29447 then
29448 gcc_cv_as_ix86_ud2=yes
29449 else
29450 echo "configure: failed program was" >&5
29451 cat conftest.s >&5
29453 rm -f conftest.o conftest.s
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29457 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29458 if test $gcc_cv_as_ix86_ud2 = yes; then
29460 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29465 # Enforce 32-bit output with gas and gld.
29466 if test x$gas = xyes; then
29467 as_ix86_gas_32_opt="--32"
29469 if echo "$ld_ver" | grep GNU > /dev/null; then
29470 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29471 ld_ix86_gld_32_opt="-melf_i386_sol2"
29472 else
29473 ld_ix86_gld_32_opt="-melf_i386"
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29478 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29479 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29480 $as_echo_n "(cached) " >&6
29481 else
29482 gcc_cv_as_ix86_tlsgdplt=no
29483 if test x$gcc_cv_as != x; then
29484 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29487 (eval $ac_try) 2>&5
29488 ac_status=$?
29489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29490 test $ac_status = 0; }; }
29491 then
29492 if test x$gcc_cv_ld != x \
29493 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29494 gcc_cv_as_ix86_tlsgdplt=yes
29496 rm -f conftest
29497 else
29498 echo "configure: failed program was" >&5
29499 cat conftest.s >&5
29501 rm -f conftest.o conftest.s
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29505 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29506 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29508 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29513 conftest_s='
29514 .section .tdata,"aw'$tls_section_flag'",@progbits
29515 tls_ld:
29516 .section .text,"ax",@progbits
29517 call tls_ld@tlsldmplt'
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29520 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29521 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29522 $as_echo_n "(cached) " >&6
29523 else
29524 gcc_cv_as_ix86_tlsldmplt=no
29525 if test x$gcc_cv_as != x; then
29526 $as_echo "$conftest_s" > conftest.s
29527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29529 (eval $ac_try) 2>&5
29530 ac_status=$?
29531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29532 test $ac_status = 0; }; }
29533 then
29534 if test x$gcc_cv_ld != x \
29535 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29536 gcc_cv_as_ix86_tlsldmplt=yes
29538 rm -f conftest
29539 else
29540 echo "configure: failed program was" >&5
29541 cat conftest.s >&5
29543 rm -f conftest.o conftest.s
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29547 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29551 cat >>confdefs.h <<_ACEOF
29552 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29553 _ACEOF
29556 conftest_s='
29557 .section .text,"ax",@progbits
29558 .globl _start
29559 .type _start, @function
29560 _start:
29561 leal value@tlsldm(%ebx), %eax
29562 call ___tls_get_addr@plt
29564 .section .tdata,"aw'$tls_section_flag'",@progbits
29565 .type value, @object
29566 value:'
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29568 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29569 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29570 $as_echo_n "(cached) " >&6
29571 else
29572 gcc_cv_as_ix86_tlsldm=no
29573 if test x$gcc_cv_as != x; then
29574 $as_echo "$conftest_s" > conftest.s
29575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29577 (eval $ac_try) 2>&5
29578 ac_status=$?
29579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29580 test $ac_status = 0; }; }
29581 then
29582 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29583 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29584 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29585 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29586 gcc_cv_as_ix86_tlsldm=yes
29589 rm -f conftest
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_tlsldm" >&5
29598 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29602 cat >>confdefs.h <<_ACEOF
29603 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29604 _ACEOF
29607 conftest_s='
29608 .data
29609 bar:
29610 .byte 1
29611 .text
29612 .global _start
29613 _start:
29614 cmpl $0, bar@GOT
29615 jmp *_start@GOT'
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29617 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29618 if ${gcc_cv_as_ix86_got32x+:} false; then :
29619 $as_echo_n "(cached) " >&6
29620 else
29621 gcc_cv_as_ix86_got32x=no
29622 if test x$gcc_cv_as != x; then
29623 $as_echo "$conftest_s" > conftest.s
29624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29626 (eval $ac_try) 2>&5
29627 ac_status=$?
29628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29629 test $ac_status = 0; }; }
29630 then
29631 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29632 && test x$gcc_cv_readelf != x \
29633 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29634 | grep R_386_GOT32X > /dev/null 2>&1 \
29635 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29636 if $gcc_cv_objdump -dw conftest 2>&1 \
29637 | grep 0xffffff > /dev/null 2>&1; then
29638 gcc_cv_as_ix86_got32x=no
29639 else
29640 gcc_cv_as_ix86_got32x=yes
29643 rm -f conftest
29644 else
29645 echo "configure: failed program was" >&5
29646 cat conftest.s >&5
29648 rm -f conftest.o conftest.s
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29652 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29656 cat >>confdefs.h <<_ACEOF
29657 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29658 _ACEOF
29661 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29662 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29663 if echo "$ld_ver" | grep GNU > /dev/null; then
29664 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29665 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29666 else
29667 ld_ix86_gld_64_opt="-melf_x86_64"
29670 # Enforce 64-bit output with gas and gld.
29671 if test x$gas = xyes; then
29672 as_ix86_gas_64_opt="--64"
29674 conftest_s='
29675 .text
29676 .globl _start
29677 .type _start, @function
29678 _start:
29679 addq %r23,foo@GOTTPOFF(%rip), %r15
29680 .section .tdata,"awT",@progbits
29681 .type foo, @object
29682 foo:
29683 .quad 0'
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29685 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29686 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29687 $as_echo_n "(cached) " >&6
29688 else
29689 gcc_cv_as_x86_64_code_6_gottpoff=no
29690 if test x$gcc_cv_as != x; then
29691 $as_echo "$conftest_s" > conftest.s
29692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29694 (eval $ac_try) 2>&5
29695 ac_status=$?
29696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29697 test $ac_status = 0; }; }
29698 then
29699 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29700 && test x$gcc_cv_readelf != x \
29701 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29702 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29703 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29704 if $gcc_cv_objdump -dw conftest 2>&1 \
29705 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29706 gcc_cv_as_x86_64_code_6_gottpoff=yes
29707 else
29708 gcc_cv_as_x86_64_code_6_gottpoff=no
29711 rm -f conftest
29712 else
29713 echo "configure: failed program was" >&5
29714 cat conftest.s >&5
29716 rm -f conftest.o conftest.s
29719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29720 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29724 cat >>confdefs.h <<_ACEOF
29725 #define HAVE_AS_R_X86_64_CODE_6_GOTTPOFF `if test x"$gcc_cv_as_x86_64_code_6_gottpoff" = xyes; then echo 1; else echo 0; fi`
29726 _ACEOF
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29730 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29731 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29732 $as_echo_n "(cached) " >&6
29733 else
29734 gcc_cv_as_ix86_gotoff_in_data=no
29735 if test x$gcc_cv_as != x; then
29736 $as_echo ' .text
29737 .L0:
29739 .data
29740 .long .L0@GOTOFF' > conftest.s
29741 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29746 test $ac_status = 0; }; }
29747 then
29748 gcc_cv_as_ix86_gotoff_in_data=yes
29749 else
29750 echo "configure: failed program was" >&5
29751 cat conftest.s >&5
29753 rm -f conftest.o conftest.s
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29757 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29761 cat >>confdefs.h <<_ACEOF
29762 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29763 _ACEOF
29766 conftest_s='
29767 .section .text,"ax",@progbits
29768 .globl _start
29769 .type _start, @function
29770 _start:
29771 leal ld@tlsldm(%ecx), %eax
29772 call *___tls_get_addr@GOT(%ecx)
29773 leal gd@tlsgd(%ecx), %eax
29774 call *___tls_get_addr@GOT(%ecx)
29776 .section .tdata,"aw'$tls_section_flag'",@progbits
29777 .type ld, @object
29779 .byte 0
29780 .globl gd
29781 .type gd, @object
29783 .byte 0'
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29785 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29786 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29787 $as_echo_n "(cached) " >&6
29788 else
29789 gcc_cv_as_ix86_tls_get_addr_via_got=no
29790 if test x$gcc_cv_as != x; then
29791 $as_echo "$conftest_s" > conftest.s
29792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29794 (eval $ac_try) 2>&5
29795 ac_status=$?
29796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29797 test $ac_status = 0; }; }
29798 then
29799 if test x$gcc_cv_ld != x \
29800 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29801 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29803 rm -f conftest
29804 else
29805 echo "configure: failed program was" >&5
29806 cat conftest.s >&5
29808 rm -f conftest.o conftest.s
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29812 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29816 cat >>confdefs.h <<_ACEOF
29817 #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`
29818 _ACEOF
29822 ia64*-*-*)
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
29824 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
29825 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
29826 $as_echo_n "(cached) " >&6
29827 else
29828 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
29829 if test x$gcc_cv_as != x; then
29830 $as_echo ' .text
29831 addl r15 = @ltoffx(x#), gp
29833 ld8.mov r16 = [r15], x#
29834 ' > conftest.s
29835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29837 (eval $ac_try) 2>&5
29838 ac_status=$?
29839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29840 test $ac_status = 0; }; }
29841 then
29842 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
29843 else
29844 echo "configure: failed program was" >&5
29845 cat conftest.s >&5
29847 rm -f conftest.o conftest.s
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
29851 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
29852 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
29854 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
29861 powerpc*-*-*)
29863 case $target in
29864 *-*-darwin*)
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
29866 $as_echo_n "checking assembler for .machine directive support... " >&6; }
29867 if ${gcc_cv_as_machine_directive+:} false; then :
29868 $as_echo_n "(cached) " >&6
29869 else
29870 gcc_cv_as_machine_directive=no
29871 if test x$gcc_cv_as != x; then
29872 $as_echo ' .machine ppc7400' > conftest.s
29873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29875 (eval $ac_try) 2>&5
29876 ac_status=$?
29877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29878 test $ac_status = 0; }; }
29879 then
29880 gcc_cv_as_machine_directive=yes
29881 else
29882 echo "configure: failed program was" >&5
29883 cat conftest.s >&5
29885 rm -f conftest.o conftest.s
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
29889 $as_echo "$gcc_cv_as_machine_directive" >&6; }
29892 if test x$gcc_cv_as_machine_directive != xyes; then
29893 echo "*** This target requires an assembler supporting \".machine\"" >&2
29894 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
29895 test x$build = x$target && exit 1
29898 esac
29900 case $target in
29901 *-*-aix*) conftest_s=' .machine "pwr5"
29902 .csect .text[PR]
29903 mfcr 3,128';;
29904 *-*-darwin*) conftest_s=' .text
29905 mfcr r3,128';;
29906 *) conftest_s=' .machine power4
29907 .text
29908 mfcr 3,128';;
29909 esac
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
29912 $as_echo_n "checking assembler for mfcr field support... " >&6; }
29913 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
29914 $as_echo_n "(cached) " >&6
29915 else
29916 gcc_cv_as_powerpc_mfcrf=no
29917 if test x$gcc_cv_as != x; then
29918 $as_echo "$conftest_s" > conftest.s
29919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29924 test $ac_status = 0; }; }
29925 then
29926 gcc_cv_as_powerpc_mfcrf=yes
29927 else
29928 echo "configure: failed program was" >&5
29929 cat conftest.s >&5
29931 rm -f conftest.o conftest.s
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
29935 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
29936 if test $gcc_cv_as_powerpc_mfcrf = yes; then
29938 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
29943 case $target in
29944 *-*-aix*) conftest_s=' .machine "pwr10"
29945 .csect .text[PR]
29946 tend. 0';;
29947 *-*-darwin*) conftest_s=' .text
29948 tend. 0';;
29949 *) conftest_s=' .machine power10
29950 .text
29951 tend. 0';;
29952 esac
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
29955 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
29956 if ${gcc_cv_as_power10_htm+:} false; then :
29957 $as_echo_n "(cached) " >&6
29958 else
29959 gcc_cv_as_power10_htm=no
29960 if test x$gcc_cv_as != x; then
29961 $as_echo "$conftest_s" > conftest.s
29962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29964 (eval $ac_try) 2>&5
29965 ac_status=$?
29966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29967 test $ac_status = 0; }; }
29968 then
29969 gcc_cv_as_power10_htm=yes
29970 else
29971 echo "configure: failed program was" >&5
29972 cat conftest.s >&5
29974 rm -f conftest.o conftest.s
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_power10_htm" >&5
29978 $as_echo "$gcc_cv_as_power10_htm" >&6; }
29979 if test $gcc_cv_as_power10_htm = yes; then
29981 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
29986 case $target in
29987 *-*-aix*) conftest_s=' .csect .text[PR]
29988 LCF..0:
29989 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
29990 *-*-darwin*)
29991 conftest_s=' .text
29992 LCF0:
29993 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
29994 *) conftest_s=' .text
29995 .LCF0:
29996 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
29997 esac
29999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30000 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30001 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30002 $as_echo_n "(cached) " >&6
30003 else
30004 gcc_cv_as_powerpc_rel16=no
30005 if test x$gcc_cv_as != x; then
30006 $as_echo "$conftest_s" > conftest.s
30007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30009 (eval $ac_try) 2>&5
30010 ac_status=$?
30011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30012 test $ac_status = 0; }; }
30013 then
30014 gcc_cv_as_powerpc_rel16=yes
30015 else
30016 echo "configure: failed program was" >&5
30017 cat conftest.s >&5
30019 rm -f conftest.o conftest.s
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30023 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30024 if test $gcc_cv_as_powerpc_rel16 = yes; then
30026 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30031 case $target in
30032 *-*-aix*) conftest_s=' .machine "pwr7"
30033 .csect .text[PR]
30034 lxvd2x 1,2,3';;
30035 *) conftest_s=' .machine power7
30036 .text
30037 lxvd2x 1,2,3';;
30038 esac
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30041 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30042 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30043 $as_echo_n "(cached) " >&6
30044 else
30045 gcc_cv_as_powerpc_vsx=no
30046 if test x$gcc_cv_as != x; then
30047 $as_echo "$conftest_s" > conftest.s
30048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30050 (eval $ac_try) 2>&5
30051 ac_status=$?
30052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30053 test $ac_status = 0; }; }
30054 then
30055 gcc_cv_as_powerpc_vsx=yes
30056 else
30057 echo "configure: failed program was" >&5
30058 cat conftest.s >&5
30060 rm -f conftest.o conftest.s
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30064 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30065 if test $gcc_cv_as_powerpc_vsx = yes; then
30067 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30073 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30074 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30075 $as_echo_n "(cached) " >&6
30076 else
30077 gcc_cv_as_powerpc_gnu_attribute=no
30078 if test x$gcc_cv_as != x; then
30079 $as_echo '.gnu_attribute 4,1' > conftest.s
30080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_gnu_attribute=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_gnu_attribute" >&5
30096 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30097 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30099 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30105 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30106 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30107 $as_echo_n "(cached) " >&6
30108 else
30109 gcc_cv_as_powerpc_entry_markers=no
30110 if test x$gcc_cv_as != x; then
30111 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30114 (eval $ac_try) 2>&5
30115 ac_status=$?
30116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30117 test $ac_status = 0; }; }
30118 then
30119 gcc_cv_as_powerpc_entry_markers=yes
30120 else
30121 echo "configure: failed program was" >&5
30122 cat conftest.s >&5
30124 rm -f conftest.o conftest.s
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30128 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30129 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30131 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30137 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30138 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30139 $as_echo_n "(cached) " >&6
30140 else
30141 gcc_cv_as_powerpc_pltseq_markers=no
30142 if test x$gcc_cv_as != x; then
30143 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30146 (eval $ac_try) 2>&5
30147 ac_status=$?
30148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30149 test $ac_status = 0; }; }
30150 then
30151 gcc_cv_as_powerpc_pltseq_markers=yes
30152 else
30153 echo "configure: failed program was" >&5
30154 cat conftest.s >&5
30156 rm -f conftest.o conftest.s
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30160 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30161 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30163 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30168 case $target in
30169 *-*-aix*)
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30171 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30172 if ${gcc_cv_as_aix_ref+:} false; then :
30173 $as_echo_n "(cached) " >&6
30174 else
30175 gcc_cv_as_aix_ref=no
30176 if test x$gcc_cv_as != x; then
30177 $as_echo ' .csect stuff[rw]
30178 stuff:
30179 .long 1
30180 .extern sym
30181 .ref sym
30182 ' > conftest.s
30183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30188 test $ac_status = 0; }; }
30189 then
30190 gcc_cv_as_aix_ref=yes
30191 else
30192 echo "configure: failed program was" >&5
30193 cat conftest.s >&5
30195 rm -f conftest.o conftest.s
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30199 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30200 if test $gcc_cv_as_aix_ref = yes; then
30202 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30208 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30209 if ${gcc_cv_as_aix_dwloc+:} false; then :
30210 $as_echo_n "(cached) " >&6
30211 else
30212 gcc_cv_as_aix_dwloc=no
30213 if test x$gcc_cv_as != x; then
30214 $as_echo ' .dwsect 0xA0000
30215 Lframe..0:
30216 .vbyte 4,Lframe..0
30217 ' > conftest.s
30218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30223 test $ac_status = 0; }; }
30224 then
30225 gcc_cv_as_aix_dwloc=yes
30226 else
30227 echo "configure: failed program was" >&5
30228 cat conftest.s >&5
30230 rm -f conftest.o conftest.s
30233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30234 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30235 if test $gcc_cv_as_aix_dwloc = yes; then
30237 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30242 esac
30245 mips*-*-*)
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30247 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30248 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30249 $as_echo_n "(cached) " >&6
30250 else
30251 gcc_cv_as_mips_explicit_relocs_pcrel=no
30252 if test x$gcc_cv_as != x; then
30253 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30256 (eval $ac_try) 2>&5
30257 ac_status=$?
30258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30259 test $ac_status = 0; }; }
30260 then
30261 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30262 else
30263 echo "configure: failed program was" >&5
30264 cat conftest.s >&5
30266 rm -f conftest.o conftest.s
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30270 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30271 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30273 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30278 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30280 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30281 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30282 $as_echo_n "(cached) " >&6
30283 else
30284 gcc_cv_as_mips_explicit_relocs=no
30285 if test x$gcc_cv_as != x; then
30286 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30289 (eval $ac_try) 2>&5
30290 ac_status=$?
30291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30292 test $ac_status = 0; }; }
30293 then
30294 gcc_cv_as_mips_explicit_relocs=yes
30295 else
30296 echo "configure: failed program was" >&5
30297 cat conftest.s >&5
30299 rm -f conftest.o conftest.s
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30303 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30304 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30306 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30310 else
30311 gcc_cv_as_mips_explicit_relocs=yes
30314 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30316 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30321 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30322 if ${gcc_cv_as_mips_no_shared+:} false; then :
30323 $as_echo_n "(cached) " >&6
30324 else
30325 gcc_cv_as_mips_no_shared=no
30326 if test x$gcc_cv_as != x; then
30327 $as_echo 'nop' > conftest.s
30328 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30330 (eval $ac_try) 2>&5
30331 ac_status=$?
30332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30333 test $ac_status = 0; }; }
30334 then
30335 gcc_cv_as_mips_no_shared=yes
30336 else
30337 echo "configure: failed program was" >&5
30338 cat conftest.s >&5
30340 rm -f conftest.o conftest.s
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30344 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30345 if test $gcc_cv_as_mips_no_shared = yes; then
30347 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30353 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30354 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30355 $as_echo_n "(cached) " >&6
30356 else
30357 gcc_cv_as_mips_gnu_attribute=no
30358 if test x$gcc_cv_as != x; then
30359 $as_echo '.gnu_attribute 4,1' > conftest.s
30360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_gnu_attribute=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_gnu_attribute" >&5
30376 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30377 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30379 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30385 $as_echo_n "checking assembler for .module support... " >&6; }
30386 if ${gcc_cv_as_mips_dot_module+:} false; then :
30387 $as_echo_n "(cached) " >&6
30388 else
30389 gcc_cv_as_mips_dot_module=no
30390 if test x$gcc_cv_as != x; then
30391 $as_echo '.module mips2
30392 .module fp=xx' > conftest.s
30393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30395 (eval $ac_try) 2>&5
30396 ac_status=$?
30397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30398 test $ac_status = 0; }; }
30399 then
30400 gcc_cv_as_mips_dot_module=yes
30401 else
30402 echo "configure: failed program was" >&5
30403 cat conftest.s >&5
30405 rm -f conftest.o conftest.s
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30409 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30410 if test $gcc_cv_as_mips_dot_module = yes; then
30412 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30416 if test x$gcc_cv_as_mips_dot_module = xno \
30417 && test x$with_fp_32 != x; then
30418 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30422 $as_echo_n "checking assembler for .micromips support... " >&6; }
30423 if ${gcc_cv_as_micromips_support+:} false; then :
30424 $as_echo_n "(cached) " >&6
30425 else
30426 gcc_cv_as_micromips_support=no
30427 if test x$gcc_cv_as != x; then
30428 $as_echo '.set micromips' > conftest.s
30429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30434 test $ac_status = 0; }; }
30435 then
30436 gcc_cv_as_micromips_support=yes
30437 else
30438 echo "configure: failed program was" >&5
30439 cat conftest.s >&5
30441 rm -f conftest.o conftest.s
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30445 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30446 if test $gcc_cv_as_micromips_support = yes; then
30448 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30454 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30455 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30456 $as_echo_n "(cached) " >&6
30457 else
30458 gcc_cv_as_mips_dtprelword=no
30459 if test x$gcc_cv_as != x; then
30460 $as_echo '.section .tdata,"awT",@progbits
30462 .word 2
30463 .text
30464 .dtprelword x+0x8000' > conftest.s
30465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30467 (eval $ac_try) 2>&5
30468 ac_status=$?
30469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30470 test $ac_status = 0; }; }
30471 then
30472 gcc_cv_as_mips_dtprelword=yes
30473 else
30474 echo "configure: failed program was" >&5
30475 cat conftest.s >&5
30477 rm -f conftest.o conftest.s
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30481 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30482 if test $gcc_cv_as_mips_dtprelword = yes; then
30484 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30490 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30491 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30492 $as_echo_n "(cached) " >&6
30493 else
30494 gcc_cv_as_mips_dspr1_mult=no
30495 if test x$gcc_cv_as != x; then
30496 $as_echo ' .set mips32r2
30497 .set nodspr2
30498 .set dsp
30499 madd $ac3,$4,$5
30500 maddu $ac3,$4,$5
30501 msub $ac3,$4,$5
30502 msubu $ac3,$4,$5
30503 mult $ac3,$4,$5
30504 multu $ac3,$4,$5' > conftest.s
30505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30507 (eval $ac_try) 2>&5
30508 ac_status=$?
30509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30510 test $ac_status = 0; }; }
30511 then
30512 gcc_cv_as_mips_dspr1_mult=yes
30513 else
30514 echo "configure: failed program was" >&5
30515 cat conftest.s >&5
30517 rm -f conftest.o conftest.s
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30521 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30522 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30524 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30530 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30531 gcc_cv_as_ld_jalr_reloc=no
30532 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30533 if test $in_tree_ld = yes ; then
30534 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 \
30535 && test $in_tree_ld_is_elf = yes; then
30536 gcc_cv_as_ld_jalr_reloc=yes
30538 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30539 echo ' .ent x' > conftest.s
30540 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30541 echo ' lw $25,%call16(y)($28)' >> conftest.s
30542 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30543 echo '1: jalr $25' >> conftest.s
30544 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30545 echo '1: jalr $25' >> conftest.s
30546 echo ' .end x' >> conftest.s
30547 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30548 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30549 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30550 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30551 gcc_cv_as_ld_jalr_reloc=yes
30554 rm -f conftest.*
30557 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30558 if test x$target_cpu_default = x; then
30559 target_cpu_default=MASK_RELAX_PIC_CALLS
30560 else
30561 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30565 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30568 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30569 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30570 $as_echo_n "(cached) " >&6
30571 else
30572 gcc_cv_ld_mips_personality_relaxation=no
30573 if test $in_tree_ld = yes ; then
30574 if test "$gcc_cv_gld_major_version" -eq 2 \
30575 -a "$gcc_cv_gld_minor_version" -ge 21 \
30576 -o "$gcc_cv_gld_major_version" -gt 2; then
30577 gcc_cv_ld_mips_personality_relaxation=yes
30579 elif test x$gcc_cv_as != x \
30580 -a x$gcc_cv_ld != x \
30581 -a x$gcc_cv_readelf != x ; then
30582 cat > conftest.s <<EOF
30583 .cfi_startproc
30584 .cfi_personality 0x80,indirect_ptr
30585 .ent test
30586 test:
30588 .end test
30589 .cfi_endproc
30591 .section .data,"aw",@progbits
30592 indirect_ptr:
30593 .dc.a personality
30595 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30596 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30597 if $gcc_cv_readelf -d conftest 2>&1 \
30598 | grep TEXTREL > /dev/null 2>&1; then
30600 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30601 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30603 else
30604 gcc_cv_ld_mips_personality_relaxation=yes
30608 rm -f conftest.s conftest.o conftest
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30611 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30612 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30614 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30619 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30620 if ${gcc_cv_as_mips_nan+:} false; then :
30621 $as_echo_n "(cached) " >&6
30622 else
30623 gcc_cv_as_mips_nan=no
30624 if test x$gcc_cv_as != x; then
30625 $as_echo '' > conftest.s
30626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30631 test $ac_status = 0; }; }
30632 then
30633 gcc_cv_as_mips_nan=yes
30634 else
30635 echo "configure: failed program was" >&5
30636 cat conftest.s >&5
30638 rm -f conftest.o conftest.s
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30642 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30643 if test $gcc_cv_as_mips_nan = yes; then
30645 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30649 if test x$gcc_cv_as_mips_nan = xno \
30650 && test x$with_nan != x; then
30651 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30654 msp430-*-*)
30655 # Earlier GAS versions generically support .gnu_attribute, but the
30656 # msp430 assembler will not do anything with it.
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30658 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30659 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30660 $as_echo_n "(cached) " >&6
30661 else
30662 gcc_cv_as_msp430_gnu_attribute=no
30663 if test x$gcc_cv_as != x; then
30664 $as_echo '.gnu_attribute 4,1' > conftest.s
30665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30667 (eval $ac_try) 2>&5
30668 ac_status=$?
30669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30670 test $ac_status = 0; }; }
30671 then
30672 gcc_cv_as_msp430_gnu_attribute=yes
30673 else
30674 echo "configure: failed program was" >&5
30675 cat conftest.s >&5
30677 rm -f conftest.o conftest.s
30680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30681 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30682 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30684 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30689 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30690 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30691 $as_echo_n "(cached) " >&6
30692 else
30693 gcc_cv_as_msp430_mspabi_attribute=no
30694 if test x$gcc_cv_as != x; then
30695 $as_echo '.mspabi_attribute 4,2' > conftest.s
30696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701 test $ac_status = 0; }; }
30702 then
30703 gcc_cv_as_msp430_mspabi_attribute=yes
30704 else
30705 echo "configure: failed program was" >&5
30706 cat conftest.s >&5
30708 rm -f conftest.o conftest.s
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30712 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30713 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30715 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30719 if test x$enable_newlib_nano_formatted_io = xyes; then
30721 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30725 nios2-*-*)
30726 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30727 # syntax that is documented in the ABI specification.
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30729 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30730 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30731 $as_echo_n "(cached) " >&6
30732 else
30733 gcc_cv_as_nios2_gotoff_relocation=no
30734 if test x$gcc_cv_as != x; then
30735 $as_echo ' .extern foo
30736 .data
30737 .long %gotoff(foo)' > conftest.s
30738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30743 test $ac_status = 0; }; }
30744 then
30745 gcc_cv_as_nios2_gotoff_relocation=yes
30746 else
30747 echo "configure: failed program was" >&5
30748 cat conftest.s >&5
30750 rm -f conftest.o conftest.s
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30754 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30755 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30757 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30762 riscv*-*-*)
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30764 $as_echo_n "checking assembler for .attribute support... " >&6; }
30765 if ${gcc_cv_as_riscv_attribute+:} false; then :
30766 $as_echo_n "(cached) " >&6
30767 else
30768 gcc_cv_as_riscv_attribute=no
30769 if test x$gcc_cv_as != x; then
30770 $as_echo '.attribute stack_align,4' > conftest.s
30771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30773 (eval $ac_try) 2>&5
30774 ac_status=$?
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; }
30777 then
30778 gcc_cv_as_riscv_attribute=yes
30779 else
30780 echo "configure: failed program was" >&5
30781 cat conftest.s >&5
30783 rm -f conftest.o conftest.s
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30787 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30788 if test $gcc_cv_as_riscv_attribute = yes; then
30790 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30795 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30796 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30797 $as_echo_n "(cached) " >&6
30798 else
30799 gcc_cv_as_riscv_isa_spec=no
30800 if test x$gcc_cv_as != x; then
30801 $as_echo '' > conftest.s
30802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30807 test $ac_status = 0; }; }
30808 then
30809 gcc_cv_as_riscv_isa_spec=yes
30810 else
30811 echo "configure: failed program was" >&5
30812 cat conftest.s >&5
30814 rm -f conftest.o conftest.s
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30818 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30819 if test $gcc_cv_as_riscv_isa_spec = yes; then
30821 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
30826 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
30827 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
30828 $as_echo_n "(cached) " >&6
30829 else
30830 gcc_cv_as_riscv_march_zifencei=no
30831 if test x$gcc_cv_as != x; then
30832 $as_echo '' > conftest.s
30833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
30834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30835 (eval $ac_try) 2>&5
30836 ac_status=$?
30837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30838 test $ac_status = 0; }; }
30839 then
30840 gcc_cv_as_riscv_march_zifencei=yes
30841 else
30842 echo "configure: failed program was" >&5
30843 cat conftest.s >&5
30845 rm -f conftest.o conftest.s
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
30849 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
30850 if test $gcc_cv_as_riscv_march_zifencei = yes; then
30852 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zaamo_zalrsc support" >&5
30857 $as_echo_n "checking assembler for -march=rv32i_zaamo_zalrsc support... " >&6; }
30858 if ${gcc_cv_as_riscv_march_zaamo_zalrsc+:} false; then :
30859 $as_echo_n "(cached) " >&6
30860 else
30861 gcc_cv_as_riscv_march_zaamo_zalrsc=no
30862 if test x$gcc_cv_as != x; then
30863 $as_echo '' > conftest.s
30864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zaamo_zalrsc -o conftest.o conftest.s >&5'
30865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30866 (eval $ac_try) 2>&5
30867 ac_status=$?
30868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30869 test $ac_status = 0; }; }
30870 then
30871 gcc_cv_as_riscv_march_zaamo_zalrsc=yes
30872 else
30873 echo "configure: failed program was" >&5
30874 cat conftest.s >&5
30876 rm -f conftest.o conftest.s
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zaamo_zalrsc" >&5
30880 $as_echo "$gcc_cv_as_riscv_march_zaamo_zalrsc" >&6; }
30881 if test $gcc_cv_as_riscv_march_zaamo_zalrsc = yes; then
30883 $as_echo "#define HAVE_AS_MARCH_ZAAMO_ZALRSC 1" >>confdefs.h
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_b support" >&5
30888 $as_echo_n "checking assembler for -march=rv32i_b support... " >&6; }
30889 if ${gcc_cv_as_riscv_march_b+:} false; then :
30890 $as_echo_n "(cached) " >&6
30891 else
30892 gcc_cv_as_riscv_march_b=no
30893 if test x$gcc_cv_as != x; then
30894 $as_echo '' > conftest.s
30895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_b -o conftest.o conftest.s >&5'
30896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30900 test $ac_status = 0; }; }
30901 then
30902 gcc_cv_as_riscv_march_b=yes
30903 else
30904 echo "configure: failed program was" >&5
30905 cat conftest.s >&5
30907 rm -f conftest.o conftest.s
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_b" >&5
30911 $as_echo "$gcc_cv_as_riscv_march_b" >&6; }
30912 if test $gcc_cv_as_riscv_march_b = yes; then
30914 $as_echo "#define HAVE_AS_MARCH_B 1" >>confdefs.h
30919 loongarch*-*-*)
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30921 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30922 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
30923 $as_echo_n "(cached) " >&6
30924 else
30925 gcc_cv_as_loongarch_dtprelword=no
30926 if test x$gcc_cv_as != x; then
30927 $as_echo '' > conftest.s
30928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
30929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30930 (eval $ac_try) 2>&5
30931 ac_status=$?
30932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30933 test $ac_status = 0; }; }
30934 then
30935 .section .tdata,"awT",@progbits
30937 .word 2
30938 .text
30939 .dtprelword x+0x8000
30940 else
30941 echo "configure: failed program was" >&5
30942 cat conftest.s >&5
30944 rm -f conftest.o conftest.s
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
30948 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
30950 if test $gcc_cv_as_loongarch_dtprelword != yes; then
30952 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
30956 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
30957 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
30958 $as_echo_n "(cached) " >&6
30959 else
30960 gcc_cv_as_loongarch_explicit_relocs=no
30961 if test x$gcc_cv_as != x; then
30962 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
30963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30965 (eval $ac_try) 2>&5
30966 ac_status=$?
30967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30968 test $ac_status = 0; }; }
30969 then
30970 gcc_cv_as_loongarch_explicit_relocs=yes
30971 else
30972 echo "configure: failed program was" >&5
30973 cat conftest.s >&5
30975 rm -f conftest.o conftest.s
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
30979 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
30980 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
30982 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
30986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
30987 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
30988 if ${gcc_cv_as_loongarch_call36+:} false; then :
30989 $as_echo_n "(cached) " >&6
30990 else
30991 gcc_cv_as_loongarch_call36=no
30992 if test x$gcc_cv_as != x; then
30993 $as_echo 'pcaddu18i $r1, %call36(a)
30994 jirl $r1, $r1, 0' > conftest.s
30995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30997 (eval $ac_try) 2>&5
30998 ac_status=$?
30999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31000 test $ac_status = 0; }; }
31001 then
31002 gcc_cv_as_loongarch_call36=yes
31003 else
31004 echo "configure: failed program was" >&5
31005 cat conftest.s >&5
31007 rm -f conftest.o conftest.s
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31011 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31012 if test $gcc_cv_as_loongarch_call36 = yes; then
31014 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31019 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31020 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31021 $as_echo_n "(cached) " >&6
31022 else
31023 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31024 if test x$gcc_cv_as != x; then
31025 $as_echo '.cfi_startproc
31026 .cfi_personality 0x9b,a
31027 .cfi_lsda 0x1b,b
31028 .cfi_endproc' > conftest.s
31029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31031 (eval $ac_try) 2>&5
31032 ac_status=$?
31033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31034 test $ac_status = 0; }; }
31035 then
31036 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31037 else
31038 echo "configure: failed program was" >&5
31039 cat conftest.s >&5
31041 rm -f conftest.o conftest.s
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31045 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31046 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31048 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31053 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31054 if ${gcc_cv_as_loongarch_relax+:} false; then :
31055 $as_echo_n "(cached) " >&6
31056 else
31057 gcc_cv_as_loongarch_relax=no
31058 if test x$gcc_cv_as != x; then
31059 $as_echo '.text' > conftest.s
31060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31062 (eval $ac_try) 2>&5
31063 ac_status=$?
31064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31065 test $ac_status = 0; }; }
31066 then
31067 gcc_cv_as_loongarch_relax=yes
31068 else
31069 echo "configure: failed program was" >&5
31070 cat conftest.s >&5
31072 rm -f conftest.o conftest.s
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31076 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31077 if test $gcc_cv_as_loongarch_relax = yes; then
31079 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31084 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31085 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31086 $as_echo_n "(cached) " >&6
31087 else
31088 gcc_cv_as_loongarch_cond_branch_relax=no
31089 if test x$gcc_cv_as != x; then
31090 $as_echo 'a:
31091 .rept 32769
31093 .endr
31094 beq $a0,$a1,a' > conftest.s
31095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31097 (eval $ac_try) 2>&5
31098 ac_status=$?
31099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31100 test $ac_status = 0; }; }
31101 then
31102 gcc_cv_as_loongarch_cond_branch_relax=yes
31103 else
31104 echo "configure: failed program was" >&5
31105 cat conftest.s >&5
31107 rm -f conftest.o conftest.s
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31111 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31112 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31114 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31119 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31120 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31121 $as_echo_n "(cached) " >&6
31122 else
31123 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31124 if test x$gcc_cv_as != x; then
31125 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31128 (eval $ac_try) 2>&5
31129 ac_status=$?
31130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31131 test $ac_status = 0; }; }
31132 then
31133 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31134 else
31135 echo "configure: failed program was" >&5
31136 cat conftest.s >&5
31138 rm -f conftest.o conftest.s
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31142 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31143 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31145 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31150 s390*-*-*)
31151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31152 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31153 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31154 $as_echo_n "(cached) " >&6
31155 else
31156 gcc_cv_as_s390_gnu_attribute=no
31157 if test x$gcc_cv_as != x; then
31158 $as_echo '.gnu_attribute 8,1' > conftest.s
31159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31161 (eval $ac_try) 2>&5
31162 ac_status=$?
31163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }; }
31165 then
31166 gcc_cv_as_s390_gnu_attribute=yes
31167 else
31168 echo "configure: failed program was" >&5
31169 cat conftest.s >&5
31171 rm -f conftest.o conftest.s
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31175 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31176 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31178 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31183 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31184 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31185 $as_echo_n "(cached) " >&6
31186 else
31187 gcc_cv_as_s390_machine_machinemode=no
31188 if test x$gcc_cv_as != x; then
31189 $as_echo ' .machinemode push
31190 .machinemode pop
31191 .machine push
31192 .machine pop' > conftest.s
31193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31195 (eval $ac_try) 2>&5
31196 ac_status=$?
31197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31198 test $ac_status = 0; }; }
31199 then
31200 gcc_cv_as_s390_machine_machinemode=yes
31201 else
31202 echo "configure: failed program was" >&5
31203 cat conftest.s >&5
31205 rm -f conftest.o conftest.s
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31209 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31210 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31212 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31217 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31218 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31219 $as_echo_n "(cached) " >&6
31220 else
31221 gcc_cv_as_s390_architecture_modifiers=no
31222 if test x$gcc_cv_as != x; then
31223 $as_echo ' .machine z13+vx ' > conftest.s
31224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31229 test $ac_status = 0; }; }
31230 then
31231 gcc_cv_as_s390_architecture_modifiers=yes
31232 else
31233 echo "configure: failed program was" >&5
31234 cat conftest.s >&5
31236 rm -f conftest.o conftest.s
31239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31240 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31241 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31243 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31248 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31249 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31250 $as_echo_n "(cached) " >&6
31251 else
31252 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31253 if test x$gcc_cv_as != x; then
31254 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31257 (eval $ac_try) 2>&5
31258 ac_status=$?
31259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31260 test $ac_status = 0; }; }
31261 then
31262 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31263 else
31264 echo "configure: failed program was" >&5
31265 cat conftest.s >&5
31267 rm -f conftest.o conftest.s
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31271 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31272 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31274 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31279 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31280 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31281 $as_echo_n "(cached) " >&6
31282 else
31283 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31284 if test x$gcc_cv_as != x; then
31285 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31288 (eval $ac_try) 2>&5
31289 ac_status=$?
31290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31291 test $ac_status = 0; }; }
31292 then
31293 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31294 else
31295 echo "configure: failed program was" >&5
31296 cat conftest.s >&5
31298 rm -f conftest.o conftest.s
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31302 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31303 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31305 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31311 esac
31313 # Mips, LoongArch and HP-UX need the GNU assembler.
31314 # Linux on IA64 might be able to use the Intel assembler.
31316 case "$target" in
31317 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31318 if test x$gas_flag = xyes \
31319 || test x"$host" != x"$build" \
31320 || test ! -x "$gcc_cv_as" \
31321 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31323 else
31324 echo "*** This configuration requires the GNU assembler" >&2
31325 exit 1
31328 esac
31330 # AMD GCN needs the LLVM assembler and linker.
31331 # Test that LLVM is at least 13.0.1.
31332 case "$target" in
31333 amdgcn-* | gcn-*)
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31335 $as_echo_n "checking llvm assembler version... " >&6; }
31336 gcc_cv_as_version="unknown"
31337 if test x$gcc_cv_as != x; then
31338 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31339 case "$gcc_cv_as_version" in
31340 13.0.[1-9]*) ;; # 13.0.1+
31341 13.[1-9]*) ;; # 13.1+
31342 1[4-9]*) ;; # 14..19
31343 [2-9][0-9]*) ;; # 20..99
31344 [1-9][0-9][0-9]*) ;; # 100+
31345 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31346 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31347 esac
31349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31350 $as_echo "$gcc_cv_as_version, ok" >&6; }
31352 esac
31354 case "$target" in
31355 arm*)
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31357 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31358 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31359 $as_echo_n "(cached) " >&6
31360 else
31361 gcc_cv_as_arm_option_extensions=no
31362 if test x$gcc_cv_as != x; then
31363 $as_echo '.text
31364 .thumb
31365 .syntax unified
31366 vmov.f32 s0, s1' > conftest.s
31367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31372 test $ac_status = 0; }; }
31373 then
31374 gcc_cv_as_arm_option_extensions=yes
31375 else
31376 echo "configure: failed program was" >&5
31377 cat conftest.s >&5
31379 rm -f conftest.o conftest.s
31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31383 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31384 if test $gcc_cv_as_arm_option_extensions = yes; then
31386 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31390 esac
31392 # ??? Not all targets support dwarf2 debug_line, even within a version
31393 # of gas. Moreover, we need to emit a valid instruction to trigger any
31394 # info to the output file. So, as supported targets are added to gas 2.11,
31395 # add some instruction here to (also) show we expect this might work.
31396 # ??? Once 2.11 is released, probably need to add first known working
31397 # version to the per-target configury.
31398 case "$cpu_type" in
31399 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31400 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31401 | visium | xstormy16 | xtensa | ft32)
31402 insn="nop"
31404 ia64 | s390)
31405 insn="nop 0"
31407 mmix)
31408 insn="swym 0"
31410 esac
31411 if test x"$insn" != x; then
31412 conftest_s="\
31413 .file 1 \"conftest.s\"
31414 .loc 1 3 0
31415 $insn"
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31417 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31418 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31419 $as_echo_n "(cached) " >&6
31420 else
31421 gcc_cv_as_dwarf2_debug_line=no
31422 if test x$gcc_cv_as != x; then
31423 $as_echo "$conftest_s" > conftest.s
31424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31429 test $ac_status = 0; }; }
31430 then
31431 if test x$gcc_cv_objdump != x \
31432 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31433 | grep debug_line > /dev/null 2>&1; then
31434 gcc_cv_as_dwarf2_debug_line=yes
31435 elif test x$gcc_cv_otool != x \
31436 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31437 | grep debug_line > /dev/null 2>&1; then
31438 gcc_cv_as_dwarf2_debug_line=yes
31440 else
31441 echo "configure: failed program was" >&5
31442 cat conftest.s >&5
31444 rm -f conftest.o conftest.s
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31448 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31452 # The .debug_line file table must be in the exact order that
31453 # we specified the files, since these indices are also used
31454 # by DW_AT_decl_file. Approximate this test by testing if
31455 # the assembler bitches if the same index is assigned twice.
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31457 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31458 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31459 $as_echo_n "(cached) " >&6
31460 else
31461 gcc_cv_as_dwarf2_file_buggy=no
31462 if test x$gcc_cv_as != x; then
31463 $as_echo ' .file 1 "foo.s"
31464 .file 1 "bar.s"' > conftest.s
31465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31467 (eval $ac_try) 2>&5
31468 ac_status=$?
31469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31470 test $ac_status = 0; }; }
31471 then
31472 gcc_cv_as_dwarf2_file_buggy=yes
31473 else
31474 echo "configure: failed program was" >&5
31475 cat conftest.s >&5
31477 rm -f conftest.o conftest.s
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31481 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31485 if test $gcc_cv_as_dwarf2_debug_line = yes \
31486 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31488 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31491 if test $gcc_cv_as_leb128 = yes; then
31492 conftest_s="\
31493 .file 1 \"conftest.s\"
31494 .loc 1 3 0 view .LVU1
31495 $insn
31496 .data
31497 .uleb128 .LVU1
31498 .uleb128 .LVU1
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31501 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31502 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31503 $as_echo_n "(cached) " >&6
31504 else
31505 gcc_cv_as_dwarf2_debug_view=no
31506 if test x$gcc_cv_as != x; then
31507 $as_echo "$conftest_s" > conftest.s
31508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31510 (eval $ac_try) 2>&5
31511 ac_status=$?
31512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31513 test $ac_status = 0; }; }
31514 then
31515 gcc_cv_as_dwarf2_debug_view=yes
31516 else
31517 echo "configure: failed program was" >&5
31518 cat conftest.s >&5
31520 rm -f conftest.o conftest.s
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31524 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31525 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31527 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31535 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31536 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31537 $as_echo_n "(cached) " >&6
31538 else
31539 gcc_cv_as_gdwarf2_flag=no
31540 if test x$gcc_cv_as != x; then
31541 $as_echo "$insn" > conftest.s
31542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31544 (eval $ac_try) 2>&5
31545 ac_status=$?
31546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31547 test $ac_status = 0; }; }
31548 then
31549 gcc_cv_as_gdwarf2_flag=yes
31550 else
31551 echo "configure: failed program was" >&5
31552 cat conftest.s >&5
31554 rm -f conftest.o conftest.s
31557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31558 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31559 if test $gcc_cv_as_gdwarf2_flag = yes; then
31561 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31567 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31568 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31569 $as_echo_n "(cached) " >&6
31570 else
31571 gcc_cv_as_gdwarf_5_flag=no
31572 if test x$gcc_cv_as != x; then
31573 $as_echo "$insn" > conftest.s
31574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31576 (eval $ac_try) 2>&5
31577 ac_status=$?
31578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31579 test $ac_status = 0; }; }
31580 then
31581 if test x$gcc_cv_objdump != x \
31582 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31583 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31584 gcc_cv_as_gdwarf_5_flag=yes;
31586 else
31587 echo "configure: failed program was" >&5
31588 cat conftest.s >&5
31590 rm -f conftest.o conftest.s
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31594 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31595 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31597 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31602 case $target_os in
31603 win32 | pe | cygwin* | mingw32*)
31604 section_flags=\"dr\"
31605 function_type=".def foo; .scl 2; .type 32; .endef"
31606 function_size="";;
31608 section_flags=\"\",%progbits
31609 function_type=".type foo, %function"
31610 function_size=".size foo, .-foo";;
31611 esac
31612 dwarf4_debug_info_size=0x46
31613 dwarf4_high_pc_form=7
31614 dwarf4_debug_aranges_size=0x2c
31615 dwarf4_line_sz=9
31616 for dwarf4_addr_size in 8 4; do
31617 conftest_s="\
31618 .file \"a.c\"
31619 .text
31620 .Ltext0:
31621 .p2align 4
31622 .globl foo
31623 $function_type
31624 foo:
31625 .LFB0:
31626 .LM1:
31627 $insn
31628 .LM2:
31629 .LFE0:
31630 $function_size
31631 .Letext0:
31632 .section .debug_info,$section_flags
31633 .Ldebug_info0:
31634 .4byte $dwarf4_debug_info_size
31635 .2byte 0x4
31636 .4byte .Ldebug_abbrev0
31637 .byte 0x$dwarf4_addr_size
31638 .byte 0x1
31639 .ascii \"GNU C17\\0\"
31640 .byte 0xc
31641 .ascii \"a.c\\0\"
31642 .ascii \"/\\0\"
31643 .${dwarf4_addr_size}byte .Ltext0
31644 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31645 .4byte .Ldebug_line0
31646 .byte 0x2
31647 .ascii \"foo\\0\"
31648 .byte 0x1
31649 .byte 0x2
31650 .byte 0x1
31651 .${dwarf4_addr_size}byte .LFB0
31652 .${dwarf4_addr_size}byte .LFE0-.LFB0
31653 .byte 0x1
31654 .byte 0x9c
31655 .byte 0
31656 .section .debug_abbrev,$section_flags
31657 .Ldebug_abbrev0:
31658 .byte 0x1
31659 .byte 0x11
31660 .byte 0x1
31661 .byte 0x25
31662 .byte 0x8
31663 .byte 0x13
31664 .byte 0xb
31665 .byte 0x3
31666 .byte 0x8
31667 .byte 0x1b
31668 .byte 0x8
31669 .byte 0x11
31670 .byte 0x1
31671 .byte 0x12
31672 .byte 0x$dwarf4_high_pc_form
31673 .byte 0x10
31674 .byte 0x17
31675 .byte 0
31676 .byte 0
31677 .byte 0x2
31678 .byte 0x2e
31679 .byte 0
31680 .byte 0x3f
31681 .byte 0x19
31682 .byte 0x3
31683 .byte 0x8
31684 .byte 0x3a
31685 .byte 0xb
31686 .byte 0x3b
31687 .byte 0xb
31688 .byte 0x39
31689 .byte 0xb
31690 .byte 0x11
31691 .byte 0x1
31692 .byte 0x12
31693 .byte 0x$dwarf4_high_pc_form
31694 .byte 0x40
31695 .byte 0x18
31696 .byte 0
31697 .byte 0
31698 .byte 0
31699 .section .debug_aranges,$section_flags
31700 .4byte $dwarf4_debug_aranges_size
31701 .2byte 0x2
31702 .4byte .Ldebug_info0
31703 .byte 0x8
31704 .byte 0
31705 .2byte 0
31706 .2byte 0
31707 .${dwarf4_addr_size}byte .Ltext0
31708 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31709 .${dwarf4_addr_size}byte 0
31710 .${dwarf4_addr_size}byte 0
31711 .section .debug_line,$section_flags
31712 .Ldebug_line0:
31713 .4byte .LELT0-.LSLT0
31714 .LSLT0:
31715 .2byte 0x4
31716 .4byte .LELTP0-.LASLTP0
31717 .LASLTP0:
31718 .byte 0x1
31719 .byte 0x1
31720 .byte 0x1
31721 .byte 0xf6
31722 .byte 0xf2
31723 .byte 0xd
31724 .byte 0
31725 .byte 0x1
31726 .byte 0x1
31727 .byte 0x1
31728 .byte 0x1
31729 .byte 0
31730 .byte 0
31731 .byte 0
31732 .byte 0x1
31733 .byte 0
31734 .byte 0
31735 .byte 0x1
31736 .byte 0
31737 .ascii \"a.c\\0\"
31738 .byte 0
31739 .byte 0
31740 .byte 0
31741 .byte 0
31742 .LELTP0:
31743 .byte 0
31744 .byte 0x$dwarf4_line_sz
31745 .byte 0x2
31746 .${dwarf4_addr_size}byte .LM1
31747 .byte 0x18
31748 .byte 0x5
31749 .byte 0x1
31750 .byte 0
31751 .byte 0x$dwarf4_line_sz
31752 .byte 0x2
31753 .${dwarf4_addr_size}byte .LM2
31754 .byte 0x1
31755 .byte 0x5
31756 .byte 0x1
31757 .byte 0
31758 .byte 0x$dwarf4_line_sz
31759 .byte 0x2
31760 .${dwarf4_addr_size}byte .Letext0
31761 .byte 0
31762 .byte 0x1
31763 .byte 0x1
31764 .LELT0:
31765 .section .debug_str,$section_flags
31766 .ident \"GCC\"
31768 dwarf4_success=no
31769 if test $dwarf4_addr_size = 4; then
31770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31771 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31772 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31773 $as_echo_n "(cached) " >&6
31774 else
31775 gcc_cv_as_debug_line_32_flag=no
31776 if test x$gcc_cv_as != x; then
31777 $as_echo "$conftest_s" > conftest.s
31778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31783 test $ac_status = 0; }; }
31784 then
31785 gcc_cv_as_debug_line_32_flag=yes
31786 else
31787 echo "configure: failed program was" >&5
31788 cat conftest.s >&5
31790 rm -f conftest.o conftest.s
31793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31794 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31795 if test $gcc_cv_as_debug_line_32_flag = yes; then
31796 dwarf4_success=yes
31799 else
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31801 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31802 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31803 $as_echo_n "(cached) " >&6
31804 else
31805 gcc_cv_as_debug_line_64_flag=no
31806 if test x$gcc_cv_as != x; then
31807 $as_echo "$conftest_s" > conftest.s
31808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31810 (eval $ac_try) 2>&5
31811 ac_status=$?
31812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31813 test $ac_status = 0; }; }
31814 then
31815 gcc_cv_as_debug_line_64_flag=yes
31816 else
31817 echo "configure: failed program was" >&5
31818 cat conftest.s >&5
31820 rm -f conftest.o conftest.s
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31824 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31825 if test $gcc_cv_as_debug_line_64_flag = yes; then
31826 dwarf4_success=yes
31830 if test $dwarf4_success = yes; then
31831 dwarf4_success=no
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31833 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31834 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31835 $as_echo_n "(cached) " >&6
31836 else
31837 gcc_cv_as_dwarf_4_debug_line_flag=no
31838 if test x$gcc_cv_as != x; then
31839 $as_echo "$conftest_s" > conftest.s
31840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31842 (eval $ac_try) 2>&5
31843 ac_status=$?
31844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31845 test $ac_status = 0; }; }
31846 then
31847 gcc_cv_as_dwarf_4_debug_line_flag=yes
31848 else
31849 echo "configure: failed program was" >&5
31850 cat conftest.s >&5
31852 rm -f conftest.o conftest.s
31855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31856 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31857 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31858 dwarf4_success=yes
31861 break
31863 dwarf4_debug_info_size=0x36
31864 dwarf4_high_pc_form=6
31865 dwarf4_debug_aranges_size=0x1c
31866 dwarf4_line_sz=5
31867 done
31869 if test $dwarf4_success = yes; then
31870 conftest_s="\
31871 .file \"foo.c\"
31872 .text
31873 bar:
31874 #APP
31875 # 82 \"xxx.h\" 1
31876 $insn
31877 # 0 \"\" 2
31878 #NO_APP
31879 $insn
31880 foo:
31881 .file 1 \"foo.c\"
31882 $insn
31883 .file 2 \"foo.h\"
31886 dwarf4_success=no
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
31888 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
31889 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
31890 $as_echo_n "(cached) " >&6
31891 else
31892 gcc_cv_as_dwarf_4_app_flag=no
31893 if test x$gcc_cv_as != x; then
31894 $as_echo "$conftest_s" > conftest.s
31895 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31897 (eval $ac_try) 2>&5
31898 ac_status=$?
31899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31900 test $ac_status = 0; }; }
31901 then
31902 gcc_cv_as_dwarf_4_app_flag=yes
31903 else
31904 echo "configure: failed program was" >&5
31905 cat conftest.s >&5
31907 rm -f conftest.o conftest.s
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
31911 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
31912 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
31913 dwarf4_success=yes
31918 if test $dwarf4_success = yes; then
31919 conftest_s="\
31920 .text
31921 .globl foo
31922 $function_type
31923 foo:
31924 $insn
31925 $function_size
31926 .file 1 \"foo.c\"
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
31929 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
31930 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
31931 $as_echo_n "(cached) " >&6
31932 else
31933 gcc_cv_as_working_gdwarf_n_flag=no
31934 if test x$gcc_cv_as != x; then
31935 $as_echo "$conftest_s" > conftest.s
31936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31941 test $ac_status = 0; }; }
31942 then
31943 if test x$gcc_cv_objdump != x \
31944 && $gcc_cv_objdump -W conftest.o 2>&1 \
31945 | grep conftest.s > /dev/null 2>&1; then
31946 gcc_cv_as_working_gdwarf_n_flag=no
31947 else
31948 gcc_cv_as_working_gdwarf_n_flag=yes
31950 else
31951 echo "configure: failed program was" >&5
31952 cat conftest.s >&5
31954 rm -f conftest.o conftest.s
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
31958 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
31961 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
31963 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
31969 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
31970 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
31971 $as_echo_n "(cached) " >&6
31972 else
31973 gcc_cv_as_debug_prefix_map_flag=no
31974 if test x$gcc_cv_as != x; then
31975 $as_echo "$insn" > conftest.s
31976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
31977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31978 (eval $ac_try) 2>&5
31979 ac_status=$?
31980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31981 test $ac_status = 0; }; }
31982 then
31983 gcc_cv_as_debug_prefix_map_flag=yes
31984 else
31985 echo "configure: failed program was" >&5
31986 cat conftest.s >&5
31988 rm -f conftest.o conftest.s
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
31992 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
31993 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
31995 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32002 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32003 if ${gcc_cv_as_compress_debug+:} false; then :
32004 $as_echo_n "(cached) " >&6
32005 else
32006 gcc_cv_as_compress_debug=no
32007 if test x$gcc_cv_as != x; then
32008 $as_echo '' > conftest.s
32009 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32011 (eval $ac_try) 2>&5
32012 ac_status=$?
32013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32014 test $ac_status = 0; }; }
32015 then
32016 # gas compiled without zlib cannot compress debug sections and warns
32017 # about it, but still exits successfully. So check for this, too.
32018 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32019 then
32020 gcc_cv_as_compress_debug=0
32021 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32022 then
32023 gcc_cv_as_compress_debug=1
32024 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32025 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32026 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32027 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32028 then
32029 gcc_cv_as_compress_debug=2
32031 else
32032 gcc_cv_as_compress_debug=0
32034 else
32035 echo "configure: failed program was" >&5
32036 cat conftest.s >&5
32038 rm -f conftest.o conftest.s
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32042 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32046 cat >>confdefs.h <<_ACEOF
32047 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32048 _ACEOF
32051 cat >>confdefs.h <<_ACEOF
32052 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32053 _ACEOF
32056 cat >>confdefs.h <<_ACEOF
32057 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32058 _ACEOF
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32062 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32063 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32064 $as_echo_n "(cached) " >&6
32065 else
32066 gcc_cv_as_lcomm_with_alignment=no
32067 if test x$gcc_cv_as != x; then
32068 $as_echo '.lcomm bar,4,16' > conftest.s
32069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32071 (eval $ac_try) 2>&5
32072 ac_status=$?
32073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32074 test $ac_status = 0; }; }
32075 then
32076 gcc_cv_as_lcomm_with_alignment=yes
32077 else
32078 echo "configure: failed program was" >&5
32079 cat conftest.s >&5
32081 rm -f conftest.o conftest.s
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32085 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32086 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32088 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32093 if test x$with_sysroot = x && test x$host = x$target \
32094 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32095 && test "$prefix" != "NONE"; then
32097 cat >>confdefs.h <<_ACEOF
32098 #define PREFIX_INCLUDE_DIR "$prefix/include"
32099 _ACEOF
32103 # Determine the version of glibc, if any, used on the target.
32104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32105 $as_echo_n "checking for target glibc version... " >&6; }
32107 # Check whether --with-glibc-version was given.
32108 if test "${with_glibc_version+set}" = set; then :
32109 withval=$with_glibc_version;
32110 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32111 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32112 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32113 else
32114 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32116 else
32118 glibc_version_major=0
32119 glibc_version_minor=0
32120 if test -f $target_header_dir/features.h \
32121 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32122 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32123 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32124 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32129 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32131 cat >>confdefs.h <<_ACEOF
32132 #define TARGET_GLIBC_MAJOR $glibc_version_major
32133 _ACEOF
32136 cat >>confdefs.h <<_ACEOF
32137 #define TARGET_GLIBC_MINOR $glibc_version_minor
32138 _ACEOF
32141 # Check whether --enable-gnu-unique-object was given.
32142 if test "${enable_gnu_unique_object+set}" = set; then :
32143 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32144 yes | no) ;;
32145 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32146 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32147 esac
32148 else
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32150 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32151 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32152 $as_echo_n "(cached) " >&6
32153 else
32154 gcc_cv_as_gnu_unique_object=no
32155 if test x$gcc_cv_as != x; then
32156 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32159 (eval $ac_try) 2>&5
32160 ac_status=$?
32161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32162 test $ac_status = 0; }; }
32163 then
32164 gcc_cv_as_gnu_unique_object=yes
32165 else
32166 echo "configure: failed program was" >&5
32167 cat conftest.s >&5
32169 rm -f conftest.o conftest.s
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32173 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32174 if test $gcc_cv_as_gnu_unique_object = yes; then
32175 # We need to unquote above to to use the definition from config.gcc.
32176 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32178 if test $glibc_version_major -gt 2 \
32179 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32180 enable_gnu_unique_object=yes
32187 if test x$enable_gnu_unique_object = xyes; then
32189 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32194 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32195 if ${gcc_cv_as_line_zero+:} false; then :
32196 $as_echo_n "(cached) " >&6
32197 else
32198 gcc_cv_as_line_zero=no
32199 if test "x$gcc_cv_as" != x; then
32200 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32201 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32203 (eval $ac_try) 2>&5
32204 ac_status=$?
32205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32206 test $ac_status = 0; }; } &&
32207 test "x`cat conftest.out`" = x
32208 then
32209 gcc_cv_as_line_zero=yes
32210 else
32211 echo "configure: failed program was" >&5
32212 cat conftest.s >&5
32213 echo "configure: error output was" >&5
32214 cat conftest.out >&5
32216 rm -f conftest.o conftest.s conftest.out
32219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32220 $as_echo "$gcc_cv_as_line_zero" >&6; }
32221 if test "x$gcc_cv_as_line_zero" = xyes; then
32223 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32228 $as_echo_n "checking support for thin archives... " >&6; }
32229 thin_archive_support=no
32230 echo 'int main (void) { return 0; }' > conftest.c
32231 if ($AR --version | sed 1q | grep "GNU ar" \
32232 && $CC $CFLAGS -c conftest.c \
32233 && $AR rcT conftest.a conftest.o \
32234 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32235 thin_archive_support=yes
32237 rm -f conftest.c conftest.o conftest.a conftest
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32239 $as_echo "$thin_archive_support" >&6; }
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32243 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32244 gcc_cv_ld_eh_frame_hdr=no
32245 if test $in_tree_ld = yes ; then
32246 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 \
32247 && test $in_tree_ld_is_elf = yes; then
32248 gcc_cv_ld_eh_frame_hdr=yes
32250 elif test x$gcc_cv_ld != x; then
32251 if echo "$ld_ver" | grep GNU > /dev/null; then
32252 # Check if linker supports --eh-frame-hdr option
32253 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32254 gcc_cv_ld_eh_frame_hdr=yes
32256 else
32257 case "$target" in
32258 *-*-solaris2*)
32259 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32260 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32261 gcc_cv_ld_eh_frame_hdr=yes
32264 esac
32268 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32270 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32274 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32277 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32278 gcc_cv_ld_eh_frame_ciev3=no
32279 if test $in_tree_ld = yes ; then
32280 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 \
32281 && test $in_tree_ld_is_elf = yes; then
32282 gcc_cv_ld_eh_frame_ciev3=yes
32284 elif test x$gcc_cv_ld != x; then
32285 if echo "$ld_ver" | grep GNU > /dev/null; then
32286 gcc_cv_ld_eh_frame_ciev3=yes
32287 if test 0"$ld_date" -lt 20040513; then
32288 if test -n "$ld_date"; then
32289 # If there was date string, but was earlier than 2004-05-13, fail
32290 gcc_cv_ld_eh_frame_ciev3=no
32291 elif test "$ld_vers_major" -lt 2; then
32292 gcc_cv_ld_eh_frame_ciev3=no
32293 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32294 gcc_cv_ld_eh_frame_ciev3=no
32297 else
32298 case "$target" in
32299 *-*-solaris2*)
32300 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32301 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32302 gcc_cv_ld_eh_frame_ciev3=yes
32305 esac
32309 cat >>confdefs.h <<_ACEOF
32310 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32311 _ACEOF
32313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32314 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32317 $as_echo_n "checking linker position independent executable support... " >&6; }
32318 gcc_cv_ld_pie=no
32319 if test $in_tree_ld = yes ; then
32320 case "$target" in
32321 # Full PIE support on Solaris was only introduced in gld 2.26.
32322 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32323 *) gcc_gld_pie_min_version=15 ;;
32324 esac
32325 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 \
32326 && test $in_tree_ld_is_elf = yes; then
32327 gcc_cv_ld_pie=yes
32329 elif test x$gcc_cv_ld != x; then
32330 # Check if linker supports -pie option
32331 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32332 gcc_cv_ld_pie=yes
32333 case "$target" in
32334 *-*-solaris2*)
32335 if echo "$ld_ver" | grep GNU > /dev/null \
32336 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32337 gcc_cv_ld_pie=no
32340 esac
32341 else
32342 case "$target" in
32343 *-*-solaris2.1[1-9]*)
32344 # Solaris 11.3 added PIE support.
32345 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32346 gcc_cv_ld_pie=yes
32349 esac
32352 if test x"$gcc_cv_ld_pie" = xyes; then
32354 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32358 $as_echo "$gcc_cv_ld_pie" >&6; }
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32361 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32362 gcc_cv_ld_pie_copyreloc=no
32363 if test $gcc_cv_ld_pie = yes ; then
32364 if test $in_tree_ld = yes ; then
32365 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
32366 gcc_cv_ld_pie_copyreloc=yes
32368 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32369 # Check if linker supports -pie option with copy reloc
32370 case "$target" in
32371 i?86-*-linux* | x86_64-*-linux*)
32372 cat > conftest1.s <<EOF
32373 .globl a_glob
32374 .data
32375 .type a_glob, @object
32376 .size a_glob, 4
32377 a_glob:
32378 .long 2
32380 cat > conftest2.s <<EOF
32381 .text
32382 .globl main
32383 .type main, @function
32384 main:
32385 movl %eax, a_glob(%rip)
32386 .size main, .-main
32387 .globl ptr
32388 .section .data.rel,"aw",@progbits
32389 .type ptr, @object
32390 ptr:
32391 .quad a_glob
32393 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32394 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32395 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32396 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32397 gcc_cv_ld_pie_copyreloc=yes
32399 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32401 esac
32405 cat >>confdefs.h <<_ACEOF
32406 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32407 _ACEOF
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32410 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32413 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32414 gcc_cv_ld_eh_gc_sections=no
32415 if test $in_tree_ld = yes ; then
32416 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 \
32417 && test $in_tree_ld_is_elf = yes; then
32418 gcc_cv_ld_eh_gc_sections=yes
32420 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32421 cat > conftest.s <<EOF
32422 .section .text
32423 .globl _start
32424 .type _start, @function
32425 _start:
32426 .long foo
32427 .size _start, .-_start
32428 .section .text.foo,"ax",@progbits
32429 .type foo, @function
32430 foo:
32431 .long 0
32432 .size foo, .-foo
32433 .section .gcc_except_table.foo,"a",@progbits
32434 .L0:
32435 .long 0
32436 .section .eh_frame,"a",@progbits
32437 .long .L0
32439 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32440 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32441 | grep "gc-sections option ignored" > /dev/null; then
32442 gcc_cv_ld_eh_gc_sections=no
32443 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32444 | grep gcc_except_table > /dev/null; then
32445 gcc_cv_ld_eh_gc_sections=yes
32446 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32447 if test x$gcc_cv_as_comdat_group != xyes; then
32448 gcc_cv_ld_eh_gc_sections=no
32449 cat > conftest.s <<EOF
32450 .section .text
32451 .globl _start
32452 .type _start, @function
32453 _start:
32454 .long foo
32455 .size _start, .-_start
32456 .section .gnu.linkonce.t.foo,"ax",@progbits
32457 .type foo, @function
32458 foo:
32459 .long 0
32460 .size foo, .-foo
32461 .section .gcc_except_table.foo,"a",@progbits
32462 .L0:
32463 .long 0
32464 .section .eh_frame,"a",@progbits
32465 .long .L0
32467 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32468 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32469 | grep "gc-sections option ignored" > /dev/null; then
32470 gcc_cv_ld_eh_gc_sections=no
32471 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32472 | grep gcc_except_table > /dev/null; then
32473 gcc_cv_ld_eh_gc_sections=yes
32479 rm -f conftest.s conftest.o conftest
32481 case "$target" in
32482 hppa*-*-linux*)
32483 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32484 gcc_cv_ld_eh_gc_sections=no
32486 esac
32487 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32489 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32493 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32496 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32497 gcc_cv_ld_eh_gc_sections_bug=no
32498 if test $in_tree_ld = yes ; then
32499 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 \
32500 && test $in_tree_ld_is_elf = yes; then
32501 gcc_cv_ld_eh_gc_sections_bug=yes
32503 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
32504 gcc_cv_ld_eh_gc_sections_bug=yes
32505 cat > conftest.s <<EOF
32506 .section .text
32507 .globl _start
32508 .type _start, @function
32509 _start:
32510 .long foo
32511 .size _start, .-_start
32512 .section .text.startup.foo,"ax",@progbits
32513 .type foo, @function
32514 foo:
32515 .long 0
32516 .size foo, .-foo
32517 .section .gcc_except_table.foo,"a",@progbits
32518 .L0:
32519 .long 0
32520 .section .eh_frame,"a",@progbits
32521 .long .L0
32523 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32524 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32525 | grep "gc-sections option ignored" > /dev/null; then
32527 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32528 | grep gcc_except_table > /dev/null; then
32529 gcc_cv_ld_eh_gc_sections_bug=no
32532 rm -f conftest.s conftest.o conftest
32534 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32536 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32540 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32543 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32544 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32545 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32546 gcc_cv_ld_compress_debug=1
32547 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32548 # Detect zstd debug section compression support
32549 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32550 gcc_cv_ld_compress_debug=2
32552 else
32553 case "${target}" in
32554 *-*-solaris2*)
32555 # Introduced in Solaris 11.2.
32556 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32557 gcc_cv_ld_compress_debug=1
32558 gcc_cv_ld_compress_debug_option="-z compress-sections"
32559 else
32560 gcc_cv_ld_compress_debug=0
32564 # Assume linkers other than GNU ld don't support compessed debug
32565 # sections.
32566 gcc_cv_ld_compress_debug=0
32568 esac
32571 cat >>confdefs.h <<_ACEOF
32572 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32573 _ACEOF
32576 cat >>confdefs.h <<_ACEOF
32577 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32578 _ACEOF
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32581 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32583 if test x"$ld64_flag" = x"yes"; then
32585 # Set defaults for possibly untestable items.
32586 gcc_cv_ld64_export_dynamic=0
32587 gcc_cv_ld64_platform_version=0
32588 gcc_cv_ld64_demangle=0
32590 if test "$build" = "$host"; then
32591 darwin_try_test=1
32592 else
32593 darwin_try_test=0
32596 # On Darwin, because of FAT library support, it is often possible to execute
32597 # exes from compatible archs even when the host differs from the build system.
32598 case "$build","$host" in
32599 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32600 darwin_try_test=1;;
32601 *) ;;
32602 esac
32604 # If the configurer specified a minimum ld64 version to be supported, then use
32605 # that to determine feature support.
32606 if test x"${gcc_cv_ld64_version}" != x; then
32607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32608 $as_echo_n "checking ld64 specified version... " >&6; }
32609 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32611 $as_echo "$gcc_cv_ld64_major" >&6; }
32612 if test "$gcc_cv_ld64_major" -ge 97; then
32613 gcc_cv_ld64_demangle=1
32615 if test "$gcc_cv_ld64_major" -ge 236; then
32616 gcc_cv_ld64_export_dynamic=1
32618 if test "$gcc_cv_ld64_major" -ge 512; then
32619 gcc_cv_ld64_platform_version=1
32621 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32622 # If the version was not specified, try to find it.
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32624 $as_echo_n "checking linker version... " >&6; }
32625 if test x"${gcc_cv_ld64_version}" = x; then
32626 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32627 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32630 $as_echo "$gcc_cv_ld64_version" >&6; }
32632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32633 $as_echo_n "checking linker for -demangle support... " >&6; }
32634 gcc_cv_ld64_demangle=1
32635 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32636 gcc_cv_ld64_demangle=0
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32639 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32642 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32643 gcc_cv_ld64_export_dynamic=1
32644 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32645 gcc_cv_ld64_export_dynamic=0
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32648 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32651 $as_echo_n "checking linker for -platform_version support... " >&6; }
32652 gcc_cv_ld64_platform_version=1
32653 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32654 gcc_cv_ld64_platform_version=0
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32657 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32660 if test x"${gcc_cv_ld64_version}" != x; then
32662 cat >>confdefs.h <<_ACEOF
32663 #define LD64_VERSION "${gcc_cv_ld64_version}"
32664 _ACEOF
32669 cat >>confdefs.h <<_ACEOF
32670 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32671 _ACEOF
32675 cat >>confdefs.h <<_ACEOF
32676 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32677 _ACEOF
32681 cat >>confdefs.h <<_ACEOF
32682 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32683 _ACEOF
32687 if test x"$dsymutil_flag" = x"yes"; then
32689 # If the user specified a dsymutil path, then we will already have the
32690 # version string, otherwise, pick it up.
32691 if test x"$gcc_cv_dsymutil" = x; then
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32693 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32694 dsymutil_vers="tool unspecified"
32695 elif test x"$dsymutil_vers" = x; then
32696 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32699 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32701 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32702 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32703 dsymutil_kind=DWARFUTILS
32704 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32705 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32706 dsymutil_kind=CLANG
32707 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32708 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32709 dsymutil_kind=LLVM
32710 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32711 else
32712 dsymutil_kind=DET_UNKNOWN
32713 dsymutil_vers="0.0"
32715 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32716 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32717 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32718 if test x"${dsymutil_minor}" = x; then
32719 dsymutil_minor=0
32721 if test x"${dsymutil_tiny}" = x; then
32722 dsymutil_tiny=0
32725 cat >>confdefs.h <<_ACEOF
32726 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32727 _ACEOF
32729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32730 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32733 case $target_os in
32734 win32 | pe | cygwin* | mingw32*)
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32736 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32737 gcc_cv_ld_broken_pe_dwarf5=yes
32738 if test $in_tree_ld = yes ; then
32739 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32740 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32741 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32742 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32743 gcc_cv_ld_broken_pe_dwarf5=no
32745 else
32746 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32747 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32748 gcc_cv_ld_broken_pe_dwarf5=no
32751 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32753 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32757 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32760 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32761 gcc_cv_ld_disable_dynamicbase=no
32762 if test $in_tree_ld = yes; then
32763 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 \
32764 gcc_cv_ld_disable_dynamicbase=yes
32766 else
32767 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32768 gcc_cv_ld_disable_dynamicbase=yes
32771 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32773 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32777 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32779 esac
32781 # --------
32782 # UNSORTED
32783 # --------
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32786 $as_echo_n "checking linker --as-needed support... " >&6; }
32787 if ${gcc_cv_ld_as_needed+:} false; then :
32788 $as_echo_n "(cached) " >&6
32789 else
32790 gcc_cv_ld_as_needed=no
32791 gcc_cv_ld_as_needed_option='--as-needed'
32792 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32793 if test $in_tree_ld = yes ; then
32794 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 \
32795 && test $in_tree_ld_is_elf = yes; then
32796 gcc_cv_ld_as_needed=yes
32797 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32798 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32799 gcc_cv_ld_no_as_needed_option='--pop-state'
32802 elif test x$gcc_cv_ld != x; then
32803 # Check if linker supports --as-needed and --no-as-needed options
32804 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32805 gcc_cv_ld_as_needed=yes
32806 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32807 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32808 && echo "$ld_ver" | grep GNU > /dev/null \
32809 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32810 # Use these options only when both ld.bfd and ld.gold support
32811 # --push-state/--pop-state, which unfortunately wasn't added
32812 # at the same time.
32813 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32814 gcc_cv_ld_no_as_needed_option='--pop-state'
32817 case "$target:$gnu_ld" in
32818 *-*-solaris2*:no)
32819 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32820 # forms.
32821 gcc_cv_ld_as_needed=yes
32822 gcc_cv_ld_as_needed_option="-z ignore"
32823 gcc_cv_ld_no_as_needed_option="-z record"
32825 esac
32827 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32828 # dl_iterate_phdr, i.e. since Solaris 11.
32829 case "$target" in
32830 *-*-solaris2.1[1-9]*)
32831 case "$target" in
32832 i?86-*-* | x86_64-*-*)
32833 if echo "$ld_ver" | grep GNU > /dev/null; then
32834 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32835 gcc_cv_ld_as_needed=no
32838 esac
32840 *-*-solaris2*)
32841 gcc_cv_ld_as_needed=no
32843 esac
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32847 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32848 if test x"$gcc_cv_ld_as_needed" = xyes; then
32850 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32853 cat >>confdefs.h <<_ACEOF
32854 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32855 _ACEOF
32858 cat >>confdefs.h <<_ACEOF
32859 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32860 _ACEOF
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32865 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32866 saved_LDFLAGS="$LDFLAGS"
32867 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32868 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32870 /* end confdefs.h. */
32871 int main(void) {return 0;}
32872 _ACEOF
32873 if ac_fn_cxx_try_link "$LINENO"; then :
32874 gcc_cv_ld_clearcap=yes; break
32875 else
32876 gcc_cv_ld_clearcap=no
32878 rm -f core conftest.err conftest.$ac_objext \
32879 conftest$ac_exeext conftest.$ac_ext
32880 done
32881 LDFLAGS="$saved_LDFLAGS"
32882 if test "x$gcc_cv_ld_clearcap" = xyes; then
32884 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
32886 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
32890 $as_echo "$gcc_cv_ld_clearcap" >&6; }
32892 case "$target" in
32893 powerpc*-*-*)
32894 case "$target" in
32895 *le-*-linux*)
32896 emul_name="-melf32lppc"
32899 emul_name="-melf32ppc"
32901 esac
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
32903 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
32904 if ${gcc_cv_ld_ppc_attr+:} false; then :
32905 $as_echo_n "(cached) " >&6
32906 else
32907 gcc_cv_ld_ppc_attr=no
32908 if test x"$ld_is_gold" = xyes; then
32909 gcc_cv_ld_ppc_attr=yes
32910 elif test $in_tree_ld = yes ; then
32911 if test "$gcc_cv_gld_major_version" -eq 2 \
32912 -a "$gcc_cv_gld_minor_version" -ge 28 \
32913 -o "$gcc_cv_gld_major_version" -gt 2; then
32914 gcc_cv_ld_ppc_attr=yes
32916 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32917 # check that merging the long double .gnu_attribute doesn't warn
32918 cat > conftest1.s <<EOF
32919 .gnu_attribute 4,1
32921 cat > conftest2.s <<EOF
32922 .gnu_attribute 4,9
32924 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32925 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32926 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
32927 && test ! -s conftest.err; then
32928 gcc_cv_ld_ppc_attr=yes
32930 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
32934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
32935 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
32936 if test x$gcc_cv_ld_ppc_attr = xyes; then
32938 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
32942 esac
32944 case "$target:$tm_file" in
32945 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
32946 case "$target" in
32947 *le-*-linux*)
32948 emul_name="-melf64lppc"
32950 *-*-linux*)
32951 emul_name="-melf64ppc"
32953 *le-*-freebsd*)
32954 emul_name="-melf64lppc_fbsd"
32956 *-*-freebsd*)
32957 emul_name="-melf64ppc_fbsd"
32959 esac
32960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
32961 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
32962 if ${gcc_cv_ld_no_dot_syms+:} false; then :
32963 $as_echo_n "(cached) " >&6
32964 else
32965 gcc_cv_ld_no_dot_syms=no
32966 if test x"$ld_is_gold" = xyes; then
32967 gcc_cv_ld_no_dot_syms=yes
32968 elif test $in_tree_ld = yes ; then
32969 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
32970 gcc_cv_ld_no_dot_syms=yes
32972 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32973 cat > conftest1.s <<EOF
32974 .text
32975 bl .foo
32977 cat > conftest2.s <<EOF
32978 .section ".opd","aw"
32979 .align 3
32980 .globl foo
32981 .type foo,@function
32982 foo:
32983 .quad .LEfoo,.TOC.@tocbase,0
32984 .text
32985 .LEfoo:
32987 .size foo,.-.LEfoo
32989 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32990 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32991 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
32992 gcc_cv_ld_no_dot_syms=yes
32994 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
32998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
32999 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33000 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33002 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33007 $as_echo_n "checking linker large toc support... " >&6; }
33008 if ${gcc_cv_ld_large_toc+:} false; then :
33009 $as_echo_n "(cached) " >&6
33010 else
33011 gcc_cv_ld_large_toc=no
33012 if test x"$ld_is_gold" = xyes; then
33013 gcc_cv_ld_large_toc=yes
33014 elif test $in_tree_ld = yes ; then
33015 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
33016 gcc_cv_ld_large_toc=yes
33018 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33019 cat > conftest.s <<EOF
33020 .section ".tbss","awT",@nobits
33021 .align 3
33022 ie0: .space 8
33023 .global _start
33024 .text
33025 _start:
33026 addis 9,13,ie0@got@tprel@ha
33027 ld 9,ie0@got@tprel@l(9)
33029 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33030 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33031 gcc_cv_ld_large_toc=yes
33033 rm -f conftest conftest.o conftest.s
33037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33038 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33039 if test x"$gcc_cv_ld_large_toc" = xyes; then
33041 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33046 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33047 if ${gcc_cv_ld_toc_align+:} false; then :
33048 $as_echo_n "(cached) " >&6
33049 else
33050 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33051 cat > conftest.s <<EOF
33052 .global _start
33053 .text
33054 _start:
33055 addis 9,2,x@got@ha
33056 .section .data.rel.ro,"aw",@progbits
33057 .p2align 16
33058 .space 32768
33059 x: .quad .TOC.
33061 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33062 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33063 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)) }'`
33065 rm -f conftest conftest.o conftest.s
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33070 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33071 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33073 cat >>confdefs.h <<_ACEOF
33074 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33075 _ACEOF
33079 esac
33081 case "$target" in
33082 *-*-aix*)
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33084 $as_echo_n "checking linker large toc support... " >&6; }
33085 if ${gcc_cv_ld_large_toc+:} false; then :
33086 $as_echo_n "(cached) " >&6
33087 else
33088 gcc_cv_ld_large_toc=no
33089 if test x$gcc_cv_as != x ; then
33090 cat > conftest.s <<EOF
33091 .toc
33092 LC..1:
33093 .tc a[TC],a[RW]
33094 .extern a[RW]
33095 .csect .text[PR]
33096 .largetoctest:
33097 addis 9,LC..1@u(2)
33098 ld 3,LC..1@l(9)
33100 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33101 gcc_cv_ld_large_toc=yes
33103 rm -f conftest conftest.o conftest.s
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33108 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33109 if test x"$gcc_cv_ld_large_toc" = xyes; then
33111 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33115 esac
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33118 $as_echo_n "checking linker --build-id support... " >&6; }
33119 if ${gcc_cv_ld_buildid+:} false; then :
33120 $as_echo_n "(cached) " >&6
33121 else
33122 gcc_cv_ld_buildid=no
33123 if test $in_tree_ld = yes ; then
33124 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33125 "$gcc_cv_gld_minor_version" -ge 18 -o \
33126 "$gcc_cv_gld_major_version" -gt 2 \
33127 && test $in_tree_ld_is_elf = yes; then
33128 gcc_cv_ld_buildid=yes
33130 elif test x$gcc_cv_ld != x; then
33131 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33132 gcc_cv_ld_buildid=yes
33136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33137 $as_echo "$gcc_cv_ld_buildid" >&6; }
33138 if test x"$gcc_cv_ld_buildid" = xyes; then
33140 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33144 # Check whether --enable-linker-build-id was given.
33145 if test "${enable_linker_build_id+set}" = set; then :
33146 enableval=$enable_linker_build_id;
33147 else
33148 enable_linker_build_id=no
33152 if test x"$enable_linker_build_id" = xyes; then
33153 if test x"$gcc_cv_ld_buildid" = xyes; then
33155 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33157 else
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33159 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33163 # In binutils 2.21, GNU ld gained support for new emulations fully
33164 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33166 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33167 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33168 $as_echo_n "(cached) " >&6
33169 else
33170 gcc_cv_ld_sol2_emulation=no
33171 if test $in_tree_ld = yes ; then
33172 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33173 "$gcc_cv_gld_minor_version" -ge 21 -o \
33174 "$gcc_cv_gld_major_version" -gt 2 \
33175 && test $in_tree_ld_is_elf = yes; then
33176 gcc_cv_ld_sol2_emulation=yes
33178 elif test x$gcc_cv_ld != x; then
33179 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33180 grep _sol2 > /dev/null; then
33181 gcc_cv_ld_sol2_emulation=yes
33185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33186 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33187 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33189 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33194 $as_echo_n "checking linker --sysroot support... " >&6; }
33195 if ${gcc_cv_ld_sysroot+:} false; then :
33196 $as_echo_n "(cached) " >&6
33197 else
33198 gcc_cv_ld_sysroot=no
33199 if test $in_tree_ld = yes ; then
33200 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
33201 gcc_cv_ld_sysroot=yes
33203 elif test x$gcc_cv_ld != x; then
33204 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33205 gcc_cv_ld_sysroot=yes
33209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33210 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33211 if test x"$gcc_cv_ld_sysroot" = xyes; then
33213 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33217 case $target in
33218 *-*-solaris2*)
33219 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33221 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33222 if ${gcc_cv_solaris_crts+:} false; then :
33223 $as_echo_n "(cached) " >&6
33224 else
33225 gcc_cv_solaris_crts=no
33226 if test x$host != x$target; then
33227 if test "x$with_sysroot" = xyes; then
33228 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33229 else
33230 target_sysroot="${with_sysroot}"
33233 target_libdir="$target_sysroot/usr/lib"
33234 # At the time they were added, gcrt1.o became a symlink for backwards
33235 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33236 case $target in
33237 i?86-*-solaris2* | x86_64-*-solaris2*)
33238 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33240 sparc*-*-solaris2*)
33241 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33243 esac
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33246 $as_echo "$gcc_cv_solaris_crts" >&6; }
33248 esac
33249 if test x$gcc_cv_solaris_crts = xyes; then
33251 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33255 # Check whether --enable-libssp was given.
33256 if test "${enable_libssp+set}" = set; then :
33257 enableval=$enable_libssp; case "${enableval}" in
33258 yes|no)
33261 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33263 esac
33267 # Test for stack protector support in target C library.
33268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33269 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33270 if ${gcc_cv_libc_provides_ssp+:} false; then :
33271 $as_echo_n "(cached) " >&6
33272 else
33273 gcc_cv_libc_provides_ssp=no
33274 if test "x$enable_libssp" = "xno"; then
33275 gcc_cv_libc_provides_ssp=yes
33276 elif test "x$enable_libssp" = "xyes"; then
33277 gcc_cv_libc_provides_ssp=no
33278 else
33279 case "$target" in
33280 *-*-musl*)
33281 # All versions of musl provide stack protector
33282 gcc_cv_libc_provides_ssp=yes;;
33283 *-*-linux* | *-*-kfreebsd*-gnu)
33284 # glibc 2.4 and later provides __stack_chk_fail and
33285 # either __stack_chk_guard, or TLS access to stack guard canary.
33287 if test $glibc_version_major -gt 2 \
33288 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33289 gcc_cv_libc_provides_ssp=yes
33290 else
33292 if test -f $target_header_dir/features.h \
33293 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33294 $target_header_dir/features.h > /dev/null; then
33295 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33296 $target_header_dir/features.h > /dev/null && \
33297 test -f $target_header_dir/bits/uClibc_config.h && \
33298 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33299 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33300 gcc_cv_libc_provides_ssp=yes
33302 # all versions of Bionic support stack protector
33303 elif test -f $target_header_dir/sys/cdefs.h \
33304 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33305 $target_header_dir/sys/cdefs.h > /dev/null; then
33306 gcc_cv_libc_provides_ssp=yes
33310 *-*-gnu*)
33311 # Avoid complicated tests (see
33312 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33313 # simply assert that glibc does provide this, which is true for all
33314 # realistically usable GNU/Hurd configurations.
33315 # All supported versions of musl provide it as well
33316 gcc_cv_libc_provides_ssp=yes;;
33317 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33318 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33319 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33320 gcc_cv_libc_provides_ssp=yes
33321 else
33322 echo "no __stack_chk_fail on this target"
33326 *) gcc_cv_libc_provides_ssp=no ;;
33327 esac
33330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33331 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33333 if test x$gcc_cv_libc_provides_ssp = xyes; then
33335 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33339 # Check whether --enable-default-ssp was given.
33340 # Check whether --enable-default-ssp was given.
33341 if test "${enable_default_ssp+set}" = set; then :
33342 enableval=$enable_default_ssp;
33343 if test x$gcc_cv_libc_provides_ssp = xyes; then
33344 case "$target" in
33345 ia64*-*-*) enable_default_ssp=no ;;
33346 *) enable_default_ssp=$enableval ;;
33347 esac
33348 else
33349 enable_default_ssp=no
33351 else
33352 enable_default_ssp=no
33355 if test x$enable_default_ssp = xyes ; then
33357 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33362 # Test for <sys/sdt.h> on the target.
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33365 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33366 if ${gcc_cv_sys_sdt_h+:} false; then :
33367 $as_echo_n "(cached) " >&6
33368 else
33370 gcc_cv_sys_sdt_h=no
33371 if test -f $target_header_dir/sys/sdt.h; then
33372 gcc_cv_sys_sdt_h=yes
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33377 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33378 if test x$gcc_cv_sys_sdt_h = xyes; then :
33381 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33386 # Check if TFmode long double should be used by default or not.
33387 # Some glibc targets used DFmode long double, but with glibc 2.4
33388 # and later they can use TFmode.
33389 case "$target" in
33390 powerpc*-*-linux* | \
33391 sparc*-*-linux* | \
33392 s390*-*-linux* | \
33393 alpha*-*-linux*)
33395 # Check whether --with-long-double-128 was given.
33396 if test "${with_long_double_128+set}" = set; then :
33397 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33398 else
33400 case "$target" in
33401 s390*-*-linux-musl*)
33402 gcc_cv_target_ldbl128=yes
33404 powerpc*-*-linux-musl*)
33405 gcc_cv_target_ldbl128=no
33409 if test $glibc_version_major -gt 2 \
33410 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33411 gcc_cv_target_ldbl128=yes
33412 else
33414 gcc_cv_target_ldbl128=no
33415 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33416 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33417 && gcc_cv_target_ldbl128=yes
33422 esac
33427 esac
33428 if test x$gcc_cv_target_ldbl128 = xyes; then
33430 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33434 # Check if TFmode long double target should use the IBM extended double or IEEE
33435 # 128-bit floating point formats if long doubles are 128-bits long. The long
33436 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33437 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33438 # libgcc.
33440 # Check whether --with-long-double-format was given.
33441 if test "${with_long_double_format+set}" = set; then :
33442 withval=$with_long_double_format;
33443 case "$target:$with_long_double_format" in
33444 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33447 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33448 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33449 case "$with_cpu" in
33450 power7 | power8 | power9 | power1*)
33454 as_fn_error $? "Configuration option --with-long-double-format is only \
33455 supported if the default cpu is power7 or newer" "$LINENO" 5
33456 with_long_double_format=""
33458 esac
33460 powerpc64*-*-linux*:*)
33461 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33462 with_long_double_format=""
33465 as_fn_error $? "Configure option --with-long-double-format is only supported \
33466 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33467 with_long_double_format=""
33469 esac
33473 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33474 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33475 gcc_cv_libc_provides_hwcap_in_tcb=no
33476 case "$target" in
33477 powerpc*-*-linux*)
33479 if test $glibc_version_major -gt 2 \
33480 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33481 gcc_cv_libc_provides_hwcap_in_tcb=yes
33484 esac
33485 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33487 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33491 # Check if the target LIBC handles PT_GNU_STACK.
33492 gcc_cv_libc_gnustack=unknown
33493 case "$target" in
33494 mips*-*-linux-musl*)
33495 gcc_cv_libc_gnustack=yes
33497 mips*-*-linux*)
33499 if test $glibc_version_major -gt 2 \
33500 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33501 gcc_cv_libc_gnustack=yes
33504 esac
33505 if test x$gcc_cv_libc_gnustack = xyes; then
33507 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33512 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33513 gcc_cv_target_dl_iterate_phdr=unknown
33514 case "$target" in
33515 *-*-solaris2*)
33516 gcc_cv_target_dl_iterate_phdr=yes
33518 *-*-dragonfly* | *-*-freebsd*)
33519 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33520 gcc_cv_target_dl_iterate_phdr=yes
33521 else
33522 gcc_cv_target_dl_iterate_phdr=no
33525 *-linux-musl*)
33526 gcc_cv_target_dl_iterate_phdr=yes
33528 esac
33530 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33532 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33536 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33538 # We no longer support different GC mechanisms. Emit an error if
33539 # the user configures with --with-gc.
33541 # Check whether --with-gc was given.
33542 if test "${with_gc+set}" = set; then :
33543 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33547 # Libraries to use on the host. This will normally be set by the top
33548 # level Makefile. Here we simply capture the value for our Makefile.
33549 if test -z "${HOST_LIBS+set}"; then
33550 HOST_LIBS=
33554 # Use the system's zlib library.
33556 # Use the system's zlib library.
33557 zlibdir="-L\$(top_builddir)/../zlib"
33558 zlibinc="-I\$(top_srcdir)/../zlib"
33560 # Check whether --with-system-zlib was given.
33561 if test "${with_system_zlib+set}" = set; then :
33562 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33563 zlibdir=
33564 zlibinc=
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33575 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33576 # Check whether --enable-maintainer-mode was given.
33577 if test "${enable_maintainer_mode+set}" = set; then :
33578 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33579 else
33580 maintainer_mode=no
33584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33585 $as_echo "$maintainer_mode" >&6; }
33587 if test "$maintainer_mode" = "yes"; then
33588 MAINT=''
33589 else
33590 MAINT='#'
33593 if test -z "$CTAGS"; then
33594 CTAGS=ctags
33597 if test -z "$ETAGS"; then
33598 ETAGS=etags
33601 if test -z "$CSCOPE"; then
33602 CSCOPE=cscope
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33608 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33609 # Check whether --enable-link-mutex was given.
33610 if test "${enable_link_mutex+set}" = set; then :
33611 enableval=$enable_link_mutex; do_link_mutex=$enableval
33612 else
33613 do_link_mutex=no
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33617 $as_echo "$do_link_mutex" >&6; }
33619 if test "$do_link_mutex" = "yes"; then
33620 DO_LINK_MUTEX=true
33621 { $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
33622 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33623 else
33624 DO_LINK_MUTEX=false
33629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33630 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33631 # Check whether --enable-link-serialization was given.
33632 if test "${enable_link_serialization+set}" = set; then :
33633 enableval=$enable_link_serialization; do_link_serialization=$enableval
33634 else
33635 do_link_serialization=no
33638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33639 $as_echo "$do_link_serialization" >&6; }
33641 case "$do_link_serialization" in
33642 yes)
33643 DO_LINK_SERIALIZATION=1;;
33644 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33645 DO_LINK_SERIALIZATION=$do_link_serialization;;
33647 DO_LINK_SERIALIZATION=;;
33649 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33650 esac
33653 # --------------
33654 # Language hooks
33655 # --------------
33657 # Make empty files to contain the specs and options for each language.
33658 # Then add #include lines to for a compiler that has specs and/or options.
33660 subdirs=
33661 lang_opt_files=
33662 lang_specs_files=
33663 lang_tree_files=
33664 # These (without "all_") are set in each config-lang.in.
33665 # `language' must be a single word so is spelled singularly.
33666 all_languages=
33667 all_compilers=
33668 all_outputs='Makefile'
33669 # List of language configure and makefile fragments.
33670 all_lang_configurefrags=
33671 all_lang_makefrags=
33672 # Additional files for gengtype
33673 all_gtfiles="$target_gtfiles"
33675 # These are the languages that are set in --enable-languages,
33676 # and are available in the GCC tree.
33677 all_selected_languages=
33679 # Add the language fragments.
33680 # Languages are added via two mechanisms. Some information must be
33681 # recorded in makefile variables, these are defined in config-lang.in.
33682 # We accumulate them and plug them into the main Makefile.
33683 # The other mechanism is a set of hooks for each of the main targets
33684 # like `clean', `install', etc.
33686 language_hooks="Make-hooks"
33688 for lang in ${srcdir}/*/config-lang.in
33690 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33692 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33693 if test "x$lang_alias" = x
33694 then
33695 echo "$lang doesn't set \$language." 1>&2
33696 exit 1
33698 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33699 subdirs="$subdirs $subdir"
33701 # $gcc_subdir is where the gcc integration files are to be found
33702 # for a language, both for internal compiler purposes (compiler
33703 # sources implementing front-end to GCC tree converters), and for
33704 # build infrastructure purposes (Make-lang.in, etc.)
33706 # This will be <subdir> (relative to $srcdir) if a line like
33707 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33708 # is found in <langdir>/config-lang.in, and will remain <langdir>
33709 # otherwise.
33711 # Except for the language alias (fetched above), the regular
33712 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33713 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33714 # only this and the language alias.
33716 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33717 if [ "$gcc_subdir" = "" ]; then
33718 gcc_subdir="$subdir"
33721 case ",$enable_languages," in
33722 *,$lang_alias,*)
33723 all_selected_languages="$all_selected_languages $lang_alias"
33724 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33725 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33728 esac
33730 language=
33731 boot_language=
33732 compilers=
33733 outputs=
33734 gtfiles=
33735 subdir_requires=
33736 . ${srcdir}/$gcc_subdir/config-lang.in
33737 if test "x$language" = x
33738 then
33739 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33740 exit 1
33743 ok=:
33744 case ",$enable_languages," in
33745 *,$lang_alias,*) ;;
33747 for i in $subdir_requires; do
33748 test -f "${srcdir}/$i/config-lang.in" && continue
33749 ok=false
33750 break
33751 done
33753 esac
33754 $ok || continue
33756 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33757 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33758 # Put c/Make-lang.in fragment first to match serialization languages order.
33759 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33760 else
33761 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33763 if test -f $srcdir/$gcc_subdir/lang.opt; then
33764 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33765 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33767 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33768 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33770 all_languages="$all_languages $language"
33771 all_compilers="$all_compilers $compilers"
33772 all_outputs="$all_outputs $outputs"
33773 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33774 case ",$enable_languages," in
33775 *,lto,*)
33777 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33779 enable_lto=yes
33782 *) ;;
33783 esac
33784 done
33786 check_languages=
33787 for language in $all_selected_languages
33789 check_languages="$check_languages check-$language"
33790 done
33792 selftest_languages=
33793 for language in $all_selected_languages
33795 selftest_languages="$selftest_languages selftest-$language"
33796 done
33798 # We link each language in with a set of hooks, reached indirectly via
33799 # lang.${target}. Only do so for selected languages.
33801 rm -f Make-hooks
33802 touch Make-hooks
33803 target_list="all.cross start.encap rest.encap tags \
33804 install-common install-man install-info install-dvi install-pdf \
33805 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33806 mostlyclean clean distclean maintainer-clean install-plugin"
33808 for t in $target_list
33811 for lang in $all_selected_languages
33813 x="$x $lang.$t"
33814 done
33815 echo "lang.$t: $x" >> Make-hooks
33816 done
33818 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33819 echo "SERIAL_LIST =" >> Make-hooks
33820 echo else >> Make-hooks
33821 lang_cnt=0
33822 lang_list=
33823 prev=c
33824 serialization_languages=c
33825 for lang in $all_selected_languages
33827 test $lang = c && continue
33828 if test $lang = lto; then
33829 serialization_languages="$serialization_languages lto1 lto2"
33830 else
33831 serialization_languages="$serialization_languages $lang"
33833 done
33834 for lang in $serialization_languages
33836 test $lang = c && continue
33837 lang_cnt=`expr $lang_cnt + 1`
33838 lang_list=" $prev$lang_list"
33839 prev=${lang}
33840 done
33841 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33842 echo endif >> Make-hooks
33843 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33844 echo "INDEX.c = 0" >> Make-hooks
33845 lang_idx=1
33846 for lang in $serialization_languages
33848 test $lang = c && continue
33849 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33850 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33851 lang_cnt=`expr $lang_cnt - 1`
33852 lang_idx=`expr $lang_idx + 1`
33853 done
33855 # --------
33856 # Option include files
33857 # --------
33859 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33860 option_includes="option-includes.mk"
33863 # --------
33864 # UNSORTED
33865 # --------
33867 # Create .gdbinit.
33869 echo "dir ." > .gdbinit
33870 echo "dir ${srcdir}" >> .gdbinit
33871 if test x$gdb_needs_out_file_path = xyes
33872 then
33873 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
33875 if test "x$subdirs" != x; then
33876 for s in $subdirs
33878 echo "dir ${srcdir}/$s" >> .gdbinit
33879 done
33881 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
33882 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
33884 # Put a breakpoint on __asan_report_error to help with debugging buffer
33885 # overflow.
33886 case "$CFLAGS" in
33887 *-fsanitize=address*)
33888 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
33890 esac
33892 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
33896 # Find a directory in which to install a shared libgcc.
33898 # Check whether --enable-version-specific-runtime-libs was given.
33899 if test "${enable_version_specific_runtime_libs+set}" = set; then :
33900 enableval=$enable_version_specific_runtime_libs;
33904 # Substitute configuration variables
33977 # Echo link setup.
33978 if test x${build} = x${host} ; then
33979 if test x${host} = x${target} ; then
33980 echo "Links are now set up to build a native compiler for ${target}." 1>&2
33981 else
33982 echo "Links are now set up to build a cross-compiler" 1>&2
33983 echo " from ${host} to ${target}." 1>&2
33985 else
33986 if test x${host} = x${target} ; then
33987 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
33988 echo " for ${target}." 1>&2
33989 else
33990 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
33991 echo " from ${host} to ${target}." 1>&2
34000 if test "x${ISLLIBS}" != "x" ; then
34002 $as_echo "#define HAVE_isl 1" >>confdefs.h
34006 # Check for plugin support
34007 # Check whether --enable-plugin was given.
34008 if test "${enable_plugin+set}" = set; then :
34009 enableval=$enable_plugin; enable_plugin=$enableval
34010 else
34011 enable_plugin=yes; default_plugin=yes
34015 pluginlibs=
34016 plugin_check=yes
34018 case "${host}" in
34019 *-*-mingw*)
34020 # Since plugin support under MinGW is not as straightforward as on
34021 # other platforms (e.g., we have to link import library, etc), we
34022 # only enable it if explicitly requested.
34023 if test x"$default_plugin" = x"yes"; then
34024 enable_plugin=no
34025 elif test x"$enable_plugin" = x"yes"; then
34026 # Use make's target variable to derive import library name.
34027 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34028 plugin_check=no
34031 *-*-darwin*)
34032 if test x$build = x$host; then
34033 export_sym_check="nm${exeext} -g"
34034 elif test x$host = x$target; then
34035 export_sym_check="$gcc_cv_nm -g"
34036 else
34037 export_sym_check=
34041 if test x$build = x$host; then
34042 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34043 elif test x$host = x$target; then
34044 export_sym_check="$gcc_cv_objdump -T"
34045 else
34046 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34049 esac
34051 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34054 $as_echo_n "checking for exported symbols... " >&6; }
34055 if test "x$export_sym_check" != x; then
34056 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34057 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34058 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34059 : # No need to use a flag
34060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34061 $as_echo "yes" >&6; }
34062 else
34063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34064 $as_echo "yes" >&6; }
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34066 $as_echo_n "checking for -rdynamic... " >&6; }
34067 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34068 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34069 plugin_rdynamic=yes
34070 pluginlibs="-rdynamic"
34071 else
34072 plugin_rdynamic=no
34073 enable_plugin=no
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34076 $as_echo "$plugin_rdynamic" >&6; }
34078 else
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34080 $as_echo "unable to check" >&6; }
34083 # Check -ldl
34084 saved_LIBS="$LIBS"
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34086 $as_echo_n "checking for library containing dlopen... " >&6; }
34087 if ${ac_cv_search_dlopen+:} false; then :
34088 $as_echo_n "(cached) " >&6
34089 else
34090 ac_func_search_save_LIBS=$LIBS
34091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34092 /* end confdefs.h. */
34094 /* Override any GCC internal prototype to avoid an error.
34095 Use char because int might match the return type of a GCC
34096 builtin and then its argument prototype would still apply. */
34097 #ifdef __cplusplus
34098 extern "C"
34099 #endif
34100 char dlopen ();
34102 main ()
34104 return dlopen ();
34106 return 0;
34108 _ACEOF
34109 for ac_lib in '' dl; do
34110 if test -z "$ac_lib"; then
34111 ac_res="none required"
34112 else
34113 ac_res=-l$ac_lib
34114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34116 if ac_fn_cxx_try_link "$LINENO"; then :
34117 ac_cv_search_dlopen=$ac_res
34119 rm -f core conftest.err conftest.$ac_objext \
34120 conftest$ac_exeext
34121 if ${ac_cv_search_dlopen+:} false; then :
34122 break
34124 done
34125 if ${ac_cv_search_dlopen+:} false; then :
34127 else
34128 ac_cv_search_dlopen=no
34130 rm conftest.$ac_ext
34131 LIBS=$ac_func_search_save_LIBS
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34134 $as_echo "$ac_cv_search_dlopen" >&6; }
34135 ac_res=$ac_cv_search_dlopen
34136 if test "$ac_res" != no; then :
34137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34141 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34142 pluginlibs="$pluginlibs -ldl"
34144 LIBS="$saved_LIBS"
34146 # Check that we can build shared objects with -fPIC -shared
34147 saved_LDFLAGS="$LDFLAGS"
34148 saved_CFLAGS="$CFLAGS"
34149 saved_CXXFLAGS="$CXXFLAGS"
34150 case "${host}" in
34151 *-*-darwin*)
34152 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34153 CFLAGS="$CFLAGS -fPIC"
34154 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34155 CXXFLAGS="$CXXFLAGS -fPIC"
34156 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34159 CFLAGS="$CFLAGS -fPIC"
34160 CXXFLAGS="$CXXFLAGS -fPIC"
34161 LDFLAGS="$LDFLAGS -fPIC -shared"
34163 esac
34164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34165 $as_echo_n "checking for -fPIC -shared... " >&6; }
34166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34167 /* end confdefs.h. */
34168 extern int X;
34170 main ()
34172 return X == 0;
34174 return 0;
34176 _ACEOF
34177 if ac_fn_cxx_try_link "$LINENO"; then :
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34179 $as_echo "yes" >&6; }; have_pic_shared=yes
34180 else
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34182 $as_echo "no" >&6; }; have_pic_shared=no
34184 rm -f core conftest.err conftest.$ac_objext \
34185 conftest$ac_exeext conftest.$ac_ext
34186 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34187 pluginlibs=
34188 enable_plugin=no
34190 LDFLAGS="$saved_LDFLAGS"
34191 CFLAGS="$saved_CFLAGS"
34192 CXXFLAGS="$saved_CXXFLAGS"
34194 # If plugin support had been requested but not available, fail.
34195 if test x"$enable_plugin" = x"no" ; then
34196 if test x"$default_plugin" != x"yes"; then
34197 as_fn_error $? "
34198 Building GCC with plugin support requires a host that supports
34199 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34206 if test x"$enable_plugin" = x"yes"; then
34208 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34213 # Enable --enable-host-shared
34214 # Check whether --enable-host-shared was given.
34215 if test "${enable_host_shared+set}" = set; then :
34216 enableval=$enable_host_shared;
34221 # Enable --enable-host-pie
34222 # Check whether --enable-host-pie was given.
34223 if test "${enable_host_pie+set}" = set; then :
34224 enableval=$enable_host_pie;
34229 # Enable --enable-host-bind-now
34230 # Check whether --enable-host-bind-now was given.
34231 if test "${enable_host_bind_now+set}" = set; then :
34232 enableval=$enable_host_bind_now;
34237 # Check whether --enable-libquadmath-support was given.
34238 if test "${enable_libquadmath_support+set}" = set; then :
34239 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34240 else
34241 ENABLE_LIBQUADMATH_SUPPORT=yes
34244 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34246 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34251 # Specify what hash style to use by default.
34253 # Check whether --with-linker-hash-style was given.
34254 if test "${with_linker_hash_style+set}" = set; then :
34255 withval=$with_linker_hash_style; case x"$withval" in
34256 xsysv)
34257 LINKER_HASH_STYLE=sysv
34259 xgnu)
34260 LINKER_HASH_STYLE=gnu
34262 xboth)
34263 LINKER_HASH_STYLE=both
34266 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34268 esac
34269 else
34270 LINKER_HASH_STYLE=''
34273 if test x"${LINKER_HASH_STYLE}" != x; then
34275 cat >>confdefs.h <<_ACEOF
34276 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34277 _ACEOF
34281 # Specify what should be the default of -fdiagnostics-color option.
34283 # Check whether --with-diagnostics-color was given.
34284 if test "${with_diagnostics_color+set}" = set; then :
34285 withval=$with_diagnostics_color; case x"$withval" in
34286 xnever)
34287 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34289 xauto)
34290 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34292 xauto-if-env)
34293 DIAGNOSTICS_COLOR_DEFAULT=-1
34295 xalways)
34296 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34299 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34301 esac
34302 else
34303 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34307 cat >>confdefs.h <<_ACEOF
34308 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34309 _ACEOF
34312 # Specify what should be the default of -fdiagnostics-urls option.
34314 # Check whether --with-diagnostics-urls was given.
34315 if test "${with_diagnostics_urls+set}" = set; then :
34316 withval=$with_diagnostics_urls; case x"$withval" in
34317 xnever)
34318 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34320 xauto)
34321 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34323 xauto-if-env)
34324 DIAGNOSTICS_URLS_DEFAULT=-1
34326 xalways)
34327 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34330 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34332 esac
34333 else
34334 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34338 cat >>confdefs.h <<_ACEOF
34339 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34340 _ACEOF
34343 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34344 # of jit/jit-playback.cc.
34345 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34346 echo "gcc_driver_version: ${gcc_driver_version}"
34347 cat > gcc-driver-name.h <<EOF
34348 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34351 # Check whether --enable-default-pie was given.
34352 # Check whether --enable-default-pie was given.
34353 if test "${enable_default_pie+set}" = set; then :
34354 enableval=$enable_default_pie; enable_default_pie=$enableval
34355 else
34356 enable_default_pie=no
34359 if test x$enable_default_pie = xyes ; then
34361 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34366 # Check if -fno-PIE works.
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34368 $as_echo_n "checking for -fno-PIE option... " >&6; }
34369 if ${gcc_cv_c_no_fpie+:} false; then :
34370 $as_echo_n "(cached) " >&6
34371 else
34372 saved_CXXFLAGS="$CXXFLAGS"
34373 CXXFLAGS="$CXXFLAGS -fno-PIE"
34374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34375 /* end confdefs.h. */
34376 int main(void) {return 0;}
34377 _ACEOF
34378 if ac_fn_cxx_try_compile "$LINENO"; then :
34379 gcc_cv_c_no_fpie=yes
34380 else
34381 gcc_cv_c_no_fpie=no
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34384 CXXFLAGS="$saved_CXXFLAGS"
34386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34387 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34389 # Check if -no-pie works.
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34391 $as_echo_n "checking for -no-pie option... " >&6; }
34392 if ${gcc_cv_no_pie+:} false; then :
34393 $as_echo_n "(cached) " >&6
34394 else
34395 saved_LDFLAGS="$LDFLAGS"
34396 LDFLAGS="$LDFLAGS -no-pie"
34397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34398 /* end confdefs.h. */
34399 int main(void) {return 0;}
34400 _ACEOF
34401 if ac_fn_cxx_try_link "$LINENO"; then :
34402 gcc_cv_no_pie=yes
34403 else
34404 gcc_cv_no_pie=no
34406 rm -f core conftest.err conftest.$ac_objext \
34407 conftest$ac_exeext conftest.$ac_ext
34408 LDFLAGS="$saved_LDFLAGS"
34410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34411 $as_echo "$gcc_cv_no_pie" >&6; }
34413 if test x$enable_host_shared = xyes; then
34414 PICFLAG=-fPIC
34415 elif test x$enable_host_pie = xyes; then
34416 PICFLAG=-fPIE
34417 elif test x$gcc_cv_c_no_fpie = xyes; then
34418 PICFLAG=-fno-PIE
34419 else
34420 PICFLAG=
34425 if test x$enable_host_pie = xyes; then
34426 LD_PICFLAG=-pie
34427 elif test x$gcc_cv_no_pie = xyes; then
34428 LD_PICFLAG=-no-pie
34429 else
34430 LD_PICFLAG=
34433 if test x$enable_host_bind_now = xyes; then
34434 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34439 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34440 # Check whether --enable-cet was given.
34441 if test "${enable_cet+set}" = set; then :
34442 enableval=$enable_cet;
34443 case "$enableval" in
34444 yes|no|auto) ;;
34445 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34446 esac
34448 else
34449 enable_cet=auto
34453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34454 $as_echo_n "checking for CET support... " >&6; }
34456 case "$host" in
34457 i[34567]86-*-linux* | x86_64-*-linux*)
34458 may_have_cet=yes
34459 cet_save_CFLAGS="$CFLAGS"
34460 CFLAGS="$CFLAGS -fcf-protection"
34461 case "$enable_cet" in
34462 auto)
34463 # Check if target supports multi-byte NOPs
34464 # and if compiler and assembler support CET.
34465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34466 /* end confdefs.h. */
34469 main ()
34472 #if !defined(__SSE2__)
34473 #error target does not support multi-byte NOPs
34474 #else
34475 asm ("setssbsy");
34476 #endif
34479 return 0;
34481 _ACEOF
34482 if ac_fn_cxx_try_compile "$LINENO"; then :
34483 enable_cet=yes
34484 else
34485 enable_cet=no
34487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34489 yes)
34490 # Check if compiler and assembler support CET.
34491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34492 /* end confdefs.h. */
34495 main ()
34497 asm ("setssbsy");
34499 return 0;
34501 _ACEOF
34502 if ac_fn_cxx_try_compile "$LINENO"; then :
34503 support_cet=yes
34504 else
34505 support_cet=no
34507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34508 if test $support_cet = "no"; then
34509 if test x$enable_bootstrap != xno \
34510 && test -z "${with_build_subdir}" \
34511 && (test ! -f ../stage_current \
34512 || test `cat ../stage_current` != "stage1"); then
34513 # Require CET support only for the final GCC build.
34514 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34515 else
34516 # Don't enable CET without CET support for non-bootstrap
34517 # build, in stage1 nor for build support.
34518 enable_cet=no
34522 esac
34523 CFLAGS="$cet_save_CFLAGS"
34526 may_have_cet=no
34527 enable_cet=no
34529 esac
34531 cet_save_CFLAGS="$CFLAGS"
34532 CFLAGS="$CFLAGS -fcf-protection=none"
34533 cet_save_LDFLAGS="$LDFLAGS"
34534 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34535 if test x$may_have_cet = xyes; then
34536 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34538 /* end confdefs.h. */
34541 main ()
34543 return 0;
34545 return 0;
34547 _ACEOF
34548 if ac_fn_cxx_try_link "$LINENO"; then :
34549 may_have_cet=yes
34550 else
34551 may_have_cet=no
34553 rm -f core conftest.err conftest.$ac_objext \
34554 conftest$ac_exeext conftest.$ac_ext
34557 if test x$may_have_cet = xyes; then
34558 if test x$cross_compiling = xno; then
34559 if test "$cross_compiling" = yes; then :
34560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34562 as_fn_error $? "cannot run test program while cross compiling
34563 See \`config.log' for more details" "$LINENO" 5; }
34564 else
34565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34566 /* end confdefs.h. */
34569 main ()
34571 asm ("endbr32");
34572 return 0;
34575 _ACEOF
34576 if ac_fn_cxx_try_run "$LINENO"; then :
34577 have_multi_byte_nop=yes
34578 else
34579 have_multi_byte_nop=no
34581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34582 conftest.$ac_objext conftest.beam conftest.$ac_ext
34585 have_cet=no
34586 if test x$have_multi_byte_nop = xyes; then
34587 if test "$cross_compiling" = yes; then :
34588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34590 as_fn_error $? "cannot run test program while cross compiling
34591 See \`config.log' for more details" "$LINENO" 5; }
34592 else
34593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34594 /* end confdefs.h. */
34596 static void
34597 foo (void)
34601 static void
34602 __attribute__ ((noinline, noclone))
34603 xxx (void (*f) (void))
34605 f ();
34608 static void
34609 __attribute__ ((noinline, noclone))
34610 bar (void)
34612 xxx (foo);
34616 main ()
34618 bar ();
34619 return 0;
34622 _ACEOF
34623 if ac_fn_cxx_try_run "$LINENO"; then :
34624 have_cet=no
34625 else
34626 have_cet=yes
34628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34629 conftest.$ac_objext conftest.beam conftest.$ac_ext
34633 if test x$enable_cet = xno -a x$have_cet = xyes; then
34634 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34637 else
34638 # Enable CET in cross compiler if possible so that it will run on both
34639 # CET and non-CET hosts.
34640 have_cet=yes
34642 if test x$enable_cet = xyes; then
34643 CET_HOST_FLAGS="-fcf-protection"
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34645 $as_echo "yes" >&6; }
34646 else
34647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34648 $as_echo "no" >&6; }
34650 CFLAGS="$cet_save_CFLAGS"
34651 LDFLAGS="$cet_save_LDFLAGS"
34653 case x$enable_languages in
34654 *jit*)
34657 CET_HOST_FLAGS=
34659 esac
34662 # Check linker supports '-z bndplt'
34663 ld_bndplt_support=no
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34665 $as_echo_n "checking linker -z bndplt option... " >&6; }
34666 if test x"$ld_is_gold" = xno; then
34667 if test $in_tree_ld = yes ; then
34668 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
34669 ld_bndplt_support=yes
34671 elif test x$gcc_cv_ld != x; then
34672 # Check if linker supports -z bndplt option
34673 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34674 ld_bndplt_support=yes
34678 if test x"$ld_bndplt_support" = xyes; then
34680 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34684 $as_echo "$ld_bndplt_support" >&6; }
34686 # Check linker supports '--push-state'/'--pop-state'
34687 ld_pushpopstate_support=no
34688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34689 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34690 if test x"$ld_is_gold" = xno; then
34691 if test $in_tree_ld = yes ; then
34692 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
34693 ld_pushpopstate_support=yes
34695 elif test x$gcc_cv_ld != x; then
34696 # Check if linker supports --push-state/--pop-state options
34697 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34698 ld_pushpopstate_support=yes
34702 if test x"$ld_pushpopstate_support" = xyes; then
34704 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34708 $as_echo "$ld_pushpopstate_support" >&6; }
34710 # On s390, float_t has historically been statically defined as double for no
34711 # good reason. To comply with the C standard in the light of this definition,
34712 # gcc has evaluated float expressions in double precision when in
34713 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34714 # a smooth transition towards the new model used by most architectures, where
34715 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34716 # float_t from that, this behavior can be configured with
34717 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34718 # the old model. When omitted, native builds and cross compiles that have target
34719 # libc headers will detect whether libc clamps float_t to double and in that
34720 # case maintain the old model. Otherwise, they will default to the new model.
34721 # Check whether --enable-s390-excess-float-precision was given.
34722 if test "${enable_s390_excess_float_precision+set}" = set; then :
34723 enableval=$enable_s390_excess_float_precision;
34724 else
34725 enable_s390_excess_float_precision=auto
34729 case $target in
34730 s390*-linux*)
34731 if test x"$enable_s390_excess_float_precision" = xauto; then
34732 # Can we autodetect the behavior of the target libc?
34733 if test "$target" = "$host" -a "$host" = "$build"; then
34734 enable_s390_excess_float_precision=autodetect
34735 elif test "x$with_headers" != xno; then
34736 # cross build. are target headers available?
34737 # carefully coerce the build-system compiler to use target headers
34738 saved_CXXFLAGS="$CXXFLAGS"
34739 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34740 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34741 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34743 /* end confdefs.h. */
34745 #include <math.h>
34747 _ACEOF
34748 if ac_fn_cxx_try_compile "$LINENO"; then :
34749 enable_s390_excess_float_precision=autodetect
34751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34752 CXXFLAGS="$saved_CXXFLAGS"
34755 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34756 saved_CXXFLAGS="$CXXFLAGS"
34757 if ! test "$target" = "$host" -a "$host" = "$build"; then
34758 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34759 unset CROSS_TEST_CXXFLAGS
34761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34762 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34763 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34764 $as_echo_n "(cached) " >&6
34765 else
34767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34768 /* end confdefs.h. */
34770 #define __FLT_EVAL_METHOD__ 0
34771 #include <math.h>
34772 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34774 _ACEOF
34775 if ac_fn_cxx_try_compile "$LINENO"; then :
34776 gcc_cv_float_t_clamped_to_double=yes
34777 else
34778 gcc_cv_float_t_clamped_to_double=no
34780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34783 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34784 CXXFLAGS="$saved_CXXFLAGS"
34785 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34786 else
34787 # no way to detect behavior of target libc, default to new model
34788 enable_s390_excess_float_precision=no
34793 if test x"$enable_s390_excess_float_precision" = xyes; then
34795 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34799 esac
34801 # Check if the linker supports '-z now'
34802 ld_now_support=no
34803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34804 $as_echo_n "checking linker -z now option... " >&6; }
34805 if test x"$ld_is_gold" = xyes; then
34806 ld_now_support=yes
34807 elif test $in_tree_ld = yes ; then
34808 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
34809 ld_now_support=yes
34811 elif test x$gcc_cv_ld != x; then
34812 # Check if linker supports -z now
34813 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34814 ld_now_support=yes
34818 cat >>confdefs.h <<_ACEOF
34819 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34820 _ACEOF
34822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34823 $as_echo "$ld_now_support" >&6; }
34825 # Check if the linker supports '-z relro'
34826 ld_relro_support=no
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34828 $as_echo_n "checking linker -z relro option... " >&6; }
34829 if test x"$ld_is_gold" = xyes; then
34830 ld_relro_support=yes
34831 elif test $in_tree_ld = yes ; then
34832 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2; then
34833 ld_relro_support=yes
34835 elif test x$gcc_cv_ld != x; then
34836 # Check if linker supports -z relro
34837 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34838 ld_relro_support=yes
34842 cat >>confdefs.h <<_ACEOF
34843 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34844 _ACEOF
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34847 $as_echo "$ld_relro_support" >&6; }
34849 case $target_os in
34850 linux* | gnu*)
34851 # -fhardened is only supported on GNU/Linux.
34852 fhardened_support=yes
34855 fhardened_support=no
34857 esac
34860 cat >>confdefs.h <<_ACEOF
34861 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34862 _ACEOF
34864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34865 $as_echo "$fhardened_support" >&6; }
34867 # Configure the subdirectories
34868 # AC_CONFIG_SUBDIRS($subdirs)
34870 # Create the Makefile
34871 # and configure language subdirectories
34872 ac_config_files="$ac_config_files $all_outputs"
34875 ac_config_commands="$ac_config_commands default"
34877 cat >confcache <<\_ACEOF
34878 # This file is a shell script that caches the results of configure
34879 # tests run on this system so they can be shared between configure
34880 # scripts and configure runs, see configure's option --config-cache.
34881 # It is not useful on other systems. If it contains results you don't
34882 # want to keep, you may remove or edit it.
34884 # config.status only pays attention to the cache file if you give it
34885 # the --recheck option to rerun configure.
34887 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34888 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34889 # following values.
34891 _ACEOF
34893 # The following way of writing the cache mishandles newlines in values,
34894 # but we know of no workaround that is simple, portable, and efficient.
34895 # So, we kill variables containing newlines.
34896 # Ultrix sh set writes to stderr and can't be redirected directly,
34897 # and sets the high bit in the cache file unless we assign to the vars.
34899 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34900 eval ac_val=\$$ac_var
34901 case $ac_val in #(
34902 *${as_nl}*)
34903 case $ac_var in #(
34904 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34905 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34906 esac
34907 case $ac_var in #(
34908 _ | IFS | as_nl) ;; #(
34909 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34910 *) { eval $ac_var=; unset $ac_var;} ;;
34911 esac ;;
34912 esac
34913 done
34915 (set) 2>&1 |
34916 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34917 *${as_nl}ac_space=\ *)
34918 # `set' does not quote correctly, so add quotes: double-quote
34919 # substitution turns \\\\ into \\, and sed turns \\ into \.
34920 sed -n \
34921 "s/'/'\\\\''/g;
34922 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34923 ;; #(
34925 # `set' quotes correctly as required by POSIX, so do not add quotes.
34926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34928 esac |
34929 sort
34931 sed '
34932 /^ac_cv_env_/b end
34933 t clear
34934 :clear
34935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34936 t end
34937 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34938 :end' >>confcache
34939 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34940 if test -w "$cache_file"; then
34941 if test "x$cache_file" != "x/dev/null"; then
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34943 $as_echo "$as_me: updating cache $cache_file" >&6;}
34944 if test ! -f "$cache_file" || test -h "$cache_file"; then
34945 cat confcache >"$cache_file"
34946 else
34947 case $cache_file in #(
34948 */* | ?:*)
34949 mv -f confcache "$cache_file"$$ &&
34950 mv -f "$cache_file"$$ "$cache_file" ;; #(
34952 mv -f confcache "$cache_file" ;;
34953 esac
34956 else
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34958 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34961 rm -f confcache
34963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34964 # Let make expand exec_prefix.
34965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34967 DEFS=-DHAVE_CONFIG_H
34969 ac_libobjs=
34970 ac_ltlibobjs=
34972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34973 # 1. Remove the extension, and $U if already installed.
34974 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34975 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34977 # will be set to the directory where LIBOBJS objects are built.
34978 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34979 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34980 done
34981 LIBOBJS=$ac_libobjs
34983 LTLIBOBJS=$ac_ltlibobjs
34987 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
34988 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
34989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34992 : "${CONFIG_STATUS=./config.status}"
34993 ac_write_fail=0
34994 ac_clean_files_save=$ac_clean_files
34995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34997 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34998 as_write_fail=0
34999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35000 #! $SHELL
35001 # Generated by $as_me.
35002 # Run this file to recreate the current configuration.
35003 # Compiler output produced by configure, useful for debugging
35004 # configure, is in config.log if it exists.
35006 debug=false
35007 ac_cs_recheck=false
35008 ac_cs_silent=false
35010 SHELL=\${CONFIG_SHELL-$SHELL}
35011 export SHELL
35012 _ASEOF
35013 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35014 ## -------------------- ##
35015 ## M4sh Initialization. ##
35016 ## -------------------- ##
35018 # Be more Bourne compatible
35019 DUALCASE=1; export DUALCASE # for MKS sh
35020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35021 emulate sh
35022 NULLCMD=:
35023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35024 # is contrary to our usage. Disable this feature.
35025 alias -g '${1+"$@"}'='"$@"'
35026 setopt NO_GLOB_SUBST
35027 else
35028 case `(set -o) 2>/dev/null` in #(
35029 *posix*) :
35030 set -o posix ;; #(
35031 *) :
35033 esac
35037 as_nl='
35039 export as_nl
35040 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35041 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35044 # Prefer a ksh shell builtin over an external printf program on Solaris,
35045 # but without wasting forks for bash or zsh.
35046 if test -z "$BASH_VERSION$ZSH_VERSION" \
35047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35048 as_echo='print -r --'
35049 as_echo_n='print -rn --'
35050 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35051 as_echo='printf %s\n'
35052 as_echo_n='printf %s'
35053 else
35054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35056 as_echo_n='/usr/ucb/echo -n'
35057 else
35058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35059 as_echo_n_body='eval
35060 arg=$1;
35061 case $arg in #(
35062 *"$as_nl"*)
35063 expr "X$arg" : "X\\(.*\\)$as_nl";
35064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35065 esac;
35066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35068 export as_echo_n_body
35069 as_echo_n='sh -c $as_echo_n_body as_echo'
35071 export as_echo_body
35072 as_echo='sh -c $as_echo_body as_echo'
35075 # The user is always right.
35076 if test "${PATH_SEPARATOR+set}" != set; then
35077 PATH_SEPARATOR=:
35078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35080 PATH_SEPARATOR=';'
35085 # IFS
35086 # We need space, tab and new line, in precisely that order. Quoting is
35087 # there to prevent editors from complaining about space-tab.
35088 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35089 # splitting by setting IFS to empty value.)
35090 IFS=" "" $as_nl"
35092 # Find who we are. Look in the path if we contain no directory separator.
35093 as_myself=
35094 case $0 in #((
35095 *[\\/]* ) as_myself=$0 ;;
35096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35097 for as_dir in $PATH
35099 IFS=$as_save_IFS
35100 test -z "$as_dir" && as_dir=.
35101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35102 done
35103 IFS=$as_save_IFS
35106 esac
35107 # We did not find ourselves, most probably we were run as `sh COMMAND'
35108 # in which case we are not to be found in the path.
35109 if test "x$as_myself" = x; then
35110 as_myself=$0
35112 if test ! -f "$as_myself"; then
35113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35114 exit 1
35117 # Unset variables that we do not need and which cause bugs (e.g. in
35118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35119 # suppresses any "Segmentation fault" message there. '((' could
35120 # trigger a bug in pdksh 5.2.14.
35121 for as_var in BASH_ENV ENV MAIL MAILPATH
35122 do eval test x\${$as_var+set} = xset \
35123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35124 done
35125 PS1='$ '
35126 PS2='> '
35127 PS4='+ '
35129 # NLS nuisances.
35130 LC_ALL=C
35131 export LC_ALL
35132 LANGUAGE=C
35133 export LANGUAGE
35135 # CDPATH.
35136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35139 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35140 # ----------------------------------------
35141 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35142 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35143 # script with STATUS, using 1 if that was 0.
35144 as_fn_error ()
35146 as_status=$1; test $as_status -eq 0 && as_status=1
35147 if test "$4"; then
35148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35151 $as_echo "$as_me: error: $2" >&2
35152 as_fn_exit $as_status
35153 } # as_fn_error
35156 # as_fn_set_status STATUS
35157 # -----------------------
35158 # Set $? to STATUS, without forking.
35159 as_fn_set_status ()
35161 return $1
35162 } # as_fn_set_status
35164 # as_fn_exit STATUS
35165 # -----------------
35166 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35167 as_fn_exit ()
35169 set +e
35170 as_fn_set_status $1
35171 exit $1
35172 } # as_fn_exit
35174 # as_fn_unset VAR
35175 # ---------------
35176 # Portably unset VAR.
35177 as_fn_unset ()
35179 { eval $1=; unset $1;}
35181 as_unset=as_fn_unset
35182 # as_fn_append VAR VALUE
35183 # ----------------------
35184 # Append the text in VALUE to the end of the definition contained in VAR. Take
35185 # advantage of any shell optimizations that allow amortized linear growth over
35186 # repeated appends, instead of the typical quadratic growth present in naive
35187 # implementations.
35188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35189 eval 'as_fn_append ()
35191 eval $1+=\$2
35193 else
35194 as_fn_append ()
35196 eval $1=\$$1\$2
35198 fi # as_fn_append
35200 # as_fn_arith ARG...
35201 # ------------------
35202 # Perform arithmetic evaluation on the ARGs, and store the result in the
35203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35204 # must be portable across $(()) and expr.
35205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35206 eval 'as_fn_arith ()
35208 as_val=$(( $* ))
35210 else
35211 as_fn_arith ()
35213 as_val=`expr "$@" || test $? -eq 1`
35215 fi # as_fn_arith
35218 if expr a : '\(a\)' >/dev/null 2>&1 &&
35219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35220 as_expr=expr
35221 else
35222 as_expr=false
35225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35226 as_basename=basename
35227 else
35228 as_basename=false
35231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35232 as_dirname=dirname
35233 else
35234 as_dirname=false
35237 as_me=`$as_basename -- "$0" ||
35238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35239 X"$0" : 'X\(//\)$' \| \
35240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35241 $as_echo X/"$0" |
35242 sed '/^.*\/\([^/][^/]*\)\/*$/{
35243 s//\1/
35246 /^X\/\(\/\/\)$/{
35247 s//\1/
35250 /^X\/\(\/\).*/{
35251 s//\1/
35254 s/.*/./; q'`
35256 # Avoid depending upon Character Ranges.
35257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35260 as_cr_digits='0123456789'
35261 as_cr_alnum=$as_cr_Letters$as_cr_digits
35263 ECHO_C= ECHO_N= ECHO_T=
35264 case `echo -n x` in #(((((
35265 -n*)
35266 case `echo 'xy\c'` in
35267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35268 xy) ECHO_C='\c';;
35269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35270 ECHO_T=' ';;
35271 esac;;
35273 ECHO_N='-n';;
35274 esac
35276 rm -f conf$$ conf$$.exe conf$$.file
35277 if test -d conf$$.dir; then
35278 rm -f conf$$.dir/conf$$.file
35279 else
35280 rm -f conf$$.dir
35281 mkdir conf$$.dir 2>/dev/null
35283 if (echo >conf$$.file) 2>/dev/null; then
35284 if ln -s conf$$.file conf$$ 2>/dev/null; then
35285 as_ln_s='ln -s'
35286 # ... but there are two gotchas:
35287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35289 # In both cases, we have to default to `cp -pR'.
35290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35291 as_ln_s='cp -pR'
35292 elif ln conf$$.file conf$$ 2>/dev/null; then
35293 as_ln_s=ln
35294 else
35295 as_ln_s='cp -pR'
35297 else
35298 as_ln_s='cp -pR'
35300 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35301 rmdir conf$$.dir 2>/dev/null
35304 # as_fn_mkdir_p
35305 # -------------
35306 # Create "$as_dir" as a directory, including parents if necessary.
35307 as_fn_mkdir_p ()
35310 case $as_dir in #(
35311 -*) as_dir=./$as_dir;;
35312 esac
35313 test -d "$as_dir" || eval $as_mkdir_p || {
35314 as_dirs=
35315 while :; do
35316 case $as_dir in #(
35317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35318 *) as_qdir=$as_dir;;
35319 esac
35320 as_dirs="'$as_qdir' $as_dirs"
35321 as_dir=`$as_dirname -- "$as_dir" ||
35322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35323 X"$as_dir" : 'X\(//\)[^/]' \| \
35324 X"$as_dir" : 'X\(//\)$' \| \
35325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35326 $as_echo X"$as_dir" |
35327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35328 s//\1/
35331 /^X\(\/\/\)[^/].*/{
35332 s//\1/
35335 /^X\(\/\/\)$/{
35336 s//\1/
35339 /^X\(\/\).*/{
35340 s//\1/
35343 s/.*/./; q'`
35344 test -d "$as_dir" && break
35345 done
35346 test -z "$as_dirs" || eval "mkdir $as_dirs"
35347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35350 } # as_fn_mkdir_p
35351 if mkdir -p . 2>/dev/null; then
35352 as_mkdir_p='mkdir -p "$as_dir"'
35353 else
35354 test -d ./-p && rmdir ./-p
35355 as_mkdir_p=false
35359 # as_fn_executable_p FILE
35360 # -----------------------
35361 # Test if FILE is an executable regular file.
35362 as_fn_executable_p ()
35364 test -f "$1" && test -x "$1"
35365 } # as_fn_executable_p
35366 as_test_x='test -x'
35367 as_executable_p=as_fn_executable_p
35369 # Sed expression to map a string onto a valid CPP name.
35370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35372 # Sed expression to map a string onto a valid variable name.
35373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35376 exec 6>&1
35377 ## ----------------------------------- ##
35378 ## Main body of $CONFIG_STATUS script. ##
35379 ## ----------------------------------- ##
35380 _ASEOF
35381 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35384 # Save the log message, to keep $0 and so on meaningful, and to
35385 # report actual input values of CONFIG_FILES etc. instead of their
35386 # values after options handling.
35387 ac_log="
35388 This file was extended by $as_me, which was
35389 generated by GNU Autoconf 2.69. Invocation command line was
35391 CONFIG_FILES = $CONFIG_FILES
35392 CONFIG_HEADERS = $CONFIG_HEADERS
35393 CONFIG_LINKS = $CONFIG_LINKS
35394 CONFIG_COMMANDS = $CONFIG_COMMANDS
35395 $ $0 $@
35397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35400 _ACEOF
35402 case $ac_config_files in *"
35403 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35404 esac
35406 case $ac_config_headers in *"
35407 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35408 esac
35411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35412 # Files that config.status was made for.
35413 config_files="$ac_config_files"
35414 config_headers="$ac_config_headers"
35415 config_links="$ac_config_links"
35416 config_commands="$ac_config_commands"
35418 _ACEOF
35420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35421 ac_cs_usage="\
35422 \`$as_me' instantiates files and other configuration actions
35423 from templates according to the current configuration. Unless the files
35424 and actions are specified as TAGs, all are instantiated by default.
35426 Usage: $0 [OPTION]... [TAG]...
35428 -h, --help print this help, then exit
35429 -V, --version print version number and configuration settings, then exit
35430 --config print configuration, then exit
35431 -q, --quiet, --silent
35432 do not print progress messages
35433 -d, --debug don't remove temporary files
35434 --recheck update $as_me by reconfiguring in the same conditions
35435 --file=FILE[:TEMPLATE]
35436 instantiate the configuration file FILE
35437 --header=FILE[:TEMPLATE]
35438 instantiate the configuration header FILE
35440 Configuration files:
35441 $config_files
35443 Configuration headers:
35444 $config_headers
35446 Configuration links:
35447 $config_links
35449 Configuration commands:
35450 $config_commands
35452 Report bugs to the package provider."
35454 _ACEOF
35455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35457 ac_cs_version="\\
35458 config.status
35459 configured by $0, generated by GNU Autoconf 2.69,
35460 with options \\"\$ac_cs_config\\"
35462 Copyright (C) 2012 Free Software Foundation, Inc.
35463 This config.status script is free software; the Free Software Foundation
35464 gives unlimited permission to copy, distribute and modify it."
35466 ac_pwd='$ac_pwd'
35467 srcdir='$srcdir'
35468 INSTALL='$INSTALL'
35469 AWK='$AWK'
35470 test -n "\$AWK" || AWK=awk
35471 _ACEOF
35473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35474 # The default lists apply if the user does not specify any file.
35475 ac_need_defaults=:
35476 while test $# != 0
35478 case $1 in
35479 --*=?*)
35480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35482 ac_shift=:
35484 --*=)
35485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35486 ac_optarg=
35487 ac_shift=:
35490 ac_option=$1
35491 ac_optarg=$2
35492 ac_shift=shift
35494 esac
35496 case $ac_option in
35497 # Handling of the options.
35498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35499 ac_cs_recheck=: ;;
35500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35501 $as_echo "$ac_cs_version"; exit ;;
35502 --config | --confi | --conf | --con | --co | --c )
35503 $as_echo "$ac_cs_config"; exit ;;
35504 --debug | --debu | --deb | --de | --d | -d )
35505 debug=: ;;
35506 --file | --fil | --fi | --f )
35507 $ac_shift
35508 case $ac_optarg in
35509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35510 '') as_fn_error $? "missing file argument" ;;
35511 esac
35512 as_fn_append CONFIG_FILES " '$ac_optarg'"
35513 ac_need_defaults=false;;
35514 --header | --heade | --head | --hea )
35515 $ac_shift
35516 case $ac_optarg in
35517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35518 esac
35519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35520 ac_need_defaults=false;;
35521 --he | --h)
35522 # Conflict between --help and --header
35523 as_fn_error $? "ambiguous option: \`$1'
35524 Try \`$0 --help' for more information.";;
35525 --help | --hel | -h )
35526 $as_echo "$ac_cs_usage"; exit ;;
35527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35529 ac_cs_silent=: ;;
35531 # This is an error.
35532 -*) as_fn_error $? "unrecognized option: \`$1'
35533 Try \`$0 --help' for more information." ;;
35535 *) as_fn_append ac_config_targets " $1"
35536 ac_need_defaults=false ;;
35538 esac
35539 shift
35540 done
35542 ac_configure_extra_args=
35544 if $ac_cs_silent; then
35545 exec 6>/dev/null
35546 ac_configure_extra_args="$ac_configure_extra_args --silent"
35549 _ACEOF
35550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35551 if \$ac_cs_recheck; then
35552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35553 shift
35554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35555 CONFIG_SHELL='$SHELL'
35556 export CONFIG_SHELL
35557 exec "\$@"
35560 _ACEOF
35561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35562 exec 5>>config.log
35564 echo
35565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35566 ## Running $as_me. ##
35567 _ASBOX
35568 $as_echo "$ac_log"
35569 } >&5
35571 _ACEOF
35572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35574 # INIT-COMMANDS
35576 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35577 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35578 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35579 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35580 # from automake.
35581 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35582 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35583 LINGUAS="${LINGUAS-%UNSET%}"
35585 subdirs='$subdirs'
35587 _ACEOF
35589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35591 # Handling of arguments.
35592 for ac_config_target in $ac_config_targets
35594 case $ac_config_target in
35595 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35596 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35597 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35598 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35599 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35600 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35601 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35602 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35603 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35604 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35605 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35607 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35608 esac
35609 done
35612 # If the user did not use the arguments to specify the items to instantiate,
35613 # then the envvar interface is used. Set only those that are not.
35614 # We use the long form for the default assignment because of an extremely
35615 # bizarre bug on SunOS 4.1.3.
35616 if $ac_need_defaults; then
35617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35618 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35619 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35620 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35623 # Have a temporary directory for convenience. Make it in the build tree
35624 # simply because there is no reason against having it here, and in addition,
35625 # creating and moving files from /tmp can sometimes cause problems.
35626 # Hook for its removal unless debugging.
35627 # Note that there is a small window in which the directory will not be cleaned:
35628 # after its creation but before its name has been assigned to `$tmp'.
35629 $debug ||
35631 tmp= ac_tmp=
35632 trap 'exit_status=$?
35633 : "${ac_tmp:=$tmp}"
35634 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35636 trap 'as_fn_exit 1' 1 2 13 15
35638 # Create a (secure) tmp directory for tmp files.
35641 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35642 test -d "$tmp"
35643 } ||
35645 tmp=./conf$$-$RANDOM
35646 (umask 077 && mkdir "$tmp")
35647 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35648 ac_tmp=$tmp
35650 # Set up the scripts for CONFIG_FILES section.
35651 # No need to generate them if there are no CONFIG_FILES.
35652 # This happens for instance with `./config.status config.h'.
35653 if test -n "$CONFIG_FILES"; then
35655 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35656 ac_cs_awk_getline=:
35657 ac_cs_awk_pipe_init=
35658 ac_cs_awk_read_file='
35659 while ((getline aline < (F[key])) > 0)
35660 print(aline)
35661 close(F[key])'
35662 ac_cs_awk_pipe_fini=
35663 else
35664 ac_cs_awk_getline=false
35665 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35666 ac_cs_awk_read_file='
35667 print "|#_!!_#|"
35668 print "cat " F[key] " &&"
35669 '$ac_cs_awk_pipe_init
35670 # The final `:' finishes the AND list.
35671 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35673 ac_cr=`echo X | tr X '\015'`
35674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35675 # But we know of no other shell where ac_cr would be empty at this
35676 # point, so we can use a bashism as a fallback.
35677 if test "x$ac_cr" = x; then
35678 eval ac_cr=\$\'\\r\'
35680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35682 ac_cs_awk_cr='\\r'
35683 else
35684 ac_cs_awk_cr=$ac_cr
35687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35688 _ACEOF
35690 # Create commands to substitute file output variables.
35692 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35693 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35694 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35695 echo "_ACAWK" &&
35696 echo "_ACEOF"
35697 } >conf$$files.sh &&
35698 . ./conf$$files.sh ||
35699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35700 rm -f conf$$files.sh
35703 echo "cat >conf$$subs.awk <<_ACEOF" &&
35704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35705 echo "_ACEOF"
35706 } >conf$$subs.sh ||
35707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35709 ac_delim='%!_!# '
35710 for ac_last_try in false false false false false :; do
35711 . ./conf$$subs.sh ||
35712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35715 if test $ac_delim_n = $ac_delim_num; then
35716 break
35717 elif $ac_last_try; then
35718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35719 else
35720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35722 done
35723 rm -f conf$$subs.sh
35725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35727 _ACEOF
35728 sed -n '
35730 s/^/S["/; s/!.*/"]=/
35733 s/^[^!]*!//
35734 :repl
35735 t repl
35736 s/'"$ac_delim"'$//
35737 t delim
35740 s/\(.\{148\}\)..*/\1/
35741 t more1
35742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35745 b repl
35746 :more1
35747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35750 s/.\{148\}//
35751 t nl
35752 :delim
35754 s/\(.\{148\}\)..*/\1/
35755 t more2
35756 s/["\\]/\\&/g; s/^/"/; s/$/"/
35759 :more2
35760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35763 s/.\{148\}//
35764 t delim
35765 ' <conf$$subs.awk | sed '
35766 /^[^""]/{
35768 s/\n//
35770 ' >>$CONFIG_STATUS || ac_write_fail=1
35771 rm -f conf$$subs.awk
35772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35773 _ACAWK
35774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35775 for (key in S) S_is_set[key] = 1
35776 FS = "\a"
35777 \$ac_cs_awk_pipe_init
35780 line = $ 0
35781 nfields = split(line, field, "@")
35782 substed = 0
35783 len = length(field[1])
35784 for (i = 2; i < nfields; i++) {
35785 key = field[i]
35786 keylen = length(key)
35787 if (S_is_set[key]) {
35788 value = S[key]
35789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35790 len += length(value) + length(field[++i])
35791 substed = 1
35792 } else
35793 len += 1 + keylen
35795 if (nfields == 3 && !substed) {
35796 key = field[2]
35797 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35798 \$ac_cs_awk_read_file
35799 next
35802 print line
35804 \$ac_cs_awk_pipe_fini
35805 _ACAWK
35806 _ACEOF
35807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35810 else
35812 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35813 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35814 _ACEOF
35816 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35817 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35818 # trailing colons and then remove the whole line if VPATH becomes empty
35819 # (actually we leave an empty line to preserve line numbers).
35820 if test "x$srcdir" = x.; then
35821 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35823 s///
35824 s/^/:/
35825 s/[ ]*$/:/
35826 s/:\$(srcdir):/:/g
35827 s/:\${srcdir}:/:/g
35828 s/:@srcdir@:/:/g
35829 s/^:*//
35830 s/:*$//
35832 s/\(=[ ]*\).*/\1/
35834 s/\n//
35835 s/^[^=]*=[ ]*$//
35839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35840 fi # test -n "$CONFIG_FILES"
35842 # Set up the scripts for CONFIG_HEADERS section.
35843 # No need to generate them if there are no CONFIG_HEADERS.
35844 # This happens for instance with `./config.status Makefile'.
35845 if test -n "$CONFIG_HEADERS"; then
35846 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35847 BEGIN {
35848 _ACEOF
35850 # Transform confdefs.h into an awk script `defines.awk', embedded as
35851 # here-document in config.status, that substitutes the proper values into
35852 # config.h.in to produce config.h.
35854 # Create a delimiter string that does not exist in confdefs.h, to ease
35855 # handling of long lines.
35856 ac_delim='%!_!# '
35857 for ac_last_try in false false :; do
35858 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35859 if test -z "$ac_tt"; then
35860 break
35861 elif $ac_last_try; then
35862 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35863 else
35864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35866 done
35868 # For the awk script, D is an array of macro values keyed by name,
35869 # likewise P contains macro parameters if any. Preserve backslash
35870 # newline sequences.
35872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35873 sed -n '
35874 s/.\{148\}/&'"$ac_delim"'/g
35875 t rset
35876 :rset
35877 s/^[ ]*#[ ]*define[ ][ ]*/ /
35878 t def
35880 :def
35881 s/\\$//
35882 t bsnl
35883 s/["\\]/\\&/g
35884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35885 D["\1"]=" \3"/p
35886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35888 :bsnl
35889 s/["\\]/\\&/g
35890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35891 D["\1"]=" \3\\\\\\n"\\/p
35892 t cont
35893 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35894 t cont
35896 :cont
35898 s/.\{148\}/&'"$ac_delim"'/g
35899 t clear
35900 :clear
35901 s/\\$//
35902 t bsnlc
35903 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35905 :bsnlc
35906 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35907 b cont
35908 ' <confdefs.h | sed '
35909 s/'"$ac_delim"'/"\\\
35910 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35913 for (key in D) D_is_set[key] = 1
35914 FS = "\a"
35916 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35917 line = \$ 0
35918 split(line, arg, " ")
35919 if (arg[1] == "#") {
35920 defundef = arg[2]
35921 mac1 = arg[3]
35922 } else {
35923 defundef = substr(arg[1], 2)
35924 mac1 = arg[2]
35926 split(mac1, mac2, "(") #)
35927 macro = mac2[1]
35928 prefix = substr(line, 1, index(line, defundef) - 1)
35929 if (D_is_set[macro]) {
35930 # Preserve the white space surrounding the "#".
35931 print prefix "define", macro P[macro] D[macro]
35932 next
35933 } else {
35934 # Replace #undef with comments. This is necessary, for example,
35935 # in the case of _POSIX_SOURCE, which is predefined and required
35936 # on some systems where configure will not decide to define it.
35937 if (defundef == "undef") {
35938 print "/*", prefix defundef, macro, "*/"
35939 next
35943 { print }
35944 _ACAWK
35945 _ACEOF
35946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35947 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35948 fi # test -n "$CONFIG_HEADERS"
35951 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
35952 shift
35953 for ac_tag
35955 case $ac_tag in
35956 :[FHLC]) ac_mode=$ac_tag; continue;;
35957 esac
35958 case $ac_mode$ac_tag in
35959 :[FHL]*:*);;
35960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35961 :[FH]-) ac_tag=-:-;;
35962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35963 esac
35964 ac_save_IFS=$IFS
35965 IFS=:
35966 set x $ac_tag
35967 IFS=$ac_save_IFS
35968 shift
35969 ac_file=$1
35970 shift
35972 case $ac_mode in
35973 :L) ac_source=$1;;
35974 :[FH])
35975 ac_file_inputs=
35976 for ac_f
35978 case $ac_f in
35979 -) ac_f="$ac_tmp/stdin";;
35980 *) # Look for the file first in the build tree, then in the source tree
35981 # (if the path is not absolute). The absolute path cannot be DOS-style,
35982 # because $ac_f cannot contain `:'.
35983 test -f "$ac_f" ||
35984 case $ac_f in
35985 [\\/$]*) false;;
35986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35987 esac ||
35988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35989 esac
35990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35991 as_fn_append ac_file_inputs " '$ac_f'"
35992 done
35994 # Let's still pretend it is `configure' which instantiates (i.e., don't
35995 # use $as_me), people would be surprised to read:
35996 # /* config.h. Generated by config.status. */
35997 configure_input='Generated from '`
35998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35999 `' by configure.'
36000 if test x"$ac_file" != x-; then
36001 configure_input="$ac_file. $configure_input"
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36003 $as_echo "$as_me: creating $ac_file" >&6;}
36005 # Neutralize special characters interpreted by sed in replacement strings.
36006 case $configure_input in #(
36007 *\&* | *\|* | *\\* )
36008 ac_sed_conf_input=`$as_echo "$configure_input" |
36009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36010 *) ac_sed_conf_input=$configure_input;;
36011 esac
36013 case $ac_tag in
36014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36016 esac
36018 esac
36020 ac_dir=`$as_dirname -- "$ac_file" ||
36021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36022 X"$ac_file" : 'X\(//\)[^/]' \| \
36023 X"$ac_file" : 'X\(//\)$' \| \
36024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36025 $as_echo X"$ac_file" |
36026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36027 s//\1/
36030 /^X\(\/\/\)[^/].*/{
36031 s//\1/
36034 /^X\(\/\/\)$/{
36035 s//\1/
36038 /^X\(\/\).*/{
36039 s//\1/
36042 s/.*/./; q'`
36043 as_dir="$ac_dir"; as_fn_mkdir_p
36044 ac_builddir=.
36046 case "$ac_dir" in
36047 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36050 # A ".." for each directory in $ac_dir_suffix.
36051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36052 case $ac_top_builddir_sub in
36053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36055 esac ;;
36056 esac
36057 ac_abs_top_builddir=$ac_pwd
36058 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36059 # for backward compatibility:
36060 ac_top_builddir=$ac_top_build_prefix
36062 case $srcdir in
36063 .) # We are building in place.
36064 ac_srcdir=.
36065 ac_top_srcdir=$ac_top_builddir_sub
36066 ac_abs_top_srcdir=$ac_pwd ;;
36067 [\\/]* | ?:[\\/]* ) # Absolute name.
36068 ac_srcdir=$srcdir$ac_dir_suffix;
36069 ac_top_srcdir=$srcdir
36070 ac_abs_top_srcdir=$srcdir ;;
36071 *) # Relative name.
36072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36073 ac_top_srcdir=$ac_top_build_prefix$srcdir
36074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36075 esac
36076 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36079 case $ac_mode in
36082 # CONFIG_FILE
36085 case $INSTALL in
36086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36088 esac
36089 _ACEOF
36091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36092 # If the template does not know about datarootdir, expand it.
36093 # FIXME: This hack should be removed a few years after 2.60.
36094 ac_datarootdir_hack=; ac_datarootdir_seen=
36095 ac_sed_dataroot='
36096 /datarootdir/ {
36100 /@datadir@/p
36101 /@docdir@/p
36102 /@infodir@/p
36103 /@localedir@/p
36104 /@mandir@/p'
36105 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36106 *datarootdir*) ac_datarootdir_seen=yes;;
36107 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36109 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36110 _ACEOF
36111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36112 ac_datarootdir_hack='
36113 s&@datadir@&$datadir&g
36114 s&@docdir@&$docdir&g
36115 s&@infodir@&$infodir&g
36116 s&@localedir@&$localedir&g
36117 s&@mandir@&$mandir&g
36118 s&\\\${datarootdir}&$datarootdir&g' ;;
36119 esac
36120 _ACEOF
36122 # Neutralize VPATH when `$srcdir' = `.'.
36123 # Shell code in configure.ac might set extrasub.
36124 # FIXME: do we really want to maintain this feature?
36125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36126 ac_sed_extra="$ac_vpsub
36127 $extrasub
36128 _ACEOF
36129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36132 s|@configure_input@|$ac_sed_conf_input|;t t
36133 s&@top_builddir@&$ac_top_builddir_sub&;t t
36134 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36135 s&@srcdir@&$ac_srcdir&;t t
36136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36137 s&@top_srcdir@&$ac_top_srcdir&;t t
36138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36139 s&@builddir@&$ac_builddir&;t t
36140 s&@abs_builddir@&$ac_abs_builddir&;t t
36141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36142 s&@INSTALL@&$ac_INSTALL&;t t
36143 $ac_datarootdir_hack
36145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36146 if $ac_cs_awk_getline; then
36147 $AWK -f "$ac_tmp/subs.awk"
36148 else
36149 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36150 fi \
36151 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36154 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36156 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36158 which seems to be undefined. Please make sure it is defined" >&5
36159 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36160 which seems to be undefined. Please make sure it is defined" >&2;}
36162 rm -f "$ac_tmp/stdin"
36163 case $ac_file in
36164 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36165 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36166 esac \
36167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36171 # CONFIG_HEADER
36173 if test x"$ac_file" != x-; then
36175 $as_echo "/* $configure_input */" \
36176 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36177 } >"$ac_tmp/config.h" \
36178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36179 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36180 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36181 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36182 else
36183 rm -f "$ac_file"
36184 mv "$ac_tmp/config.h" "$ac_file" \
36185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36187 else
36188 $as_echo "/* $configure_input */" \
36189 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36190 || as_fn_error $? "could not create -" "$LINENO" 5
36195 # CONFIG_LINK
36198 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36200 else
36201 # Prefer the file from the source tree if names are identical.
36202 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36203 ac_source=$srcdir/$ac_source
36206 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36207 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36209 if test ! -r "$ac_source"; then
36210 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36212 rm -f "$ac_file"
36214 # Try a relative symlink, then a hard link, then a copy.
36215 case $ac_source in
36216 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36217 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36218 esac
36219 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36220 ln "$ac_source" "$ac_file" 2>/dev/null ||
36221 cp -p "$ac_source" "$ac_file" ||
36222 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36225 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36226 $as_echo "$as_me: executing $ac_file commands" >&6;}
36228 esac
36231 case $ac_file$ac_mode in
36232 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36233 "gccdepdir":C)
36234 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36235 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36237 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36238 done ;;
36239 "default-1":C)
36240 for ac_file in $CONFIG_FILES; do
36241 # Support "outfile[:infile[:infile...]]"
36242 case "$ac_file" in
36243 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36244 esac
36245 # PO directories have a Makefile.in generated from Makefile.in.in.
36246 case "$ac_file" in */Makefile.in)
36247 # Adjust a relative srcdir.
36248 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36249 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36250 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36251 # In autoconf-2.13 it is called $ac_given_srcdir.
36252 # In autoconf-2.50 it is called $srcdir.
36253 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36254 case "$ac_given_srcdir" in
36255 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36256 /*) top_srcdir="$ac_given_srcdir" ;;
36257 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36258 esac
36259 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36260 rm -f "$ac_dir/POTFILES"
36261 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36262 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36263 POMAKEFILEDEPS="POTFILES.in"
36264 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36265 # on $ac_dir but don't depend on user-specified configuration
36266 # parameters.
36267 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36268 # The LINGUAS file contains the set of available languages.
36269 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36270 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36272 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36273 # Hide the ALL_LINGUAS assigment from automake.
36274 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36275 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36276 else
36277 # The set of available languages was given in configure.ac.
36278 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36280 case "$ac_given_srcdir" in
36281 .) srcdirpre= ;;
36282 *) srcdirpre='$(srcdir)/' ;;
36283 esac
36284 POFILES=
36285 GMOFILES=
36286 UPDATEPOFILES=
36287 DUMMYPOFILES=
36288 for lang in $ALL_LINGUAS; do
36289 POFILES="$POFILES $srcdirpre$lang.po"
36290 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36291 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36292 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36293 done
36294 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36295 # environment variable.
36296 INST_LINGUAS=
36297 if test -n "$ALL_LINGUAS"; then
36298 for presentlang in $ALL_LINGUAS; do
36299 useit=no
36300 if test "%UNSET%" != "$LINGUAS"; then
36301 desiredlanguages="$LINGUAS"
36302 else
36303 desiredlanguages="$ALL_LINGUAS"
36305 for desiredlang in $desiredlanguages; do
36306 # Use the presentlang catalog if desiredlang is
36307 # a. equal to presentlang, or
36308 # b. a variant of presentlang (because in this case,
36309 # presentlang can be used as a fallback for messages
36310 # which are not translated in the desiredlang catalog).
36311 case "$desiredlang" in
36312 "$presentlang"*) useit=yes;;
36313 esac
36314 done
36315 if test $useit = yes; then
36316 INST_LINGUAS="$INST_LINGUAS $presentlang"
36318 done
36320 CATALOGS=
36321 if test -n "$INST_LINGUAS"; then
36322 for lang in $INST_LINGUAS; do
36323 CATALOGS="$CATALOGS $lang.gmo"
36324 done
36326 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36327 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"
36328 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36329 if test -f "$f"; then
36330 case "$f" in
36331 *.orig | *.bak | *~) ;;
36332 *) cat "$f" >> "$ac_dir/Makefile" ;;
36333 esac
36335 done
36338 esac
36339 done ;;
36340 "as":F) chmod +x as ;;
36341 "collect-ld":F) chmod +x collect-ld ;;
36342 "nm":F) chmod +x nm ;;
36343 "dsymutil":F) chmod +x dsymutil ;;
36344 "default":C)
36345 case ${CONFIG_HEADERS} in
36346 *auto-host.h:config.in*)
36347 echo > cstamp-h ;;
36348 esac
36349 # Make sure all the subdirs exist.
36350 for d in $subdirs doc build common c-family
36352 test -d $d || mkdir $d
36353 done
36356 esac
36357 done # for ac_tag
36360 as_fn_exit 0
36361 _ACEOF
36362 ac_clean_files=$ac_clean_files_save
36364 test $ac_write_fail = 0 ||
36365 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36368 # configure is writing to config.log, and then calls config.status.
36369 # config.status does its own redirection, appending to config.log.
36370 # Unfortunately, on DOS this fails, as config.log is still kept open
36371 # by configure, so config.status won't be able to write to it; its
36372 # output is simply discarded. So we exec the FD to /dev/null,
36373 # effectively closing config.log, so it can be properly (re)opened and
36374 # appended to by config.status. When coming back to configure, we
36375 # need to make the FD available again.
36376 if test "$no_create" != yes; then
36377 ac_cs_success=:
36378 ac_config_status_args=
36379 test "$silent" = yes &&
36380 ac_config_status_args="$ac_config_status_args --quiet"
36381 exec 5>/dev/null
36382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36383 exec 5>>config.log
36384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36385 # would make configure fail if this is the last instruction.
36386 $ac_cs_success || as_fn_exit 1
36388 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36390 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}