doc: Describe limitations re Ada, D, and Go on FreeBSD
[official-gcc.git] / gcc / configure
blob23da7d55d62e328f79331d0272ba2ac162d425dd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
595 ac_unique_file="tree.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 CET_HOST_FLAGS
636 LD_PICFLAG
637 PICFLAG
638 enable_default_pie
639 enable_host_bind_now
640 enable_host_pie
641 enable_host_shared
642 enable_plugin
643 pluginlibs
644 ISLINC
645 ISLLIBS
646 GMPINC
647 GMPLIBS
648 target_cpu_default
649 rust_target_objs
650 d_target_objs
651 fortran_target_objs
652 cxx_target_objs
653 c_target_objs
654 use_gcc_stdint
655 xm_defines
656 xm_include_list
657 xm_file_list
658 tm_rust_include_list
659 tm_rust_file_list
660 tm_d_include_list
661 tm_d_file_list
662 tm_p_include_list
663 tm_p_file_list
664 tm_defines
665 tm_include_list
666 tm_file_list
667 common_out_object_file
668 common_out_file
669 out_object_file
670 out_file
671 objc_boehm_gc
672 md_file
673 local_prefix
674 lang_tree_files
675 lang_specs_files
676 lang_opt_files
677 install
678 out_host_hook_obj
679 host_xm_defines
680 host_xm_include_list
681 host_xm_file_list
682 host_exeext
683 gcc_gxx_libcxx_include_dir_add_sysroot
684 gcc_gxx_libcxx_include_dir
685 gcc_gxx_include_dir_add_sysroot
686 gcc_gxx_include_dir
687 gcc_config_arguments
688 float_h_file
689 extra_programs
690 extra_objs
691 extra_headers_list
692 user_headers_inc_next_post
693 user_headers_inc_next_pre
694 extra_gcc_objs
695 TM_MULTILIB_EXCEPTIONS_CONFIG
696 TM_MULTILIB_CONFIG
697 TM_ENDIAN_CONFIG
698 tmake_file
699 xmake_file
700 cpp_install_dir
701 selftest_languages
702 check_languages
703 build_file_translate
704 build_xm_defines
705 build_xm_include_list
706 build_xm_file_list
707 build_install_headers_dir
708 build_exeext
709 all_selected_languages
710 all_languages
711 all_lang_makefrags
712 all_lang_configurefrags
713 all_gtfiles
714 all_compilers
715 srcdir
716 subdirs
717 dollar
718 gcc_tooldir
719 enable_lto
720 DO_LINK_SERIALIZATION
721 DO_LINK_MUTEX
722 CSCOPE
723 ETAGS
724 CTAGS
725 MAINT
726 zlibinc
727 zlibdir
728 HOST_LIBS
729 enable_default_ssp
730 thin_archive_support
731 ld_soname_option
732 ld_version_script_option
733 libgcc_visibility
734 ORIGINAL_DSYMUTIL_FOR_TARGET
735 gcc_cv_dsymutil
736 gcc_cv_otool
737 gcc_cv_readelf
738 gcc_cv_objdump
739 ORIGINAL_NM_FOR_TARGET
740 gcc_cv_nm
741 ORIGINAL_LD_GOLD_FOR_TARGET
742 ORIGINAL_LD_BFD_FOR_TARGET
743 ORIGINAL_LD_FOR_TARGET
744 ORIGINAL_PLUGIN_LD_FOR_TARGET
745 gcc_cv_ld
746 ORIGINAL_AS_FOR_TARGET
747 gcc_cv_as
748 ENABLE_DARWIN_AT_RPATH_FALSE
749 ENABLE_DARWIN_AT_RPATH_TRUE
750 enable_fast_install
751 objdir
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 STRIP
758 OBJDUMP
759 ac_ct_DUMPBIN
760 DUMPBIN
762 FGREP
764 LIBTOOL
765 collect2
766 STMP_FIXINC
767 BUILD_LDFLAGS
768 BUILD_CXXFLAGS
769 BUILD_CFLAGS
770 CXX_FOR_BUILD
771 CC_FOR_BUILD
772 inhibit_libc
773 BUILD_SYSTEM_HEADER_DIR
774 SYSTEM_HEADER_DIR
776 CROSS
777 CATOBJEXT
778 GENCAT
779 INSTOBJEXT
780 DATADIRNAME
781 CATALOGS
782 INCINTL
783 LIBINTL_DEP
784 POSUB
785 LTLIBINTL
786 LIBINTL
787 INTLLIBS
788 INTL_MACOSX_LIBS
789 MSGMERGE
790 XGETTEXT
791 GMSGFMT
792 MSGFMT
793 USE_NLS
794 MKINSTALLDIRS
795 INSTALL_SCRIPT
796 get_gcc_base_ver
797 HAVE_AUTO_BUILD
798 extra_opt_files
799 extra_modes_file
800 NATIVE_SYSTEM_HEADER_DIR
801 objext
802 manext
803 LIBICONV_DEP
804 LTLIBICONV
805 LIBICONV
806 ZSTD_LDFLAGS
807 ZSTD_CPPFLAGS
808 ZSTD_LIB
809 ZSTD_INCLUDE
810 DL_LIB
811 LDEXP_LIB
812 NETLIBS
813 EXTRA_GCC_LIBS
814 GNAT_LIBEXC
815 COLLECT2_LIBS
816 CXXDEPMODE
817 DEPDIR
818 am__leading_dot
819 doc_build_sys
822 HAVE_PYTHON
823 PYTHON
824 BISON
825 FLEX
826 GENERATED_MANPAGES
827 MAKEINFO_TOC_INLINE_FLAG
828 BUILD_INFO
829 MAKEINFO
830 have_mktemp_command
831 make_compare_target
832 INSTALL_DATA
833 INSTALL_PROGRAM
834 INSTALL
835 ranlib_flags
836 RANLIB
838 LN_S
840 SET_MAKE
841 omp_device_property_deps
842 omp_device_properties
843 accel_dir_suffix
844 real_target_noncanonical
845 enable_as_accelerator
846 gnat_install_lib
847 REPORT_BUGS_TEXI
848 REPORT_BUGS_TO
849 PKGVERSION
850 CONFIGURE_SPECS
851 enable_gcov
852 enable_shared
853 enable_fixed_point
854 enable_decimal_float
855 DEFAULT_INSNEMIT_PARTITIONS
856 DEFAULT_MATCHPD_PARTITIONS
857 with_float
858 with_cpu
859 enable_multiarch
860 enable_multilib
861 coverage_flags
862 valgrind_command
863 valgrind_path_defines
864 valgrind_path
865 TREECHECKING
866 nocommon_flag
867 noexception_flags
868 warn_cxxflags
869 warn_cflags
870 c_strict_warn
871 strict_warn
872 c_loose_warn
873 loose_warn
874 aliasing_flags
876 EGREP
877 GREP
878 CXXCPP
879 PICFLAG_FOR_TARGET
880 GDCFLAGS
882 GNATMAKE
883 GNATBIND
884 ac_ct_CXX
885 CXXFLAGS
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
894 GENINSRC
895 CROSS_SYSTEM_HEADER_DIR
896 TARGET_SYSTEM_ROOT_DEFINE
897 TARGET_SYSTEM_ROOT
898 SYSROOT_CFLAGS_FOR_TARGET
899 target_subdir
900 host_subdir
901 build_subdir
902 build_libsubdir
903 target_noncanonical
904 host_noncanonical
905 target_os
906 target_vendor
907 target_cpu
908 target
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 target_alias
918 host_alias
919 build_alias
920 LIBS
921 ECHO_T
922 ECHO_N
923 ECHO_C
924 DEFS
925 mandir
926 localedir
927 libdir
928 psdir
929 pdfdir
930 dvidir
931 htmldir
932 infodir
933 docdir
934 oldincludedir
935 includedir
936 localstatedir
937 sharedstatedir
938 sysconfdir
939 datadir
940 datarootdir
941 libexecdir
942 sbindir
943 bindir
944 program_transform_name
945 prefix
946 exec_prefix
947 PACKAGE_URL
948 PACKAGE_BUGREPORT
949 PACKAGE_STRING
950 PACKAGE_VERSION
951 PACKAGE_TARNAME
952 PACKAGE_NAME
953 PATH_SEPARATOR
954 SHELL'
955 ac_subst_files='option_includes
956 language_hooks'
957 ac_user_opts='
958 enable_option_checking
959 with_build_libsubdir
960 with_local_prefix
961 with_native_system_header_dir
962 with_build_sysroot
963 with_sysroot
964 with_gxx_include_dir
965 with_gxx_libcxx_include_dir
966 with_cpp_install_dir
967 enable_generated_files_in_srcdir
968 with_gnu_ld
969 with_ld
970 with_demangler_in_ld
971 with_dsymutil
972 with_gnu_as
973 with_as
974 enable_largefile
975 enable_build_format_warnings
976 enable_werror_always
977 enable_checking
978 enable_coverage
979 enable_gather_detailed_mem_stats
980 enable_valgrind_annotations
981 enable_multilib
982 enable_multiarch
983 with_stack_clash_protection_guard_size
984 with_matchpd_partitions
985 with_insnemit_partitions
986 enable___cxa_atexit
987 enable_decimal_float
988 enable_fixed_point
989 enable_threads
990 enable_tls
991 enable_vtable_verify
992 enable_analyzer
993 enable_objc_gc
994 with_dwarf2
995 enable_shared
996 enable_gcov
997 with_specs
998 with_pkgversion
999 with_bugurl
1000 with_documentation_root_url
1001 with_changes_root_url
1002 enable_languages
1003 with_multilib_list
1004 with_multilib_generator
1005 with_zstd
1006 with_zstd_include
1007 with_zstd_lib
1008 enable_rpath
1009 with_libiconv_prefix
1010 with_libiconv_type
1011 enable_sjlj_exceptions
1012 enable_win32_utf8_manifest
1013 with_gcc_major_version_only
1014 enable_nls
1015 with_libintl_prefix
1016 with_libintl_type
1017 enable_secureplt
1018 enable_mingw_wildcard
1019 enable_large_address_aware
1020 enable_leading_mingw64_underscores
1021 enable_cld
1022 enable_frame_pointer
1023 enable_win32_registry
1024 enable_static
1025 with_pic
1026 enable_fast_install
1027 enable_libtool_lock
1028 enable_darwin_at_rpath
1029 with_darwin_extra_rpath
1030 enable_ld
1031 enable_gold
1032 with_plugin_ld
1033 enable_gnu_indirect_function
1034 enable_initfini_array
1035 enable_comdat
1036 enable_newlib_nano_formatted_io
1037 enable_standard_branch_protection
1038 enable_fix_cortex_a53_835769
1039 enable_fix_cortex_a53_843419
1040 with_glibc_version
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 enable_libssp
1044 enable_default_ssp
1045 with_long_double_128
1046 with_long_double_format
1047 with_gc
1048 with_system_zlib
1049 enable_maintainer_mode
1050 enable_link_mutex
1051 enable_link_serialization
1052 enable_version_specific_runtime_libs
1053 enable_plugin
1054 enable_host_shared
1055 enable_host_pie
1056 enable_host_bind_now
1057 enable_libquadmath_support
1058 with_linker_hash_style
1059 with_diagnostics_color
1060 with_diagnostics_urls
1061 enable_default_pie
1062 enable_cet
1063 enable_s390_excess_float_precision
1065 ac_precious_vars='build_alias
1066 host_alias
1067 target_alias
1069 CFLAGS
1070 LDFLAGS
1071 LIBS
1072 CPPFLAGS
1074 CXXFLAGS
1076 CXXCPP
1078 GMPLIBS
1079 GMPINC
1080 ISLLIBS
1081 ISLINC'
1084 # Initialize some variables set by options.
1085 ac_init_help=
1086 ac_init_version=false
1087 ac_unrecognized_opts=
1088 ac_unrecognized_sep=
1089 # The variables have the same names as the options, with
1090 # dashes changed to underlines.
1091 cache_file=/dev/null
1092 exec_prefix=NONE
1093 no_create=
1094 no_recursion=
1095 prefix=NONE
1096 program_prefix=NONE
1097 program_suffix=NONE
1098 program_transform_name=s,x,x,
1099 silent=
1100 site=
1101 srcdir=
1102 verbose=
1103 x_includes=NONE
1104 x_libraries=NONE
1106 # Installation directory options.
1107 # These are left unexpanded so users can "make install exec_prefix=/foo"
1108 # and all the variables that are supposed to be based on exec_prefix
1109 # by default will actually change.
1110 # Use braces instead of parens because sh, perl, etc. also accept them.
1111 # (The list follows the same order as the GNU Coding Standards.)
1112 bindir='${exec_prefix}/bin'
1113 sbindir='${exec_prefix}/sbin'
1114 libexecdir='${exec_prefix}/libexec'
1115 datarootdir='${prefix}/share'
1116 datadir='${datarootdir}'
1117 sysconfdir='${prefix}/etc'
1118 sharedstatedir='${prefix}/com'
1119 localstatedir='${prefix}/var'
1120 includedir='${prefix}/include'
1121 oldincludedir='/usr/include'
1122 docdir='${datarootdir}/doc/${PACKAGE}'
1123 infodir='${datarootdir}/info'
1124 htmldir='${docdir}'
1125 dvidir='${docdir}'
1126 pdfdir='${docdir}'
1127 psdir='${docdir}'
1128 libdir='${exec_prefix}/lib'
1129 localedir='${datarootdir}/locale'
1130 mandir='${datarootdir}/man'
1132 ac_prev=
1133 ac_dashdash=
1134 for ac_option
1136 # If the previous option needs an argument, assign it.
1137 if test -n "$ac_prev"; then
1138 eval $ac_prev=\$ac_option
1139 ac_prev=
1140 continue
1143 case $ac_option in
1144 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1145 *=) ac_optarg= ;;
1146 *) ac_optarg=yes ;;
1147 esac
1149 # Accept the important Cygnus configure options, so we can diagnose typos.
1151 case $ac_dashdash$ac_option in
1153 ac_dashdash=yes ;;
1155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 ac_prev=bindir ;;
1157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1158 bindir=$ac_optarg ;;
1160 -build | --build | --buil | --bui | --bu)
1161 ac_prev=build_alias ;;
1162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1163 build_alias=$ac_optarg ;;
1165 -cache-file | --cache-file | --cache-fil | --cache-fi \
1166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1167 ac_prev=cache_file ;;
1168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1170 cache_file=$ac_optarg ;;
1172 --config-cache | -C)
1173 cache_file=config.cache ;;
1175 -datadir | --datadir | --datadi | --datad)
1176 ac_prev=datadir ;;
1177 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1178 datadir=$ac_optarg ;;
1180 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1181 | --dataroo | --dataro | --datar)
1182 ac_prev=datarootdir ;;
1183 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1184 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1185 datarootdir=$ac_optarg ;;
1187 -disable-* | --disable-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid feature name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1196 "enable_$ac_useropt"
1197 "*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval enable_$ac_useropt=no ;;
1203 -docdir | --docdir | --docdi | --doc | --do)
1204 ac_prev=docdir ;;
1205 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1206 docdir=$ac_optarg ;;
1208 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1209 ac_prev=dvidir ;;
1210 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1211 dvidir=$ac_optarg ;;
1213 -enable-* | --enable-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid feature name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "enable_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval enable_$ac_useropt=\$ac_optarg ;;
1229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1231 | --exec | --exe | --ex)
1232 ac_prev=exec_prefix ;;
1233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1235 | --exec=* | --exe=* | --ex=*)
1236 exec_prefix=$ac_optarg ;;
1238 -gas | --gas | --ga | --g)
1239 # Obsolete; use --with-gas.
1240 with_gas=yes ;;
1242 -help | --help | --hel | --he | -h)
1243 ac_init_help=long ;;
1244 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1245 ac_init_help=recursive ;;
1246 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1247 ac_init_help=short ;;
1249 -host | --host | --hos | --ho)
1250 ac_prev=host_alias ;;
1251 -host=* | --host=* | --hos=* | --ho=*)
1252 host_alias=$ac_optarg ;;
1254 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1255 ac_prev=htmldir ;;
1256 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1257 | --ht=*)
1258 htmldir=$ac_optarg ;;
1260 -includedir | --includedir | --includedi | --included | --include \
1261 | --includ | --inclu | --incl | --inc)
1262 ac_prev=includedir ;;
1263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1264 | --includ=* | --inclu=* | --incl=* | --inc=*)
1265 includedir=$ac_optarg ;;
1267 -infodir | --infodir | --infodi | --infod | --info | --inf)
1268 ac_prev=infodir ;;
1269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1270 infodir=$ac_optarg ;;
1272 -libdir | --libdir | --libdi | --libd)
1273 ac_prev=libdir ;;
1274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1275 libdir=$ac_optarg ;;
1277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1278 | --libexe | --libex | --libe)
1279 ac_prev=libexecdir ;;
1280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1281 | --libexe=* | --libex=* | --libe=*)
1282 libexecdir=$ac_optarg ;;
1284 -localedir | --localedir | --localedi | --localed | --locale)
1285 ac_prev=localedir ;;
1286 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1287 localedir=$ac_optarg ;;
1289 -localstatedir | --localstatedir | --localstatedi | --localstated \
1290 | --localstate | --localstat | --localsta | --localst | --locals)
1291 ac_prev=localstatedir ;;
1292 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1293 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1294 localstatedir=$ac_optarg ;;
1296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1297 ac_prev=mandir ;;
1298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1299 mandir=$ac_optarg ;;
1301 -nfp | --nfp | --nf)
1302 # Obsolete; use --without-fp.
1303 with_fp=no ;;
1305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1306 | --no-cr | --no-c | -n)
1307 no_create=yes ;;
1309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1311 no_recursion=yes ;;
1313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1315 | --oldin | --oldi | --old | --ol | --o)
1316 ac_prev=oldincludedir ;;
1317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1320 oldincludedir=$ac_optarg ;;
1322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1323 ac_prev=prefix ;;
1324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1325 prefix=$ac_optarg ;;
1327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1328 | --program-pre | --program-pr | --program-p)
1329 ac_prev=program_prefix ;;
1330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1332 program_prefix=$ac_optarg ;;
1334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1335 | --program-suf | --program-su | --program-s)
1336 ac_prev=program_suffix ;;
1337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1339 program_suffix=$ac_optarg ;;
1341 -program-transform-name | --program-transform-name \
1342 | --program-transform-nam | --program-transform-na \
1343 | --program-transform-n | --program-transform- \
1344 | --program-transform | --program-transfor \
1345 | --program-transfo | --program-transf \
1346 | --program-trans | --program-tran \
1347 | --progr-tra | --program-tr | --program-t)
1348 ac_prev=program_transform_name ;;
1349 -program-transform-name=* | --program-transform-name=* \
1350 | --program-transform-nam=* | --program-transform-na=* \
1351 | --program-transform-n=* | --program-transform-=* \
1352 | --program-transform=* | --program-transfor=* \
1353 | --program-transfo=* | --program-transf=* \
1354 | --program-trans=* | --program-tran=* \
1355 | --progr-tra=* | --program-tr=* | --program-t=*)
1356 program_transform_name=$ac_optarg ;;
1358 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1359 ac_prev=pdfdir ;;
1360 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1361 pdfdir=$ac_optarg ;;
1363 -psdir | --psdir | --psdi | --psd | --ps)
1364 ac_prev=psdir ;;
1365 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1366 psdir=$ac_optarg ;;
1368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1369 | -silent | --silent | --silen | --sile | --sil)
1370 silent=yes ;;
1372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 ac_prev=sbindir ;;
1374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 | --sbi=* | --sb=*)
1376 sbindir=$ac_optarg ;;
1378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1380 | --sharedst | --shareds | --shared | --share | --shar \
1381 | --sha | --sh)
1382 ac_prev=sharedstatedir ;;
1383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 | --sha=* | --sh=*)
1387 sharedstatedir=$ac_optarg ;;
1389 -site | --site | --sit)
1390 ac_prev=site ;;
1391 -site=* | --site=* | --sit=*)
1392 site=$ac_optarg ;;
1394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 ac_prev=srcdir ;;
1396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1397 srcdir=$ac_optarg ;;
1399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1400 | --syscon | --sysco | --sysc | --sys | --sy)
1401 ac_prev=sysconfdir ;;
1402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1404 sysconfdir=$ac_optarg ;;
1406 -target | --target | --targe | --targ | --tar | --ta | --t)
1407 ac_prev=target_alias ;;
1408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1409 target_alias=$ac_optarg ;;
1411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1412 verbose=yes ;;
1414 -version | --version | --versio | --versi | --vers | -V)
1415 ac_init_version=: ;;
1417 -with-* | --with-*)
1418 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1419 # Reject names that are not valid shell variable names.
1420 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1421 as_fn_error $? "invalid package name: $ac_useropt"
1422 ac_useropt_orig=$ac_useropt
1423 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1424 case $ac_user_opts in
1426 "with_$ac_useropt"
1427 "*) ;;
1428 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1429 ac_unrecognized_sep=', ';;
1430 esac
1431 eval with_$ac_useropt=\$ac_optarg ;;
1433 -without-* | --without-*)
1434 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1435 # Reject names that are not valid shell variable names.
1436 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1437 as_fn_error $? "invalid package name: $ac_useropt"
1438 ac_useropt_orig=$ac_useropt
1439 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1440 case $ac_user_opts in
1442 "with_$ac_useropt"
1443 "*) ;;
1444 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1445 ac_unrecognized_sep=', ';;
1446 esac
1447 eval with_$ac_useropt=no ;;
1449 --x)
1450 # Obsolete; use --with-x.
1451 with_x=yes ;;
1453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1454 | --x-incl | --x-inc | --x-in | --x-i)
1455 ac_prev=x_includes ;;
1456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1458 x_includes=$ac_optarg ;;
1460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1462 ac_prev=x_libraries ;;
1463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1465 x_libraries=$ac_optarg ;;
1467 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1468 Try \`$0 --help' for more information"
1471 *=*)
1472 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1473 # Reject names that are not valid shell variable names.
1474 case $ac_envvar in #(
1475 '' | [0-9]* | *[!_$as_cr_alnum]* )
1476 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 esac
1478 eval $ac_envvar=\$ac_optarg
1479 export $ac_envvar ;;
1482 # FIXME: should be removed in autoconf 3.0.
1483 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1484 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1485 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1486 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1489 esac
1490 done
1492 if test -n "$ac_prev"; then
1493 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1494 as_fn_error $? "missing argument to $ac_option"
1497 if test -n "$ac_unrecognized_opts"; then
1498 case $enable_option_checking in
1499 no) ;;
1500 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1501 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1502 esac
1505 # Check all directory arguments for consistency.
1506 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1507 datadir sysconfdir sharedstatedir localstatedir includedir \
1508 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1509 libdir localedir mandir
1511 eval ac_val=\$$ac_var
1512 # Remove trailing slashes.
1513 case $ac_val in
1514 */ )
1515 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1516 eval $ac_var=\$ac_val;;
1517 esac
1518 # Be sure to have absolute directory names.
1519 case $ac_val in
1520 [\\/$]* | ?:[\\/]* ) continue;;
1521 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 esac
1523 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1524 done
1526 # There might be people who depend on the old broken behavior: `$host'
1527 # used to hold the argument of --host etc.
1528 # FIXME: To remove some day.
1529 build=$build_alias
1530 host=$host_alias
1531 target=$target_alias
1533 # FIXME: To remove some day.
1534 if test "x$host_alias" != x; then
1535 if test "x$build_alias" = x; then
1536 cross_compiling=maybe
1537 elif test "x$build_alias" != "x$host_alias"; then
1538 cross_compiling=yes
1542 ac_tool_prefix=
1543 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1545 test "$silent" = yes && exec 6>/dev/null
1548 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1549 ac_ls_di=`ls -di .` &&
1550 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1551 as_fn_error $? "working directory cannot be determined"
1552 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1553 as_fn_error $? "pwd does not report name of working directory"
1556 # Find the source files, if location was not specified.
1557 if test -z "$srcdir"; then
1558 ac_srcdir_defaulted=yes
1559 # Try the directory containing this script, then the parent directory.
1560 ac_confdir=`$as_dirname -- "$as_myself" ||
1561 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1562 X"$as_myself" : 'X\(//\)[^/]' \| \
1563 X"$as_myself" : 'X\(//\)$' \| \
1564 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1565 $as_echo X"$as_myself" |
1566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1567 s//\1/
1570 /^X\(\/\/\)[^/].*/{
1571 s//\1/
1574 /^X\(\/\/\)$/{
1575 s//\1/
1578 /^X\(\/\).*/{
1579 s//\1/
1582 s/.*/./; q'`
1583 srcdir=$ac_confdir
1584 if test ! -r "$srcdir/$ac_unique_file"; then
1585 srcdir=..
1587 else
1588 ac_srcdir_defaulted=no
1590 if test ! -r "$srcdir/$ac_unique_file"; then
1591 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1592 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1594 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 ac_abs_confdir=`(
1596 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 pwd)`
1598 # When building in place, set srcdir=.
1599 if test "$ac_abs_confdir" = "$ac_pwd"; then
1600 srcdir=.
1602 # Remove unnecessary trailing slashes from srcdir.
1603 # Double slashes in file names in object file debugging info
1604 # mess up M-x gdb in Emacs.
1605 case $srcdir in
1606 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 esac
1608 for ac_var in $ac_precious_vars; do
1609 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_env_${ac_var}_value=\$${ac_var}
1611 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1612 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1613 done
1616 # Report the --help message.
1618 if test "$ac_init_help" = "long"; then
1619 # Omit some internal or obsolete options to make the list less imposing.
1620 # This message is too long to be a string in the A/UX 3.1 sh.
1621 cat <<_ACEOF
1622 \`configure' configures this package to adapt to many kinds of systems.
1624 Usage: $0 [OPTION]... [VAR=VALUE]...
1626 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1627 VAR=VALUE. See below for descriptions of some of the useful variables.
1629 Defaults for the options are specified in brackets.
1631 Configuration:
1632 -h, --help display this help and exit
1633 --help=short display options specific to this package
1634 --help=recursive display the short help of all the included packages
1635 -V, --version display version information and exit
1636 -q, --quiet, --silent do not print \`checking ...' messages
1637 --cache-file=FILE cache test results in FILE [disabled]
1638 -C, --config-cache alias for \`--cache-file=config.cache'
1639 -n, --no-create do not create output files
1640 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1642 Installation directories:
1643 --prefix=PREFIX install architecture-independent files in PREFIX
1644 [$ac_default_prefix]
1645 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1646 [PREFIX]
1648 By default, \`make install' will install all the files in
1649 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1650 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1651 for instance \`--prefix=\$HOME'.
1653 For better control, use the options below.
1655 Fine tuning of the installation directories:
1656 --bindir=DIR user executables [EPREFIX/bin]
1657 --sbindir=DIR system admin executables [EPREFIX/sbin]
1658 --libexecdir=DIR program executables [EPREFIX/libexec]
1659 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1660 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1661 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1662 --libdir=DIR object code libraries [EPREFIX/lib]
1663 --includedir=DIR C header files [PREFIX/include]
1664 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1665 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1667 --infodir=DIR info documentation [DATAROOTDIR/info]
1668 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1669 --mandir=DIR man documentation [DATAROOTDIR/man]
1670 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1671 --htmldir=DIR html documentation [DOCDIR]
1672 --dvidir=DIR dvi documentation [DOCDIR]
1673 --pdfdir=DIR pdf documentation [DOCDIR]
1674 --psdir=DIR ps documentation [DOCDIR]
1675 _ACEOF
1677 cat <<\_ACEOF
1679 Program names:
1680 --program-prefix=PREFIX prepend PREFIX to installed program names
1681 --program-suffix=SUFFIX append SUFFIX to installed program names
1682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684 System types:
1685 --build=BUILD configure for building on BUILD [guessed]
1686 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1687 --target=TARGET configure for building compilers for TARGET [HOST]
1688 _ACEOF
1691 if test -n "$ac_init_help"; then
1693 cat <<\_ACEOF
1695 Optional Features:
1696 --disable-option-checking ignore unrecognized --enable/--with options
1697 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1698 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1699 --enable-generated-files-in-srcdir
1700 put copies of generated files in source dir intended
1701 for creating source tarballs for users without
1702 texinfo bison or flex
1703 --disable-largefile omit support for large files
1704 --disable-build-format-warnings
1705 don't use -Wformat while building GCC
1706 --enable-werror-always enable -Werror despite compiler version
1707 --enable-checking[=LIST]
1708 enable expensive run-time checks. With LIST, enable
1709 only specific categories of checks. Categories are:
1710 yes,no,all,none,release. Flags are:
1711 assert,df,extra,fold,gc,gcac,gimple,misc,
1712 rtlflag,rtl,runtime,tree,valgrind,types
1713 --enable-coverage[=LEVEL]
1714 enable compiler's code coverage collection. Use to
1715 measure compiler performance and locate unused parts
1716 of the compiler. With LEVEL, specify optimization.
1717 Values are opt, noopt, default is noopt
1718 --enable-gather-detailed-mem-stats
1719 enable detailed memory allocation stats gathering
1720 --enable-valgrind-annotations
1721 enable valgrind runtime interaction
1722 --enable-multilib enable library support for multiple ABIs
1723 --enable-multiarch enable support for multiarch paths
1724 --enable-__cxa_atexit enable __cxa_atexit for C++
1725 --enable-decimal-float={no,yes,bid,dpd}
1726 enable decimal float extension to C. Selecting 'bid'
1727 or 'dpd' choses which decimal floating point format
1728 to use
1729 --enable-fixed-point enable fixed-point arithmetic extension to C
1730 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1731 package
1732 --enable-tls enable or disable generation of tls code overriding
1733 the assembler check for tls support
1734 --enable-vtable-verify enable vtable verification feature
1735 --disable-analyzer disable -fanalyzer static analyzer
1736 --enable-objc-gc enable the use of Boehm's garbage collector with the
1737 GNU Objective-C runtime
1738 --disable-shared don't provide a shared libgcc
1739 --disable-gcov don't provide libgcov and related host tools
1740 --enable-languages=LIST specify which front-ends to build
1741 --disable-rpath do not hardcode runtime library paths
1742 --enable-sjlj-exceptions
1743 arrange to use setjmp/longjmp exception handling
1744 --disable-win32-utf8-manifest
1745 disable embedding a utf8 manifest on mingw hosts
1746 --enable-win32-utf8-manifest
1747 enable embedding a utf8 manifest on mingw hosts
1748 (default)
1749 --disable-nls do not use Native Language Support
1750 --enable-secureplt enable -msecure-plt by default for PowerPC
1751 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1752 Default to platform configuration
1753 --enable-large-address-aware
1754 Link mingw executables with --large-address-aware
1755 --enable-leading-mingw64-underscores
1756 enable leading underscores on 64 bit mingw targets
1757 --enable-cld enable -mcld by default for 32bit x86
1758 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1759 --disable-win32-registry
1760 disable lookup of installation paths in the Registry
1761 on Windows hosts
1762 --enable-win32-registry enable registry lookup (default)
1763 --enable-win32-registry=KEY
1764 use KEY instead of GCC version as the last portion
1765 of the registry key
1766 --enable-shared[=PKGS] build shared libraries [default=yes]
1767 --enable-static[=PKGS] build static libraries [default=yes]
1768 --enable-fast-install[=PKGS]
1769 optimize for fast installation [default=yes]
1770 --disable-libtool-lock avoid locking (might break parallel builds)
1771 --enable-darwin-at-rpath
1772 install libraries with @rpath/library-name, requires
1773 rpaths to be added to executables
1774 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1775 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1776 --enable-gnu-indirect-function
1777 enable the use of the @gnu_indirect_function to
1778 glibc systems
1779 --enable-initfini-array use .init_array/.fini_array sections
1780 --enable-comdat enable COMDAT group support
1781 --enable-newlib-nano-formatted-io
1782 Use nano version formatted IO
1784 --enable-standard-branch-protection
1785 enable Branch Target Identification Mechanism and
1786 Return Address Signing by default for AArch64
1787 --disable-standard-branch-protection
1788 disable Branch Target Identification Mechanism and
1789 Return Address Signing by default for AArch64
1792 --enable-fix-cortex-a53-835769
1793 enable workaround for AArch64 Cortex-A53 erratum
1794 835769 by default
1795 --disable-fix-cortex-a53-835769
1796 disable workaround for AArch64 Cortex-A53 erratum
1797 835769 by default
1800 --enable-fix-cortex-a53-843419
1801 enable workaround for AArch64 Cortex-A53 erratum
1802 843419 by default
1803 --disable-fix-cortex-a53-843419
1804 disable workaround for AArch64 Cortex-A53 erratum
1805 843419 by default
1807 --enable-gnu-unique-object
1808 enable the use of the @gnu_unique_object ELF
1809 extension on glibc systems
1810 --enable-linker-build-id
1811 compiler will always pass --build-id to linker
1812 --enable-libssp enable linking against libssp
1813 --enable-default-ssp enable Stack Smashing Protection as default
1814 --enable-maintainer-mode
1815 enable make rules and dependencies not useful (and
1816 sometimes confusing) to the casual installer
1817 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1818 thrashing on the build machine
1819 --enable-link-serialization
1820 avoid linking multiple GCC front-ends at once using
1821 make dependencies to avoid thrashing on the build
1822 machine
1823 --enable-version-specific-runtime-libs
1824 specify that runtime libraries should be installed
1825 in a compiler-specific directory
1826 --enable-plugin enable plugin support
1827 --enable-host-shared build host code as shared libraries
1828 --enable-host-pie build host code as PIE
1829 --enable-host-bind-now link host code as BIND_NOW
1830 --disable-libquadmath-support
1831 disable libquadmath support for Fortran
1832 --enable-default-pie enable Position Independent Executable as default
1833 --enable-cet enable Intel CET in host libraries [default=auto]
1834 --enable-s390-excess-float-precision
1835 on s390 targets, evaluate float with double
1836 precision when in standards-conforming mode
1838 Optional Packages:
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-build-libsubdir=DIR Directory where to find libraries for build system
1842 --with-local-prefix=DIR specifies directory to put local include
1843 --with-native-system-header-dir=dir
1844 use dir as the directory to look for standard
1845 system header files in. Defaults to /usr/include.
1846 --with-build-sysroot=sysroot
1847 use sysroot as the system root during the build
1848 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1849 --with-gxx-include-dir=DIR
1850 specifies directory to put g++ header files
1851 --with-gxx-libcxx-include-dir=DIR
1852 specifies directory to find libc++ header files
1853 --with-cpp-install-dir=DIR
1854 install the user visible C preprocessor in DIR
1855 (relative to PREFIX) as well as PREFIX/bin
1856 --with-gnu-ld arrange to work with GNU ld
1857 --with-ld arrange to use the specified ld (full pathname)
1858 --with-demangler-in-ld try to use demangler in GNU ld
1859 --with-dsymutil arrange to use the specified dsymutil (full
1860 pathname)
1861 --with-gnu-as arrange to work with GNU as
1862 --with-as arrange to use the specified as (full pathname)
1863 --with-stack-clash-protection-guard-size=size
1864 Set the default stack clash protection guard size
1865 for specific targets as a power of two in bytes.
1866 --with-matchpd-partitions=num
1867 Set the number of partitions to make for gimple and
1868 generic when splitting match.pd. [default=10]
1869 --with-insnemit-partitions=num
1870 Set the number of partitions of insn-emit.cc for
1871 genemit to create. [default=10]
1872 --with-dwarf2 force the default debug format to be DWARF 2 (or
1873 later)
1874 --with-specs=SPECS add SPECS to driver command-line processing
1875 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1876 --with-bugurl=URL Direct users to URL to report a bug
1877 --with-documentation-root-url=URL
1878 Root for documentation URLs
1879 --with-changes-root-url=URL
1880 Root for GCC changes URLs
1881 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1882 SH and x86-64 only)
1883 --with-multilib-generator
1884 Multi-libs configuration string (RISC-V only)
1885 --with-zstd=PATH specify prefix directory for installed zstd library.
1886 Equivalent to --with-zstd-include=PATH/include plus
1887 --with-zstd-lib=PATH/lib
1888 --with-zstd-include=PATH
1889 specify directory for installed zstd include files
1890 --with-zstd-lib=PATH specify directory for the installed zstd library
1891 --with-gnu-ld assume the C compiler uses GNU ld default=no
1892 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1893 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1894 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1895 --with-gcc-major-version-only
1896 use only GCC major number in filesystem paths
1897 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1898 --without-libintl-prefix don't search for libintl in includedir and libdir
1899 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1900 --with-pic try to use only PIC/non-PIC objects [default=use
1901 both]
1902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1903 --with-darwin-extra-rpath=[ARG]
1904 Specify a runpath directory, additional to those
1905 provided by the compiler
1906 --with-plugin-ld=[ARG] specify the plugin linker
1907 --with-glibc-version=M.N
1908 assume GCC used with glibc version M.N or later
1909 --with-long-double-128 use 128-bit long double by default
1910 --with-long-double-format={ieee,ibm}
1911 Specify whether PowerPC long double uses IEEE or IBM format
1913 --with-gc={page,zone} this option is not supported anymore. It used to
1914 choose the garbage collection mechanism to use with
1915 the compiler
1916 --with-system-zlib use installed libz
1917 --with-linker-hash-style={sysv,gnu,both}
1918 specify the linker hash style
1919 --with-diagnostics-color={never,auto,auto-if-env,always}
1920 specify the default of -fdiagnostics-color option
1921 auto-if-env stands for -fdiagnostics-color=auto if
1922 GCC_COLOR environment variable is present and
1923 -fdiagnostics-color=never otherwise
1924 --with-diagnostics-urls={never,auto,auto-if-env,always}
1925 specify the default of -fdiagnostics-urls option
1926 auto-if-env stands for -fdiagnostics-urls=auto if
1927 GCC_URLS or TERM_URLS environment variable is
1928 present and -fdiagnostics-urls=never otherwise
1930 Some influential environment variables:
1931 CC C compiler command
1932 CFLAGS C compiler flags
1933 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1934 nonstandard directory <lib dir>
1935 LIBS libraries to pass to the linker, e.g. -l<library>
1936 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1937 you have headers in a nonstandard directory <include dir>
1938 CXX C++ compiler command
1939 CXXFLAGS C++ compiler flags
1940 CXXCPP C++ preprocessor
1941 CPP C preprocessor
1942 GMPLIBS How to link GMP
1943 GMPINC How to find GMP include files
1944 ISLLIBS How to link isl
1945 ISLINC How to find isl include files
1947 Use these variables to override the choices made by `configure' or to help
1948 it to find libraries and programs with nonstandard names/locations.
1950 Report bugs to the package provider.
1951 _ACEOF
1952 ac_status=$?
1955 if test "$ac_init_help" = "recursive"; then
1956 # If there are subdirs, report their specific --help.
1957 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1958 test -d "$ac_dir" ||
1959 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1960 continue
1961 ac_builddir=.
1963 case "$ac_dir" in
1964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1966 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1967 # A ".." for each directory in $ac_dir_suffix.
1968 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1969 case $ac_top_builddir_sub in
1970 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1972 esac ;;
1973 esac
1974 ac_abs_top_builddir=$ac_pwd
1975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir=$ac_top_build_prefix
1979 case $srcdir in
1980 .) # We are building in place.
1981 ac_srcdir=.
1982 ac_top_srcdir=$ac_top_builddir_sub
1983 ac_abs_top_srcdir=$ac_pwd ;;
1984 [\\/]* | ?:[\\/]* ) # Absolute name.
1985 ac_srcdir=$srcdir$ac_dir_suffix;
1986 ac_top_srcdir=$srcdir
1987 ac_abs_top_srcdir=$srcdir ;;
1988 *) # Relative name.
1989 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990 ac_top_srcdir=$ac_top_build_prefix$srcdir
1991 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1992 esac
1993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1995 cd "$ac_dir" || { ac_status=$?; continue; }
1996 # Check for guested configure.
1997 if test -f "$ac_srcdir/configure.gnu"; then
1998 echo &&
1999 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000 elif test -f "$ac_srcdir/configure"; then
2001 echo &&
2002 $SHELL "$ac_srcdir/configure" --help=recursive
2003 else
2004 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005 fi || ac_status=$?
2006 cd "$ac_pwd" || { ac_status=$?; break; }
2007 done
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2012 cat <<\_ACEOF
2013 configure
2014 generated by GNU Autoconf 2.69
2016 Copyright (C) 2012 Free Software Foundation, Inc.
2017 This configure script is free software; the Free Software Foundation
2018 gives unlimited permission to copy, distribute and modify it.
2019 _ACEOF
2020 exit
2023 ## ------------------------ ##
2024 ## Autoconf initialization. ##
2025 ## ------------------------ ##
2027 # ac_fn_c_try_compile LINENO
2028 # --------------------------
2029 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2030 ac_fn_c_try_compile ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 rm -f conftest.$ac_objext
2034 if { { ac_try="$ac_compile"
2035 case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_compile") 2>conftest.err
2042 ac_status=$?
2043 if test -s conftest.err; then
2044 grep -v '^ *+' conftest.err >conftest.er1
2045 cat conftest.er1 >&5
2046 mv -f conftest.er1 conftest.err
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && {
2050 test -z "$ac_c_werror_flag" ||
2051 test ! -s conftest.err
2052 } && test -s conftest.$ac_objext; then :
2053 ac_retval=0
2054 else
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=1
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 as_fn_set_status $ac_retval
2063 } # ac_fn_c_try_compile
2065 # ac_fn_cxx_try_compile LINENO
2066 # ----------------------------
2067 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_cxx_try_compile ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext
2072 if { { ac_try="$ac_compile"
2073 case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compile") 2>conftest.err
2080 ac_status=$?
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_cxx_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest.$ac_objext; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2096 ac_retval=1
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_cxx_try_compile
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 ac_status=$?
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2127 }; then :
2128 ac_retval=0
2129 else
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 ac_retval=1
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2144 # accordingly.
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 else
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2168 else
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2184 else
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2193 yes:no: )
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2199 no:yes:* )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2211 esac
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=\$ac_header_compiler"
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_try_run LINENO
2228 # ------------------------
2229 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2230 # that executables *can* be run.
2231 ac_fn_cxx_try_run ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if { { ac_try="$ac_link"
2235 case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>&5
2242 ac_status=$?
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2245 { { case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_try") 2>&5
2252 ac_status=$?
2253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2254 test $ac_status = 0; }; }; then :
2255 ac_retval=0
2256 else
2257 $as_echo "$as_me: program exited with status $ac_status" >&5
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2261 ac_retval=$ac_status
2263 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265 as_fn_set_status $ac_retval
2267 } # ac_fn_cxx_try_run
2269 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2270 # ---------------------------------------------------------
2271 # Tests whether HEADER exists and can be compiled using the include files in
2272 # INCLUDES, setting the cache variable VAR accordingly.
2273 ac_fn_cxx_check_header_compile ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2284 #include <$2>
2285 _ACEOF
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 eval "$3=yes"
2288 else
2289 eval "$3=no"
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_cxx_check_header_compile
2300 # ac_fn_c_try_cpp LINENO
2301 # ----------------------
2302 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2303 ac_fn_c_try_cpp ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if { { ac_try="$ac_cpp conftest.$ac_ext"
2307 case "(($ac_try" in
2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2309 *) ac_try_echo=$ac_try;;
2310 esac
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 $as_echo "$ac_try_echo"; } >&5
2313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2314 ac_status=$?
2315 if test -s conftest.err; then
2316 grep -v '^ *+' conftest.err >conftest.er1
2317 cat conftest.er1 >&5
2318 mv -f conftest.er1 conftest.err
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; } > conftest.i && {
2322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2323 test ! -s conftest.err
2324 }; then :
2325 ac_retval=0
2326 else
2327 $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 ac_retval=1
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2335 } # ac_fn_c_try_cpp
2337 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2338 # ----------------------------------------------
2339 # Tries to find the compile-time value of EXPR in a program that includes
2340 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2341 # computed
2342 ac_fn_cxx_compute_int ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 if test "$cross_compiling" = yes; then
2346 # Depending upon the size, compute the lo and hi bounds.
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2351 main ()
2353 static int test_array [1 - 2 * !(($2) >= 0)];
2354 test_array [0] = 0;
2355 return test_array [0];
2358 return 0;
2360 _ACEOF
2361 if ac_fn_cxx_try_compile "$LINENO"; then :
2362 ac_lo=0 ac_mid=0
2363 while :; do
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 main ()
2370 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2371 test_array [0] = 0;
2372 return test_array [0];
2375 return 0;
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2379 ac_hi=$ac_mid; break
2380 else
2381 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2382 if test $ac_lo -le $ac_mid; then
2383 ac_lo= ac_hi=
2384 break
2386 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 done
2390 else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2395 main ()
2397 static int test_array [1 - 2 * !(($2) < 0)];
2398 test_array [0] = 0;
2399 return test_array [0];
2402 return 0;
2404 _ACEOF
2405 if ac_fn_cxx_try_compile "$LINENO"; then :
2406 ac_hi=-1 ac_mid=-1
2407 while :; do
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2412 main ()
2414 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2415 test_array [0] = 0;
2416 return test_array [0];
2419 return 0;
2421 _ACEOF
2422 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 ac_lo=$ac_mid; break
2424 else
2425 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2426 if test $ac_mid -le $ac_hi; then
2427 ac_lo= ac_hi=
2428 break
2430 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 done
2434 else
2435 ac_lo= ac_hi=
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 # Binary search between lo and hi bounds.
2441 while test "x$ac_lo" != "x$ac_hi"; do
2442 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 main ()
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 test_array [0] = 0;
2451 return test_array [0];
2454 return 0;
2456 _ACEOF
2457 if ac_fn_cxx_try_compile "$LINENO"; then :
2458 ac_hi=$ac_mid
2459 else
2460 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 done
2464 case $ac_lo in #((
2465 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2466 '') ac_retval=1 ;;
2467 esac
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2472 static long int longval () { return $2; }
2473 static unsigned long int ulongval () { return $2; }
2474 #include <stdio.h>
2475 #include <stdlib.h>
2477 main ()
2480 FILE *f = fopen ("conftest.val", "w");
2481 if (! f)
2482 return 1;
2483 if (($2) < 0)
2485 long int i = longval ();
2486 if (i != ($2))
2487 return 1;
2488 fprintf (f, "%ld", i);
2490 else
2492 unsigned long int i = ulongval ();
2493 if (i != ($2))
2494 return 1;
2495 fprintf (f, "%lu", i);
2497 /* Do not output a trailing newline, as this causes \r\n confusion
2498 on some platforms. */
2499 return ferror (f) || fclose (f) != 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_cxx_try_run "$LINENO"; then :
2506 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2507 else
2508 ac_retval=1
2510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2511 conftest.$ac_objext conftest.beam conftest.$ac_ext
2512 rm -f conftest.val
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 as_fn_set_status $ac_retval
2518 } # ac_fn_cxx_compute_int
2520 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2521 # ---------------------------------------------
2522 # Tests whether TYPE exists after having included INCLUDES, setting cache
2523 # variable VAR accordingly.
2524 ac_fn_cxx_check_type ()
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2528 $as_echo_n "checking for $2... " >&6; }
2529 if eval \${$3+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 eval "$3=no"
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2537 main ()
2539 if (sizeof ($2))
2540 return 0;
2542 return 0;
2544 _ACEOF
2545 if ac_fn_cxx_try_compile "$LINENO"; then :
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 main ()
2552 if (sizeof (($2)))
2553 return 0;
2555 return 0;
2557 _ACEOF
2558 if ac_fn_cxx_try_compile "$LINENO"; then :
2560 else
2561 eval "$3=yes"
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 eval ac_res=\$$3
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2572 } # ac_fn_cxx_check_type
2574 # ac_fn_c_find_intX_t LINENO BITS VAR
2575 # -----------------------------------
2576 # Finds a signed integer type with width BITS, setting cache variable VAR
2577 # accordingly.
2578 ac_fn_c_find_intX_t ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2582 $as_echo_n "checking for int$2_t... " >&6; }
2583 if eval \${$3+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 eval "$3=no"
2587 # Order is important - never check a type that is potentially smaller
2588 # than half of the expected target width.
2589 for ac_type in int$2_t 'int' 'long int' \
2590 'long long int' 'short int' 'signed char'; do
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $ac_includes_default
2594 enum { N = $2 / 2 - 1 };
2596 main ()
2598 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2599 test_array [0] = 0;
2600 return test_array [0];
2603 return 0;
2605 _ACEOF
2606 if ac_fn_cxx_try_compile "$LINENO"; then :
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $ac_includes_default
2610 enum { N = $2 / 2 - 1 };
2612 main ()
2614 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2615 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2616 test_array [0] = 0;
2617 return test_array [0];
2620 return 0;
2622 _ACEOF
2623 if ac_fn_cxx_try_compile "$LINENO"; then :
2625 else
2626 case $ac_type in #(
2627 int$2_t) :
2628 eval "$3=yes" ;; #(
2629 *) :
2630 eval "$3=\$ac_type" ;;
2631 esac
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 if eval test \"x\$"$3"\" = x"no"; then :
2638 else
2639 break
2641 done
2643 eval ac_res=\$$3
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2645 $as_echo "$ac_res" >&6; }
2646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2648 } # ac_fn_c_find_intX_t
2650 # ac_fn_cxx_try_link LINENO
2651 # -------------------------
2652 # Try to link conftest.$ac_ext, and return whether this succeeded.
2653 ac_fn_cxx_try_link ()
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 rm -f conftest.$ac_objext conftest$ac_exeext
2657 if { { ac_try="$ac_link"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_link") 2>conftest.err
2665 ac_status=$?
2666 if test -s conftest.err; then
2667 grep -v '^ *+' conftest.err >conftest.er1
2668 cat conftest.er1 >&5
2669 mv -f conftest.er1 conftest.err
2671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2672 test $ac_status = 0; } && {
2673 test -z "$ac_cxx_werror_flag" ||
2674 test ! -s conftest.err
2675 } && test -s conftest$ac_exeext && {
2676 test "$cross_compiling" = yes ||
2677 test -x conftest$ac_exeext
2678 }; then :
2679 ac_retval=0
2680 else
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 ac_retval=1
2686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2688 # interfere with the next link command; also delete a directory that is
2689 # left behind by Apple's compiler. We do this before executing the actions.
2690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692 as_fn_set_status $ac_retval
2694 } # ac_fn_cxx_try_link
2696 # ac_fn_c_find_uintX_t LINENO BITS VAR
2697 # ------------------------------------
2698 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2699 # accordingly.
2700 ac_fn_c_find_uintX_t ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2704 $as_echo_n "checking for uint$2_t... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 eval "$3=no"
2709 # Order is important - never check a type that is potentially smaller
2710 # than half of the expected target width.
2711 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2712 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $ac_includes_default
2717 main ()
2719 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2720 test_array [0] = 0;
2721 return test_array [0];
2724 return 0;
2726 _ACEOF
2727 if ac_fn_cxx_try_compile "$LINENO"; then :
2728 case $ac_type in #(
2729 uint$2_t) :
2730 eval "$3=yes" ;; #(
2731 *) :
2732 eval "$3=\$ac_type" ;;
2733 esac
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if eval test \"x\$"$3"\" = x"no"; then :
2738 else
2739 break
2741 done
2743 eval ac_res=\$$3
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748 } # ac_fn_c_find_uintX_t
2750 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2751 # ------------------------------------------------
2752 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2753 ac_fn_cxx_check_header_preproc ()
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2757 $as_echo_n "checking for $2... " >&6; }
2758 if eval \${$3+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2763 #include <$2>
2764 _ACEOF
2765 if ac_fn_cxx_try_cpp "$LINENO"; then :
2766 eval "$3=yes"
2767 else
2768 eval "$3=no"
2770 rm -f conftest.err conftest.i conftest.$ac_ext
2772 eval ac_res=\$$3
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2774 $as_echo "$ac_res" >&6; }
2775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777 } # ac_fn_cxx_check_header_preproc
2779 # ac_fn_cxx_check_func LINENO FUNC VAR
2780 # ------------------------------------
2781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2782 ac_fn_cxx_check_func ()
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2794 #define $2 innocuous_$2
2796 /* System header to define __stub macros and hopefully few prototypes,
2797 which can conflict with char $2 (); below.
2798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2799 <limits.h> exists even on freestanding compilers. */
2801 #ifdef __STDC__
2802 # include <limits.h>
2803 #else
2804 # include <assert.h>
2805 #endif
2807 #undef $2
2809 /* Override any GCC internal prototype to avoid an error.
2810 Use char because int might match the return type of a GCC
2811 builtin and then its argument prototype would still apply. */
2812 #ifdef __cplusplus
2813 extern "C"
2814 #endif
2815 char $2 ();
2816 /* The GNU C library defines this for functions which it implements
2817 to always fail with ENOSYS. Some functions are actually named
2818 something starting with __ and the normal name is an alias. */
2819 #if defined __stub_$2 || defined __stub___$2
2820 choke me
2821 #endif
2824 main ()
2826 return $2 ();
2828 return 0;
2830 _ACEOF
2831 if ac_fn_cxx_try_link "$LINENO"; then :
2832 eval "$3=yes"
2833 else
2834 eval "$3=no"
2836 rm -f core conftest.err conftest.$ac_objext \
2837 conftest$ac_exeext conftest.$ac_ext
2839 eval ac_res=\$$3
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2841 $as_echo "$ac_res" >&6; }
2842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 } # ac_fn_cxx_check_func
2846 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2847 # -----------------------------------------------
2848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2849 # accordingly.
2850 ac_fn_cxx_check_decl ()
2852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853 as_decl_name=`echo $2|sed 's/ *(.*//'`
2854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2857 if eval \${$3+:} false; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2864 main ()
2866 #ifndef $as_decl_name
2867 #ifdef __cplusplus
2868 (void) $as_decl_use;
2869 #else
2870 (void) $as_decl_name;
2871 #endif
2872 #endif
2875 return 0;
2877 _ACEOF
2878 if ac_fn_cxx_try_compile "$LINENO"; then :
2879 eval "$3=yes"
2880 else
2881 eval "$3=no"
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 eval ac_res=\$$3
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2887 $as_echo "$ac_res" >&6; }
2888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 } # ac_fn_cxx_check_decl
2892 # ac_fn_c_try_link LINENO
2893 # -----------------------
2894 # Try to link conftest.$ac_ext, and return whether this succeeded.
2895 ac_fn_c_try_link ()
2897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2898 rm -f conftest.$ac_objext conftest$ac_exeext
2899 if { { ac_try="$ac_link"
2900 case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903 esac
2904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2905 $as_echo "$ac_try_echo"; } >&5
2906 (eval "$ac_link") 2>conftest.err
2907 ac_status=$?
2908 if test -s conftest.err; then
2909 grep -v '^ *+' conftest.err >conftest.er1
2910 cat conftest.er1 >&5
2911 mv -f conftest.er1 conftest.err
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest$ac_exeext && {
2918 test "$cross_compiling" = yes ||
2919 test -x conftest$ac_exeext
2920 }; then :
2921 ac_retval=0
2922 else
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_retval=1
2928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2930 # interfere with the next link command; also delete a directory that is
2931 # left behind by Apple's compiler. We do this before executing the actions.
2932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2934 as_fn_set_status $ac_retval
2936 } # ac_fn_c_try_link
2938 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2939 # ----------------------------------------------
2940 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2941 ac_fn_c_check_header_preproc ()
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2945 $as_echo_n "checking for $2... " >&6; }
2946 if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2951 #include <$2>
2952 _ACEOF
2953 if ac_fn_c_try_cpp "$LINENO"; then :
2954 eval "$3=yes"
2955 else
2956 eval "$3=no"
2958 rm -f conftest.err conftest.i conftest.$ac_ext
2960 eval ac_res=\$$3
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2962 $as_echo "$ac_res" >&6; }
2963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2965 } # ac_fn_c_check_header_preproc
2967 # ac_fn_c_check_func LINENO FUNC VAR
2968 # ----------------------------------
2969 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2970 ac_fn_c_check_func ()
2972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2974 $as_echo_n "checking for $2... " >&6; }
2975 if eval \${$3+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979 /* end confdefs.h. */
2980 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2982 #define $2 innocuous_$2
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $2 (); below.
2986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2987 <limits.h> exists even on freestanding compilers. */
2989 #ifdef __STDC__
2990 # include <limits.h>
2991 #else
2992 # include <assert.h>
2993 #endif
2995 #undef $2
2997 /* Override any GCC internal prototype to avoid an error.
2998 Use char because int might match the return type of a GCC
2999 builtin and then its argument prototype would still apply. */
3000 #ifdef __cplusplus
3001 extern "C"
3002 #endif
3003 char $2 ();
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined __stub_$2 || defined __stub___$2
3008 choke me
3009 #endif
3012 main ()
3014 return $2 ();
3016 return 0;
3018 _ACEOF
3019 if ac_fn_c_try_link "$LINENO"; then :
3020 eval "$3=yes"
3021 else
3022 eval "$3=no"
3024 rm -f core conftest.err conftest.$ac_objext \
3025 conftest$ac_exeext conftest.$ac_ext
3027 eval ac_res=\$$3
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3029 $as_echo "$ac_res" >&6; }
3030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3032 } # ac_fn_c_check_func
3033 cat >config.log <<_ACEOF
3034 This file contains any messages produced by compilers while
3035 running configure, to aid debugging if configure makes a mistake.
3037 It was created by $as_me, which was
3038 generated by GNU Autoconf 2.69. Invocation command line was
3040 $ $0 $@
3042 _ACEOF
3043 exec 5>>config.log
3045 cat <<_ASUNAME
3046 ## --------- ##
3047 ## Platform. ##
3048 ## --------- ##
3050 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3051 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3052 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3053 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3054 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3056 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3057 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3059 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3060 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3061 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3062 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3063 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3064 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3065 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3067 _ASUNAME
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 $as_echo "PATH: $as_dir"
3075 done
3076 IFS=$as_save_IFS
3078 } >&5
3080 cat >&5 <<_ACEOF
3083 ## ----------- ##
3084 ## Core tests. ##
3085 ## ----------- ##
3087 _ACEOF
3090 # Keep a trace of the command line.
3091 # Strip out --no-create and --no-recursion so they do not pile up.
3092 # Strip out --silent because we don't want to record it for future runs.
3093 # Also quote any args containing shell meta-characters.
3094 # Make two passes to allow for proper duplicate-argument suppression.
3095 ac_configure_args=
3096 ac_configure_args0=
3097 ac_configure_args1=
3098 ac_must_keep_next=false
3099 for ac_pass in 1 2
3101 for ac_arg
3103 case $ac_arg in
3104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3106 | -silent | --silent | --silen | --sile | --sil)
3107 continue ;;
3108 *\'*)
3109 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3110 esac
3111 case $ac_pass in
3112 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3114 as_fn_append ac_configure_args1 " '$ac_arg'"
3115 if test $ac_must_keep_next = true; then
3116 ac_must_keep_next=false # Got value, back to normal.
3117 else
3118 case $ac_arg in
3119 *=* | --config-cache | -C | -disable-* | --disable-* \
3120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3122 | -with-* | --with-* | -without-* | --without-* | --x)
3123 case "$ac_configure_args0 " in
3124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3125 esac
3127 -* ) ac_must_keep_next=true ;;
3128 esac
3130 as_fn_append ac_configure_args " '$ac_arg'"
3132 esac
3133 done
3134 done
3135 { ac_configure_args0=; unset ac_configure_args0;}
3136 { ac_configure_args1=; unset ac_configure_args1;}
3138 # When interrupted or exit'd, cleanup temporary files, and complete
3139 # config.log. We remove comments because anyway the quotes in there
3140 # would cause problems or look ugly.
3141 # WARNING: Use '\'' to represent an apostrophe within the trap.
3142 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3143 trap 'exit_status=$?
3144 # Save into config.log some information that might help in debugging.
3146 echo
3148 $as_echo "## ---------------- ##
3149 ## Cache variables. ##
3150 ## ---------------- ##"
3151 echo
3152 # The following way of writing the cache mishandles newlines in values,
3154 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3155 eval ac_val=\$$ac_var
3156 case $ac_val in #(
3157 *${as_nl}*)
3158 case $ac_var in #(
3159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3161 esac
3162 case $ac_var in #(
3163 _ | IFS | as_nl) ;; #(
3164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3165 *) { eval $ac_var=; unset $ac_var;} ;;
3166 esac ;;
3167 esac
3168 done
3169 (set) 2>&1 |
3170 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3171 *${as_nl}ac_space=\ *)
3172 sed -n \
3173 "s/'\''/'\''\\\\'\'''\''/g;
3174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3175 ;; #(
3177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3179 esac |
3180 sort
3182 echo
3184 $as_echo "## ----------------- ##
3185 ## Output variables. ##
3186 ## ----------------- ##"
3187 echo
3188 for ac_var in $ac_subst_vars
3190 eval ac_val=\$$ac_var
3191 case $ac_val in
3192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3193 esac
3194 $as_echo "$ac_var='\''$ac_val'\''"
3195 done | sort
3196 echo
3198 if test -n "$ac_subst_files"; then
3199 $as_echo "## ------------------- ##
3200 ## File substitutions. ##
3201 ## ------------------- ##"
3202 echo
3203 for ac_var in $ac_subst_files
3205 eval ac_val=\$$ac_var
3206 case $ac_val in
3207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3208 esac
3209 $as_echo "$ac_var='\''$ac_val'\''"
3210 done | sort
3211 echo
3214 if test -s confdefs.h; then
3215 $as_echo "## ----------- ##
3216 ## confdefs.h. ##
3217 ## ----------- ##"
3218 echo
3219 cat confdefs.h
3220 echo
3222 test "$ac_signal" != 0 &&
3223 $as_echo "$as_me: caught signal $ac_signal"
3224 $as_echo "$as_me: exit $exit_status"
3225 } >&5
3226 rm -f core *.core core.conftest.* &&
3227 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3228 exit $exit_status
3230 for ac_signal in 1 2 13 15; do
3231 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3232 done
3233 ac_signal=0
3235 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3236 rm -f -r conftest* confdefs.h
3238 $as_echo "/* confdefs.h */" > confdefs.h
3240 # Predefined preprocessor variables.
3242 cat >>confdefs.h <<_ACEOF
3243 #define PACKAGE_NAME "$PACKAGE_NAME"
3244 _ACEOF
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3248 _ACEOF
3250 cat >>confdefs.h <<_ACEOF
3251 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3252 _ACEOF
3254 cat >>confdefs.h <<_ACEOF
3255 #define PACKAGE_STRING "$PACKAGE_STRING"
3256 _ACEOF
3258 cat >>confdefs.h <<_ACEOF
3259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3260 _ACEOF
3262 cat >>confdefs.h <<_ACEOF
3263 #define PACKAGE_URL "$PACKAGE_URL"
3264 _ACEOF
3267 # Let the site file select an alternate cache file if it wants to.
3268 # Prefer an explicitly selected file to automatically selected ones.
3269 ac_site_file1=NONE
3270 ac_site_file2=NONE
3271 if test -n "$CONFIG_SITE"; then
3272 # We do not want a PATH search for config.site.
3273 case $CONFIG_SITE in #((
3274 -*) ac_site_file1=./$CONFIG_SITE;;
3275 */*) ac_site_file1=$CONFIG_SITE;;
3276 *) ac_site_file1=./$CONFIG_SITE;;
3277 esac
3278 elif test "x$prefix" != xNONE; then
3279 ac_site_file1=$prefix/share/config.site
3280 ac_site_file2=$prefix/etc/config.site
3281 else
3282 ac_site_file1=$ac_default_prefix/share/config.site
3283 ac_site_file2=$ac_default_prefix/etc/config.site
3285 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3287 test "x$ac_site_file" = xNONE && continue
3288 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3290 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3291 sed 's/^/| /' "$ac_site_file" >&5
3292 . "$ac_site_file" \
3293 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "failed to load site script $ac_site_file
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 done
3300 if test -r "$cache_file"; then
3301 # Some versions of bash will fail to source /dev/null (special files
3302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3305 $as_echo "$as_me: loading cache $cache_file" >&6;}
3306 case $cache_file in
3307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3308 *) . "./$cache_file";;
3309 esac
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3313 $as_echo "$as_me: creating cache $cache_file" >&6;}
3314 >$cache_file
3317 gt_needs="$gt_needs "
3318 # Check that the precious variables saved in the cache have kept the same
3319 # value.
3320 ac_cache_corrupted=false
3321 for ac_var in $ac_precious_vars; do
3322 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3323 eval ac_new_set=\$ac_env_${ac_var}_set
3324 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3325 eval ac_new_val=\$ac_env_${ac_var}_value
3326 case $ac_old_set,$ac_new_set in
3327 set,)
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3330 ac_cache_corrupted=: ;;
3331 ,set)
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3334 ac_cache_corrupted=: ;;
3335 ,);;
3337 if test "x$ac_old_val" != "x$ac_new_val"; then
3338 # differences in whitespace do not lead to failure.
3339 ac_old_val_w=`echo x $ac_old_val`
3340 ac_new_val_w=`echo x $ac_new_val`
3341 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3344 ac_cache_corrupted=:
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3348 eval $ac_var=\$ac_old_val
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3351 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3353 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3354 fi;;
3355 esac
3356 # Pass precious variables to config.status.
3357 if test "$ac_new_set" = set; then
3358 case $ac_new_val in
3359 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3360 *) ac_arg=$ac_var=$ac_new_val ;;
3361 esac
3362 case " $ac_configure_args " in
3363 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3364 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3365 esac
3367 done
3368 if $ac_cache_corrupted; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3373 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3375 ## -------------------- ##
3376 ## Main body of script. ##
3377 ## -------------------- ##
3379 ac_ext=c
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3394 gcc_version=`cat $srcdir/BASE-VER`
3396 # Determine the host, build, and target systems
3397 ac_aux_dir=
3398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3399 if test -f "$ac_dir/install-sh"; then
3400 ac_aux_dir=$ac_dir
3401 ac_install_sh="$ac_aux_dir/install-sh -c"
3402 break
3403 elif test -f "$ac_dir/install.sh"; then
3404 ac_aux_dir=$ac_dir
3405 ac_install_sh="$ac_aux_dir/install.sh -c"
3406 break
3407 elif test -f "$ac_dir/shtool"; then
3408 ac_aux_dir=$ac_dir
3409 ac_install_sh="$ac_aux_dir/shtool install -c"
3410 break
3412 done
3413 if test -z "$ac_aux_dir"; then
3414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3417 # These three variables are undocumented and unsupported,
3418 # and are intended to be withdrawn in a future Autoconf release.
3419 # They can cause serious problems if a builder's source tree is in a directory
3420 # whose full name contains unusual characters.
3421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426 # Make sure we can run config.sub.
3427 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3431 $as_echo_n "checking build system type... " >&6; }
3432 if ${ac_cv_build+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 ac_build_alias=$build_alias
3436 test "x$ac_build_alias" = x &&
3437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3438 test "x$ac_build_alias" = x &&
3439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3440 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3445 $as_echo "$ac_cv_build" >&6; }
3446 case $ac_cv_build in
3447 *-*-*) ;;
3448 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3449 esac
3450 build=$ac_cv_build
3451 ac_save_IFS=$IFS; IFS='-'
3452 set x $ac_cv_build
3453 shift
3454 build_cpu=$1
3455 build_vendor=$2
3456 shift; shift
3457 # Remember, the first character of IFS is used to create $*,
3458 # except with old shells:
3459 build_os=$*
3460 IFS=$ac_save_IFS
3461 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3465 $as_echo_n "checking host system type... " >&6; }
3466 if ${ac_cv_host+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test "x$host_alias" = x; then
3470 ac_cv_host=$ac_cv_build
3471 else
3472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3478 $as_echo "$ac_cv_host" >&6; }
3479 case $ac_cv_host in
3480 *-*-*) ;;
3481 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3482 esac
3483 host=$ac_cv_host
3484 ac_save_IFS=$IFS; IFS='-'
3485 set x $ac_cv_host
3486 shift
3487 host_cpu=$1
3488 host_vendor=$2
3489 shift; shift
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3492 host_os=$*
3493 IFS=$ac_save_IFS
3494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3498 $as_echo_n "checking target system type... " >&6; }
3499 if ${ac_cv_target+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test "x$target_alias" = x; then
3503 ac_cv_target=$ac_cv_host
3504 else
3505 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3511 $as_echo "$ac_cv_target" >&6; }
3512 case $ac_cv_target in
3513 *-*-*) ;;
3514 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3515 esac
3516 target=$ac_cv_target
3517 ac_save_IFS=$IFS; IFS='-'
3518 set x $ac_cv_target
3519 shift
3520 target_cpu=$1
3521 target_vendor=$2
3522 shift; shift
3523 # Remember, the first character of IFS is used to create $*,
3524 # except with old shells:
3525 target_os=$*
3526 IFS=$ac_save_IFS
3527 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3530 # The aliases save the names the user supplied, while $host etc.
3531 # will get canonicalized.
3532 test -n "$target_alias" &&
3533 test "$program_prefix$program_suffix$program_transform_name" = \
3534 NONENONEs,x,x, &&
3535 program_prefix=${target_alias}-
3537 # Determine the noncanonical host name, for Ada.
3538 case ${build_alias} in
3539 "") build_noncanonical=${build} ;;
3540 *) build_noncanonical=${build_alias} ;;
3541 esac
3543 case ${host_alias} in
3544 "") host_noncanonical=${build_noncanonical} ;;
3545 *) host_noncanonical=${host_alias} ;;
3546 esac
3551 # Determine the noncanonical target name, for directory use.
3552 case ${target_alias} in
3553 "") target_noncanonical=${host_noncanonical} ;;
3554 *) target_noncanonical=${target_alias} ;;
3555 esac
3560 # Used for constructing correct paths for offload compilers.
3561 real_target_noncanonical=${target_noncanonical}
3562 accel_dir_suffix=
3564 # Determine the target- and build-specific subdirectories
3566 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3567 # have matching libraries, they should use host libraries: Makefile.tpl
3568 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3569 # However, they still use the build modules, because the corresponding
3570 # host modules (e.g. bison) are only built for the host when bootstrap
3571 # finishes. So:
3572 # - build_subdir is where we find build modules, and never changes.
3573 # - build_libsubdir is where we find build libraries, and can be overridden.
3575 # Prefix 'build-' so this never conflicts with target_subdir.
3576 build_subdir="build-${build_noncanonical}"
3578 # Check whether --with-build-libsubdir was given.
3579 if test "${with_build_libsubdir+set}" = set; then :
3580 withval=$with_build_libsubdir; build_libsubdir="$withval"
3581 else
3582 build_libsubdir="$build_subdir"
3585 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3586 if ( test $srcdir = . && test -d gcc ) \
3587 || test -d $srcdir/../host-${host_noncanonical}; then
3588 host_subdir="host-${host_noncanonical}"
3589 else
3590 host_subdir=.
3592 # No prefix.
3593 target_subdir=${target_noncanonical}
3596 # Set program_transform_name
3597 test "$program_prefix" != NONE &&
3598 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3599 # Use a double $ so make ignores it.
3600 test "$program_suffix" != NONE &&
3601 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3602 # Double any \ or $.
3603 # By default was `s,x,x', remove it if useless.
3604 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3605 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608 # Check for bogus environment variables.
3609 # Test if LIBRARY_PATH contains the notation for the current directory
3610 # since this would lead to problems installing/building glibc.
3611 # LIBRARY_PATH contains the current directory if one of the following
3612 # is true:
3613 # - one of the terminals (":" and ";") is the first or last sign
3614 # - two terminals occur directly after each other
3615 # - the path contains an element with a dot in it
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3617 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3618 case ${LIBRARY_PATH} in
3619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3620 library_path_setting="contains current directory"
3623 library_path_setting="ok"
3625 esac
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3627 $as_echo "$library_path_setting" >&6; }
3628 if test "$library_path_setting" != "ok"; then
3629 as_fn_error $? "
3630 *** LIBRARY_PATH shouldn't contain the current directory when
3631 *** building gcc. Please change the environment variable
3632 *** and run configure again." "$LINENO" 5
3635 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3636 # since this would lead to problems installing/building glibc.
3637 # GCC_EXEC_PREFIX contains the current directory if one of the following
3638 # is true:
3639 # - one of the terminals (":" and ";") is the first or last sign
3640 # - two terminals occur directly after each other
3641 # - the path contains an element with a dot in it
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3643 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3644 case ${GCC_EXEC_PREFIX} in
3645 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3646 gcc_exec_prefix_setting="contains current directory"
3649 gcc_exec_prefix_setting="ok"
3651 esac
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3653 $as_echo "$gcc_exec_prefix_setting" >&6; }
3654 if test "$gcc_exec_prefix_setting" != "ok"; then
3655 as_fn_error $? "
3656 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3657 *** building gcc. Please change the environment variable
3658 *** and run configure again." "$LINENO" 5
3661 # -----------
3662 # Directories
3663 # -----------
3665 # Specify the local prefix
3666 local_prefix=
3668 # Check whether --with-local-prefix was given.
3669 if test "${with_local_prefix+set}" = set; then :
3670 withval=$with_local_prefix; case "${withval}" in
3671 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3672 no) ;;
3673 *) local_prefix=$with_local_prefix ;;
3674 esac
3678 # Default local prefix if it is empty
3679 if test x$local_prefix = x; then
3680 local_prefix=/usr/local
3684 # Check whether --with-native-system-header-dir was given.
3685 if test "${with_native_system_header_dir+set}" = set; then :
3686 withval=$with_native_system_header_dir;
3687 case ${with_native_system_header_dir} in
3688 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3689 /* | [A-Za-z]:[\\/]*) ;;
3690 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3691 esac
3692 configured_native_system_header_dir="${withval}"
3694 else
3695 configured_native_system_header_dir=
3700 # Check whether --with-build-sysroot was given.
3701 if test "${with_build_sysroot+set}" = set; then :
3702 withval=$with_build_sysroot; if test x"$withval" != x ; then
3703 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3705 else
3706 SYSROOT_CFLAGS_FOR_TARGET=
3711 if test "x$prefix" = xNONE; then
3712 test_prefix=/usr/local
3713 else
3714 test_prefix=$prefix
3716 if test "x$exec_prefix" = xNONE; then
3717 test_exec_prefix=$test_prefix
3718 else
3719 test_exec_prefix=$exec_prefix
3723 # Check whether --with-sysroot was given.
3724 if test "${with_sysroot+set}" = set; then :
3725 withval=$with_sysroot;
3726 case ${with_sysroot} in
3727 /) ;;
3728 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3729 esac
3730 case ${with_sysroot} in
3731 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3732 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3733 esac
3735 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3736 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3738 case ${TARGET_SYSTEM_ROOT} in
3739 "${test_prefix}"|"${test_prefix}/"*|\
3740 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3741 '${prefix}'|'${prefix}/'*|\
3742 '${exec_prefix}'|'${exec_prefix}/'*)
3743 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3744 TARGET_SYSTEM_ROOT_DEFINE="$t"
3746 esac
3748 else
3750 TARGET_SYSTEM_ROOT=
3751 TARGET_SYSTEM_ROOT_DEFINE=
3752 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3760 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3761 # passed in by the toplevel make and thus we'd get different behavior
3762 # depending on where we built the sources.
3763 gcc_gxx_include_dir=
3764 # Specify the g++ header file directory
3766 # Check whether --with-gxx-include-dir was given.
3767 if test "${with_gxx_include_dir+set}" = set; then :
3768 withval=$with_gxx_include_dir; case "${withval}" in
3769 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3770 no) ;;
3771 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3772 esac
3776 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3777 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3778 # relative to the sysroot.
3779 gcc_gxx_include_dir_add_sysroot=0
3781 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3782 if test x${gcc_gxx_include_dir} = x; then
3783 if test x${enable_version_specific_runtime_libs} = xyes; then
3784 gcc_gxx_include_dir='${libsubdir}/include/c++'
3785 else
3786 libstdcxx_incdir='include/c++/$(version)'
3787 if test x$host != x$target; then
3788 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3790 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3792 elif test "${with_sysroot+set}" = set; then
3793 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3794 if test "${gcc_gxx_without_sysroot}"; then
3795 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3796 gcc_gxx_include_dir_add_sysroot=1
3800 # Configuration for an alternate set of C++ headers.
3801 gcc_gxx_libcxx_include_dir=
3802 # Specify the alternate g++ header file directory
3804 # Check whether --with-gxx-libcxx-include-dir was given.
3805 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3806 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3807 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3808 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3809 esac
3813 # --with-gxx-libcxx-include-dir controls the enabling of the -stdlib option.
3814 # if --with-gxx-libcxx-include-dir is 'no' we disable the stdlib option.
3815 # if --with-gxx-libcxx-include-dir is unset we enable the stdlib option
3816 # based on the platform (to be available on platform versions where it is the
3817 # default for the system tools). We also use a default path within the compiler
3818 # install tree.
3819 # Otherwise, we use the path provided and enable the stdlib option.
3820 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3821 # check to see if the latter starts with the former and, upon success, compute
3822 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3823 gcc_gxx_libcxx_include_dir_add_sysroot=0
3824 gcc_enable_stdlib_opt=0
3825 if test x${gcc_gxx_libcxx_include_dir} != x; then
3826 if test x${gcc_gxx_libcxx_include_dir} = xno; then
3827 # set defaults for the dir, but the option is disabled anyway.
3828 gcc_gxx_libcxx_include_dir=
3829 else
3830 gcc_enable_stdlib_opt=1
3832 else
3833 case $target in
3834 *-darwin1[1-9]* | *-darwin2*)
3835 # Default this on for Darwin versions which default to libcxx,
3836 # and embed the path in the compiler install so that we get a
3837 # self-contained toolchain.
3838 gcc_enable_stdlib_opt=1
3840 *) ;;
3841 esac
3844 cat >>confdefs.h <<_ACEOF
3845 #define ENABLE_STDLIB_OPTION $gcc_enable_stdlib_opt
3846 _ACEOF
3849 # Sysroot behaviour as for gxx-include-dir
3850 if test x${gcc_gxx_libcxx_include_dir} = x; then
3851 # default path,embedded in the compiler tree.
3852 libcxx_incdir='include/c++/v1'
3853 if test x${enable_version_specific_runtime_libs} = xyes; then
3854 gcc_gxx_libcxx_include_dir='${libsubdir}/$libcxx_incdir'
3855 else
3856 if test x$host != x$target; then
3857 libcxx_incdir="$target_alias/$libcxx_incdir"
3859 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3861 elif test "${with_sysroot+set}" = set; then
3862 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3863 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3864 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3865 gcc_gxx_libcxx_include_dir_add_sysroot=1
3870 # Check whether --with-cpp_install_dir was given.
3871 if test "${with_cpp_install_dir+set}" = set; then :
3872 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3873 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3874 elif test x$withval != xno; then
3875 cpp_install_dir=$withval
3880 # We would like to our source tree to be readonly. However when releases or
3881 # pre-releases are generated, the flex/bison generated files as well as the
3882 # various formats of manuals need to be included along with the rest of the
3883 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3884 # just that.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3887 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3888 # Check whether --enable-generated-files-in-srcdir was given.
3889 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3890 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3891 else
3892 generated_files_in_srcdir=no
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3897 $as_echo "$generated_files_in_srcdir" >&6; }
3899 if test "$generated_files_in_srcdir" = "yes"; then
3900 GENINSRC=''
3901 else
3902 GENINSRC='#'
3906 # -------------------
3907 # Find default linker
3908 # -------------------
3910 # With GNU ld
3912 # Check whether --with-gnu-ld was given.
3913 if test "${with_gnu_ld+set}" = set; then :
3914 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3915 else
3916 gnu_ld_flag=no
3920 case $target in
3921 *darwin*)
3922 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3923 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3926 ld64_flag=no
3927 dsymutil_flag=no
3929 esac
3931 # With pre-defined ld
3933 # Check whether --with-ld was given.
3934 if test "${with_ld+set}" = set; then :
3935 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3938 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3939 if test ! -x "$DEFAULT_LINKER"; then
3940 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3941 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3942 gnu_ld_flag=yes
3943 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3944 ld64_flag=yes
3947 cat >>confdefs.h <<_ACEOF
3948 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3949 _ACEOF
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3954 $as_echo_n "checking whether a default linker was specified... " >&6; }
3955 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3956 if test x"$gnu_ld_flag" = x"no"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3958 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3961 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 # With demangler in GNU ld
3970 # Check whether --with-demangler-in-ld was given.
3971 if test "${with_demangler_in_ld+set}" = set; then :
3972 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3973 else
3974 demangler_in_ld=yes
3978 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3980 # Check whether --with-dsymutil was given.
3981 if test "${with_dsymutil+set}" = set; then :
3982 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3986 dsymutil_vers=
3987 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3988 if test ! -x "$DEFAULT_DSYMUTIL"; then
3989 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3990 else
3991 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3992 dsymutil_flag=yes
3996 cat >>confdefs.h <<_ACEOF
3997 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3998 _ACEOF
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
4003 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
4004 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
4006 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4012 # ----------------------
4013 # Find default assembler
4014 # ----------------------
4016 # With GNU as
4018 # Check whether --with-gnu-as was given.
4019 if test "${with_gnu_as+set}" = set; then :
4020 withval=$with_gnu_as; gas_flag="$with_gnu_as"
4021 else
4022 gas_flag=no
4027 # Check whether --with-as was given.
4028 if test "${with_as+set}" = set; then :
4029 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
4032 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4033 if test ! -x "$DEFAULT_ASSEMBLER"; then
4034 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
4035 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
4036 gas_flag=yes
4039 cat >>confdefs.h <<_ACEOF
4040 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
4041 _ACEOF
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
4046 $as_echo_n "checking whether a default assembler was specified... " >&6; }
4047 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
4048 if test x"$gas_flag" = x"no"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
4050 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
4053 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4060 # ---------------
4061 # Find C compiler
4062 # ---------------
4064 # If a non-executable a.out is present (e.g. created by GNU as above even if
4065 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
4066 # file, even when creating an executable, so an execution test fails.
4067 # Remove possible default executable files to avoid this.
4069 # FIXME: This really belongs into AC_PROG_CC and can be removed once
4070 # Autoconf includes it.
4071 rm -f a.out a.exe b.out
4073 # Find the native compiler
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4118 if test -z "$ac_cv_prog_CC"; then
4119 ac_ct_CC=$CC
4120 # Extract the first word of "gcc", so it can be a program name with args.
4121 set dummy gcc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$ac_ct_CC"; then
4128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_CC="gcc"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4148 if test -n "$ac_ct_CC"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4150 $as_echo "$ac_ct_CC" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4156 if test "x$ac_ct_CC" = x; then
4157 CC=""
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 CC=$ac_ct_CC
4167 else
4168 CC="$ac_cv_prog_CC"
4171 if test -z "$CC"; then
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}cc; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_CC+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$CC"; then
4181 ac_cv_prog_CC="$CC" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_CC="${ac_tool_prefix}cc"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 CC=$ac_cv_prog_CC
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4212 if test -z "$CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_CC+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223 ac_prog_rejected=no
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected=yes
4233 continue
4235 ac_cv_prog_CC="cc"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4243 if test $ac_prog_rejected = yes; then
4244 # We found a bogon in the path, so make sure we never use it.
4245 set dummy $ac_cv_prog_CC
4246 shift
4247 if test $# != 0; then
4248 # We chose a different compiler from the bogus one.
4249 # However, it has the same basename, so the bogon will be chosen
4250 # first if we set CC to just the basename; use the full file name.
4251 shift
4252 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4257 CC=$ac_cv_prog_CC
4258 if test -n "$CC"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4260 $as_echo "$CC" >&6; }
4261 else
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 if test -z "$CC"; then
4269 if test -n "$ac_tool_prefix"; then
4270 for ac_prog in cl.exe
4272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 CC=$ac_cv_prog_CC
4300 if test -n "$CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 $as_echo "$CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$CC" && break
4310 done
4312 if test -z "$CC"; then
4313 ac_ct_CC=$CC
4314 for ac_prog in cl.exe
4316 # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -n "$ac_ct_CC"; then
4324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_CC="$ac_prog"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4346 $as_echo "$ac_ct_CC" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4353 test -n "$ac_ct_CC" && break
4354 done
4356 if test "x$ac_ct_CC" = x; then
4357 CC=""
4358 else
4359 case $cross_compiling:$ac_tool_warned in
4360 yes:)
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4363 ac_tool_warned=yes ;;
4364 esac
4365 CC=$ac_ct_CC
4372 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error $? "no acceptable C compiler found in \$PATH
4375 See \`config.log' for more details" "$LINENO" 5; }
4377 # Provide some information about the compiler.
4378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4379 set X $ac_compile
4380 ac_compiler=$2
4381 for ac_option in --version -v -V -qversion; do
4382 { { ac_try="$ac_compiler $ac_option >&5"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4390 ac_status=$?
4391 if test -s conftest.err; then
4392 sed '10a\
4393 ... rest of stderr output deleted ...
4394 10q' conftest.err >conftest.er1
4395 cat conftest.er1 >&5
4397 rm -f conftest.er1 conftest.err
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }
4400 done
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4406 main ()
4410 return 0;
4412 _ACEOF
4413 ac_clean_files_save=$ac_clean_files
4414 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4415 # Try to create an executable without -o first, disregard a.out.
4416 # It will help us diagnose broken compilers, and finding out an intuition
4417 # of exeext.
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4419 $as_echo_n "checking whether the C compiler works... " >&6; }
4420 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4422 # The possible output files:
4423 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4425 ac_rmfiles=
4426 for ac_file in $ac_files
4428 case $ac_file in
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4431 esac
4432 done
4433 rm -f $ac_rmfiles
4435 if { { ac_try="$ac_link_default"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_link_default") 2>&5
4443 ac_status=$?
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }; then :
4446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4449 # so that the user can short-circuit this test for compilers unknown to
4450 # Autoconf.
4451 for ac_file in $ac_files ''
4453 test -f "$ac_file" || continue
4454 case $ac_file in
4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4457 [ab].out )
4458 # We found the default executable, but exeext='' is most
4459 # certainly right.
4460 break;;
4461 *.* )
4462 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4463 then :; else
4464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4466 # We set ac_cv_exeext here because the later test for it is not
4467 # safe: cross compilers may not add the suffix if given an `-o'
4468 # argument, so we may need to know it at that point already.
4469 # Even if this section looks crufty: it has the advantage of
4470 # actually working.
4471 break;;
4473 break;;
4474 esac
4475 done
4476 test "$ac_cv_exeext" = no && ac_cv_exeext=
4478 else
4479 ac_file=''
4481 if test -z "$ac_file"; then :
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 $as_echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error 77 "C compiler cannot create executables
4490 See \`config.log' for more details" "$LINENO" 5; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4493 $as_echo "yes" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4496 $as_echo_n "checking for C compiler default output file name... " >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4498 $as_echo "$ac_file" >&6; }
4499 ac_exeext=$ac_cv_exeext
4501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4502 ac_clean_files=$ac_clean_files_save
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4504 $as_echo_n "checking for suffix of executables... " >&6; }
4505 if { { ac_try="$ac_link"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_link") 2>&5
4513 ac_status=$?
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }; then :
4516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4518 # work properly (i.e., refer to `conftest.exe'), while it won't with
4519 # `rm'.
4520 for ac_file in conftest.exe conftest conftest.*; do
4521 test -f "$ac_file" || continue
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4525 break;;
4526 * ) break;;
4527 esac
4528 done
4529 else
4530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4532 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4533 See \`config.log' for more details" "$LINENO" 5; }
4535 rm -f conftest conftest$ac_cv_exeext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4537 $as_echo "$ac_cv_exeext" >&6; }
4539 rm -f conftest.$ac_ext
4540 EXEEXT=$ac_cv_exeext
4541 ac_exeext=$EXEEXT
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdio.h>
4546 main ()
4548 FILE *f = fopen ("conftest.out", "w");
4549 return ferror (f) || fclose (f) != 0;
4552 return 0;
4554 _ACEOF
4555 ac_clean_files="$ac_clean_files conftest.out"
4556 # Check that the compiler produces executables we can run. If not, either
4557 # the compiler is broken, or we cross compile.
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4559 $as_echo_n "checking whether we are cross compiling... " >&6; }
4560 if test "$cross_compiling" != yes; then
4561 { { ac_try="$ac_link"
4562 case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_link") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }
4572 if { ac_try='./conftest$ac_cv_exeext'
4573 { { case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4578 $as_echo "$ac_try_echo"; } >&5
4579 (eval "$ac_try") 2>&5
4580 ac_status=$?
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }; }; then
4583 cross_compiling=no
4584 else
4585 if test "$cross_compiling" = maybe; then
4586 cross_compiling=yes
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot run C compiled programs.
4591 If you meant to cross compile, use \`--host'.
4592 See \`config.log' for more details" "$LINENO" 5; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4597 $as_echo "$cross_compiling" >&6; }
4599 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4600 ac_clean_files=$ac_clean_files_save
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4602 $as_echo_n "checking for suffix of object files... " >&6; }
4603 if ${ac_cv_objext+:} false; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 rm -f conftest.o conftest.obj
4618 if { { ac_try="$ac_compile"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compile") 2>&5
4626 ac_status=$?
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; then :
4629 for ac_file in conftest.o conftest.obj conftest.*; do
4630 test -f "$ac_file" || continue;
4631 case $ac_file in
4632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4633 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4634 break;;
4635 esac
4636 done
4637 else
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4643 as_fn_error $? "cannot compute suffix of object files: cannot compile
4644 See \`config.log' for more details" "$LINENO" 5; }
4646 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4649 $as_echo "$ac_cv_objext" >&6; }
4650 OBJEXT=$ac_cv_objext
4651 ac_objext=$OBJEXT
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4653 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4654 if ${ac_cv_c_compiler_gnu+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4661 main ()
4663 #ifndef __GNUC__
4664 choke me
4665 #endif
4668 return 0;
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 ac_compiler_gnu=yes
4673 else
4674 ac_compiler_gnu=no
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4681 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4682 if test $ac_compiler_gnu = yes; then
4683 GCC=yes
4684 else
4685 GCC=
4687 ac_test_CFLAGS=${CFLAGS+set}
4688 ac_save_CFLAGS=$CFLAGS
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4690 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4691 if ${ac_cv_prog_cc_g+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 ac_save_c_werror_flag=$ac_c_werror_flag
4695 ac_c_werror_flag=yes
4696 ac_cv_prog_cc_g=no
4697 CFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4706 return 0;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_g=yes
4711 else
4712 CFLAGS=""
4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4717 main ()
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4726 else
4727 ac_c_werror_flag=$ac_save_c_werror_flag
4728 CFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 main ()
4737 return 0;
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_prog_cc_g=yes
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_c_werror_flag=$ac_save_c_werror_flag
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4751 $as_echo "$ac_cv_prog_cc_g" >&6; }
4752 if test "$ac_test_CFLAGS" = set; then
4753 CFLAGS=$ac_save_CFLAGS
4754 elif test $ac_cv_prog_cc_g = yes; then
4755 if test "$GCC" = yes; then
4756 CFLAGS="-g -O2"
4757 else
4758 CFLAGS="-g"
4760 else
4761 if test "$GCC" = yes; then
4762 CFLAGS="-O2"
4763 else
4764 CFLAGS=
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4768 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4769 if ${ac_cv_prog_cc_c89+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 ac_cv_prog_cc_c89=no
4773 ac_save_CC=$CC
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 #include <stdarg.h>
4777 #include <stdio.h>
4778 struct stat;
4779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4780 struct buf { int x; };
4781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4782 static char *e (p, i)
4783 char **p;
4784 int i;
4786 return p[i];
4788 static char *f (char * (*g) (char **, int), char **p, ...)
4790 char *s;
4791 va_list v;
4792 va_start (v,p);
4793 s = g (p, va_arg (v,int));
4794 va_end (v);
4795 return s;
4798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4799 function prototypes and stuff, but not '\xHH' hex character constants.
4800 These don't provoke an error unfortunately, instead are silently treated
4801 as 'x'. The following induces an error, until -std is added to get
4802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4803 array size at least. It's necessary to write '\x00'==0 to get something
4804 that's true only with -std. */
4805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4808 inside strings and character constants. */
4809 #define FOO(x) 'x'
4810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4812 int test (int i, double x);
4813 struct s1 {int (*f) (int a);};
4814 struct s2 {int (*f) (double a);};
4815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4816 int argc;
4817 char **argv;
4819 main ()
4821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4823 return 0;
4825 _ACEOF
4826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4829 CC="$ac_save_CC $ac_arg"
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 ac_cv_prog_cc_c89=$ac_arg
4833 rm -f core conftest.err conftest.$ac_objext
4834 test "x$ac_cv_prog_cc_c89" != "xno" && break
4835 done
4836 rm -f conftest.$ac_ext
4837 CC=$ac_save_CC
4840 # AC_CACHE_VAL
4841 case "x$ac_cv_prog_cc_c89" in
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4844 $as_echo "none needed" >&6; } ;;
4845 xno)
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847 $as_echo "unsupported" >&6; } ;;
4849 CC="$CC $ac_cv_prog_cc_c89"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4851 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4852 esac
4853 if test "x$ac_cv_prog_cc_c89" != xno; then :
4857 ac_ext=c
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 ac_ext=cpp
4864 ac_cpp='$CXXCPP $CPPFLAGS'
4865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868 if test -z "$CXX"; then
4869 if test -n "$CCC"; then
4870 CXX=$CCC
4871 else
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_prog_CXX+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$CXX"; then
4883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 CXX=$ac_cv_prog_CXX
4903 if test -n "$CXX"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4905 $as_echo "$CXX" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$CXX" && break
4913 done
4915 if test -z "$CXX"; then
4916 ac_ct_CXX=$CXX
4917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_CXX"; then
4927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_CXX="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4947 if test -n "$ac_ct_CXX"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4949 $as_echo "$ac_ct_CXX" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$ac_ct_CXX" && break
4957 done
4959 if test "x$ac_ct_CXX" = x; then
4960 CXX="g++"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963 yes:)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968 CXX=$ac_ct_CXX
4974 # Provide some information about the compiler.
4975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4976 set X $ac_compile
4977 ac_compiler=$2
4978 for ac_option in --version -v -V -qversion; do
4979 { { ac_try="$ac_compiler $ac_option >&5"
4980 case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4987 ac_status=$?
4988 if test -s conftest.err; then
4989 sed '10a\
4990 ... rest of stderr output deleted ...
4991 10q' conftest.err >conftest.er1
4992 cat conftest.er1 >&5
4994 rm -f conftest.er1 conftest.err
4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; }
4997 done
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5008 main ()
5010 #ifndef __GNUC__
5011 choke me
5012 #endif
5015 return 0;
5017 _ACEOF
5018 if ac_fn_cxx_try_compile "$LINENO"; then :
5019 ac_compiler_gnu=yes
5020 else
5021 ac_compiler_gnu=no
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5029 if test $ac_compiler_gnu = yes; then
5030 GXX=yes
5031 else
5032 GXX=
5034 ac_test_CXXFLAGS=${CXXFLAGS+set}
5035 ac_save_CXXFLAGS=$CXXFLAGS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5038 if ${ac_cv_prog_cxx_g+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5042 ac_cxx_werror_flag=yes
5043 ac_cv_prog_cxx_g=no
5044 CXXFLAGS="-g"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 main ()
5053 return 0;
5055 _ACEOF
5056 if ac_fn_cxx_try_compile "$LINENO"; then :
5057 ac_cv_prog_cxx_g=yes
5058 else
5059 CXXFLAGS=""
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5064 main ()
5068 return 0;
5070 _ACEOF
5071 if ac_fn_cxx_try_compile "$LINENO"; then :
5073 else
5074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5075 CXXFLAGS="-g"
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5080 main ()
5084 return 0;
5086 _ACEOF
5087 if ac_fn_cxx_try_compile "$LINENO"; then :
5088 ac_cv_prog_cxx_g=yes
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5099 if test "$ac_test_CXXFLAGS" = set; then
5100 CXXFLAGS=$ac_save_CXXFLAGS
5101 elif test $ac_cv_prog_cxx_g = yes; then
5102 if test "$GXX" = yes; then
5103 CXXFLAGS="-g -O2"
5104 else
5105 CXXFLAGS="-g"
5107 else
5108 if test "$GXX" = yes; then
5109 CXXFLAGS="-O2"
5110 else
5111 CXXFLAGS=
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_GNATBIND+:} false; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$GNATBIND"; then
5132 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 GNATBIND=$ac_cv_prog_GNATBIND
5152 if test -n "$GNATBIND"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5154 $as_echo "$GNATBIND" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_GNATBIND"; then
5163 ac_ct_GNATBIND=$GNATBIND
5164 # Extract the first word of "gnatbind", so it can be a program name with args.
5165 set dummy gnatbind; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$ac_ct_GNATBIND"; then
5172 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5192 if test -n "$ac_ct_GNATBIND"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5194 $as_echo "$ac_ct_GNATBIND" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_GNATBIND" = x; then
5201 GNATBIND="no"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209 GNATBIND=$ac_ct_GNATBIND
5211 else
5212 GNATBIND="$ac_cv_prog_GNATBIND"
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_GNATMAKE+:} false; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 if test -n "$GNATMAKE"; then
5224 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 break 2
5237 done
5238 done
5239 IFS=$as_save_IFS
5243 GNATMAKE=$ac_cv_prog_GNATMAKE
5244 if test -n "$GNATMAKE"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5246 $as_echo "$GNATMAKE" >&6; }
5247 else
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_GNATMAKE"; then
5255 ac_ct_GNATMAKE=$GNATMAKE
5256 # Extract the first word of "gnatmake", so it can be a program name with args.
5257 set dummy gnatmake; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -n "$ac_ct_GNATMAKE"; then
5264 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5265 else
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 break 2
5277 done
5278 done
5279 IFS=$as_save_IFS
5283 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5284 if test -n "$ac_ct_GNATMAKE"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5286 $as_echo "$ac_ct_GNATMAKE" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_GNATMAKE" = x; then
5293 GNATMAKE="no"
5294 else
5295 case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301 GNATMAKE=$ac_ct_GNATMAKE
5303 else
5304 GNATMAKE="$ac_cv_prog_GNATMAKE"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5308 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5309 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 cat >conftest.adb <<EOF
5313 pragma Warnings (Off);
5314 with System.CRTL;
5315 pragma Warnings (On);
5316 use type System.CRTL.int64;
5317 procedure conftest is begin null; end conftest;
5319 acx_cv_cc_gcc_supports_ada=no
5320 # There is a bug in old released versions of GCC which causes the
5321 # driver to exit successfully when the appropriate language module
5322 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5323 # Therefore we must check for the error message as well as an
5324 # unsuccessful exit.
5325 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5326 # given a .adb file, but produce no object file. So we must check
5327 # if an object file was really produced to guard against this.
5328 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5329 if test x"$errors" = x && test -f conftest.$ac_objext; then
5330 acx_cv_cc_gcc_supports_ada=yes
5332 rm -f conftest.*
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5335 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5337 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5338 have_gnat=yes
5339 else
5340 have_gnat=no
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_prog_GDC+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$GDC"; then
5354 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5367 done
5368 done
5369 IFS=$as_save_IFS
5373 GDC=$ac_cv_prog_GDC
5374 if test -n "$GDC"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5376 $as_echo "$GDC" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_GDC"; then
5385 ac_ct_GDC=$GDC
5386 # Extract the first word of "gdc", so it can be a program name with args.
5387 set dummy gdc; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$ac_ct_GDC"; then
5394 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403 ac_cv_prog_ac_ct_GDC="gdc"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5413 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5414 if test -n "$ac_ct_GDC"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5416 $as_echo "$ac_ct_GDC" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_GDC" = x; then
5423 GDC="no"
5424 else
5425 case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431 GDC=$ac_ct_GDC
5433 else
5434 GDC="$ac_cv_prog_GDC"
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5438 $as_echo_n "checking whether the D compiler works... " >&6; }
5439 if ${acx_cv_d_compiler_works+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 cat >conftest.d <<EOF
5443 module conftest; int main() { return 0; }
5445 acx_cv_d_compiler_works=no
5446 if test "x$GDC" != xno; then
5447 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5448 if test x"$errors" = x && test -f conftest.$ac_objext; then
5449 acx_cv_d_compiler_works=yes
5451 rm -f conftest.*
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5455 $as_echo "$acx_cv_d_compiler_works" >&6; }
5456 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5457 have_gdc=yes
5458 else
5459 have_gdc=no
5463 # Do configure tests with the C++ compiler, since that's what we build with.
5464 ac_ext=cpp
5465 ac_cpp='$CXXCPP $CPPFLAGS'
5466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5471 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5472 # optimizations to be activated explicitly by the toplevel.
5473 case "$CC" in
5474 */prev-gcc/xgcc*) ;;
5475 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5476 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5477 esac
5482 # Determine PICFLAG for target gnatlib.
5487 case "${target}" in
5488 # PIC is the default on some targets or must not be used.
5489 *-*-darwin*)
5490 # For darwin, common symbols are not allowed in MH_DYLIB files
5491 case "${CFLAGS}" in
5492 # If we are using a compiler supporting mdynamic-no-pic
5493 # and the option has been tested as safe to add, then cancel
5494 # it here, since the code generated is incompatible with shared
5495 # libs.
5496 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5497 *) PICFLAG_FOR_TARGET=-fno-common ;;
5498 esac
5500 alpha*-dec-osf5*)
5501 # PIC is the default.
5503 hppa*64*-*-hpux*)
5504 # PIC is the default for 64-bit PA HP-UX.
5506 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5508 i[34567]86-*-mingw* | x86_64-*-mingw*)
5510 i[34567]86-*-interix[3-9]*)
5511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5512 # Instead, we relocate shared libraries at runtime.
5514 i[34567]86-*-nto-qnx*)
5515 # QNX uses GNU C++, but need to define -shared option too, otherwise
5516 # it will coredump.
5517 PICFLAG_FOR_TARGET='-fPIC -shared'
5519 i[34567]86-pc-msdosdjgpp*)
5520 # DJGPP does not support shared libraries at all.
5522 ia64*-*-hpux*)
5523 # On IA64 HP-UX, PIC is the default but the pic flag
5524 # sets the default TLS model and affects inlining.
5525 PICFLAG_FOR_TARGET=-fPIC
5527 loongarch*-*-*)
5528 PICFLAG_FOR_TARGET=-fpic
5530 mips-sgi-irix6*)
5531 # PIC is the default.
5533 rs6000-ibm-aix* | powerpc-ibm-aix*)
5534 # All AIX code is PIC.
5537 # Some targets support both -fPIC and -fpic, but prefer the latter.
5538 # FIXME: Why?
5539 i[34567]86-*-* | x86_64-*-*)
5540 PICFLAG_FOR_TARGET=-fpic
5542 # FIXME: Override -fPIC default in libgcc only?
5543 sh-*-linux* | sh[2346lbe]*-*-linux*)
5544 PICFLAG_FOR_TARGET=-fpic
5546 sh*-*-netbsd*)
5547 PICFLAG_FOR_TARGET=-fpic
5549 # Default to -fPIC unless specified otherwise.
5551 PICFLAG_FOR_TARGET=-fPIC
5553 esac
5555 # If the user explicitly uses -fpic/-fPIC, keep that.
5556 case "${CFLAGS_FOR_TARGET}" in
5557 *-fpic*)
5558 PICFLAG_FOR_TARGET=-fpic
5560 *-fPIC*)
5561 PICFLAG_FOR_TARGET=-fPIC
5563 esac
5567 # -------------------------
5568 # Check C compiler features
5569 # -------------------------
5572 ac_ext=cpp
5573 ac_cpp='$CXXCPP $CPPFLAGS'
5574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5578 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5579 if test -z "$CXXCPP"; then
5580 if ${ac_cv_prog_CXXCPP+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 # Double quotes because CXXCPP needs to be expanded
5584 for CXXCPP in "$CXX -E" "/lib/cpp"
5586 ac_preproc_ok=false
5587 for ac_cxx_preproc_warn_flag in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #ifdef __STDC__
5598 # include <limits.h>
5599 #else
5600 # include <assert.h>
5601 #endif
5602 Syntax error
5603 _ACEOF
5604 if ac_fn_cxx_try_cpp "$LINENO"; then :
5606 else
5607 # Broken: fails on valid input.
5608 continue
5610 rm -f conftest.err conftest.i conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5617 _ACEOF
5618 if ac_fn_cxx_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5626 rm -f conftest.err conftest.i conftest.$ac_ext
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.i conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5632 break
5635 done
5636 ac_cv_prog_CXXCPP=$CXXCPP
5639 CXXCPP=$ac_cv_prog_CXXCPP
5640 else
5641 ac_cv_prog_CXXCPP=$CXXCPP
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5644 $as_echo "$CXXCPP" >&6; }
5645 ac_preproc_ok=false
5646 for ac_cxx_preproc_warn_flag in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661 Syntax error
5662 _ACEOF
5663 if ac_fn_cxx_try_cpp "$LINENO"; then :
5665 else
5666 # Broken: fails on valid input.
5667 continue
5669 rm -f conftest.err conftest.i conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if ac_fn_cxx_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5679 continue
5680 else
5681 # Passes both tests.
5682 ac_preproc_ok=:
5683 break
5685 rm -f conftest.err conftest.i conftest.$ac_ext
5687 done
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.i conftest.err conftest.$ac_ext
5690 if $ac_preproc_ok; then :
5692 else
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5696 See \`config.log' for more details" "$LINENO" 5; }
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5707 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5708 if ${ac_cv_path_GREP+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test -z "$GREP"; then
5712 ac_path_GREP_found=false
5713 # Loop through the user's path and test for each of PROGNAME-LIST
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_prog in grep ggrep; do
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5722 as_fn_executable_p "$ac_path_GREP" || continue
5723 # Check for GNU ac_path_GREP and select it if it is found.
5724 # Check for GNU $ac_path_GREP
5725 case `"$ac_path_GREP" --version 2>&1` in
5726 *GNU*)
5727 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5729 ac_count=0
5730 $as_echo_n 0123456789 >"conftest.in"
5731 while :
5733 cat "conftest.in" "conftest.in" >"conftest.tmp"
5734 mv "conftest.tmp" "conftest.in"
5735 cp "conftest.in" "conftest.nl"
5736 $as_echo 'GREP' >> "conftest.nl"
5737 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739 as_fn_arith $ac_count + 1 && ac_count=$as_val
5740 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5741 # Best one so far, save it but keep looking for a better one
5742 ac_cv_path_GREP="$ac_path_GREP"
5743 ac_path_GREP_max=$ac_count
5745 # 10*(2^10) chars as input seems more than enough
5746 test $ac_count -gt 10 && break
5747 done
5748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 esac
5751 $ac_path_GREP_found && break 3
5752 done
5753 done
5754 done
5755 IFS=$as_save_IFS
5756 if test -z "$ac_cv_path_GREP"; then
5757 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 else
5760 ac_cv_path_GREP=$GREP
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5765 $as_echo "$ac_cv_path_GREP" >&6; }
5766 GREP="$ac_cv_path_GREP"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5770 $as_echo_n "checking for egrep... " >&6; }
5771 if ${ac_cv_path_EGREP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5775 then ac_cv_path_EGREP="$GREP -E"
5776 else
5777 if test -z "$EGREP"; then
5778 ac_path_EGREP_found=false
5779 # Loop through the user's path and test for each of PROGNAME-LIST
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_prog in egrep; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5788 as_fn_executable_p "$ac_path_EGREP" || continue
5789 # Check for GNU ac_path_EGREP and select it if it is found.
5790 # Check for GNU $ac_path_EGREP
5791 case `"$ac_path_EGREP" --version 2>&1` in
5792 *GNU*)
5793 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5795 ac_count=0
5796 $as_echo_n 0123456789 >"conftest.in"
5797 while :
5799 cat "conftest.in" "conftest.in" >"conftest.tmp"
5800 mv "conftest.tmp" "conftest.in"
5801 cp "conftest.in" "conftest.nl"
5802 $as_echo 'EGREP' >> "conftest.nl"
5803 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805 as_fn_arith $ac_count + 1 && ac_count=$as_val
5806 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5807 # Best one so far, save it but keep looking for a better one
5808 ac_cv_path_EGREP="$ac_path_EGREP"
5809 ac_path_EGREP_max=$ac_count
5811 # 10*(2^10) chars as input seems more than enough
5812 test $ac_count -gt 10 && break
5813 done
5814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 esac
5817 $ac_path_EGREP_found && break 3
5818 done
5819 done
5820 done
5821 IFS=$as_save_IFS
5822 if test -z "$ac_cv_path_EGREP"; then
5823 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5825 else
5826 ac_cv_path_EGREP=$EGREP
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5832 $as_echo "$ac_cv_path_EGREP" >&6; }
5833 EGREP="$ac_cv_path_EGREP"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5837 $as_echo_n "checking for ANSI C header files... " >&6; }
5838 if ${ac_cv_header_stdc+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5849 main ()
5853 return 0;
5855 _ACEOF
5856 if ac_fn_cxx_try_compile "$LINENO"; then :
5857 ac_cv_header_stdc=yes
5858 else
5859 ac_cv_header_stdc=no
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <string.h>
5869 _ACEOF
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 $EGREP "memchr" >/dev/null 2>&1; then :
5873 else
5874 ac_cv_header_stdc=no
5876 rm -f conftest*
5880 if test $ac_cv_header_stdc = yes; then
5881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <stdlib.h>
5886 _ACEOF
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev/null 2>&1; then :
5890 else
5891 ac_cv_header_stdc=no
5893 rm -f conftest*
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then :
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <ctype.h>
5905 #include <stdlib.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5919 main ()
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 return 2;
5926 return 0;
5928 _ACEOF
5929 if ac_fn_cxx_try_run "$LINENO"; then :
5931 else
5932 ac_cv_header_stdc=no
5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5935 conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5941 $as_echo "$ac_cv_header_stdc" >&6; }
5942 if test $ac_cv_header_stdc = yes; then
5944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5950 inttypes.h stdint.h unistd.h
5951 do :
5952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5962 done
5966 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5967 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5968 MINIX=yes
5969 else
5970 MINIX=
5974 if test "$MINIX" = yes; then
5976 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5979 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5982 $as_echo "#define _MINIX 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5988 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5989 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 # define __EXTENSIONS__ 1
5996 $ac_includes_default
5998 main ()
6002 return 0;
6004 _ACEOF
6005 if ac_fn_cxx_try_compile "$LINENO"; then :
6006 ac_cv_safe_to_define___extensions__=yes
6007 else
6008 ac_cv_safe_to_define___extensions__=no
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6013 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6014 test $ac_cv_safe_to_define___extensions__ = yes &&
6015 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6017 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6019 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6021 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6023 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6027 ac_ext=c
6028 ac_cpp='$CPP $CPPFLAGS'
6029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6034 # On Suns, sometimes $CPP names a directory.
6035 if test -n "$CPP" && test -d "$CPP"; then
6036 CPP=
6038 if test -z "$CPP"; then
6039 if ${ac_cv_prog_CPP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 # Double quotes because CPP needs to be expanded
6043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6045 ac_preproc_ok=false
6046 for ac_c_preproc_warn_flag in '' yes
6048 # Use a header file that comes with gcc, so configuring glibc
6049 # with a fresh cross-compiler works.
6050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051 # <limits.h> exists even on freestanding compilers.
6052 # On the NeXT, cc -E runs the code through the compiler's parser,
6053 # not just through cpp. "Syntax error" is here to catch this case.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #ifdef __STDC__
6057 # include <limits.h>
6058 #else
6059 # include <assert.h>
6060 #endif
6061 Syntax error
6062 _ACEOF
6063 if ac_fn_c_try_cpp "$LINENO"; then :
6065 else
6066 # Broken: fails on valid input.
6067 continue
6069 rm -f conftest.err conftest.i conftest.$ac_ext
6071 # OK, works on sane cases. Now check whether nonexistent headers
6072 # can be detected and how.
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <ac_nonexistent.h>
6076 _ACEOF
6077 if ac_fn_c_try_cpp "$LINENO"; then :
6078 # Broken: success on invalid input.
6079 continue
6080 else
6081 # Passes both tests.
6082 ac_preproc_ok=:
6083 break
6085 rm -f conftest.err conftest.i conftest.$ac_ext
6087 done
6088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6089 rm -f conftest.i conftest.err conftest.$ac_ext
6090 if $ac_preproc_ok; then :
6091 break
6094 done
6095 ac_cv_prog_CPP=$CPP
6098 CPP=$ac_cv_prog_CPP
6099 else
6100 ac_cv_prog_CPP=$CPP
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6103 $as_echo "$CPP" >&6; }
6104 ac_preproc_ok=false
6105 for ac_c_preproc_warn_flag in '' yes
6107 # Use a header file that comes with gcc, so configuring glibc
6108 # with a fresh cross-compiler works.
6109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6110 # <limits.h> exists even on freestanding compilers.
6111 # On the NeXT, cc -E runs the code through the compiler's parser,
6112 # not just through cpp. "Syntax error" is here to catch this case.
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115 #ifdef __STDC__
6116 # include <limits.h>
6117 #else
6118 # include <assert.h>
6119 #endif
6120 Syntax error
6121 _ACEOF
6122 if ac_fn_c_try_cpp "$LINENO"; then :
6124 else
6125 # Broken: fails on valid input.
6126 continue
6128 rm -f conftest.err conftest.i conftest.$ac_ext
6130 # OK, works on sane cases. Now check whether nonexistent headers
6131 # can be detected and how.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <ac_nonexistent.h>
6135 _ACEOF
6136 if ac_fn_c_try_cpp "$LINENO"; then :
6137 # Broken: success on invalid input.
6138 continue
6139 else
6140 # Passes both tests.
6141 ac_preproc_ok=:
6142 break
6144 rm -f conftest.err conftest.i conftest.$ac_ext
6146 done
6147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6148 rm -f conftest.i conftest.err conftest.$ac_ext
6149 if $ac_preproc_ok; then :
6151 else
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6155 See \`config.log' for more details" "$LINENO" 5; }
6158 ac_ext=cpp
6159 ac_cpp='$CXXCPP $CPPFLAGS'
6160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6165 $as_echo_n "checking for inline... " >&6; }
6166 if ${ac_cv_c_inline+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 ac_cv_c_inline=no
6170 for ac_kw in inline __inline__ __inline; do
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173 #ifndef __cplusplus
6174 typedef int foo_t;
6175 static $ac_kw foo_t static_foo () {return 0; }
6176 $ac_kw foo_t foo () {return 0; }
6177 #endif
6179 _ACEOF
6180 if ac_fn_cxx_try_compile "$LINENO"; then :
6181 ac_cv_c_inline=$ac_kw
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 test "$ac_cv_c_inline" != no && break
6185 done
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6189 $as_echo "$ac_cv_c_inline" >&6; }
6191 case $ac_cv_c_inline in
6192 inline | yes) ;;
6194 case $ac_cv_c_inline in
6195 no) ac_val=;;
6196 *) ac_val=$ac_cv_c_inline;;
6197 esac
6198 cat >>confdefs.h <<_ACEOF
6199 #ifndef __cplusplus
6200 #define inline $ac_val
6201 #endif
6202 _ACEOF
6204 esac
6207 # Check whether --enable-largefile was given.
6208 if test "${enable_largefile+set}" = set; then :
6209 enableval=$enable_largefile;
6212 if test "$enable_largefile" != no; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6215 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6216 if ${ac_cv_sys_largefile_CC+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 ac_cv_sys_largefile_CC=no
6220 if test "$GCC" != yes; then
6221 ac_save_CC=$CC
6222 while :; do
6223 # IRIX 6.2 and later do not support large files by default,
6224 # so use the C compiler's -n32 option if that helps.
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 #include <sys/types.h>
6228 /* Check that off_t can represent 2**63 - 1 correctly.
6229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6230 since some C++ compilers masquerading as C compilers
6231 incorrectly reject 9223372036854775807. */
6232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6234 && LARGE_OFF_T % 2147483647 == 1)
6235 ? 1 : -1];
6237 main ()
6241 return 0;
6243 _ACEOF
6244 if ac_fn_cxx_try_compile "$LINENO"; then :
6245 break
6247 rm -f core conftest.err conftest.$ac_objext
6248 CC="$CC -n32"
6249 if ac_fn_cxx_try_compile "$LINENO"; then :
6250 ac_cv_sys_largefile_CC=' -n32'; break
6252 rm -f core conftest.err conftest.$ac_objext
6253 break
6254 done
6255 CC=$ac_save_CC
6256 rm -f conftest.$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6260 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6261 if test "$ac_cv_sys_largefile_CC" != no; then
6262 CC=$CC$ac_cv_sys_largefile_CC
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6266 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6267 if ${ac_cv_sys_file_offset_bits+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 while :; do
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <sys/types.h>
6274 /* Check that off_t can represent 2**63 - 1 correctly.
6275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6276 since some C++ compilers masquerading as C compilers
6277 incorrectly reject 9223372036854775807. */
6278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6280 && LARGE_OFF_T % 2147483647 == 1)
6281 ? 1 : -1];
6283 main ()
6287 return 0;
6289 _ACEOF
6290 if ac_fn_cxx_try_compile "$LINENO"; then :
6291 ac_cv_sys_file_offset_bits=no; break
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 #define _FILE_OFFSET_BITS 64
6297 #include <sys/types.h>
6298 /* Check that off_t can represent 2**63 - 1 correctly.
6299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6300 since some C++ compilers masquerading as C compilers
6301 incorrectly reject 9223372036854775807. */
6302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6304 && LARGE_OFF_T % 2147483647 == 1)
6305 ? 1 : -1];
6307 main ()
6311 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_compile "$LINENO"; then :
6315 ac_cv_sys_file_offset_bits=64; break
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 ac_cv_sys_file_offset_bits=unknown
6319 break
6320 done
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6323 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6324 case $ac_cv_sys_file_offset_bits in #(
6325 no | unknown) ;;
6327 cat >>confdefs.h <<_ACEOF
6328 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6329 _ACEOF
6331 esac
6332 rm -rf conftest*
6333 if test $ac_cv_sys_file_offset_bits = unknown; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6335 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6336 if ${ac_cv_sys_large_files+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 while :; do
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <sys/types.h>
6343 /* Check that off_t can represent 2**63 - 1 correctly.
6344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6345 since some C++ compilers masquerading as C compilers
6346 incorrectly reject 9223372036854775807. */
6347 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6349 && LARGE_OFF_T % 2147483647 == 1)
6350 ? 1 : -1];
6352 main ()
6356 return 0;
6358 _ACEOF
6359 if ac_fn_cxx_try_compile "$LINENO"; then :
6360 ac_cv_sys_large_files=no; break
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 #define _LARGE_FILES 1
6366 #include <sys/types.h>
6367 /* Check that off_t can represent 2**63 - 1 correctly.
6368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6369 since some C++ compilers masquerading as C compilers
6370 incorrectly reject 9223372036854775807. */
6371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6373 && LARGE_OFF_T % 2147483647 == 1)
6374 ? 1 : -1];
6376 main ()
6380 return 0;
6382 _ACEOF
6383 if ac_fn_cxx_try_compile "$LINENO"; then :
6384 ac_cv_sys_large_files=1; break
6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 ac_cv_sys_large_files=unknown
6388 break
6389 done
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6392 $as_echo "$ac_cv_sys_large_files" >&6; }
6393 case $ac_cv_sys_large_files in #(
6394 no | unknown) ;;
6396 cat >>confdefs.h <<_ACEOF
6397 #define _LARGE_FILES $ac_cv_sys_large_files
6398 _ACEOF
6400 esac
6401 rm -rf conftest*
6407 # The cast to long int works around a bug in the HP C Compiler
6408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6410 # This bug is HP SR number 8606223364.
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6412 $as_echo_n "checking size of ino_t... " >&6; }
6413 if ${ac_cv_sizeof_ino_t+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6418 else
6419 if test "$ac_cv_type_ino_t" = yes; then
6420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 as_fn_error 77 "cannot compute sizeof (ino_t)
6423 See \`config.log' for more details" "$LINENO" 5; }
6424 else
6425 ac_cv_sizeof_ino_t=0
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6431 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6435 cat >>confdefs.h <<_ACEOF
6436 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6437 _ACEOF
6440 # The cast to long int works around a bug in the HP C Compiler
6441 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6442 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6443 # This bug is HP SR number 8606223364.
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6445 $as_echo_n "checking size of dev_t... " >&6; }
6446 if ${ac_cv_sizeof_dev_t+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6451 else
6452 if test "$ac_cv_type_dev_t" = yes; then
6453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6455 as_fn_error 77 "cannot compute sizeof (dev_t)
6456 See \`config.log' for more details" "$LINENO" 5; }
6457 else
6458 ac_cv_sizeof_dev_t=0
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6464 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6468 cat >>confdefs.h <<_ACEOF
6469 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6470 _ACEOF
6474 # Select the right stat being able to handle 64bit inodes, if needed.
6475 if test "$enable_largefile" != no; then
6476 case "$host, $build" in
6477 *-*-aix*,*|*,*-*-aix*)
6478 if test "$ac_cv_sizeof_ino_t" = "4" -a "$ac_cv_sizeof_dev_t" = 4; then
6480 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6482 fi;;
6483 esac
6487 # sizeof(char) is 1 by definition.
6488 # The cast to long int works around a bug in the HP C Compiler
6489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6491 # This bug is HP SR number 8606223364.
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6493 $as_echo_n "checking size of void *... " >&6; }
6494 if ${ac_cv_sizeof_void_p+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6499 else
6500 if test "$ac_cv_type_void_p" = yes; then
6501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6503 as_fn_error 77 "cannot compute sizeof (void *)
6504 See \`config.log' for more details" "$LINENO" 5; }
6505 else
6506 ac_cv_sizeof_void_p=0
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6512 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6516 cat >>confdefs.h <<_ACEOF
6517 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6518 _ACEOF
6521 # The cast to long int works around a bug in the HP C Compiler
6522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6524 # This bug is HP SR number 8606223364.
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6526 $as_echo_n "checking size of short... " >&6; }
6527 if ${ac_cv_sizeof_short+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6532 else
6533 if test "$ac_cv_type_short" = yes; then
6534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6536 as_fn_error 77 "cannot compute sizeof (short)
6537 See \`config.log' for more details" "$LINENO" 5; }
6538 else
6539 ac_cv_sizeof_short=0
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6545 $as_echo "$ac_cv_sizeof_short" >&6; }
6549 cat >>confdefs.h <<_ACEOF
6550 #define SIZEOF_SHORT $ac_cv_sizeof_short
6551 _ACEOF
6554 # The cast to long int works around a bug in the HP C Compiler
6555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6557 # This bug is HP SR number 8606223364.
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6559 $as_echo_n "checking size of int... " >&6; }
6560 if ${ac_cv_sizeof_int+:} false; then :
6561 $as_echo_n "(cached) " >&6
6562 else
6563 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6565 else
6566 if test "$ac_cv_type_int" = yes; then
6567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6569 as_fn_error 77 "cannot compute sizeof (int)
6570 See \`config.log' for more details" "$LINENO" 5; }
6571 else
6572 ac_cv_sizeof_int=0
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6578 $as_echo "$ac_cv_sizeof_int" >&6; }
6582 cat >>confdefs.h <<_ACEOF
6583 #define SIZEOF_INT $ac_cv_sizeof_int
6584 _ACEOF
6587 # The cast to long int works around a bug in the HP C Compiler
6588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6590 # This bug is HP SR number 8606223364.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6592 $as_echo_n "checking size of long... " >&6; }
6593 if ${ac_cv_sizeof_long+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6598 else
6599 if test "$ac_cv_type_long" = yes; then
6600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6602 as_fn_error 77 "cannot compute sizeof (long)
6603 See \`config.log' for more details" "$LINENO" 5; }
6604 else
6605 ac_cv_sizeof_long=0
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6611 $as_echo "$ac_cv_sizeof_long" >&6; }
6615 cat >>confdefs.h <<_ACEOF
6616 #define SIZEOF_LONG $ac_cv_sizeof_long
6617 _ACEOF
6620 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6621 if test "x$ac_cv_type_long_long" = xyes; then :
6623 cat >>confdefs.h <<_ACEOF
6624 #define HAVE_LONG_LONG 1
6625 _ACEOF
6627 # The cast to long int works around a bug in the HP C Compiler
6628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6630 # This bug is HP SR number 8606223364.
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6632 $as_echo_n "checking size of long long... " >&6; }
6633 if ${ac_cv_sizeof_long_long+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6638 else
6639 if test "$ac_cv_type_long_long" = yes; then
6640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6642 as_fn_error 77 "cannot compute sizeof (long long)
6643 See \`config.log' for more details" "$LINENO" 5; }
6644 else
6645 ac_cv_sizeof_long_long=0
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6651 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6655 cat >>confdefs.h <<_ACEOF
6656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6657 _ACEOF
6662 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6663 case $ac_cv_c_int8_t in #(
6664 no|yes) ;; #(
6667 cat >>confdefs.h <<_ACEOF
6668 #define int8_t $ac_cv_c_int8_t
6669 _ACEOF
6671 esac
6673 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6674 case $ac_cv_c_int16_t in #(
6675 no|yes) ;; #(
6678 cat >>confdefs.h <<_ACEOF
6679 #define int16_t $ac_cv_c_int16_t
6680 _ACEOF
6682 esac
6684 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6685 case $ac_cv_c_int32_t in #(
6686 no|yes) ;; #(
6689 cat >>confdefs.h <<_ACEOF
6690 #define int32_t $ac_cv_c_int32_t
6691 _ACEOF
6693 esac
6695 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6696 case $ac_cv_c_int64_t in #(
6697 no|yes) ;; #(
6700 cat >>confdefs.h <<_ACEOF
6701 #define int64_t $ac_cv_c_int64_t
6702 _ACEOF
6704 esac
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6708 $as_echo_n "checking for unsigned long long int... " >&6; }
6709 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6710 $as_echo_n "(cached) " >&6
6711 else
6712 ac_cv_type_unsigned_long_long_int=yes
6713 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6717 /* For now, do not test the preprocessor; as of 2007 there are too many
6718 implementations with broken preprocessors. Perhaps this can
6719 be revisited in 2012. In the meantime, code should not expect
6720 #if to work with literals wider than 32 bits. */
6721 /* Test literals. */
6722 long long int ll = 9223372036854775807ll;
6723 long long int nll = -9223372036854775807LL;
6724 unsigned long long int ull = 18446744073709551615ULL;
6725 /* Test constant expressions. */
6726 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6727 ? 1 : -1)];
6728 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6729 ? 1 : -1)];
6730 int i = 63;
6732 main ()
6734 /* Test availability of runtime routines for shift and division. */
6735 long long int llmax = 9223372036854775807ll;
6736 unsigned long long int ullmax = 18446744073709551615ull;
6737 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6738 | (llmax / ll) | (llmax % ll)
6739 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6740 | (ullmax / ull) | (ullmax % ull));
6742 return 0;
6745 _ACEOF
6746 if ac_fn_cxx_try_link "$LINENO"; then :
6748 else
6749 ac_cv_type_unsigned_long_long_int=no
6751 rm -f core conftest.err conftest.$ac_objext \
6752 conftest$ac_exeext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6756 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6757 if test $ac_cv_type_unsigned_long_long_int = yes; then
6759 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6766 $as_echo_n "checking for long long int... " >&6; }
6767 if ${ac_cv_type_long_long_int+:} false; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 ac_cv_type_long_long_int=yes
6771 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6772 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6773 if test $ac_cv_type_long_long_int = yes; then
6774 if test "$cross_compiling" = yes; then :
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <limits.h>
6780 #ifndef LLONG_MAX
6781 # define HALF \
6782 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6783 # define LLONG_MAX (HALF - 1 + HALF)
6784 #endif
6786 main ()
6788 long long int n = 1;
6789 int i;
6790 for (i = 0; ; i++)
6792 long long int m = n << i;
6793 if (m >> i != n)
6794 return 1;
6795 if (LLONG_MAX / 2 < m)
6796 break;
6798 return 0;
6800 return 0;
6802 _ACEOF
6803 if ac_fn_cxx_try_run "$LINENO"; then :
6805 else
6806 ac_cv_type_long_long_int=no
6808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6809 conftest.$ac_objext conftest.beam conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6816 $as_echo "$ac_cv_type_long_long_int" >&6; }
6817 if test $ac_cv_type_long_long_int = yes; then
6819 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6825 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6826 if test "x$ac_cv_type_intmax_t" = xyes; then :
6828 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6830 else
6831 test $ac_cv_type_long_long_int = yes \
6832 && ac_type='long long int' \
6833 || ac_type='long int'
6835 cat >>confdefs.h <<_ACEOF
6836 #define intmax_t $ac_type
6837 _ACEOF
6843 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6844 if test "x$ac_cv_type_intptr_t" = xyes; then :
6846 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6848 else
6849 for ac_type in 'int' 'long int' 'long long int'; do
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 $ac_includes_default
6854 main ()
6856 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6857 test_array [0] = 0;
6858 return test_array [0];
6861 return 0;
6863 _ACEOF
6864 if ac_fn_cxx_try_compile "$LINENO"; then :
6866 cat >>confdefs.h <<_ACEOF
6867 #define intptr_t $ac_type
6868 _ACEOF
6870 ac_type=
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 test -z "$ac_type" && break
6874 done
6878 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6879 case $ac_cv_c_uint8_t in #(
6880 no|yes) ;; #(
6883 $as_echo "#define _UINT8_T 1" >>confdefs.h
6886 cat >>confdefs.h <<_ACEOF
6887 #define uint8_t $ac_cv_c_uint8_t
6888 _ACEOF
6890 esac
6892 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6893 case $ac_cv_c_uint16_t in #(
6894 no|yes) ;; #(
6898 cat >>confdefs.h <<_ACEOF
6899 #define uint16_t $ac_cv_c_uint16_t
6900 _ACEOF
6902 esac
6904 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6905 case $ac_cv_c_uint32_t in #(
6906 no|yes) ;; #(
6909 $as_echo "#define _UINT32_T 1" >>confdefs.h
6912 cat >>confdefs.h <<_ACEOF
6913 #define uint32_t $ac_cv_c_uint32_t
6914 _ACEOF
6916 esac
6918 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6919 case $ac_cv_c_uint64_t in #(
6920 no|yes) ;; #(
6923 $as_echo "#define _UINT64_T 1" >>confdefs.h
6926 cat >>confdefs.h <<_ACEOF
6927 #define uint64_t $ac_cv_c_uint64_t
6928 _ACEOF
6930 esac
6934 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6935 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6937 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6939 else
6940 test $ac_cv_type_unsigned_long_long_int = yes \
6941 && ac_type='unsigned long long int' \
6942 || ac_type='unsigned long int'
6944 cat >>confdefs.h <<_ACEOF
6945 #define uintmax_t $ac_type
6946 _ACEOF
6952 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6953 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6955 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6957 else
6958 for ac_type in 'unsigned int' 'unsigned long int' \
6959 'unsigned long long int'; do
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962 $ac_includes_default
6964 main ()
6966 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6967 test_array [0] = 0;
6968 return test_array [0];
6971 return 0;
6973 _ACEOF
6974 if ac_fn_cxx_try_compile "$LINENO"; then :
6976 cat >>confdefs.h <<_ACEOF
6977 #define uintptr_t $ac_type
6978 _ACEOF
6980 ac_type=
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 test -z "$ac_type" && break
6984 done
7000 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
7001 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
7004 # check what underlying integer type int64_t uses
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
7006 $as_echo_n "checking for int64_t underlying type... " >&6; }
7007 if ${ac_cv_int64_t_type+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7014 #ifdef HAVE_STDINT_H
7015 #include <stdint.h>
7016 #endif
7017 template <typename T> struct X { };
7018 template <>
7019 struct X<long> { typedef long t; };
7022 main ()
7024 X<int64_t>::t x;
7026 return 0;
7028 _ACEOF
7029 if ac_fn_cxx_try_compile "$LINENO"; then :
7030 ac_cv_int64_t_type=long
7031 else
7032 ac_cv_int64_t_type="long long"
7034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
7037 $as_echo "$ac_cv_int64_t_type" >&6; }
7038 if test "$ac_cv_int64_t_type" = "long"; then
7040 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
7042 else
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #ifdef HAVE_STDINT_H
7047 #include <stdint.h>
7048 #endif
7049 template <typename T> struct X { };
7050 template <>
7051 struct X<long long> { typedef long long t; };
7054 main ()
7056 X<int64_t>::t x;
7058 return 0;
7060 _ACEOF
7061 if ac_fn_cxx_try_compile "$LINENO"; then :
7063 else
7064 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
7070 $as_echo_n "checking for std::swap in <utility>... " >&6; }
7071 if ${ac_cv_std_swap_in_utility+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7078 #include <utility>
7081 main ()
7083 int a, b; std::swap(a,b);
7085 return 0;
7087 _ACEOF
7088 if ac_fn_cxx_try_compile "$LINENO"; then :
7089 ac_cv_std_swap_in_utility=yes
7090 else
7091 ac_cv_std_swap_in_utility=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7096 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7097 if test $ac_cv_std_swap_in_utility = yes; then
7099 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7103 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7104 # If the host compiler is affected by the bug, and we build with optimization
7105 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7106 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7107 # Since there is no reliable feature check for the presence of this bug,
7108 # we simply use a GCC version number check. (This should never trigger for
7109 # stages 2 or 3 of a native bootstrap.)
7110 aliasing_flags=
7111 if test "$GCC" = yes; then
7112 saved_CXXFLAGS="$CXXFLAGS"
7114 # The following test compilation will succeed if and only if $CXX accepts
7115 # -fno-strict-aliasing *and* is older than GCC 4.3.
7116 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7118 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7122 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7123 #error compiler not affected by placement new aliasing bug
7124 #endif
7126 _ACEOF
7127 if ac_fn_cxx_try_compile "$LINENO"; then :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7129 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 CXXFLAGS="$saved_CXXFLAGS"
7142 # ---------------------
7143 # Warnings and checking
7144 # ---------------------
7146 # Check $CC warning features (if it's GCC).
7147 # We want to use -pedantic, but we don't want warnings about
7148 # * 'long long'
7149 # * variadic macros
7150 # * overlong strings
7151 # * C++11 narrowing conversions in { }
7152 # So, we only use -pedantic if we can disable those warnings.
7154 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7155 # Check whether --enable-build-format-warnings was given.
7156 if test "${enable_build_format_warnings+set}" = set; then :
7157 enableval=$enable_build_format_warnings;
7158 else
7159 enable_build_format_warnings=yes
7162 if test $enable_build_format_warnings = no; then :
7163 wf_opt=-Wno-format
7164 else
7165 wf_opt=
7167 ac_ext=cpp
7168 ac_cpp='$CXXCPP $CPPFLAGS'
7169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7173 loose_warn=
7174 save_CXXFLAGS="$CXXFLAGS"
7175 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7176 # Do the check with the no- prefix removed since gcc silently
7177 # accepts any -Wno-* option on purpose
7178 case $real_option in
7179 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7180 *) option=$real_option ;;
7181 esac
7182 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7185 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7186 if eval \${$as_acx_Woption+:} false; then :
7187 $as_echo_n "(cached) " >&6
7188 else
7189 CXXFLAGS="$option"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7194 main ()
7198 return 0;
7200 _ACEOF
7201 if ac_fn_cxx_try_compile "$LINENO"; then :
7202 eval "$as_acx_Woption=yes"
7203 else
7204 eval "$as_acx_Woption=no"
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 eval ac_res=\$$as_acx_Woption
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7213 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7215 done
7216 CXXFLAGS="$save_CXXFLAGS"
7217 ac_ext=cpp
7218 ac_cpp='$CXXCPP $CPPFLAGS'
7219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7225 ac_ext=c
7226 ac_cpp='$CPP $CPPFLAGS'
7227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 c_loose_warn=
7232 save_CFLAGS="$CFLAGS"
7233 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7234 # Do the check with the no- prefix removed since gcc silently
7235 # accepts any -Wno-* option on purpose
7236 case $real_option in
7237 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7238 *) option=$real_option ;;
7239 esac
7240 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7243 $as_echo_n "checking whether $CC supports $option... " >&6; }
7244 if eval \${$as_acx_Woption+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246 else
7247 CFLAGS="$option"
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7252 main ()
7256 return 0;
7258 _ACEOF
7259 if ac_fn_c_try_compile "$LINENO"; then :
7260 eval "$as_acx_Woption=yes"
7261 else
7262 eval "$as_acx_Woption=no"
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 eval ac_res=\$$as_acx_Woption
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7269 $as_echo "$ac_res" >&6; }
7270 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7271 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7273 done
7274 CFLAGS="$save_CFLAGS"
7275 ac_ext=cpp
7276 ac_cpp='$CXXCPP $CPPFLAGS'
7277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7282 ac_ext=cpp
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7288 strict_warn=
7289 save_CXXFLAGS="$CXXFLAGS"
7290 for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do
7291 # Do the check with the no- prefix removed since gcc silently
7292 # accepts any -Wno-* option on purpose
7293 case $real_option in
7294 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7295 *) option=$real_option ;;
7296 esac
7297 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7300 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7301 if eval \${$as_acx_Woption+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 CXXFLAGS="$option"
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7309 main ()
7313 return 0;
7315 _ACEOF
7316 if ac_fn_cxx_try_compile "$LINENO"; then :
7317 eval "$as_acx_Woption=yes"
7318 else
7319 eval "$as_acx_Woption=no"
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 eval ac_res=\$$as_acx_Woption
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7328 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7330 done
7331 CXXFLAGS="$save_CXXFLAGS"
7332 ac_ext=cpp
7333 ac_cpp='$CXXCPP $CPPFLAGS'
7334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7345 c_strict_warn=
7346 save_CFLAGS="$CFLAGS"
7347 for real_option in -Wold-style-definition -Wc++-compat; do
7348 # Do the check with the no- prefix removed since gcc silently
7349 # accepts any -Wno-* option on purpose
7350 case $real_option in
7351 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7352 *) option=$real_option ;;
7353 esac
7354 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7357 $as_echo_n "checking whether $CC supports $option... " >&6; }
7358 if eval \${$as_acx_Woption+:} false; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 CFLAGS="$option"
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7366 main ()
7370 return 0;
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 eval "$as_acx_Woption=yes"
7375 else
7376 eval "$as_acx_Woption=no"
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 eval ac_res=\$$as_acx_Woption
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7383 $as_echo "$ac_res" >&6; }
7384 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7385 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7387 done
7388 CFLAGS="$save_CFLAGS"
7389 ac_ext=cpp
7390 ac_cpp='$CXXCPP $CPPFLAGS'
7391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7396 ac_ext=cpp
7397 ac_cpp='$CXXCPP $CPPFLAGS'
7398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7402 # Do the check with the no- prefix removed from the warning options
7403 # since gcc silently accepts any -Wno-* option on purpose
7404 if test "$GXX" = yes; then :
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7406 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7407 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 save_CXXFLAGS="$CXXFLAGS"
7411 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7416 main ()
7420 return 0;
7422 _ACEOF
7423 if ac_fn_cxx_try_compile "$LINENO"; then :
7424 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7425 else
7426 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 CXXFLAGS="$save_CXXFLAGS"
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7432 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7433 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7434 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7438 ac_ext=cpp
7439 ac_cpp='$CXXCPP $CPPFLAGS'
7440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7445 ac_ext=cpp
7446 ac_cpp='$CXXCPP $CPPFLAGS'
7447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7451 # Check whether --enable-werror-always was given.
7452 if test "${enable_werror_always+set}" = set; then :
7453 enableval=$enable_werror_always;
7454 else
7455 enable_werror_always=no
7458 if test $enable_werror_always = yes; then :
7459 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7462 ac_ext=cpp
7463 ac_cpp='$CXXCPP $CPPFLAGS'
7464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7470 # The above macros do nothing if the compiler is not GCC. However, the
7471 # Makefile has more goo to add other flags, so these variables are used
7472 # to enable warnings only for GCC.
7473 warn_cflags=
7474 warn_cxxflags=
7475 if test "x$GCC" = "xyes"; then
7476 warn_cflags='$(GCC_WARN_CFLAGS)'
7477 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7482 # Disable exceptions and RTTI if building with g++
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489 noexception_flags=
7490 save_CFLAGS="$CFLAGS"
7491 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7492 # Do the check with the no- prefix removed since gcc silently
7493 # accepts any -Wno-* option on purpose
7494 case $real_option in
7495 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7496 *) option=$real_option ;;
7497 esac
7498 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7501 $as_echo_n "checking whether $CC supports $option... " >&6; }
7502 if eval \${$as_acx_Woption+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 CFLAGS="$option"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7510 main ()
7514 return 0;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518 eval "$as_acx_Woption=yes"
7519 else
7520 eval "$as_acx_Woption=no"
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 eval ac_res=\$$as_acx_Woption
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7527 $as_echo "$ac_res" >&6; }
7528 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7529 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7531 done
7532 CFLAGS="$save_CFLAGS"
7533 ac_ext=cpp
7534 ac_cpp='$CXXCPP $CPPFLAGS'
7535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7541 # Enable expensive internal checks
7542 is_release=
7543 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7544 is_release=yes
7547 # Check whether --enable-checking was given.
7548 if test "${enable_checking+set}" = set; then :
7549 enableval=$enable_checking; ac_checking_flags="${enableval}"
7550 else
7552 # Determine the default checks.
7553 if test x$is_release = x ; then
7554 ac_checking_flags=yes,extra
7555 else
7556 ac_checking_flags=release
7560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7561 for check in release $ac_checking_flags
7563 case $check in
7564 # these set all the flags to specific states
7565 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7566 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7567 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7568 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7569 ac_tree_checking=1 ; ac_valgrind_checking= ;
7570 ac_types_checking=1 ;;
7571 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7572 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7573 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7574 ac_rtlflag_checking= ; ac_runtime_checking= ;
7575 ac_tree_checking= ; ac_valgrind_checking= ;
7576 ac_types_checking= ;;
7577 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7578 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7579 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7580 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7581 ac_tree_checking=1 ; ac_valgrind_checking= ;
7582 ac_types_checking=1 ;;
7583 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7584 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7585 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7586 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7587 ac_tree_checking= ; ac_valgrind_checking= ;
7588 ac_types_checking= ;;
7589 # these enable particular checks
7590 assert) ac_assert_checking=1 ;;
7591 df) ac_df_checking=1 ;;
7592 extra) ac_extra_checking=1 ;;
7593 fold) ac_fold_checking=1 ;;
7594 gc) ac_gc_checking=1 ;;
7595 gcac) ac_gc_always_collect=1 ;;
7596 gimple) ac_gimple_checking=1 ;;
7597 misc) ac_checking=1 ;;
7598 rtl) ac_rtl_checking=1 ;;
7599 rtlflag) ac_rtlflag_checking=1 ;;
7600 runtime) ac_runtime_checking=1 ;;
7601 tree) ac_tree_checking=1 ;;
7602 types) ac_types_checking=1 ;;
7603 valgrind) ac_valgrind_checking=1 ;;
7604 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7605 esac
7606 done
7607 IFS="$ac_save_IFS"
7609 nocommon_flag=""
7610 if test x$ac_checking != x ; then
7612 $as_echo "#define CHECKING_P 1" >>confdefs.h
7614 nocommon_flag=-fno-common
7615 else
7616 $as_echo "#define CHECKING_P 0" >>confdefs.h
7620 if test x$ac_extra_checking != x ; then
7622 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7624 else
7625 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7628 if test x$ac_df_checking != x ; then
7630 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7633 if test x$ac_assert_checking != x ; then
7635 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7638 if test x$ac_gimple_checking != x ; then
7640 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7644 if test x$ac_runtime_checking != x ; then
7646 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7649 if test x$ac_tree_checking != x ; then
7651 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7653 TREECHECKING=yes
7655 if test x$ac_types_checking != x ; then
7657 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7661 if test x$ac_rtl_checking != x ; then
7663 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7666 if test x$ac_rtlflag_checking != x ; then
7668 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7671 if test x$ac_gc_checking != x ; then
7673 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7676 if test x$ac_gc_always_collect != x ; then
7678 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7681 if test x$ac_fold_checking != x ; then
7683 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7686 valgrind_path_defines=
7687 valgrind_command=
7688 if test x$ac_valgrind_checking != x ; then
7690 # Prepare PATH_SEPARATOR.
7691 # The user is always right.
7692 if test "${PATH_SEPARATOR+set}" != set; then
7693 echo "#! /bin/sh" >conf$$.sh
7694 echo "exit 0" >>conf$$.sh
7695 chmod +x conf$$.sh
7696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7697 PATH_SEPARATOR=';'
7698 else
7699 PATH_SEPARATOR=:
7701 rm -f conf$$.sh
7704 # Find out how to test for executable files. Don't use a zero-byte file,
7705 # as systems may use methods other than mode bits to determine executability.
7706 cat >conf$$.file <<_ASEOF
7707 #! /bin/sh
7708 exit 0
7709 _ASEOF
7710 chmod +x conf$$.file
7711 if test -x conf$$.file >/dev/null 2>&1; then
7712 ac_executable_p="test -x"
7713 else
7714 ac_executable_p="test -f"
7716 rm -f conf$$.file
7718 # Extract the first word of "valgrind", so it can be a program name with args.
7719 set dummy valgrind; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_path_valgrind_path+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 case "$valgrind_path" in
7726 [\\/]* | ?:[\\/]*)
7727 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7731 for ac_dir in $PATH; do
7732 IFS="$ac_save_IFS"
7733 test -z "$ac_dir" && ac_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7736 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7737 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7738 break 2
7741 done
7742 done
7743 IFS="$ac_save_IFS"
7745 esac
7747 valgrind_path="$ac_cv_path_valgrind_path"
7748 if test -n "$valgrind_path"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7750 $as_echo "$valgrind_path" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7756 if test "x$valgrind_path" = "x"; then
7757 as_fn_error $? "*** Cannot find valgrind" "$LINENO" 5
7759 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7760 valgrind_command="$valgrind_path -q"
7762 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7768 # Enable code coverage collection
7769 # Check whether --enable-coverage was given.
7770 if test "${enable_coverage+set}" = set; then :
7771 enableval=$enable_coverage; case "${enableval}" in
7772 yes|noopt)
7773 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7775 opt)
7776 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7779 # a.k.a. --disable-coverage
7780 coverage_flags=""
7783 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7785 esac
7786 else
7787 coverage_flags=""
7792 # Check whether --enable-gather-detailed-mem-stats was given.
7793 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7794 enableval=$enable_gather_detailed_mem_stats;
7795 else
7796 enable_gather_detailed_mem_stats=no
7799 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7801 cat >>confdefs.h <<_ACEOF
7802 #define GATHER_STATISTICS $gather_stats
7803 _ACEOF
7806 # Check whether --enable-valgrind-annotations was given.
7807 if test "${enable_valgrind_annotations+set}" = set; then :
7808 enableval=$enable_valgrind_annotations;
7809 else
7810 enable_valgrind_annotations=no
7813 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
7814 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes; then :
7819 if test x$enable_valgrind_annotations != xno \
7820 || test x$ac_valgrind_checking != x; then
7821 if test $ac_cv_header_valgrind_memcheck_h = no; then
7822 as_fn_error $? "*** Cannot find valgrind/memcheck.h" "$LINENO" 5
7825 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7829 # -------------------------------
7830 # Miscenalleous configure options
7831 # -------------------------------
7833 # Determine whether or not multilibs are enabled.
7834 # Check whether --enable-multilib was given.
7835 if test "${enable_multilib+set}" = set; then :
7836 enableval=$enable_multilib;
7837 else
7838 enable_multilib=yes
7843 # Determine whether or not multiarch is enabled.
7844 # Check whether --enable-multiarch was given.
7845 if test "${enable_multiarch+set}" = set; then :
7846 enableval=$enable_multiarch; case "${enableval}" in
7847 yes|no|auto) enable_multiarch=$enableval;;
7848 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7849 esac
7850 else
7851 enable_multiarch=auto
7854 if test x${enable_multiarch} = xauto; then
7855 if test x${with_native_system_header_dir} != x; then
7856 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7857 enable_multiarch=no
7859 if test x$host != x$target && test "x$with_sysroot" = x; then
7860 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7861 enable_multiarch=no
7864 if test x${enable_multiarch} = xyes; then
7866 $as_echo "#define ENABLE_MULTIARCH 1" >>confdefs.h
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7870 $as_echo_n "checking for multiarch configuration... " >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7873 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7875 # needed for setting the multiarch name for soft-float/hard-float ABIs
7879 # default stack clash protection guard size as power of twos in bytes.
7880 # Please keep these in sync with params.def.
7881 stk_clash_min=12
7882 stk_clash_max=30
7884 # Keep the default value when the option is not used to 0, this allows us to
7885 # distinguish between the cases where the user specifially set a value via
7886 # configure and when the normal default value is used.
7888 # Check whether --with-stack-clash-protection-guard-size was given.
7889 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7890 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7891 else
7892 DEFAULT_STK_CLASH_GUARD_SIZE=0
7895 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7896 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7897 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7898 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
7902 cat >>confdefs.h <<_ACEOF
7903 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7904 _ACEOF
7907 # Specify the number of splits of match.pd to generate.
7909 # Check whether --with-matchpd-partitions was given.
7910 if test "${with_matchpd_partitions+set}" = set; then :
7911 withval=$with_matchpd_partitions; DEFAULT_MATCHPD_PARTITIONS="$with_matchpd_partitions"
7912 else
7913 DEFAULT_MATCHPD_PARTITIONS=10
7916 if (test $DEFAULT_MATCHPD_PARTITIONS -lt 1); then
7917 as_fn_error $? "Invalid value $DEFAULT_MATCHPD_PARTITIONS for --with-matchpd-partitions. Cannot be negative." "$LINENO" 5
7922 # Specify the number of splits of insn-emit.cc to generate.
7924 # Check whether --with-insnemit-partitions was given.
7925 if test "${with_insnemit_partitions+set}" = set; then :
7926 withval=$with_insnemit_partitions; DEFAULT_INSNEMIT_PARTITIONS="$with_insnemit_partitions"
7927 else
7928 DEFAULT_INSNEMIT_PARTITIONS=10
7931 if (test $DEFAULT_INSNEMIT_PARTITIONS -lt 1); then
7932 as_fn_error $? "Invalid value $DEFAULT_INSNEMIT_PARTITIONS for --with-insnemit-partitions. Cannot be negative." "$LINENO" 5
7937 # Enable __cxa_atexit for C++.
7938 # Check whether --enable-__cxa_atexit was given.
7939 if test "${enable___cxa_atexit+set}" = set; then :
7940 enableval=$enable___cxa_atexit;
7944 # Enable C extension for decimal float if target supports it.
7946 # Check whether --enable-decimal-float was given.
7947 if test "${enable_decimal_float+set}" = set; then :
7948 enableval=$enable_decimal_float;
7949 case $enable_decimal_float in
7950 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7951 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7952 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7953 esac
7955 else
7957 case $target in
7958 aarch64* | \
7959 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7960 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7961 i?86*-*-mingw* | x86_64*-*-mingw* | \
7962 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7963 enable_decimal_float=yes
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7967 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7968 enable_decimal_float=no
7970 esac
7975 # x86's use BID format instead of DPD
7976 case x$enable_decimal_float in
7977 xyes)
7978 case $target in
7979 aarch64* | i?86*-*-* | x86_64*-*-*)
7980 enable_decimal_float=bid
7983 enable_decimal_float=dpd
7985 esac
7986 default_decimal_float=$enable_decimal_float
7988 xno)
7989 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7990 # dependency on libdecnumber.
7991 default_decimal_float=dpd
7993 esac
7998 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8000 cat >>confdefs.h <<_ACEOF
8001 #define ENABLE_DECIMAL_FLOAT $dfp
8002 _ACEOF
8005 # Use default_decimal_float for dependency.
8006 enable_decimal_float=$default_decimal_float
8008 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8010 cat >>confdefs.h <<_ACEOF
8011 #define ENABLE_DECIMAL_BID_FORMAT $bid
8012 _ACEOF
8015 # Enable C extension for fixed-point arithmetic.
8016 # Check whether --enable-fixed-point was given.
8017 if test "${enable_fixed_point+set}" = set; then :
8018 enableval=$enable_fixed_point;
8019 else
8021 case $target in
8022 arm*)
8023 enable_fixed_point=yes
8026 mips*-*-*)
8027 enable_fixed_point=yes
8029 loongarch*-*-*)
8030 enable_fixed_point=yes
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
8034 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
8035 enable_fixed_point=no
8037 esac
8043 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8045 cat >>confdefs.h <<_ACEOF
8046 #define ENABLE_FIXED_POINT $fixedpoint
8047 _ACEOF
8050 # Enable threads
8051 # Pass with no value to take the default
8052 # Pass with a value to specify a thread package
8053 # Check whether --enable-threads was given.
8054 if test "${enable_threads+set}" = set; then :
8055 enableval=$enable_threads;
8056 else
8057 enable_threads=''
8061 # Check whether --enable-tls was given.
8062 if test "${enable_tls+set}" = set; then :
8063 enableval=$enable_tls;
8064 case $enable_tls in
8065 yes | no) ;;
8066 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8067 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8068 esac
8070 else
8071 enable_tls=''
8075 # Check whether --enable-vtable-verify was given.
8076 if test "${enable_vtable_verify+set}" = set; then :
8077 enableval=$enable_vtable_verify;
8078 else
8079 enable_vtable_verify=no
8082 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8084 cat >>confdefs.h <<_ACEOF
8085 #define ENABLE_VTABLE_VERIFY $vtable_verify
8086 _ACEOF
8089 # Check whether --enable-analyzer was given.
8090 if test "${enable_analyzer+set}" = set; then :
8091 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8092 analyzer=0
8093 else
8094 analyzer=1
8096 else
8097 analyzer=1
8101 cat >>confdefs.h <<_ACEOF
8102 #define ENABLE_ANALYZER $analyzer
8103 _ACEOF
8106 # Check whether --enable-objc-gc was given.
8107 if test "${enable_objc_gc+set}" = set; then :
8108 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8109 objc_boehm_gc=''
8110 else
8111 objc_boehm_gc=1
8113 else
8114 objc_boehm_gc=''
8119 # Check whether --with-dwarf2 was given.
8120 if test "${with_dwarf2+set}" = set; then :
8121 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8122 else
8123 dwarf2=no
8127 # Check whether --enable-shared was given.
8128 if test "${enable_shared+set}" = set; then :
8129 enableval=$enable_shared;
8130 case $enable_shared in
8131 yes | no) ;;
8133 enable_shared=no
8134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8135 for pkg in $enableval; do
8136 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8137 enable_shared=yes
8139 done
8140 IFS="$ac_save_ifs"
8142 esac
8144 else
8145 enable_shared=yes
8150 # Check whether --enable-gcov was given.
8151 if test "${enable_gcov+set}" = set; then :
8152 enableval=$enable_gcov;
8153 else
8154 case $target in
8155 bpf-*-*)
8156 enable_gcov=no
8159 enable_gcov=yes
8161 esac
8168 # Check whether --with-specs was given.
8169 if test "${with_specs+set}" = set; then :
8170 withval=$with_specs; CONFIGURE_SPECS=$withval
8171 else
8172 CONFIGURE_SPECS=
8180 # Check whether --with-pkgversion was given.
8181 if test "${with_pkgversion+set}" = set; then :
8182 withval=$with_pkgversion; case "$withval" in
8183 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8184 no) PKGVERSION= ;;
8185 *) PKGVERSION="($withval) " ;;
8186 esac
8187 else
8188 PKGVERSION="(GCC) "
8196 # Check whether --with-bugurl was given.
8197 if test "${with_bugurl+set}" = set; then :
8198 withval=$with_bugurl; case "$withval" in
8199 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8200 no) BUGURL=
8202 *) BUGURL="$withval"
8204 esac
8205 else
8206 BUGURL="https://gcc.gnu.org/bugs/"
8210 case ${BUGURL} in
8212 REPORT_BUGS_TO=
8213 REPORT_BUGS_TEXI=
8216 REPORT_BUGS_TO="<$BUGURL>"
8217 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8219 esac;
8224 # Allow overriding the default URL for documentation
8226 # Check whether --with-documentation-root-url was given.
8227 if test "${with_documentation_root_url+set}" = set; then :
8228 withval=$with_documentation_root_url; case "$withval" in
8229 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8230 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8231 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8232 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8233 esac
8234 else
8236 docroot_url_suffix=
8237 case "$gcc_version" in
8238 *.[123456].0) docroot_url_suffix="gcc-$gcc_version/";;
8239 *.[123456].1) docroot_url_suffix="gcc-`echo $gcc_version | sed 's/1$/0/'`/";;
8240 esac
8241 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docroot_url_suffix"
8246 cat >>confdefs.h <<_ACEOF
8247 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8248 _ACEOF
8251 # Allow overriding the default URL for GCC changes
8253 # Check whether --with-changes-root-url was given.
8254 if test "${with_changes_root_url+set}" = set; then :
8255 withval=$with_changes_root_url; case "$withval" in
8256 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8257 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8258 */) CHANGES_ROOT_URL="$withval" ;;
8259 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8260 esac
8261 else
8262 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8267 cat >>confdefs.h <<_ACEOF
8268 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8269 _ACEOF
8272 # Sanity check enable_languages in case someone does not run the toplevel
8273 # configure # script.
8274 # Check whether --enable-languages was given.
8275 if test "${enable_languages+set}" = set; then :
8276 enableval=$enable_languages; case ,${enable_languages}, in
8277 ,,|,yes,)
8278 # go safe -- we cannot be much sure without the toplevel
8279 # configure's
8280 # analysis of which target libs are present and usable
8281 enable_languages=c
8283 *,all,*)
8284 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8286 *,c,*)
8289 enable_languages=c,${enable_languages}
8291 esac
8292 else
8293 enable_languages=c
8297 # If top-level libada has been disabled, then wire in install-gnatlib
8298 # invocation with `make install', so that one can build and install
8299 # the library manually with `make -C gcc all gnatlib gnattools install'.
8300 if test x"$enable_libada" = xno; then
8301 gnat_install_lib=gnat-install-lib
8302 else
8303 gnat_install_lib=
8307 if test x"$enable_as_accelerator_for" != x; then
8309 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8311 enable_as_accelerator=yes
8312 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8313 program_transform_name=`echo $program_transform_name | sed $sedscript`
8314 accel_dir_suffix=/accel/${target_noncanonical}
8315 real_target_noncanonical=${enable_as_accelerator_for}
8321 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8322 tgt=`echo $tgt | sed 's/=.*//'`
8324 enable_offloading=1
8325 case "$tgt" in
8326 amdgcn*)
8327 omp_device_property=omp-device-properties-gcn
8328 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8330 nvptx*)
8331 omp_device_property=omp-device-properties-nvptx
8332 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8335 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8337 esac
8338 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8339 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8341 if test x"$offload_targets" = x; then
8342 offload_targets=$tgt
8343 else
8344 offload_targets="$offload_targets,$tgt"
8346 done
8351 cat >>confdefs.h <<_ACEOF
8352 #define OFFLOAD_TARGETS "$offload_targets"
8353 _ACEOF
8355 if test x"$enable_offloading" != x; then
8357 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8359 else
8361 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8365 if test "x$enable_offload_defaulted" = xyes; then
8367 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8372 # Check whether --with-multilib-list was given.
8373 if test "${with_multilib_list+set}" = set; then :
8374 withval=$with_multilib_list; :
8375 else
8376 with_multilib_list=default
8381 # Check whether --with-multilib-generator was given.
8382 if test "${with_multilib_generator+set}" = set; then :
8383 withval=$with_multilib_generator; :
8384 else
8385 with_multilib_generator=default
8389 # -------------------------
8390 # Checks for other programs
8391 # -------------------------
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8395 set x ${MAKE-make}
8396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8397 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 cat >conftest.make <<\_ACEOF
8401 SHELL = /bin/sh
8402 all:
8403 @echo '@@@%%%=$(MAKE)=@@@%%%'
8404 _ACEOF
8405 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8407 *@@@%%%=?*=@@@%%%*)
8408 eval ac_cv_prog_make_${ac_make}_set=yes;;
8410 eval ac_cv_prog_make_${ac_make}_set=no;;
8411 esac
8412 rm -f conftest.make
8414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416 $as_echo "yes" >&6; }
8417 SET_MAKE=
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 SET_MAKE="MAKE=${MAKE-make}"
8425 # Find some useful tools
8426 for ac_prog in gawk mawk nawk awk
8428 # Extract the first word of "$ac_prog", so it can be a program name with args.
8429 set dummy $ac_prog; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_AWK+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$AWK"; then
8436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_AWK="$ac_prog"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8455 AWK=$ac_cv_prog_AWK
8456 if test -n "$AWK"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8458 $as_echo "$AWK" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8465 test -n "$AWK" && break
8466 done
8468 # We need awk to create options.cc and options.h.
8469 # Bail out if it's missing.
8470 case ${AWK} in
8471 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8472 esac
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8475 $as_echo_n "checking whether ln -s works... " >&6; }
8476 if ${gcc_cv_prog_LN_S+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 rm -f conftestdata_t
8480 echo >conftestdata_f
8481 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8482 then
8483 gcc_cv_prog_LN_S="ln -s"
8484 else
8485 if ln conftestdata_f conftestdata_t 2>/dev/null
8486 then
8487 gcc_cv_prog_LN_S=ln
8488 else
8489 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8490 then
8491 gcc_cv_prog_LN_S="cp -p"
8492 else
8493 gcc_cv_prog_LN_S=cp
8497 rm -f conftestdata_f conftestdata_t
8500 LN_S="$gcc_cv_prog_LN_S"
8501 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8503 $as_echo "yes" >&6; }
8504 else
8505 if test "$gcc_cv_prog_LN_S" = "ln"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8507 $as_echo "no, using ln" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8510 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8515 $as_echo_n "checking whether ln works... " >&6; }
8516 if ${acx_cv_prog_LN+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 rm -f conftestdata_t
8520 echo >conftestdata_f
8521 if ln conftestdata_f conftestdata_t 2>/dev/null
8522 then
8523 acx_cv_prog_LN=ln
8524 else
8525 acx_cv_prog_LN=no
8527 rm -f conftestdata_f conftestdata_t
8530 if test $acx_cv_prog_LN = no; then
8531 LN="$LN_S"
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8533 $as_echo "no, using $LN" >&6; }
8534 else
8535 LN="$acx_cv_prog_LN"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 $as_echo "yes" >&6; }
8540 if test -n "$ac_tool_prefix"; then
8541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8542 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if ${ac_cv_prog_RANLIB+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 if test -n "$RANLIB"; then
8549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8550 else
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8562 done
8563 done
8564 IFS=$as_save_IFS
8568 RANLIB=$ac_cv_prog_RANLIB
8569 if test -n "$RANLIB"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8571 $as_echo "$RANLIB" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 if test -z "$ac_cv_prog_RANLIB"; then
8580 ac_ct_RANLIB=$RANLIB
8581 # Extract the first word of "ranlib", so it can be a program name with args.
8582 set dummy ranlib; ac_word=$2
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 $as_echo_n "checking for $ac_word... " >&6; }
8585 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 if test -n "$ac_ct_RANLIB"; then
8589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_ac_ct_RANLIB="ranlib"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8604 IFS=$as_save_IFS
8608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8609 if test -n "$ac_ct_RANLIB"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8611 $as_echo "$ac_ct_RANLIB" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8617 if test "x$ac_ct_RANLIB" = x; then
8618 RANLIB=":"
8619 else
8620 case $cross_compiling:$ac_tool_warned in
8621 yes:)
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8624 ac_tool_warned=yes ;;
8625 esac
8626 RANLIB=$ac_ct_RANLIB
8628 else
8629 RANLIB="$ac_cv_prog_RANLIB"
8632 ranlib_flags=""
8635 # Find a good install program. We prefer a C program (faster),
8636 # so one script is as good as another. But avoid the broken or
8637 # incompatible versions:
8638 # SysV /etc/install, /usr/sbin/install
8639 # SunOS /usr/etc/install
8640 # IRIX /sbin/install
8641 # AIX /bin/install
8642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8644 # ./install, which can be erroneously created by make from ./install.sh.
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8646 $as_echo_n "checking for a BSD compatible install... " >&6; }
8647 if test -z "$INSTALL"; then
8648 if ${ac_cv_path_install+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8652 for ac_dir in $PATH; do
8653 # Account for people who put trailing slashes in PATH elements.
8654 case "$ac_dir/" in
8655 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8657 # OSF1 and SCO ODT 3.0 have their own names for install.
8658 for ac_prog in ginstall scoinst install; do
8659 if test -f $ac_dir/$ac_prog; then
8660 if test $ac_prog = install &&
8661 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8662 # AIX install. It has an incompatible calling convention.
8663 # OSF/1 installbsd also uses dspmsg, but is usable.
8665 else
8666 ac_cv_path_install="$ac_dir/$ac_prog -c"
8667 break 2
8670 done
8672 esac
8673 done
8674 IFS="$ac_save_IFS"
8677 if test "${ac_cv_path_install+set}" = set; then
8678 INSTALL="$ac_cv_path_install"
8679 else
8680 # As a last resort, use the slow shell script. We don't cache a
8681 # path for INSTALL within a source directory, because that will
8682 # break other packages using the cache if that directory is
8683 # removed, or if the path is relative.
8684 INSTALL="$ac_install_sh"
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8688 $as_echo "$INSTALL" >&6; }
8690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8691 # It thinks the first close brace ends the variable substitution.
8692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8697 # See if cmp has --ignore-initial.
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8699 $as_echo_n "checking for cmp's capabilities... " >&6; }
8700 if ${gcc_cv_prog_cmp_skip+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 echo abfoo >t1
8704 echo cdfoo >t2
8705 gcc_cv_prog_cmp_skip=slowcompare
8706 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8707 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8709 else
8710 gcc_cv_prog_cmp_skip=gnucompare
8713 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8714 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8715 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8717 else
8718 gcc_cv_prog_cmp_skip=fastcompare
8722 rm t1 t2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8726 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8727 make_compare_target=$gcc_cv_prog_cmp_skip
8731 # See if we have the mktemp command.
8732 # Extract the first word of "mktemp", so it can be a program name with args.
8733 set dummy mktemp; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 if test -n "$have_mktemp_command"; then
8740 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749 ac_cv_prog_have_mktemp_command="yes"
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8753 done
8754 done
8755 IFS=$as_save_IFS
8757 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8760 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8761 if test -n "$have_mktemp_command"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8763 $as_echo "$have_mktemp_command" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8771 # See if makeinfo has been installed and is modern enough
8772 # that we can use it.
8774 # Extract the first word of "makeinfo", so it can be a program name with args.
8775 set dummy makeinfo; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if ${ac_cv_prog_MAKEINFO+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 if test -n "$MAKEINFO"; then
8782 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_MAKEINFO="makeinfo"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8795 done
8796 done
8797 IFS=$as_save_IFS
8801 MAKEINFO=$ac_cv_prog_MAKEINFO
8802 if test -n "$MAKEINFO"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8804 $as_echo "$MAKEINFO" >&6; }
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8811 if test -n "$MAKEINFO"; then
8812 # Found it, now check the version.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8814 $as_echo_n "checking for modern makeinfo... " >&6; }
8815 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8819 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8821 case $ac_prog_version in
8822 '') gcc_cv_prog_makeinfo_modern=no;;
8823 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8824 *) gcc_cv_prog_makeinfo_modern=no;;
8825 esac
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8829 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8830 else
8831 gcc_cv_prog_makeinfo_modern=no
8833 if test $gcc_cv_prog_makeinfo_modern = no; then
8834 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8837 if test $gcc_cv_prog_makeinfo_modern = no; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8839 *** Makeinfo is missing or too old.
8840 *** Info documentation will not be built." >&5
8841 $as_echo "$as_me: WARNING:
8842 *** Makeinfo is missing or too old.
8843 *** Info documentation will not be built." >&2;}
8844 BUILD_INFO=no-info
8845 else
8846 BUILD_INFO=info
8850 # Determine whether makeinfo supports the CONTENTS_OUTPUT_LOCATION variable.
8851 # If it does, we want to pass it to makeinfo in order to restore the old
8852 # behavior of @{summary,}contents placement.
8853 MAKEINFO_TOC_INLINE_FLAG=
8854 if test x"$MAKEINFO" != x; then :
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO" >&5
8857 $as_echo_n "checking for CONTENTS_OUTPUT_LOCATION support in $MAKEINFO... " >&6; }
8858 if ${gcc_cv_texi_add_toc_inline_flags+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8862 # Detect the unknown variable CONTENTS_OUTPUT_LOCATION warning
8863 if "$MAKEINFO" -c CONTENTS_OUTPUT_LOCATION=inline </dev/null 2>&1 \
8864 | grep CONTENTS_OUTPUT_LOCATION >/dev/null; then
8865 gcc_cv_texi_add_toc_inline_flags=no
8866 else
8867 gcc_cv_texi_add_toc_inline_flags=yes
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_texi_add_toc_inline_flags" >&5
8872 $as_echo "$gcc_cv_texi_add_toc_inline_flags" >&6; }
8873 if test x"$gcc_cv_texi_add_toc_inline_flags" = xyes; then
8874 MAKEINFO_TOC_INLINE_FLAG='-c CONTENTS_OUTPUT_LOCATION=inline'
8880 # Is pod2man recent enough to regenerate manpages?
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8882 $as_echo_n "checking for recent Pod::Man... " >&6; }
8883 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8885 $as_echo "yes" >&6; }
8886 GENERATED_MANPAGES=generated-manpages
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 GENERATED_MANPAGES=
8894 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8896 # How about lex?
8897 for ac_prog in flex
8899 # Extract the first word of "$ac_prog", so it can be a program name with args.
8900 set dummy $ac_prog; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if ${ac_cv_prog_FLEX+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$FLEX"; then
8907 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_FLEX="$ac_prog"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8920 done
8921 done
8922 IFS=$as_save_IFS
8926 FLEX=$ac_cv_prog_FLEX
8927 if test -n "$FLEX"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8929 $as_echo "$FLEX" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8936 test -n "$FLEX" && break
8937 done
8938 test -n "$FLEX" || FLEX="$MISSING flex"
8941 # Bison?
8942 for ac_prog in bison
8944 # Extract the first word of "$ac_prog", so it can be a program name with args.
8945 set dummy $ac_prog; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_prog_BISON+:} false; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 if test -n "$BISON"; then
8952 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8953 else
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8957 IFS=$as_save_IFS
8958 test -z "$as_dir" && as_dir=.
8959 for ac_exec_ext in '' $ac_executable_extensions; do
8960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8961 ac_cv_prog_BISON="$ac_prog"
8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 break 2
8965 done
8966 done
8967 IFS=$as_save_IFS
8971 BISON=$ac_cv_prog_BISON
8972 if test -n "$BISON"; then
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8974 $as_echo "$BISON" >&6; }
8975 else
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 $as_echo "no" >&6; }
8981 test -n "$BISON" && break
8982 done
8983 test -n "$BISON" || BISON="$MISSING bison"
8986 # Python3?
8988 # Extract the first word of "python3", so it can be a program name with args.
8989 set dummy python3; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if ${ac_cv_prog_PYTHON+:} false; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 if test -n "$PYTHON"; then
8996 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
8997 else
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 for as_dir in $PATH
9001 IFS=$as_save_IFS
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_prog_PYTHON="python3"
9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9007 break 2
9009 done
9010 done
9011 IFS=$as_save_IFS
9015 PYTHON=$ac_cv_prog_PYTHON
9016 if test -n "$PYTHON"; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9018 $as_echo "$PYTHON" >&6; }
9019 else
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9025 if test -n "$PYTHON"; then
9026 # Found it, now check the version.
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern python3" >&5
9028 $as_echo_n "checking for modern python3... " >&6; }
9029 if ${gcc_cv_prog_python3_modern+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 ac_prog_version=`eval $PYTHON --version 2>&1 |
9033 sed -n 's/^.*Python.* \([0-9][0-9.]*\).*$/\1/p'`
9035 case $ac_prog_version in
9036 '') gcc_cv_prog_python3_modern=no;;
9037 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) gcc_cv_prog_python3_modern=yes;;
9038 *) gcc_cv_prog_python3_modern=no;;
9039 esac
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_python3_modern" >&5
9043 $as_echo "$gcc_cv_prog_python3_modern" >&6; }
9044 else
9045 gcc_cv_prog_python3_modern=no
9047 if test $gcc_cv_prog_python3_modern = no; then
9048 PYTHON="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing python3"
9051 if test $gcc_cv_prog_python3_modern = no; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9053 *** Python3 is missing.
9054 *** Documentation for modula-2 will not include the target SYSTEM module." >&5
9055 $as_echo "$as_me: WARNING:
9056 *** Python3 is missing.
9057 *** Documentation for modula-2 will not include the target SYSTEM module." >&2;}
9058 HAVE_PYTHON=no
9059 else
9060 HAVE_PYTHON=yes
9064 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9065 # check for build == host before using them.
9067 # NM
9068 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9069 && test -d ../binutils ; then
9070 NM='${objdir}/../binutils/nm-new'
9071 else
9072 # Extract the first word of "nm", so it can be a program name with args.
9073 set dummy nm; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if ${ac_cv_prog_NM+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 if test -n "$NM"; then
9080 ac_cv_prog_NM="$NM" # Let the user override the test.
9081 else
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9089 ac_cv_prog_NM="nm"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9093 done
9094 done
9095 IFS=$as_save_IFS
9097 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9100 NM=$ac_cv_prog_NM
9101 if test -n "$NM"; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9103 $as_echo "$NM" >&6; }
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 $as_echo "no" >&6; }
9112 # AR
9113 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9114 && test -d ../binutils ; then
9115 AR='${objdir}/../binutils/ar'
9116 else
9117 # Extract the first word of "ar", so it can be a program name with args.
9118 set dummy ar; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_prog_AR+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 if test -n "$AR"; then
9125 ac_cv_prog_AR="$AR" # Let the user override the test.
9126 else
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_AR="ar"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9138 done
9139 done
9140 IFS=$as_save_IFS
9142 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9145 AR=$ac_cv_prog_AR
9146 if test -n "$AR"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9148 $as_echo "$AR" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9157 # The jit documentation looks better if built with sphinx, but can be
9158 # built with texinfo if sphinx is not available.
9159 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9160 # Extract the first word of "sphinx-build", so it can be a program name with args.
9161 set dummy sphinx-build; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_prog_doc_build_sys+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 if test -n "$doc_build_sys"; then
9168 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9169 else
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177 ac_cv_prog_doc_build_sys="sphinx"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9181 done
9182 done
9183 IFS=$as_save_IFS
9185 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9188 doc_build_sys=$ac_cv_prog_doc_build_sys
9189 if test -n "$doc_build_sys"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9191 $as_echo "$doc_build_sys" >&6; }
9192 else
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9199 # --------------------
9200 # Checks for C headers
9201 # --------------------
9203 # Need to reject headers which give warnings, so that the -Werror bootstrap
9204 # works later. *sigh* This needs to come before all header checks.
9206 ac_c_preproc_warn_flag=yes
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9209 $as_echo_n "checking for ANSI C header files... " >&6; }
9210 if ${ac_cv_header_stdc+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <stdlib.h>
9216 #include <stdarg.h>
9217 #include <string.h>
9218 #include <float.h>
9221 main ()
9225 return 0;
9227 _ACEOF
9228 if ac_fn_cxx_try_compile "$LINENO"; then :
9229 ac_cv_header_stdc=yes
9230 else
9231 ac_cv_header_stdc=no
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 if test $ac_cv_header_stdc = yes; then
9236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9239 #include <string.h>
9241 _ACEOF
9242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9243 $EGREP "memchr" >/dev/null 2>&1; then :
9245 else
9246 ac_cv_header_stdc=no
9248 rm -f conftest*
9252 if test $ac_cv_header_stdc = yes; then
9253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <stdlib.h>
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260 $EGREP "free" >/dev/null 2>&1; then :
9262 else
9263 ac_cv_header_stdc=no
9265 rm -f conftest*
9269 if test $ac_cv_header_stdc = yes; then
9270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9271 if test "$cross_compiling" = yes; then :
9273 else
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <ctype.h>
9277 #include <stdlib.h>
9278 #if ((' ' & 0x0FF) == 0x020)
9279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9281 #else
9282 # define ISLOWER(c) \
9283 (('a' <= (c) && (c) <= 'i') \
9284 || ('j' <= (c) && (c) <= 'r') \
9285 || ('s' <= (c) && (c) <= 'z'))
9286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9287 #endif
9289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9291 main ()
9293 int i;
9294 for (i = 0; i < 256; i++)
9295 if (XOR (islower (i), ISLOWER (i))
9296 || toupper (i) != TOUPPER (i))
9297 return 2;
9298 return 0;
9300 _ACEOF
9301 if ac_fn_cxx_try_run "$LINENO"; then :
9303 else
9304 ac_cv_header_stdc=no
9306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9307 conftest.$ac_objext conftest.beam conftest.$ac_ext
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9313 $as_echo "$ac_cv_header_stdc" >&6; }
9314 if test $ac_cv_header_stdc = yes; then
9316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9321 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9322 if ${ac_cv_header_time+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <sys/time.h>
9329 #include <time.h>
9332 main ()
9334 if ((struct tm *) 0)
9335 return 0;
9337 return 0;
9339 _ACEOF
9340 if ac_fn_cxx_try_compile "$LINENO"; then :
9341 ac_cv_header_time=yes
9342 else
9343 ac_cv_header_time=no
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9348 $as_echo "$ac_cv_header_time" >&6; }
9349 if test $ac_cv_header_time = yes; then
9351 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9356 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9357 if ${gcc_cv_header_string+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 #include <string.h>
9363 #include <strings.h>
9365 main ()
9369 return 0;
9371 _ACEOF
9372 if ac_fn_cxx_try_compile "$LINENO"; then :
9373 gcc_cv_header_string=yes
9374 else
9375 gcc_cv_header_string=no
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9380 $as_echo "$gcc_cv_header_string" >&6; }
9381 if test $gcc_cv_header_string = yes; then
9383 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9388 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9389 if ${ac_cv_header_sys_wait_h+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 #include <sys/types.h>
9395 #include <sys/wait.h>
9396 #ifndef WEXITSTATUS
9397 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9398 #endif
9399 #ifndef WIFEXITED
9400 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9401 #endif
9404 main ()
9406 int s;
9407 wait (&s);
9408 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9410 return 0;
9412 _ACEOF
9413 if ac_fn_cxx_try_compile "$LINENO"; then :
9414 ac_cv_header_sys_wait_h=yes
9415 else
9416 ac_cv_header_sys_wait_h=no
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9421 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9422 if test $ac_cv_header_sys_wait_h = yes; then
9424 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9429 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9430 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 #include <sys/types.h>
9436 #include <termios.h>
9437 #ifdef TIOCGWINSZ
9439 #endif
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP "yes" >/dev/null 2>&1; then :
9444 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9445 else
9446 ac_cv_sys_tiocgwinsz_in_termios_h=no
9448 rm -f conftest*
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9452 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9454 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9456 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9457 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 #include <sys/types.h>
9463 #include <sys/ioctl.h>
9464 #ifdef TIOCGWINSZ
9466 #endif
9468 _ACEOF
9469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9470 $EGREP "yes" >/dev/null 2>&1; then :
9471 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9472 else
9473 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9475 rm -f conftest*
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9479 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9481 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9483 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9488 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9489 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9490 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9491 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9492 do :
9493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9496 cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 _ACEOF
9501 done
9504 # Check for thread headers.
9505 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9506 if test "x$ac_cv_header_thread_h" = xyes; then :
9507 have_thread_h=yes
9508 else
9509 have_thread_h=
9512 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9513 if test "x$ac_cv_header_pthread_h" = xyes; then :
9514 have_pthread_h=yes
9515 else
9516 have_pthread_h=
9520 # These tests can't be done till we know if we have limits.h.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9522 $as_echo_n "checking for CHAR_BIT... " >&6; }
9523 if ${gcc_cv_decl_char_bit+:} false; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #ifdef HAVE_LIMITS_H
9529 #include <limits.h>
9530 #endif
9531 #ifdef CHAR_BIT
9532 found
9533 #endif
9534 _ACEOF
9535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9536 $EGREP "found" >/dev/null 2>&1; then :
9537 gcc_cv_decl_char_bit=yes
9538 else
9539 gcc_cv_decl_char_bit=no
9541 rm -f conftest*
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9546 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9547 if test $gcc_cv_decl_char_bit = no; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9549 $as_echo_n "checking number of bits in a byte... " >&6; }
9550 if ${gcc_cv_c_nbby+:} false; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9554 gcc_cv_c_nbby=
9555 while test $i -lt 65; do
9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557 /* end confdefs.h. */
9560 main ()
9562 switch(0) {
9563 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9564 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9567 return 0;
9569 _ACEOF
9570 if ac_fn_cxx_try_compile "$LINENO"; then :
9571 gcc_cv_c_nbby=$i; break
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 i=`expr $i + 1`
9575 done
9576 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9580 $as_echo "$gcc_cv_c_nbby" >&6; }
9581 if test $gcc_cv_c_nbby = failed; then
9582 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9583 else
9585 cat >>confdefs.h <<_ACEOF
9586 #define CHAR_BIT $gcc_cv_c_nbby
9587 _ACEOF
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9592 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9593 if ${ac_cv_c_bigendian+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 ac_cv_c_bigendian=unknown
9597 # See if we're dealing with a universal compiler.
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9600 #ifndef __APPLE_CC__
9601 not a universal capable compiler
9602 #endif
9603 typedef int dummy;
9605 _ACEOF
9606 if ac_fn_cxx_try_compile "$LINENO"; then :
9608 # Check for potential -arch flags. It is not universal unless
9609 # there are at least two -arch flags with different values.
9610 ac_arch=
9611 ac_prev=
9612 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9613 if test -n "$ac_prev"; then
9614 case $ac_word in
9615 i?86 | x86_64 | ppc | ppc64)
9616 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9617 ac_arch=$ac_word
9618 else
9619 ac_cv_c_bigendian=universal
9620 break
9623 esac
9624 ac_prev=
9625 elif test "x$ac_word" = "x-arch"; then
9626 ac_prev=arch
9628 done
9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631 if test $ac_cv_c_bigendian = unknown; then
9632 # See if sys/param.h defines the BYTE_ORDER macro.
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <sys/types.h>
9636 #include <sys/param.h>
9639 main ()
9641 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9642 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9643 && LITTLE_ENDIAN)
9644 bogus endian macros
9645 #endif
9648 return 0;
9650 _ACEOF
9651 if ac_fn_cxx_try_compile "$LINENO"; then :
9652 # It does; now see whether it defined to BIG_ENDIAN or not.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/param.h>
9659 main ()
9661 #if BYTE_ORDER != BIG_ENDIAN
9662 not big endian
9663 #endif
9666 return 0;
9668 _ACEOF
9669 if ac_fn_cxx_try_compile "$LINENO"; then :
9670 ac_cv_c_bigendian=yes
9671 else
9672 ac_cv_c_bigendian=no
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 if test $ac_cv_c_bigendian = unknown; then
9679 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 #include <limits.h>
9685 main ()
9687 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9688 bogus endian macros
9689 #endif
9692 return 0;
9694 _ACEOF
9695 if ac_fn_cxx_try_compile "$LINENO"; then :
9696 # It does; now see whether it defined to _BIG_ENDIAN or not.
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #include <limits.h>
9702 main ()
9704 #ifndef _BIG_ENDIAN
9705 not big endian
9706 #endif
9709 return 0;
9711 _ACEOF
9712 if ac_fn_cxx_try_compile "$LINENO"; then :
9713 ac_cv_c_bigendian=yes
9714 else
9715 ac_cv_c_bigendian=no
9717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 if test $ac_cv_c_bigendian = unknown; then
9722 # Compile a test program.
9723 if test "$cross_compiling" = yes; then :
9724 # Try to guess by grepping values from an object file.
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727 short int ascii_mm[] =
9728 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9729 short int ascii_ii[] =
9730 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9731 int use_ascii (int i) {
9732 return ascii_mm[i] + ascii_ii[i];
9734 short int ebcdic_ii[] =
9735 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9736 short int ebcdic_mm[] =
9737 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9738 int use_ebcdic (int i) {
9739 return ebcdic_mm[i] + ebcdic_ii[i];
9741 extern int foo;
9744 main ()
9746 return use_ascii (foo) == use_ebcdic (foo);
9748 return 0;
9750 _ACEOF
9751 if ac_fn_cxx_try_compile "$LINENO"; then :
9752 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9753 ac_cv_c_bigendian=yes
9755 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9756 if test "$ac_cv_c_bigendian" = unknown; then
9757 ac_cv_c_bigendian=no
9758 else
9759 # finding both strings is unlikely to happen, but who knows?
9760 ac_cv_c_bigendian=unknown
9764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9765 else
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9768 $ac_includes_default
9770 main ()
9773 /* Are we little or big endian? From Harbison&Steele. */
9774 union
9776 long int l;
9777 char c[sizeof (long int)];
9778 } u;
9779 u.l = 1;
9780 return u.c[sizeof (long int) - 1] == 1;
9783 return 0;
9785 _ACEOF
9786 if ac_fn_cxx_try_run "$LINENO"; then :
9787 ac_cv_c_bigendian=no
9788 else
9789 ac_cv_c_bigendian=yes
9791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9792 conftest.$ac_objext conftest.beam conftest.$ac_ext
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9798 $as_echo "$ac_cv_c_bigendian" >&6; }
9799 case $ac_cv_c_bigendian in #(
9800 yes)
9801 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9802 ;; #(
9804 ;; #(
9805 universal)
9807 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9809 ;; #(
9811 as_fn_error $? "unknown endianness
9812 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9813 esac
9816 # ----------------------
9817 # Checks for C++ headers
9818 # ----------------------
9820 ac_ext=cpp
9821 ac_cpp='$CXXCPP $CPPFLAGS'
9822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9826 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9827 if test -z "$CXXCPP"; then
9828 if ${ac_cv_prog_CXXCPP+:} false; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 # Double quotes because CXXCPP needs to be expanded
9832 for CXXCPP in "$CXX -E" "/lib/cpp"
9834 ac_preproc_ok=false
9835 for ac_cxx_preproc_warn_flag in '' yes
9837 # Use a header file that comes with gcc, so configuring glibc
9838 # with a fresh cross-compiler works.
9839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840 # <limits.h> exists even on freestanding compilers.
9841 # On the NeXT, cc -E runs the code through the compiler's parser,
9842 # not just through cpp. "Syntax error" is here to catch this case.
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 #ifdef __STDC__
9846 # include <limits.h>
9847 #else
9848 # include <assert.h>
9849 #endif
9850 Syntax error
9851 _ACEOF
9852 if ac_fn_cxx_try_cpp "$LINENO"; then :
9854 else
9855 # Broken: fails on valid input.
9856 continue
9858 rm -f conftest.err conftest.i conftest.$ac_ext
9860 # OK, works on sane cases. Now check whether nonexistent headers
9861 # can be detected and how.
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9864 #include <ac_nonexistent.h>
9865 _ACEOF
9866 if ac_fn_cxx_try_cpp "$LINENO"; then :
9867 # Broken: success on invalid input.
9868 continue
9869 else
9870 # Passes both tests.
9871 ac_preproc_ok=:
9872 break
9874 rm -f conftest.err conftest.i conftest.$ac_ext
9876 done
9877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9878 rm -f conftest.i conftest.err conftest.$ac_ext
9879 if $ac_preproc_ok; then :
9880 break
9883 done
9884 ac_cv_prog_CXXCPP=$CXXCPP
9887 CXXCPP=$ac_cv_prog_CXXCPP
9888 else
9889 ac_cv_prog_CXXCPP=$CXXCPP
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9892 $as_echo "$CXXCPP" >&6; }
9893 ac_preproc_ok=false
9894 for ac_cxx_preproc_warn_flag in '' yes
9896 # Use a header file that comes with gcc, so configuring glibc
9897 # with a fresh cross-compiler works.
9898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9899 # <limits.h> exists even on freestanding compilers.
9900 # On the NeXT, cc -E runs the code through the compiler's parser,
9901 # not just through cpp. "Syntax error" is here to catch this case.
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9909 Syntax error
9910 _ACEOF
9911 if ac_fn_cxx_try_cpp "$LINENO"; then :
9913 else
9914 # Broken: fails on valid input.
9915 continue
9917 rm -f conftest.err conftest.i conftest.$ac_ext
9919 # OK, works on sane cases. Now check whether nonexistent headers
9920 # can be detected and how.
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9923 #include <ac_nonexistent.h>
9924 _ACEOF
9925 if ac_fn_cxx_try_cpp "$LINENO"; then :
9926 # Broken: success on invalid input.
9927 continue
9928 else
9929 # Passes both tests.
9930 ac_preproc_ok=:
9931 break
9933 rm -f conftest.err conftest.i conftest.$ac_ext
9935 done
9936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9937 rm -f conftest.i conftest.err conftest.$ac_ext
9938 if $ac_preproc_ok; then :
9940 else
9941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9944 See \`config.log' for more details" >&5
9945 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9946 See \`config.log' for more details" >&2;}; }
9949 ac_ext=cpp
9950 ac_cpp='$CXXCPP $CPPFLAGS'
9951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9956 for ac_header in unordered_map
9957 do :
9958 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9959 if test "x$ac_cv_header_unordered_map" = xyes; then :
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_UNORDERED_MAP 1
9962 _ACEOF
9965 done
9967 for ac_header in tr1/unordered_map
9968 do :
9969 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9970 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9971 cat >>confdefs.h <<_ACEOF
9972 #define HAVE_TR1_UNORDERED_MAP 1
9973 _ACEOF
9976 done
9978 for ac_header in ext/hash_map
9979 do :
9980 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9981 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9982 cat >>confdefs.h <<_ACEOF
9983 #define HAVE_EXT_HASH_MAP 1
9984 _ACEOF
9987 done
9990 # --------
9991 # Dependency checking.
9992 # --------
9994 rm -rf .tst 2>/dev/null
9995 mkdir .tst 2>/dev/null
9996 if test -d .tst; then
9997 am__leading_dot=.
9998 else
9999 am__leading_dot=_
10001 rmdir .tst 2>/dev/null
10003 DEPDIR="${am__leading_dot}deps"
10005 ac_config_commands="$ac_config_commands depdir"
10008 ac_config_commands="$ac_config_commands gccdepdir"
10011 depcc="$CXX" am_compiler_list=
10013 am_depcomp=$ac_aux_dir/depcomp
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10015 $as_echo_n "checking dependency style of $depcc... " >&6; }
10016 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
10017 $as_echo_n "(cached) " >&6
10018 else
10019 if test -f "$am_depcomp"; then
10020 # We make a subdir and do the tests there. Otherwise we can end up
10021 # making bogus files that we don't know about and never remove. For
10022 # instance it was reported that on HP-UX the gcc test will end up
10023 # making a dummy file named `D' -- because `-MD' means `put the output
10024 # in D'.
10025 mkdir conftest.dir
10026 # Copy depcomp to subdir because otherwise we won't find it if we're
10027 # using a relative directory.
10028 cp "$am_depcomp" conftest.dir
10029 cd conftest.dir
10030 # We will build objects and dependencies in a subdirectory because
10031 # it helps to detect inapplicable dependency modes. For instance
10032 # both Tru64's cc and ICC support -MD to output dependencies as a
10033 # side effect of compilation, but ICC will put the dependencies in
10034 # the current directory while Tru64 will put them in the object
10035 # directory.
10036 mkdir sub
10038 am_cv_CXX_dependencies_compiler_type=none
10039 if test "$am_compiler_list" = ""; then
10040 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10042 for depmode in $am_compiler_list; do
10043 if test $depmode = none; then break; fi
10045 $as_echo "$as_me:$LINENO: trying $depmode" >&5
10046 # Setup a source with many dependencies, because some compilers
10047 # like to wrap large dependency lists on column 80 (with \), and
10048 # we should not choose a depcomp mode which is confused by this.
10050 # We need to recreate these files for each test, as the compiler may
10051 # overwrite some of them when testing with obscure command lines.
10052 # This happens at least with the AIX C compiler.
10053 : > sub/conftest.c
10054 for i in 1 2 3 4 5 6; do
10055 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10057 # Solaris 8's {/usr,}/bin/sh.
10058 touch sub/conftst$i.h
10059 done
10060 echo "include sub/conftest.Po" > confmf
10062 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10063 # mode. It turns out that the SunPro C++ compiler does not properly
10064 # handle `-M -o', and we need to detect this.
10065 depcmd="depmode=$depmode \
10066 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10068 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
10069 echo "| $depcmd" | sed -e 's/ */ /g' >&5
10070 if env $depcmd > conftest.err 2>&1 &&
10071 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
10072 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
10073 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
10074 # icc doesn't choke on unknown options, it will just issue warnings
10075 # or remarks (even with -Werror). So we grep stderr for any message
10076 # that says an option was ignored or not supported.
10077 # When given -MP, icc 7.0 and 7.1 complain thusly:
10078 # icc: Command line warning: ignoring option '-M'; no argument required
10079 # The diagnosis changed in icc 8.0:
10080 # icc: Command line remark: option '-MP' not supported
10081 if (grep 'ignoring option' conftest.err ||
10082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10083 am_cv_CXX_dependencies_compiler_type=$depmode
10084 $as_echo "$as_me:$LINENO: success" >&5
10085 break
10088 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
10089 sed -e 's/^/| /' < conftest.err >&5
10090 done
10092 cd ..
10093 rm -rf conftest.dir
10094 else
10095 am_cv_CXX_dependencies_compiler_type=none
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10100 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10101 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
10102 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
10103 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10108 # --------
10109 # UNSORTED
10110 # --------
10113 # These libraries may be used by collect2.
10114 # We may need a special search path to get them linked.
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
10116 $as_echo_n "checking for collect2 libraries... " >&6; }
10117 if ${gcc_cv_collect2_libs+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 save_LIBS="$LIBS"
10121 for libs in '' -lld -lmld \
10122 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10123 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10125 LIBS="$libs"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char ldopen ();
10137 main ()
10139 return ldopen ();
10141 return 0;
10143 _ACEOF
10144 if ac_fn_cxx_try_link "$LINENO"; then :
10145 gcc_cv_collect2_libs="$libs"; break
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 done
10150 LIBS="$save_LIBS"
10151 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
10154 $as_echo "$gcc_cv_collect2_libs" >&6; }
10155 case $gcc_cv_collect2_libs in
10156 "none required") ;;
10157 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10158 esac
10161 # When building Ada code on Alpha, we need exc_resume which is usually in
10162 # -lexc. So test for it.
10163 save_LIBS="$LIBS"
10164 LIBS=
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10166 $as_echo_n "checking for library containing exc_resume... " >&6; }
10167 if ${ac_cv_search_exc_resume+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 ac_func_search_save_LIBS=$LIBS
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10174 /* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10177 #ifdef __cplusplus
10178 extern "C"
10179 #endif
10180 char exc_resume ();
10182 main ()
10184 return exc_resume ();
10186 return 0;
10188 _ACEOF
10189 for ac_lib in '' exc; do
10190 if test -z "$ac_lib"; then
10191 ac_res="none required"
10192 else
10193 ac_res=-l$ac_lib
10194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10196 if ac_fn_cxx_try_link "$LINENO"; then :
10197 ac_cv_search_exc_resume=$ac_res
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext
10201 if ${ac_cv_search_exc_resume+:} false; then :
10202 break
10204 done
10205 if ${ac_cv_search_exc_resume+:} false; then :
10207 else
10208 ac_cv_search_exc_resume=no
10210 rm conftest.$ac_ext
10211 LIBS=$ac_func_search_save_LIBS
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10214 $as_echo "$ac_cv_search_exc_resume" >&6; }
10215 ac_res=$ac_cv_search_exc_resume
10216 if test "$ac_res" != no; then :
10217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10221 GNAT_LIBEXC="$LIBS"
10222 LIBS="$save_LIBS"
10225 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10226 save_LIBS="$LIBS"
10227 LIBS=
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10229 $as_echo_n "checking for library containing kstat_open... " >&6; }
10230 if ${ac_cv_search_kstat_open+:} false; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233 ac_func_search_save_LIBS=$LIBS
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char kstat_open ();
10245 main ()
10247 return kstat_open ();
10249 return 0;
10251 _ACEOF
10252 for ac_lib in '' kstat; do
10253 if test -z "$ac_lib"; then
10254 ac_res="none required"
10255 else
10256 ac_res=-l$ac_lib
10257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10259 if ac_fn_cxx_try_link "$LINENO"; then :
10260 ac_cv_search_kstat_open=$ac_res
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext
10264 if ${ac_cv_search_kstat_open+:} false; then :
10265 break
10267 done
10268 if ${ac_cv_search_kstat_open+:} false; then :
10270 else
10271 ac_cv_search_kstat_open=no
10273 rm conftest.$ac_ext
10274 LIBS=$ac_func_search_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10277 $as_echo "$ac_cv_search_kstat_open" >&6; }
10278 ac_res=$ac_cv_search_kstat_open
10279 if test "$ac_res" != no; then :
10280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10284 EXTRA_GCC_LIBS="$LIBS"
10285 LIBS="$save_LIBS"
10288 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10289 # C++ needs those for libcody.
10290 save_LIBS="$LIBS"
10291 LIBS=
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10294 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10295 if ${ac_cv_search_gethostbyname+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 ac_func_search_save_LIBS=$LIBS
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char gethostbyname ();
10310 main ()
10312 return gethostbyname ();
10314 return 0;
10316 _ACEOF
10317 for ac_lib in '' nsl; do
10318 if test -z "$ac_lib"; then
10319 ac_res="none required"
10320 else
10321 ac_res=-l$ac_lib
10322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10324 if ac_fn_cxx_try_link "$LINENO"; then :
10325 ac_cv_search_gethostbyname=$ac_res
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext
10329 if ${ac_cv_search_gethostbyname+:} false; then :
10330 break
10332 done
10333 if ${ac_cv_search_gethostbyname+:} false; then :
10335 else
10336 ac_cv_search_gethostbyname=no
10338 rm conftest.$ac_ext
10339 LIBS=$ac_func_search_save_LIBS
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10342 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10343 ac_res=$ac_cv_search_gethostbyname
10344 if test "$ac_res" != no; then :
10345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10350 $as_echo_n "checking for library containing socket... " >&6; }
10351 if ${ac_cv_search_socket+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 ac_func_search_save_LIBS=$LIBS
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10358 /* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10361 #ifdef __cplusplus
10362 extern "C"
10363 #endif
10364 char socket ();
10366 main ()
10368 return socket ();
10370 return 0;
10372 _ACEOF
10373 for ac_lib in '' socket; do
10374 if test -z "$ac_lib"; then
10375 ac_res="none required"
10376 else
10377 ac_res=-l$ac_lib
10378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10380 if ac_fn_cxx_try_link "$LINENO"; then :
10381 ac_cv_search_socket=$ac_res
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext
10385 if ${ac_cv_search_socket+:} false; then :
10386 break
10388 done
10389 if ${ac_cv_search_socket+:} false; then :
10391 else
10392 ac_cv_search_socket=no
10394 rm conftest.$ac_ext
10395 LIBS=$ac_func_search_save_LIBS
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10398 $as_echo "$ac_cv_search_socket" >&6; }
10399 ac_res=$ac_cv_search_socket
10400 if test "$ac_res" != no; then :
10401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10403 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10406 $as_echo_n "checking for socket in -lsocket... " >&6; }
10407 if ${ac_cv_lib_socket_socket+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-lsocket -lnsl $LIBS"
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10415 /* Override any GCC internal prototype to avoid an error.
10416 Use char because int might match the return type of a GCC
10417 builtin and then its argument prototype would still apply. */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char socket ();
10423 main ()
10425 return socket ();
10427 return 0;
10429 _ACEOF
10430 if ac_fn_cxx_try_link "$LINENO"; then :
10431 ac_cv_lib_socket_socket=yes
10432 else
10433 ac_cv_lib_socket_socket=no
10435 rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10440 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10441 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10442 LIBS="-lsocket -lnsl $LIBS"
10448 NETLIBS="$LIBS"
10449 LIBS="$save_LIBS"
10452 # Some systems put ldexp and frexp in libm instead of libc; assume
10453 # they're both in the same place. jcf-dump needs them.
10454 save_LIBS="$LIBS"
10455 LIBS=
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10457 $as_echo_n "checking for library containing ldexp... " >&6; }
10458 if ${ac_cv_search_ldexp+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 ac_func_search_save_LIBS=$LIBS
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char ldexp ();
10473 main ()
10475 return ldexp ();
10477 return 0;
10479 _ACEOF
10480 for ac_lib in '' m; do
10481 if test -z "$ac_lib"; then
10482 ac_res="none required"
10483 else
10484 ac_res=-l$ac_lib
10485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10487 if ac_fn_cxx_try_link "$LINENO"; then :
10488 ac_cv_search_ldexp=$ac_res
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext
10492 if ${ac_cv_search_ldexp+:} false; then :
10493 break
10495 done
10496 if ${ac_cv_search_ldexp+:} false; then :
10498 else
10499 ac_cv_search_ldexp=no
10501 rm conftest.$ac_ext
10502 LIBS=$ac_func_search_save_LIBS
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10505 $as_echo "$ac_cv_search_ldexp" >&6; }
10506 ac_res=$ac_cv_search_ldexp
10507 if test "$ac_res" != no; then :
10508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10512 LDEXP_LIB="$LIBS"
10513 LIBS="$save_LIBS"
10516 # Some systems need dlopen
10517 save_LIBS="$LIBS"
10518 LIBS=
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10520 $as_echo_n "checking for library containing dlopen... " >&6; }
10521 if ${ac_cv_search_dlopen+:} false; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 ac_func_search_save_LIBS=$LIBS
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10528 /* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char dlopen ();
10536 main ()
10538 return dlopen ();
10540 return 0;
10542 _ACEOF
10543 for ac_lib in '' dl; do
10544 if test -z "$ac_lib"; then
10545 ac_res="none required"
10546 else
10547 ac_res=-l$ac_lib
10548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10550 if ac_fn_cxx_try_link "$LINENO"; then :
10551 ac_cv_search_dlopen=$ac_res
10553 rm -f core conftest.err conftest.$ac_objext \
10554 conftest$ac_exeext
10555 if ${ac_cv_search_dlopen+:} false; then :
10556 break
10558 done
10559 if ${ac_cv_search_dlopen+:} false; then :
10561 else
10562 ac_cv_search_dlopen=no
10564 rm conftest.$ac_ext
10565 LIBS=$ac_func_search_save_LIBS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10568 $as_echo "$ac_cv_search_dlopen" >&6; }
10569 ac_res=$ac_cv_search_dlopen
10570 if test "$ac_res" != no; then :
10571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10575 DL_LIB="$LIBS"
10576 LIBS="$save_LIBS"
10579 # Use <inttypes.h> only if it exists,
10580 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10581 # PRId64
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10583 $as_echo_n "checking for inttypes.h... " >&6; }
10584 if ${gcc_cv_header_inttypes_h+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 #define __STDC_FORMAT_MACROS
10590 #include <sys/types.h>
10591 #include <inttypes.h>
10593 main ()
10595 intmax_t i = -1;
10596 #ifndef PRId64
10597 choke me
10598 #endif
10600 return 0;
10602 _ACEOF
10603 if ac_fn_cxx_try_compile "$LINENO"; then :
10604 gcc_cv_header_inttypes_h=yes
10605 else
10606 gcc_cv_header_inttypes_h=no
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10612 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10613 if test $gcc_cv_header_inttypes_h = yes; then
10615 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10619 # Look for the ZSTD package.
10620 ZSTD_INCLUDE=
10621 ZSTD_LIB=
10624 ZSTD_CPPFLAGS=
10625 ZSTD_LDFLAGS=
10629 # Check whether --with-zstd was given.
10630 if test "${with_zstd+set}" = set; then :
10631 withval=$with_zstd;
10635 # Check whether --with-zstd-include was given.
10636 if test "${with_zstd_include+set}" = set; then :
10637 withval=$with_zstd_include;
10641 # Check whether --with-zstd-lib was given.
10642 if test "${with_zstd_lib+set}" = set; then :
10643 withval=$with_zstd_lib;
10646 case "x$with_zstd" in
10647 x) ;;
10648 xno)
10649 ZSTD_INCLUDE=
10650 ZSTD_LIB=
10652 *) ZSTD_INCLUDE=$with_zstd/include
10653 ZSTD_LIB=$with_zstd/lib
10655 esac
10657 if test "x$with_zstd" != xno; then
10658 if test "x$with_zstd_include" != x; then
10659 ZSTD_INCLUDE=$with_zstd_include
10661 if test "x$with_zstd_lib" != x; then
10662 ZSTD_LIB=$with_zstd_lib
10664 if test "x$ZSTD_INCLUDE" != x \
10665 && test "x$ZSTD_INCLUDE" != xno; then
10666 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10668 if test "x$ZSTD_LIB" != x \
10669 && test "x$ZSTD_LIB" != xno; then
10670 ZSTD_LDFLAGS=-L$ZSTD_LIB
10673 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10674 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10676 # LTO can use zstd compression algorithm
10677 save_LIBS="$LIBS"
10678 LIBS=
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10680 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10681 if ${ac_cv_search_ZSTD_compress+:} false; then :
10682 $as_echo_n "(cached) " >&6
10683 else
10684 ac_func_search_save_LIBS=$LIBS
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10688 /* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 char ZSTD_compress ();
10696 main ()
10698 return ZSTD_compress ();
10700 return 0;
10702 _ACEOF
10703 for ac_lib in '' zstd; do
10704 if test -z "$ac_lib"; then
10705 ac_res="none required"
10706 else
10707 ac_res=-l$ac_lib
10708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10710 if ac_fn_cxx_try_link "$LINENO"; then :
10711 ac_cv_search_ZSTD_compress=$ac_res
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext
10715 if ${ac_cv_search_ZSTD_compress+:} false; then :
10716 break
10718 done
10719 if ${ac_cv_search_ZSTD_compress+:} false; then :
10721 else
10722 ac_cv_search_ZSTD_compress=no
10724 rm conftest.$ac_ext
10725 LIBS=$ac_func_search_save_LIBS
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10728 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10729 ac_res=$ac_cv_search_ZSTD_compress
10730 if test "$ac_res" != no; then :
10731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10733 else
10734 gcc_cv_header_zstd_h=no
10737 ZSTD_LIB="$LIBS"
10738 LIBS="$save_LIBS"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10742 $as_echo_n "checking for zstd.h... " >&6; }
10743 if ${gcc_cv_header_zstd_h+:} false; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 # We require version 1.3.0 or later. This is the first version that has
10747 # ZSTD_getFrameContentSize.
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include <zstd.h>
10751 #if ZSTD_VERSION_NUMBER < 10300
10752 #error "need zstd 1.3.0 or better"
10753 #endif
10755 main ()
10759 return 0;
10761 _ACEOF
10762 if ac_fn_cxx_try_compile "$LINENO"; then :
10763 gcc_cv_header_zstd_h=yes
10764 else
10765 gcc_cv_header_zstd_h=no
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10771 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10772 if test $gcc_cv_header_zstd_h = yes; then
10774 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10776 elif test "x$with_zstd" != x; then
10777 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10783 for ac_func in times clock kill getrlimit setrlimit atoq \
10784 popen sysconf strsignal getrusage nl_langinfo \
10785 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10786 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
10787 do :
10788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10789 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10791 cat >>confdefs.h <<_ACEOF
10792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10793 _ACEOF
10796 done
10799 if test x$ac_cv_func_mbstowcs = xyes; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10801 $as_echo_n "checking whether mbstowcs works... " >&6; }
10802 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 if test "$cross_compiling" = yes; then :
10806 gcc_cv_func_mbstowcs_works=yes
10807 else
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810 #include <stdlib.h>
10811 int main()
10813 mbstowcs(0, "", 0);
10814 return 0;
10816 _ACEOF
10817 if ac_fn_cxx_try_run "$LINENO"; then :
10818 gcc_cv_func_mbstowcs_works=yes
10819 else
10820 gcc_cv_func_mbstowcs_works=no
10822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10823 conftest.$ac_objext conftest.beam conftest.$ac_ext
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10828 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10829 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10831 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10836 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10837 if test "x$ac_cv_type_ssize_t" = xyes; then :
10839 else
10841 cat >>confdefs.h <<_ACEOF
10842 #define ssize_t int
10843 _ACEOF
10847 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10848 if test "x$ac_cv_type_caddr_t" = xyes; then :
10850 else
10852 cat >>confdefs.h <<_ACEOF
10853 #define caddr_t char *
10854 _ACEOF
10858 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10860 if test "x$ac_cv_type_sighander_t" = xyes; then :
10862 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10868 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10869 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10870 gcc_header_sys_mman_h=yes
10871 else
10872 gcc_header_sys_mman_h=no
10875 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10876 if test "x$ac_cv_func_mmap" = xyes; then :
10877 gcc_func_mmap=yes
10878 else
10879 gcc_func_mmap=no
10882 if test "$gcc_header_sys_mman_h" != yes \
10883 || test "$gcc_func_mmap" != yes; then
10884 gcc_cv_func_mmap_file=no
10885 gcc_cv_func_mmap_dev_zero=no
10886 gcc_cv_func_mmap_anon=no
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10889 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10890 if ${gcc_cv_func_mmap_file+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 # Add a system to this blacklist if
10894 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10895 # memory area containing the same data that you'd get if you applied
10896 # read() to the same fd. The only system known to have a problem here
10897 # is VMS, where text files have record structure.
10898 case "$host_os" in
10899 *vms* | ultrix*)
10900 gcc_cv_func_mmap_file=no ;;
10902 gcc_cv_func_mmap_file=yes;;
10903 esac
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10906 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10908 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10909 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 # Add a system to this blacklist if it has mmap() but /dev/zero
10913 # does not exist, or if mmapping /dev/zero does not give anonymous
10914 # zeroed pages with both the following properties:
10915 # 1. If you map N consecutive pages in with one call, and then
10916 # unmap any subset of those pages, the pages that were not
10917 # explicitly unmapped remain accessible.
10918 # 2. If you map two adjacent blocks of memory and then unmap them
10919 # both at once, they must both go away.
10920 # Systems known to be in this category are Windows (all variants),
10921 # VMS, and Darwin.
10922 case "$host_os" in
10923 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10924 gcc_cv_func_mmap_dev_zero=no ;;
10926 gcc_cv_func_mmap_dev_zero=yes;;
10927 esac
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10930 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10932 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10934 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10935 if ${gcc_cv_decl_map_anon+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 #include <sys/types.h>
10941 #include <sys/mman.h>
10942 #include <unistd.h>
10944 #ifndef MAP_ANONYMOUS
10945 #define MAP_ANONYMOUS MAP_ANON
10946 #endif
10949 main ()
10951 int n = MAP_ANONYMOUS;
10953 return 0;
10955 _ACEOF
10956 if ac_fn_cxx_try_compile "$LINENO"; then :
10957 gcc_cv_decl_map_anon=yes
10958 else
10959 gcc_cv_decl_map_anon=no
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10964 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10966 if test $gcc_cv_decl_map_anon = no; then
10967 gcc_cv_func_mmap_anon=no
10968 else
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10970 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10971 if ${gcc_cv_func_mmap_anon+:} false; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10975 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10976 # doesn't give anonymous zeroed pages with the same properties listed
10977 # above for use of /dev/zero.
10978 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10979 case "$host_os" in
10980 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10981 gcc_cv_func_mmap_anon=no ;;
10983 gcc_cv_func_mmap_anon=yes;;
10984 esac
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10987 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10991 if test $gcc_cv_func_mmap_file = yes; then
10993 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10996 if test $gcc_cv_func_mmap_dev_zero = yes; then
10998 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11001 if test $gcc_cv_func_mmap_anon = yes; then
11003 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11008 case "${host}" in
11009 *-*-*vms*)
11010 # Under VMS, vfork works very differently than on Unix. The standard test
11011 # won't work, and it isn't easily adaptable. It makes more sense to
11012 # just force it.
11013 ac_cv_func_vfork_works=yes
11015 esac
11016 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11017 if test "x$ac_cv_type_pid_t" = xyes; then :
11019 else
11021 cat >>confdefs.h <<_ACEOF
11022 #define pid_t int
11023 _ACEOF
11027 for ac_header in vfork.h
11028 do :
11029 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
11030 if test "x$ac_cv_header_vfork_h" = xyes; then :
11031 cat >>confdefs.h <<_ACEOF
11032 #define HAVE_VFORK_H 1
11033 _ACEOF
11036 done
11038 for ac_func in fork vfork
11039 do :
11040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11043 cat >>confdefs.h <<_ACEOF
11044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045 _ACEOF
11048 done
11050 if test "x$ac_cv_func_fork" = xyes; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11052 $as_echo_n "checking for working fork... " >&6; }
11053 if ${ac_cv_func_fork_works+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 if test "$cross_compiling" = yes; then :
11057 ac_cv_func_fork_works=cross
11058 else
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 $ac_includes_default
11063 main ()
11066 /* By Ruediger Kuhlmann. */
11067 return fork () < 0;
11070 return 0;
11072 _ACEOF
11073 if ac_fn_cxx_try_run "$LINENO"; then :
11074 ac_cv_func_fork_works=yes
11075 else
11076 ac_cv_func_fork_works=no
11078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11079 conftest.$ac_objext conftest.beam conftest.$ac_ext
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11084 $as_echo "$ac_cv_func_fork_works" >&6; }
11086 else
11087 ac_cv_func_fork_works=$ac_cv_func_fork
11089 if test "x$ac_cv_func_fork_works" = xcross; then
11090 case $host in
11091 *-*-amigaos* | *-*-msdosdjgpp*)
11092 # Override, as these systems have only a dummy fork() stub
11093 ac_cv_func_fork_works=no
11096 ac_cv_func_fork_works=yes
11098 esac
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11100 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11102 ac_cv_func_vfork_works=$ac_cv_func_vfork
11103 if test "x$ac_cv_func_vfork" = xyes; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11105 $as_echo_n "checking for working vfork... " >&6; }
11106 if ${ac_cv_func_vfork_works+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 if test "$cross_compiling" = yes; then :
11110 ac_cv_func_vfork_works=cross
11111 else
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 /* Thanks to Paul Eggert for this test. */
11115 $ac_includes_default
11116 #include <sys/wait.h>
11117 #ifdef HAVE_VFORK_H
11118 # include <vfork.h>
11119 #endif
11120 /* On some sparc systems, changes by the child to local and incoming
11121 argument registers are propagated back to the parent. The compiler
11122 is told about this with #include <vfork.h>, but some compilers
11123 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11124 static variable whose address is put into a register that is
11125 clobbered by the vfork. */
11126 static void
11127 #ifdef __cplusplus
11128 sparc_address_test (int arg)
11129 # else
11130 sparc_address_test (arg) int arg;
11131 #endif
11133 static pid_t child;
11134 if (!child) {
11135 child = vfork ();
11136 if (child < 0) {
11137 perror ("vfork");
11138 _exit(2);
11140 if (!child) {
11141 arg = getpid();
11142 write(-1, "", 0);
11143 _exit (arg);
11149 main ()
11151 pid_t parent = getpid ();
11152 pid_t child;
11154 sparc_address_test (0);
11156 child = vfork ();
11158 if (child == 0) {
11159 /* Here is another test for sparc vfork register problems. This
11160 test uses lots of local variables, at least as many local
11161 variables as main has allocated so far including compiler
11162 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11163 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11164 reuse the register of parent for one of the local variables,
11165 since it will think that parent can't possibly be used any more
11166 in this routine. Assigning to the local variable will thus
11167 munge parent in the parent process. */
11168 pid_t
11169 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11170 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11171 /* Convince the compiler that p..p7 are live; otherwise, it might
11172 use the same hardware register for all 8 local variables. */
11173 if (p != p1 || p != p2 || p != p3 || p != p4
11174 || p != p5 || p != p6 || p != p7)
11175 _exit(1);
11177 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11178 from child file descriptors. If the child closes a descriptor
11179 before it execs or exits, this munges the parent's descriptor
11180 as well. Test for this by closing stdout in the child. */
11181 _exit(close(fileno(stdout)) != 0);
11182 } else {
11183 int status;
11184 struct stat st;
11186 while (wait(&status) != child)
11188 return (
11189 /* Was there some problem with vforking? */
11190 child < 0
11192 /* Did the child fail? (This shouldn't happen.) */
11193 || status
11195 /* Did the vfork/compiler bug occur? */
11196 || parent != getpid()
11198 /* Did the file descriptor bug occur? */
11199 || fstat(fileno(stdout), &st) != 0
11203 _ACEOF
11204 if ac_fn_cxx_try_run "$LINENO"; then :
11205 ac_cv_func_vfork_works=yes
11206 else
11207 ac_cv_func_vfork_works=no
11209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11210 conftest.$ac_objext conftest.beam conftest.$ac_ext
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11215 $as_echo "$ac_cv_func_vfork_works" >&6; }
11218 if test "x$ac_cv_func_fork_works" = xcross; then
11219 ac_cv_func_vfork_works=$ac_cv_func_vfork
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11221 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11224 if test "x$ac_cv_func_vfork_works" = xyes; then
11226 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11228 else
11230 $as_echo "#define vfork fork" >>confdefs.h
11233 if test "x$ac_cv_func_fork_works" = xyes; then
11235 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11241 if test "X$prefix" = "XNONE"; then
11242 acl_final_prefix="$ac_default_prefix"
11243 else
11244 acl_final_prefix="$prefix"
11246 if test "X$exec_prefix" = "XNONE"; then
11247 acl_final_exec_prefix='${prefix}'
11248 else
11249 acl_final_exec_prefix="$exec_prefix"
11251 acl_save_prefix="$prefix"
11252 prefix="$acl_final_prefix"
11253 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11254 prefix="$acl_save_prefix"
11257 # Check whether --with-gnu-ld was given.
11258 if test "${with_gnu_ld+set}" = set; then :
11259 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11260 else
11261 with_gnu_ld=no
11264 # Prepare PATH_SEPARATOR.
11265 # The user is always right.
11266 if test "${PATH_SEPARATOR+set}" != set; then
11267 echo "#! /bin/sh" >conf$$.sh
11268 echo "exit 0" >>conf$$.sh
11269 chmod +x conf$$.sh
11270 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11271 PATH_SEPARATOR=';'
11272 else
11273 PATH_SEPARATOR=:
11275 rm -f conf$$.sh
11277 ac_prog=ld
11278 if test "$GCC" = yes; then
11279 # Check if gcc -print-prog-name=ld gives a path.
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11281 $as_echo_n "checking for ld used by GCC... " >&6; }
11282 case $host in
11283 *-*-mingw*)
11284 # gcc leaves a trailing carriage return which upsets mingw
11285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11288 esac
11289 case $ac_prog in
11290 # Accept absolute paths.
11291 [\\/]* | [A-Za-z]:[\\/]*)
11292 re_direlt='/[^/][^/]*/\.\./'
11293 # Canonicalize the path of ld
11294 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11295 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11296 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11297 done
11298 test -z "$LD" && LD="$ac_prog"
11301 # If it fails, then pretend we aren't using GCC.
11302 ac_prog=ld
11305 # If it is relative, then search for the first ld in PATH.
11306 with_gnu_ld=unknown
11308 esac
11309 elif test "$with_gnu_ld" = yes; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11311 $as_echo_n "checking for GNU ld... " >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11314 $as_echo_n "checking for non-GNU ld... " >&6; }
11316 if ${acl_cv_path_LD+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 if test -z "$LD"; then
11320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11321 for ac_dir in $PATH; do
11322 test -z "$ac_dir" && ac_dir=.
11323 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11324 acl_cv_path_LD="$ac_dir/$ac_prog"
11325 # Check to see if the program is GNU ld. I'd rather use --version,
11326 # but apparently some GNU ld's only accept -v.
11327 # Break only if it was the GNU/non-GNU ld that we prefer.
11328 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
11329 test "$with_gnu_ld" != no && break
11330 else
11331 test "$with_gnu_ld" != yes && break
11334 done
11335 IFS="$ac_save_ifs"
11336 else
11337 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11341 LD="$acl_cv_path_LD"
11342 if test -n "$LD"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11344 $as_echo "$LD" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11352 if ${acl_cv_prog_gnu_ld+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11356 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
11357 acl_cv_prog_gnu_ld=yes
11358 else
11359 acl_cv_prog_gnu_ld=no
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11363 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11364 with_gnu_ld=$acl_cv_prog_gnu_ld
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11369 $as_echo_n "checking for shared library run path origin... " >&6; }
11370 if ${acl_cv_rpath+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11374 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11375 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11376 . ./conftest.sh
11377 rm -f ./conftest.sh
11378 acl_cv_rpath=done
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11382 $as_echo "$acl_cv_rpath" >&6; }
11383 wl="$acl_cv_wl"
11384 libext="$acl_cv_libext"
11385 shlibext="$acl_cv_shlibext"
11386 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11387 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11388 hardcode_direct="$acl_cv_hardcode_direct"
11389 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11390 # Check whether --enable-rpath was given.
11391 if test "${enable_rpath+set}" = set; then :
11392 enableval=$enable_rpath; :
11393 else
11394 enable_rpath=yes
11404 use_additional=yes
11406 acl_save_prefix="$prefix"
11407 prefix="$acl_final_prefix"
11408 acl_save_exec_prefix="$exec_prefix"
11409 exec_prefix="$acl_final_exec_prefix"
11411 eval additional_includedir=\"$includedir\"
11412 eval additional_libdir=\"$libdir\"
11414 exec_prefix="$acl_save_exec_prefix"
11415 prefix="$acl_save_prefix"
11418 # Check whether --with-libiconv-prefix was given.
11419 if test "${with_libiconv_prefix+set}" = set; then :
11420 withval=$with_libiconv_prefix;
11421 if test "X$withval" = "Xno"; then
11422 use_additional=no
11423 else
11424 if test "X$withval" = "X"; then
11426 acl_save_prefix="$prefix"
11427 prefix="$acl_final_prefix"
11428 acl_save_exec_prefix="$exec_prefix"
11429 exec_prefix="$acl_final_exec_prefix"
11431 eval additional_includedir=\"$includedir\"
11432 eval additional_libdir=\"$libdir\"
11434 exec_prefix="$acl_save_exec_prefix"
11435 prefix="$acl_save_prefix"
11437 else
11438 additional_includedir="$withval/include"
11439 additional_libdir="$withval/lib"
11446 # Check whether --with-libiconv-type was given.
11447 if test "${with_libiconv_type+set}" = set; then :
11448 withval=$with_libiconv_type; with_libiconv_type=$withval
11449 else
11450 with_libiconv_type=auto
11453 lib_type=`eval echo \$with_libiconv_type`
11455 LIBICONV=
11456 LTLIBICONV=
11457 INCICONV=
11458 rpathdirs=
11459 ltrpathdirs=
11460 names_already_handled=
11461 names_next_round='iconv '
11462 while test -n "$names_next_round"; do
11463 names_this_round="$names_next_round"
11464 names_next_round=
11465 for name in $names_this_round; do
11466 already_handled=
11467 for n in $names_already_handled; do
11468 if test "$n" = "$name"; then
11469 already_handled=yes
11470 break
11472 done
11473 if test -z "$already_handled"; then
11474 names_already_handled="$names_already_handled $name"
11475 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11476 eval value=\"\$HAVE_LIB$uppername\"
11477 if test -n "$value"; then
11478 if test "$value" = yes; then
11479 eval value=\"\$LIB$uppername\"
11480 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11481 eval value=\"\$LTLIB$uppername\"
11482 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11483 else
11486 else
11487 found_dir=
11488 found_la=
11489 found_so=
11490 found_a=
11491 if test $use_additional = yes; then
11492 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11493 found_dir="$additional_libdir"
11494 found_so="$additional_libdir/lib$name.$shlibext"
11495 if test -f "$additional_libdir/lib$name.la"; then
11496 found_la="$additional_libdir/lib$name.la"
11498 elif test x$lib_type != xshared; then
11499 if test -f "$additional_libdir/lib$name.$libext"; then
11500 found_dir="$additional_libdir"
11501 found_a="$additional_libdir/lib$name.$libext"
11502 if test -f "$additional_libdir/lib$name.la"; then
11503 found_la="$additional_libdir/lib$name.la"
11508 if test "X$found_dir" = "X"; then
11509 for x in $LDFLAGS $LTLIBICONV; do
11511 acl_save_prefix="$prefix"
11512 prefix="$acl_final_prefix"
11513 acl_save_exec_prefix="$exec_prefix"
11514 exec_prefix="$acl_final_exec_prefix"
11515 eval x=\"$x\"
11516 exec_prefix="$acl_save_exec_prefix"
11517 prefix="$acl_save_prefix"
11519 case "$x" in
11520 -L*)
11521 dir=`echo "X$x" | sed -e 's/^X-L//'`
11522 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11523 found_dir="$dir"
11524 found_so="$dir/lib$name.$shlibext"
11525 if test -f "$dir/lib$name.la"; then
11526 found_la="$dir/lib$name.la"
11528 elif test x$lib_type != xshared; then
11529 if test -f "$dir/lib$name.$libext"; then
11530 found_dir="$dir"
11531 found_a="$dir/lib$name.$libext"
11532 if test -f "$dir/lib$name.la"; then
11533 found_la="$dir/lib$name.la"
11538 esac
11539 if test "X$found_dir" != "X"; then
11540 break
11542 done
11544 if test "X$found_dir" != "X"; then
11545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11546 if test "X$found_so" != "X"; then
11547 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11549 else
11550 haveit=
11551 for x in $ltrpathdirs; do
11552 if test "X$x" = "X$found_dir"; then
11553 haveit=yes
11554 break
11556 done
11557 if test -z "$haveit"; then
11558 ltrpathdirs="$ltrpathdirs $found_dir"
11560 if test "$hardcode_direct" = yes; then
11561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11562 else
11563 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11565 haveit=
11566 for x in $rpathdirs; do
11567 if test "X$x" = "X$found_dir"; then
11568 haveit=yes
11569 break
11571 done
11572 if test -z "$haveit"; then
11573 rpathdirs="$rpathdirs $found_dir"
11575 else
11576 haveit=
11577 for x in $LDFLAGS $LIBICONV; do
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 acl_save_exec_prefix="$exec_prefix"
11582 exec_prefix="$acl_final_exec_prefix"
11583 eval x=\"$x\"
11584 exec_prefix="$acl_save_exec_prefix"
11585 prefix="$acl_save_prefix"
11587 if test "X$x" = "X-L$found_dir"; then
11588 haveit=yes
11589 break
11591 done
11592 if test -z "$haveit"; then
11593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11595 if test "$hardcode_minus_L" != no; then
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11597 else
11598 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11603 else
11604 if test "X$found_a" != "X"; then
11605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11606 else
11607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11610 additional_includedir=
11611 case "$found_dir" in
11612 */lib | */lib/)
11613 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11614 additional_includedir="$basedir/include"
11616 esac
11617 if test "X$additional_includedir" != "X"; then
11618 if test "X$additional_includedir" != "X/usr/include"; then
11619 haveit=
11620 if test "X$additional_includedir" = "X/usr/local/include"; then
11621 if test -n "$GCC"; then
11622 case $host_os in
11623 linux*) haveit=yes;;
11624 esac
11627 if test -z "$haveit"; then
11628 for x in $CPPFLAGS $INCICONV; do
11630 acl_save_prefix="$prefix"
11631 prefix="$acl_final_prefix"
11632 acl_save_exec_prefix="$exec_prefix"
11633 exec_prefix="$acl_final_exec_prefix"
11634 eval x=\"$x\"
11635 exec_prefix="$acl_save_exec_prefix"
11636 prefix="$acl_save_prefix"
11638 if test "X$x" = "X-I$additional_includedir"; then
11639 haveit=yes
11640 break
11642 done
11643 if test -z "$haveit"; then
11644 if test -d "$additional_includedir"; then
11645 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11651 if test -n "$found_la"; then
11652 save_libdir="$libdir"
11653 case "$found_la" in
11654 */* | *\\*) . "$found_la" ;;
11655 *) . "./$found_la" ;;
11656 esac
11657 libdir="$save_libdir"
11658 for dep in $dependency_libs; do
11659 case "$dep" in
11660 -L*)
11661 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11662 if test "X$additional_libdir" != "X/usr/lib"; then
11663 haveit=
11664 if test "X$additional_libdir" = "X/usr/local/lib"; then
11665 if test -n "$GCC"; then
11666 case $host_os in
11667 linux*) haveit=yes;;
11668 esac
11671 if test -z "$haveit"; then
11672 haveit=
11673 for x in $LDFLAGS $LIBICONV; do
11675 acl_save_prefix="$prefix"
11676 prefix="$acl_final_prefix"
11677 acl_save_exec_prefix="$exec_prefix"
11678 exec_prefix="$acl_final_exec_prefix"
11679 eval x=\"$x\"
11680 exec_prefix="$acl_save_exec_prefix"
11681 prefix="$acl_save_prefix"
11683 if test "X$x" = "X-L$additional_libdir"; then
11684 haveit=yes
11685 break
11687 done
11688 if test -z "$haveit"; then
11689 if test -d "$additional_libdir"; then
11690 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11693 haveit=
11694 for x in $LDFLAGS $LTLIBICONV; do
11696 acl_save_prefix="$prefix"
11697 prefix="$acl_final_prefix"
11698 acl_save_exec_prefix="$exec_prefix"
11699 exec_prefix="$acl_final_exec_prefix"
11700 eval x=\"$x\"
11701 exec_prefix="$acl_save_exec_prefix"
11702 prefix="$acl_save_prefix"
11704 if test "X$x" = "X-L$additional_libdir"; then
11705 haveit=yes
11706 break
11708 done
11709 if test -z "$haveit"; then
11710 if test -d "$additional_libdir"; then
11711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11717 -R*)
11718 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11719 if test "$enable_rpath" != no; then
11720 haveit=
11721 for x in $rpathdirs; do
11722 if test "X$x" = "X$dir"; then
11723 haveit=yes
11724 break
11726 done
11727 if test -z "$haveit"; then
11728 rpathdirs="$rpathdirs $dir"
11730 haveit=
11731 for x in $ltrpathdirs; do
11732 if test "X$x" = "X$dir"; then
11733 haveit=yes
11734 break
11736 done
11737 if test -z "$haveit"; then
11738 ltrpathdirs="$ltrpathdirs $dir"
11742 -l*)
11743 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11745 *.la)
11746 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11749 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11750 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11752 esac
11753 done
11755 else
11756 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11759 else
11760 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11761 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11766 done
11767 done
11768 if test "X$rpathdirs" != "X"; then
11769 if test -n "$hardcode_libdir_separator"; then
11770 alldirs=
11771 for found_dir in $rpathdirs; do
11772 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11773 done
11774 acl_save_libdir="$libdir"
11775 libdir="$alldirs"
11776 eval flag=\"$hardcode_libdir_flag_spec\"
11777 libdir="$acl_save_libdir"
11778 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11779 else
11780 for found_dir in $rpathdirs; do
11781 acl_save_libdir="$libdir"
11782 libdir="$found_dir"
11783 eval flag=\"$hardcode_libdir_flag_spec\"
11784 libdir="$acl_save_libdir"
11785 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11786 done
11789 if test "X$ltrpathdirs" != "X"; then
11790 for found_dir in $ltrpathdirs; do
11791 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11792 done
11801 am_save_CPPFLAGS="$CPPFLAGS"
11803 for element in $INCICONV; do
11804 haveit=
11805 for x in $CPPFLAGS; do
11807 acl_save_prefix="$prefix"
11808 prefix="$acl_final_prefix"
11809 acl_save_exec_prefix="$exec_prefix"
11810 exec_prefix="$acl_final_exec_prefix"
11811 eval x=\"$x\"
11812 exec_prefix="$acl_save_exec_prefix"
11813 prefix="$acl_save_prefix"
11815 if test "X$x" = "X$element"; then
11816 haveit=yes
11817 break
11819 done
11820 if test -z "$haveit"; then
11821 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11823 done
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11827 $as_echo_n "checking for iconv... " >&6; }
11828 if ${am_cv_func_iconv+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11832 am_cv_func_iconv="no, consider installing GNU libiconv"
11833 am_cv_lib_iconv=no
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11837 #include <stdlib.h>
11838 #include <iconv.h>
11841 main ()
11843 iconv_t cd = iconv_open("","");
11844 iconv(cd,NULL,NULL,NULL,NULL);
11845 iconv_close(cd);
11847 return 0;
11849 _ACEOF
11850 if ac_fn_cxx_try_link "$LINENO"; then :
11851 am_cv_func_iconv=yes
11853 rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855 if test "$am_cv_func_iconv" != yes; then
11856 am_save_LIBS="$LIBS"
11857 LIBS="$LIBS $LIBICONV"
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 #include <stdlib.h>
11862 #include <iconv.h>
11865 main ()
11867 iconv_t cd = iconv_open("","");
11868 iconv(cd,NULL,NULL,NULL,NULL);
11869 iconv_close(cd);
11871 return 0;
11873 _ACEOF
11874 if ac_fn_cxx_try_link "$LINENO"; then :
11875 am_cv_lib_iconv=yes
11876 am_cv_func_iconv=yes
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS="$am_save_LIBS"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11885 $as_echo "$am_cv_func_iconv" >&6; }
11886 if test "$am_cv_func_iconv" = yes; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11888 $as_echo_n "checking for working iconv... " >&6; }
11889 if ${am_cv_func_iconv_works+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11893 am_save_LIBS="$LIBS"
11894 if test $am_cv_lib_iconv = yes; then
11895 LIBS="$LIBS $LIBICONV"
11897 am_cv_func_iconv_works=no
11898 for ac_iconv_const in '' 'const'; do
11899 if test "$cross_compiling" = yes; then :
11900 case "$host_os" in
11901 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11902 *) am_cv_func_iconv_works="guessing yes" ;;
11903 esac
11904 else
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11908 #include <iconv.h>
11909 #include <string.h>
11911 #ifndef ICONV_CONST
11912 # define ICONV_CONST $ac_iconv_const
11913 #endif
11916 main ()
11918 int result = 0;
11919 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
11920 successful returns. This is even documented in
11921 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
11923 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11924 if (cd_utf8_to_88591 != (iconv_t)(-1))
11926 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11927 char buf[10];
11928 ICONV_CONST char *inptr = input;
11929 size_t inbytesleft = strlen (input);
11930 char *outptr = buf;
11931 size_t outbytesleft = sizeof (buf);
11932 size_t res = iconv (cd_utf8_to_88591,
11933 &inptr, &inbytesleft,
11934 &outptr, &outbytesleft);
11935 if (res == 0)
11936 result |= 1;
11937 iconv_close (cd_utf8_to_88591);
11940 /* Test against Solaris 10 bug: Failures are not distinguishable from
11941 successful returns. */
11943 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11944 if (cd_ascii_to_88591 != (iconv_t)(-1))
11946 static ICONV_CONST char input[] = "\263";
11947 char buf[10];
11948 ICONV_CONST char *inptr = input;
11949 size_t inbytesleft = strlen (input);
11950 char *outptr = buf;
11951 size_t outbytesleft = sizeof (buf);
11952 size_t res = iconv (cd_ascii_to_88591,
11953 &inptr, &inbytesleft,
11954 &outptr, &outbytesleft);
11955 if (res == 0)
11956 result |= 2;
11957 iconv_close (cd_ascii_to_88591);
11960 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11962 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11963 if (cd_88591_to_utf8 != (iconv_t)(-1))
11965 static ICONV_CONST char input[] = "\304";
11966 static char buf[2] = { (char)0xDE, (char)0xAD };
11967 ICONV_CONST char *inptr = input;
11968 size_t inbytesleft = 1;
11969 char *outptr = buf;
11970 size_t outbytesleft = 1;
11971 size_t res = iconv (cd_88591_to_utf8,
11972 &inptr, &inbytesleft,
11973 &outptr, &outbytesleft);
11974 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11975 result |= 4;
11976 iconv_close (cd_88591_to_utf8);
11979 #if 0 /* This bug could be worked around by the caller. */
11980 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11982 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11983 if (cd_88591_to_utf8 != (iconv_t)(-1))
11985 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11986 char buf[50];
11987 ICONV_CONST char *inptr = input;
11988 size_t inbytesleft = strlen (input);
11989 char *outptr = buf;
11990 size_t outbytesleft = sizeof (buf);
11991 size_t res = iconv (cd_88591_to_utf8,
11992 &inptr, &inbytesleft,
11993 &outptr, &outbytesleft);
11994 if ((int)res > 0)
11995 result |= 8;
11996 iconv_close (cd_88591_to_utf8);
11999 #endif
12000 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12001 provided. */
12003 /* Try standardized names. */
12004 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12005 /* Try IRIX, OSF/1 names. */
12006 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12007 /* Try AIX names. */
12008 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12009 /* Try HP-UX names. */
12010 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12011 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12012 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12013 result |= 16;
12014 if (cd1 != (iconv_t)(-1))
12015 iconv_close (cd1);
12016 if (cd2 != (iconv_t)(-1))
12017 iconv_close (cd2);
12018 if (cd3 != (iconv_t)(-1))
12019 iconv_close (cd3);
12020 if (cd4 != (iconv_t)(-1))
12021 iconv_close (cd4);
12023 return result;
12026 return 0;
12028 _ACEOF
12029 if ac_fn_cxx_try_run "$LINENO"; then :
12030 am_cv_func_iconv_works=yes
12032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12033 conftest.$ac_objext conftest.beam conftest.$ac_ext
12036 test "$am_cv_func_iconv_works" = no || break
12037 done
12038 LIBS="$am_save_LIBS"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12042 $as_echo "$am_cv_func_iconv_works" >&6; }
12043 case "$am_cv_func_iconv_works" in
12044 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12045 *) am_func_iconv=yes ;;
12046 esac
12047 else
12048 am_func_iconv=no am_cv_lib_iconv=no
12050 if test "$am_func_iconv" = yes; then
12052 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12055 if test "$am_cv_lib_iconv" = yes; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12057 $as_echo_n "checking how to link with libiconv... " >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12059 $as_echo "$LIBICONV" >&6; }
12060 else
12061 CPPFLAGS="$am_save_CPPFLAGS"
12062 LIBICONV=
12063 LTLIBICONV=
12068 if test "$am_cv_func_iconv" = yes; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
12070 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
12071 if ${gl_cv_iconv_nonconst+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 #include <stdlib.h>
12078 #include <iconv.h>
12079 extern
12080 #ifdef __cplusplus
12082 #endif
12083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12086 main ()
12090 return 0;
12092 _ACEOF
12093 if ac_fn_cxx_try_compile "$LINENO"; then :
12094 gl_cv_iconv_nonconst=yes
12095 else
12096 gl_cv_iconv_nonconst=no
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
12102 $as_echo "$gl_cv_iconv_nonconst" >&6; }
12103 else
12104 gl_cv_iconv_nonconst=yes
12106 if test $gl_cv_iconv_nonconst = yes; then
12107 iconv_arg1=""
12108 else
12109 iconv_arg1="const"
12112 cat >>confdefs.h <<_ACEOF
12113 #define ICONV_CONST $iconv_arg1
12114 _ACEOF
12118 if test "$am_func_iconv" = yes; then
12119 if test -n "$LIBICONV"; then
12120 am_cv_func_iconv_summary='yes, in libiconv'
12121 else
12122 am_cv_func_iconv_summary='yes, in libc'
12124 else
12125 if test "$am_cv_func_iconv" = yes; then
12126 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
12127 else
12128 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
12133 # Until we have in-tree GNU iconv:
12134 LIBICONV_DEP=
12135 if test -f "$LTLIBICONV"; then
12136 LIBICONV_DEP=$LTLIBICONV
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12142 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12143 if ${am_cv_val_LC_MESSAGES+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #include <locale.h>
12150 main ()
12152 return LC_MESSAGES
12154 return 0;
12156 _ACEOF
12157 if ac_fn_cxx_try_link "$LINENO"; then :
12158 am_cv_val_LC_MESSAGES=yes
12159 else
12160 am_cv_val_LC_MESSAGES=no
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext conftest.$ac_ext
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12166 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12167 if test $am_cv_val_LC_MESSAGES = yes; then
12169 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12176 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12177 if ${am_cv_langinfo_codeset+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179 else
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <langinfo.h>
12184 main ()
12186 char* cs = nl_langinfo(CODESET);
12188 return 0;
12190 _ACEOF
12191 if ac_fn_cxx_try_link "$LINENO"; then :
12192 am_cv_langinfo_codeset=yes
12193 else
12194 am_cv_langinfo_codeset=no
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12201 $as_echo "$am_cv_langinfo_codeset" >&6; }
12202 if test $am_cv_langinfo_codeset = yes; then
12204 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12209 # We will need to find libiberty.h and ansidecl.h
12210 saved_CFLAGS="$CFLAGS"
12211 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12212 saved_CXXFLAGS="$CXXFLAGS"
12213 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
12215 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
12216 # normal autoconf function for these. But force definition of
12217 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
12218 # basename handling in libiberty.h.
12219 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
12220 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
12221 #undef HAVE_DECL_BASENAME
12222 #define HAVE_DECL_BASENAME 1
12223 #include \"ansidecl.h\"
12224 #include \"system.h\"
12226 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12227 ac_have_decl=1
12228 else
12229 ac_have_decl=0
12232 cat >>confdefs.h <<_ACEOF
12233 #define HAVE_DECL_BASENAME $ac_have_decl
12234 _ACEOF
12235 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
12236 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
12237 #undef HAVE_DECL_BASENAME
12238 #define HAVE_DECL_BASENAME 1
12239 #include \"ansidecl.h\"
12240 #include \"system.h\"
12242 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12243 ac_have_decl=1
12244 else
12245 ac_have_decl=0
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_DECL_STRSTR $ac_have_decl
12250 _ACEOF
12253 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
12254 madvise stpcpy strnlen strsignal strverscmp \
12255 strtol strtoul strtoll strtoull setenv unsetenv \
12256 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12257 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
12259 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12261 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12262 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 #undef $ac_tr_decl
12268 #define $ac_tr_decl 1
12270 #include "ansidecl.h"
12271 #include "system.h"
12274 main ()
12276 #ifndef $ac_func
12277 char *(*pfn) = (char *(*)) $ac_func ;
12278 #endif
12280 return 0;
12282 _ACEOF
12283 if ac_fn_cxx_try_compile "$LINENO"; then :
12284 eval "gcc_cv_have_decl_$ac_func=yes"
12285 else
12286 eval "gcc_cv_have_decl_$ac_func=no"
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12294 #define $ac_tr_decl 1
12295 _ACEOF
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12300 #define $ac_tr_decl 0
12301 _ACEOF
12305 done
12308 for ac_func in getrlimit setrlimit getrusage
12310 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12312 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12313 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #undef $ac_tr_decl
12319 #define $ac_tr_decl 1
12321 #include "ansidecl.h"
12322 #include "system.h"
12323 #ifdef HAVE_SYS_RESOURCE_H
12324 #include <sys/resource.h>
12325 #endif
12329 main ()
12331 #ifndef $ac_func
12332 char *(*pfn) = (char *(*)) $ac_func ;
12333 #endif
12335 return 0;
12337 _ACEOF
12338 if ac_fn_cxx_try_compile "$LINENO"; then :
12339 eval "gcc_cv_have_decl_$ac_func=yes"
12340 else
12341 eval "gcc_cv_have_decl_$ac_func=no"
12343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12349 #define $ac_tr_decl 1
12350 _ACEOF
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12355 #define $ac_tr_decl 0
12356 _ACEOF
12360 done
12363 for ac_func in mallinfo mallinfo2
12365 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12367 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12368 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 #undef $ac_tr_decl
12374 #define $ac_tr_decl 1
12376 #include "ansidecl.h"
12377 #include "system.h"
12378 #ifdef HAVE_MALLOC_H
12379 #include <malloc.h>
12380 #endif
12384 main ()
12386 #ifndef $ac_func
12387 char *(*pfn) = (char *(*)) $ac_func ;
12388 #endif
12390 return 0;
12392 _ACEOF
12393 if ac_fn_cxx_try_compile "$LINENO"; then :
12394 eval "gcc_cv_have_decl_$ac_func=yes"
12395 else
12396 eval "gcc_cv_have_decl_$ac_func=no"
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12404 #define $ac_tr_decl 1
12405 _ACEOF
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12410 #define $ac_tr_decl 0
12411 _ACEOF
12415 done
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12421 #include "ansidecl.h"
12422 #include "system.h"
12423 #ifdef HAVE_SYS_RESOURCE_H
12424 #include <sys/resource.h>
12425 #endif
12428 main ()
12430 rlim_t l = 0;
12432 return 0;
12434 _ACEOF
12435 if ac_fn_cxx_try_compile "$LINENO"; then :
12437 else
12439 $as_echo "#define rlim_t long" >>confdefs.h
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12445 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12446 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12447 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12448 for ac_func in ldgetname
12450 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12452 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12453 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458 #undef $ac_tr_decl
12459 #define $ac_tr_decl 1
12461 #include "ansidecl.h"
12462 #include "system.h"
12463 #ifdef HAVE_LDFCN_H
12464 #undef FREAD
12465 #undef FWRITE
12466 #include <ldfcn.h>
12467 #endif
12471 main ()
12473 #ifndef $ac_func
12474 char *(*pfn) = (char *(*)) $ac_func ;
12475 #endif
12477 return 0;
12479 _ACEOF
12480 if ac_fn_cxx_try_compile "$LINENO"; then :
12481 eval "gcc_cv_have_decl_$ac_func=yes"
12482 else
12483 eval "gcc_cv_have_decl_$ac_func=no"
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12490 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12491 #define $ac_tr_decl 1
12492 _ACEOF
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12497 #define $ac_tr_decl 0
12498 _ACEOF
12502 done
12505 for ac_func in times
12507 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12509 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12510 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #undef $ac_tr_decl
12516 #define $ac_tr_decl 1
12518 #include "ansidecl.h"
12519 #include "system.h"
12520 #ifdef HAVE_SYS_TIMES_H
12521 #include <sys/times.h>
12522 #endif
12526 main ()
12528 #ifndef $ac_func
12529 char *(*pfn) = (char *(*)) $ac_func ;
12530 #endif
12532 return 0;
12534 _ACEOF
12535 if ac_fn_cxx_try_compile "$LINENO"; then :
12536 eval "gcc_cv_have_decl_$ac_func=yes"
12537 else
12538 eval "gcc_cv_have_decl_$ac_func=no"
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12546 #define $ac_tr_decl 1
12547 _ACEOF
12549 else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12552 #define $ac_tr_decl 0
12553 _ACEOF
12557 done
12560 for ac_func in sigaltstack
12562 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12564 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12565 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 #undef $ac_tr_decl
12571 #define $ac_tr_decl 1
12573 #include "ansidecl.h"
12574 #include "system.h"
12575 #include <signal.h>
12579 main ()
12581 #ifndef $ac_func
12582 char *(*pfn) = (char *(*)) $ac_func ;
12583 #endif
12585 return 0;
12587 _ACEOF
12588 if ac_fn_cxx_try_compile "$LINENO"; then :
12589 eval "gcc_cv_have_decl_$ac_func=yes"
12590 else
12591 eval "gcc_cv_have_decl_$ac_func=no"
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12599 #define $ac_tr_decl 1
12600 _ACEOF
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12605 #define $ac_tr_decl 0
12606 _ACEOF
12610 done
12613 # More time-related stuff.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12615 $as_echo_n "checking for struct tms... " >&6; }
12616 if ${ac_cv_struct_tms+:} false; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 #include "ansidecl.h"
12624 #include "system.h"
12625 #ifdef HAVE_SYS_TIMES_H
12626 #include <sys/times.h>
12627 #endif
12630 main ()
12632 struct tms tms;
12634 return 0;
12636 _ACEOF
12637 if ac_fn_cxx_try_compile "$LINENO"; then :
12638 ac_cv_struct_tms=yes
12639 else
12640 ac_cv_struct_tms=no
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12645 $as_echo "$ac_cv_struct_tms" >&6; }
12646 if test $ac_cv_struct_tms = yes; then
12648 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12652 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12653 # revisit after autoconf 2.50.
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12655 $as_echo_n "checking for clock_t... " >&6; }
12656 if ${gcc_cv_type_clock_t+:} false; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12663 #include "ansidecl.h"
12664 #include "system.h"
12667 main ()
12669 clock_t x;
12671 return 0;
12673 _ACEOF
12674 if ac_fn_cxx_try_compile "$LINENO"; then :
12675 gcc_cv_type_clock_t=yes
12676 else
12677 gcc_cv_type_clock_t=no
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12682 $as_echo "$gcc_cv_type_clock_t" >&6; }
12683 if test $gcc_cv_type_clock_t = yes; then
12685 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12689 # Check if F_SETLKW is supported by fcntl.
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12691 $as_echo_n "checking for F_SETLKW... " >&6; }
12692 if ${ac_cv_f_setlkw+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 #include <fcntl.h>
12701 main ()
12704 struct flock fl;
12705 fl.l_whence = 0;
12706 fl.l_start = 0;
12707 fl.l_len = 0;
12708 fl.l_pid = 0;
12709 return fcntl (1, F_SETLKW, &fl);
12711 return 0;
12713 _ACEOF
12714 if ac_fn_cxx_try_compile "$LINENO"; then :
12715 ac_cv_f_setlkw=yes
12716 else
12717 ac_cv_f_setlkw=no
12719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12722 $as_echo "$ac_cv_f_setlkw" >&6; }
12723 if test $ac_cv_f_setlkw = yes; then
12725 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12729 # Check if O_CLOEXEC is defined by fcntl
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12731 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12732 if ${ac_cv_o_cloexec+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12739 #include <fcntl.h>
12741 main ()
12744 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12746 return 0;
12748 _ACEOF
12749 if ac_fn_cxx_try_compile "$LINENO"; then :
12750 ac_cv_o_cloexec=yes
12751 else
12752 ac_cv_o_cloexec=no
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12757 $as_echo "$ac_cv_o_cloexec" >&6; }
12758 if test $ac_cv_o_cloexec = yes; then
12760 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12764 # Check if O_NONBLOCK is defined by fcntl
12765 for ac_header in fcntl.h
12766 do :
12767 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12768 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAVE_FCNTL_H 1
12771 _ACEOF
12774 done
12776 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12778 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12782 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12784 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12789 # C++ Modules would like some networking features to provide the mapping
12790 # server. You can still use modules without them though.
12791 # The following network-related checks could probably do with some
12792 # Windows and other non-linux defenses and checking.
12794 # Local socket connectivity wants AF_UNIX networking
12795 # Check for AF_UNIX networking
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12797 $as_echo_n "checking for AF_UNIX... " >&6; }
12798 if ${ac_cv_af_unix+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 #include <sys/types.h>
12806 #include <sys/socket.h>
12807 #include <sys/un.h>
12808 #include <netinet/in.h>
12810 main ()
12813 sockaddr_un un;
12814 un.sun_family = AF_UNSPEC;
12815 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12816 connect (fd, (sockaddr *)&un, sizeof (un));
12818 return 0;
12820 _ACEOF
12821 if ac_fn_cxx_try_compile "$LINENO"; then :
12822 ac_cv_af_unix=yes
12823 else
12824 ac_cv_af_unix=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12829 $as_echo "$ac_cv_af_unix" >&6; }
12830 if test $ac_cv_af_unix = yes; then
12832 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12836 # Remote socket connectivity wants AF_INET6 networking
12837 # Check for AF_INET6 networking
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12839 $as_echo_n "checking for AF_INET6... " >&6; }
12840 if ${ac_cv_af_inet6+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12847 #include <sys/types.h>
12848 #include <sys/socket.h>
12849 #include <netinet/in.h>
12850 #include <netdb.h>
12852 main ()
12855 sockaddr_in6 in6;
12856 in6.sin6_family = AF_UNSPEC;
12857 struct addrinfo *addrs = 0;
12858 struct addrinfo hints;
12859 hints.ai_flags = 0;
12860 hints.ai_family = AF_INET6;
12861 hints.ai_socktype = SOCK_STREAM;
12862 hints.ai_protocol = 0;
12863 hints.ai_canonname = 0;
12864 hints.ai_addr = 0;
12865 hints.ai_next = 0;
12866 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12867 const char *str = gai_strerror (e);
12868 freeaddrinfo (addrs);
12869 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12870 connect (fd, (sockaddr *)&in6, sizeof (in6));
12872 return 0;
12874 _ACEOF
12875 if ac_fn_cxx_try_compile "$LINENO"; then :
12876 ac_cv_af_inet6=yes
12877 else
12878 ac_cv_af_inet6=no
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12883 $as_echo "$ac_cv_af_inet6" >&6; }
12884 if test $ac_cv_af_inet6 = yes; then
12886 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12890 # Check if _LK_LOCK is supported by _locking
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12892 $as_echo_n "checking for _LK_LOCK... " >&6; }
12893 if ${ac_cv_lk_lock+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12900 #include <io.h>
12901 #include <sys/locking.h>
12903 main ()
12906 int fd;
12907 return _locking (fd, _LK_LOCK, 0);
12909 return 0;
12911 _ACEOF
12912 if ac_fn_cxx_try_compile "$LINENO"; then :
12913 ac_cv_lk_lock=yes
12914 else
12915 ac_cv_lk_lock=no
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12920 $as_echo "$ac_cv_lk_lock" >&6; }
12921 if test $ac_cv_lk_lock = yes; then
12923 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12927 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12928 CFLAGS="$saved_CFLAGS"
12929 CXXFLAGS="$saved_CXXFLAGS"
12931 # mkdir takes a single argument on some systems.
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12933 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12934 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12940 #include <sys/types.h>
12941 #ifdef HAVE_SYS_STAT_H
12942 # include <sys/stat.h>
12943 #endif
12944 #ifdef HAVE_UNISTD_H
12945 # include <unistd.h>
12946 #endif
12947 #ifdef HAVE_DIRECT_H
12948 # include <direct.h>
12949 #endif
12951 main ()
12953 mkdir ("foo", 0);
12955 return 0;
12957 _ACEOF
12958 if ac_fn_cxx_try_compile "$LINENO"; then :
12959 gcc_cv_mkdir_takes_one_arg=no
12960 else
12961 gcc_cv_mkdir_takes_one_arg=yes
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12966 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12967 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12969 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12974 # File extensions
12975 manext='.1'
12976 objext='.o'
12980 # With Setjmp/Longjmp based exception handling.
12981 # Check whether --enable-sjlj-exceptions was given.
12982 if test "${enable_sjlj_exceptions+set}" = set; then :
12983 enableval=$enable_sjlj_exceptions; force_sjlj_exceptions=yes
12984 else
12985 case $target in
12986 lm32*-*-*)
12987 force_sjlj_exceptions=yes
12988 enableval=yes
12991 force_sjlj_exceptions=no
12993 esac
12996 if test $force_sjlj_exceptions = yes; then
12997 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12999 cat >>confdefs.h <<_ACEOF
13000 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13001 _ACEOF
13005 # Windows32 UTF-8 manifest support for running the driver and compiler
13006 # executables with the UTF-8 active code page on mingw hosts.
13007 # Non-mingw hosts ignore this option.
13008 # The shell variables this sets are picked up from the mingw branches
13009 # of config.host so they have to be set before it gets sourced.
13010 # Check whether --enable-win32-utf8-manifest was given.
13011 if test "${enable_win32_utf8_manifest+set}" = set; then :
13012 enableval=$enable_win32_utf8_manifest;
13016 if test "x$enable_win32_utf8_manifest" != xno; then
13017 host_xmake_mingw=i386/x-mingw32-utf8
13018 host_extra_gcc_objs_mingw=utf8rc-mingw32.o
13019 host_extra_objs_mingw=utf8-mingw32.o
13022 # --------------------------------------------------------
13023 # Build, host, and target specific configuration fragments
13024 # --------------------------------------------------------
13026 # Collect build-machine-specific information.
13027 . ${srcdir}/config.build || exit 1
13029 # Collect host-machine-specific information.
13030 . ${srcdir}/config.host || exit 1
13032 target_gtfiles=
13034 # Collect target-machine-specific information.
13035 . ${srcdir}/config.gcc || exit 1
13037 extra_objs="${host_extra_objs} ${extra_objs}"
13038 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13040 # Default the target-machine variables that were not explicitly set.
13041 if test x"$tm_file" = x
13042 then tm_file=$cpu_type/$cpu_type.h; fi
13044 if test x"$extra_headers" = x
13045 then extra_headers=; fi
13047 if test x$md_file = x
13048 then md_file=$cpu_type/$cpu_type.md; fi
13050 if test x$out_file = x
13051 then out_file=$cpu_type/$cpu_type.cc; fi
13053 if test x"$tmake_file" = x
13054 then tmake_file=$cpu_type/t-$cpu_type
13057 # Support --enable-initfini-array.
13058 if test x$enable_initfini_array != xno; then
13059 tm_file="${tm_file} initfini-array.h"
13062 if test x"$dwarf2" = xyes
13063 then tm_file="$tm_file tm-dwarf2.h"
13066 # Say what files are being used for the output code and MD file.
13067 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13068 echo "Using \`$srcdir/config/$md_file' as machine description file."
13070 # If any of the xm_file variables contain nonexistent files, warn
13071 # about them and drop them.
13074 for x in $build_xm_file; do
13075 if test -f $srcdir/config/$x
13076 then bx="$bx $x"
13077 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13078 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13080 done
13081 build_xm_file="$bx"
13084 for x in $host_xm_file; do
13085 if test -f $srcdir/config/$x
13086 then hx="$hx $x"
13087 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13088 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13090 done
13091 host_xm_file="$hx"
13094 for x in $xm_file; do
13095 if test -f $srcdir/config/$x
13096 then tx="$tx $x"
13097 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
13098 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13100 done
13101 xm_file="$tx"
13103 count=a
13104 for f in $tm_file; do
13105 count=${count}x
13106 done
13107 if test $count = ax; then
13108 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13109 else
13110 echo "Using the following target machine macro files:"
13111 for f in $tm_file; do
13112 echo " $srcdir/config/$f"
13113 done
13116 if test x$use_long_long_for_widest_fast_int = xyes; then
13118 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
13122 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_GNU_LD $gnu_ld_bool
13126 _ACEOF
13129 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_GNU_AS $gnu_as_bool
13133 _ACEOF
13136 count=a
13137 for f in $host_xm_file; do
13138 count=${count}x
13139 done
13140 if test $count = a; then
13142 elif test $count = ax; then
13143 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13144 else
13145 echo "Using the following host machine macro files:"
13146 for f in $host_xm_file; do
13147 echo " $srcdir/config/$f"
13148 done
13150 echo "Using ${out_host_hook_obj} for host machine hooks."
13152 if test "$host_xm_file" != "$build_xm_file"; then
13153 count=a
13154 for f in $build_xm_file; do
13155 count=${count}x
13156 done
13157 if test $count = a; then
13159 elif test $count = ax; then
13160 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13161 else
13162 echo "Using the following build machine macro files:"
13163 for f in $build_xm_file; do
13164 echo " $srcdir/config/$f"
13165 done
13169 if test -n "$configured_native_system_header_dir"; then
13170 native_system_header_dir=$configured_native_system_header_dir
13172 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
13175 case ${host} in
13176 powerpc*-*-darwin*)
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
13178 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
13179 if ${gcc_cv_mcontext_underscores+:} false; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 #include <sys/cdefs.h>
13186 #include <sys/signal.h>
13187 #include <ucontext.h>
13188 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13190 _ACEOF
13191 if ac_fn_cxx_try_compile "$LINENO"; then :
13192 gcc_cv_mcontext_underscores=no
13193 else
13194 gcc_cv_mcontext_underscores=yes
13196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
13199 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
13200 if test $gcc_cv_mcontext_underscores = yes; then
13202 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
13206 esac
13208 # ---------
13209 # Threading
13210 # ---------
13212 # Check if a valid thread package
13213 case ${enable_threads} in
13214 "" | no)
13215 # No threads
13216 target_thread_file='single'
13218 yes)
13219 # default
13220 target_thread_file='single'
13222 aix | dce | lynx | mipssde | posix | rtems | \
13223 single | tpf | vxworks | win32 | mcf)
13224 target_thread_file=${enable_threads}
13227 echo "${enable_threads} is an unknown thread package" 1>&2
13228 exit 1
13230 esac
13232 if test x${thread_file} = x; then
13233 # No thread file set by target-specific clauses in config.gcc,
13234 # so use file chosen by default logic above
13235 thread_file=${target_thread_file}
13238 # --------
13239 # UNSORTED
13240 # --------
13242 use_cxa_atexit=no
13243 if test x$enable___cxa_atexit = xyes || \
13244 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13245 if test x$host = x$target; then
13246 case $host in
13247 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13248 # keyed to flag_use_cxa_atexit
13249 *-*-mingw32*)
13250 use_cxa_atexit=yes
13252 powerpc-ibm-aix*)
13253 use_cxa_atexit=yes
13256 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
13257 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
13258 use_cxa_atexit=yes
13259 else
13260 echo "__cxa_atexit can't be enabled on this target"
13264 esac
13265 else
13266 # We can't check for __cxa_atexit when building a cross, so assume
13267 # it is available
13268 use_cxa_atexit=yes
13270 if test x$use_cxa_atexit = xyes; then
13272 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
13277 # Look for a file containing extra machine modes.
13278 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13279 extra_modes_file='$(srcdir)'/config/${extra_modes}
13282 cat >>confdefs.h <<_ACEOF
13283 #define EXTRA_MODES_FILE "config/$extra_modes"
13284 _ACEOF
13288 # Convert extra_options into a form suitable for Makefile use.
13289 extra_opt_files=
13290 all_opt_files=
13291 for f in $extra_options; do
13292 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13293 all_opt_files="$all_opt_files $srcdir/config/$f"
13294 done
13297 # auto-host.h is the file containing items generated by autoconf and is
13298 # the first file included by config.h.
13299 # If host=build, it is correct to have bconfig include auto-host.h
13300 # as well. If host!=build, we are in error and need to do more
13301 # work to find out the build config parameters.
13302 if test x$host = x$build
13303 then
13304 build_auto=auto-host.h
13305 HAVE_AUTO_BUILD='# '
13306 else
13307 # We create a subdir, then run autoconf in the subdir.
13308 # To prevent recursion we set host and build for the new
13309 # invocation of configure to the build for this invocation
13310 # of configure.
13311 tempdir=build.$$
13312 rm -rf $tempdir
13313 mkdir $tempdir
13314 cd $tempdir
13315 case ${srcdir} in
13316 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13317 *) realsrcdir=../${srcdir};;
13318 esac
13319 # Clearing GMPINC is necessary to prevent host headers being
13320 # used by the build compiler. Defining GENERATOR_FILE stops
13321 # system.h from including gmp.h.
13322 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13323 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13324 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13325 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13326 ${realsrcdir}/configure \
13327 --enable-languages=${enable_languages-all} \
13328 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13329 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13330 --target=$target_alias --host=$build_alias \
13331 --build=$build_alias || exit # retaining $tempdir
13333 # We just finished tests for the build machine, so rename
13334 # the file auto-build.h in the gcc directory.
13335 mv auto-host.h ../auto-build.h
13336 cd ..
13337 rm -rf $tempdir
13338 build_auto=auto-build.h
13339 HAVE_AUTO_BUILD=
13344 tm_file="${tm_file} defaults.h"
13345 tm_p_file="${tm_p_file} tm-preds.h"
13346 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13347 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13348 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13349 # put this back in temporarily.
13350 xm_file="auto-host.h ansidecl.h ${xm_file}"
13352 # --------
13353 # UNSORTED
13354 # --------
13356 # Compile in configure arguments.
13357 if test -f configargs.h ; then
13358 # Being re-configured.
13359 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13360 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13361 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13362 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13364 else
13365 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13368 # Double all backslashes and backslash all quotes to turn
13369 # gcc_config_arguments into a C string.
13370 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13371 $gcc_config_arguments
13373 gcc_config_arguments_str=`cat conftest.out`
13374 rm -f conftest.out
13376 cat > configargs.h <<EOF
13377 /* Generated automatically. */
13378 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13379 static const char thread_model[] = "$thread_file";
13381 static const struct {
13382 const char *name, *value;
13383 } configure_default_options[] = $configure_default_options;
13386 gcc_BASEVER=`cat $srcdir/BASE-VER`
13387 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13388 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13389 if test -f $srcdir/REVISION ; then
13390 gcc_REVISION=`cat $srcdir/REVISION`
13391 else
13392 gcc_REVISION=""
13394 cat > plugin-version.h <<EOF
13395 #include "configargs.h"
13397 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13398 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13399 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13400 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13402 static char basever[] = "$gcc_BASEVER";
13403 static char datestamp[] = "$gcc_DATESTAMP";
13404 static char devphase[] = "$gcc_DEVPHASE";
13405 static char revision[] = "$gcc_REVISION";
13407 /* FIXME plugins: We should make the version information more precise.
13408 One way to do is to add a checksum. */
13410 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13411 devphase, revision,
13412 configuration_arguments};
13415 # Determine what GCC version number to use in filesystem paths.
13417 get_gcc_base_ver="cat"
13419 # Check whether --with-gcc-major-version-only was given.
13420 if test "${with_gcc_major_version_only+set}" = set; then :
13421 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13422 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13430 # Internationalization
13431 # Find a good install program. We prefer a C program (faster),
13432 # so one script is as good as another. But avoid the broken or
13433 # incompatible versions:
13434 # SysV /etc/install, /usr/sbin/install
13435 # SunOS /usr/etc/install
13436 # IRIX /sbin/install
13437 # AIX /bin/install
13438 # AmigaOS /C/install, which installs bootblocks on floppy discs
13439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13442 # OS/2's system install, which has a completely different semantic
13443 # ./install, which can be erroneously created by make from ./install.sh.
13444 # Reject install programs that cannot install multiple files.
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13447 if test -z "$INSTALL"; then
13448 if ${ac_cv_path_install+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13454 IFS=$as_save_IFS
13455 test -z "$as_dir" && as_dir=.
13456 # Account for people who put trailing slashes in PATH elements.
13457 case $as_dir/ in #((
13458 ./ | .// | /[cC]/* | \
13459 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13460 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13461 /usr/ucb/* ) ;;
13463 # OSF1 and SCO ODT 3.0 have their own names for install.
13464 # Don't use installbsd from OSF since it installs stuff as root
13465 # by default.
13466 for ac_prog in ginstall scoinst install; do
13467 for ac_exec_ext in '' $ac_executable_extensions; do
13468 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13469 if test $ac_prog = install &&
13470 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13471 # AIX install. It has an incompatible calling convention.
13473 elif test $ac_prog = install &&
13474 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13475 # program-specific install script used by HP pwplus--don't use.
13477 else
13478 rm -rf conftest.one conftest.two conftest.dir
13479 echo one > conftest.one
13480 echo two > conftest.two
13481 mkdir conftest.dir
13482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13483 test -s conftest.one && test -s conftest.two &&
13484 test -s conftest.dir/conftest.one &&
13485 test -s conftest.dir/conftest.two
13486 then
13487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13488 break 3
13492 done
13493 done
13495 esac
13497 done
13498 IFS=$as_save_IFS
13500 rm -rf conftest.one conftest.two conftest.dir
13503 if test "${ac_cv_path_install+set}" = set; then
13504 INSTALL=$ac_cv_path_install
13505 else
13506 # As a last resort, use the slow shell script. Don't cache a
13507 # value for INSTALL within a source directory, because that will
13508 # break other packages using the cache if that directory is
13509 # removed, or if the value is a relative name.
13510 INSTALL=$ac_install_sh
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13514 $as_echo "$INSTALL" >&6; }
13516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13517 # It thinks the first close brace ends the variable substitution.
13518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13525 MKINSTALLDIRS=
13526 if test -n "$ac_aux_dir"; then
13527 case "$ac_aux_dir" in
13528 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13529 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13530 esac
13532 if test -z "$MKINSTALLDIRS"; then
13533 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13539 $as_echo_n "checking whether NLS is requested... " >&6; }
13540 # Check whether --enable-nls was given.
13541 if test "${enable_nls+set}" = set; then :
13542 enableval=$enable_nls; USE_NLS=$enableval
13543 else
13544 USE_NLS=yes
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13548 $as_echo "$USE_NLS" >&6; }
13555 # Prepare PATH_SEPARATOR.
13556 # The user is always right.
13557 if test "${PATH_SEPARATOR+set}" != set; then
13558 echo "#! /bin/sh" >conf$$.sh
13559 echo "exit 0" >>conf$$.sh
13560 chmod +x conf$$.sh
13561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13562 PATH_SEPARATOR=';'
13563 else
13564 PATH_SEPARATOR=:
13566 rm -f conf$$.sh
13569 # Find out how to test for executable files. Don't use a zero-byte file,
13570 # as systems may use methods other than mode bits to determine executability.
13571 cat >conf$$.file <<_ASEOF
13572 #! /bin/sh
13573 exit 0
13574 _ASEOF
13575 chmod +x conf$$.file
13576 if test -x conf$$.file >/dev/null 2>&1; then
13577 ac_executable_p="test -x"
13578 else
13579 ac_executable_p="test -f"
13581 rm -f conf$$.file
13583 # Extract the first word of "msgfmt", so it can be a program name with args.
13584 set dummy msgfmt; ac_word=$2
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13586 $as_echo_n "checking for $ac_word... " >&6; }
13587 if ${ac_cv_path_MSGFMT+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 case "$MSGFMT" in
13591 [\\/]* | ?:[\\/]*)
13592 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13595 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13596 for ac_dir in $PATH; do
13597 IFS="$ac_save_IFS"
13598 test -z "$ac_dir" && ac_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13601 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13602 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13603 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13604 break 2
13607 done
13608 done
13609 IFS="$ac_save_IFS"
13610 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13612 esac
13614 MSGFMT="$ac_cv_path_MSGFMT"
13615 if test "$MSGFMT" != ":"; then
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13617 $as_echo "$MSGFMT" >&6; }
13618 else
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13620 $as_echo "no" >&6; }
13623 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13624 set dummy gmsgfmt; ac_word=$2
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13626 $as_echo_n "checking for $ac_word... " >&6; }
13627 if ${ac_cv_path_GMSGFMT+:} false; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 case $GMSGFMT in
13631 [\\/]* | ?:[\\/]*)
13632 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13638 IFS=$as_save_IFS
13639 test -z "$as_dir" && as_dir=.
13640 for ac_exec_ext in '' $ac_executable_extensions; do
13641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 break 2
13646 done
13647 done
13648 IFS=$as_save_IFS
13650 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13652 esac
13654 GMSGFMT=$ac_cv_path_GMSGFMT
13655 if test -n "$GMSGFMT"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13657 $as_echo "$GMSGFMT" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13666 # Prepare PATH_SEPARATOR.
13667 # The user is always right.
13668 if test "${PATH_SEPARATOR+set}" != set; then
13669 echo "#! /bin/sh" >conf$$.sh
13670 echo "exit 0" >>conf$$.sh
13671 chmod +x conf$$.sh
13672 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13673 PATH_SEPARATOR=';'
13674 else
13675 PATH_SEPARATOR=:
13677 rm -f conf$$.sh
13680 # Find out how to test for executable files. Don't use a zero-byte file,
13681 # as systems may use methods other than mode bits to determine executability.
13682 cat >conf$$.file <<_ASEOF
13683 #! /bin/sh
13684 exit 0
13685 _ASEOF
13686 chmod +x conf$$.file
13687 if test -x conf$$.file >/dev/null 2>&1; then
13688 ac_executable_p="test -x"
13689 else
13690 ac_executable_p="test -f"
13692 rm -f conf$$.file
13694 # Extract the first word of "xgettext", so it can be a program name with args.
13695 set dummy xgettext; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_path_XGETTEXT+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 case "$XGETTEXT" in
13702 [\\/]* | ?:[\\/]*)
13703 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13706 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13707 for ac_dir in $PATH; do
13708 IFS="$ac_save_IFS"
13709 test -z "$ac_dir" && ac_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13712 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13713 (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
13714 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13715 break 2
13718 done
13719 done
13720 IFS="$ac_save_IFS"
13721 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13723 esac
13725 XGETTEXT="$ac_cv_path_XGETTEXT"
13726 if test "$XGETTEXT" != ":"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13728 $as_echo "$XGETTEXT" >&6; }
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13734 rm -f messages.po
13737 # Prepare PATH_SEPARATOR.
13738 # The user is always right.
13739 if test "${PATH_SEPARATOR+set}" != set; then
13740 echo "#! /bin/sh" >conf$$.sh
13741 echo "exit 0" >>conf$$.sh
13742 chmod +x conf$$.sh
13743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13744 PATH_SEPARATOR=';'
13745 else
13746 PATH_SEPARATOR=:
13748 rm -f conf$$.sh
13751 # Find out how to test for executable files. Don't use a zero-byte file,
13752 # as systems may use methods other than mode bits to determine executability.
13753 cat >conf$$.file <<_ASEOF
13754 #! /bin/sh
13755 exit 0
13756 _ASEOF
13757 chmod +x conf$$.file
13758 if test -x conf$$.file >/dev/null 2>&1; then
13759 ac_executable_p="test -x"
13760 else
13761 ac_executable_p="test -f"
13763 rm -f conf$$.file
13765 # Extract the first word of "msgmerge", so it can be a program name with args.
13766 set dummy msgmerge; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13768 $as_echo_n "checking for $ac_word... " >&6; }
13769 if ${ac_cv_path_MSGMERGE+:} false; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 case "$MSGMERGE" in
13773 [\\/]* | ?:[\\/]*)
13774 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13777 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13778 for ac_dir in $PATH; do
13779 IFS="$ac_save_IFS"
13780 test -z "$ac_dir" && ac_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13783 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13784 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13785 break 2
13788 done
13789 done
13790 IFS="$ac_save_IFS"
13791 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13793 esac
13795 MSGMERGE="$ac_cv_path_MSGMERGE"
13796 if test "$MSGMERGE" != ":"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13798 $as_echo "$MSGMERGE" >&6; }
13799 else
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801 $as_echo "no" >&6; }
13805 if test "$GMSGFMT" != ":"; then
13806 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13807 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13809 else
13810 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13812 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13813 GMSGFMT=":"
13817 if test "$XGETTEXT" != ":"; then
13818 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13819 (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
13821 else
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13823 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13824 XGETTEXT=":"
13826 rm -f messages.po
13829 ac_config_commands="$ac_config_commands default-1"
13835 if test -f ../gettext/uninstalled-config.sh; then
13836 relative_builddir='$(top_builddir)/../gettext'
13837 . ../gettext/uninstalled-config.sh
13838 else
13839 # The sister gettext directory doesn't exist and won't collect information on
13840 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13865 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13866 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 gt_save_LIBS="$LIBS"
13870 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #include <CoreFoundation/CFPreferences.h>
13875 main ()
13877 CFPreferencesCopyAppValue(NULL, NULL)
13879 return 0;
13881 _ACEOF
13882 if ac_fn_cxx_try_link "$LINENO"; then :
13883 gt_cv_func_CFPreferencesCopyAppValue=yes
13884 else
13885 gt_cv_func_CFPreferencesCopyAppValue=no
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13889 LIBS="$gt_save_LIBS"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13892 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13893 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13895 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13899 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13900 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 gt_save_LIBS="$LIBS"
13904 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13907 #include <CoreFoundation/CFLocale.h>
13909 main ()
13911 CFLocaleCopyPreferredLanguages();
13913 return 0;
13915 _ACEOF
13916 if ac_fn_cxx_try_link "$LINENO"; then :
13917 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13918 else
13919 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS="$gt_save_LIBS"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13926 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13927 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13929 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13932 INTL_MACOSX_LIBS=
13933 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13934 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13935 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13943 LIBINTL=
13944 LTLIBINTL=
13945 POSUB=
13947 case " $gt_needs " in
13948 *" need-formatstring-macros "*) gt_api_version=3 ;;
13949 *" need-ngettext "*) gt_api_version=2 ;;
13950 *) gt_api_version=1 ;;
13951 esac
13952 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13953 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13955 if test "$USE_NLS" = "yes"; then
13956 gt_use_preinstalled_gnugettext=no
13959 if test $gt_api_version -ge 3; then
13960 gt_revision_test_code='
13961 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13962 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13963 #endif
13964 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13966 else
13967 gt_revision_test_code=
13969 if test $gt_api_version -ge 2; then
13970 gt_expression_test_code=' + * ngettext ("", "", 0)'
13971 else
13972 gt_expression_test_code=
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13976 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13977 if eval \${$gt_func_gnugettext_libc+:} false; then :
13978 $as_echo_n "(cached) " >&6
13979 else
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13983 #include <libintl.h>
13984 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13985 extern int _nl_msg_cat_cntr;
13986 extern int *_nl_domain_bindings;
13987 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13988 #else
13989 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13990 #endif
13991 $gt_revision_test_code
13994 main ()
13997 bindtextdomain ("", "");
13998 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14001 return 0;
14003 _ACEOF
14004 if ac_fn_cxx_try_link "$LINENO"; then :
14005 eval "$gt_func_gnugettext_libc=yes"
14006 else
14007 eval "$gt_func_gnugettext_libc=no"
14009 rm -f core conftest.err conftest.$ac_objext \
14010 conftest$ac_exeext conftest.$ac_ext
14012 eval ac_res=\$$gt_func_gnugettext_libc
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14014 $as_echo "$ac_res" >&6; }
14016 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14022 am_save_CPPFLAGS="$CPPFLAGS"
14024 for element in $INCICONV; do
14025 haveit=
14026 for x in $CPPFLAGS; do
14028 acl_save_prefix="$prefix"
14029 prefix="$acl_final_prefix"
14030 acl_save_exec_prefix="$exec_prefix"
14031 exec_prefix="$acl_final_exec_prefix"
14032 eval x=\"$x\"
14033 exec_prefix="$acl_save_exec_prefix"
14034 prefix="$acl_save_prefix"
14036 if test "X$x" = "X$element"; then
14037 haveit=yes
14038 break
14040 done
14041 if test -z "$haveit"; then
14042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14044 done
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14048 $as_echo_n "checking for iconv... " >&6; }
14049 if ${am_cv_func_iconv+:} false; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14053 am_cv_func_iconv="no, consider installing GNU libiconv"
14054 am_cv_lib_iconv=no
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14058 #include <stdlib.h>
14059 #include <iconv.h>
14062 main ()
14064 iconv_t cd = iconv_open("","");
14065 iconv(cd,NULL,NULL,NULL,NULL);
14066 iconv_close(cd);
14068 return 0;
14070 _ACEOF
14071 if ac_fn_cxx_try_link "$LINENO"; then :
14072 am_cv_func_iconv=yes
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 if test "$am_cv_func_iconv" != yes; then
14077 am_save_LIBS="$LIBS"
14078 LIBS="$LIBS $LIBICONV"
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14082 #include <stdlib.h>
14083 #include <iconv.h>
14086 main ()
14088 iconv_t cd = iconv_open("","");
14089 iconv(cd,NULL,NULL,NULL,NULL);
14090 iconv_close(cd);
14092 return 0;
14094 _ACEOF
14095 if ac_fn_cxx_try_link "$LINENO"; then :
14096 am_cv_lib_iconv=yes
14097 am_cv_func_iconv=yes
14099 rm -f core conftest.err conftest.$ac_objext \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS="$am_save_LIBS"
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14106 $as_echo "$am_cv_func_iconv" >&6; }
14107 if test "$am_cv_func_iconv" = yes; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14109 $as_echo_n "checking for working iconv... " >&6; }
14110 if ${am_cv_func_iconv_works+:} false; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14114 am_save_LIBS="$LIBS"
14115 if test $am_cv_lib_iconv = yes; then
14116 LIBS="$LIBS $LIBICONV"
14118 am_cv_func_iconv_works=no
14119 for ac_iconv_const in '' 'const'; do
14120 if test "$cross_compiling" = yes; then :
14121 case "$host_os" in
14122 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14123 *) am_cv_func_iconv_works="guessing yes" ;;
14124 esac
14125 else
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14129 #include <iconv.h>
14130 #include <string.h>
14132 #ifndef ICONV_CONST
14133 # define ICONV_CONST $ac_iconv_const
14134 #endif
14137 main ()
14139 int result = 0;
14140 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
14141 successful returns. This is even documented in
14142 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
14144 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14145 if (cd_utf8_to_88591 != (iconv_t)(-1))
14147 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14148 char buf[10];
14149 ICONV_CONST char *inptr = input;
14150 size_t inbytesleft = strlen (input);
14151 char *outptr = buf;
14152 size_t outbytesleft = sizeof (buf);
14153 size_t res = iconv (cd_utf8_to_88591,
14154 &inptr, &inbytesleft,
14155 &outptr, &outbytesleft);
14156 if (res == 0)
14157 result |= 1;
14158 iconv_close (cd_utf8_to_88591);
14161 /* Test against Solaris 10 bug: Failures are not distinguishable from
14162 successful returns. */
14164 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14165 if (cd_ascii_to_88591 != (iconv_t)(-1))
14167 static ICONV_CONST char input[] = "\263";
14168 char buf[10];
14169 ICONV_CONST char *inptr = input;
14170 size_t inbytesleft = strlen (input);
14171 char *outptr = buf;
14172 size_t outbytesleft = sizeof (buf);
14173 size_t res = iconv (cd_ascii_to_88591,
14174 &inptr, &inbytesleft,
14175 &outptr, &outbytesleft);
14176 if (res == 0)
14177 result |= 2;
14178 iconv_close (cd_ascii_to_88591);
14181 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14183 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14184 if (cd_88591_to_utf8 != (iconv_t)(-1))
14186 static ICONV_CONST char input[] = "\304";
14187 static char buf[2] = { (char)0xDE, (char)0xAD };
14188 ICONV_CONST char *inptr = input;
14189 size_t inbytesleft = 1;
14190 char *outptr = buf;
14191 size_t outbytesleft = 1;
14192 size_t res = iconv (cd_88591_to_utf8,
14193 &inptr, &inbytesleft,
14194 &outptr, &outbytesleft);
14195 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14196 result |= 4;
14197 iconv_close (cd_88591_to_utf8);
14200 #if 0 /* This bug could be worked around by the caller. */
14201 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14203 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14204 if (cd_88591_to_utf8 != (iconv_t)(-1))
14206 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14207 char buf[50];
14208 ICONV_CONST char *inptr = input;
14209 size_t inbytesleft = strlen (input);
14210 char *outptr = buf;
14211 size_t outbytesleft = sizeof (buf);
14212 size_t res = iconv (cd_88591_to_utf8,
14213 &inptr, &inbytesleft,
14214 &outptr, &outbytesleft);
14215 if ((int)res > 0)
14216 result |= 8;
14217 iconv_close (cd_88591_to_utf8);
14220 #endif
14221 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14222 provided. */
14224 /* Try standardized names. */
14225 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
14226 /* Try IRIX, OSF/1 names. */
14227 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
14228 /* Try AIX names. */
14229 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
14230 /* Try HP-UX names. */
14231 iconv_t cd4 = iconv_open ("utf8", "eucJP");
14232 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
14233 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
14234 result |= 16;
14235 if (cd1 != (iconv_t)(-1))
14236 iconv_close (cd1);
14237 if (cd2 != (iconv_t)(-1))
14238 iconv_close (cd2);
14239 if (cd3 != (iconv_t)(-1))
14240 iconv_close (cd3);
14241 if (cd4 != (iconv_t)(-1))
14242 iconv_close (cd4);
14244 return result;
14247 return 0;
14249 _ACEOF
14250 if ac_fn_cxx_try_run "$LINENO"; then :
14251 am_cv_func_iconv_works=yes
14253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14254 conftest.$ac_objext conftest.beam conftest.$ac_ext
14257 test "$am_cv_func_iconv_works" = no || break
14258 done
14259 LIBS="$am_save_LIBS"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14263 $as_echo "$am_cv_func_iconv_works" >&6; }
14264 case "$am_cv_func_iconv_works" in
14265 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14266 *) am_func_iconv=yes ;;
14267 esac
14268 else
14269 am_func_iconv=no am_cv_lib_iconv=no
14271 if test "$am_func_iconv" = yes; then
14273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14276 if test "$am_cv_lib_iconv" = yes; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14278 $as_echo_n "checking how to link with libiconv... " >&6; }
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14280 $as_echo "$LIBICONV" >&6; }
14281 else
14282 CPPFLAGS="$am_save_CPPFLAGS"
14283 LIBICONV=
14284 LTLIBICONV=
14292 use_additional=yes
14294 acl_save_prefix="$prefix"
14295 prefix="$acl_final_prefix"
14296 acl_save_exec_prefix="$exec_prefix"
14297 exec_prefix="$acl_final_exec_prefix"
14299 eval additional_includedir=\"$includedir\"
14300 eval additional_libdir=\"$libdir\"
14302 exec_prefix="$acl_save_exec_prefix"
14303 prefix="$acl_save_prefix"
14306 # Check whether --with-libintl-prefix was given.
14307 if test "${with_libintl_prefix+set}" = set; then :
14308 withval=$with_libintl_prefix;
14309 if test "X$withval" = "Xno"; then
14310 use_additional=no
14311 else
14312 if test "X$withval" = "X"; then
14314 acl_save_prefix="$prefix"
14315 prefix="$acl_final_prefix"
14316 acl_save_exec_prefix="$exec_prefix"
14317 exec_prefix="$acl_final_exec_prefix"
14319 eval additional_includedir=\"$includedir\"
14320 eval additional_libdir=\"$libdir\"
14322 exec_prefix="$acl_save_exec_prefix"
14323 prefix="$acl_save_prefix"
14325 else
14326 additional_includedir="$withval/include"
14327 additional_libdir="$withval/lib"
14334 # Check whether --with-libintl-type was given.
14335 if test "${with_libintl_type+set}" = set; then :
14336 withval=$with_libintl_type; with_libintl_type=$withval
14337 else
14338 with_libintl_type=auto
14341 lib_type=`eval echo \$with_libintl_type`
14343 LIBINTL=
14344 LTLIBINTL=
14345 INCINTL=
14346 rpathdirs=
14347 ltrpathdirs=
14348 names_already_handled=
14349 names_next_round='intl '
14350 while test -n "$names_next_round"; do
14351 names_this_round="$names_next_round"
14352 names_next_round=
14353 for name in $names_this_round; do
14354 already_handled=
14355 for n in $names_already_handled; do
14356 if test "$n" = "$name"; then
14357 already_handled=yes
14358 break
14360 done
14361 if test -z "$already_handled"; then
14362 names_already_handled="$names_already_handled $name"
14363 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14364 eval value=\"\$HAVE_LIB$uppername\"
14365 if test -n "$value"; then
14366 if test "$value" = yes; then
14367 eval value=\"\$LIB$uppername\"
14368 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14369 eval value=\"\$LTLIB$uppername\"
14370 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14371 else
14374 else
14375 found_dir=
14376 found_la=
14377 found_so=
14378 found_a=
14379 if test $use_additional = yes; then
14380 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14381 found_dir="$additional_libdir"
14382 found_so="$additional_libdir/lib$name.$shlibext"
14383 if test -f "$additional_libdir/lib$name.la"; then
14384 found_la="$additional_libdir/lib$name.la"
14386 elif test x$lib_type != xshared; then
14387 if test -f "$additional_libdir/lib$name.$libext"; then
14388 found_dir="$additional_libdir"
14389 found_a="$additional_libdir/lib$name.$libext"
14390 if test -f "$additional_libdir/lib$name.la"; then
14391 found_la="$additional_libdir/lib$name.la"
14396 if test "X$found_dir" = "X"; then
14397 for x in $LDFLAGS $LTLIBINTL; do
14399 acl_save_prefix="$prefix"
14400 prefix="$acl_final_prefix"
14401 acl_save_exec_prefix="$exec_prefix"
14402 exec_prefix="$acl_final_exec_prefix"
14403 eval x=\"$x\"
14404 exec_prefix="$acl_save_exec_prefix"
14405 prefix="$acl_save_prefix"
14407 case "$x" in
14408 -L*)
14409 dir=`echo "X$x" | sed -e 's/^X-L//'`
14410 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14411 found_dir="$dir"
14412 found_so="$dir/lib$name.$shlibext"
14413 if test -f "$dir/lib$name.la"; then
14414 found_la="$dir/lib$name.la"
14416 elif test x$lib_type != xshared; then
14417 if test -f "$dir/lib$name.$libext"; then
14418 found_dir="$dir"
14419 found_a="$dir/lib$name.$libext"
14420 if test -f "$dir/lib$name.la"; then
14421 found_la="$dir/lib$name.la"
14426 esac
14427 if test "X$found_dir" != "X"; then
14428 break
14430 done
14432 if test "X$found_dir" != "X"; then
14433 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14434 if test "X$found_so" != "X"; then
14435 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14436 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14437 else
14438 haveit=
14439 for x in $ltrpathdirs; do
14440 if test "X$x" = "X$found_dir"; then
14441 haveit=yes
14442 break
14444 done
14445 if test -z "$haveit"; then
14446 ltrpathdirs="$ltrpathdirs $found_dir"
14448 if test "$hardcode_direct" = yes; then
14449 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14450 else
14451 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14453 haveit=
14454 for x in $rpathdirs; do
14455 if test "X$x" = "X$found_dir"; then
14456 haveit=yes
14457 break
14459 done
14460 if test -z "$haveit"; then
14461 rpathdirs="$rpathdirs $found_dir"
14463 else
14464 haveit=
14465 for x in $LDFLAGS $LIBINTL; do
14467 acl_save_prefix="$prefix"
14468 prefix="$acl_final_prefix"
14469 acl_save_exec_prefix="$exec_prefix"
14470 exec_prefix="$acl_final_exec_prefix"
14471 eval x=\"$x\"
14472 exec_prefix="$acl_save_exec_prefix"
14473 prefix="$acl_save_prefix"
14475 if test "X$x" = "X-L$found_dir"; then
14476 haveit=yes
14477 break
14479 done
14480 if test -z "$haveit"; then
14481 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14483 if test "$hardcode_minus_L" != no; then
14484 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14485 else
14486 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14491 else
14492 if test "X$found_a" != "X"; then
14493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14494 else
14495 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14498 additional_includedir=
14499 case "$found_dir" in
14500 */lib | */lib/)
14501 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14502 additional_includedir="$basedir/include"
14504 esac
14505 if test "X$additional_includedir" != "X"; then
14506 if test "X$additional_includedir" != "X/usr/include"; then
14507 haveit=
14508 if test "X$additional_includedir" = "X/usr/local/include"; then
14509 if test -n "$GCC"; then
14510 case $host_os in
14511 linux*) haveit=yes;;
14512 esac
14515 if test -z "$haveit"; then
14516 for x in $CPPFLAGS $INCINTL; do
14518 acl_save_prefix="$prefix"
14519 prefix="$acl_final_prefix"
14520 acl_save_exec_prefix="$exec_prefix"
14521 exec_prefix="$acl_final_exec_prefix"
14522 eval x=\"$x\"
14523 exec_prefix="$acl_save_exec_prefix"
14524 prefix="$acl_save_prefix"
14526 if test "X$x" = "X-I$additional_includedir"; then
14527 haveit=yes
14528 break
14530 done
14531 if test -z "$haveit"; then
14532 if test -d "$additional_includedir"; then
14533 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14539 if test -n "$found_la"; then
14540 save_libdir="$libdir"
14541 case "$found_la" in
14542 */* | *\\*) . "$found_la" ;;
14543 *) . "./$found_la" ;;
14544 esac
14545 libdir="$save_libdir"
14546 for dep in $dependency_libs; do
14547 case "$dep" in
14548 -L*)
14549 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14550 if test "X$additional_libdir" != "X/usr/lib"; then
14551 haveit=
14552 if test "X$additional_libdir" = "X/usr/local/lib"; then
14553 if test -n "$GCC"; then
14554 case $host_os in
14555 linux*) haveit=yes;;
14556 esac
14559 if test -z "$haveit"; then
14560 haveit=
14561 for x in $LDFLAGS $LIBINTL; do
14563 acl_save_prefix="$prefix"
14564 prefix="$acl_final_prefix"
14565 acl_save_exec_prefix="$exec_prefix"
14566 exec_prefix="$acl_final_exec_prefix"
14567 eval x=\"$x\"
14568 exec_prefix="$acl_save_exec_prefix"
14569 prefix="$acl_save_prefix"
14571 if test "X$x" = "X-L$additional_libdir"; then
14572 haveit=yes
14573 break
14575 done
14576 if test -z "$haveit"; then
14577 if test -d "$additional_libdir"; then
14578 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14581 haveit=
14582 for x in $LDFLAGS $LTLIBINTL; do
14584 acl_save_prefix="$prefix"
14585 prefix="$acl_final_prefix"
14586 acl_save_exec_prefix="$exec_prefix"
14587 exec_prefix="$acl_final_exec_prefix"
14588 eval x=\"$x\"
14589 exec_prefix="$acl_save_exec_prefix"
14590 prefix="$acl_save_prefix"
14592 if test "X$x" = "X-L$additional_libdir"; then
14593 haveit=yes
14594 break
14596 done
14597 if test -z "$haveit"; then
14598 if test -d "$additional_libdir"; then
14599 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14605 -R*)
14606 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14607 if test "$enable_rpath" != no; then
14608 haveit=
14609 for x in $rpathdirs; do
14610 if test "X$x" = "X$dir"; then
14611 haveit=yes
14612 break
14614 done
14615 if test -z "$haveit"; then
14616 rpathdirs="$rpathdirs $dir"
14618 haveit=
14619 for x in $ltrpathdirs; do
14620 if test "X$x" = "X$dir"; then
14621 haveit=yes
14622 break
14624 done
14625 if test -z "$haveit"; then
14626 ltrpathdirs="$ltrpathdirs $dir"
14630 -l*)
14631 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14633 *.la)
14634 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14637 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14638 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14640 esac
14641 done
14643 else
14644 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14645 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14647 else
14648 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14649 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14654 done
14655 done
14656 if test "X$rpathdirs" != "X"; then
14657 if test -n "$hardcode_libdir_separator"; then
14658 alldirs=
14659 for found_dir in $rpathdirs; do
14660 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14661 done
14662 acl_save_libdir="$libdir"
14663 libdir="$alldirs"
14664 eval flag=\"$hardcode_libdir_flag_spec\"
14665 libdir="$acl_save_libdir"
14666 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14667 else
14668 for found_dir in $rpathdirs; do
14669 acl_save_libdir="$libdir"
14670 libdir="$found_dir"
14671 eval flag=\"$hardcode_libdir_flag_spec\"
14672 libdir="$acl_save_libdir"
14673 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14674 done
14677 if test "X$ltrpathdirs" != "X"; then
14678 for found_dir in $ltrpathdirs; do
14679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14680 done
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14684 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14685 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 gt_save_CPPFLAGS="$CPPFLAGS"
14689 CPPFLAGS="$CPPFLAGS $INCINTL"
14690 gt_save_LIBS="$LIBS"
14691 LIBS="$LIBS $LIBINTL"
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14695 #include <libintl.h>
14696 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14697 extern int _nl_msg_cat_cntr;
14698 extern
14699 #ifdef __cplusplus
14701 #endif
14702 const char *_nl_expand_alias (const char *);
14703 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14704 #else
14705 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14706 #endif
14707 $gt_revision_test_code
14710 main ()
14713 bindtextdomain ("", "");
14714 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14717 return 0;
14719 _ACEOF
14720 if ac_fn_cxx_try_link "$LINENO"; then :
14721 eval "$gt_func_gnugettext_libintl=yes"
14722 else
14723 eval "$gt_func_gnugettext_libintl=no"
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14728 LIBS="$LIBS $LIBICONV"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 #include <libintl.h>
14733 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14734 extern int _nl_msg_cat_cntr;
14735 extern
14736 #ifdef __cplusplus
14738 #endif
14739 const char *_nl_expand_alias (const char *);
14740 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14741 #else
14742 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14743 #endif
14744 $gt_revision_test_code
14747 main ()
14750 bindtextdomain ("", "");
14751 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14754 return 0;
14756 _ACEOF
14757 if ac_fn_cxx_try_link "$LINENO"; then :
14758 LIBINTL="$LIBINTL $LIBICONV"
14759 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14760 eval "$gt_func_gnugettext_libintl=yes"
14763 rm -f core conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14766 CPPFLAGS="$gt_save_CPPFLAGS"
14767 LIBS="$gt_save_LIBS"
14769 eval ac_res=\$$gt_func_gnugettext_libintl
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14771 $as_echo "$ac_res" >&6; }
14774 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14775 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14776 && test "$PACKAGE" != gettext-runtime \
14777 && test "$PACKAGE" != gettext-tools; }; then
14778 gt_use_preinstalled_gnugettext=yes
14779 else
14780 LIBINTL=
14781 LTLIBINTL=
14782 INCINTL=
14787 if test -n "$INTL_MACOSX_LIBS"; then
14788 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14789 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14790 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14791 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14795 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14796 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14798 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14800 else
14801 USE_NLS=no
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14806 $as_echo_n "checking whether to use NLS... " >&6; }
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14808 $as_echo "$USE_NLS" >&6; }
14809 if test "$USE_NLS" = "yes"; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14811 $as_echo_n "checking where the gettext function comes from... " >&6; }
14812 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14814 gt_source="external libintl"
14815 else
14816 gt_source="libc"
14818 else
14819 gt_source="included intl directory"
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14822 $as_echo "$gt_source" >&6; }
14825 if test "$USE_NLS" = "yes"; then
14827 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14828 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14830 $as_echo_n "checking how to link with libintl... " >&6; }
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14832 $as_echo "$LIBINTL" >&6; }
14834 for element in $INCINTL; do
14835 haveit=
14836 for x in $CPPFLAGS; do
14838 acl_save_prefix="$prefix"
14839 prefix="$acl_final_prefix"
14840 acl_save_exec_prefix="$exec_prefix"
14841 exec_prefix="$acl_final_exec_prefix"
14842 eval x=\"$x\"
14843 exec_prefix="$acl_save_exec_prefix"
14844 prefix="$acl_save_prefix"
14846 if test "X$x" = "X$element"; then
14847 haveit=yes
14848 break
14850 done
14851 if test -z "$haveit"; then
14852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14854 done
14859 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14862 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14866 POSUB=po
14871 INTLLIBS="$LIBINTL"
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14891 $as_echo_n "checking whether NLS is requested... " >&6; }
14892 if test x"$USE_NLS" != xyes; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14894 $as_echo "no" >&6; }
14895 else
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14897 $as_echo "yes" >&6; }
14899 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14903 $as_echo_n "checking for catalogs to be installed... " >&6; }
14904 # Look for .po and .gmo files in the source directory.
14905 CATALOGS=
14906 XLINGUAS=
14907 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14908 # If there aren't any .gmo files the shell will give us the
14909 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14910 # weeded out.
14911 case "$cat" in *\**)
14912 continue;;
14913 esac
14914 # The quadruple backslash is collapsed to a double backslash
14915 # by the backticks, then collapsed again by the double quotes,
14916 # leaving us with one backslash in the sed expression (right
14917 # before the dot that mustn't act as a wildcard).
14918 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14919 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14920 # The user is allowed to set LINGUAS to a list of languages to
14921 # install catalogs for. If it's empty that means "all of them."
14922 if test "x$LINGUAS" = x; then
14923 CATALOGS="$CATALOGS $cat"
14924 XLINGUAS="$XLINGUAS $lang"
14925 else
14926 case "$LINGUAS" in *$lang*)
14927 CATALOGS="$CATALOGS $cat"
14928 XLINGUAS="$XLINGUAS $lang"
14930 esac
14932 done
14933 LINGUAS="$XLINGUAS"
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14935 $as_echo "$LINGUAS" >&6; }
14938 DATADIRNAME=share
14940 INSTOBJEXT=.mo
14942 GENCAT=gencat
14944 CATOBJEXT=.gmo
14948 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14949 # -liconv on the link line twice.
14950 case "$LIBINTL" in *$LIBICONV*)
14951 LIBICONV= ;;
14952 esac
14954 # Check whether --enable-secureplt was given.
14955 if test "${enable_secureplt+set}" = set; then :
14956 enableval=$enable_secureplt;
14960 # Check whether --enable-mingw-wildcard was given.
14961 if test "${enable_mingw_wildcard+set}" = set; then :
14962 enableval=$enable_mingw_wildcard;
14963 else
14964 enable_mingw_wildcard=platform
14967 if test x"$enable_mingw_wildcard" != xplatform ; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
14971 _ACEOF
14975 # Check whether --enable-large-address-aware was given.
14976 if test "${enable_large_address_aware+set}" = set; then :
14977 enableval=$enable_large_address_aware;
14980 if test x"$enable_large_address_aware" = xyes; then :
14982 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
14986 # Check whether --enable-leading-mingw64-underscores was given.
14987 if test "${enable_leading_mingw64_underscores+set}" = set; then :
14988 enableval=$enable_leading_mingw64_underscores;
14991 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
14993 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
14997 # Check whether --enable-cld was given.
14998 if test "${enable_cld+set}" = set; then :
14999 enableval=$enable_cld;
15000 else
15001 enable_cld=no
15005 # Check whether --enable-frame-pointer was given.
15006 if test "${enable_frame_pointer+set}" = set; then :
15007 enableval=$enable_frame_pointer;
15008 else
15010 case $target_os in
15011 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
15012 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
15013 enable_frame_pointer=no
15016 enable_frame_pointer=yes
15018 esac
15023 case $target in
15024 i[34567]86-*-* | x86_64-*-*)
15025 if test "x$enable_cld" = xyes; then
15026 tm_defines="${tm_defines} USE_IX86_CLD=1"
15028 if test "x$enable_frame_pointer" = xyes; then
15029 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
15032 esac
15034 # Windows32 Registry support for specifying GCC installation paths.
15035 # Check whether --enable-win32-registry was given.
15036 if test "${enable_win32_registry+set}" = set; then :
15037 enableval=$enable_win32_registry;
15041 case $host_os in
15042 win32 | pe | cygwin* | mingw32*)
15043 if test "x$enable_win32_registry" != xno; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
15045 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
15046 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 ac_func_search_save_LIBS=$LIBS
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15053 /* Override any GCC internal prototype to avoid an error.
15054 Use char because int might match the return type of a GCC
15055 builtin and then its argument prototype would still apply. */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 char RegOpenKeyExA ();
15061 main ()
15063 return RegOpenKeyExA ();
15065 return 0;
15067 _ACEOF
15068 for ac_lib in '' advapi32; do
15069 if test -z "$ac_lib"; then
15070 ac_res="none required"
15071 else
15072 ac_res=-l$ac_lib
15073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15075 if ac_fn_cxx_try_link "$LINENO"; then :
15076 ac_cv_search_RegOpenKeyExA=$ac_res
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext
15080 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15081 break
15083 done
15084 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
15086 else
15087 ac_cv_search_RegOpenKeyExA=no
15089 rm conftest.$ac_ext
15090 LIBS=$ac_func_search_save_LIBS
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
15093 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
15094 ac_res=$ac_cv_search_RegOpenKeyExA
15095 if test "$ac_res" != no; then :
15096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15098 else
15099 enable_win32_registry=no
15104 if test "x$enable_win32_registry" != xno; then
15106 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
15109 if test "x$enable_win32_registry" != xyes \
15110 && test "x$enable_win32_registry" != x; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
15114 _ACEOF
15119 esac
15121 # Get an absolute path to the GCC top-level source directory
15122 holddir=`${PWDCMD-pwd}`
15123 cd $srcdir
15124 topdir=`${PWDCMD-pwd}`
15125 cd $holddir
15127 # Conditionalize the makefile for this host machine.
15128 xmake_file=
15129 for f in ${host_xmake_file}
15131 if test -f ${srcdir}/config/$f
15132 then
15133 xmake_file="${xmake_file} \$(srcdir)/config/$f"
15135 done
15137 # Conditionalize the makefile for this target machine.
15138 tmake_file_=
15139 for f in ${tmake_file}
15141 if test -f ${srcdir}/config/$f
15142 then
15143 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15145 done
15146 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
15148 out_object_file=`basename $out_file .cc`.o
15149 common_out_object_file=`basename $common_out_file .cc`.o
15151 tm_file_list="options.h"
15152 tm_include_list="options.h insn-constants.h"
15153 for f in $tm_file; do
15154 case $f in
15155 ./* )
15156 f=`echo $f | sed 's/^..//'`
15157 tm_file_list="${tm_file_list} $f"
15158 tm_include_list="${tm_include_list} $f"
15160 defaults.h )
15161 tm_file_list="${tm_file_list} \$(srcdir)/$f"
15162 tm_include_list="${tm_include_list} $f"
15165 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
15166 tm_include_list="${tm_include_list} config/$f"
15168 esac
15169 done
15171 tm_p_file_list=
15172 tm_p_include_list=
15173 for f in $tm_p_file; do
15174 case $f in
15175 tm-preds.h )
15176 tm_p_file_list="${tm_p_file_list} $f"
15177 tm_p_include_list="${tm_p_include_list} $f"
15180 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
15181 tm_p_include_list="${tm_p_include_list} config/$f"
15182 esac
15183 done
15185 tm_d_file_list=
15186 tm_d_include_list=
15187 for f in $tm_d_file; do
15188 case $f in
15190 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
15191 tm_d_include_list="${tm_d_include_list} config/$f"
15193 esac
15194 done
15196 tm_rust_file_list=
15197 tm_rust_include_list=
15198 for f in $tm_rust_file; do
15199 case $f in
15201 tm_rust_file_list="${tm_rust_file_list} \$(srcdir)/config/$f"
15202 tm_rust_include_list="${tm_rust_include_list} config/$f"
15204 esac
15205 done
15207 xm_file_list=
15208 xm_include_list=
15209 for f in $xm_file; do
15210 case $f in
15211 ansidecl.h )
15212 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
15213 xm_include_list="${xm_include_list} $f"
15215 auto-host.h )
15216 xm_file_list="${xm_file_list} $f"
15217 xm_include_list="${xm_include_list} $f"
15220 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
15221 xm_include_list="${xm_include_list} config/$f"
15223 esac
15224 done
15226 host_xm_file_list=
15227 host_xm_include_list=
15228 for f in $host_xm_file; do
15229 case $f in
15230 ansidecl.h )
15231 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
15232 host_xm_include_list="${host_xm_include_list} $f"
15234 auto-host.h )
15235 host_xm_file_list="${host_xm_file_list} $f"
15236 host_xm_include_list="${host_xm_include_list} $f"
15239 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
15240 host_xm_include_list="${host_xm_include_list} config/$f"
15242 esac
15243 done
15245 build_xm_file_list=
15246 for f in $build_xm_file; do
15247 case $f in
15248 ansidecl.h )
15249 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
15250 build_xm_include_list="${build_xm_include_list} $f"
15252 auto-build.h | auto-host.h )
15253 build_xm_file_list="${build_xm_file_list} $f"
15254 build_xm_include_list="${build_xm_include_list} $f"
15257 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
15258 build_xm_include_list="${build_xm_include_list} config/$f"
15260 esac
15261 done
15263 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
15264 # cross-compiler which does not use the native headers and libraries.
15265 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
15266 CROSS=
15267 ALL=all.internal
15268 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
15269 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
15271 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
15272 test x$build != x$host || test "x$with_build_sysroot" != x; then
15273 if test "x$with_build_sysroot" != x; then
15274 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
15275 else
15276 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15279 if test x$host != x$target
15280 then
15281 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
15282 ALL=all.cross
15283 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
15284 elif test "x$TARGET_SYSTEM_ROOT" != x; then
15285 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
15288 if test "x$with_build_sysroot" != "x"; then
15289 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
15290 elif test "x$with_sysroot" = x; then
15291 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
15292 elif test "x$with_sysroot" = xyes; then
15293 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
15294 else
15295 target_header_dir="${with_sysroot}${native_system_header_dir}"
15297 else
15298 target_header_dir=${native_system_header_dir}
15301 # If this is a cross-compiler that does not
15302 # have its own set of headers then define
15303 # inhibit_libc
15305 # If this is using newlib, without having the headers available now,
15306 # then define inhibit_libc in LIBGCC2_CFLAGS.
15307 # This prevents libgcc2 from containing any code which requires libc
15308 # support.
15309 : ${inhibit_libc=false}
15310 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
15311 test x$with_newlib = xyes ; } &&
15312 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
15313 inhibit_libc=true
15317 # When building gcc with a cross-compiler, we need to adjust things so
15318 # that the generator programs are still built with the native compiler.
15319 # Also, we cannot run fixincludes.
15321 # These are the normal (build=host) settings:
15322 CC_FOR_BUILD='$(CC)'
15323 CXX_FOR_BUILD='$(CXX)'
15324 BUILD_CFLAGS='$(ALL_CFLAGS)'
15325 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
15326 BUILD_LDFLAGS='$(LDFLAGS)'
15327 STMP_FIXINC=stmp-fixinc
15329 # And these apply if build != host, or we are generating coverage data
15330 if test x$build != x$host || test "x$coverage_flags" != x
15331 then
15332 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
15333 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
15334 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
15338 if test x$enable_fixincludes = xno;
15339 then
15340 STMP_FIXINC=''
15343 # Expand extra_headers to include complete path.
15344 # This substitutes for lots of t-* files.
15345 extra_headers_list=
15346 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
15347 for file in ${extra_headers} ; do
15348 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
15349 done
15351 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
15352 if test x"$use_gcc_tgmath" = xyes
15353 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
15356 # Define collect2 in Makefile.
15357 case $host_can_use_collect2 in
15358 no) collect2= ;;
15359 *) collect2='collect2$(exeext)' ;;
15360 esac
15363 # Add a definition of USE_COLLECT2 if system wants one.
15364 case $use_collect2 in
15365 no) use_collect2= ;;
15366 "") ;;
15368 host_xm_defines="${host_xm_defines} USE_COLLECT2"
15369 xm_defines="${xm_defines} USE_COLLECT2"
15370 case $host_can_use_collect2 in
15372 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
15374 esac
15376 esac
15379 cat >>confdefs.h <<_ACEOF
15380 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
15381 _ACEOF
15384 # ---------------------------
15385 # Assembler & linker features
15386 # ---------------------------
15388 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
15389 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
15390 # However when ld-new is first executed from the build tree, libtool will
15391 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
15392 # to the build tree. While doing this we need to use the previous-stage
15393 # linker, or we have an infinite loop. The presence of a shell script as
15394 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
15395 # the gcc/collect-ld script. So we need to know how libtool works, or
15396 # exec-tool will fail.
15399 case `pwd` in
15400 *\ * | *\ *)
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15402 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15403 esac
15407 macro_version='2.2.7a'
15408 macro_revision='1.3134'
15422 ltmain="$ac_aux_dir/ltmain.sh"
15424 # Backslashify metacharacters that are still active within
15425 # double-quoted strings.
15426 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15428 # Same as above, but do not quote variable references.
15429 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15431 # Sed substitution to delay expansion of an escaped shell variable in a
15432 # double_quote_subst'ed string.
15433 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15435 # Sed substitution to delay expansion of an escaped single quote.
15436 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15438 # Sed substitution to avoid accidental globbing in evaled expressions
15439 no_glob_subst='s/\*/\\\*/g'
15441 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15442 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
15443 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
15446 $as_echo_n "checking how to print strings... " >&6; }
15447 # Test print first, because it will be a builtin if present.
15448 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
15449 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
15450 ECHO='print -r --'
15451 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
15452 ECHO='printf %s\n'
15453 else
15454 # Use this function as a fallback that always works.
15455 func_fallback_echo ()
15457 eval 'cat <<_LTECHO_EOF
15459 _LTECHO_EOF'
15461 ECHO='func_fallback_echo'
15464 # func_echo_all arg...
15465 # Invoke $ECHO with all args, space-separated.
15466 func_echo_all ()
15468 $ECHO ""
15471 case "$ECHO" in
15472 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
15473 $as_echo "printf" >&6; } ;;
15474 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
15475 $as_echo "print -r" >&6; } ;;
15476 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
15477 $as_echo "cat" >&6; } ;;
15478 esac
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15494 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15495 if ${ac_cv_path_SED+:} false; then :
15496 $as_echo_n "(cached) " >&6
15497 else
15498 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15499 for ac_i in 1 2 3 4 5 6 7; do
15500 ac_script="$ac_script$as_nl$ac_script"
15501 done
15502 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15503 { ac_script=; unset ac_script;}
15504 if test -z "$SED"; then
15505 ac_path_SED_found=false
15506 # Loop through the user's path and test for each of PROGNAME-LIST
15507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508 for as_dir in $PATH
15510 IFS=$as_save_IFS
15511 test -z "$as_dir" && as_dir=.
15512 for ac_prog in sed gsed; do
15513 for ac_exec_ext in '' $ac_executable_extensions; do
15514 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15515 as_fn_executable_p "$ac_path_SED" || continue
15516 # Check for GNU ac_path_SED and select it if it is found.
15517 # Check for GNU $ac_path_SED
15518 case `"$ac_path_SED" --version 2>&1` in
15519 *GNU*)
15520 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15522 ac_count=0
15523 $as_echo_n 0123456789 >"conftest.in"
15524 while :
15526 cat "conftest.in" "conftest.in" >"conftest.tmp"
15527 mv "conftest.tmp" "conftest.in"
15528 cp "conftest.in" "conftest.nl"
15529 $as_echo '' >> "conftest.nl"
15530 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15532 as_fn_arith $ac_count + 1 && ac_count=$as_val
15533 if test $ac_count -gt ${ac_path_SED_max-0}; then
15534 # Best one so far, save it but keep looking for a better one
15535 ac_cv_path_SED="$ac_path_SED"
15536 ac_path_SED_max=$ac_count
15538 # 10*(2^10) chars as input seems more than enough
15539 test $ac_count -gt 10 && break
15540 done
15541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15542 esac
15544 $ac_path_SED_found && break 3
15545 done
15546 done
15547 done
15548 IFS=$as_save_IFS
15549 if test -z "$ac_cv_path_SED"; then
15550 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15552 else
15553 ac_cv_path_SED=$SED
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15558 $as_echo "$ac_cv_path_SED" >&6; }
15559 SED="$ac_cv_path_SED"
15560 rm -f conftest.sed
15562 test -z "$SED" && SED=sed
15563 Xsed="$SED -e 1s/^X//"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
15576 $as_echo_n "checking for fgrep... " >&6; }
15577 if ${ac_cv_path_FGREP+:} false; then :
15578 $as_echo_n "(cached) " >&6
15579 else
15580 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
15581 then ac_cv_path_FGREP="$GREP -F"
15582 else
15583 if test -z "$FGREP"; then
15584 ac_path_FGREP_found=false
15585 # Loop through the user's path and test for each of PROGNAME-LIST
15586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
15591 for ac_prog in fgrep; do
15592 for ac_exec_ext in '' $ac_executable_extensions; do
15593 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
15594 as_fn_executable_p "$ac_path_FGREP" || continue
15595 # Check for GNU ac_path_FGREP and select it if it is found.
15596 # Check for GNU $ac_path_FGREP
15597 case `"$ac_path_FGREP" --version 2>&1` in
15598 *GNU*)
15599 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
15601 ac_count=0
15602 $as_echo_n 0123456789 >"conftest.in"
15603 while :
15605 cat "conftest.in" "conftest.in" >"conftest.tmp"
15606 mv "conftest.tmp" "conftest.in"
15607 cp "conftest.in" "conftest.nl"
15608 $as_echo 'FGREP' >> "conftest.nl"
15609 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
15610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15611 as_fn_arith $ac_count + 1 && ac_count=$as_val
15612 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
15613 # Best one so far, save it but keep looking for a better one
15614 ac_cv_path_FGREP="$ac_path_FGREP"
15615 ac_path_FGREP_max=$ac_count
15617 # 10*(2^10) chars as input seems more than enough
15618 test $ac_count -gt 10 && break
15619 done
15620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15621 esac
15623 $ac_path_FGREP_found && break 3
15624 done
15625 done
15626 done
15627 IFS=$as_save_IFS
15628 if test -z "$ac_cv_path_FGREP"; then
15629 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
15631 else
15632 ac_cv_path_FGREP=$FGREP
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
15638 $as_echo "$ac_cv_path_FGREP" >&6; }
15639 FGREP="$ac_cv_path_FGREP"
15642 test -z "$GREP" && GREP=grep
15662 # Check whether --with-gnu-ld was given.
15663 if test "${with_gnu_ld+set}" = set; then :
15664 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15665 else
15666 with_gnu_ld=no
15669 ac_prog=ld
15670 if test "$GCC" = yes; then
15671 # Check if gcc -print-prog-name=ld gives a path.
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15673 $as_echo_n "checking for ld used by $CC... " >&6; }
15674 case $host in
15675 *-*-mingw*)
15676 # gcc leaves a trailing carriage return which upsets mingw
15677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15680 esac
15681 case $ac_prog in
15682 # Accept absolute paths.
15683 [\\/]* | ?:[\\/]*)
15684 re_direlt='/[^/][^/]*/\.\./'
15685 # Canonicalize the pathname of ld
15686 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15687 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15688 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15689 done
15690 test -z "$LD" && LD="$ac_prog"
15693 # If it fails, then pretend we aren't using GCC.
15694 ac_prog=ld
15697 # If it is relative, then search for the first ld in PATH.
15698 with_gnu_ld=unknown
15700 esac
15701 elif test "$with_gnu_ld" = yes; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15703 $as_echo_n "checking for GNU ld... " >&6; }
15704 else
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15706 $as_echo_n "checking for non-GNU ld... " >&6; }
15708 if ${lt_cv_path_LD+:} false; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 if test -z "$LD"; then
15712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15713 for ac_dir in $PATH; do
15714 IFS="$lt_save_ifs"
15715 test -z "$ac_dir" && ac_dir=.
15716 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15717 lt_cv_path_LD="$ac_dir/$ac_prog"
15718 # Check to see if the program is GNU ld. I'd rather use --version,
15719 # but apparently some variants of GNU ld only accept -v.
15720 # Break only if it was the GNU/non-GNU ld that we prefer.
15721 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15722 *GNU* | *'with BFD'*)
15723 test "$with_gnu_ld" != no && break
15726 test "$with_gnu_ld" != yes && break
15728 esac
15730 done
15731 IFS="$lt_save_ifs"
15732 else
15733 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15737 LD="$lt_cv_path_LD"
15738 if test -n "$LD"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15740 $as_echo "$LD" >&6; }
15741 else
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15745 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15747 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15748 if ${lt_cv_prog_gnu_ld+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15752 case `$LD -v 2>&1 </dev/null` in
15753 *GNU* | *'with BFD'*)
15754 lt_cv_prog_gnu_ld=yes
15757 lt_cv_prog_gnu_ld=no
15759 esac
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15762 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15763 with_gnu_ld=$lt_cv_prog_gnu_ld
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15774 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15775 if ${lt_cv_path_NM+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 if test -n "$NM"; then
15779 # Let the user override the nm to test.
15780 lt_nm_to_check="$NM"
15781 else
15782 lt_nm_to_check="${ac_tool_prefix}nm"
15783 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15784 lt_nm_to_check="$lt_nm_to_check nm"
15787 for lt_tmp_nm in "$lt_nm_to_check"; do
15788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15789 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15790 IFS="$lt_save_ifs"
15791 test -z "$ac_dir" && ac_dir=.
15792 # Strip out any user-provided options from the nm to test twice,
15793 # the first time to test to see if nm (rather than its options) has
15794 # an explicit path, the second time to yield a file which can be
15795 # nm'ed itself.
15796 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
15797 case "$tmp_nm_path" in
15798 */*|*\\*) tmp_nm="$lt_tmp_nm";;
15799 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
15800 esac
15801 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
15802 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
15803 # Check to see if the nm accepts a BSD-compat flag.
15804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15805 # nm: unknown option "B" ignored
15806 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15807 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
15808 break
15811 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
15812 *$tmp_nm*)
15813 lt_cv_path_NM="$tmp_nm -p"
15814 break
15817 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15818 continue # so that we can try to find one that supports BSD flags
15820 esac
15822 esac
15824 done
15825 IFS="$lt_save_ifs"
15826 done
15827 : ${lt_cv_path_NM=no}
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15830 $as_echo "$lt_cv_path_NM" >&6; }
15831 if test "$lt_cv_path_NM" != "no"; then
15832 NM="$lt_cv_path_NM"
15833 else
15834 # Didn't find any BSD compatible name lister, look for dumpbin.
15835 if test -n "$DUMPBIN"; then :
15836 # Let the user override the test.
15837 else
15838 if test -n "$ac_tool_prefix"; then
15839 for ac_prog in dumpbin "link -dump"
15841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15844 $as_echo_n "checking for $ac_word... " >&6; }
15845 if ${ac_cv_prog_DUMPBIN+:} false; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15848 if test -n "$DUMPBIN"; then
15849 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15850 else
15851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852 for as_dir in $PATH
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
15857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15858 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15862 done
15863 done
15864 IFS=$as_save_IFS
15868 DUMPBIN=$ac_cv_prog_DUMPBIN
15869 if test -n "$DUMPBIN"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15871 $as_echo "$DUMPBIN" >&6; }
15872 else
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874 $as_echo "no" >&6; }
15878 test -n "$DUMPBIN" && break
15879 done
15881 if test -z "$DUMPBIN"; then
15882 ac_ct_DUMPBIN=$DUMPBIN
15883 for ac_prog in dumpbin "link -dump"
15885 # Extract the first word of "$ac_prog", so it can be a program name with args.
15886 set dummy $ac_prog; ac_word=$2
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15888 $as_echo_n "checking for $ac_word... " >&6; }
15889 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15890 $as_echo_n "(cached) " >&6
15891 else
15892 if test -n "$ac_ct_DUMPBIN"; then
15893 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15894 else
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15898 IFS=$as_save_IFS
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15904 break 2
15906 done
15907 done
15908 IFS=$as_save_IFS
15912 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15913 if test -n "$ac_ct_DUMPBIN"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15915 $as_echo "$ac_ct_DUMPBIN" >&6; }
15916 else
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15922 test -n "$ac_ct_DUMPBIN" && break
15923 done
15925 if test "x$ac_ct_DUMPBIN" = x; then
15926 DUMPBIN=":"
15927 else
15928 case $cross_compiling:$ac_tool_warned in
15929 yes:)
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15932 ac_tool_warned=yes ;;
15933 esac
15934 DUMPBIN=$ac_ct_DUMPBIN
15938 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
15939 *COFF*)
15940 DUMPBIN="$DUMPBIN -symbols"
15943 DUMPBIN=:
15945 esac
15948 if test "$DUMPBIN" != ":"; then
15949 NM="$DUMPBIN"
15952 test -z "$NM" && NM=nm
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15960 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15961 if ${lt_cv_nm_interface+:} false; then :
15962 $as_echo_n "(cached) " >&6
15963 else
15964 lt_cv_nm_interface="BSD nm"
15965 echo "int some_variable = 0;" > conftest.$ac_ext
15966 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15967 (eval "$ac_compile" 2>conftest.err)
15968 cat conftest.err >&5
15969 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15970 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15971 cat conftest.err >&5
15972 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15973 cat conftest.out >&5
15974 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15975 lt_cv_nm_interface="MS dumpbin"
15977 rm -f conftest*
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15980 $as_echo "$lt_cv_nm_interface" >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15983 $as_echo_n "checking whether ln -s works... " >&6; }
15984 LN_S=$as_ln_s
15985 if test "$LN_S" = "ln -s"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15987 $as_echo "yes" >&6; }
15988 else
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15990 $as_echo "no, using $LN_S" >&6; }
15993 # find the maximum length of command line arguments
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15995 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15996 if ${lt_cv_sys_max_cmd_len+:} false; then :
15997 $as_echo_n "(cached) " >&6
15998 else
16000 teststring="ABCD"
16002 case $build_os in
16003 msdosdjgpp*)
16004 # On DJGPP, this test can blow up pretty badly due to problems in libc
16005 # (any single argument exceeding 2000 bytes causes a buffer overrun
16006 # during glob expansion). Even if it were fixed, the result of this
16007 # check would be larger than it should be.
16008 lt_cv_sys_max_cmd_len=12288; # 12K is about right
16011 gnu*)
16012 # Under GNU Hurd, this test is not required because there is
16013 # no limit to the length of command line arguments.
16014 # Libtool will interpret -1 as no limit whatsoever
16015 lt_cv_sys_max_cmd_len=-1;
16018 cygwin* | mingw* | cegcc*)
16019 # On Win9x/ME, this test blows up -- it succeeds, but takes
16020 # about 5 minutes as the teststring grows exponentially.
16021 # Worse, since 9x/ME are not pre-emptively multitasking,
16022 # you end up with a "frozen" computer, even though with patience
16023 # the test eventually succeeds (with a max line length of 256k).
16024 # Instead, let's just punt: use the minimum linelength reported by
16025 # all of the supported platforms: 8192 (on NT/2K/XP).
16026 lt_cv_sys_max_cmd_len=8192;
16029 mint*)
16030 # On MiNT this can take a long time and run out of memory.
16031 lt_cv_sys_max_cmd_len=8192;
16034 amigaos*)
16035 # On AmigaOS with pdksh, this test takes hours, literally.
16036 # So we just punt and use a minimum line length of 8192.
16037 lt_cv_sys_max_cmd_len=8192;
16040 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16041 # This has been around since 386BSD, at least. Likely further.
16042 if test -x /sbin/sysctl; then
16043 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16044 elif test -x /usr/sbin/sysctl; then
16045 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16046 else
16047 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16049 # And add a safety zone
16050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16054 interix*)
16055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
16056 lt_cv_sys_max_cmd_len=196608
16059 osf*)
16060 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16061 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16062 # nice to cause kernel panics so lets avoid the loop below.
16063 # First set a reasonable default.
16064 lt_cv_sys_max_cmd_len=16384
16066 if test -x /sbin/sysconfig; then
16067 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16068 *1*) lt_cv_sys_max_cmd_len=-1 ;;
16069 esac
16072 sco3.2v5*)
16073 lt_cv_sys_max_cmd_len=102400
16075 sysv5* | sco5v6* | sysv4.2uw2*)
16076 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16077 if test -n "$kargmax"; then
16078 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16079 else
16080 lt_cv_sys_max_cmd_len=32768
16084 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16085 if test -n "$lt_cv_sys_max_cmd_len"; then
16086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16088 else
16089 # Make teststring a little bigger before we do anything with it.
16090 # a 1K string should be a reasonable start.
16091 for i in 1 2 3 4 5 6 7 8 ; do
16092 teststring=$teststring$teststring
16093 done
16094 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16095 # If test is not a shell built-in, we'll probably end up computing a
16096 # maximum length that is only half of the actual maximum length, but
16097 # we can't tell.
16098 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
16099 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16100 test $i != 17 # 1/2 MB should be enough
16102 i=`expr $i + 1`
16103 teststring=$teststring$teststring
16104 done
16105 # Only check the string length outside the loop.
16106 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16107 teststring=
16108 # Add a significant safety factor because C++ compilers can tack on
16109 # massive amounts of additional arguments before passing them to the
16110 # linker. It appears as though 1/2 is a usable value.
16111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16114 esac
16118 if test -n $lt_cv_sys_max_cmd_len ; then
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16120 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16121 else
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16123 $as_echo "none" >&6; }
16125 max_cmd_len=$lt_cv_sys_max_cmd_len
16132 : ${CP="cp -f"}
16133 : ${MV="mv -f"}
16134 : ${RM="rm -f"}
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
16137 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
16138 # Try some XSI features
16139 xsi_shell=no
16140 ( _lt_dummy="a/b/c"
16141 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
16142 = c,a/b,, \
16143 && eval 'test $(( 1 + 1 )) -eq 2 \
16144 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
16145 && xsi_shell=yes
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
16147 $as_echo "$xsi_shell" >&6; }
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
16151 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
16152 lt_shell_append=no
16153 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
16154 >/dev/null 2>&1 \
16155 && lt_shell_append=yes
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
16157 $as_echo "$lt_shell_append" >&6; }
16160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16161 lt_unset=unset
16162 else
16163 lt_unset=false
16170 # test EBCDIC or ASCII
16171 case `echo X|tr X '\101'` in
16172 A) # ASCII based system
16173 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16174 lt_SP2NL='tr \040 \012'
16175 lt_NL2SP='tr \015\012 \040\040'
16177 *) # EBCDIC based system
16178 lt_SP2NL='tr \100 \n'
16179 lt_NL2SP='tr \r\n \100\100'
16181 esac
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16192 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16193 if ${lt_cv_ld_reload_flag+:} false; then :
16194 $as_echo_n "(cached) " >&6
16195 else
16196 lt_cv_ld_reload_flag='-r'
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16199 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16200 reload_flag=$lt_cv_ld_reload_flag
16201 case $reload_flag in
16202 "" | " "*) ;;
16203 *) reload_flag=" $reload_flag" ;;
16204 esac
16205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16206 case $host_os in
16207 darwin*)
16208 if test "$GCC" = yes; then
16209 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
16210 else
16211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16214 esac
16224 if test -n "$ac_tool_prefix"; then
16225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228 $as_echo_n "checking for $ac_word... " >&6; }
16229 if ${ac_cv_prog_OBJDUMP+:} false; then :
16230 $as_echo_n "(cached) " >&6
16231 else
16232 if test -n "$OBJDUMP"; then
16233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16234 else
16235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236 for as_dir in $PATH
16238 IFS=$as_save_IFS
16239 test -z "$as_dir" && as_dir=.
16240 for ac_exec_ext in '' $ac_executable_extensions; do
16241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16244 break 2
16246 done
16247 done
16248 IFS=$as_save_IFS
16252 OBJDUMP=$ac_cv_prog_OBJDUMP
16253 if test -n "$OBJDUMP"; then
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16255 $as_echo "$OBJDUMP" >&6; }
16256 else
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258 $as_echo "no" >&6; }
16263 if test -z "$ac_cv_prog_OBJDUMP"; then
16264 ac_ct_OBJDUMP=$OBJDUMP
16265 # Extract the first word of "objdump", so it can be a program name with args.
16266 set dummy objdump; ac_word=$2
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16268 $as_echo_n "checking for $ac_word... " >&6; }
16269 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 if test -n "$ac_ct_OBJDUMP"; then
16273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16274 else
16275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16276 for as_dir in $PATH
16278 IFS=$as_save_IFS
16279 test -z "$as_dir" && as_dir=.
16280 for ac_exec_ext in '' $ac_executable_extensions; do
16281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16282 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16284 break 2
16286 done
16287 done
16288 IFS=$as_save_IFS
16292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16293 if test -n "$ac_ct_OBJDUMP"; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16295 $as_echo "$ac_ct_OBJDUMP" >&6; }
16296 else
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16301 if test "x$ac_ct_OBJDUMP" = x; then
16302 OBJDUMP="false"
16303 else
16304 case $cross_compiling:$ac_tool_warned in
16305 yes:)
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16308 ac_tool_warned=yes ;;
16309 esac
16310 OBJDUMP=$ac_ct_OBJDUMP
16312 else
16313 OBJDUMP="$ac_cv_prog_OBJDUMP"
16316 test -z "$OBJDUMP" && OBJDUMP=objdump
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16327 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16328 if ${lt_cv_deplibs_check_method+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 lt_cv_file_magic_cmd='$MAGIC_CMD'
16332 lt_cv_file_magic_test_file=
16333 lt_cv_deplibs_check_method='unknown'
16334 # Need to set the preceding variable on all platforms that support
16335 # interlibrary dependencies.
16336 # 'none' -- dependencies not supported.
16337 # `unknown' -- same as none, but documents that we really don't know.
16338 # 'pass_all' -- all dependencies passed with no checks.
16339 # 'test_compile' -- check by making test program.
16340 # 'file_magic [[regex]]' -- check by looking for files in library path
16341 # which responds to the $file_magic_cmd with a given extended regex.
16342 # If you have `file' or equivalent on your system and you're not sure
16343 # whether `pass_all' will *always* work, you probably want this one.
16345 case $host_os in
16346 aix[4-9]*)
16347 lt_cv_deplibs_check_method=pass_all
16350 beos*)
16351 lt_cv_deplibs_check_method=pass_all
16354 bsdi[45]*)
16355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16356 lt_cv_file_magic_cmd='/usr/bin/file -L'
16357 lt_cv_file_magic_test_file=/shlib/libc.so
16360 cygwin*)
16361 # func_win32_libid is a shell function defined in ltmain.sh
16362 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16363 lt_cv_file_magic_cmd='func_win32_libid'
16366 mingw* | pw32*)
16367 # Base MSYS/MinGW do not provide the 'file' command needed by
16368 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16369 # unless we find 'file', for example because we are cross-compiling.
16370 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
16371 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
16372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16373 lt_cv_file_magic_cmd='func_win32_libid'
16374 else
16375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
16376 lt_cv_file_magic_cmd='$OBJDUMP -f'
16380 cegcc*)
16381 # use the weaker test based on 'objdump'. See mingw*.
16382 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16383 lt_cv_file_magic_cmd='$OBJDUMP -f'
16386 darwin* | rhapsody*)
16387 lt_cv_deplibs_check_method=pass_all
16390 freebsd* | dragonfly*)
16391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16392 case $host_cpu in
16393 i*86 )
16394 # Not sure whether the presence of OpenBSD here was a mistake.
16395 # Let's accept both of them until this is cleared up.
16396 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16397 lt_cv_file_magic_cmd=/usr/bin/file
16398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16400 esac
16401 else
16402 lt_cv_deplibs_check_method=pass_all
16406 gnu*)
16407 lt_cv_deplibs_check_method=pass_all
16410 haiku*)
16411 lt_cv_deplibs_check_method=pass_all
16414 hpux10.20* | hpux11*)
16415 lt_cv_file_magic_cmd=/usr/bin/file
16416 case $host_cpu in
16417 ia64*)
16418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16419 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16421 hppa*64*)
16422 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]'
16423 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16427 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16429 esac
16432 interix[3-9]*)
16433 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16437 irix5* | irix6* | nonstopux*)
16438 case $LD in
16439 *-32|*"-32 ") libmagic=32-bit;;
16440 *-n32|*"-n32 ") libmagic=N32;;
16441 *-64|*"-64 ") libmagic=64-bit;;
16442 *) libmagic=never-match;;
16443 esac
16444 lt_cv_deplibs_check_method=pass_all
16447 # This must be Linux ELF.
16448 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
16449 lt_cv_deplibs_check_method=pass_all
16452 netbsd*)
16453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16455 else
16456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16460 newos6*)
16461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16462 lt_cv_file_magic_cmd=/usr/bin/file
16463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16466 *nto* | *qnx*)
16467 lt_cv_deplibs_check_method=pass_all
16470 openbsd*)
16471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16473 else
16474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16478 osf3* | osf4* | osf5*)
16479 lt_cv_deplibs_check_method=pass_all
16482 rdos*)
16483 lt_cv_deplibs_check_method=pass_all
16486 solaris*)
16487 lt_cv_deplibs_check_method=pass_all
16490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16491 lt_cv_deplibs_check_method=pass_all
16494 sysv4 | sysv4.3*)
16495 case $host_vendor in
16496 motorola)
16497 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]'
16498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16500 ncr)
16501 lt_cv_deplibs_check_method=pass_all
16503 sequent)
16504 lt_cv_file_magic_cmd='/bin/file'
16505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16507 sni)
16508 lt_cv_file_magic_cmd='/bin/file'
16509 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16510 lt_cv_file_magic_test_file=/lib/libc.so
16512 siemens)
16513 lt_cv_deplibs_check_method=pass_all
16516 lt_cv_deplibs_check_method=pass_all
16518 esac
16521 tpf*)
16522 lt_cv_deplibs_check_method=pass_all
16524 vxworks*)
16525 # Assume VxWorks cross toolchains are built on Linux, possibly
16526 # as canadian for Windows hosts.
16527 lt_cv_deplibs_check_method=pass_all
16529 esac
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16533 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16534 file_magic_cmd=$lt_cv_file_magic_cmd
16535 deplibs_check_method=$lt_cv_deplibs_check_method
16536 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16549 plugin_option=
16550 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
16551 for plugin in $plugin_names; do
16552 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
16553 if test x$plugin_so = x$plugin; then
16554 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
16556 if test x$plugin_so != x$plugin; then
16557 plugin_option="--plugin $plugin_so"
16558 break
16560 done
16562 if test -n "$ac_tool_prefix"; then
16563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16564 set dummy ${ac_tool_prefix}ar; ac_word=$2
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16566 $as_echo_n "checking for $ac_word... " >&6; }
16567 if ${ac_cv_prog_AR+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 if test -n "$AR"; then
16571 ac_cv_prog_AR="$AR" # Let the user override the test.
16572 else
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16576 IFS=$as_save_IFS
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16580 ac_cv_prog_AR="${ac_tool_prefix}ar"
16581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582 break 2
16584 done
16585 done
16586 IFS=$as_save_IFS
16590 AR=$ac_cv_prog_AR
16591 if test -n "$AR"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16593 $as_echo "$AR" >&6; }
16594 else
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16596 $as_echo "no" >&6; }
16601 if test -z "$ac_cv_prog_AR"; then
16602 ac_ct_AR=$AR
16603 # Extract the first word of "ar", so it can be a program name with args.
16604 set dummy ar; ac_word=$2
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16606 $as_echo_n "checking for $ac_word... " >&6; }
16607 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 if test -n "$ac_ct_AR"; then
16611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16612 else
16613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614 for as_dir in $PATH
16616 IFS=$as_save_IFS
16617 test -z "$as_dir" && as_dir=.
16618 for ac_exec_ext in '' $ac_executable_extensions; do
16619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16620 ac_cv_prog_ac_ct_AR="ar"
16621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16622 break 2
16624 done
16625 done
16626 IFS=$as_save_IFS
16630 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16631 if test -n "$ac_ct_AR"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16633 $as_echo "$ac_ct_AR" >&6; }
16634 else
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 $as_echo "no" >&6; }
16639 if test "x$ac_ct_AR" = x; then
16640 AR="false"
16641 else
16642 case $cross_compiling:$ac_tool_warned in
16643 yes:)
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16646 ac_tool_warned=yes ;;
16647 esac
16648 AR=$ac_ct_AR
16650 else
16651 AR="$ac_cv_prog_AR"
16654 test -z "$AR" && AR=ar
16655 if test -n "$plugin_option"; then
16656 if $AR --help 2>&1 | grep -q "\--plugin"; then
16657 touch conftest.c
16658 $AR $plugin_option rc conftest.a conftest.c
16659 if test "$?" != 0; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
16661 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
16662 else
16663 AR="$AR $plugin_option"
16665 rm -f conftest.*
16668 test -z "$AR_FLAGS" && AR_FLAGS=cru
16680 if test -n "$ac_tool_prefix"; then
16681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16682 set dummy ${ac_tool_prefix}strip; ac_word=$2
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16684 $as_echo_n "checking for $ac_word... " >&6; }
16685 if ${ac_cv_prog_STRIP+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 if test -n "$STRIP"; then
16689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16690 else
16691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16692 for as_dir in $PATH
16694 IFS=$as_save_IFS
16695 test -z "$as_dir" && as_dir=.
16696 for ac_exec_ext in '' $ac_executable_extensions; do
16697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16698 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16700 break 2
16702 done
16703 done
16704 IFS=$as_save_IFS
16708 STRIP=$ac_cv_prog_STRIP
16709 if test -n "$STRIP"; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16711 $as_echo "$STRIP" >&6; }
16712 else
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 $as_echo "no" >&6; }
16719 if test -z "$ac_cv_prog_STRIP"; then
16720 ac_ct_STRIP=$STRIP
16721 # Extract the first word of "strip", so it can be a program name with args.
16722 set dummy strip; ac_word=$2
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724 $as_echo_n "checking for $ac_word... " >&6; }
16725 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 if test -n "$ac_ct_STRIP"; then
16729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16730 else
16731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732 for as_dir in $PATH
16734 IFS=$as_save_IFS
16735 test -z "$as_dir" && as_dir=.
16736 for ac_exec_ext in '' $ac_executable_extensions; do
16737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16738 ac_cv_prog_ac_ct_STRIP="strip"
16739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16740 break 2
16742 done
16743 done
16744 IFS=$as_save_IFS
16748 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16749 if test -n "$ac_ct_STRIP"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16751 $as_echo "$ac_ct_STRIP" >&6; }
16752 else
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16754 $as_echo "no" >&6; }
16757 if test "x$ac_ct_STRIP" = x; then
16758 STRIP=":"
16759 else
16760 case $cross_compiling:$ac_tool_warned in
16761 yes:)
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16764 ac_tool_warned=yes ;;
16765 esac
16766 STRIP=$ac_ct_STRIP
16768 else
16769 STRIP="$ac_cv_prog_STRIP"
16772 test -z "$STRIP" && STRIP=:
16779 if test -n "$ac_tool_prefix"; then
16780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16781 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16783 $as_echo_n "checking for $ac_word... " >&6; }
16784 if ${ac_cv_prog_RANLIB+:} false; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 if test -n "$RANLIB"; then
16788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16789 else
16790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16793 IFS=$as_save_IFS
16794 test -z "$as_dir" && as_dir=.
16795 for ac_exec_ext in '' $ac_executable_extensions; do
16796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16799 break 2
16801 done
16802 done
16803 IFS=$as_save_IFS
16807 RANLIB=$ac_cv_prog_RANLIB
16808 if test -n "$RANLIB"; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16810 $as_echo "$RANLIB" >&6; }
16811 else
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813 $as_echo "no" >&6; }
16818 if test -z "$ac_cv_prog_RANLIB"; then
16819 ac_ct_RANLIB=$RANLIB
16820 # Extract the first word of "ranlib", so it can be a program name with args.
16821 set dummy ranlib; ac_word=$2
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16823 $as_echo_n "checking for $ac_word... " >&6; }
16824 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16825 $as_echo_n "(cached) " >&6
16826 else
16827 if test -n "$ac_ct_RANLIB"; then
16828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16829 else
16830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16831 for as_dir in $PATH
16833 IFS=$as_save_IFS
16834 test -z "$as_dir" && as_dir=.
16835 for ac_exec_ext in '' $ac_executable_extensions; do
16836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16837 ac_cv_prog_ac_ct_RANLIB="ranlib"
16838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16839 break 2
16841 done
16842 done
16843 IFS=$as_save_IFS
16847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16848 if test -n "$ac_ct_RANLIB"; then
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16850 $as_echo "$ac_ct_RANLIB" >&6; }
16851 else
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16853 $as_echo "no" >&6; }
16856 if test "x$ac_ct_RANLIB" = x; then
16857 RANLIB=":"
16858 else
16859 case $cross_compiling:$ac_tool_warned in
16860 yes:)
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16863 ac_tool_warned=yes ;;
16864 esac
16865 RANLIB=$ac_ct_RANLIB
16867 else
16868 RANLIB="$ac_cv_prog_RANLIB"
16871 test -z "$RANLIB" && RANLIB=:
16872 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
16873 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
16874 RANLIB="$RANLIB $plugin_option"
16883 # Determine commands to create old-style static archives.
16884 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16885 old_postinstall_cmds='chmod 644 $oldlib'
16886 old_postuninstall_cmds=
16888 if test -n "$RANLIB"; then
16889 case $host_os in
16890 openbsd*)
16891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16894 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16896 esac
16897 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16900 case $host_os in
16901 darwin*)
16902 lock_old_archive_extraction=yes ;;
16904 lock_old_archive_extraction=no ;;
16905 esac
16945 # If no C compiler was specified, use CC.
16946 LTCC=${LTCC-"$CC"}
16948 # If no C compiler flags were specified, use CFLAGS.
16949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16951 # Allow CC to be a program name with arguments.
16952 compiler=$CC
16955 # Check for command to grab the raw symbol name followed by C symbol from nm.
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16957 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
16958 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16962 # These are sane defaults that work on at least a few old systems.
16963 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
16965 # Character class describing NM global symbol codes.
16966 symcode='[BCDEGRST]'
16968 # Regexp to match symbols that can be accessed directly from C.
16969 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16971 # Define system-specific variables.
16972 case $host_os in
16973 aix*)
16974 symcode='[BCDT]'
16976 cygwin* | mingw* | pw32* | cegcc*)
16977 symcode='[ABCDGISTW]'
16979 hpux*)
16980 if test "$host_cpu" = ia64; then
16981 symcode='[ABCDEGRST]'
16984 irix* | nonstopux*)
16985 symcode='[BCDEGRST]'
16987 osf*)
16988 symcode='[BCDEGQRST]'
16990 solaris*)
16991 symcode='[BCDRT]'
16993 sco3.2v5*)
16994 symcode='[DT]'
16996 sysv4.2uw2*)
16997 symcode='[DT]'
16999 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17000 symcode='[ABDT]'
17002 sysv4)
17003 symcode='[DFNSTU]'
17005 esac
17007 # If we're using GNU nm, then use its standard symbol codes.
17008 case `$NM -V 2>&1` in
17009 *GNU* | *'with BFD'*)
17010 symcode='[ABCDGIRSTW]' ;;
17011 esac
17013 # Transform an extracted symbol line into a proper C declaration.
17014 # Some systems (esp. on ia64) link data and code symbols differently,
17015 # so use this general approach.
17016 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17018 # Transform an extracted symbol line into symbol name and symbol address
17019 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
17020 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'"
17022 # Handle CRLF in mingw tool chain
17023 opt_cr=
17024 case $build_os in
17025 mingw*)
17026 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17028 esac
17030 # Try without a prefix underscore, then with it.
17031 for ac_symprfx in "" "_"; do
17033 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17034 symxfrm="\\1 $ac_symprfx\\2 \\2"
17036 # Write the raw and C identifiers.
17037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17038 # Fake it for dumpbin and say T for any non-static function
17039 # and D for any global variable.
17040 # Also find C++ and __fastcall symbols from MSVC++,
17041 # which start with @ or ?.
17042 lt_cv_sys_global_symbol_pipe="$AWK '"\
17043 " {last_section=section; section=\$ 3};"\
17044 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17045 " \$ 0!~/External *\|/{next};"\
17046 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17047 " {if(hide[section]) next};"\
17048 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17049 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17050 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
17051 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17052 " ' prfx=^$ac_symprfx"
17053 else
17054 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17057 # Check to see that the pipe works correctly.
17058 pipe_works=no
17060 rm -f conftest*
17061 cat > conftest.$ac_ext <<_LT_EOF
17062 #ifdef __cplusplus
17063 extern "C" {
17064 #endif
17065 char nm_test_var;
17066 void nm_test_func(void);
17067 void nm_test_func(void){}
17068 #ifdef __cplusplus
17070 #endif
17071 int main(){nm_test_var='a';nm_test_func();return(0);}
17072 _LT_EOF
17074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17075 (eval $ac_compile) 2>&5
17076 ac_status=$?
17077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17078 test $ac_status = 0; }; then
17079 # Now try to grab the symbols.
17080 nlist=conftest.nm
17081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17082 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17083 ac_status=$?
17084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17085 test $ac_status = 0; } && test -s "$nlist"; then
17086 # Try sorting and uniquifying the output.
17087 if sort "$nlist" | uniq > "$nlist"T; then
17088 mv -f "$nlist"T "$nlist"
17089 else
17090 rm -f "$nlist"T
17093 # Make sure that we snagged all the symbols we need.
17094 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17095 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17096 cat <<_LT_EOF > conftest.$ac_ext
17097 #ifdef __cplusplus
17098 extern "C" {
17099 #endif
17101 _LT_EOF
17102 # Now generate the symbol file.
17103 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17105 cat <<_LT_EOF >> conftest.$ac_ext
17107 /* The mapping between symbol names and symbols. */
17108 const struct {
17109 const char *name;
17110 void *address;
17112 lt__PROGRAM__LTX_preloaded_symbols[] =
17114 { "@PROGRAM@", (void *) 0 },
17115 _LT_EOF
17116 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17117 cat <<\_LT_EOF >> conftest.$ac_ext
17118 {0, (void *) 0}
17121 /* This works around a problem in FreeBSD linker */
17122 #ifdef FREEBSD_WORKAROUND
17123 static const void *lt_preloaded_setup() {
17124 return lt__PROGRAM__LTX_preloaded_symbols;
17126 #endif
17128 #ifdef __cplusplus
17130 #endif
17131 _LT_EOF
17132 # Now try linking the two files.
17133 mv conftest.$ac_objext conftstm.$ac_objext
17134 lt_save_LIBS="$LIBS"
17135 lt_save_CFLAGS="$CFLAGS"
17136 LIBS="conftstm.$ac_objext"
17137 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17139 (eval $ac_link) 2>&5
17140 ac_status=$?
17141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17142 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
17143 pipe_works=yes
17145 LIBS="$lt_save_LIBS"
17146 CFLAGS="$lt_save_CFLAGS"
17147 else
17148 echo "cannot find nm_test_func in $nlist" >&5
17150 else
17151 echo "cannot find nm_test_var in $nlist" >&5
17153 else
17154 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17156 else
17157 echo "$progname: failed program was:" >&5
17158 cat conftest.$ac_ext >&5
17160 rm -rf conftest* conftst*
17162 # Do not use the global_symbol_pipe unless it works.
17163 if test "$pipe_works" = yes; then
17164 break
17165 else
17166 lt_cv_sys_global_symbol_pipe=
17168 done
17172 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17173 lt_cv_sys_global_symbol_to_cdecl=
17175 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17177 $as_echo "failed" >&6; }
17178 else
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17180 $as_echo "ok" >&6; }
17204 # Check whether --enable-libtool-lock was given.
17205 if test "${enable_libtool_lock+set}" = set; then :
17206 enableval=$enable_libtool_lock;
17209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17211 # Some flags need to be propagated to the compiler or linker for good
17212 # libtool support.
17213 case $host in
17214 ia64-*-hpux*)
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.$ac_objext` in
17223 *ELF-32*)
17224 HPUX_IA64_MODE="32"
17226 *ELF-64*)
17227 HPUX_IA64_MODE="64"
17229 esac
17231 rm -rf conftest*
17233 *-*-irix6*)
17234 # Find out which ABI we are using.
17235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17237 (eval $ac_compile) 2>&5
17238 ac_status=$?
17239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17240 test $ac_status = 0; }; then
17241 if test "$lt_cv_prog_gnu_ld" = yes; then
17242 case `/usr/bin/file conftest.$ac_objext` in
17243 *32-bit*)
17244 LD="${LD-ld} -melf32bsmip"
17246 *N32*)
17247 LD="${LD-ld} -melf32bmipn32"
17249 *64-bit*)
17250 LD="${LD-ld} -melf64bmip"
17252 esac
17253 else
17254 case `/usr/bin/file conftest.$ac_objext` in
17255 *32-bit*)
17256 LD="${LD-ld} -32"
17258 *N32*)
17259 LD="${LD-ld} -n32"
17261 *64-bit*)
17262 LD="${LD-ld} -64"
17264 esac
17267 rm -rf conftest*
17270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17272 # Find out which ABI we are using.
17273 echo 'int i;' > conftest.$ac_ext
17274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17275 (eval $ac_compile) 2>&5
17276 ac_status=$?
17277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17278 test $ac_status = 0; }; then
17279 case `/usr/bin/file conftest.o` in
17280 *32-bit*)
17281 case $host in
17282 x86_64-*kfreebsd*-gnu)
17283 LD="${LD-ld} -m elf_i386_fbsd"
17285 x86_64-*linux*)
17286 case `/usr/bin/file conftest.o` in
17287 *x86-64*)
17288 LD="${LD-ld} -m elf32_x86_64"
17291 LD="${LD-ld} -m elf_i386"
17293 esac
17295 powerpc64le-*linux*)
17296 LD="${LD-ld} -m elf32lppclinux"
17298 powerpc64-*linux*)
17299 LD="${LD-ld} -m elf32ppclinux"
17301 s390x-*linux*)
17302 LD="${LD-ld} -m elf_s390"
17304 sparc64-*linux*)
17305 LD="${LD-ld} -m elf32_sparc"
17307 esac
17309 *64-bit*)
17310 case $host in
17311 x86_64-*kfreebsd*-gnu)
17312 LD="${LD-ld} -m elf_x86_64_fbsd"
17314 x86_64-*linux*)
17315 LD="${LD-ld} -m elf_x86_64"
17317 powerpcle-*linux*)
17318 LD="${LD-ld} -m elf64lppc"
17320 powerpc-*linux*)
17321 LD="${LD-ld} -m elf64ppc"
17323 s390*-*linux*|s390*-*tpf*)
17324 LD="${LD-ld} -m elf64_s390"
17326 sparc*-*linux*)
17327 LD="${LD-ld} -m elf64_sparc"
17329 esac
17331 esac
17333 rm -rf conftest*
17336 *-*-sco3.2v5*)
17337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17338 SAVE_CFLAGS="$CFLAGS"
17339 CFLAGS="$CFLAGS -belf"
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17341 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17342 if ${lt_cv_cc_needs_belf+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 ac_ext=c
17346 ac_cpp='$CPP $CPPFLAGS'
17347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17355 main ()
17359 return 0;
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 lt_cv_cc_needs_belf=yes
17364 else
17365 lt_cv_cc_needs_belf=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 ac_ext=c
17370 ac_cpp='$CPP $CPPFLAGS'
17371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17377 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17378 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
17379 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17380 CFLAGS="$SAVE_CFLAGS"
17383 sparc*-*solaris*)
17384 # Find out which ABI we are using.
17385 echo 'int i;' > conftest.$ac_ext
17386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17387 (eval $ac_compile) 2>&5
17388 ac_status=$?
17389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17390 test $ac_status = 0; }; then
17391 case `/usr/bin/file conftest.o` in
17392 *64-bit*)
17393 case $lt_cv_prog_gnu_ld in
17394 yes*) LD="${LD-ld} -m elf64_sparc" ;;
17396 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17397 LD="${LD-ld} -64"
17400 esac
17402 esac
17404 rm -rf conftest*
17406 esac
17408 need_locks="$enable_libtool_lock"
17411 case $host_os in
17412 rhapsody* | darwin*)
17413 if test -n "$ac_tool_prefix"; then
17414 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17417 $as_echo_n "checking for $ac_word... " >&6; }
17418 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 if test -n "$DSYMUTIL"; then
17422 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17423 else
17424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17425 for as_dir in $PATH
17427 IFS=$as_save_IFS
17428 test -z "$as_dir" && as_dir=.
17429 for ac_exec_ext in '' $ac_executable_extensions; do
17430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17431 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17433 break 2
17435 done
17436 done
17437 IFS=$as_save_IFS
17441 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17442 if test -n "$DSYMUTIL"; then
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17444 $as_echo "$DSYMUTIL" >&6; }
17445 else
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17447 $as_echo "no" >&6; }
17452 if test -z "$ac_cv_prog_DSYMUTIL"; then
17453 ac_ct_DSYMUTIL=$DSYMUTIL
17454 # Extract the first word of "dsymutil", so it can be a program name with args.
17455 set dummy dsymutil; ac_word=$2
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17457 $as_echo_n "checking for $ac_word... " >&6; }
17458 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460 else
17461 if test -n "$ac_ct_DSYMUTIL"; then
17462 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17463 else
17464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17465 for as_dir in $PATH
17467 IFS=$as_save_IFS
17468 test -z "$as_dir" && as_dir=.
17469 for ac_exec_ext in '' $ac_executable_extensions; do
17470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17471 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17473 break 2
17475 done
17476 done
17477 IFS=$as_save_IFS
17481 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17482 if test -n "$ac_ct_DSYMUTIL"; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17484 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17485 else
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17487 $as_echo "no" >&6; }
17490 if test "x$ac_ct_DSYMUTIL" = x; then
17491 DSYMUTIL=":"
17492 else
17493 case $cross_compiling:$ac_tool_warned in
17494 yes:)
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17497 ac_tool_warned=yes ;;
17498 esac
17499 DSYMUTIL=$ac_ct_DSYMUTIL
17501 else
17502 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17505 if test -n "$ac_tool_prefix"; then
17506 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17509 $as_echo_n "checking for $ac_word... " >&6; }
17510 if ${ac_cv_prog_NMEDIT+:} false; then :
17511 $as_echo_n "(cached) " >&6
17512 else
17513 if test -n "$NMEDIT"; then
17514 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17515 else
17516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17519 IFS=$as_save_IFS
17520 test -z "$as_dir" && as_dir=.
17521 for ac_exec_ext in '' $ac_executable_extensions; do
17522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17523 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17525 break 2
17527 done
17528 done
17529 IFS=$as_save_IFS
17533 NMEDIT=$ac_cv_prog_NMEDIT
17534 if test -n "$NMEDIT"; then
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17536 $as_echo "$NMEDIT" >&6; }
17537 else
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17544 if test -z "$ac_cv_prog_NMEDIT"; then
17545 ac_ct_NMEDIT=$NMEDIT
17546 # Extract the first word of "nmedit", so it can be a program name with args.
17547 set dummy nmedit; ac_word=$2
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17549 $as_echo_n "checking for $ac_word... " >&6; }
17550 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
17551 $as_echo_n "(cached) " >&6
17552 else
17553 if test -n "$ac_ct_NMEDIT"; then
17554 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17555 else
17556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17557 for as_dir in $PATH
17559 IFS=$as_save_IFS
17560 test -z "$as_dir" && as_dir=.
17561 for ac_exec_ext in '' $ac_executable_extensions; do
17562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17563 ac_cv_prog_ac_ct_NMEDIT="nmedit"
17564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17565 break 2
17567 done
17568 done
17569 IFS=$as_save_IFS
17573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17574 if test -n "$ac_ct_NMEDIT"; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17576 $as_echo "$ac_ct_NMEDIT" >&6; }
17577 else
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17579 $as_echo "no" >&6; }
17582 if test "x$ac_ct_NMEDIT" = x; then
17583 NMEDIT=":"
17584 else
17585 case $cross_compiling:$ac_tool_warned in
17586 yes:)
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17589 ac_tool_warned=yes ;;
17590 esac
17591 NMEDIT=$ac_ct_NMEDIT
17593 else
17594 NMEDIT="$ac_cv_prog_NMEDIT"
17597 if test -n "$ac_tool_prefix"; then
17598 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17599 set dummy ${ac_tool_prefix}lipo; ac_word=$2
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17601 $as_echo_n "checking for $ac_word... " >&6; }
17602 if ${ac_cv_prog_LIPO+:} false; then :
17603 $as_echo_n "(cached) " >&6
17604 else
17605 if test -n "$LIPO"; then
17606 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17607 else
17608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17609 for as_dir in $PATH
17611 IFS=$as_save_IFS
17612 test -z "$as_dir" && as_dir=.
17613 for ac_exec_ext in '' $ac_executable_extensions; do
17614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17615 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17617 break 2
17619 done
17620 done
17621 IFS=$as_save_IFS
17625 LIPO=$ac_cv_prog_LIPO
17626 if test -n "$LIPO"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17628 $as_echo "$LIPO" >&6; }
17629 else
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17631 $as_echo "no" >&6; }
17636 if test -z "$ac_cv_prog_LIPO"; then
17637 ac_ct_LIPO=$LIPO
17638 # Extract the first word of "lipo", so it can be a program name with args.
17639 set dummy lipo; ac_word=$2
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17641 $as_echo_n "checking for $ac_word... " >&6; }
17642 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
17643 $as_echo_n "(cached) " >&6
17644 else
17645 if test -n "$ac_ct_LIPO"; then
17646 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17647 else
17648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17649 for as_dir in $PATH
17651 IFS=$as_save_IFS
17652 test -z "$as_dir" && as_dir=.
17653 for ac_exec_ext in '' $ac_executable_extensions; do
17654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17655 ac_cv_prog_ac_ct_LIPO="lipo"
17656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17657 break 2
17659 done
17660 done
17661 IFS=$as_save_IFS
17665 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17666 if test -n "$ac_ct_LIPO"; then
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17668 $as_echo "$ac_ct_LIPO" >&6; }
17669 else
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17671 $as_echo "no" >&6; }
17674 if test "x$ac_ct_LIPO" = x; then
17675 LIPO=":"
17676 else
17677 case $cross_compiling:$ac_tool_warned in
17678 yes:)
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17681 ac_tool_warned=yes ;;
17682 esac
17683 LIPO=$ac_ct_LIPO
17685 else
17686 LIPO="$ac_cv_prog_LIPO"
17689 if test -n "$ac_tool_prefix"; then
17690 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17691 set dummy ${ac_tool_prefix}otool; ac_word=$2
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17693 $as_echo_n "checking for $ac_word... " >&6; }
17694 if ${ac_cv_prog_OTOOL+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 if test -n "$OTOOL"; then
17698 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17699 else
17700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17701 for as_dir in $PATH
17703 IFS=$as_save_IFS
17704 test -z "$as_dir" && as_dir=.
17705 for ac_exec_ext in '' $ac_executable_extensions; do
17706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17707 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17709 break 2
17711 done
17712 done
17713 IFS=$as_save_IFS
17717 OTOOL=$ac_cv_prog_OTOOL
17718 if test -n "$OTOOL"; then
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17720 $as_echo "$OTOOL" >&6; }
17721 else
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17728 if test -z "$ac_cv_prog_OTOOL"; then
17729 ac_ct_OTOOL=$OTOOL
17730 # Extract the first word of "otool", so it can be a program name with args.
17731 set dummy otool; ac_word=$2
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17733 $as_echo_n "checking for $ac_word... " >&6; }
17734 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
17735 $as_echo_n "(cached) " >&6
17736 else
17737 if test -n "$ac_ct_OTOOL"; then
17738 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17739 else
17740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $PATH
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 for ac_exec_ext in '' $ac_executable_extensions; do
17746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17747 ac_cv_prog_ac_ct_OTOOL="otool"
17748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17749 break 2
17751 done
17752 done
17753 IFS=$as_save_IFS
17757 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17758 if test -n "$ac_ct_OTOOL"; then
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17760 $as_echo "$ac_ct_OTOOL" >&6; }
17761 else
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17763 $as_echo "no" >&6; }
17766 if test "x$ac_ct_OTOOL" = x; then
17767 OTOOL=":"
17768 else
17769 case $cross_compiling:$ac_tool_warned in
17770 yes:)
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17773 ac_tool_warned=yes ;;
17774 esac
17775 OTOOL=$ac_ct_OTOOL
17777 else
17778 OTOOL="$ac_cv_prog_OTOOL"
17781 if test -n "$ac_tool_prefix"; then
17782 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17783 set dummy ${ac_tool_prefix}otool64; ac_word=$2
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17785 $as_echo_n "checking for $ac_word... " >&6; }
17786 if ${ac_cv_prog_OTOOL64+:} false; then :
17787 $as_echo_n "(cached) " >&6
17788 else
17789 if test -n "$OTOOL64"; then
17790 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17791 else
17792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17793 for as_dir in $PATH
17795 IFS=$as_save_IFS
17796 test -z "$as_dir" && as_dir=.
17797 for ac_exec_ext in '' $ac_executable_extensions; do
17798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17799 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17801 break 2
17803 done
17804 done
17805 IFS=$as_save_IFS
17809 OTOOL64=$ac_cv_prog_OTOOL64
17810 if test -n "$OTOOL64"; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17812 $as_echo "$OTOOL64" >&6; }
17813 else
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815 $as_echo "no" >&6; }
17820 if test -z "$ac_cv_prog_OTOOL64"; then
17821 ac_ct_OTOOL64=$OTOOL64
17822 # Extract the first word of "otool64", so it can be a program name with args.
17823 set dummy otool64; ac_word=$2
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17825 $as_echo_n "checking for $ac_word... " >&6; }
17826 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
17827 $as_echo_n "(cached) " >&6
17828 else
17829 if test -n "$ac_ct_OTOOL64"; then
17830 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17831 else
17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17833 for as_dir in $PATH
17835 IFS=$as_save_IFS
17836 test -z "$as_dir" && as_dir=.
17837 for ac_exec_ext in '' $ac_executable_extensions; do
17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17839 ac_cv_prog_ac_ct_OTOOL64="otool64"
17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17841 break 2
17843 done
17844 done
17845 IFS=$as_save_IFS
17849 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17850 if test -n "$ac_ct_OTOOL64"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17852 $as_echo "$ac_ct_OTOOL64" >&6; }
17853 else
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17858 if test "x$ac_ct_OTOOL64" = x; then
17859 OTOOL64=":"
17860 else
17861 case $cross_compiling:$ac_tool_warned in
17862 yes:)
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17865 ac_tool_warned=yes ;;
17866 esac
17867 OTOOL64=$ac_ct_OTOOL64
17869 else
17870 OTOOL64="$ac_cv_prog_OTOOL64"
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17900 $as_echo_n "checking for -single_module linker flag... " >&6; }
17901 if ${lt_cv_apple_cc_single_mod+:} false; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17904 lt_cv_apple_cc_single_mod=no
17905 if test -z "${LT_MULTI_MODULE}"; then
17906 # By default we will add the -single_module flag. You can override
17907 # by either setting the environment variable LT_MULTI_MODULE
17908 # non-empty at configure time, or by adding -multi_module to the
17909 # link flags.
17910 rm -rf libconftest.dylib*
17911 echo "int foo(void){return 1;}" > conftest.c
17912 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17913 -dynamiclib -Wl,-single_module conftest.c" >&5
17914 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17915 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17916 _lt_result=$?
17917 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
17918 lt_cv_apple_cc_single_mod=yes
17919 else
17920 cat conftest.err >&5
17922 rm -rf libconftest.dylib*
17923 rm -f conftest.*
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17927 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17929 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
17930 if ${lt_cv_ld_exported_symbols_list+:} false; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 lt_cv_ld_exported_symbols_list=no
17934 save_LDFLAGS=$LDFLAGS
17935 echo "_main" > conftest.sym
17936 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17941 main ()
17945 return 0;
17947 _ACEOF
17948 if ac_fn_c_try_link "$LINENO"; then :
17949 lt_cv_ld_exported_symbols_list=yes
17950 else
17951 lt_cv_ld_exported_symbols_list=no
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 LDFLAGS="$save_LDFLAGS"
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17959 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17961 $as_echo_n "checking for -force_load linker flag... " >&6; }
17962 if ${lt_cv_ld_force_load+:} false; then :
17963 $as_echo_n "(cached) " >&6
17964 else
17965 lt_cv_ld_force_load=no
17966 cat > conftest.c << _LT_EOF
17967 int forced_loaded() { return 2;}
17968 _LT_EOF
17969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17971 echo "$AR cru libconftest.a conftest.o" >&5
17972 $AR cru libconftest.a conftest.o 2>&5
17973 cat > conftest.c << _LT_EOF
17974 int main() { return 0;}
17975 _LT_EOF
17976 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17977 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17978 _lt_result=$?
17979 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
17980 lt_cv_ld_force_load=yes
17981 else
17982 cat conftest.err >&5
17984 rm -f conftest.err libconftest.a conftest conftest.c
17985 rm -rf conftest.dSYM
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17989 $as_echo "$lt_cv_ld_force_load" >&6; }
17990 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
17991 # build without first building modern cctools / linker.
17992 case $host_cpu-$host_os in
17993 *-rhapsody* | *-darwin1.[012])
17994 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
17995 *-darwin1.*)
17996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
17997 *-darwin*)
17998 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
17999 # deployment target is forced to an earlier version.
18000 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
18001 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
18003 10.[012][,.]*)
18004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18008 esac
18010 esac
18011 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
18012 _lt_dar_single_mod='$single_module'
18014 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
18015 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
18016 else
18017 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
18019 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
18020 _lt_dsymutil='~$DSYMUTIL $lib || :'
18021 else
18022 _lt_dsymutil=
18025 esac
18028 for ac_header in dlfcn.h
18029 do :
18030 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
18031 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18032 cat >>confdefs.h <<_ACEOF
18033 #define HAVE_DLFCN_H 1
18034 _ACEOF
18037 done
18043 # Set options
18047 enable_dlopen=no
18050 enable_win32_dll=no
18053 # Check whether --enable-shared was given.
18054 if test "${enable_shared+set}" = set; then :
18055 enableval=$enable_shared; p=${PACKAGE-default}
18056 case $enableval in
18057 yes) enable_shared=yes ;;
18058 no) enable_shared=no ;;
18060 enable_shared=no
18061 # Look at the argument we got. We use all the common list separators.
18062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18063 for pkg in $enableval; do
18064 IFS="$lt_save_ifs"
18065 if test "X$pkg" = "X$p"; then
18066 enable_shared=yes
18068 done
18069 IFS="$lt_save_ifs"
18071 esac
18072 else
18073 enable_shared=yes
18084 # Check whether --enable-static was given.
18085 if test "${enable_static+set}" = set; then :
18086 enableval=$enable_static; p=${PACKAGE-default}
18087 case $enableval in
18088 yes) enable_static=yes ;;
18089 no) enable_static=no ;;
18091 enable_static=no
18092 # Look at the argument we got. We use all the common list separators.
18093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18094 for pkg in $enableval; do
18095 IFS="$lt_save_ifs"
18096 if test "X$pkg" = "X$p"; then
18097 enable_static=yes
18099 done
18100 IFS="$lt_save_ifs"
18102 esac
18103 else
18104 enable_static=yes
18116 # Check whether --with-pic was given.
18117 if test "${with_pic+set}" = set; then :
18118 withval=$with_pic; pic_mode="$withval"
18119 else
18120 pic_mode=default
18124 test -z "$pic_mode" && pic_mode=default
18132 # Check whether --enable-fast-install was given.
18133 if test "${enable_fast_install+set}" = set; then :
18134 enableval=$enable_fast_install; p=${PACKAGE-default}
18135 case $enableval in
18136 yes) enable_fast_install=yes ;;
18137 no) enable_fast_install=no ;;
18139 enable_fast_install=no
18140 # Look at the argument we got. We use all the common list separators.
18141 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18142 for pkg in $enableval; do
18143 IFS="$lt_save_ifs"
18144 if test "X$pkg" = "X$p"; then
18145 enable_fast_install=yes
18147 done
18148 IFS="$lt_save_ifs"
18150 esac
18151 else
18152 enable_fast_install=yes
18165 # This can be used to rebuild libtool when needed
18166 LIBTOOL_DEPS="$ltmain"
18168 # Always use our own libtool.
18169 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18196 test -z "$LN_S" && LN_S="ln -s"
18211 if test -n "${ZSH_VERSION+set}" ; then
18212 setopt NO_GLOB_SUBST
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18216 $as_echo_n "checking for objdir... " >&6; }
18217 if ${lt_cv_objdir+:} false; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 rm -f .libs 2>/dev/null
18221 mkdir .libs 2>/dev/null
18222 if test -d .libs; then
18223 lt_cv_objdir=.libs
18224 else
18225 # MS-DOS does not allow filenames that begin with a dot.
18226 lt_cv_objdir=_libs
18228 rmdir .libs 2>/dev/null
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18231 $as_echo "$lt_cv_objdir" >&6; }
18232 objdir=$lt_cv_objdir
18238 cat >>confdefs.h <<_ACEOF
18239 #define LT_OBJDIR "$lt_cv_objdir/"
18240 _ACEOF
18245 case $host_os in
18246 aix3*)
18247 # AIX sometimes has problems with the GCC collect2 program. For some
18248 # reason, if we set the COLLECT_NAMES environment variable, the problems
18249 # vanish in a puff of smoke.
18250 if test "X${COLLECT_NAMES+set}" != Xset; then
18251 COLLECT_NAMES=
18252 export COLLECT_NAMES
18255 esac
18257 # Global variables:
18258 ofile=libtool
18259 can_build_shared=yes
18261 # All known linkers require a `.a' archive for static linking (except MSVC,
18262 # which needs '.lib').
18263 libext=a
18265 with_gnu_ld="$lt_cv_prog_gnu_ld"
18267 old_CC="$CC"
18268 old_CFLAGS="$CFLAGS"
18270 # Set sane defaults for various variables
18271 test -z "$CC" && CC=cc
18272 test -z "$LTCC" && LTCC=$CC
18273 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18274 test -z "$LD" && LD=ld
18275 test -z "$ac_objext" && ac_objext=o
18277 for cc_temp in $compiler""; do
18278 case $cc_temp in
18279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18281 \-*) ;;
18282 *) break;;
18283 esac
18284 done
18285 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18288 # Only perform the check for file, if the check method requires it
18289 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18290 case $deplibs_check_method in
18291 file_magic*)
18292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18294 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18295 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18296 $as_echo_n "(cached) " >&6
18297 else
18298 case $MAGIC_CMD in
18299 [\\/*] | ?:[\\/]*)
18300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18303 lt_save_MAGIC_CMD="$MAGIC_CMD"
18304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18305 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18306 for ac_dir in $ac_dummy; do
18307 IFS="$lt_save_ifs"
18308 test -z "$ac_dir" && ac_dir=.
18309 if test -f $ac_dir/${ac_tool_prefix}file; then
18310 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18311 if test -n "$file_magic_test_file"; then
18312 case $deplibs_check_method in
18313 "file_magic "*)
18314 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18316 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18317 $EGREP "$file_magic_regex" > /dev/null; then
18319 else
18320 cat <<_LT_EOF 1>&2
18322 *** Warning: the command libtool uses to detect shared libraries,
18323 *** $file_magic_cmd, produces output that libtool cannot recognize.
18324 *** The result is that libtool may fail to recognize shared libraries
18325 *** as such. This will affect the creation of libtool libraries that
18326 *** depend on shared libraries, but programs linked with such libtool
18327 *** libraries will work regardless of this problem. Nevertheless, you
18328 *** may want to report the problem to your system manager and/or to
18329 *** bug-libtool@gnu.org
18331 _LT_EOF
18332 fi ;;
18333 esac
18335 break
18337 done
18338 IFS="$lt_save_ifs"
18339 MAGIC_CMD="$lt_save_MAGIC_CMD"
18341 esac
18344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18345 if test -n "$MAGIC_CMD"; then
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18347 $as_echo "$MAGIC_CMD" >&6; }
18348 else
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18357 if test -z "$lt_cv_path_MAGIC_CMD"; then
18358 if test -n "$ac_tool_prefix"; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18360 $as_echo_n "checking for file... " >&6; }
18361 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 case $MAGIC_CMD in
18365 [\\/*] | ?:[\\/]*)
18366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18369 lt_save_MAGIC_CMD="$MAGIC_CMD"
18370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18372 for ac_dir in $ac_dummy; do
18373 IFS="$lt_save_ifs"
18374 test -z "$ac_dir" && ac_dir=.
18375 if test -f $ac_dir/file; then
18376 lt_cv_path_MAGIC_CMD="$ac_dir/file"
18377 if test -n "$file_magic_test_file"; then
18378 case $deplibs_check_method in
18379 "file_magic "*)
18380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18383 $EGREP "$file_magic_regex" > /dev/null; then
18385 else
18386 cat <<_LT_EOF 1>&2
18388 *** Warning: the command libtool uses to detect shared libraries,
18389 *** $file_magic_cmd, produces output that libtool cannot recognize.
18390 *** The result is that libtool may fail to recognize shared libraries
18391 *** as such. This will affect the creation of libtool libraries that
18392 *** depend on shared libraries, but programs linked with such libtool
18393 *** libraries will work regardless of this problem. Nevertheless, you
18394 *** may want to report the problem to your system manager and/or to
18395 *** bug-libtool@gnu.org
18397 _LT_EOF
18398 fi ;;
18399 esac
18401 break
18403 done
18404 IFS="$lt_save_ifs"
18405 MAGIC_CMD="$lt_save_MAGIC_CMD"
18407 esac
18410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18411 if test -n "$MAGIC_CMD"; then
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18413 $as_echo "$MAGIC_CMD" >&6; }
18414 else
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18416 $as_echo "no" >&6; }
18420 else
18421 MAGIC_CMD=:
18427 esac
18429 # Use C for the default configuration in the libtool script
18431 lt_save_CC="$CC"
18432 ac_ext=c
18433 ac_cpp='$CPP $CPPFLAGS'
18434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439 # Source file extension for C test sources.
18440 ac_ext=c
18442 # Object file extension for compiled C test sources.
18443 objext=o
18444 objext=$objext
18446 # Code to be used in simple compile tests
18447 lt_simple_compile_test_code="int some_variable = 0;"
18449 # Code to be used in simple link tests
18450 lt_simple_link_test_code='int main(){return(0);}'
18458 # If no C compiler was specified, use CC.
18459 LTCC=${LTCC-"$CC"}
18461 # If no C compiler flags were specified, use CFLAGS.
18462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18464 # Allow CC to be a program name with arguments.
18465 compiler=$CC
18467 # Save the default compiler, since it gets overwritten when the other
18468 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18469 compiler_DEFAULT=$CC
18471 # save warnings/boilerplate of simple test code
18472 ac_outfile=conftest.$ac_objext
18473 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18475 _lt_compiler_boilerplate=`cat conftest.err`
18476 $RM conftest*
18478 ac_outfile=conftest.$ac_objext
18479 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18481 _lt_linker_boilerplate=`cat conftest.err`
18482 $RM -r conftest*
18485 ## CAVEAT EMPTOR:
18486 ## There is no encapsulation within the following macros, do not change
18487 ## the running order or otherwise move them around unless you know exactly
18488 ## what you are doing...
18489 if test -n "$compiler"; then
18491 lt_prog_compiler_no_builtin_flag=
18493 if test "$GCC" = yes; then
18494 case $cc_basename in
18495 nvcc*)
18496 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18498 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18499 esac
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18502 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18503 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
18504 $as_echo_n "(cached) " >&6
18505 else
18506 lt_cv_prog_compiler_rtti_exceptions=no
18507 ac_outfile=conftest.$ac_objext
18508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18509 lt_compiler_flag="-fno-rtti -fno-exceptions"
18510 # Insert the option either (1) after the last *FLAGS variable, or
18511 # (2) before a word containing "conftest.", or (3) at the end.
18512 # Note that $ac_compile itself does not contain backslashes and begins
18513 # with a dollar sign (not a hyphen), so the echo should work correctly.
18514 # The option is referenced via a variable to avoid confusing sed.
18515 lt_compile=`echo "$ac_compile" | $SED \
18516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18518 -e 's:$: $lt_compiler_flag:'`
18519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18520 (eval "$lt_compile" 2>conftest.err)
18521 ac_status=$?
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 if (exit $ac_status) && test -s "$ac_outfile"; then
18525 # The compiler can only warn and ignore the option if not recognized
18526 # So say no if there are warnings other than the usual output.
18527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18530 lt_cv_prog_compiler_rtti_exceptions=yes
18533 $RM conftest*
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18537 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18539 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18540 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18541 else
18552 lt_prog_compiler_wl=
18553 lt_prog_compiler_pic=
18554 lt_prog_compiler_static=
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18557 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18559 if test "$GCC" = yes; then
18560 lt_prog_compiler_wl='-Wl,'
18561 lt_prog_compiler_static='-static'
18563 case $host_os in
18564 aix*)
18565 # All AIX code is PIC.
18566 if test "$host_cpu" = ia64; then
18567 # AIX 5 now supports IA64 processor
18568 lt_prog_compiler_static='-Bstatic'
18570 lt_prog_compiler_pic='-fPIC'
18573 amigaos*)
18574 case $host_cpu in
18575 powerpc)
18576 # see comment about AmigaOS4 .so support
18577 lt_prog_compiler_pic='-fPIC'
18579 m68k)
18580 # FIXME: we need at least 68020 code to build shared libraries, but
18581 # adding the `-m68020' flag to GCC prevents building anything better,
18582 # like `-m68040'.
18583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18585 esac
18588 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18589 # PIC is the default for these OSes.
18592 mingw* | cygwin* | pw32* | os2* | cegcc*)
18593 # This hack is so that the source file can tell whether it is being
18594 # built for inclusion in a dll (and should export symbols for example).
18595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18596 # (--disable-auto-import) libraries
18597 lt_prog_compiler_pic='-DDLL_EXPORT'
18600 darwin* | rhapsody*)
18601 # PIC is the default on this platform
18602 # Common symbols not allowed in MH_DYLIB files
18603 lt_prog_compiler_pic='-fno-common'
18606 haiku*)
18607 # PIC is the default for Haiku.
18608 # The "-static" flag exists, but is broken.
18609 lt_prog_compiler_static=
18612 hpux*)
18613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18615 # sets the default TLS model and affects inlining.
18616 case $host_cpu in
18617 hppa*64*)
18618 # +Z the default
18621 lt_prog_compiler_pic='-fPIC'
18623 esac
18626 interix[3-9]*)
18627 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18628 # Instead, we relocate shared libraries at runtime.
18631 msdosdjgpp*)
18632 # Just because we use GCC doesn't mean we suddenly get shared libraries
18633 # on systems that don't support them.
18634 lt_prog_compiler_can_build_shared=no
18635 enable_shared=no
18638 *nto* | *qnx*)
18639 # QNX uses GNU C++, but need to define -shared option too, otherwise
18640 # it will coredump.
18641 lt_prog_compiler_pic='-fPIC -shared'
18644 sysv4*MP*)
18645 if test -d /usr/nec; then
18646 lt_prog_compiler_pic=-Kconform_pic
18651 lt_prog_compiler_pic='-fPIC'
18653 esac
18655 case $cc_basename in
18656 nvcc*) # Cuda Compiler Driver 2.2
18657 lt_prog_compiler_wl='-Xlinker '
18658 lt_prog_compiler_pic='-Xcompiler -fPIC'
18660 esac
18661 else
18662 # PORTME Check for flag to pass linker flags through the system compiler.
18663 case $host_os in
18664 aix*)
18665 lt_prog_compiler_wl='-Wl,'
18666 if test "$host_cpu" = ia64; then
18667 # AIX 5 now supports IA64 processor
18668 lt_prog_compiler_static='-Bstatic'
18669 else
18670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18674 mingw* | cygwin* | pw32* | os2* | cegcc*)
18675 # This hack is so that the source file can tell whether it is being
18676 # built for inclusion in a dll (and should export symbols for example).
18677 lt_prog_compiler_pic='-DDLL_EXPORT'
18680 hpux9* | hpux10* | hpux11*)
18681 lt_prog_compiler_wl='-Wl,'
18682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18683 # not for PA HP-UX.
18684 case $host_cpu in
18685 hppa*64*|ia64*)
18686 # +Z the default
18689 lt_prog_compiler_pic='+Z'
18691 esac
18692 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18693 lt_prog_compiler_static='${wl}-a ${wl}archive'
18696 irix5* | irix6* | nonstopux*)
18697 lt_prog_compiler_wl='-Wl,'
18698 # PIC (with -KPIC) is the default.
18699 lt_prog_compiler_static='-non_shared'
18702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18703 case $cc_basename in
18704 # old Intel for x86_64 which still supported -KPIC.
18705 ecc*)
18706 lt_prog_compiler_wl='-Wl,'
18707 lt_prog_compiler_pic='-KPIC'
18708 lt_prog_compiler_static='-static'
18710 # icc used to be incompatible with GCC.
18711 # ICC 10 doesn't accept -KPIC any more.
18712 icc* | ifort*)
18713 lt_prog_compiler_wl='-Wl,'
18714 lt_prog_compiler_pic='-fPIC'
18715 lt_prog_compiler_static='-static'
18717 # Lahey Fortran 8.1.
18718 lf95*)
18719 lt_prog_compiler_wl='-Wl,'
18720 lt_prog_compiler_pic='--shared'
18721 lt_prog_compiler_static='--static'
18723 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18724 # Portland Group compilers (*not* the Pentium gcc compiler,
18725 # which looks to be a dead project)
18726 lt_prog_compiler_wl='-Wl,'
18727 lt_prog_compiler_pic='-fpic'
18728 lt_prog_compiler_static='-Bstatic'
18730 ccc*)
18731 lt_prog_compiler_wl='-Wl,'
18732 # All Alpha code is PIC.
18733 lt_prog_compiler_static='-non_shared'
18735 xl* | bgxl* | bgf* | mpixl*)
18736 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18737 lt_prog_compiler_wl='-Wl,'
18738 lt_prog_compiler_pic='-qpic'
18739 lt_prog_compiler_static='-qstaticlink'
18742 case `$CC -V 2>&1 | sed 5q` in
18743 *Sun\ F* | *Sun*Fortran*)
18744 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18745 lt_prog_compiler_pic='-KPIC'
18746 lt_prog_compiler_static='-Bstatic'
18747 lt_prog_compiler_wl=''
18749 *Sun\ C*)
18750 # Sun C 5.9
18751 lt_prog_compiler_pic='-KPIC'
18752 lt_prog_compiler_static='-Bstatic'
18753 lt_prog_compiler_wl='-Wl,'
18755 esac
18757 esac
18760 newsos6)
18761 lt_prog_compiler_pic='-KPIC'
18762 lt_prog_compiler_static='-Bstatic'
18765 *nto* | *qnx*)
18766 # QNX uses GNU C++, but need to define -shared option too, otherwise
18767 # it will coredump.
18768 lt_prog_compiler_pic='-fPIC -shared'
18771 osf3* | osf4* | osf5*)
18772 lt_prog_compiler_wl='-Wl,'
18773 # All OSF/1 code is PIC.
18774 lt_prog_compiler_static='-non_shared'
18777 rdos*)
18778 lt_prog_compiler_static='-non_shared'
18781 solaris*)
18782 lt_prog_compiler_pic='-KPIC'
18783 lt_prog_compiler_static='-Bstatic'
18784 case $cc_basename in
18785 f77* | f90* | f95*)
18786 lt_prog_compiler_wl='-Qoption ld ';;
18788 lt_prog_compiler_wl='-Wl,';;
18789 esac
18792 sunos4*)
18793 lt_prog_compiler_wl='-Qoption ld '
18794 lt_prog_compiler_pic='-PIC'
18795 lt_prog_compiler_static='-Bstatic'
18798 sysv4 | sysv4.2uw2* | sysv4.3*)
18799 lt_prog_compiler_wl='-Wl,'
18800 lt_prog_compiler_pic='-KPIC'
18801 lt_prog_compiler_static='-Bstatic'
18804 sysv4*MP*)
18805 if test -d /usr/nec ;then
18806 lt_prog_compiler_pic='-Kconform_pic'
18807 lt_prog_compiler_static='-Bstatic'
18811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18812 lt_prog_compiler_wl='-Wl,'
18813 lt_prog_compiler_pic='-KPIC'
18814 lt_prog_compiler_static='-Bstatic'
18817 unicos*)
18818 lt_prog_compiler_wl='-Wl,'
18819 lt_prog_compiler_can_build_shared=no
18822 uts4*)
18823 lt_prog_compiler_pic='-pic'
18824 lt_prog_compiler_static='-Bstatic'
18828 lt_prog_compiler_can_build_shared=no
18830 esac
18833 case $host_os in
18834 # For platforms which do not support PIC, -DPIC is meaningless:
18835 *djgpp*)
18836 lt_prog_compiler_pic=
18839 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18841 esac
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
18843 $as_echo "$lt_prog_compiler_pic" >&6; }
18851 # Check to make sure the PIC flag actually works.
18853 if test -n "$lt_prog_compiler_pic"; then
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18855 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
18856 if ${lt_cv_prog_compiler_pic_works+:} false; then :
18857 $as_echo_n "(cached) " >&6
18858 else
18859 lt_cv_prog_compiler_pic_works=no
18860 ac_outfile=conftest.$ac_objext
18861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18862 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18863 # Insert the option either (1) after the last *FLAGS variable, or
18864 # (2) before a word containing "conftest.", or (3) at the end.
18865 # Note that $ac_compile itself does not contain backslashes and begins
18866 # with a dollar sign (not a hyphen), so the echo should work correctly.
18867 # The option is referenced via a variable to avoid confusing sed.
18868 lt_compile=`echo "$ac_compile" | $SED \
18869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18871 -e 's:$: $lt_compiler_flag:'`
18872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18873 (eval "$lt_compile" 2>conftest.err)
18874 ac_status=$?
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 if (exit $ac_status) && test -s "$ac_outfile"; then
18878 # The compiler can only warn and ignore the option if not recognized
18879 # So say no if there are warnings other than the usual output.
18880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18883 lt_cv_prog_compiler_pic_works=yes
18886 $RM conftest*
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
18890 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
18892 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18893 case $lt_prog_compiler_pic in
18894 "" | " "*) ;;
18895 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18896 esac
18897 else
18898 lt_prog_compiler_pic=
18899 lt_prog_compiler_can_build_shared=no
18910 # Check to make sure the static flag actually works.
18912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18914 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18915 if ${lt_cv_prog_compiler_static_works+:} false; then :
18916 $as_echo_n "(cached) " >&6
18917 else
18918 lt_cv_prog_compiler_static_works=no
18919 save_LDFLAGS="$LDFLAGS"
18920 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18921 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18922 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18923 # The linker can only warn and ignore the option if not recognized
18924 # So say no if there are warnings
18925 if test -s conftest.err; then
18926 # Append any errors to the config.log.
18927 cat conftest.err 1>&5
18928 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18930 if diff conftest.exp conftest.er2 >/dev/null; then
18931 lt_cv_prog_compiler_static_works=yes
18933 else
18934 lt_cv_prog_compiler_static_works=yes
18937 $RM -r conftest*
18938 LDFLAGS="$save_LDFLAGS"
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
18942 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
18944 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18946 else
18947 lt_prog_compiler_static=
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18958 if ${lt_cv_prog_compiler_c_o+:} false; then :
18959 $as_echo_n "(cached) " >&6
18960 else
18961 lt_cv_prog_compiler_c_o=no
18962 $RM -r conftest 2>/dev/null
18963 mkdir conftest
18964 cd conftest
18965 mkdir out
18966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18968 lt_compiler_flag="-o out/conftest2.$ac_objext"
18969 # Insert the option either (1) after the last *FLAGS variable, or
18970 # (2) before a word containing "conftest.", or (3) at the end.
18971 # Note that $ac_compile itself does not contain backslashes and begins
18972 # with a dollar sign (not a hyphen), so the echo should work correctly.
18973 lt_compile=`echo "$ac_compile" | $SED \
18974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18976 -e 's:$: $lt_compiler_flag:'`
18977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18978 (eval "$lt_compile" 2>out/conftest.err)
18979 ac_status=$?
18980 cat out/conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18983 then
18984 # The compiler can only warn and ignore the option if not recognized
18985 # So say no if there are warnings
18986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18989 lt_cv_prog_compiler_c_o=yes
18992 chmod u+w . 2>&5
18993 $RM conftest*
18994 # SGI C++ compiler will create directory out/ii_files/ for
18995 # template instantiation
18996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18997 $RM out/* && rmdir out
18998 cd ..
18999 $RM -r conftest
19000 $RM conftest*
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19013 if ${lt_cv_prog_compiler_c_o+:} false; then :
19014 $as_echo_n "(cached) " >&6
19015 else
19016 lt_cv_prog_compiler_c_o=no
19017 $RM -r conftest 2>/dev/null
19018 mkdir conftest
19019 cd conftest
19020 mkdir out
19021 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19023 lt_compiler_flag="-o out/conftest2.$ac_objext"
19024 # Insert the option either (1) after the last *FLAGS variable, or
19025 # (2) before a word containing "conftest.", or (3) at the end.
19026 # Note that $ac_compile itself does not contain backslashes and begins
19027 # with a dollar sign (not a hyphen), so the echo should work correctly.
19028 lt_compile=`echo "$ac_compile" | $SED \
19029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19031 -e 's:$: $lt_compiler_flag:'`
19032 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19033 (eval "$lt_compile" 2>out/conftest.err)
19034 ac_status=$?
19035 cat out/conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19038 then
19039 # The compiler can only warn and ignore the option if not recognized
19040 # So say no if there are warnings
19041 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19042 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19043 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19044 lt_cv_prog_compiler_c_o=yes
19047 chmod u+w . 2>&5
19048 $RM conftest*
19049 # SGI C++ compiler will create directory out/ii_files/ for
19050 # template instantiation
19051 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19052 $RM out/* && rmdir out
19053 cd ..
19054 $RM -r conftest
19055 $RM conftest*
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19064 hard_links="nottested"
19065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19066 # do not overwrite the value of need_locks provided by the user
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19068 $as_echo_n "checking if we can lock with hard links... " >&6; }
19069 hard_links=yes
19070 $RM conftest*
19071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19072 touch conftest.a
19073 ln conftest.a conftest.b 2>&5 || hard_links=no
19074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19076 $as_echo "$hard_links" >&6; }
19077 if test "$hard_links" = no; then
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19079 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19080 need_locks=warn
19082 else
19083 need_locks=no
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19094 runpath_var=
19095 allow_undefined_flag=
19096 always_export_symbols=no
19097 archive_cmds=
19098 archive_expsym_cmds=
19099 compiler_needs_object=no
19100 enable_shared_with_static_runtimes=no
19101 export_dynamic_flag_spec=
19102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19103 hardcode_automatic=no
19104 hardcode_direct=no
19105 hardcode_direct_absolute=no
19106 hardcode_libdir_flag_spec=
19107 hardcode_libdir_flag_spec_ld=
19108 hardcode_libdir_separator=
19109 hardcode_minus_L=no
19110 hardcode_shlibpath_var=unsupported
19111 inherit_rpath=no
19112 link_all_deplibs=unknown
19113 module_cmds=
19114 module_expsym_cmds=
19115 old_archive_from_new_cmds=
19116 old_archive_from_expsyms_cmds=
19117 thread_safe_flag_spec=
19118 whole_archive_flag_spec=
19119 # include_expsyms should be a list of space-separated symbols to be *always*
19120 # included in the symbol list
19121 include_expsyms=
19122 # exclude_expsyms can be an extended regexp of symbols to exclude
19123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19125 # as well as any symbol that contains `d'.
19126 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19128 # platforms (ab)use it in PIC code, but their linkers get confused if
19129 # the symbol is explicitly referenced. Since portable code cannot
19130 # rely on this symbol name, it's probably fine to never include it in
19131 # preloaded symbol tables.
19132 # Exclude shared library initialization/finalization symbols.
19133 extract_expsyms_cmds=
19135 case $host_os in
19136 cygwin* | mingw* | pw32* | cegcc*)
19137 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19138 # When not using gcc, we currently assume that we are using
19139 # Microsoft Visual C++.
19140 if test "$GCC" != yes; then
19141 with_gnu_ld=no
19144 interix*)
19145 # we just hope/assume this is gcc and not c89 (= MSVC++)
19146 with_gnu_ld=yes
19148 openbsd*)
19149 with_gnu_ld=no
19151 esac
19153 ld_shlibs=yes
19155 # On some targets, GNU ld is compatible enough with the native linker
19156 # that we're better off using the native interface for both.
19157 lt_use_gnu_ld_interface=no
19158 if test "$with_gnu_ld" = yes; then
19159 case $host_os in
19160 aix*)
19161 # The AIX port of GNU ld has always aspired to compatibility
19162 # with the native linker. However, as the warning in the GNU ld
19163 # block says, versions before 2.19.5* couldn't really create working
19164 # shared libraries, regardless of the interface used.
19165 case `$LD -v 2>&1` in
19166 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19167 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19168 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19170 lt_use_gnu_ld_interface=yes
19172 esac
19175 lt_use_gnu_ld_interface=yes
19177 esac
19180 if test "$lt_use_gnu_ld_interface" = yes; then
19181 # If archive_cmds runs LD, not CC, wlarc should be empty
19182 wlarc='${wl}'
19184 # Set some defaults for GNU ld with shared library support. These
19185 # are reset later if shared libraries are not supported. Putting them
19186 # here allows them to be overridden if necessary.
19187 runpath_var=LD_RUN_PATH
19188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19189 export_dynamic_flag_spec='${wl}--export-dynamic'
19190 # ancient GNU ld didn't support --whole-archive et. al.
19191 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19192 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19193 else
19194 whole_archive_flag_spec=
19196 supports_anon_versioning=no
19197 case `$LD -v 2>&1` in
19198 *GNU\ gold*) supports_anon_versioning=yes ;;
19199 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19200 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19201 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19202 *\ 2.11.*) ;; # other 2.11 versions
19203 *) supports_anon_versioning=yes ;;
19204 esac
19206 # See if GNU ld supports shared libraries.
19207 case $host_os in
19208 aix[3-9]*)
19209 # On AIX/PPC, the GNU linker is very broken
19210 if test "$host_cpu" != ia64; then
19211 ld_shlibs=no
19212 cat <<_LT_EOF 1>&2
19214 *** Warning: the GNU linker, at least up to release 2.19, is reported
19215 *** to be unable to reliably create shared libraries on AIX.
19216 *** Therefore, libtool is disabling shared libraries support. If you
19217 *** really care for shared libraries, you may want to install binutils
19218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19219 *** You will then need to restart the configuration process.
19221 _LT_EOF
19225 amigaos*)
19226 case $host_cpu in
19227 powerpc)
19228 # see comment about AmigaOS4 .so support
19229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19230 archive_expsym_cmds=''
19232 m68k)
19233 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)'
19234 hardcode_libdir_flag_spec='-L$libdir'
19235 hardcode_minus_L=yes
19237 esac
19240 beos*)
19241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19242 allow_undefined_flag=unsupported
19243 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19244 # support --undefined. This deserves some investigation. FIXME
19245 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19246 else
19247 ld_shlibs=no
19251 cygwin* | mingw* | pw32* | cegcc*)
19252 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19253 # as there is no search path for DLLs.
19254 hardcode_libdir_flag_spec='-L$libdir'
19255 export_dynamic_flag_spec='${wl}--export-all-symbols'
19256 allow_undefined_flag=unsupported
19257 always_export_symbols=no
19258 enable_shared_with_static_runtimes=yes
19259 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19261 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19263 # If the export-symbols file already is a .def file (1st line
19264 # is EXPORTS), use it as is; otherwise, prepend...
19265 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19266 cp $export_symbols $output_objdir/$soname.def;
19267 else
19268 echo EXPORTS > $output_objdir/$soname.def;
19269 cat $export_symbols >> $output_objdir/$soname.def;
19271 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19272 else
19273 ld_shlibs=no
19277 haiku*)
19278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19279 link_all_deplibs=yes
19282 interix[3-9]*)
19283 hardcode_direct=no
19284 hardcode_shlibpath_var=no
19285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19286 export_dynamic_flag_spec='${wl}-E'
19287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19288 # Instead, shared libraries are loaded at an image base (0x10000000 by
19289 # default) and relocated if they conflict, which is a slow very memory
19290 # consuming and fragmenting process. To avoid this, we pick a random,
19291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19294 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'
19297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
19298 tmp_diet=no
19299 if test "$host_os" = linux-dietlibc; then
19300 case $cc_basename in
19301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19302 esac
19304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19305 && test "$tmp_diet" = no
19306 then
19307 tmp_addflag=' $pic_flag'
19308 tmp_sharedflag='-shared'
19309 case $cc_basename,$host_cpu in
19310 pgcc*) # Portland Group C compiler
19311 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'
19312 tmp_addflag=' $pic_flag'
19314 pgf77* | pgf90* | pgf95* | pgfortran*)
19315 # Portland Group f77 and f90 compilers
19316 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'
19317 tmp_addflag=' $pic_flag -Mnomain' ;;
19318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19319 tmp_addflag=' -i_dynamic' ;;
19320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19321 tmp_addflag=' -i_dynamic -nofor_main' ;;
19322 ifc* | ifort*) # Intel Fortran compiler
19323 tmp_addflag=' -nofor_main' ;;
19324 lf95*) # Lahey Fortran 8.1
19325 whole_archive_flag_spec=
19326 tmp_sharedflag='--shared' ;;
19327 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19328 tmp_sharedflag='-qmkshrobj'
19329 tmp_addflag= ;;
19330 nvcc*) # Cuda Compiler Driver 2.2
19331 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'
19332 compiler_needs_object=yes
19334 esac
19335 case `$CC -V 2>&1 | sed 5q` in
19336 *Sun\ C*) # Sun C 5.9
19337 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'
19338 compiler_needs_object=yes
19339 tmp_sharedflag='-G' ;;
19340 *Sun\ F*) # Sun Fortran 8.3
19341 tmp_sharedflag='-G' ;;
19342 esac
19343 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 if test "x$supports_anon_versioning" = xyes; then
19346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19348 echo "local: *; };" >> $output_objdir/$libname.ver~
19349 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19352 case $cc_basename in
19353 xlf* | bgf* | bgxlf* | mpixlf*)
19354 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19355 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19356 hardcode_libdir_flag_spec=
19357 hardcode_libdir_flag_spec_ld='-rpath $libdir'
19358 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
19359 if test "x$supports_anon_versioning" = xyes; then
19360 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19361 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19362 echo "local: *; };" >> $output_objdir/$libname.ver~
19363 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19366 esac
19367 else
19368 ld_shlibs=no
19372 netbsd*)
19373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19374 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19375 wlarc=
19376 else
19377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19382 solaris*)
19383 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19384 ld_shlibs=no
19385 cat <<_LT_EOF 1>&2
19387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19388 *** create shared libraries on Solaris systems. Therefore, libtool
19389 *** is disabling shared libraries support. We urge you to upgrade GNU
19390 *** binutils to release 2.9.1 or newer. Another option is to modify
19391 *** your PATH or compiler configuration so that the native linker is
19392 *** used, and then restart.
19394 _LT_EOF
19395 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19398 else
19399 ld_shlibs=no
19403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19404 case `$LD -v 2>&1` in
19405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19406 ld_shlibs=no
19407 cat <<_LT_EOF 1>&2
19409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19410 *** reliably create shared libraries on SCO systems. Therefore, libtool
19411 *** is disabling shared libraries support. We urge you to upgrade GNU
19412 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19413 *** your PATH or compiler configuration so that the native linker is
19414 *** used, and then restart.
19416 _LT_EOF
19419 # For security reasons, it is highly recommended that you always
19420 # use absolute paths for naming shared libraries, and exclude the
19421 # DT_RUNPATH tag from executables and libraries. But doing so
19422 # requires that you compile everything twice, which is a pain.
19423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19427 else
19428 ld_shlibs=no
19431 esac
19434 sunos4*)
19435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19436 wlarc=
19437 hardcode_direct=yes
19438 hardcode_shlibpath_var=no
19442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19445 else
19446 ld_shlibs=no
19449 esac
19451 if test "$ld_shlibs" = no; then
19452 runpath_var=
19453 hardcode_libdir_flag_spec=
19454 export_dynamic_flag_spec=
19455 whole_archive_flag_spec=
19457 else
19458 # PORTME fill in a description of your system's linker (not GNU ld)
19459 case $host_os in
19460 aix3*)
19461 allow_undefined_flag=unsupported
19462 always_export_symbols=yes
19463 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'
19464 # Note: this linker hardcodes the directories in LIBPATH if there
19465 # are no directories specified by -L.
19466 hardcode_minus_L=yes
19467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19468 # Neither direct hardcoding nor static linking is supported with a
19469 # broken collect2.
19470 hardcode_direct=unsupported
19474 aix[4-9]*)
19475 if test "$host_cpu" = ia64; then
19476 # On IA64, the linker does run time linking by default, so we don't
19477 # have to do anything special.
19478 aix_use_runtimelinking=no
19479 exp_sym_flag='-Bexport'
19480 no_entry_flag=""
19481 else
19482 # If we're using GNU nm, then we don't want the "-C" option.
19483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19484 # Also, AIX nm treats weak defined symbols like other global
19485 # defined symbols, whereas GNU nm marks them as "W".
19486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19487 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'
19488 else
19489 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'
19491 aix_use_runtimelinking=no
19493 # Test if we are trying to use run time linking or normal
19494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19495 # need to do runtime linking.
19496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19497 for ld_flag in $LDFLAGS; do
19498 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19499 aix_use_runtimelinking=yes
19500 break
19502 done
19504 esac
19506 exp_sym_flag='-bexport'
19507 no_entry_flag='-bnoentry'
19510 # When large executables or shared objects are built, AIX ld can
19511 # have problems creating the table of contents. If linking a library
19512 # or program results in "error TOC overflow" add -mminimal-toc to
19513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19516 archive_cmds=''
19517 hardcode_direct=yes
19518 hardcode_direct_absolute=yes
19519 hardcode_libdir_separator=':'
19520 link_all_deplibs=yes
19521 file_list_spec='${wl}-f,'
19523 if test "$GCC" = yes; then
19524 case $host_os in aix4.[012]|aix4.[012].*)
19525 # We only want to do this on AIX 4.2 and lower, the check
19526 # below for broken collect2 doesn't work under 4.3+
19527 collect2name=`${CC} -print-prog-name=collect2`
19528 if test -f "$collect2name" &&
19529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19530 then
19531 # We have reworked collect2
19533 else
19534 # We have old collect2
19535 hardcode_direct=unsupported
19536 # It fails to find uninstalled libraries when the uninstalled
19537 # path is not listed in the libpath. Setting hardcode_minus_L
19538 # to unsupported forces relinking
19539 hardcode_minus_L=yes
19540 hardcode_libdir_flag_spec='-L$libdir'
19541 hardcode_libdir_separator=
19544 esac
19545 shared_flag='-shared'
19546 if test "$aix_use_runtimelinking" = yes; then
19547 shared_flag="$shared_flag "'${wl}-G'
19549 else
19550 # not using gcc
19551 if test "$host_cpu" = ia64; then
19552 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19553 # chokes on -Wl,-G. The following line is correct:
19554 shared_flag='-G'
19555 else
19556 if test "$aix_use_runtimelinking" = yes; then
19557 shared_flag='${wl}-G'
19558 else
19559 shared_flag='${wl}-bM:SRE'
19564 export_dynamic_flag_spec='${wl}-bexpall'
19565 # It seems that -bexpall does not export symbols beginning with
19566 # underscore (_), so it is better to generate a list of symbols to export.
19567 always_export_symbols=yes
19568 if test "$aix_use_runtimelinking" = yes; then
19569 # Warning - without using the other runtime loading flags (-brtl),
19570 # -berok will link without error, but may produce a broken library.
19571 allow_undefined_flag='-berok'
19572 # Determine the default libpath from the value encoded in an
19573 # empty executable.
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19578 main ()
19582 return 0;
19584 _ACEOF
19585 if ac_fn_c_try_link "$LINENO"; then :
19587 lt_aix_libpath_sed='
19588 /Import File Strings/,/^$/ {
19589 /^0/ {
19590 s/^0 *\(.*\)$/\1/
19594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19595 # Check for a 64-bit object if we didn't find anything.
19596 if test -z "$aix_libpath"; then
19597 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19600 rm -f core conftest.err conftest.$ac_objext \
19601 conftest$ac_exeext conftest.$ac_ext
19602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19604 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19605 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"
19606 else
19607 if test "$host_cpu" = ia64; then
19608 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19609 allow_undefined_flag="-z nodefs"
19610 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"
19611 else
19612 # Determine the default libpath from the value encoded in an
19613 # empty executable.
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19618 main ()
19622 return 0;
19624 _ACEOF
19625 if ac_fn_c_try_link "$LINENO"; then :
19627 lt_aix_libpath_sed='
19628 /Import File Strings/,/^$/ {
19629 /^0/ {
19630 s/^0 *\(.*\)$/\1/
19634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19635 # Check for a 64-bit object if we didn't find anything.
19636 if test -z "$aix_libpath"; then
19637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19645 # Warning - without using the other run time loading flags,
19646 # -berok will link without error, but may produce a broken library.
19647 no_undefined_flag=' ${wl}-bernotok'
19648 allow_undefined_flag=' ${wl}-berok'
19649 if test "$with_gnu_ld" = yes; then
19650 # We only use this code for GNU lds that support --whole-archive.
19651 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19652 else
19653 # Exported symbols can be pulled into shared objects from archives
19654 whole_archive_flag_spec='$convenience'
19656 archive_cmds_need_lc=yes
19657 # This is similar to how AIX traditionally builds its shared libraries.
19658 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'
19663 amigaos*)
19664 case $host_cpu in
19665 powerpc)
19666 # see comment about AmigaOS4 .so support
19667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19668 archive_expsym_cmds=''
19670 m68k)
19671 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)'
19672 hardcode_libdir_flag_spec='-L$libdir'
19673 hardcode_minus_L=yes
19675 esac
19678 bsdi[45]*)
19679 export_dynamic_flag_spec=-rdynamic
19682 cygwin* | mingw* | pw32* | cegcc*)
19683 # When not using gcc, we currently assume that we are using
19684 # Microsoft Visual C++.
19685 # hardcode_libdir_flag_spec is actually meaningless, as there is
19686 # no search path for DLLs.
19687 hardcode_libdir_flag_spec=' '
19688 allow_undefined_flag=unsupported
19689 # Tell ltmain to make .lib files, not .a files.
19690 libext=lib
19691 # Tell ltmain to make .dll files, not .so files.
19692 shrext_cmds=".dll"
19693 # FIXME: Setting linknames here is a bad hack.
19694 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19695 # The linker will automatically build a .lib file if we build a DLL.
19696 old_archive_from_new_cmds='true'
19697 # FIXME: Should let the user specify the lib program.
19698 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19699 fix_srcfile_path='`cygpath -w "$srcfile"`'
19700 enable_shared_with_static_runtimes=yes
19703 darwin* | rhapsody*)
19707 # Publish an arg to allow the user to select that Darwin host (and target)
19708 # libraries should be given install-names like @rpath/libfoo.dylib. This
19709 # requires that the user of the library then adds an 'rpath' to the DSO that
19710 # needs access.
19711 # NOTE: there are defaults below, for systems that support rpaths. The person
19712 # configuring can override the defaults for any system version that supports
19713 # them - they are, however, forced off for system versions without support.
19714 # Check whether --enable-darwin-at-rpath was given.
19715 if test "${enable_darwin_at_rpath+set}" = set; then :
19716 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
19717 # This is not supported before macOS 10.5 / Darwin9.
19718 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19719 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
19721 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
19722 enable_darwin_at_rpath=no
19724 esac
19726 else
19727 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
19728 # As above, before 10.5 / Darwin9 this does not work.
19729 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
19730 enable_darwin_at_rpath=no
19733 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
19734 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
19735 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
19736 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
19738 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
19739 enable_darwin_at_rpath=yes
19741 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
19742 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
19744 esac
19749 archive_cmds_need_lc=no
19750 hardcode_direct=no
19751 hardcode_automatic=yes
19752 hardcode_shlibpath_var=unsupported
19753 if test "$lt_cv_ld_force_load" = "yes"; then
19754 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\"`'
19755 else
19756 whole_archive_flag_spec=''
19758 link_all_deplibs=yes
19759 allow_undefined_flag="$_lt_dar_allow_undefined"
19760 case $cc_basename in
19761 ifort*) _lt_dar_can_shared=yes ;;
19762 *) _lt_dar_can_shared=$GCC ;;
19763 esac
19764 if test "$_lt_dar_can_shared" = "yes"; then
19765 output_verbose_link_cmd=func_echo_all
19766 _lt_install_name='\$rpath/\$soname'
19767 if test "x$enable_darwin_at_rpath" = "xyes"; then
19768 _lt_install_name='@rpath/\$soname'
19770 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
19771 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19772 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}"
19773 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}"
19775 else
19776 ld_shlibs=no
19781 dgux*)
19782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19783 hardcode_libdir_flag_spec='-L$libdir'
19784 hardcode_shlibpath_var=no
19787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19788 # support. Future versions do this automatically, but an explicit c++rt0.o
19789 # does not break anything, and helps significantly (at the cost of a little
19790 # extra space).
19791 freebsd2.2*)
19792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19793 hardcode_libdir_flag_spec='-R$libdir'
19794 hardcode_direct=yes
19795 hardcode_shlibpath_var=no
19798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19799 freebsd2.*)
19800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19801 hardcode_direct=yes
19802 hardcode_minus_L=yes
19803 hardcode_shlibpath_var=no
19806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19807 freebsd* | dragonfly*)
19808 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19809 hardcode_libdir_flag_spec='-R$libdir'
19810 hardcode_direct=yes
19811 hardcode_shlibpath_var=no
19814 hpux9*)
19815 if test "$GCC" = yes; then
19816 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'
19817 else
19818 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'
19820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19821 hardcode_libdir_separator=:
19822 hardcode_direct=yes
19824 # hardcode_minus_L: Not really in the search PATH,
19825 # but as the default location of the library.
19826 hardcode_minus_L=yes
19827 export_dynamic_flag_spec='${wl}-E'
19830 hpux10*)
19831 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19833 else
19834 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19836 if test "$with_gnu_ld" = no; then
19837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19838 hardcode_libdir_flag_spec_ld='+b $libdir'
19839 hardcode_libdir_separator=:
19840 hardcode_direct=yes
19841 hardcode_direct_absolute=yes
19842 export_dynamic_flag_spec='${wl}-E'
19843 # hardcode_minus_L: Not really in the search PATH,
19844 # but as the default location of the library.
19845 hardcode_minus_L=yes
19849 hpux11*)
19850 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
19851 case $host_cpu in
19852 hppa*64*)
19853 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19855 ia64*)
19856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19859 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19861 esac
19862 else
19863 case $host_cpu in
19864 hppa*64*)
19865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19867 ia64*)
19868 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19872 # Older versions of the 11.00 compiler do not understand -b yet
19873 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
19875 $as_echo_n "checking if $CC understands -b... " >&6; }
19876 if ${lt_cv_prog_compiler__b+:} false; then :
19877 $as_echo_n "(cached) " >&6
19878 else
19879 lt_cv_prog_compiler__b=no
19880 save_LDFLAGS="$LDFLAGS"
19881 LDFLAGS="$LDFLAGS -b"
19882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19884 # The linker can only warn and ignore the option if not recognized
19885 # So say no if there are warnings
19886 if test -s conftest.err; then
19887 # Append any errors to the config.log.
19888 cat conftest.err 1>&5
19889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19891 if diff conftest.exp conftest.er2 >/dev/null; then
19892 lt_cv_prog_compiler__b=yes
19894 else
19895 lt_cv_prog_compiler__b=yes
19898 $RM -r conftest*
19899 LDFLAGS="$save_LDFLAGS"
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
19903 $as_echo "$lt_cv_prog_compiler__b" >&6; }
19905 if test x"$lt_cv_prog_compiler__b" = xyes; then
19906 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19907 else
19908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19912 esac
19914 if test "$with_gnu_ld" = no; then
19915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19916 hardcode_libdir_separator=:
19918 case $host_cpu in
19919 hppa*64*|ia64*)
19920 hardcode_direct=no
19921 hardcode_shlibpath_var=no
19924 hardcode_direct=yes
19925 hardcode_direct_absolute=yes
19926 export_dynamic_flag_spec='${wl}-E'
19928 # hardcode_minus_L: Not really in the search PATH,
19929 # but as the default location of the library.
19930 hardcode_minus_L=yes
19932 esac
19936 irix5* | irix6* | nonstopux*)
19937 if test "$GCC" = yes; then
19938 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'
19939 # Try to use the -exported_symbol ld option, if it does not
19940 # work, assume that -exports_file does not work either and
19941 # implicitly export all symbols.
19942 save_LDFLAGS="$LDFLAGS"
19943 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946 int foo(void) {}
19947 _ACEOF
19948 if ac_fn_c_try_link "$LINENO"; then :
19949 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'
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LDFLAGS="$save_LDFLAGS"
19955 else
19956 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'
19957 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'
19959 archive_cmds_need_lc='no'
19960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19961 hardcode_libdir_separator=:
19962 inherit_rpath=yes
19963 link_all_deplibs=yes
19966 netbsd*)
19967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19969 else
19970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19972 hardcode_libdir_flag_spec='-R$libdir'
19973 hardcode_direct=yes
19974 hardcode_shlibpath_var=no
19977 newsos6)
19978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19979 hardcode_direct=yes
19980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19981 hardcode_libdir_separator=:
19982 hardcode_shlibpath_var=no
19985 *nto* | *qnx*)
19988 openbsd*)
19989 if test -f /usr/libexec/ld.so; then
19990 hardcode_direct=yes
19991 hardcode_shlibpath_var=no
19992 hardcode_direct_absolute=yes
19993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19995 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19997 export_dynamic_flag_spec='${wl}-E'
19998 else
19999 case $host_os in
20000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20002 hardcode_libdir_flag_spec='-R$libdir'
20005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
20008 esac
20010 else
20011 ld_shlibs=no
20015 os2*)
20016 hardcode_libdir_flag_spec='-L$libdir'
20017 hardcode_minus_L=yes
20018 allow_undefined_flag=unsupported
20019 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'
20020 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20023 osf3*)
20024 if test "$GCC" = yes; then
20025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20026 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'
20027 else
20028 allow_undefined_flag=' -expect_unresolved \*'
20029 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'
20031 archive_cmds_need_lc='no'
20032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20033 hardcode_libdir_separator=:
20036 osf4* | osf5*) # as osf3* with the addition of -msym flag
20037 if test "$GCC" = yes; then
20038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
20039 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'
20040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
20041 else
20042 allow_undefined_flag=' -expect_unresolved \*'
20043 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'
20044 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~
20045 $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'
20047 # Both c and cxx compiler support -rpath directly
20048 hardcode_libdir_flag_spec='-rpath $libdir'
20050 archive_cmds_need_lc='no'
20051 hardcode_libdir_separator=:
20054 solaris*)
20055 no_undefined_flag=' -z defs'
20056 if test "$GCC" = yes; then
20057 wlarc='${wl}'
20058 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20060 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20061 else
20062 case `$CC -V 2>&1` in
20063 *"Compilers 5.0"*)
20064 wlarc=''
20065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20070 wlarc='${wl}'
20071 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20073 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20075 esac
20077 hardcode_libdir_flag_spec='-R$libdir'
20078 hardcode_shlibpath_var=no
20079 case $host_os in
20080 solaris2.[0-5] | solaris2.[0-5].*) ;;
20082 # The compiler driver will combine and reorder linker options,
20083 # but understands `-z linker_flag'. GCC discards it without `$wl',
20084 # but is careful enough not to reorder.
20085 # Supported since Solaris 2.6 (maybe 2.5.1?)
20086 if test "$GCC" = yes; then
20087 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20088 else
20089 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20092 esac
20093 link_all_deplibs=yes
20096 sunos4*)
20097 if test "x$host_vendor" = xsequent; then
20098 # Use $CC to link under sequent, because it throws in some extra .o
20099 # files that make .init and .fini sections work.
20100 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20101 else
20102 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20104 hardcode_libdir_flag_spec='-L$libdir'
20105 hardcode_direct=yes
20106 hardcode_minus_L=yes
20107 hardcode_shlibpath_var=no
20110 sysv4)
20111 case $host_vendor in
20112 sni)
20113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114 hardcode_direct=yes # is this really true???
20116 siemens)
20117 ## LD is ld it makes a PLAMLIB
20118 ## CC just makes a GrossModule.
20119 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20120 reload_cmds='$CC -r -o $output$reload_objs'
20121 hardcode_direct=no
20123 motorola)
20124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20125 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20127 esac
20128 runpath_var='LD_RUN_PATH'
20129 hardcode_shlibpath_var=no
20132 sysv4.3*)
20133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20134 hardcode_shlibpath_var=no
20135 export_dynamic_flag_spec='-Bexport'
20138 sysv4*MP*)
20139 if test -d /usr/nec; then
20140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20141 hardcode_shlibpath_var=no
20142 runpath_var=LD_RUN_PATH
20143 hardcode_runpath_var=yes
20144 ld_shlibs=yes
20148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20149 no_undefined_flag='${wl}-z,text'
20150 archive_cmds_need_lc=no
20151 hardcode_shlibpath_var=no
20152 runpath_var='LD_RUN_PATH'
20154 if test "$GCC" = yes; then
20155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20157 else
20158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20163 sysv5* | sco3.2v5* | sco5v6*)
20164 # Note: We can NOT use -z defs as we might desire, because we do not
20165 # link with -lc, and that would cause any symbols used from libc to
20166 # always be unresolved, which means just about no library would
20167 # ever link correctly. If we're not using GNU ld we use -z text
20168 # though, which does catch some bad symbols but isn't as heavy-handed
20169 # as -z defs.
20170 no_undefined_flag='${wl}-z,text'
20171 allow_undefined_flag='${wl}-z,nodefs'
20172 archive_cmds_need_lc=no
20173 hardcode_shlibpath_var=no
20174 hardcode_libdir_flag_spec='${wl}-R,$libdir'
20175 hardcode_libdir_separator=':'
20176 link_all_deplibs=yes
20177 export_dynamic_flag_spec='${wl}-Bexport'
20178 runpath_var='LD_RUN_PATH'
20180 if test "$GCC" = yes; then
20181 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20182 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 else
20184 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20185 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20189 uts4*)
20190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20191 hardcode_libdir_flag_spec='-L$libdir'
20192 hardcode_shlibpath_var=no
20196 ld_shlibs=no
20198 esac
20200 if test x$host_vendor = xsni; then
20201 case $host in
20202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20203 export_dynamic_flag_spec='${wl}-Blargedynsym'
20205 esac
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20210 $as_echo "$ld_shlibs" >&6; }
20211 test "$ld_shlibs" = no && can_build_shared=no
20213 with_gnu_ld=$with_gnu_ld
20230 # Do we need to explicitly link libc?
20232 case "x$archive_cmds_need_lc" in
20233 x|xyes)
20234 # Assume -lc should be added
20235 archive_cmds_need_lc=yes
20237 if test "$enable_shared" = yes && test "$GCC" = yes; then
20238 case $archive_cmds in
20239 *'~'*)
20240 # FIXME: we may have to deal with multi-command sequences.
20242 '$CC '*)
20243 # Test whether the compiler implicitly links with -lc since on some
20244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20245 # to ld, don't add -lc before -lgcc.
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20247 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20248 if ${lt_cv_archive_cmds_need_lc+:} false; then :
20249 $as_echo_n "(cached) " >&6
20250 else
20251 $RM conftest*
20252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20255 (eval $ac_compile) 2>&5
20256 ac_status=$?
20257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20258 test $ac_status = 0; } 2>conftest.err; then
20259 soname=conftest
20260 lib=conftest
20261 libobjs=conftest.$ac_objext
20262 deplibs=
20263 wl=$lt_prog_compiler_wl
20264 pic_flag=$lt_prog_compiler_pic
20265 compiler_flags=-v
20266 linker_flags=-v
20267 verstring=
20268 output_objdir=.
20269 libname=conftest
20270 lt_save_allow_undefined_flag=$allow_undefined_flag
20271 allow_undefined_flag=
20272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20273 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20274 ac_status=$?
20275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20276 test $ac_status = 0; }
20277 then
20278 lt_cv_archive_cmds_need_lc=no
20279 else
20280 lt_cv_archive_cmds_need_lc=yes
20282 allow_undefined_flag=$lt_save_allow_undefined_flag
20283 else
20284 cat conftest.err 1>&5
20286 $RM conftest*
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20290 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
20291 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20293 esac
20296 esac
20454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20457 if test "$GCC" = yes; then
20458 case $host_os in
20459 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20460 *) lt_awk_arg="/^libraries:/" ;;
20461 esac
20462 case $host_os in
20463 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
20464 *) lt_sed_strip_eq="s,=/,/,g" ;;
20465 esac
20466 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20467 case $lt_search_path_spec in
20468 *\;*)
20469 # if the path contains ";" then we assume it to be the separator
20470 # otherwise default to the standard path separator (i.e. ":") - it is
20471 # assumed that no part of a normal pathname contains ";" but that should
20472 # okay in the real world where ";" in dirpaths is itself problematic.
20473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20478 esac
20479 # Ok, now we have the path, separated by spaces, we can step through it
20480 # and add multilib dir if necessary.
20481 lt_tmp_lt_search_path_spec=
20482 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20483 for lt_sys_path in $lt_search_path_spec; do
20484 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20486 else
20487 test -d "$lt_sys_path" && \
20488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20490 done
20491 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20492 BEGIN {RS=" "; FS="/|\n";} {
20493 lt_foo="";
20494 lt_count=0;
20495 for (lt_i = NF; lt_i > 0; lt_i--) {
20496 if ($lt_i != "" && $lt_i != ".") {
20497 if ($lt_i == "..") {
20498 lt_count++;
20499 } else {
20500 if (lt_count == 0) {
20501 lt_foo="/" $lt_i lt_foo;
20502 } else {
20503 lt_count--;
20508 if (lt_foo != "") { lt_freq[lt_foo]++; }
20509 if (lt_freq[lt_foo] == 1) { print lt_foo; }
20511 # AWK program above erroneously prepends '/' to C:/dos/paths
20512 # for these hosts.
20513 case $host_os in
20514 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20515 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
20516 esac
20517 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20518 else
20519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20521 library_names_spec=
20522 libname_spec='lib$name'
20523 soname_spec=
20524 shrext_cmds=".so"
20525 postinstall_cmds=
20526 postuninstall_cmds=
20527 finish_cmds=
20528 finish_eval=
20529 shlibpath_var=
20530 shlibpath_overrides_runpath=unknown
20531 version_type=none
20532 dynamic_linker="$host_os ld.so"
20533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20534 need_lib_prefix=unknown
20535 hardcode_into_libs=no
20537 # when you set need_version to no, make sure it does not cause -set_version
20538 # flags to be left without arguments
20539 need_version=unknown
20541 case $host_os in
20542 aix3*)
20543 version_type=linux
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20545 shlibpath_var=LIBPATH
20547 # AIX 3 has no versioning support, so we append a major version to the name.
20548 soname_spec='${libname}${release}${shared_ext}$major'
20551 aix[4-9]*)
20552 version_type=linux
20553 need_lib_prefix=no
20554 need_version=no
20555 hardcode_into_libs=yes
20556 if test "$host_cpu" = ia64; then
20557 # AIX 5 supports IA64
20558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20559 shlibpath_var=LD_LIBRARY_PATH
20560 else
20561 # With GCC up to 2.95.x, collect2 would create an import file
20562 # for dependence libraries. The import file would start with
20563 # the line `#! .'. This would cause the generated library to
20564 # depend on `.', always an invalid library. This was fixed in
20565 # development snapshots of GCC prior to 3.0.
20566 case $host_os in
20567 aix4 | aix4.[01] | aix4.[01].*)
20568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20569 echo ' yes '
20570 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20572 else
20573 can_build_shared=no
20576 esac
20577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20578 # soname into executable. Probably we can add versioning support to
20579 # collect2, so additional links can be useful in future.
20580 if test "$aix_use_runtimelinking" = yes; then
20581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20582 # instead of lib<name>.a to let people know that these are not
20583 # typical AIX shared libraries.
20584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20585 else
20586 # We preserve .a as extension for shared libraries through AIX4.2
20587 # and later when we are not doing run time linking.
20588 library_names_spec='${libname}${release}.a $libname.a'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20591 shlibpath_var=LIBPATH
20595 amigaos*)
20596 case $host_cpu in
20597 powerpc)
20598 # Since July 2007 AmigaOS4 officially supports .so libraries.
20599 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602 m68k)
20603 library_names_spec='$libname.ixlibrary $libname.a'
20604 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20605 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'
20607 esac
20610 beos*)
20611 library_names_spec='${libname}${shared_ext}'
20612 dynamic_linker="$host_os ld.so"
20613 shlibpath_var=LIBRARY_PATH
20616 bsdi[45]*)
20617 version_type=linux
20618 need_version=no
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20622 shlibpath_var=LD_LIBRARY_PATH
20623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20625 # the default ld.so.conf also contains /usr/contrib/lib and
20626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20627 # libtool to hard-code these into programs
20630 cygwin* | mingw* | pw32* | cegcc*)
20631 version_type=windows
20632 shrext_cmds=".dll"
20633 need_version=no
20634 need_lib_prefix=no
20636 case $GCC,$host_os in
20637 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20638 library_names_spec='$libname.dll.a'
20639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20640 postinstall_cmds='base_file=`basename \${file}`~
20641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20642 dldir=$destdir/`dirname \$dlpath`~
20643 test -d \$dldir || mkdir -p \$dldir~
20644 $install_prog $dir/$dlname \$dldir/$dlname~
20645 chmod a+x \$dldir/$dlname~
20646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20650 dlpath=$dir/\$dldll~
20651 $RM \$dlpath'
20652 shlibpath_overrides_runpath=yes
20654 case $host_os in
20655 cygwin*)
20656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
20661 mingw* | cegcc*)
20662 # MinGW DLLs use traditional 'lib' prefix
20663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20665 pw32*)
20666 # pw32 DLLs use 'pw' prefix rather than 'lib'
20667 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20669 esac
20673 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20675 esac
20676 dynamic_linker='Win32 ld.exe'
20677 # FIXME: first we should search . and the directory the executable is in
20678 shlibpath_var=PATH
20681 darwin* | rhapsody*)
20682 dynamic_linker="$host_os dyld"
20683 version_type=darwin
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20687 soname_spec='${libname}${release}${major}$shared_ext'
20688 shlibpath_overrides_runpath=yes
20689 shlibpath_var=DYLD_LIBRARY_PATH
20690 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20696 dgux*)
20697 version_type=linux
20698 need_lib_prefix=no
20699 need_version=no
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 shlibpath_var=LD_LIBRARY_PATH
20705 freebsd* | dragonfly*)
20706 # DragonFly does not have aout. When/if they implement a new
20707 # versioning mechanism, adjust this.
20708 if test -x /usr/bin/objformat; then
20709 objformat=`/usr/bin/objformat`
20710 else
20711 case $host_os in
20712 freebsd[23].*) objformat=aout ;;
20713 *) objformat=elf ;;
20714 esac
20716 version_type=freebsd-$objformat
20717 case $version_type in
20718 freebsd-elf*)
20719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20720 need_version=no
20721 need_lib_prefix=no
20723 freebsd-*)
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20725 need_version=yes
20727 esac
20728 shlibpath_var=LD_LIBRARY_PATH
20729 case $host_os in
20730 freebsd2.*)
20731 shlibpath_overrides_runpath=yes
20733 freebsd3.[01]* | freebsdelf3.[01]*)
20734 shlibpath_overrides_runpath=yes
20735 hardcode_into_libs=yes
20737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20739 shlibpath_overrides_runpath=no
20740 hardcode_into_libs=yes
20742 *) # from 4.6 on, and DragonFly
20743 shlibpath_overrides_runpath=yes
20744 hardcode_into_libs=yes
20746 esac
20749 haiku*)
20750 version_type=linux
20751 need_lib_prefix=no
20752 need_version=no
20753 dynamic_linker="$host_os runtime_loader"
20754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20755 soname_spec='${libname}${release}${shared_ext}$major'
20756 shlibpath_var=LIBRARY_PATH
20757 shlibpath_overrides_runpath=yes
20758 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20759 hardcode_into_libs=yes
20762 hpux9* | hpux10* | hpux11*)
20763 # Give a soname corresponding to the major version so that dld.sl refuses to
20764 # link against other versions.
20765 version_type=sunos
20766 need_lib_prefix=no
20767 need_version=no
20768 case $host_cpu in
20769 ia64*)
20770 shrext_cmds='.so'
20771 hardcode_into_libs=yes
20772 dynamic_linker="$host_os dld.so"
20773 shlibpath_var=LD_LIBRARY_PATH
20774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 if test "X$HPUX_IA64_MODE" = X32; then
20778 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20779 else
20780 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20784 hppa*64*)
20785 shrext_cmds='.sl'
20786 hardcode_into_libs=yes
20787 dynamic_linker="$host_os dld.sl"
20788 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20796 shrext_cmds='.sl'
20797 dynamic_linker="$host_os dld.sl"
20798 shlibpath_var=SHLIB_PATH
20799 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20803 esac
20804 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20805 postinstall_cmds='chmod 555 $lib'
20806 # or fails outright, so override atomically:
20807 install_override_mode=555
20810 interix[3-9]*)
20811 version_type=linux
20812 need_lib_prefix=no
20813 need_version=no
20814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20815 soname_spec='${libname}${release}${shared_ext}$major'
20816 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 shlibpath_overrides_runpath=no
20819 hardcode_into_libs=yes
20822 irix5* | irix6* | nonstopux*)
20823 case $host_os in
20824 nonstopux*) version_type=nonstopux ;;
20826 if test "$lt_cv_prog_gnu_ld" = yes; then
20827 version_type=linux
20828 else
20829 version_type=irix
20830 fi ;;
20831 esac
20832 need_lib_prefix=no
20833 need_version=no
20834 soname_spec='${libname}${release}${shared_ext}$major'
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20836 case $host_os in
20837 irix5* | nonstopux*)
20838 libsuff= shlibsuff=
20841 case $LD in # libtool.m4 will add one of these switches to LD
20842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20843 libsuff= shlibsuff= libmagic=32-bit;;
20844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20845 libsuff=32 shlibsuff=N32 libmagic=N32;;
20846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20847 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20848 *) libsuff= shlibsuff= libmagic=never-match;;
20849 esac
20851 esac
20852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20853 shlibpath_overrides_runpath=no
20854 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20855 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20856 hardcode_into_libs=yes
20859 # No shared lib support for Linux oldld, aout, or coff.
20860 linux*oldld* | linux*aout* | linux*coff*)
20861 dynamic_linker=no
20864 # This must be Linux ELF.
20866 # uclinux* changes (here and below) have been submitted to the libtool
20867 # project, but have not yet been accepted: they are GCC-local changes
20868 # for the time being. (See
20869 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
20870 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
20871 version_type=linux
20872 need_lib_prefix=no
20873 need_version=no
20874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20875 soname_spec='${libname}${release}${shared_ext}$major'
20876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20877 shlibpath_var=LD_LIBRARY_PATH
20878 shlibpath_overrides_runpath=no
20880 # Some binutils ld are patched to set DT_RUNPATH
20881 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20882 $as_echo_n "(cached) " >&6
20883 else
20884 lt_cv_shlibpath_overrides_runpath=no
20885 save_LDFLAGS=$LDFLAGS
20886 save_libdir=$libdir
20887 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20888 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20890 /* end confdefs.h. */
20893 main ()
20897 return 0;
20899 _ACEOF
20900 if ac_fn_c_try_link "$LINENO"; then :
20901 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20902 lt_cv_shlibpath_overrides_runpath=yes
20905 rm -f core conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20907 LDFLAGS=$save_LDFLAGS
20908 libdir=$save_libdir
20912 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20914 # This implies no fast_install, which is unacceptable.
20915 # Some rework will be needed to allow for fast_install
20916 # before this can be enabled.
20917 hardcode_into_libs=yes
20919 # Append ld.so.conf contents to the search path
20920 if test -f /etc/ld.so.conf; then
20921 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' ' '`
20922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20925 # We used to test for /lib/ld.so.1 and disable shared libraries on
20926 # powerpc, because MkLinux only supported shared libraries with the
20927 # GNU dynamic linker. Since this was broken with cross compilers,
20928 # most powerpc-linux boxes support dynamic linking these days and
20929 # people can always --disable-shared, the test was removed, and we
20930 # assume the GNU/Linux dynamic linker is in use.
20931 dynamic_linker='GNU/Linux ld.so'
20934 netbsd*)
20935 version_type=sunos
20936 need_lib_prefix=no
20937 need_version=no
20938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20941 dynamic_linker='NetBSD (a.out) ld.so'
20942 else
20943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 dynamic_linker='NetBSD ld.elf_so'
20947 shlibpath_var=LD_LIBRARY_PATH
20948 shlibpath_overrides_runpath=yes
20949 hardcode_into_libs=yes
20952 newsos6)
20953 version_type=linux
20954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20955 shlibpath_var=LD_LIBRARY_PATH
20956 shlibpath_overrides_runpath=yes
20959 *nto* | *qnx*)
20960 version_type=qnx
20961 need_lib_prefix=no
20962 need_version=no
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath=no
20967 hardcode_into_libs=yes
20968 dynamic_linker='ldqnx.so'
20971 openbsd*)
20972 version_type=sunos
20973 sys_lib_dlsearch_path_spec="/usr/lib"
20974 need_lib_prefix=no
20975 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20976 case $host_os in
20977 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20978 *) need_version=no ;;
20979 esac
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20984 case $host_os in
20985 openbsd2.[89] | openbsd2.[89].*)
20986 shlibpath_overrides_runpath=no
20989 shlibpath_overrides_runpath=yes
20991 esac
20992 else
20993 shlibpath_overrides_runpath=yes
20997 os2*)
20998 libname_spec='$name'
20999 shrext_cmds=".dll"
21000 need_lib_prefix=no
21001 library_names_spec='$libname${shared_ext} $libname.a'
21002 dynamic_linker='OS/2 ld.exe'
21003 shlibpath_var=LIBPATH
21006 osf3* | osf4* | osf5*)
21007 version_type=osf
21008 need_lib_prefix=no
21009 need_version=no
21010 soname_spec='${libname}${release}${shared_ext}$major'
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 shlibpath_var=LD_LIBRARY_PATH
21013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21017 rdos*)
21018 dynamic_linker=no
21021 solaris*)
21022 version_type=linux
21023 need_lib_prefix=no
21024 need_version=no
21025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21026 soname_spec='${libname}${release}${shared_ext}$major'
21027 shlibpath_var=LD_LIBRARY_PATH
21028 shlibpath_overrides_runpath=yes
21029 hardcode_into_libs=yes
21030 # ldd complains unless libraries are executable
21031 postinstall_cmds='chmod +x $lib'
21034 sunos4*)
21035 version_type=sunos
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath=yes
21040 if test "$with_gnu_ld" = yes; then
21041 need_lib_prefix=no
21043 need_version=yes
21046 sysv4 | sysv4.3*)
21047 version_type=linux
21048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049 soname_spec='${libname}${release}${shared_ext}$major'
21050 shlibpath_var=LD_LIBRARY_PATH
21051 case $host_vendor in
21052 sni)
21053 shlibpath_overrides_runpath=no
21054 need_lib_prefix=no
21055 runpath_var=LD_RUN_PATH
21057 siemens)
21058 need_lib_prefix=no
21060 motorola)
21061 need_lib_prefix=no
21062 need_version=no
21063 shlibpath_overrides_runpath=no
21064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21066 esac
21069 sysv4*MP*)
21070 if test -d /usr/nec ;then
21071 version_type=linux
21072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21073 soname_spec='$libname${shared_ext}.$major'
21074 shlibpath_var=LD_LIBRARY_PATH
21078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21079 version_type=freebsd-elf
21080 need_lib_prefix=no
21081 need_version=no
21082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21083 soname_spec='${libname}${release}${shared_ext}$major'
21084 shlibpath_var=LD_LIBRARY_PATH
21085 shlibpath_overrides_runpath=yes
21086 hardcode_into_libs=yes
21087 if test "$with_gnu_ld" = yes; then
21088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21089 else
21090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21091 case $host_os in
21092 sco3.2v5*)
21093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21095 esac
21097 sys_lib_dlsearch_path_spec='/usr/lib'
21100 tpf*)
21101 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21102 version_type=linux
21103 need_lib_prefix=no
21104 need_version=no
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21106 shlibpath_var=LD_LIBRARY_PATH
21107 shlibpath_overrides_runpath=no
21108 hardcode_into_libs=yes
21111 uts4*)
21112 version_type=linux
21113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21114 soname_spec='${libname}${release}${shared_ext}$major'
21115 shlibpath_var=LD_LIBRARY_PATH
21118 # Shared libraries for VwWorks, >= 7 only at this stage
21119 # and (fpic) still incompatible with "large" code models
21120 # in a few configurations. Only for RTP mode in any case,
21121 # and upon explicit request at configure time.
21122 vxworks7*)
21123 dynamic_linker=no
21124 case ${with_multisubdir}-${enable_shared} in
21125 *large*)
21127 *mrtp*-yes)
21128 version_type=linux
21129 need_lib_prefix=no
21130 need_version=no
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21132 soname_spec='${libname}${release}${shared_ext}$major'
21133 dynamic_linker="$host_os module_loader"
21135 esac
21138 dynamic_linker=no
21140 esac
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21142 $as_echo "$dynamic_linker" >&6; }
21143 test "$dynamic_linker" = no && can_build_shared=no
21145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21146 if test "$GCC" = yes; then
21147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21150 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21249 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21250 hardcode_action=
21251 if test -n "$hardcode_libdir_flag_spec" ||
21252 test -n "$runpath_var" ||
21253 test "X$hardcode_automatic" = "Xyes" ; then
21255 # We can hardcode non-existent directories.
21256 if test "$hardcode_direct" != no &&
21257 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21258 # have to relink, otherwise we might link with an installed library
21259 # when we should be linking with a yet-to-be-installed one
21260 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
21261 test "$hardcode_minus_L" != no; then
21262 # Linking always hardcodes the temporary library directory.
21263 hardcode_action=relink
21264 else
21265 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21266 hardcode_action=immediate
21268 else
21269 # We cannot hardcode anything, or else we can only hardcode existing
21270 # directories.
21271 hardcode_action=unsupported
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
21274 $as_echo "$hardcode_action" >&6; }
21276 if test "$hardcode_action" = relink ||
21277 test "$inherit_rpath" = yes; then
21278 # Fast installation is not supported
21279 enable_fast_install=no
21280 elif test "$shlibpath_overrides_runpath" = yes ||
21281 test "$enable_shared" = no; then
21282 # Fast installation is not necessary
21283 enable_fast_install=needless
21291 if test "x$enable_dlopen" != xyes; then
21292 enable_dlopen=unknown
21293 enable_dlopen_self=unknown
21294 enable_dlopen_self_static=unknown
21295 else
21296 lt_cv_dlopen=no
21297 lt_cv_dlopen_libs=
21299 case $host_os in
21300 beos*)
21301 lt_cv_dlopen="load_add_on"
21302 lt_cv_dlopen_libs=
21303 lt_cv_dlopen_self=yes
21306 mingw* | pw32* | cegcc*)
21307 lt_cv_dlopen="LoadLibrary"
21308 lt_cv_dlopen_libs=
21311 cygwin*)
21312 lt_cv_dlopen="dlopen"
21313 lt_cv_dlopen_libs=
21316 darwin*)
21317 # if libdl is installed we need to link against it
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21320 if ${ac_cv_lib_dl_dlopen+:} false; then :
21321 $as_echo_n "(cached) " >&6
21322 else
21323 ac_check_lib_save_LIBS=$LIBS
21324 LIBS="-ldl $LIBS"
21325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h. */
21328 /* Override any GCC internal prototype to avoid an error.
21329 Use char because int might match the return type of a GCC
21330 builtin and then its argument prototype would still apply. */
21331 #ifdef __cplusplus
21332 extern "C"
21333 #endif
21334 char dlopen ();
21336 main ()
21338 return dlopen ();
21340 return 0;
21342 _ACEOF
21343 if ac_fn_c_try_link "$LINENO"; then :
21344 ac_cv_lib_dl_dlopen=yes
21345 else
21346 ac_cv_lib_dl_dlopen=no
21348 rm -f core conftest.err conftest.$ac_objext \
21349 conftest$ac_exeext conftest.$ac_ext
21350 LIBS=$ac_check_lib_save_LIBS
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21354 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21356 else
21358 lt_cv_dlopen="dyld"
21359 lt_cv_dlopen_libs=
21360 lt_cv_dlopen_self=yes
21367 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
21368 if test "x$ac_cv_func_shl_load" = xyes; then :
21369 lt_cv_dlopen="shl_load"
21370 else
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
21372 $as_echo_n "checking for shl_load in -ldld... " >&6; }
21373 if ${ac_cv_lib_dld_shl_load+:} false; then :
21374 $as_echo_n "(cached) " >&6
21375 else
21376 ac_check_lib_save_LIBS=$LIBS
21377 LIBS="-ldld $LIBS"
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21381 /* Override any GCC internal prototype to avoid an error.
21382 Use char because int might match the return type of a GCC
21383 builtin and then its argument prototype would still apply. */
21384 #ifdef __cplusplus
21385 extern "C"
21386 #endif
21387 char shl_load ();
21389 main ()
21391 return shl_load ();
21393 return 0;
21395 _ACEOF
21396 if ac_fn_c_try_link "$LINENO"; then :
21397 ac_cv_lib_dld_shl_load=yes
21398 else
21399 ac_cv_lib_dld_shl_load=no
21401 rm -f core conftest.err conftest.$ac_objext \
21402 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
21406 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21407 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
21408 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
21409 else
21410 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
21411 if test "x$ac_cv_func_dlopen" = xyes; then :
21412 lt_cv_dlopen="dlopen"
21413 else
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
21415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
21416 if ${ac_cv_lib_dl_dlopen+:} false; then :
21417 $as_echo_n "(cached) " >&6
21418 else
21419 ac_check_lib_save_LIBS=$LIBS
21420 LIBS="-ldl $LIBS"
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21424 /* Override any GCC internal prototype to avoid an error.
21425 Use char because int might match the return type of a GCC
21426 builtin and then its argument prototype would still apply. */
21427 #ifdef __cplusplus
21428 extern "C"
21429 #endif
21430 char dlopen ();
21432 main ()
21434 return dlopen ();
21436 return 0;
21438 _ACEOF
21439 if ac_fn_c_try_link "$LINENO"; then :
21440 ac_cv_lib_dl_dlopen=yes
21441 else
21442 ac_cv_lib_dl_dlopen=no
21444 rm -f core conftest.err conftest.$ac_objext \
21445 conftest$ac_exeext conftest.$ac_ext
21446 LIBS=$ac_check_lib_save_LIBS
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
21449 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21450 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
21451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21452 else
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
21454 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
21455 if ${ac_cv_lib_svld_dlopen+:} false; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21458 ac_check_lib_save_LIBS=$LIBS
21459 LIBS="-lsvld $LIBS"
21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21463 /* Override any GCC internal prototype to avoid an error.
21464 Use char because int might match the return type of a GCC
21465 builtin and then its argument prototype would still apply. */
21466 #ifdef __cplusplus
21467 extern "C"
21468 #endif
21469 char dlopen ();
21471 main ()
21473 return dlopen ();
21475 return 0;
21477 _ACEOF
21478 if ac_fn_c_try_link "$LINENO"; then :
21479 ac_cv_lib_svld_dlopen=yes
21480 else
21481 ac_cv_lib_svld_dlopen=no
21483 rm -f core conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext conftest.$ac_ext
21485 LIBS=$ac_check_lib_save_LIBS
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
21488 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21489 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
21490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
21493 $as_echo_n "checking for dld_link in -ldld... " >&6; }
21494 if ${ac_cv_lib_dld_dld_link+:} false; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21497 ac_check_lib_save_LIBS=$LIBS
21498 LIBS="-ldld $LIBS"
21499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500 /* end confdefs.h. */
21502 /* Override any GCC internal prototype to avoid an error.
21503 Use char because int might match the return type of a GCC
21504 builtin and then its argument prototype would still apply. */
21505 #ifdef __cplusplus
21506 extern "C"
21507 #endif
21508 char dld_link ();
21510 main ()
21512 return dld_link ();
21514 return 0;
21516 _ACEOF
21517 if ac_fn_c_try_link "$LINENO"; then :
21518 ac_cv_lib_dld_dld_link=yes
21519 else
21520 ac_cv_lib_dld_dld_link=no
21522 rm -f core conftest.err conftest.$ac_objext \
21523 conftest$ac_exeext conftest.$ac_ext
21524 LIBS=$ac_check_lib_save_LIBS
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21527 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21528 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
21529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21548 esac
21550 if test "x$lt_cv_dlopen" != xno; then
21551 enable_dlopen=yes
21552 else
21553 enable_dlopen=no
21556 case $lt_cv_dlopen in
21557 dlopen)
21558 save_CPPFLAGS="$CPPFLAGS"
21559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21561 save_LDFLAGS="$LDFLAGS"
21562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21564 save_LIBS="$LIBS"
21565 LIBS="$lt_cv_dlopen_libs $LIBS"
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
21568 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
21569 if ${lt_cv_dlopen_self+:} false; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572 if test "$cross_compiling" = yes; then :
21573 lt_cv_dlopen_self=cross
21574 else
21575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21576 lt_status=$lt_dlunknown
21577 cat > conftest.$ac_ext <<_LT_EOF
21578 #line 21578 "configure"
21579 #include "confdefs.h"
21581 #if HAVE_DLFCN_H
21582 #include <dlfcn.h>
21583 #endif
21585 #include <stdio.h>
21587 #ifdef RTLD_GLOBAL
21588 # define LT_DLGLOBAL RTLD_GLOBAL
21589 #else
21590 # ifdef DL_GLOBAL
21591 # define LT_DLGLOBAL DL_GLOBAL
21592 # else
21593 # define LT_DLGLOBAL 0
21594 # endif
21595 #endif
21597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21598 find out it does not work in some platform. */
21599 #ifndef LT_DLLAZY_OR_NOW
21600 # ifdef RTLD_LAZY
21601 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21602 # else
21603 # ifdef DL_LAZY
21604 # define LT_DLLAZY_OR_NOW DL_LAZY
21605 # else
21606 # ifdef RTLD_NOW
21607 # define LT_DLLAZY_OR_NOW RTLD_NOW
21608 # else
21609 # ifdef DL_NOW
21610 # define LT_DLLAZY_OR_NOW DL_NOW
21611 # else
21612 # define LT_DLLAZY_OR_NOW 0
21613 # endif
21614 # endif
21615 # endif
21616 # endif
21617 #endif
21619 /* When -fvisbility=hidden is used, assume the code has been annotated
21620 correspondingly for the symbols needed. */
21621 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21622 void fnord () __attribute__((visibility("default")));
21623 #endif
21625 void fnord () { int i=42; }
21626 int main ()
21628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21629 int status = $lt_dlunknown;
21631 if (self)
21633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21634 else
21636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21637 else puts (dlerror ());
21639 /* dlclose (self); */
21641 else
21642 puts (dlerror ());
21644 return status;
21646 _LT_EOF
21647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21648 (eval $ac_link) 2>&5
21649 ac_status=$?
21650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21652 (./conftest; exit; ) >&5 2>/dev/null
21653 lt_status=$?
21654 case x$lt_status in
21655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21658 esac
21659 else :
21660 # compilation failed
21661 lt_cv_dlopen_self=no
21664 rm -fr conftest*
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
21669 $as_echo "$lt_cv_dlopen_self" >&6; }
21671 if test "x$lt_cv_dlopen_self" = xyes; then
21672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
21674 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21675 if ${lt_cv_dlopen_self_static+:} false; then :
21676 $as_echo_n "(cached) " >&6
21677 else
21678 if test "$cross_compiling" = yes; then :
21679 lt_cv_dlopen_self_static=cross
21680 else
21681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21682 lt_status=$lt_dlunknown
21683 cat > conftest.$ac_ext <<_LT_EOF
21684 #line 21684 "configure"
21685 #include "confdefs.h"
21687 #if HAVE_DLFCN_H
21688 #include <dlfcn.h>
21689 #endif
21691 #include <stdio.h>
21693 #ifdef RTLD_GLOBAL
21694 # define LT_DLGLOBAL RTLD_GLOBAL
21695 #else
21696 # ifdef DL_GLOBAL
21697 # define LT_DLGLOBAL DL_GLOBAL
21698 # else
21699 # define LT_DLGLOBAL 0
21700 # endif
21701 #endif
21703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21704 find out it does not work in some platform. */
21705 #ifndef LT_DLLAZY_OR_NOW
21706 # ifdef RTLD_LAZY
21707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21708 # else
21709 # ifdef DL_LAZY
21710 # define LT_DLLAZY_OR_NOW DL_LAZY
21711 # else
21712 # ifdef RTLD_NOW
21713 # define LT_DLLAZY_OR_NOW RTLD_NOW
21714 # else
21715 # ifdef DL_NOW
21716 # define LT_DLLAZY_OR_NOW DL_NOW
21717 # else
21718 # define LT_DLLAZY_OR_NOW 0
21719 # endif
21720 # endif
21721 # endif
21722 # endif
21723 #endif
21725 /* When -fvisbility=hidden is used, assume the code has been annotated
21726 correspondingly for the symbols needed. */
21727 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
21728 void fnord () __attribute__((visibility("default")));
21729 #endif
21731 void fnord () { int i=42; }
21732 int main ()
21734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21735 int status = $lt_dlunknown;
21737 if (self)
21739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21740 else
21742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21743 else puts (dlerror ());
21745 /* dlclose (self); */
21747 else
21748 puts (dlerror ());
21750 return status;
21752 _LT_EOF
21753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21754 (eval $ac_link) 2>&5
21755 ac_status=$?
21756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21758 (./conftest; exit; ) >&5 2>/dev/null
21759 lt_status=$?
21760 case x$lt_status in
21761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21764 esac
21765 else :
21766 # compilation failed
21767 lt_cv_dlopen_self_static=no
21770 rm -fr conftest*
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
21775 $as_echo "$lt_cv_dlopen_self_static" >&6; }
21778 CPPFLAGS="$save_CPPFLAGS"
21779 LDFLAGS="$save_LDFLAGS"
21780 LIBS="$save_LIBS"
21782 esac
21784 case $lt_cv_dlopen_self in
21785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21786 *) enable_dlopen_self=unknown ;;
21787 esac
21789 case $lt_cv_dlopen_self_static in
21790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21791 *) enable_dlopen_self_static=unknown ;;
21792 esac
21811 striplib=
21812 old_striplib=
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
21814 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
21815 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21819 $as_echo "yes" >&6; }
21820 else
21821 # FIXME - insert some real tests, host_os isn't really good enough
21822 case $host_os in
21823 darwin*)
21824 if test -n "$STRIP" ; then
21825 striplib="$STRIP -x"
21826 old_striplib="$STRIP -S"
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21828 $as_echo "yes" >&6; }
21829 else
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21836 $as_echo "no" >&6; }
21838 esac
21852 # Report which library types will actually be built
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21854 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21856 $as_echo "$can_build_shared" >&6; }
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21859 $as_echo_n "checking whether to build shared libraries... " >&6; }
21860 test "$can_build_shared" = "no" && enable_shared=no
21862 # On AIX, shared libraries and static libraries use the same namespace, and
21863 # are all built from PIC.
21864 case $host_os in
21865 aix3*)
21866 test "$enable_shared" = yes && enable_static=no
21867 if test -n "$RANLIB"; then
21868 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21869 postinstall_cmds='$RANLIB $lib'
21873 aix[4-9]*)
21874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21875 test "$enable_shared" = yes && enable_static=no
21878 esac
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21880 $as_echo "$enable_shared" >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21883 $as_echo_n "checking whether to build static libraries... " >&6; }
21884 # Make sure either enable_shared or enable_static is yes.
21885 test "$enable_shared" = yes || enable_static=yes
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21887 $as_echo "$enable_static" >&6; }
21893 ac_ext=cpp
21894 ac_cpp='$CXXCPP $CPPFLAGS'
21895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21899 CC="$lt_save_CC"
21901 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21902 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21903 (test "X$CXX" != "Xg++"))) ; then
21904 ac_ext=cpp
21905 ac_cpp='$CXXCPP $CPPFLAGS'
21906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
21910 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
21911 if test -z "$CXXCPP"; then
21912 if ${ac_cv_prog_CXXCPP+:} false; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 # Double quotes because CXXCPP needs to be expanded
21916 for CXXCPP in "$CXX -E" "/lib/cpp"
21918 ac_preproc_ok=false
21919 for ac_cxx_preproc_warn_flag in '' yes
21921 # Use a header file that comes with gcc, so configuring glibc
21922 # with a fresh cross-compiler works.
21923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21924 # <limits.h> exists even on freestanding compilers.
21925 # On the NeXT, cc -E runs the code through the compiler's parser,
21926 # not just through cpp. "Syntax error" is here to catch this case.
21927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21928 /* end confdefs.h. */
21929 #ifdef __STDC__
21930 # include <limits.h>
21931 #else
21932 # include <assert.h>
21933 #endif
21934 Syntax error
21935 _ACEOF
21936 if ac_fn_cxx_try_cpp "$LINENO"; then :
21938 else
21939 # Broken: fails on valid input.
21940 continue
21942 rm -f conftest.err conftest.i conftest.$ac_ext
21944 # OK, works on sane cases. Now check whether nonexistent headers
21945 # can be detected and how.
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21948 #include <ac_nonexistent.h>
21949 _ACEOF
21950 if ac_fn_cxx_try_cpp "$LINENO"; then :
21951 # Broken: success on invalid input.
21952 continue
21953 else
21954 # Passes both tests.
21955 ac_preproc_ok=:
21956 break
21958 rm -f conftest.err conftest.i conftest.$ac_ext
21960 done
21961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21962 rm -f conftest.i conftest.err conftest.$ac_ext
21963 if $ac_preproc_ok; then :
21964 break
21967 done
21968 ac_cv_prog_CXXCPP=$CXXCPP
21971 CXXCPP=$ac_cv_prog_CXXCPP
21972 else
21973 ac_cv_prog_CXXCPP=$CXXCPP
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
21976 $as_echo "$CXXCPP" >&6; }
21977 ac_preproc_ok=false
21978 for ac_cxx_preproc_warn_flag in '' yes
21980 # Use a header file that comes with gcc, so configuring glibc
21981 # with a fresh cross-compiler works.
21982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21983 # <limits.h> exists even on freestanding compilers.
21984 # On the NeXT, cc -E runs the code through the compiler's parser,
21985 # not just through cpp. "Syntax error" is here to catch this case.
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21988 #ifdef __STDC__
21989 # include <limits.h>
21990 #else
21991 # include <assert.h>
21992 #endif
21993 Syntax error
21994 _ACEOF
21995 if ac_fn_cxx_try_cpp "$LINENO"; then :
21997 else
21998 # Broken: fails on valid input.
21999 continue
22001 rm -f conftest.err conftest.i conftest.$ac_ext
22003 # OK, works on sane cases. Now check whether nonexistent headers
22004 # can be detected and how.
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22007 #include <ac_nonexistent.h>
22008 _ACEOF
22009 if ac_fn_cxx_try_cpp "$LINENO"; then :
22010 # Broken: success on invalid input.
22011 continue
22012 else
22013 # Passes both tests.
22014 ac_preproc_ok=:
22015 break
22017 rm -f conftest.err conftest.i conftest.$ac_ext
22019 done
22020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22021 rm -f conftest.i conftest.err conftest.$ac_ext
22022 if $ac_preproc_ok; then :
22024 else
22025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22027 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22028 See \`config.log' for more details" "$LINENO" 5; }
22031 ac_ext=cpp
22032 ac_cpp='$CXXCPP $CPPFLAGS'
22033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22037 else
22038 _lt_caught_CXX_error=yes
22041 ac_ext=cpp
22042 ac_cpp='$CXXCPP $CPPFLAGS'
22043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22047 archive_cmds_need_lc_CXX=no
22048 allow_undefined_flag_CXX=
22049 always_export_symbols_CXX=no
22050 archive_expsym_cmds_CXX=
22051 compiler_needs_object_CXX=no
22052 export_dynamic_flag_spec_CXX=
22053 hardcode_direct_CXX=no
22054 hardcode_direct_absolute_CXX=no
22055 hardcode_libdir_flag_spec_CXX=
22056 hardcode_libdir_flag_spec_ld_CXX=
22057 hardcode_libdir_separator_CXX=
22058 hardcode_minus_L_CXX=no
22059 hardcode_shlibpath_var_CXX=unsupported
22060 hardcode_automatic_CXX=no
22061 inherit_rpath_CXX=no
22062 module_cmds_CXX=
22063 module_expsym_cmds_CXX=
22064 link_all_deplibs_CXX=unknown
22065 old_archive_cmds_CXX=$old_archive_cmds
22066 reload_flag_CXX=$reload_flag
22067 reload_cmds_CXX=$reload_cmds
22068 no_undefined_flag_CXX=
22069 whole_archive_flag_spec_CXX=
22070 enable_shared_with_static_runtimes_CXX=no
22072 # Source file extension for C++ test sources.
22073 ac_ext=cpp
22075 # Object file extension for compiled C++ test sources.
22076 objext=o
22077 objext_CXX=$objext
22079 # No sense in running all these tests if we already determined that
22080 # the CXX compiler isn't working. Some variables (like enable_shared)
22081 # are currently assumed to apply to all compilers on this platform,
22082 # and will be corrupted by setting them based on a non-working compiler.
22083 if test "$_lt_caught_CXX_error" != yes; then
22084 # Code to be used in simple compile tests
22085 lt_simple_compile_test_code="int some_variable = 0;"
22087 # Code to be used in simple link tests
22088 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
22090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22097 # If no C compiler was specified, use CC.
22098 LTCC=${LTCC-"$CC"}
22100 # If no C compiler flags were specified, use CFLAGS.
22101 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22103 # Allow CC to be a program name with arguments.
22104 compiler=$CC
22107 # save warnings/boilerplate of simple test code
22108 ac_outfile=conftest.$ac_objext
22109 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22110 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22111 _lt_compiler_boilerplate=`cat conftest.err`
22112 $RM conftest*
22114 ac_outfile=conftest.$ac_objext
22115 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22116 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22117 _lt_linker_boilerplate=`cat conftest.err`
22118 $RM -r conftest*
22121 # Allow CC to be a program name with arguments.
22122 lt_save_CC=$CC
22123 lt_save_LD=$LD
22124 lt_save_GCC=$GCC
22125 GCC=$GXX
22126 lt_save_with_gnu_ld=$with_gnu_ld
22127 lt_save_path_LD=$lt_cv_path_LD
22128 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22129 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22130 else
22131 $as_unset lt_cv_prog_gnu_ld
22133 if test -n "${lt_cv_path_LDCXX+set}"; then
22134 lt_cv_path_LD=$lt_cv_path_LDCXX
22135 else
22136 $as_unset lt_cv_path_LD
22138 test -z "${LDCXX+set}" || LD=$LDCXX
22139 CC=${CXX-"c++"}
22140 compiler=$CC
22141 compiler_CXX=$CC
22142 for cc_temp in $compiler""; do
22143 case $cc_temp in
22144 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22145 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22146 \-*) ;;
22147 *) break;;
22148 esac
22149 done
22150 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22153 if test -n "$compiler"; then
22154 # We don't want -fno-exception when compiling C++ code, so set the
22155 # no_builtin_flag separately
22156 if test "$GXX" = yes; then
22157 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22158 else
22159 lt_prog_compiler_no_builtin_flag_CXX=
22162 if test "$GXX" = yes; then
22163 # Set up default GNU C++ configuration
22167 # Check whether --with-gnu-ld was given.
22168 if test "${with_gnu_ld+set}" = set; then :
22169 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22170 else
22171 with_gnu_ld=no
22174 ac_prog=ld
22175 if test "$GCC" = yes; then
22176 # Check if gcc -print-prog-name=ld gives a path.
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22178 $as_echo_n "checking for ld used by $CC... " >&6; }
22179 case $host in
22180 *-*-mingw*)
22181 # gcc leaves a trailing carriage return which upsets mingw
22182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22185 esac
22186 case $ac_prog in
22187 # Accept absolute paths.
22188 [\\/]* | ?:[\\/]*)
22189 re_direlt='/[^/][^/]*/\.\./'
22190 # Canonicalize the pathname of ld
22191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22194 done
22195 test -z "$LD" && LD="$ac_prog"
22198 # If it fails, then pretend we aren't using GCC.
22199 ac_prog=ld
22202 # If it is relative, then search for the first ld in PATH.
22203 with_gnu_ld=unknown
22205 esac
22206 elif test "$with_gnu_ld" = yes; then
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22208 $as_echo_n "checking for GNU ld... " >&6; }
22209 else
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22211 $as_echo_n "checking for non-GNU ld... " >&6; }
22213 if ${lt_cv_path_LD+:} false; then :
22214 $as_echo_n "(cached) " >&6
22215 else
22216 if test -z "$LD"; then
22217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22218 for ac_dir in $PATH; do
22219 IFS="$lt_save_ifs"
22220 test -z "$ac_dir" && ac_dir=.
22221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22222 lt_cv_path_LD="$ac_dir/$ac_prog"
22223 # Check to see if the program is GNU ld. I'd rather use --version,
22224 # but apparently some variants of GNU ld only accept -v.
22225 # Break only if it was the GNU/non-GNU ld that we prefer.
22226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22227 *GNU* | *'with BFD'*)
22228 test "$with_gnu_ld" != no && break
22231 test "$with_gnu_ld" != yes && break
22233 esac
22235 done
22236 IFS="$lt_save_ifs"
22237 else
22238 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22242 LD="$lt_cv_path_LD"
22243 if test -n "$LD"; then
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22245 $as_echo "$LD" >&6; }
22246 else
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22248 $as_echo "no" >&6; }
22250 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22252 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22253 if ${lt_cv_prog_gnu_ld+:} false; then :
22254 $as_echo_n "(cached) " >&6
22255 else
22256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22257 case `$LD -v 2>&1 </dev/null` in
22258 *GNU* | *'with BFD'*)
22259 lt_cv_prog_gnu_ld=yes
22262 lt_cv_prog_gnu_ld=no
22264 esac
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22267 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22268 with_gnu_ld=$lt_cv_prog_gnu_ld
22276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
22277 # archiving commands below assume that GNU ld is being used.
22278 if test "$with_gnu_ld" = yes; then
22279 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22280 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'
22282 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22285 # If archive_cmds runs LD, not CC, wlarc should be empty
22286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22287 # investigate it a little bit more. (MM)
22288 wlarc='${wl}'
22290 # ancient GNU ld didn't support --whole-archive et. al.
22291 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22292 $GREP 'no-whole-archive' > /dev/null; then
22293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22294 else
22295 whole_archive_flag_spec_CXX=
22297 else
22298 with_gnu_ld=no
22299 wlarc=
22301 # A generic and very simple default shared library creation
22302 # command for GNU C++ for the case where it uses the native
22303 # linker, instead of GNU ld. If possible, this setting should
22304 # overridden to take advantage of the native linker features on
22305 # the platform it is being used on.
22306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22309 # Commands to make compiler produce verbose output that lists
22310 # what "hidden" libraries, object files and flags are used when
22311 # linking a shared library.
22312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
22314 else
22315 GXX=no
22316 with_gnu_ld=no
22317 wlarc=
22320 # PORTME: fill in a description of your system's C++ link characteristics
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22322 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22323 ld_shlibs_CXX=yes
22324 case $host_os in
22325 aix3*)
22326 # FIXME: insert proper C++ library support
22327 ld_shlibs_CXX=no
22329 aix[4-9]*)
22330 if test "$host_cpu" = ia64; then
22331 # On IA64, the linker does run time linking by default, so we don't
22332 # have to do anything special.
22333 aix_use_runtimelinking=no
22334 exp_sym_flag='-Bexport'
22335 no_entry_flag=""
22336 else
22337 aix_use_runtimelinking=no
22339 # Test if we are trying to use run time linking or normal
22340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22341 # need to do runtime linking.
22342 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22343 for ld_flag in $LDFLAGS; do
22344 case $ld_flag in
22345 *-brtl*)
22346 aix_use_runtimelinking=yes
22347 break
22349 esac
22350 done
22352 esac
22354 exp_sym_flag='-bexport'
22355 no_entry_flag='-bnoentry'
22358 # When large executables or shared objects are built, AIX ld can
22359 # have problems creating the table of contents. If linking a library
22360 # or program results in "error TOC overflow" add -mminimal-toc to
22361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22364 archive_cmds_CXX=''
22365 hardcode_direct_CXX=yes
22366 hardcode_direct_absolute_CXX=yes
22367 hardcode_libdir_separator_CXX=':'
22368 link_all_deplibs_CXX=yes
22369 file_list_spec_CXX='${wl}-f,'
22371 if test "$GXX" = yes; then
22372 case $host_os in aix4.[012]|aix4.[012].*)
22373 # We only want to do this on AIX 4.2 and lower, the check
22374 # below for broken collect2 doesn't work under 4.3+
22375 collect2name=`${CC} -print-prog-name=collect2`
22376 if test -f "$collect2name" &&
22377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22378 then
22379 # We have reworked collect2
22381 else
22382 # We have old collect2
22383 hardcode_direct_CXX=unsupported
22384 # It fails to find uninstalled libraries when the uninstalled
22385 # path is not listed in the libpath. Setting hardcode_minus_L
22386 # to unsupported forces relinking
22387 hardcode_minus_L_CXX=yes
22388 hardcode_libdir_flag_spec_CXX='-L$libdir'
22389 hardcode_libdir_separator_CXX=
22391 esac
22392 shared_flag='-shared'
22393 if test "$aix_use_runtimelinking" = yes; then
22394 shared_flag="$shared_flag "'${wl}-G'
22396 else
22397 # not using gcc
22398 if test "$host_cpu" = ia64; then
22399 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22400 # chokes on -Wl,-G. The following line is correct:
22401 shared_flag='-G'
22402 else
22403 if test "$aix_use_runtimelinking" = yes; then
22404 shared_flag='${wl}-G'
22405 else
22406 shared_flag='${wl}-bM:SRE'
22411 export_dynamic_flag_spec_CXX='${wl}-bexpall'
22412 # It seems that -bexpall does not export symbols beginning with
22413 # underscore (_), so it is better to generate a list of symbols to
22414 # export.
22415 always_export_symbols_CXX=yes
22416 if test "$aix_use_runtimelinking" = yes; then
22417 # Warning - without using the other runtime loading flags (-brtl),
22418 # -berok will link without error, but may produce a broken library.
22419 allow_undefined_flag_CXX='-berok'
22420 # Determine the default libpath from the value encoded in an empty
22421 # executable.
22422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22423 /* end confdefs.h. */
22426 main ()
22430 return 0;
22432 _ACEOF
22433 if ac_fn_cxx_try_link "$LINENO"; then :
22435 lt_aix_libpath_sed='
22436 /Import File Strings/,/^$/ {
22437 /^0/ {
22438 s/^0 *\(.*\)$/\1/
22442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22443 # Check for a 64-bit object if we didn't find anything.
22444 if test -z "$aix_libpath"; then
22445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22452 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22454 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"
22455 else
22456 if test "$host_cpu" = ia64; then
22457 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22458 allow_undefined_flag_CXX="-z nodefs"
22459 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"
22460 else
22461 # Determine the default libpath from the value encoded in an
22462 # empty executable.
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22467 main ()
22471 return 0;
22473 _ACEOF
22474 if ac_fn_cxx_try_link "$LINENO"; then :
22476 lt_aix_libpath_sed='
22477 /Import File Strings/,/^$/ {
22478 /^0/ {
22479 s/^0 *\(.*\)$/\1/
22483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22484 # Check for a 64-bit object if we didn't find anything.
22485 if test -z "$aix_libpath"; then
22486 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22489 rm -f core conftest.err conftest.$ac_objext \
22490 conftest$ac_exeext conftest.$ac_ext
22491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22493 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22494 # Warning - without using the other run time loading flags,
22495 # -berok will link without error, but may produce a broken library.
22496 no_undefined_flag_CXX=' ${wl}-bernotok'
22497 allow_undefined_flag_CXX=' ${wl}-berok'
22498 if test "$with_gnu_ld" = yes; then
22499 # We only use this code for GNU lds that support --whole-archive.
22500 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22501 else
22502 # Exported symbols can be pulled into shared objects from archives
22503 whole_archive_flag_spec_CXX='$convenience'
22505 archive_cmds_need_lc_CXX=yes
22506 # This is similar to how AIX traditionally builds its shared
22507 # libraries.
22508 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'
22513 beos*)
22514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22515 allow_undefined_flag_CXX=unsupported
22516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22517 # support --undefined. This deserves some investigation. FIXME
22518 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22519 else
22520 ld_shlibs_CXX=no
22524 chorus*)
22525 case $cc_basename in
22527 # FIXME: insert proper C++ library support
22528 ld_shlibs_CXX=no
22530 esac
22533 cygwin* | mingw* | pw32* | cegcc*)
22534 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22535 # as there is no search path for DLLs.
22536 hardcode_libdir_flag_spec_CXX='-L$libdir'
22537 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
22538 allow_undefined_flag_CXX=unsupported
22539 always_export_symbols_CXX=no
22540 enable_shared_with_static_runtimes_CXX=yes
22542 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22543 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'
22544 # If the export-symbols file already is a .def file (1st line
22545 # is EXPORTS), use it as is; otherwise, prepend...
22546 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22547 cp $export_symbols $output_objdir/$soname.def;
22548 else
22549 echo EXPORTS > $output_objdir/$soname.def;
22550 cat $export_symbols >> $output_objdir/$soname.def;
22552 $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'
22553 else
22554 ld_shlibs_CXX=no
22557 darwin* | rhapsody*)
22561 # Publish an arg to allow the user to select that Darwin host (and target)
22562 # libraries should be given install-names like @rpath/libfoo.dylib. This
22563 # requires that the user of the library then adds an 'rpath' to the DSO that
22564 # needs access.
22565 # NOTE: there are defaults below, for systems that support rpaths. The person
22566 # configuring can override the defaults for any system version that supports
22567 # them - they are, however, forced off for system versions without support.
22568 # Check whether --enable-darwin-at-rpath was given.
22569 if test "${enable_darwin_at_rpath+set}" = set; then :
22570 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
22571 # This is not supported before macOS 10.5 / Darwin9.
22572 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22573 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
22575 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
22576 enable_darwin_at_rpath=no
22578 esac
22580 else
22581 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
22582 # As above, before 10.5 / Darwin9 this does not work.
22583 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
22584 enable_darwin_at_rpath=no
22587 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
22588 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
22589 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
22590 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
22592 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
22593 enable_darwin_at_rpath=yes
22595 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
22596 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
22598 esac
22603 archive_cmds_need_lc_CXX=no
22604 hardcode_direct_CXX=no
22605 hardcode_automatic_CXX=yes
22606 hardcode_shlibpath_var_CXX=unsupported
22607 if test "$lt_cv_ld_force_load" = "yes"; then
22608 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\"`'
22609 else
22610 whole_archive_flag_spec_CXX=''
22612 link_all_deplibs_CXX=yes
22613 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22614 case $cc_basename in
22615 ifort*) _lt_dar_can_shared=yes ;;
22616 *) _lt_dar_can_shared=$GCC ;;
22617 esac
22618 if test "$_lt_dar_can_shared" = "yes"; then
22619 output_verbose_link_cmd=func_echo_all
22620 _lt_install_name='\$rpath/\$soname'
22621 if test "x$enable_darwin_at_rpath" = "xyes"; then
22622 _lt_install_name='@rpath/\$soname'
22624 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
22625 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22626 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}"
22627 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}"
22628 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22629 _lt_install_name='\$rpath/\$soname'
22630 if test "x$enable_darwin_at_rpath" = "xyes"; then
22631 _lt_install_name='@rpath/\$soname'
22633 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}"
22634 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}"
22637 else
22638 ld_shlibs_CXX=no
22643 dgux*)
22644 case $cc_basename in
22645 ec++*)
22646 # FIXME: insert proper C++ library support
22647 ld_shlibs_CXX=no
22649 ghcx*)
22650 # Green Hills C++ Compiler
22651 # FIXME: insert proper C++ library support
22652 ld_shlibs_CXX=no
22655 # FIXME: insert proper C++ library support
22656 ld_shlibs_CXX=no
22658 esac
22661 freebsd2.*)
22662 # C++ shared libraries reported to be fairly broken before
22663 # switch to ELF
22664 ld_shlibs_CXX=no
22667 freebsd-elf*)
22668 archive_cmds_need_lc_CXX=no
22671 freebsd* | dragonfly*)
22672 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22673 # conventions
22674 ld_shlibs_CXX=yes
22677 gnu*)
22680 haiku*)
22681 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22682 link_all_deplibs_CXX=yes
22685 hpux9*)
22686 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22687 hardcode_libdir_separator_CXX=:
22688 export_dynamic_flag_spec_CXX='${wl}-E'
22689 hardcode_direct_CXX=yes
22690 hardcode_minus_L_CXX=yes # Not in the search PATH,
22691 # but as the default
22692 # location of the library.
22694 case $cc_basename in
22695 CC*)
22696 # FIXME: insert proper C++ library support
22697 ld_shlibs_CXX=no
22699 aCC*)
22700 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'
22701 # Commands to make compiler produce verbose output that lists
22702 # what "hidden" libraries, object files and flags are used when
22703 # linking a shared library.
22705 # There doesn't appear to be a way to prevent this compiler from
22706 # explicitly linking system object files so we need to strip them
22707 # from the output so that they don't get included in the library
22708 # dependencies.
22709 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"'
22712 if test "$GXX" = yes; then
22713 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'
22714 else
22715 # FIXME: insert proper C++ library support
22716 ld_shlibs_CXX=no
22719 esac
22722 hpux10*|hpux11*)
22723 if test $with_gnu_ld = no; then
22724 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22725 hardcode_libdir_separator_CXX=:
22727 case $host_cpu in
22728 hppa*64*|ia64*)
22731 export_dynamic_flag_spec_CXX='${wl}-E'
22733 esac
22735 case $host_cpu in
22736 hppa*64*|ia64*)
22737 hardcode_direct_CXX=no
22738 hardcode_shlibpath_var_CXX=no
22741 hardcode_direct_CXX=yes
22742 hardcode_direct_absolute_CXX=yes
22743 hardcode_minus_L_CXX=yes # Not in the search PATH,
22744 # but as the default
22745 # location of the library.
22747 esac
22749 case $cc_basename in
22750 CC*)
22751 # FIXME: insert proper C++ library support
22752 ld_shlibs_CXX=no
22754 aCC*)
22755 case $host_cpu in
22756 hppa*64*)
22757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22759 ia64*)
22760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22763 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22765 esac
22766 # Commands to make compiler produce verbose output that lists
22767 # what "hidden" libraries, object files and flags are used when
22768 # linking a shared library.
22770 # There doesn't appear to be a way to prevent this compiler from
22771 # explicitly linking system object files so we need to strip them
22772 # from the output so that they don't get included in the library
22773 # dependencies.
22774 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"'
22777 if test "$GXX" = yes; then
22778 if test $with_gnu_ld = no; then
22779 case $host_cpu in
22780 hppa*64*)
22781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22783 ia64*)
22784 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22787 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'
22789 esac
22791 else
22792 # FIXME: insert proper C++ library support
22793 ld_shlibs_CXX=no
22796 esac
22799 interix[3-9]*)
22800 hardcode_direct_CXX=no
22801 hardcode_shlibpath_var_CXX=no
22802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22803 export_dynamic_flag_spec_CXX='${wl}-E'
22804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22805 # Instead, shared libraries are loaded at an image base (0x10000000 by
22806 # default) and relocated if they conflict, which is a slow very memory
22807 # consuming and fragmenting process. To avoid this, we pick a random,
22808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22810 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'
22811 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'
22813 irix5* | irix6*)
22814 case $cc_basename in
22815 CC*)
22816 # SGI C++
22817 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'
22819 # Archives containing C++ object files must be created using
22820 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22821 # necessary to make sure instantiated templates are included
22822 # in the archive.
22823 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22826 if test "$GXX" = yes; then
22827 if test "$with_gnu_ld" = no; then
22828 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'
22829 else
22830 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'
22833 link_all_deplibs_CXX=yes
22835 esac
22836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22837 hardcode_libdir_separator_CXX=:
22838 inherit_rpath_CXX=yes
22841 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22842 case $cc_basename in
22843 KCC*)
22844 # Kuck and Associates, Inc. (KAI) C++ Compiler
22846 # KCC will only create a shared library if the output file
22847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22848 # to its proper name (with version) after linking.
22849 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'
22850 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'
22851 # Commands to make compiler produce verbose output that lists
22852 # what "hidden" libraries, object files and flags are used when
22853 # linking a shared library.
22855 # There doesn't appear to be a way to prevent this compiler from
22856 # explicitly linking system object files so we need to strip them
22857 # from the output so that they don't get included in the library
22858 # dependencies.
22859 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"'
22861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22864 # Archives containing C++ object files must be created using
22865 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22866 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22868 icpc* | ecpc* )
22869 # Intel C++
22870 with_gnu_ld=yes
22871 # version 8.0 and above of icpc choke on multiply defined symbols
22872 # if we add $predep_objects and $postdep_objects, however 7.1 and
22873 # earlier do not add the objects themselves.
22874 case `$CC -V 2>&1` in
22875 *"Version 7."*)
22876 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22877 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'
22879 *) # Version 8.0 or newer
22880 tmp_idyn=
22881 case $host_cpu in
22882 ia64*) tmp_idyn=' -i_dynamic';;
22883 esac
22884 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22885 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'
22887 esac
22888 archive_cmds_need_lc_CXX=no
22889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22891 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22893 pgCC* | pgcpp*)
22894 # Portland Group C++ compiler
22895 case `$CC -V` in
22896 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
22897 prelink_cmds_CXX='tpldir=Template.dir~
22898 rm -rf $tpldir~
22899 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22900 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
22901 old_archive_cmds_CXX='tpldir=Template.dir~
22902 rm -rf $tpldir~
22903 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22904 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
22905 $RANLIB $oldlib'
22906 archive_cmds_CXX='tpldir=Template.dir~
22907 rm -rf $tpldir~
22908 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22909 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22910 archive_expsym_cmds_CXX='tpldir=Template.dir~
22911 rm -rf $tpldir~
22912 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22913 $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'
22915 *) # Version 6 and above use weak symbols
22916 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22917 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'
22919 esac
22921 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22923 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'
22925 cxx*)
22926 # Compaq C++
22927 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22928 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'
22930 runpath_var=LD_RUN_PATH
22931 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22932 hardcode_libdir_separator_CXX=:
22934 # Commands to make compiler produce verbose output that lists
22935 # what "hidden" libraries, object files and flags are used when
22936 # linking a shared library.
22938 # There doesn't appear to be a way to prevent this compiler from
22939 # explicitly linking system object files so we need to strip them
22940 # from the output so that they don't get included in the library
22941 # dependencies.
22942 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'
22944 xl* | mpixl* | bgxl*)
22945 # IBM XL 8.0 on PPC, with GNU ld
22946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22948 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22949 if test "x$supports_anon_versioning" = xyes; then
22950 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22952 echo "local: *; };" >> $output_objdir/$libname.ver~
22953 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22957 case `$CC -V 2>&1 | sed 5q` in
22958 *Sun\ C*)
22959 # Sun C++ 5.9
22960 no_undefined_flag_CXX=' -zdefs'
22961 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22962 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'
22963 hardcode_libdir_flag_spec_CXX='-R$libdir'
22964 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'
22965 compiler_needs_object_CXX=yes
22967 # Not sure whether something based on
22968 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22969 # would be better.
22970 output_verbose_link_cmd='func_echo_all'
22972 # Archives containing C++ object files must be created using
22973 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22974 # necessary to make sure instantiated templates are included
22975 # in the archive.
22976 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22978 esac
22980 esac
22983 lynxos*)
22984 # FIXME: insert proper C++ library support
22985 ld_shlibs_CXX=no
22988 m88k*)
22989 # FIXME: insert proper C++ library support
22990 ld_shlibs_CXX=no
22993 mvs*)
22994 case $cc_basename in
22995 cxx*)
22996 # FIXME: insert proper C++ library support
22997 ld_shlibs_CXX=no
23000 # FIXME: insert proper C++ library support
23001 ld_shlibs_CXX=no
23003 esac
23006 netbsd*)
23007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23008 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23009 wlarc=
23010 hardcode_libdir_flag_spec_CXX='-R$libdir'
23011 hardcode_direct_CXX=yes
23012 hardcode_shlibpath_var_CXX=no
23014 # Workaround some broken pre-1.5 toolchains
23015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23018 *nto* | *qnx*)
23019 ld_shlibs_CXX=yes
23022 openbsd2*)
23023 # C++ shared libraries are fairly broken
23024 ld_shlibs_CXX=no
23027 openbsd*)
23028 if test -f /usr/libexec/ld.so; then
23029 hardcode_direct_CXX=yes
23030 hardcode_shlibpath_var_CXX=no
23031 hardcode_direct_absolute_CXX=yes
23032 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23035 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
23036 export_dynamic_flag_spec_CXX='${wl}-E'
23037 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23039 output_verbose_link_cmd=func_echo_all
23040 else
23041 ld_shlibs_CXX=no
23045 osf3* | osf4* | osf5*)
23046 case $cc_basename in
23047 KCC*)
23048 # Kuck and Associates, Inc. (KAI) C++ Compiler
23050 # KCC will only create a shared library if the output file
23051 # ends with ".so" (or ".sl" for HP-UX), so rename the library
23052 # to its proper name (with version) after linking.
23053 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'
23055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23056 hardcode_libdir_separator_CXX=:
23058 # Archives containing C++ object files must be created using
23059 # the KAI C++ compiler.
23060 case $host in
23061 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
23062 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
23063 esac
23065 RCC*)
23066 # Rational C++ 2.4.1
23067 # FIXME: insert proper C++ library support
23068 ld_shlibs_CXX=no
23070 cxx*)
23071 case $host in
23072 osf3*)
23073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23074 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'
23075 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23078 allow_undefined_flag_CXX=' -expect_unresolved \*'
23079 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'
23080 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23081 echo "-hidden">> $lib.exp~
23082 $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~
23083 $RM $lib.exp'
23084 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23086 esac
23088 hardcode_libdir_separator_CXX=:
23090 # Commands to make compiler produce verbose output that lists
23091 # what "hidden" libraries, object files and flags are used when
23092 # linking a shared library.
23094 # There doesn't appear to be a way to prevent this compiler from
23095 # explicitly linking system object files so we need to strip them
23096 # from the output so that they don't get included in the library
23097 # dependencies.
23098 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"'
23101 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23103 case $host in
23104 osf3*)
23105 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'
23108 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'
23110 esac
23112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23113 hardcode_libdir_separator_CXX=:
23115 # Commands to make compiler produce verbose output that lists
23116 # what "hidden" libraries, object files and flags are used when
23117 # linking a shared library.
23118 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23120 else
23121 # FIXME: insert proper C++ library support
23122 ld_shlibs_CXX=no
23125 esac
23128 psos*)
23129 # FIXME: insert proper C++ library support
23130 ld_shlibs_CXX=no
23133 sunos4*)
23134 case $cc_basename in
23135 CC*)
23136 # Sun C++ 4.x
23137 # FIXME: insert proper C++ library support
23138 ld_shlibs_CXX=no
23140 lcc*)
23141 # Lucid
23142 # FIXME: insert proper C++ library support
23143 ld_shlibs_CXX=no
23146 # FIXME: insert proper C++ library support
23147 ld_shlibs_CXX=no
23149 esac
23152 solaris*)
23153 case $cc_basename in
23154 CC*)
23155 # Sun C++ 4.2, 5.x and Centerline C++
23156 archive_cmds_need_lc_CXX=yes
23157 no_undefined_flag_CXX=' -zdefs'
23158 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23159 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23160 $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'
23162 hardcode_libdir_flag_spec_CXX='-R$libdir'
23163 hardcode_shlibpath_var_CXX=no
23164 case $host_os in
23165 solaris2.[0-5] | solaris2.[0-5].*) ;;
23167 # The compiler driver will combine and reorder linker options,
23168 # but understands `-z linker_flag'.
23169 # Supported since Solaris 2.6 (maybe 2.5.1?)
23170 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
23172 esac
23173 link_all_deplibs_CXX=yes
23175 output_verbose_link_cmd='func_echo_all'
23177 # Archives containing C++ object files must be created using
23178 # "CC -xar", where "CC" is the Sun C++ compiler. This is
23179 # necessary to make sure instantiated templates are included
23180 # in the archive.
23181 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23183 gcx*)
23184 # Green Hills C++ Compiler
23185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23187 # The C++ compiler must be used to create the archive.
23188 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23191 # GNU C++ compiler with Solaris linker
23192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23193 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23194 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23195 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23196 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23197 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23199 # Commands to make compiler produce verbose output that lists
23200 # what "hidden" libraries, object files and flags are used when
23201 # linking a shared library.
23202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23203 else
23204 # g++ 2.7 appears to require `-G' NOT `-shared' on this
23205 # platform.
23206 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23207 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23208 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23210 # Commands to make compiler produce verbose output that lists
23211 # what "hidden" libraries, object files and flags are used when
23212 # linking a shared library.
23213 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
23216 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23217 case $host_os in
23218 solaris2.[0-5] | solaris2.[0-5].*) ;;
23220 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23222 esac
23225 esac
23228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23229 no_undefined_flag_CXX='${wl}-z,text'
23230 archive_cmds_need_lc_CXX=no
23231 hardcode_shlibpath_var_CXX=no
23232 runpath_var='LD_RUN_PATH'
23234 case $cc_basename in
23235 CC*)
23236 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23237 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23240 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23241 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23243 esac
23246 sysv5* | sco3.2v5* | sco5v6*)
23247 # Note: We can NOT use -z defs as we might desire, because we do not
23248 # link with -lc, and that would cause any symbols used from libc to
23249 # always be unresolved, which means just about no library would
23250 # ever link correctly. If we're not using GNU ld we use -z text
23251 # though, which does catch some bad symbols but isn't as heavy-handed
23252 # as -z defs.
23253 no_undefined_flag_CXX='${wl}-z,text'
23254 allow_undefined_flag_CXX='${wl}-z,nodefs'
23255 archive_cmds_need_lc_CXX=no
23256 hardcode_shlibpath_var_CXX=no
23257 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
23258 hardcode_libdir_separator_CXX=':'
23259 link_all_deplibs_CXX=yes
23260 export_dynamic_flag_spec_CXX='${wl}-Bexport'
23261 runpath_var='LD_RUN_PATH'
23263 case $cc_basename in
23264 CC*)
23265 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23266 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23267 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
23268 '"$old_archive_cmds_CXX"
23269 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
23270 '"$reload_cmds_CXX"
23273 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23274 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23276 esac
23279 tandem*)
23280 case $cc_basename in
23281 NCC*)
23282 # NonStop-UX NCC 3.20
23283 # FIXME: insert proper C++ library support
23284 ld_shlibs_CXX=no
23287 # FIXME: insert proper C++ library support
23288 ld_shlibs_CXX=no
23290 esac
23293 vxworks*)
23294 # For VxWorks ports, we assume the use of a GNU linker with
23295 # standard elf conventions.
23296 ld_shlibs_CXX=yes
23300 # FIXME: insert proper C++ library support
23301 ld_shlibs_CXX=no
23303 esac
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
23306 $as_echo "$ld_shlibs_CXX" >&6; }
23307 test "$ld_shlibs_CXX" = no && can_build_shared=no
23309 GCC_CXX="$GXX"
23310 LD_CXX="$LD"
23312 ## CAVEAT EMPTOR:
23313 ## There is no encapsulation within the following macros, do not change
23314 ## the running order or otherwise move them around unless you know exactly
23315 ## what you are doing...
23316 # Dependencies to place before and after the object being linked:
23317 predep_objects_CXX=
23318 postdep_objects_CXX=
23319 predeps_CXX=
23320 postdeps_CXX=
23321 compiler_lib_search_path_CXX=
23323 cat > conftest.$ac_ext <<_LT_EOF
23324 class Foo
23326 public:
23327 Foo (void) { a = 0; }
23328 private:
23329 int a;
23331 _LT_EOF
23333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23334 (eval $ac_compile) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; then
23338 # Parse the compiler output and extract the necessary
23339 # objects, libraries and library flags.
23341 # Sentinel used to keep track of whether or not we are before
23342 # the conftest object file.
23343 pre_test_object_deps_done=no
23345 for p in `eval "$output_verbose_link_cmd"`; do
23346 case $p in
23348 -L* | -R* | -l*)
23349 # Some compilers place space between "-{L,R}" and the path.
23350 # Remove the space.
23351 if test $p = "-L" ||
23352 test $p = "-R"; then
23353 prev=$p
23354 continue
23355 else
23356 prev=
23359 if test "$pre_test_object_deps_done" = no; then
23360 case $p in
23361 -L* | -R*)
23362 # Internal compiler library paths should come after those
23363 # provided the user. The postdeps already come after the
23364 # user supplied libs so there is no need to process them.
23365 if test -z "$compiler_lib_search_path_CXX"; then
23366 compiler_lib_search_path_CXX="${prev}${p}"
23367 else
23368 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23371 # The "-l" case would never come before the object being
23372 # linked, so don't bother handling this case.
23373 esac
23374 else
23375 if test -z "$postdeps_CXX"; then
23376 postdeps_CXX="${prev}${p}"
23377 else
23378 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23383 *.$objext)
23384 # This assumes that the test object file only shows up
23385 # once in the compiler output.
23386 if test "$p" = "conftest.$objext"; then
23387 pre_test_object_deps_done=yes
23388 continue
23391 if test "$pre_test_object_deps_done" = no; then
23392 if test -z "$predep_objects_CXX"; then
23393 predep_objects_CXX="$p"
23394 else
23395 predep_objects_CXX="$predep_objects_CXX $p"
23397 else
23398 if test -z "$postdep_objects_CXX"; then
23399 postdep_objects_CXX="$p"
23400 else
23401 postdep_objects_CXX="$postdep_objects_CXX $p"
23406 *) ;; # Ignore the rest.
23408 esac
23409 done
23411 # Clean up.
23412 rm -f a.out a.exe
23413 else
23414 echo "libtool.m4: error: problem compiling CXX test program"
23417 $RM -f confest.$objext
23419 # PORTME: override above test on systems where it is broken
23420 case $host_os in
23421 interix[3-9]*)
23422 # Interix 3.5 installs completely hosed .la files for C++, so rather than
23423 # hack all around it, let's just trust "g++" to DTRT.
23424 predep_objects_CXX=
23425 postdep_objects_CXX=
23426 postdeps_CXX=
23429 linux*)
23430 case `$CC -V 2>&1 | sed 5q` in
23431 *Sun\ C*)
23432 # Sun C++ 5.9
23434 # The more standards-conforming stlport4 library is
23435 # incompatible with the Cstd library. Avoid specifying
23436 # it if it's in CXXFLAGS. Ignore libCrun as
23437 # -library=stlport4 depends on it.
23438 case " $CXX $CXXFLAGS " in
23439 *" -library=stlport4 "*)
23440 solaris_use_stlport4=yes
23442 esac
23444 if test "$solaris_use_stlport4" != yes; then
23445 postdeps_CXX='-library=Cstd -library=Crun'
23448 esac
23451 solaris*)
23452 case $cc_basename in
23453 CC*)
23454 # The more standards-conforming stlport4 library is
23455 # incompatible with the Cstd library. Avoid specifying
23456 # it if it's in CXXFLAGS. Ignore libCrun as
23457 # -library=stlport4 depends on it.
23458 case " $CXX $CXXFLAGS " in
23459 *" -library=stlport4 "*)
23460 solaris_use_stlport4=yes
23462 esac
23464 # Adding this requires a known-good setup of shared libraries for
23465 # Sun compiler versions before 5.6, else PIC objects from an old
23466 # archive will be linked into the output, leading to subtle bugs.
23467 if test "$solaris_use_stlport4" != yes; then
23468 postdeps_CXX='-library=Cstd -library=Crun'
23471 esac
23473 esac
23476 case " $postdeps_CXX " in
23477 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23478 esac
23479 compiler_lib_search_dirs_CXX=
23480 if test -n "${compiler_lib_search_path_CXX}"; then
23481 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23514 lt_prog_compiler_wl_CXX=
23515 lt_prog_compiler_pic_CXX=
23516 lt_prog_compiler_static_CXX=
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23519 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23521 # C++ specific cases for pic, static, wl, etc.
23522 if test "$GXX" = yes; then
23523 lt_prog_compiler_wl_CXX='-Wl,'
23524 lt_prog_compiler_static_CXX='-static'
23526 case $host_os in
23527 aix*)
23528 # All AIX code is PIC.
23529 if test "$host_cpu" = ia64; then
23530 # AIX 5 now supports IA64 processor
23531 lt_prog_compiler_static_CXX='-Bstatic'
23533 lt_prog_compiler_pic_CXX='-fPIC'
23536 amigaos*)
23537 case $host_cpu in
23538 powerpc)
23539 # see comment about AmigaOS4 .so support
23540 lt_prog_compiler_pic_CXX='-fPIC'
23542 m68k)
23543 # FIXME: we need at least 68020 code to build shared libraries, but
23544 # adding the `-m68020' flag to GCC prevents building anything better,
23545 # like `-m68040'.
23546 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23548 esac
23551 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23552 # PIC is the default for these OSes.
23554 mingw* | cygwin* | os2* | pw32* | cegcc*)
23555 # This hack is so that the source file can tell whether it is being
23556 # built for inclusion in a dll (and should export symbols for example).
23557 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23558 # (--disable-auto-import) libraries
23559 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23561 darwin* | rhapsody*)
23562 # PIC is the default on this platform
23563 # Common symbols not allowed in MH_DYLIB files
23564 lt_prog_compiler_pic_CXX='-fno-common'
23566 *djgpp*)
23567 # DJGPP does not support shared libraries at all
23568 lt_prog_compiler_pic_CXX=
23570 haiku*)
23571 # PIC is the default for Haiku.
23572 # The "-static" flag exists, but is broken.
23573 lt_prog_compiler_static_CXX=
23575 interix[3-9]*)
23576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23577 # Instead, we relocate shared libraries at runtime.
23579 sysv4*MP*)
23580 if test -d /usr/nec; then
23581 lt_prog_compiler_pic_CXX=-Kconform_pic
23584 hpux*)
23585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23587 # sets the default TLS model and affects inlining.
23588 case $host_cpu in
23589 hppa*64*)
23592 lt_prog_compiler_pic_CXX='-fPIC'
23594 esac
23596 *qnx* | *nto*)
23597 # QNX uses GNU C++, but need to define -shared option too, otherwise
23598 # it will coredump.
23599 lt_prog_compiler_pic_CXX='-fPIC -shared'
23602 lt_prog_compiler_pic_CXX='-fPIC'
23604 esac
23605 else
23606 case $host_os in
23607 aix[4-9]*)
23608 # All AIX code is PIC.
23609 if test "$host_cpu" = ia64; then
23610 # AIX 5 now supports IA64 processor
23611 lt_prog_compiler_static_CXX='-Bstatic'
23612 else
23613 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23616 chorus*)
23617 case $cc_basename in
23618 cxch68*)
23619 # Green Hills C++ Compiler
23620 # _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"
23622 esac
23624 dgux*)
23625 case $cc_basename in
23626 ec++*)
23627 lt_prog_compiler_pic_CXX='-KPIC'
23629 ghcx*)
23630 # Green Hills C++ Compiler
23631 lt_prog_compiler_pic_CXX='-pic'
23635 esac
23637 freebsd* | dragonfly*)
23638 # FreeBSD uses GNU C++
23640 hpux9* | hpux10* | hpux11*)
23641 case $cc_basename in
23642 CC*)
23643 lt_prog_compiler_wl_CXX='-Wl,'
23644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23645 if test "$host_cpu" != ia64; then
23646 lt_prog_compiler_pic_CXX='+Z'
23649 aCC*)
23650 lt_prog_compiler_wl_CXX='-Wl,'
23651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23652 case $host_cpu in
23653 hppa*64*|ia64*)
23654 # +Z the default
23657 lt_prog_compiler_pic_CXX='+Z'
23659 esac
23663 esac
23665 interix*)
23666 # This is c89, which is MS Visual C++ (no shared libs)
23667 # Anyone wants to do a port?
23669 irix5* | irix6* | nonstopux*)
23670 case $cc_basename in
23671 CC*)
23672 lt_prog_compiler_wl_CXX='-Wl,'
23673 lt_prog_compiler_static_CXX='-non_shared'
23674 # CC pic flag -KPIC is the default.
23678 esac
23680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23681 case $cc_basename in
23682 KCC*)
23683 # KAI C++ Compiler
23684 lt_prog_compiler_wl_CXX='--backend -Wl,'
23685 lt_prog_compiler_pic_CXX='-fPIC'
23687 ecpc* )
23688 # old Intel C++ for x86_64 which still supported -KPIC.
23689 lt_prog_compiler_wl_CXX='-Wl,'
23690 lt_prog_compiler_pic_CXX='-KPIC'
23691 lt_prog_compiler_static_CXX='-static'
23693 icpc* )
23694 # Intel C++, used to be incompatible with GCC.
23695 # ICC 10 doesn't accept -KPIC any more.
23696 lt_prog_compiler_wl_CXX='-Wl,'
23697 lt_prog_compiler_pic_CXX='-fPIC'
23698 lt_prog_compiler_static_CXX='-static'
23700 pgCC* | pgcpp*)
23701 # Portland Group C++ compiler
23702 lt_prog_compiler_wl_CXX='-Wl,'
23703 lt_prog_compiler_pic_CXX='-fpic'
23704 lt_prog_compiler_static_CXX='-Bstatic'
23706 cxx*)
23707 # Compaq C++
23708 # Make sure the PIC flag is empty. It appears that all Alpha
23709 # Linux and Compaq Tru64 Unix objects are PIC.
23710 lt_prog_compiler_pic_CXX=
23711 lt_prog_compiler_static_CXX='-non_shared'
23713 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
23714 # IBM XL 8.0, 9.0 on PPC and BlueGene
23715 lt_prog_compiler_wl_CXX='-Wl,'
23716 lt_prog_compiler_pic_CXX='-qpic'
23717 lt_prog_compiler_static_CXX='-qstaticlink'
23720 case `$CC -V 2>&1 | sed 5q` in
23721 *Sun\ C*)
23722 # Sun C++ 5.9
23723 lt_prog_compiler_pic_CXX='-KPIC'
23724 lt_prog_compiler_static_CXX='-Bstatic'
23725 lt_prog_compiler_wl_CXX='-Qoption ld '
23727 esac
23729 esac
23731 lynxos*)
23733 m88k*)
23735 mvs*)
23736 case $cc_basename in
23737 cxx*)
23738 lt_prog_compiler_pic_CXX='-W c,exportall'
23742 esac
23744 netbsd*)
23746 *qnx* | *nto*)
23747 # QNX uses GNU C++, but need to define -shared option too, otherwise
23748 # it will coredump.
23749 lt_prog_compiler_pic_CXX='-fPIC -shared'
23751 osf3* | osf4* | osf5*)
23752 case $cc_basename in
23753 KCC*)
23754 lt_prog_compiler_wl_CXX='--backend -Wl,'
23756 RCC*)
23757 # Rational C++ 2.4.1
23758 lt_prog_compiler_pic_CXX='-pic'
23760 cxx*)
23761 # Digital/Compaq C++
23762 lt_prog_compiler_wl_CXX='-Wl,'
23763 # Make sure the PIC flag is empty. It appears that all Alpha
23764 # Linux and Compaq Tru64 Unix objects are PIC.
23765 lt_prog_compiler_pic_CXX=
23766 lt_prog_compiler_static_CXX='-non_shared'
23770 esac
23772 psos*)
23774 solaris*)
23775 case $cc_basename in
23776 CC*)
23777 # Sun C++ 4.2, 5.x and Centerline C++
23778 lt_prog_compiler_pic_CXX='-KPIC'
23779 lt_prog_compiler_static_CXX='-Bstatic'
23780 lt_prog_compiler_wl_CXX='-Qoption ld '
23782 gcx*)
23783 # Green Hills C++ Compiler
23784 lt_prog_compiler_pic_CXX='-PIC'
23788 esac
23790 sunos4*)
23791 case $cc_basename in
23792 CC*)
23793 # Sun C++ 4.x
23794 lt_prog_compiler_pic_CXX='-pic'
23795 lt_prog_compiler_static_CXX='-Bstatic'
23797 lcc*)
23798 # Lucid
23799 lt_prog_compiler_pic_CXX='-pic'
23803 esac
23805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23806 case $cc_basename in
23807 CC*)
23808 lt_prog_compiler_wl_CXX='-Wl,'
23809 lt_prog_compiler_pic_CXX='-KPIC'
23810 lt_prog_compiler_static_CXX='-Bstatic'
23812 esac
23814 tandem*)
23815 case $cc_basename in
23816 NCC*)
23817 # NonStop-UX NCC 3.20
23818 lt_prog_compiler_pic_CXX='-KPIC'
23822 esac
23824 vxworks*)
23827 lt_prog_compiler_can_build_shared_CXX=no
23829 esac
23832 case $host_os in
23833 # For platforms which do not support PIC, -DPIC is meaningless:
23834 *djgpp*)
23835 lt_prog_compiler_pic_CXX=
23838 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23840 esac
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
23842 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
23847 # Check to make sure the PIC flag actually works.
23849 if test -n "$lt_prog_compiler_pic_CXX"; then
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
23852 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
23853 $as_echo_n "(cached) " >&6
23854 else
23855 lt_cv_prog_compiler_pic_works_CXX=no
23856 ac_outfile=conftest.$ac_objext
23857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23858 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23859 # Insert the option either (1) after the last *FLAGS variable, or
23860 # (2) before a word containing "conftest.", or (3) at the end.
23861 # Note that $ac_compile itself does not contain backslashes and begins
23862 # with a dollar sign (not a hyphen), so the echo should work correctly.
23863 # The option is referenced via a variable to avoid confusing sed.
23864 lt_compile=`echo "$ac_compile" | $SED \
23865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23867 -e 's:$: $lt_compiler_flag:'`
23868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23869 (eval "$lt_compile" 2>conftest.err)
23870 ac_status=$?
23871 cat conftest.err >&5
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 if (exit $ac_status) && test -s "$ac_outfile"; then
23874 # The compiler can only warn and ignore the option if not recognized
23875 # So say no if there are warnings other than the usual output.
23876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23879 lt_cv_prog_compiler_pic_works_CXX=yes
23882 $RM conftest*
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23886 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
23888 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23889 case $lt_prog_compiler_pic_CXX in
23890 "" | " "*) ;;
23891 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23892 esac
23893 else
23894 lt_prog_compiler_pic_CXX=
23895 lt_prog_compiler_can_build_shared_CXX=no
23903 # Check to make sure the static flag actually works.
23905 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23908 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
23909 $as_echo_n "(cached) " >&6
23910 else
23911 lt_cv_prog_compiler_static_works_CXX=no
23912 save_LDFLAGS="$LDFLAGS"
23913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23916 # The linker can only warn and ignore the option if not recognized
23917 # So say no if there are warnings
23918 if test -s conftest.err; then
23919 # Append any errors to the config.log.
23920 cat conftest.err 1>&5
23921 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23923 if diff conftest.exp conftest.er2 >/dev/null; then
23924 lt_cv_prog_compiler_static_works_CXX=yes
23926 else
23927 lt_cv_prog_compiler_static_works_CXX=yes
23930 $RM -r conftest*
23931 LDFLAGS="$save_LDFLAGS"
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23935 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
23937 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23939 else
23940 lt_prog_compiler_static_CXX=
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23947 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23948 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
23949 $as_echo_n "(cached) " >&6
23950 else
23951 lt_cv_prog_compiler_c_o_CXX=no
23952 $RM -r conftest 2>/dev/null
23953 mkdir conftest
23954 cd conftest
23955 mkdir out
23956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23958 lt_compiler_flag="-o out/conftest2.$ac_objext"
23959 # Insert the option either (1) after the last *FLAGS variable, or
23960 # (2) before a word containing "conftest.", or (3) at the end.
23961 # Note that $ac_compile itself does not contain backslashes and begins
23962 # with a dollar sign (not a hyphen), so the echo should work correctly.
23963 lt_compile=`echo "$ac_compile" | $SED \
23964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23966 -e 's:$: $lt_compiler_flag:'`
23967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23968 (eval "$lt_compile" 2>out/conftest.err)
23969 ac_status=$?
23970 cat out/conftest.err >&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23973 then
23974 # The compiler can only warn and ignore the option if not recognized
23975 # So say no if there are warnings
23976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23979 lt_cv_prog_compiler_c_o_CXX=yes
23982 chmod u+w . 2>&5
23983 $RM conftest*
23984 # SGI C++ compiler will create directory out/ii_files/ for
23985 # template instantiation
23986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23987 $RM out/* && rmdir out
23988 cd ..
23989 $RM -r conftest
23990 $RM conftest*
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23994 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
24000 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
24001 $as_echo_n "(cached) " >&6
24002 else
24003 lt_cv_prog_compiler_c_o_CXX=no
24004 $RM -r conftest 2>/dev/null
24005 mkdir conftest
24006 cd conftest
24007 mkdir out
24008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24010 lt_compiler_flag="-o out/conftest2.$ac_objext"
24011 # Insert the option either (1) after the last *FLAGS variable, or
24012 # (2) before a word containing "conftest.", or (3) at the end.
24013 # Note that $ac_compile itself does not contain backslashes and begins
24014 # with a dollar sign (not a hyphen), so the echo should work correctly.
24015 lt_compile=`echo "$ac_compile" | $SED \
24016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24018 -e 's:$: $lt_compiler_flag:'`
24019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
24020 (eval "$lt_compile" 2>out/conftest.err)
24021 ac_status=$?
24022 cat out/conftest.err >&5
24023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24025 then
24026 # The compiler can only warn and ignore the option if not recognized
24027 # So say no if there are warnings
24028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
24029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24031 lt_cv_prog_compiler_c_o_CXX=yes
24034 chmod u+w . 2>&5
24035 $RM conftest*
24036 # SGI C++ compiler will create directory out/ii_files/ for
24037 # template instantiation
24038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
24039 $RM out/* && rmdir out
24040 cd ..
24041 $RM -r conftest
24042 $RM conftest*
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
24046 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
24051 hard_links="nottested"
24052 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
24053 # do not overwrite the value of need_locks provided by the user
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
24055 $as_echo_n "checking if we can lock with hard links... " >&6; }
24056 hard_links=yes
24057 $RM conftest*
24058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24059 touch conftest.a
24060 ln conftest.a conftest.b 2>&5 || hard_links=no
24061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24063 $as_echo "$hard_links" >&6; }
24064 if test "$hard_links" = no; then
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24066 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24067 need_locks=warn
24069 else
24070 need_locks=no
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24078 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24079 case $host_os in
24080 aix[4-9]*)
24081 # If we're using GNU nm, then we don't want the "-C" option.
24082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24083 # Also, AIX nm treats weak defined symbols like other global defined
24084 # symbols, whereas GNU nm marks them as "W".
24085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24086 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'
24087 else
24088 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'
24091 pw32*)
24092 export_symbols_cmds_CXX="$ltdll_cmds"
24094 cygwin* | mingw* | cegcc*)
24095 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'
24098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24100 esac
24101 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
24104 $as_echo "$ld_shlibs_CXX" >&6; }
24105 test "$ld_shlibs_CXX" = no && can_build_shared=no
24107 with_gnu_ld_CXX=$with_gnu_ld
24115 # Do we need to explicitly link libc?
24117 case "x$archive_cmds_need_lc_CXX" in
24118 x|xyes)
24119 # Assume -lc should be added
24120 archive_cmds_need_lc_CXX=yes
24122 if test "$enable_shared" = yes && test "$GCC" = yes; then
24123 case $archive_cmds_CXX in
24124 *'~'*)
24125 # FIXME: we may have to deal with multi-command sequences.
24127 '$CC '*)
24128 # Test whether the compiler implicitly links with -lc since on some
24129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24130 # to ld, don't add -lc before -lgcc.
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
24132 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
24133 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
24134 $as_echo_n "(cached) " >&6
24135 else
24136 $RM conftest*
24137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
24140 (eval $ac_compile) 2>&5
24141 ac_status=$?
24142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143 test $ac_status = 0; } 2>conftest.err; then
24144 soname=conftest
24145 lib=conftest
24146 libobjs=conftest.$ac_objext
24147 deplibs=
24148 wl=$lt_prog_compiler_wl_CXX
24149 pic_flag=$lt_prog_compiler_pic_CXX
24150 compiler_flags=-v
24151 linker_flags=-v
24152 verstring=
24153 output_objdir=.
24154 libname=conftest
24155 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
24156 allow_undefined_flag_CXX=
24157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
24158 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
24159 ac_status=$?
24160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24161 test $ac_status = 0; }
24162 then
24163 lt_cv_archive_cmds_need_lc_CXX=no
24164 else
24165 lt_cv_archive_cmds_need_lc_CXX=yes
24167 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
24168 else
24169 cat conftest.err 1>&5
24171 $RM conftest*
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
24175 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
24176 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
24178 esac
24181 esac
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
24247 $as_echo_n "checking dynamic linker characteristics... " >&6; }
24249 library_names_spec=
24250 libname_spec='lib$name'
24251 soname_spec=
24252 shrext_cmds=".so"
24253 postinstall_cmds=
24254 postuninstall_cmds=
24255 finish_cmds=
24256 finish_eval=
24257 shlibpath_var=
24258 shlibpath_overrides_runpath=unknown
24259 version_type=none
24260 dynamic_linker="$host_os ld.so"
24261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24262 need_lib_prefix=unknown
24263 hardcode_into_libs=no
24265 # when you set need_version to no, make sure it does not cause -set_version
24266 # flags to be left without arguments
24267 need_version=unknown
24269 case $host_os in
24270 aix3*)
24271 version_type=linux
24272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24273 shlibpath_var=LIBPATH
24275 # AIX 3 has no versioning support, so we append a major version to the name.
24276 soname_spec='${libname}${release}${shared_ext}$major'
24279 aix[4-9]*)
24280 version_type=linux
24281 need_lib_prefix=no
24282 need_version=no
24283 hardcode_into_libs=yes
24284 if test "$host_cpu" = ia64; then
24285 # AIX 5 supports IA64
24286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24287 shlibpath_var=LD_LIBRARY_PATH
24288 else
24289 # With GCC up to 2.95.x, collect2 would create an import file
24290 # for dependence libraries. The import file would start with
24291 # the line `#! .'. This would cause the generated library to
24292 # depend on `.', always an invalid library. This was fixed in
24293 # development snapshots of GCC prior to 3.0.
24294 case $host_os in
24295 aix4 | aix4.[01] | aix4.[01].*)
24296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24297 echo ' yes '
24298 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
24300 else
24301 can_build_shared=no
24304 esac
24305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24306 # soname into executable. Probably we can add versioning support to
24307 # collect2, so additional links can be useful in future.
24308 if test "$aix_use_runtimelinking" = yes; then
24309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24310 # instead of lib<name>.a to let people know that these are not
24311 # typical AIX shared libraries.
24312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24313 else
24314 # We preserve .a as extension for shared libraries through AIX4.2
24315 # and later when we are not doing run time linking.
24316 library_names_spec='${libname}${release}.a $libname.a'
24317 soname_spec='${libname}${release}${shared_ext}$major'
24319 shlibpath_var=LIBPATH
24323 amigaos*)
24324 case $host_cpu in
24325 powerpc)
24326 # Since July 2007 AmigaOS4 officially supports .so libraries.
24327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
24328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24330 m68k)
24331 library_names_spec='$libname.ixlibrary $libname.a'
24332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24333 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'
24335 esac
24338 beos*)
24339 library_names_spec='${libname}${shared_ext}'
24340 dynamic_linker="$host_os ld.so"
24341 shlibpath_var=LIBRARY_PATH
24344 bsdi[45]*)
24345 version_type=linux
24346 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24350 shlibpath_var=LD_LIBRARY_PATH
24351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24353 # the default ld.so.conf also contains /usr/contrib/lib and
24354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24355 # libtool to hard-code these into programs
24358 cygwin* | mingw* | pw32* | cegcc*)
24359 version_type=windows
24360 shrext_cmds=".dll"
24361 need_version=no
24362 need_lib_prefix=no
24364 case $GCC,$host_os in
24365 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
24366 library_names_spec='$libname.dll.a'
24367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24368 postinstall_cmds='base_file=`basename \${file}`~
24369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
24370 dldir=$destdir/`dirname \$dlpath`~
24371 test -d \$dldir || mkdir -p \$dldir~
24372 $install_prog $dir/$dlname \$dldir/$dlname~
24373 chmod a+x \$dldir/$dlname~
24374 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
24375 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
24377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24378 dlpath=$dir/\$dldll~
24379 $RM \$dlpath'
24380 shlibpath_overrides_runpath=yes
24382 case $host_os in
24383 cygwin*)
24384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24388 mingw* | cegcc*)
24389 # MinGW DLLs use traditional 'lib' prefix
24390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24392 pw32*)
24393 # pw32 DLLs use 'pw' prefix rather than 'lib'
24394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24396 esac
24400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24402 esac
24403 dynamic_linker='Win32 ld.exe'
24404 # FIXME: first we should search . and the directory the executable is in
24405 shlibpath_var=PATH
24408 darwin* | rhapsody*)
24409 dynamic_linker="$host_os dyld"
24410 version_type=darwin
24411 need_lib_prefix=no
24412 need_version=no
24413 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24414 soname_spec='${libname}${release}${major}$shared_ext'
24415 shlibpath_overrides_runpath=yes
24416 shlibpath_var=DYLD_LIBRARY_PATH
24417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24422 dgux*)
24423 version_type=linux
24424 need_lib_prefix=no
24425 need_version=no
24426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24427 soname_spec='${libname}${release}${shared_ext}$major'
24428 shlibpath_var=LD_LIBRARY_PATH
24431 freebsd* | dragonfly*)
24432 # DragonFly does not have aout. When/if they implement a new
24433 # versioning mechanism, adjust this.
24434 if test -x /usr/bin/objformat; then
24435 objformat=`/usr/bin/objformat`
24436 else
24437 case $host_os in
24438 freebsd[23].*) objformat=aout ;;
24439 *) objformat=elf ;;
24440 esac
24442 version_type=freebsd-$objformat
24443 case $version_type in
24444 freebsd-elf*)
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24446 need_version=no
24447 need_lib_prefix=no
24449 freebsd-*)
24450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24451 need_version=yes
24453 esac
24454 shlibpath_var=LD_LIBRARY_PATH
24455 case $host_os in
24456 freebsd2.*)
24457 shlibpath_overrides_runpath=yes
24459 freebsd3.[01]* | freebsdelf3.[01]*)
24460 shlibpath_overrides_runpath=yes
24461 hardcode_into_libs=yes
24463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24465 shlibpath_overrides_runpath=no
24466 hardcode_into_libs=yes
24468 *) # from 4.6 on, and DragonFly
24469 shlibpath_overrides_runpath=yes
24470 hardcode_into_libs=yes
24472 esac
24475 haiku*)
24476 version_type=linux
24477 need_lib_prefix=no
24478 need_version=no
24479 dynamic_linker="$host_os runtime_loader"
24480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24481 soname_spec='${libname}${release}${shared_ext}$major'
24482 shlibpath_var=LIBRARY_PATH
24483 shlibpath_overrides_runpath=yes
24484 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
24485 hardcode_into_libs=yes
24488 hpux9* | hpux10* | hpux11*)
24489 # Give a soname corresponding to the major version so that dld.sl refuses to
24490 # link against other versions.
24491 version_type=sunos
24492 need_lib_prefix=no
24493 need_version=no
24494 case $host_cpu in
24495 ia64*)
24496 shrext_cmds='.so'
24497 hardcode_into_libs=yes
24498 dynamic_linker="$host_os dld.so"
24499 shlibpath_var=LD_LIBRARY_PATH
24500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24502 soname_spec='${libname}${release}${shared_ext}$major'
24503 if test "X$HPUX_IA64_MODE" = X32; then
24504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24505 else
24506 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24510 hppa*64*)
24511 shrext_cmds='.sl'
24512 hardcode_into_libs=yes
24513 dynamic_linker="$host_os dld.sl"
24514 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24517 soname_spec='${libname}${release}${shared_ext}$major'
24518 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24519 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24522 shrext_cmds='.sl'
24523 dynamic_linker="$host_os dld.sl"
24524 shlibpath_var=SHLIB_PATH
24525 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24527 soname_spec='${libname}${release}${shared_ext}$major'
24529 esac
24530 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
24531 postinstall_cmds='chmod 555 $lib'
24532 # or fails outright, so override atomically:
24533 install_override_mode=555
24536 interix[3-9]*)
24537 version_type=linux
24538 need_lib_prefix=no
24539 need_version=no
24540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24541 soname_spec='${libname}${release}${shared_ext}$major'
24542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24543 shlibpath_var=LD_LIBRARY_PATH
24544 shlibpath_overrides_runpath=no
24545 hardcode_into_libs=yes
24548 irix5* | irix6* | nonstopux*)
24549 case $host_os in
24550 nonstopux*) version_type=nonstopux ;;
24552 if test "$lt_cv_prog_gnu_ld" = yes; then
24553 version_type=linux
24554 else
24555 version_type=irix
24556 fi ;;
24557 esac
24558 need_lib_prefix=no
24559 need_version=no
24560 soname_spec='${libname}${release}${shared_ext}$major'
24561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24562 case $host_os in
24563 irix5* | nonstopux*)
24564 libsuff= shlibsuff=
24567 case $LD in # libtool.m4 will add one of these switches to LD
24568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24569 libsuff= shlibsuff= libmagic=32-bit;;
24570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24571 libsuff=32 shlibsuff=N32 libmagic=N32;;
24572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24574 *) libsuff= shlibsuff= libmagic=never-match;;
24575 esac
24577 esac
24578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24579 shlibpath_overrides_runpath=no
24580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24582 hardcode_into_libs=yes
24585 # No shared lib support for Linux oldld, aout, or coff.
24586 linux*oldld* | linux*aout* | linux*coff*)
24587 dynamic_linker=no
24590 # This must be Linux ELF.
24592 # uclinux* changes (here and below) have been submitted to the libtool
24593 # project, but have not yet been accepted: they are GCC-local changes
24594 # for the time being. (See
24595 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
24596 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
24597 version_type=linux
24598 need_lib_prefix=no
24599 need_version=no
24600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24601 soname_spec='${libname}${release}${shared_ext}$major'
24602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24603 shlibpath_var=LD_LIBRARY_PATH
24604 shlibpath_overrides_runpath=no
24606 # Some binutils ld are patched to set DT_RUNPATH
24607 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
24608 $as_echo_n "(cached) " >&6
24609 else
24610 lt_cv_shlibpath_overrides_runpath=no
24611 save_LDFLAGS=$LDFLAGS
24612 save_libdir=$libdir
24613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24616 /* end confdefs.h. */
24619 main ()
24623 return 0;
24625 _ACEOF
24626 if ac_fn_cxx_try_link "$LINENO"; then :
24627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
24628 lt_cv_shlibpath_overrides_runpath=yes
24631 rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24633 LDFLAGS=$save_LDFLAGS
24634 libdir=$save_libdir
24638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24640 # This implies no fast_install, which is unacceptable.
24641 # Some rework will be needed to allow for fast_install
24642 # before this can be enabled.
24643 hardcode_into_libs=yes
24645 # Append ld.so.conf contents to the search path
24646 if test -f /etc/ld.so.conf; then
24647 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' ' '`
24648 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24651 # We used to test for /lib/ld.so.1 and disable shared libraries on
24652 # powerpc, because MkLinux only supported shared libraries with the
24653 # GNU dynamic linker. Since this was broken with cross compilers,
24654 # most powerpc-linux boxes support dynamic linking these days and
24655 # people can always --disable-shared, the test was removed, and we
24656 # assume the GNU/Linux dynamic linker is in use.
24657 dynamic_linker='GNU/Linux ld.so'
24660 netbsd*)
24661 version_type=sunos
24662 need_lib_prefix=no
24663 need_version=no
24664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24667 dynamic_linker='NetBSD (a.out) ld.so'
24668 else
24669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24670 soname_spec='${libname}${release}${shared_ext}$major'
24671 dynamic_linker='NetBSD ld.elf_so'
24673 shlibpath_var=LD_LIBRARY_PATH
24674 shlibpath_overrides_runpath=yes
24675 hardcode_into_libs=yes
24678 newsos6)
24679 version_type=linux
24680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24681 shlibpath_var=LD_LIBRARY_PATH
24682 shlibpath_overrides_runpath=yes
24685 *nto* | *qnx*)
24686 version_type=qnx
24687 need_lib_prefix=no
24688 need_version=no
24689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24690 soname_spec='${libname}${release}${shared_ext}$major'
24691 shlibpath_var=LD_LIBRARY_PATH
24692 shlibpath_overrides_runpath=no
24693 hardcode_into_libs=yes
24694 dynamic_linker='ldqnx.so'
24697 openbsd*)
24698 version_type=sunos
24699 sys_lib_dlsearch_path_spec="/usr/lib"
24700 need_lib_prefix=no
24701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24702 case $host_os in
24703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24704 *) need_version=no ;;
24705 esac
24706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24708 shlibpath_var=LD_LIBRARY_PATH
24709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24710 case $host_os in
24711 openbsd2.[89] | openbsd2.[89].*)
24712 shlibpath_overrides_runpath=no
24715 shlibpath_overrides_runpath=yes
24717 esac
24718 else
24719 shlibpath_overrides_runpath=yes
24723 os2*)
24724 libname_spec='$name'
24725 shrext_cmds=".dll"
24726 need_lib_prefix=no
24727 library_names_spec='$libname${shared_ext} $libname.a'
24728 dynamic_linker='OS/2 ld.exe'
24729 shlibpath_var=LIBPATH
24732 osf3* | osf4* | osf5*)
24733 version_type=osf
24734 need_lib_prefix=no
24735 need_version=no
24736 soname_spec='${libname}${release}${shared_ext}$major'
24737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24738 shlibpath_var=LD_LIBRARY_PATH
24739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24743 rdos*)
24744 dynamic_linker=no
24747 solaris*)
24748 version_type=linux
24749 need_lib_prefix=no
24750 need_version=no
24751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24752 soname_spec='${libname}${release}${shared_ext}$major'
24753 shlibpath_var=LD_LIBRARY_PATH
24754 shlibpath_overrides_runpath=yes
24755 hardcode_into_libs=yes
24756 # ldd complains unless libraries are executable
24757 postinstall_cmds='chmod +x $lib'
24760 sunos4*)
24761 version_type=sunos
24762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24764 shlibpath_var=LD_LIBRARY_PATH
24765 shlibpath_overrides_runpath=yes
24766 if test "$with_gnu_ld" = yes; then
24767 need_lib_prefix=no
24769 need_version=yes
24772 sysv4 | sysv4.3*)
24773 version_type=linux
24774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24775 soname_spec='${libname}${release}${shared_ext}$major'
24776 shlibpath_var=LD_LIBRARY_PATH
24777 case $host_vendor in
24778 sni)
24779 shlibpath_overrides_runpath=no
24780 need_lib_prefix=no
24781 runpath_var=LD_RUN_PATH
24783 siemens)
24784 need_lib_prefix=no
24786 motorola)
24787 need_lib_prefix=no
24788 need_version=no
24789 shlibpath_overrides_runpath=no
24790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24792 esac
24795 sysv4*MP*)
24796 if test -d /usr/nec ;then
24797 version_type=linux
24798 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24799 soname_spec='$libname${shared_ext}.$major'
24800 shlibpath_var=LD_LIBRARY_PATH
24804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24805 version_type=freebsd-elf
24806 need_lib_prefix=no
24807 need_version=no
24808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24809 soname_spec='${libname}${release}${shared_ext}$major'
24810 shlibpath_var=LD_LIBRARY_PATH
24811 shlibpath_overrides_runpath=yes
24812 hardcode_into_libs=yes
24813 if test "$with_gnu_ld" = yes; then
24814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24815 else
24816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24817 case $host_os in
24818 sco3.2v5*)
24819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24821 esac
24823 sys_lib_dlsearch_path_spec='/usr/lib'
24826 tpf*)
24827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24828 version_type=linux
24829 need_lib_prefix=no
24830 need_version=no
24831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24832 shlibpath_var=LD_LIBRARY_PATH
24833 shlibpath_overrides_runpath=no
24834 hardcode_into_libs=yes
24837 uts4*)
24838 version_type=linux
24839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24840 soname_spec='${libname}${release}${shared_ext}$major'
24841 shlibpath_var=LD_LIBRARY_PATH
24844 # Shared libraries for VwWorks, >= 7 only at this stage
24845 # and (fpic) still incompatible with "large" code models
24846 # in a few configurations. Only for RTP mode in any case,
24847 # and upon explicit request at configure time.
24848 vxworks7*)
24849 dynamic_linker=no
24850 case ${with_multisubdir}-${enable_shared} in
24851 *large*)
24853 *mrtp*-yes)
24854 version_type=linux
24855 need_lib_prefix=no
24856 need_version=no
24857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24858 soname_spec='${libname}${release}${shared_ext}$major'
24859 dynamic_linker="$host_os module_loader"
24861 esac
24864 dynamic_linker=no
24866 esac
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
24868 $as_echo "$dynamic_linker" >&6; }
24869 test "$dynamic_linker" = no && can_build_shared=no
24871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24872 if test "$GCC" = yes; then
24873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24877 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24879 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24880 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
24921 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
24922 hardcode_action_CXX=
24923 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24924 test -n "$runpath_var_CXX" ||
24925 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24927 # We can hardcode non-existent directories.
24928 if test "$hardcode_direct_CXX" != no &&
24929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24930 # have to relink, otherwise we might link with an installed library
24931 # when we should be linking with a yet-to-be-installed one
24932 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24933 test "$hardcode_minus_L_CXX" != no; then
24934 # Linking always hardcodes the temporary library directory.
24935 hardcode_action_CXX=relink
24936 else
24937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24938 hardcode_action_CXX=immediate
24940 else
24941 # We cannot hardcode anything, or else we can only hardcode existing
24942 # directories.
24943 hardcode_action_CXX=unsupported
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
24946 $as_echo "$hardcode_action_CXX" >&6; }
24948 if test "$hardcode_action_CXX" = relink ||
24949 test "$inherit_rpath_CXX" = yes; then
24950 # Fast installation is not supported
24951 enable_fast_install=no
24952 elif test "$shlibpath_overrides_runpath" = yes ||
24953 test "$enable_shared" = no; then
24954 # Fast installation is not necessary
24955 enable_fast_install=needless
24964 fi # test -n "$compiler"
24966 CC=$lt_save_CC
24967 LDCXX=$LD
24968 LD=$lt_save_LD
24969 GCC=$lt_save_GCC
24970 with_gnu_ld=$lt_save_with_gnu_ld
24971 lt_cv_path_LDCXX=$lt_cv_path_LD
24972 lt_cv_path_LD=$lt_save_path_LD
24973 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24974 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24975 fi # test "$_lt_caught_CXX_error" != yes
24977 ac_ext=cpp
24978 ac_cpp='$CXXCPP $CPPFLAGS'
24979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24998 # Only expand once:
25004 if test x$enable_darwin_at_rpath = xyes; then
25005 ENABLE_DARWIN_AT_RPATH_TRUE=
25006 ENABLE_DARWIN_AT_RPATH_FALSE='#'
25007 else
25008 ENABLE_DARWIN_AT_RPATH_TRUE='#'
25009 ENABLE_DARWIN_AT_RPATH_FALSE=
25012 DARWIN_DO_EXTRA_RPATH=0
25014 # Check whether --with-darwin-extra-rpath was given.
25015 if test "${with_darwin_extra_rpath+set}" = set; then :
25016 withval=$with_darwin_extra_rpath; if test x"$withval" != x; then
25017 DARWIN_ADD_RPATH="$withval"
25018 DARWIN_DO_EXTRA_RPATH=1
25023 cat >>confdefs.h <<_ACEOF
25024 #define DARWIN_DO_EXTRA_RPATH $DARWIN_DO_EXTRA_RPATH
25025 _ACEOF
25028 cat >>confdefs.h <<_ACEOF
25029 #define DARWIN_ADD_RPATH "$DARWIN_ADD_RPATH"
25030 _ACEOF
25033 # Identify the assembler which will work hand-in-glove with the newly
25034 # built GCC, so that we can examine its features. This is the assembler
25035 # which will be driven by the driver program.
25037 # If build != host, and we aren't building gas in-tree, we identify a
25038 # build->target assembler and hope that it will have the same features
25039 # as the host->target assembler we'll be using.
25040 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
25042 if ${gcc_cv_as+:} false; then :
25044 else
25046 if test -x "$DEFAULT_ASSEMBLER"; then
25047 gcc_cv_as="$DEFAULT_ASSEMBLER"
25048 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
25049 && test -f ../gas/Makefile \
25050 && test x$build = x$host; then
25051 gcc_cv_as=../gas/as-new$build_exeext
25052 elif test -x as$build_exeext; then
25053 # Build using assembler in the current directory.
25054 gcc_cv_as=./as$build_exeext
25055 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
25056 gcc_cv_as="$AS_FOR_TARGET"
25057 else
25058 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
25059 set dummy $AS_FOR_TARGET; ac_word=$2
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25061 $as_echo_n "checking for $ac_word... " >&6; }
25062 if ${ac_cv_path_gcc_cv_as+:} false; then :
25063 $as_echo_n "(cached) " >&6
25064 else
25065 case $gcc_cv_as in
25066 [\\/]* | ?:[\\/]*)
25067 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
25070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25071 for as_dir in $PATH
25073 IFS=$as_save_IFS
25074 test -z "$as_dir" && as_dir=.
25075 for ac_exec_ext in '' $ac_executable_extensions; do
25076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25077 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
25078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25079 break 2
25081 done
25082 done
25083 IFS=$as_save_IFS
25086 esac
25088 gcc_cv_as=$ac_cv_path_gcc_cv_as
25089 if test -n "$gcc_cv_as"; then
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
25091 $as_echo "$gcc_cv_as" >&6; }
25092 else
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25094 $as_echo "no" >&6; }
25101 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
25103 case "$ORIGINAL_AS_FOR_TARGET" in
25104 ./as | ./as$build_exeext) ;;
25105 *) ac_config_files="$ac_config_files as:exec-tool.in"
25107 esac
25109 default_ld=
25110 # Check whether --enable-ld was given.
25111 if test "${enable_ld+set}" = set; then :
25112 enableval=$enable_ld; case "${enableval}" in
25114 default_ld=ld.gold
25116 esac
25120 install_gold_as_default=no
25121 # Check whether --enable-gold was given.
25122 if test "${enable_gold+set}" = set; then :
25123 enableval=$enable_gold; case "${enableval}" in
25124 default)
25125 install_gold_as_default=yes
25127 yes)
25128 if test x${default_ld} != x; then
25129 install_gold_as_default=yes
25135 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
25137 esac
25141 # Identify the linker which will work hand-in-glove with the newly
25142 # built GCC, so that we can examine its features. This is the linker
25143 # which will be driven by the driver program.
25145 # If build != host, and we aren't building gas in-tree, we identify a
25146 # build->target linker and hope that it will have the same features
25147 # as the host->target linker we'll be using.
25148 gcc_cv_gld_major_version=
25149 gcc_cv_gld_minor_version=
25150 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
25151 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
25152 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
25154 if ${gcc_cv_ld+:} false; then :
25156 else
25158 if test -x "$DEFAULT_LINKER"; then
25159 gcc_cv_ld="$DEFAULT_LINKER"
25160 elif test $install_gold_as_default = yes \
25161 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
25162 && test -f ../gold/Makefile \
25163 && test x$build = x$host; then
25164 gcc_cv_ld=../gold/ld-new$build_exeext
25165 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
25166 && test -f ../ld/Makefile \
25167 && test x$build = x$host; then
25168 gcc_cv_ld=../ld/ld-new$build_exeext
25169 elif test -x collect-ld$build_exeext; then
25170 # Build using linker in the current directory.
25171 gcc_cv_ld=./collect-ld$build_exeext
25172 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
25173 gcc_cv_ld="$LD_FOR_TARGET"
25174 else
25175 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
25176 set dummy $LD_FOR_TARGET; ac_word=$2
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25178 $as_echo_n "checking for $ac_word... " >&6; }
25179 if ${ac_cv_path_gcc_cv_ld+:} false; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 case $gcc_cv_ld in
25183 [\\/]* | ?:[\\/]*)
25184 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
25187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25188 for as_dir in $PATH
25190 IFS=$as_save_IFS
25191 test -z "$as_dir" && as_dir=.
25192 for ac_exec_ext in '' $ac_executable_extensions; do
25193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25194 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
25195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25196 break 2
25198 done
25199 done
25200 IFS=$as_save_IFS
25203 esac
25205 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
25206 if test -n "$gcc_cv_ld"; then
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25208 $as_echo "$gcc_cv_ld" >&6; }
25209 else
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25211 $as_echo "no" >&6; }
25218 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
25219 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
25220 # if the PLUGIN_LD is set ld-new, just have it as ld
25221 # as that is the installed named.
25222 if test x$PLUGIN_LD_SUFFIX = xld-new \
25223 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
25224 PLUGIN_LD_SUFFIX=ld
25227 # Check whether --with-plugin-ld was given.
25228 if test "${with_plugin_ld+set}" = set; then :
25229 withval=$with_plugin_ld; if test x"$withval" != x; then
25230 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
25231 PLUGIN_LD_SUFFIX="$withval"
25237 cat >>confdefs.h <<_ACEOF
25238 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
25239 _ACEOF
25242 # Check to see if we are using gold instead of ld
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
25244 $as_echo_n "checking whether we are using gold... " >&6; }
25245 ld_is_gold=no
25246 if test x$gcc_cv_ld != x; then
25247 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25248 | grep "GNU gold" > /dev/null; then
25249 ld_is_gold=yes
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
25253 $as_echo "$ld_is_gold" >&6; }
25255 # Check to see if we are using mold instead of ld
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
25257 $as_echo_n "checking whether we are using mold... " >&6; }
25258 ld_is_mold=no
25259 if test x$gcc_cv_ld != x; then
25260 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
25261 | grep "mold" > /dev/null; then
25262 ld_is_mold=yes
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
25266 $as_echo "$ld_is_mold" >&6; }
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
25270 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
25271 # Check to see if default ld is not gold, but gold is
25272 # available and has support for split stack. If gcc was configured
25273 # with gold then no checking is done.
25275 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
25277 # For platforms other than powerpc64*, enable as appropriate.
25279 gold_non_default=no
25280 ld_gold=`which ${gcc_cv_ld}.gold`
25281 # Make sure this gold has minimal split stack support
25282 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
25283 ld_vers=`$ld_gold --version | sed 1q`
25284 gold_vers=`echo $ld_vers | sed -n \
25285 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25286 case $target in
25287 # check that the gold version contains the complete split stack support
25288 # on powerpc64 big and little endian
25289 powerpc64*-*-*)
25290 case "$gold_vers" in
25291 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
25293 *) gold_non_default=no
25295 esac
25297 esac
25299 if test $gold_non_default = yes; then
25301 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
25306 $as_echo "$gold_non_default" >&6; }
25308 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
25310 case "$ORIGINAL_LD_FOR_TARGET" in
25311 ./collect-ld | ./collect-ld$build_exeext) ;;
25312 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
25314 esac
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
25317 $as_echo_n "checking what linker to use... " >&6; }
25318 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
25319 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
25320 # Single tree build which includes ld. We want to prefer it
25321 # over whatever linker top-level may have detected, since
25322 # we'll use what we're building after installation anyway.
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
25324 $as_echo "newly built ld" >&6; }
25325 in_tree_ld=yes
25326 in_tree_ld_is_elf=no
25327 if (grep 'EMUL = .*elf' ../ld/Makefile \
25328 || grep 'EMUL = .*linux' ../ld/Makefile \
25329 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
25330 in_tree_ld_is_elf=yes
25331 elif test "$ld_is_gold" = yes; then
25332 in_tree_ld_is_elf=yes
25334 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
25336 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
25337 if test x$gcc_cv_gld_version != x; then
25338 break
25340 done
25341 case $gcc_cv_gld_version in
25342 VERSION=[0-9]*) ;;
25343 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
25344 esac
25345 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
25346 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
25347 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
25348 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
25349 else
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
25351 $as_echo "$gcc_cv_ld" >&6; }
25352 in_tree_ld=no
25353 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
25354 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
25355 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
25361 # Figure out what nm we will be using.
25362 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
25363 if ${gcc_cv_nm+:} false; then :
25365 else
25367 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25368 && test -f ../binutils/Makefile \
25369 && test x$build = x$host; then
25370 gcc_cv_nm=../binutils/nm-new$build_exeext
25371 elif test -x nm$build_exeext; then
25372 gcc_cv_nm=./nm$build_exeext
25373 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
25374 gcc_cv_nm="$NM_FOR_TARGET"
25375 else
25376 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
25377 set dummy $NM_FOR_TARGET; ac_word=$2
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25379 $as_echo_n "checking for $ac_word... " >&6; }
25380 if ${ac_cv_path_gcc_cv_nm+:} false; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 case $gcc_cv_nm in
25384 [\\/]* | ?:[\\/]*)
25385 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
25388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25389 for as_dir in $PATH
25391 IFS=$as_save_IFS
25392 test -z "$as_dir" && as_dir=.
25393 for ac_exec_ext in '' $ac_executable_extensions; do
25394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25395 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
25396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25397 break 2
25399 done
25400 done
25401 IFS=$as_save_IFS
25404 esac
25406 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
25407 if test -n "$gcc_cv_nm"; then
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25409 $as_echo "$gcc_cv_nm" >&6; }
25410 else
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25412 $as_echo "no" >&6; }
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
25420 $as_echo_n "checking what nm to use... " >&6; }
25421 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
25422 # Single tree build which includes binutils.
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
25424 $as_echo "newly built nm" >&6; }
25425 in_tree_nm=yes
25426 else
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
25428 $as_echo "$gcc_cv_nm" >&6; }
25429 in_tree_nm=no
25432 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
25434 case "$ORIGINAL_NM_FOR_TARGET" in
25435 ./nm | ./nm$build_exeext) ;;
25436 *) ac_config_files="$ac_config_files nm:exec-tool.in"
25438 esac
25441 # Figure out what objdump we will be using.
25442 if ${gcc_cv_objdump+:} false; then :
25444 else
25446 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25447 && test -f ../binutils/Makefile \
25448 && test x$build = x$host; then
25449 # Single tree build which includes binutils.
25450 gcc_cv_objdump=../binutils/objdump$build_exeext
25451 elif test -x objdump$build_exeext; then
25452 gcc_cv_objdump=./objdump$build_exeext
25453 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
25454 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
25455 else
25456 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
25457 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25459 $as_echo_n "checking for $ac_word... " >&6; }
25460 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
25461 $as_echo_n "(cached) " >&6
25462 else
25463 case $gcc_cv_objdump in
25464 [\\/]* | ?:[\\/]*)
25465 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
25468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25469 for as_dir in $PATH
25471 IFS=$as_save_IFS
25472 test -z "$as_dir" && as_dir=.
25473 for ac_exec_ext in '' $ac_executable_extensions; do
25474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25475 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
25476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25477 break 2
25479 done
25480 done
25481 IFS=$as_save_IFS
25484 esac
25486 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
25487 if test -n "$gcc_cv_objdump"; then
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25489 $as_echo "$gcc_cv_objdump" >&6; }
25490 else
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25492 $as_echo "no" >&6; }
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
25500 $as_echo_n "checking what objdump to use... " >&6; }
25501 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
25502 # Single tree build which includes binutils.
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
25504 $as_echo "newly built objdump" >&6; }
25505 elif test x$gcc_cv_objdump = x; then
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25507 $as_echo "not found" >&6; }
25508 else
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
25510 $as_echo "$gcc_cv_objdump" >&6; }
25513 # Figure out what readelf we will be using.
25514 if ${gcc_cv_readelf+:} false; then :
25516 else
25518 if test -f $gcc_cv_binutils_srcdir/configure.ac \
25519 && test -f ../binutils/Makefile \
25520 && test x$build = x$host; then
25521 # Single tree build which includes binutils.
25522 gcc_cv_readelf=../binutils/readelf$build_exeext
25523 elif test -x readelf$build_exeext; then
25524 gcc_cv_readelf=./readelf$build_exeext
25525 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
25526 gcc_cv_readelf="$READELF_FOR_TARGET"
25527 else
25528 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
25529 set dummy $READELF_FOR_TARGET; ac_word=$2
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25531 $as_echo_n "checking for $ac_word... " >&6; }
25532 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 case $gcc_cv_readelf in
25536 [\\/]* | ?:[\\/]*)
25537 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
25540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25541 for as_dir in $PATH
25543 IFS=$as_save_IFS
25544 test -z "$as_dir" && as_dir=.
25545 for ac_exec_ext in '' $ac_executable_extensions; do
25546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25547 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
25548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25549 break 2
25551 done
25552 done
25553 IFS=$as_save_IFS
25556 esac
25558 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
25559 if test -n "$gcc_cv_readelf"; then
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25561 $as_echo "$gcc_cv_readelf" >&6; }
25562 else
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25564 $as_echo "no" >&6; }
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
25572 $as_echo_n "checking what readelf to use... " >&6; }
25573 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
25574 # Single tree build which includes binutils.
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
25576 $as_echo "newly built readelf" >&6; }
25577 elif test x$gcc_cv_readelf = x; then
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25579 $as_echo "not found" >&6; }
25580 else
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
25582 $as_echo "$gcc_cv_readelf" >&6; }
25585 # Figure out what otool we will be using.
25586 if ${gcc_cv_otool+:} false; then :
25588 else
25590 if test -x otool$build_exeext; then
25591 gcc_cv_otool=./otool$build_exeext
25592 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
25593 gcc_cv_otool="$OTOOL_FOR_TARGET"
25594 else
25595 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
25596 set dummy $OTOOL_FOR_TARGET; ac_word=$2
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25598 $as_echo_n "checking for $ac_word... " >&6; }
25599 if ${ac_cv_path_gcc_cv_otool+:} false; then :
25600 $as_echo_n "(cached) " >&6
25601 else
25602 case $gcc_cv_otool in
25603 [\\/]* | ?:[\\/]*)
25604 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
25607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25608 for as_dir in $PATH
25610 IFS=$as_save_IFS
25611 test -z "$as_dir" && as_dir=.
25612 for ac_exec_ext in '' $ac_executable_extensions; do
25613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25614 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
25615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25616 break 2
25618 done
25619 done
25620 IFS=$as_save_IFS
25623 esac
25625 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
25626 if test -n "$gcc_cv_otool"; then
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25628 $as_echo "$gcc_cv_otool" >&6; }
25629 else
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25631 $as_echo "no" >&6; }
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
25639 $as_echo_n "checking what otool to use... " >&6; }
25640 if test x$gcc_cv_otool = x; then
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25642 $as_echo "not found" >&6; }
25643 else
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
25645 $as_echo "$gcc_cv_otool" >&6; }
25648 # Figure out the dsymutil we will use.
25649 if ${gcc_cv_dsymutil+:} false; then :
25651 else
25653 if test -x "$DEFAULT_DSYMUTIL"; then
25654 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
25655 elif test -x dsymutil$build_exeext; then
25656 gcc_cv_dsymutil=./dsymutil$build_exeext
25657 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
25658 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
25659 elif ( set dummy $DSYMUTIL; test -x $2 ); then
25660 gcc_cv_dsymutil=$DSYMUTIL
25661 else
25662 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
25663 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25665 $as_echo_n "checking for $ac_word... " >&6; }
25666 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
25667 $as_echo_n "(cached) " >&6
25668 else
25669 case $gcc_cv_dsymutil in
25670 [\\/]* | ?:[\\/]*)
25671 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
25674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25675 for as_dir in $PATH
25677 IFS=$as_save_IFS
25678 test -z "$as_dir" && as_dir=.
25679 for ac_exec_ext in '' $ac_executable_extensions; do
25680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25681 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
25682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25683 break 2
25685 done
25686 done
25687 IFS=$as_save_IFS
25690 esac
25692 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
25693 if test -n "$gcc_cv_dsymutil"; then
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
25695 $as_echo "$gcc_cv_dsymutil" >&6; }
25696 else
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25698 $as_echo "no" >&6; }
25705 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
25707 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
25708 ./dsymutil | ./dsymutil$build_exeext) ;;
25709 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
25711 esac
25713 # Figure out what assembler alignment features are present.
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
25715 $as_echo_n "checking assembler flags... " >&6; }
25716 if ${gcc_cv_as_flags+:} false; then :
25717 $as_echo_n "(cached) " >&6
25718 else
25719 case "$target" in
25720 i[34567]86-*-linux*)
25721 gcc_cv_as_flags=--32
25723 x86_64-*-linux-gnux32)
25724 gcc_cv_as_flags=--x32
25726 x86_64-*-linux*)
25727 gcc_cv_as_flags=--64
25729 powerpc*-*-darwin*)
25730 gcc_cv_as_flags="-arch ppc"
25733 gcc_cv_as_flags=" "
25735 esac
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
25738 $as_echo "$gcc_cv_as_flags" >&6; }
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
25741 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
25742 if ${gcc_cv_as_balign_and_p2align+:} false; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 gcc_cv_as_balign_and_p2align=no
25746 if test x$gcc_cv_as != x; then
25747 $as_echo '.balign 4
25748 .p2align 2' > conftest.s
25749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25755 then
25756 gcc_cv_as_balign_and_p2align=yes
25757 else
25758 echo "configure: failed program was" >&5
25759 cat conftest.s >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
25765 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
25766 if test $gcc_cv_as_balign_and_p2align = yes; then
25768 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
25774 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
25775 if ${gcc_cv_as_max_skip_p2align+:} false; then :
25776 $as_echo_n "(cached) " >&6
25777 else
25778 gcc_cv_as_max_skip_p2align=no
25779 if test x$gcc_cv_as != x; then
25780 $as_echo '.p2align 4,,7' > conftest.s
25781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25783 (eval $ac_try) 2>&5
25784 ac_status=$?
25785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25786 test $ac_status = 0; }; }
25787 then
25788 gcc_cv_as_max_skip_p2align=yes
25789 else
25790 echo "configure: failed program was" >&5
25791 cat conftest.s >&5
25793 rm -f conftest.o conftest.s
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
25797 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
25798 if test $gcc_cv_as_max_skip_p2align = yes; then
25800 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
25806 $as_echo_n "checking assembler for .literal16... " >&6; }
25807 if ${gcc_cv_as_literal16+:} false; then :
25808 $as_echo_n "(cached) " >&6
25809 else
25810 gcc_cv_as_literal16=no
25811 if test x$gcc_cv_as != x; then
25812 $as_echo '.literal16' > conftest.s
25813 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25816 ac_status=$?
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }
25819 then
25820 gcc_cv_as_literal16=yes
25821 else
25822 echo "configure: failed program was" >&5
25823 cat conftest.s >&5
25825 rm -f conftest.o conftest.s
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
25829 $as_echo "$gcc_cv_as_literal16" >&6; }
25830 if test $gcc_cv_as_literal16 = yes; then
25832 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
25838 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
25839 if ${gcc_cv_as_subsection_m1+:} false; then :
25840 $as_echo_n "(cached) " >&6
25841 else
25842 gcc_cv_as_subsection_m1=no
25843 if test x$gcc_cv_as != x; then
25844 $as_echo 'conftest_label1: .word 0
25845 .subsection -1
25846 conftest_label2: .word 0
25847 .previous' > conftest.s
25848 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25850 (eval $ac_try) 2>&5
25851 ac_status=$?
25852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25853 test $ac_status = 0; }; }
25854 then
25855 if test x$gcc_cv_nm != x; then
25856 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25857 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25858 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25859 then :
25860 else gcc_cv_as_subsection_m1=yes
25862 rm -f conftest.nm1 conftest.nm2
25864 else
25865 echo "configure: failed program was" >&5
25866 cat conftest.s >&5
25868 rm -f conftest.o conftest.s
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
25872 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
25873 if test $gcc_cv_as_subsection_m1 = yes; then
25875 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
25881 $as_echo_n "checking assembler for .weak... " >&6; }
25882 if ${gcc_cv_as_weak+:} false; then :
25883 $as_echo_n "(cached) " >&6
25884 else
25885 gcc_cv_as_weak=no
25886 if test x$gcc_cv_as != x; then
25887 $as_echo ' .weak foobar' > conftest.s
25888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }
25894 then
25895 gcc_cv_as_weak=yes
25896 else
25897 echo "configure: failed program was" >&5
25898 cat conftest.s >&5
25900 rm -f conftest.o conftest.s
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
25904 $as_echo "$gcc_cv_as_weak" >&6; }
25905 if test $gcc_cv_as_weak = yes; then
25907 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
25913 $as_echo_n "checking assembler for .weakref... " >&6; }
25914 if ${gcc_cv_as_weakref+:} false; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 gcc_cv_as_weakref=no
25918 if test x$gcc_cv_as != x; then
25919 $as_echo ' .weakref foobar, barfnot' > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_weakref=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
25936 $as_echo "$gcc_cv_as_weakref" >&6; }
25937 if test $gcc_cv_as_weakref = yes; then
25939 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
25945 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
25946 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
25947 $as_echo_n "(cached) " >&6
25948 else
25949 gcc_cv_as_nsubspa_comdat=no
25950 if test x$gcc_cv_as != x; then
25951 $as_echo ' .SPACE $TEXT$
25952 .NSUBSPA $CODE$,COMDAT' > conftest.s
25953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then
25960 gcc_cv_as_nsubspa_comdat=yes
25961 else
25962 echo "configure: failed program was" >&5
25963 cat conftest.s >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
25969 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
25970 if test $gcc_cv_as_nsubspa_comdat = yes; then
25972 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
25977 # .hidden needs to be supported in both the assembler and the linker,
25978 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25979 # This is irritatingly difficult to feature test for; we have to check the
25980 # date string after the version number. If we've got an in-tree
25981 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25982 # to be safe.
25983 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25984 case "${target}" in
25985 *-*-aix*)
25986 conftest_s=' .globl foobar,hidden'
25989 conftest_s=' .hidden foobar
25990 foobar:'
25992 esac
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
25994 $as_echo_n "checking assembler for .hidden... " >&6; }
25995 if ${gcc_cv_as_hidden+:} false; then :
25996 $as_echo_n "(cached) " >&6
25997 else
25998 gcc_cv_as_hidden=no
25999 if test x$gcc_cv_as != x; then
26000 $as_echo "$conftest_s" > conftest.s
26001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }
26007 then
26008 gcc_cv_as_hidden=yes
26009 else
26010 echo "configure: failed program was" >&5
26011 cat conftest.s >&5
26013 rm -f conftest.o conftest.s
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
26017 $as_echo "$gcc_cv_as_hidden" >&6; }
26020 case "${target}" in
26021 *-*-darwin*)
26022 # Darwin as has some visibility support, though with a different syntax.
26023 gcc_cv_as_hidden=yes
26025 esac
26027 # gnu_indirect_function type is an extension proposed at
26028 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
26029 # selection of function implementation
26030 # Check whether --enable-gnu-indirect-function was given.
26031 if test "${enable_gnu_indirect_function+set}" = set; then :
26032 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
26033 yes | no) ;;
26034 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
26035 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26036 esac
26037 else
26038 enable_gnu_indirect_function="$default_gnu_indirect_function"
26042 case "${target}" in
26043 riscv*-*-linux*)
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
26045 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
26046 cat > conftest.s <<EOF
26047 .text
26048 .type foo_resolver, @function
26049 foo_resolver:
26051 .size foo_resolver, .-foo_resolver
26053 .globl foo
26054 .type foo, %gnu_indirect_function
26055 .set foo, foo_resolver
26057 .globl bar
26058 .type bar, @function
26059 bar:
26060 call foo
26062 .size bar, .-bar
26064 if test x$gcc_cv_as != x \
26065 && test x$gcc_cv_ld != x \
26066 && test x$gcc_cv_readelf != x \
26067 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26068 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26069 && $gcc_cv_readelf --relocs --wide conftest \
26070 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
26071 enable_gnu_indirect_function=yes
26073 rm -f conftest conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
26075 $as_echo "$enable_gnu_indirect_function" >&6; }
26077 esac
26079 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
26081 cat >>confdefs.h <<_ACEOF
26082 #define HAVE_GNU_INDIRECT_FUNCTION $gif
26083 _ACEOF
26087 if test $in_tree_ld != yes ; then
26088 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
26089 if echo "$ld_ver" | grep GNU > /dev/null; then
26090 if test x"$ld_is_gold" = xyes; then
26091 # GNU gold --version looks like this:
26093 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
26095 # We extract the binutils version which is more familiar and specific
26096 # than the gold version.
26097 ld_vers=`echo $ld_ver | sed -n \
26098 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26099 else
26100 # GNU ld --version looks like this:
26102 # GNU ld (GNU Binutils) 2.21.51.20110225
26103 ld_vers=`echo $ld_ver | sed -n \
26104 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26106 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'`
26107 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26108 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26109 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
26110 else
26111 case "${target}" in
26112 *-*-solaris2*)
26113 # Solaris 2 ld -V output looks like this for a regular version:
26115 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
26117 # but test versions add stuff at the end:
26119 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
26121 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
26122 # numbers can be used in ld.so.1 feature checks even if a different
26123 # linker is configured.
26124 ld_ver=`$gcc_cv_ld -V 2>&1`
26125 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
26126 ld_vers=`echo $ld_ver | sed -n \
26127 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
26128 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26129 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26132 esac
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
26137 $as_echo_n "checking linker for .hidden support... " >&6; }
26138 if ${gcc_cv_ld_hidden+:} false; then :
26139 $as_echo_n "(cached) " >&6
26140 else
26141 if test $in_tree_ld = yes ; then
26142 gcc_cv_ld_hidden=no
26143 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 \
26144 && test $in_tree_ld_is_elf = yes; then
26145 gcc_cv_ld_hidden=yes
26147 else
26148 gcc_cv_ld_hidden=yes
26149 if test x"$ld_is_gold" = xyes; then
26151 elif test x"$ld_is_mold" = xyes; then
26153 elif echo "$ld_ver" | grep GNU > /dev/null; then
26154 if test 0"$ld_date" -lt 20020404; then
26155 if test -n "$ld_date"; then
26156 # If there was date string, but was earlier than 2002-04-04, fail
26157 gcc_cv_ld_hidden=no
26158 elif test -z "$ld_vers"; then
26159 # If there was no date string nor ld version number, something is wrong
26160 gcc_cv_ld_hidden=no
26161 else
26162 test -z "$ld_vers_patch" && ld_vers_patch=0
26163 if test "$ld_vers_major" -lt 2; then
26164 gcc_cv_ld_hidden=no
26165 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
26166 gcc_cv_ld_hidden="no"
26167 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
26168 gcc_cv_ld_hidden=no
26172 else
26173 case "${target}" in
26174 *-*-aix[789]*)
26175 gcc_cv_ld_hidden=yes
26177 *-*-darwin*)
26178 # Darwin ld has some visibility support.
26179 gcc_cv_ld_hidden=yes
26181 hppa64*-*-hpux* | ia64*-*-hpux*)
26182 gcc_cv_ld_hidden=yes
26184 *-*-solaris2*)
26185 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
26186 # .symbolic was only added in Solaris 9 12/02.
26187 gcc_cv_ld_hidden=yes
26190 gcc_cv_ld_hidden=no
26192 esac
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
26197 $as_echo "$gcc_cv_ld_hidden" >&6; }
26198 libgcc_visibility=no
26201 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
26202 libgcc_visibility=yes
26204 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
26209 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
26210 gcc_cv_ld_ro_rw_mix=unknown
26211 if test $in_tree_ld = yes ; then
26212 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 \
26213 && test $in_tree_ld_is_elf = yes; then
26214 gcc_cv_ld_ro_rw_mix=read-write
26216 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26217 echo '.section myfoosect, "a"' > conftest1.s
26218 echo '.section myfoosect, "aw"' > conftest2.s
26219 echo '.byte 1' >> conftest2.s
26220 echo '.section myfoosect, "a"' > conftest3.s
26221 echo '.byte 0' >> conftest3.s
26222 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
26223 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
26224 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1; then
26225 if $gcc_cv_ld -shared -o conftest1.so conftest1.o \
26226 conftest2.o conftest3.o > /dev/null 2>&1 \
26227 || $gcc_cv_ld -r -o conftest1.so conftest1.o \
26228 conftest2.o conftest3.o > /dev/null 2>&1; then
26229 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
26230 | sed -e '/myfoosect/!d' -e N`
26231 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
26232 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
26233 gcc_cv_ld_ro_rw_mix=read-only
26234 else
26235 gcc_cv_ld_ro_rw_mix=read-write
26240 rm -f conftest.* conftest[123].*
26242 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
26244 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
26248 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
26250 # Check whether --enable-initfini-array was given.
26251 if test "${enable_initfini_array+set}" = set; then :
26252 enableval=$enable_initfini_array;
26253 else
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
26256 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
26257 if ${gcc_cv_initfini_array+:} false; then :
26258 $as_echo_n "(cached) " >&6
26259 else
26260 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
26261 case "${target}" in
26262 ia64-*)
26263 if test "$cross_compiling" = yes; then :
26264 gcc_cv_initfini_array=no
26265 else
26266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26267 /* end confdefs.h. */
26269 #ifndef __ELF__
26270 #error Not an ELF OS
26271 #endif
26272 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
26273 if it can be used. */
26274 static int x = -1;
26275 int main (void) { return x; }
26276 int foo (void) { x = 0; }
26277 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
26279 _ACEOF
26280 if ac_fn_cxx_try_run "$LINENO"; then :
26281 gcc_cv_initfini_array=yes
26282 else
26283 gcc_cv_initfini_array=no
26285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26286 conftest.$ac_objext conftest.beam conftest.$ac_ext
26290 gcc_cv_initfini_array=no
26291 if test $in_tree_ld = yes ; then
26292 if test "$gcc_cv_gld_major_version" -eq 2 \
26293 -a "$gcc_cv_gld_minor_version" -ge 22 \
26294 -o "$gcc_cv_gld_major_version" -gt 2 \
26295 && test $in_tree_ld_is_elf = yes; then
26296 gcc_cv_initfini_array=yes
26298 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26299 case $target:$gas in
26300 *:yes)
26301 sh_flags='"a"'
26302 sh_type='%progbits'
26304 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
26305 sh_flags='"a"'
26306 sh_type='@progbits'
26308 sparc*-*-solaris2*:no)
26309 sh_flags='#alloc'
26310 sh_type='#progbits'
26311 sh_quote='"'
26313 esac
26314 case "$target:$gnu_ld" in
26315 *:yes)
26316 cat > conftest.s <<EOF
26317 .section .dtors,$sh_flags,$sh_type
26318 .balign 4
26319 .byte 'A', 'A', 'A', 'A'
26320 .section .ctors,$sh_flags,$sh_type
26321 .balign 4
26322 .byte 'B', 'B', 'B', 'B'
26323 .section .fini_array.65530,$sh_flags,$sh_type
26324 .balign 4
26325 .byte 'C', 'C', 'C', 'C'
26326 .section .init_array.65530,$sh_flags,$sh_type
26327 .balign 4
26328 .byte 'D', 'D', 'D', 'D'
26329 .section .dtors.64528,$sh_flags,$sh_type
26330 .balign 4
26331 .byte 'E', 'E', 'E', 'E'
26332 .section .ctors.64528,$sh_flags,$sh_type
26333 .balign 4
26334 .byte 'F', 'F', 'F', 'F'
26335 .section .fini_array.01005,$sh_flags,$sh_type
26336 .balign 4
26337 .byte 'G', 'G', 'G', 'G'
26338 .section .init_array.01005,$sh_flags,$sh_type
26339 .balign 4
26340 .byte 'H', 'H', 'H', 'H'
26341 .text
26342 .globl _start
26343 _start:
26345 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26346 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26347 && $gcc_cv_objdump -s -j .init_array conftest \
26348 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
26349 && $gcc_cv_objdump -s -j .fini_array conftest \
26350 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
26351 gcc_cv_initfini_array=yes
26354 *-*-solaris2*:no)
26355 # When Solaris ld added constructor priority support, it was
26356 # decided to only handle .init_array.N/.fini_array.N since
26357 # there was no need for backwards compatibility with
26358 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
26359 # sections with correct execution order resp. to
26360 # .init_array/.fini_array, while gld merges them into
26361 # .init_array/.fini_array.
26362 cat > conftest.s <<EOF
26363 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
26364 .align 4
26365 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
26366 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
26367 .align 4
26368 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
26369 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
26370 .align 4
26371 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
26372 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
26373 .align 4
26374 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
26375 .text
26376 .globl _start
26377 _start:
26379 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
26380 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
26381 && $gcc_cv_objdump -s -j .init_array conftest \
26382 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
26383 && $gcc_cv_objdump -s -j .fini_array conftest \
26384 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
26385 gcc_cv_initfini_array=yes
26388 esac
26389 rm -f conftest conftest.*
26391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26392 /* end confdefs.h. */
26394 #ifndef __ELF__
26395 # error Not an ELF OS
26396 #endif
26397 #include <stdlib.h>
26398 #if defined __GLIBC_PREREQ
26399 # if __GLIBC_PREREQ (2, 4)
26400 # else
26401 # error GLIBC 2.4 required
26402 # endif
26403 #else
26404 # if defined __sun__ && defined __svr4__
26405 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
26406 # else
26407 # error The C library not known to support .init_array/.fini_array
26408 # endif
26409 #endif
26411 _ACEOF
26412 if ac_fn_cxx_try_cpp "$LINENO"; then :
26414 else
26415 gcc_cv_initfini_array=no
26417 rm -f conftest.err conftest.i conftest.$ac_ext;;
26418 esac
26419 else
26420 case "${target}" in
26421 aarch64*-linux-gnu*)
26422 # AArch64 postdates glibc support for .init_array/.fini_array,
26423 # so we don't need the preprocessor test above.
26424 gcc_cv_initfini_array=yes
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
26429 $as_echo_n "checking cross compile... guessing... " >&6; }
26430 gcc_cv_initfini_array=no
26432 esac
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
26436 $as_echo "$gcc_cv_initfini_array" >&6; }
26437 enable_initfini_array=$gcc_cv_initfini_array
26442 cat >>confdefs.h <<_ACEOF
26443 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
26444 _ACEOF
26448 # Some assemblers (GNU as for LoongArch) generates relocations for
26449 # leb128 symbol arithmetic for relaxation, we need to disable relaxation
26450 # probing leb128 support then.
26451 case $target in
26452 loongarch*-*-*)
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-relax support" >&5
26454 $as_echo_n "checking assembler for -mno-relax support... " >&6; }
26455 if ${gcc_cv_as_mno_relax+:} false; then :
26456 $as_echo_n "(cached) " >&6
26457 else
26458 gcc_cv_as_mno_relax=no
26459 if test x$gcc_cv_as != x; then
26460 $as_echo '.text' > conftest.s
26461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-relax -o conftest.o conftest.s >&5'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; }
26467 then
26468 gcc_cv_as_mno_relax=yes
26469 else
26470 echo "configure: failed program was" >&5
26471 cat conftest.s >&5
26473 rm -f conftest.o conftest.s
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mno_relax" >&5
26477 $as_echo "$gcc_cv_as_mno_relax" >&6; }
26478 if test $gcc_cv_as_mno_relax = yes; then
26479 check_leb128_asflags=-mno-relax
26484 check_leb128_asflags=
26486 esac
26488 # Check if we have .[us]leb128, and support symbol arithmetic with it.
26489 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
26490 # these directives, even when they appear to accept them.
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
26492 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
26493 if ${gcc_cv_as_leb128+:} false; then :
26494 $as_echo_n "(cached) " >&6
26495 else
26496 gcc_cv_as_leb128=no
26497 if test x$gcc_cv_as != x; then
26498 $as_echo ' .data
26499 .uleb128 L2 - L1
26501 .uleb128 1280
26502 .sleb128 -1010
26504 .uleb128 0x8000000000000000
26505 ' > conftest.s
26506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $check_leb128_asflags -o conftest.o conftest.s >&5'
26507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26511 test $ac_status = 0; }; }
26512 then
26514 if test "x$gcc_cv_objdump" != x; then
26515 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
26516 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
26517 gcc_cv_as_leb128=yes
26519 elif test "x$gcc_cv_otool" != x; then
26520 if $gcc_cv_otool -d conftest.o 2>/dev/null \
26521 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
26522 gcc_cv_as_leb128=yes
26524 else
26525 # play safe, assume the assembler is broken.
26529 else
26530 echo "configure: failed program was" >&5
26531 cat conftest.s >&5
26533 rm -f conftest.o conftest.s
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
26537 $as_echo "$gcc_cv_as_leb128" >&6; }
26538 if test $gcc_cv_as_leb128 = yes; then
26540 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
26543 if test $gcc_cv_as_leb128 != yes; then
26545 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
26549 # Determine if an .eh_frame section is read-only.
26550 gcc_fn_eh_frame_ro () {
26551 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
26552 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
26553 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
26556 # Check if we have assembler support for unwind directives.
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
26558 $as_echo_n "checking assembler for cfi directives... " >&6; }
26559 if ${gcc_cv_as_cfi_directive+:} false; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562 gcc_cv_as_cfi_directive=no
26563 if test x$gcc_cv_as != x; then
26564 $as_echo ' .text
26565 .cfi_startproc
26566 .cfi_offset 0, 0
26567 .cfi_same_value 1
26568 .cfi_def_cfa 1, 2
26569 .cfi_escape 1, 2, 3, 4, 5
26570 .cfi_endproc' > conftest.s
26571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26573 (eval $ac_try) 2>&5
26574 ac_status=$?
26575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26576 test $ac_status = 0; }; }
26577 then
26578 case "$target" in
26579 *-*-solaris*)
26580 # If the linker used on Solaris (like Sun ld) isn't capable of merging
26581 # read-only and read-write sections, we need to make sure that the
26582 # assembler used emits read-write .eh_frame sections.
26583 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
26584 gcc_cv_as_cfi_directive=yes
26585 elif test "x$gcc_cv_objdump" = x; then
26586 # No objdump, err on the side of caution.
26587 gcc_cv_as_cfi_directive=no
26588 else
26589 if test x$gas = xyes; then
26590 as_32_opt="--32"
26591 as_64_opt="--64"
26592 else
26593 as_32_opt="-m32"
26594 as_64_opt="-m64"
26596 case "$target" in
26597 sparc*-*-solaris2.*)
26598 # On Solaris/SPARC, .eh_frame sections should always be read-write.
26599 if gcc_fn_eh_frame_ro $as_32_opt \
26600 || gcc_fn_eh_frame_ro $as_64_opt; then
26601 gcc_cv_as_cfi_directive=no
26602 else
26603 gcc_cv_as_cfi_directive=yes
26606 i?86-*-solaris2.* | x86_64-*-solaris2.*)
26607 # On Solaris/x86, make sure that GCC and assembler agree on using
26608 # read-only .eh_frame sections for 64-bit.
26609 if gcc_fn_eh_frame_ro $as_32_opt; then
26610 gcc_cv_as_cfi_directive=no
26611 elif gcc_fn_eh_frame_ro $as_64_opt; then
26612 gcc_cv_as_cfi_directive=yes
26613 else
26614 gcc_cv_as_cfi_directive=no
26617 esac
26620 *-*-*)
26621 gcc_cv_as_cfi_directive=yes
26623 esac
26624 else
26625 echo "configure: failed program was" >&5
26626 cat conftest.s >&5
26628 rm -f conftest.o conftest.s
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
26632 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
26635 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
26637 $as_echo_n "checking assembler for working cfi advance... " >&6; }
26638 if ${gcc_cv_as_cfi_advance_working+:} false; then :
26639 $as_echo_n "(cached) " >&6
26640 else
26641 gcc_cv_as_cfi_advance_working=no
26642 if test x$gcc_cv_as != x; then
26643 $as_echo ' .text
26644 .cfi_startproc
26645 .cfi_adjust_cfa_offset 64
26646 .skip 75040, 0
26647 .cfi_adjust_cfa_offset 128
26648 .cfi_endproc' > conftest.s
26649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26654 test $ac_status = 0; }; }
26655 then
26657 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
26658 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
26659 gcc_cv_as_cfi_advance_working=yes
26662 else
26663 echo "configure: failed program was" >&5
26664 cat conftest.s >&5
26666 rm -f conftest.o conftest.s
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
26670 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
26673 else
26674 # no objdump, err on the side of caution
26675 gcc_cv_as_cfi_advance_working=no
26679 cat >>confdefs.h <<_ACEOF
26680 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
26681 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
26682 _ACEOF
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
26687 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
26688 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
26689 $as_echo_n "(cached) " >&6
26690 else
26691 gcc_cv_as_cfi_personality_directive=no
26692 if test x$gcc_cv_as != x; then
26693 $as_echo ' .text
26694 .cfi_startproc
26695 .cfi_personality 0, symbol
26696 .cfi_endproc' > conftest.s
26697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26703 then
26704 gcc_cv_as_cfi_personality_directive=yes
26705 else
26706 echo "configure: failed program was" >&5
26707 cat conftest.s >&5
26709 rm -f conftest.o conftest.s
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
26713 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
26717 cat >>confdefs.h <<_ACEOF
26718 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
26719 _ACEOF
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
26723 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
26724 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
26725 $as_echo_n "(cached) " >&6
26726 else
26727 gcc_cv_as_cfi_sections_directive=no
26728 if test x$gcc_cv_as != x; then
26729 $as_echo ' .text
26730 .cfi_sections .debug_frame, .eh_frame
26731 .cfi_startproc
26732 .cfi_endproc' > conftest.s
26733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26739 then
26740 case $target_os in
26741 win32 | pe | cygwin* | mingw32*)
26742 # Need to check that we generated the correct relocation for the
26743 # .debug_frame section. This was fixed for binutils 2.21.
26744 gcc_cv_as_cfi_sections_directive=no
26745 if test "x$gcc_cv_objdump" != x; then
26746 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
26747 grep -i secrel > /dev/null; then
26748 gcc_cv_as_cfi_sections_directive=yes
26753 gcc_cv_as_cfi_sections_directive=yes
26755 esac
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_cfi_sections_directive" >&5
26764 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
26769 cat >>confdefs.h <<_ACEOF
26770 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
26771 _ACEOF
26774 # GAS versions up to and including 2.11.0 may mis-optimize
26775 # .eh_frame data.
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
26777 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
26778 if ${gcc_cv_as_eh_frame+:} false; then :
26779 $as_echo_n "(cached) " >&6
26780 else
26781 gcc_cv_as_eh_frame=no
26782 if test x$gcc_cv_as != x; then
26783 $as_echo ' .text
26784 .LFB1:
26785 .4byte 0
26786 .L1:
26787 .4byte 0
26788 .LFE1:
26789 .section .eh_frame,"aw",@progbits
26790 __FRAME_BEGIN__:
26791 .4byte .LECIE1-.LSCIE1
26792 .LSCIE1:
26793 .4byte 0x0
26794 .byte 0x1
26795 .ascii "z\0"
26796 .byte 0x1
26797 .byte 0x78
26798 .byte 0x1a
26799 .byte 0x0
26800 .byte 0x4
26801 .4byte 1
26802 .p2align 1
26803 .LECIE1:
26804 .LSFDE1:
26805 .4byte .LEFDE1-.LASFDE1
26806 .LASFDE1:
26807 .4byte .LASFDE1-__FRAME_BEGIN__
26808 .4byte .LFB1
26809 .4byte .LFE1-.LFB1
26810 .byte 0x4
26811 .4byte .LFE1-.LFB1
26812 .byte 0x4
26813 .4byte .L1-.LFB1
26814 .LEFDE1:' > conftest.s
26815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26820 test $ac_status = 0; }; }
26821 then
26822 cat > conftest.lit <<EOF
26823 0000 10000000 00000000 017a0001 781a0004 .........z..x...
26824 0010 01000000 12000000 18000000 00000000 ................
26825 0020 08000000 04080000 0044 .........D
26827 cat > conftest.big <<EOF
26828 0000 00000010 00000000 017a0001 781a0004 .........z..x...
26829 0010 00000001 00000012 00000018 00000000 ................
26830 0020 00000008 04000000 0844 .........D
26832 # If the assembler didn't choke, and we can objdump,
26833 # and we got the correct data, then succeed.
26834 # The text in the here-document typically retains its unix-style line
26835 # endings, while the output of objdump will use host line endings.
26836 # Therefore, use diff -b for the comparisons.
26837 if test x$gcc_cv_objdump != x \
26838 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
26839 | tail -3 > conftest.got \
26840 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
26841 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
26842 then
26843 gcc_cv_as_eh_frame=yes
26844 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
26845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26849 test $ac_status = 0; }; }; then
26850 gcc_cv_as_eh_frame=buggy
26851 else
26852 # Uh oh, what do we do now?
26853 gcc_cv_as_eh_frame=no
26855 else
26856 echo "configure: failed program was" >&5
26857 cat conftest.s >&5
26859 rm -f conftest.o conftest.s
26862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
26863 $as_echo "$gcc_cv_as_eh_frame" >&6; }
26867 if test $gcc_cv_as_eh_frame = buggy; then
26869 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
26873 # Test if the assembler supports the section flag 'e' or #exclude for
26874 # specifying an excluded section.
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26876 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26877 if ${gcc_cv_as_section_exclude_e+:} false; then :
26878 $as_echo_n "(cached) " >&6
26879 else
26880 gcc_cv_as_section_exclude_e=no
26881 if test x$gcc_cv_as != x; then
26882 $as_echo '.section foo1,"e"
26883 .byte 0,0,0,0' > conftest.s
26884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26887 ac_status=$?
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }
26890 then
26891 gcc_cv_as_section_exclude_e=yes
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
26900 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
26903 if test $gcc_cv_as_section_exclude_e = no; then
26904 case "${target}" in
26905 # Solaris as uses #exclude instead.
26906 *-*-solaris2*)
26907 case "${target}" in
26908 sparc*-*-solaris2*)
26909 conftest_s='.section "foo1", #exclude'
26911 i?86-*-solaris2* | x86_64-*-solaris2*)
26912 conftest_s='.section foo1, #exclude'
26914 esac
26916 esac
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
26918 $as_echo_n "checking assembler for section exclude flag... " >&6; }
26919 if ${gcc_cv_as_section_exclude_hash+:} false; then :
26920 $as_echo_n "(cached) " >&6
26921 else
26922 gcc_cv_as_section_exclude_hash=no
26923 if test x$gcc_cv_as != x; then
26924 $as_echo "$conftest_s
26925 .byte 0,0,0,0" > conftest.s
26926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26928 (eval $ac_try) 2>&5
26929 ac_status=$?
26930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26931 test $ac_status = 0; }; }
26932 then
26933 gcc_cv_as_section_exclude_hash=yes
26934 else
26935 echo "configure: failed program was" >&5
26936 cat conftest.s >&5
26938 rm -f conftest.o conftest.s
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
26942 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
26947 cat >>confdefs.h <<_ACEOF
26948 #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`
26949 _ACEOF
26952 # Test if the assembler supports the section flag 'R' for specifying
26953 # section with SHF_GNU_RETAIN.
26954 case "${target}" in
26955 # Solaris may use GNU assembler with Solairs ld. Even if GNU
26956 # assembler supports the section flag 'R', it doesn't mean that
26957 # Solairs ld supports it.
26958 *-*-solaris2*)
26959 gcc_cv_as_shf_gnu_retain=no
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
26963 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
26964 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
26965 $as_echo_n "(cached) " >&6
26966 else
26967 gcc_cv_as_shf_gnu_retain=no
26968 if test x$gcc_cv_as != x; then
26969 $as_echo '.section .foo,"awR",%progbits
26970 .byte 0' > conftest.s
26971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26977 then
26978 gcc_cv_as_shf_gnu_retain=yes
26979 else
26980 echo "configure: failed program was" >&5
26981 cat conftest.s >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
26987 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
26991 esac
26993 cat >>confdefs.h <<_ACEOF
26994 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
26995 _ACEOF
26998 # Test if the assembler supports the section flag 'o' for specifying
26999 # section with link-order.
27000 case "${target}" in
27001 # Solaris may use GNU assembler with Solairs ld. Even if GNU
27002 # assembler supports the section flag 'o', it doesn't mean that
27003 # Solairs ld supports it.
27004 *-*-solaris2*)
27005 gcc_cv_as_section_link_order=no
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
27009 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
27010 if ${gcc_cv_as_section_link_order+:} false; then :
27011 $as_echo_n "(cached) " >&6
27012 else
27013 gcc_cv_as_section_link_order=no
27014 if test x$gcc_cv_as != x; then
27015 $as_echo '.section .foo,"a"
27016 .byte 0
27017 .section __patchable_function_entries,"awo",%progbits,.foo
27018 .byte 0' > conftest.s
27019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27024 test $ac_status = 0; }; }
27025 then
27026 gcc_cv_as_section_link_order=yes
27027 else
27028 echo "configure: failed program was" >&5
27029 cat conftest.s >&5
27031 rm -f conftest.o conftest.s
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
27035 $as_echo "$gcc_cv_as_section_link_order" >&6; }
27039 esac
27041 cat >>confdefs.h <<_ACEOF
27042 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
27043 _ACEOF
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27047 $as_echo_n "checking assembler for section merging support... " >&6; }
27048 if ${gcc_cv_as_shf_merge+:} false; then :
27049 $as_echo_n "(cached) " >&6
27050 else
27051 gcc_cv_as_shf_merge=no
27052 if test x$gcc_cv_as != x; then
27053 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
27054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27059 test $ac_status = 0; }; }
27060 then
27061 gcc_cv_as_shf_merge=yes
27062 else
27063 echo "configure: failed program was" >&5
27064 cat conftest.s >&5
27066 rm -f conftest.o conftest.s
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27073 if test $gcc_cv_as_shf_merge = no; then
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
27075 $as_echo_n "checking assembler for section merging support... " >&6; }
27076 if ${gcc_cv_as_shf_merge+:} false; then :
27077 $as_echo_n "(cached) " >&6
27078 else
27079 gcc_cv_as_shf_merge=no
27080 if test x$gcc_cv_as != x; then
27081 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
27082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27087 test $ac_status = 0; }; }
27088 then
27089 gcc_cv_as_shf_merge=yes
27090 else
27091 echo "configure: failed program was" >&5
27092 cat conftest.s >&5
27094 rm -f conftest.o conftest.s
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
27098 $as_echo "$gcc_cv_as_shf_merge" >&6; }
27103 cat >>confdefs.h <<_ACEOF
27104 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
27105 _ACEOF
27108 gcc_cv_ld_aligned_shf_merge=yes
27109 case "$target" in
27110 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
27111 # alignment > 1.
27112 sparc*-*-solaris2.11*)
27113 if test x"$gnu_ld" = xno \
27114 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
27115 gcc_cv_ld_aligned_shf_merge=no
27118 esac
27120 cat >>confdefs.h <<_ACEOF
27121 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
27122 _ACEOF
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
27126 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
27127 if ${gcc_cv_as_comdat_group+:} false; then :
27128 $as_echo_n "(cached) " >&6
27129 else
27130 gcc_cv_as_comdat_group=no
27131 if test x$gcc_cv_as != x; then
27132 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
27133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27138 test $ac_status = 0; }; }
27139 then
27140 gcc_cv_as_comdat_group=yes
27141 else
27142 echo "configure: failed program was" >&5
27143 cat conftest.s >&5
27145 rm -f conftest.o conftest.s
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
27149 $as_echo "$gcc_cv_as_comdat_group" >&6; }
27152 if test $gcc_cv_as_comdat_group = yes; then
27153 gcc_cv_as_comdat_group_percent=no
27154 gcc_cv_as_comdat_group_group=no
27155 else
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
27157 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
27158 if ${gcc_cv_as_comdat_group_percent+:} false; then :
27159 $as_echo_n "(cached) " >&6
27160 else
27161 gcc_cv_as_comdat_group_percent=no
27162 if test x$gcc_cv_as != x; then
27163 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
27164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27167 ac_status=$?
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; }
27170 then
27171 gcc_cv_as_comdat_group_percent=yes
27172 else
27173 echo "configure: failed program was" >&5
27174 cat conftest.s >&5
27176 rm -f conftest.o conftest.s
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
27180 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
27183 if test $gcc_cv_as_comdat_group_percent = yes; then
27184 gcc_cv_as_comdat_group_group=no
27185 else
27186 case "${target}" in
27187 # Sun as uses a completely different syntax.
27188 *-*-solaris2*)
27189 case "${target}" in
27190 sparc*-*-solaris2*)
27191 conftest_s='
27192 .group foo,".text%foo",#comdat
27193 .section ".text%foo", #alloc,#execinstr,#progbits
27194 .globl foo
27195 foo:
27198 i?86-*-solaris2* | x86_64-*-solaris2*)
27199 conftest_s='
27200 .group foo,.text%foo,#comdat
27201 .section .text%foo, "ax", @progbits
27202 .globl foo
27203 foo:
27206 esac
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
27208 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
27209 if ${gcc_cv_as_comdat_group_group+:} false; then :
27210 $as_echo_n "(cached) " >&6
27211 else
27212 gcc_cv_as_comdat_group_group=no
27213 if test x$gcc_cv_as != x; then
27214 $as_echo "$conftest_s" > conftest.s
27215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27220 test $ac_status = 0; }; }
27221 then
27222 gcc_cv_as_comdat_group_group=yes
27223 else
27224 echo "configure: failed program was" >&5
27225 cat conftest.s >&5
27227 rm -f conftest.o conftest.s
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
27231 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
27235 esac
27236 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
27237 gcc_cv_as_comdat_group_group=no
27241 if test x"$ld_is_gold" = xyes; then
27242 comdat_group=yes
27243 elif test x"$ld_is_mold" = xyes; then
27244 comdat_group=yes
27245 elif test $in_tree_ld = yes ; then
27246 comdat_group=no
27247 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 \
27248 && test $in_tree_ld_is_elf = yes; then
27249 comdat_group=yes
27251 elif echo "$ld_ver" | grep GNU > /dev/null; then
27252 comdat_group=yes
27253 if test 0"$ld_date" -lt 20050308; then
27254 if test -n "$ld_date"; then
27255 # If there was date string, but was earlier than 2005-03-08, fail
27256 comdat_group=no
27257 elif test "$ld_vers_major" -lt 2; then
27258 comdat_group=no
27259 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27260 comdat_group=no
27263 else
27264 case "${target}" in
27265 *-*-solaris2.1[1-9]*)
27266 comdat_group=no
27267 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
27268 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
27269 # version 1.688.
27271 # If using Sun as for COMDAT group as emitted by GCC, one needs at
27272 # least ld version 1.2267.
27273 if test "$ld_vers_major" -gt 1; then
27274 comdat_group=yes
27275 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
27276 comdat_group=yes
27277 elif test "$ld_vers_minor" -ge 2267; then
27278 comdat_group=yes
27282 # Assume linkers other than GNU ld don't support COMDAT group.
27283 comdat_group=no
27285 esac
27287 # Allow overriding the automatic COMDAT group tests above.
27288 # Check whether --enable-comdat was given.
27289 if test "${enable_comdat+set}" = set; then :
27290 enableval=$enable_comdat; comdat_group="$enable_comdat"
27293 if test $comdat_group = no; then
27294 gcc_cv_as_comdat_group=no
27295 gcc_cv_as_comdat_group_percent=no
27296 gcc_cv_as_comdat_group_group=no
27299 cat >>confdefs.h <<_ACEOF
27300 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
27301 || test $gcc_cv_as_comdat_group_percent = yes \
27302 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
27303 _ACEOF
27306 # Restrict this test to Solaris/x86: other targets define this statically.
27307 case "${target}" in
27308 i?86-*-solaris2* | x86_64-*-solaris2*)
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
27310 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
27311 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
27312 hidden_linkonce=yes
27313 else
27314 case "${target}" in
27315 # Full support for hidden thunks in linkonce sections only appeared in
27316 # Solaris 11/OpenSolaris.
27317 *-*-solaris2.1[1-9]*)
27318 hidden_linkonce=yes
27321 hidden_linkonce=no
27323 esac
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
27326 $as_echo "$hidden_linkonce" >&6; }
27328 cat >>confdefs.h <<_ACEOF
27329 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
27330 _ACEOF
27333 esac
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
27336 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
27337 if ${gcc_cv_as_is_stmt+:} false; then :
27338 $as_echo_n "(cached) " >&6
27339 else
27340 gcc_cv_as_is_stmt=no
27341 if test x$gcc_cv_as != x; then
27342 $as_echo ' .text
27343 .file 1 "conf.c"
27344 .loc 1 1 0 is_stmt 1' > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_is_stmt=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27357 rm -f conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
27361 $as_echo "$gcc_cv_as_is_stmt" >&6; }
27362 if test $gcc_cv_as_is_stmt = yes; then
27364 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
27370 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
27371 if ${gcc_cv_as_discriminator+:} false; then :
27372 $as_echo_n "(cached) " >&6
27373 else
27374 gcc_cv_as_discriminator=no
27375 if test x$gcc_cv_as != x; then
27376 $as_echo ' .text
27377 .file 1 "conf.c"
27378 .loc 1 1 0 discriminator 1' > conftest.s
27379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27384 test $ac_status = 0; }; }
27385 then
27386 gcc_cv_as_discriminator=yes
27387 else
27388 echo "configure: failed program was" >&5
27389 cat conftest.s >&5
27391 rm -f conftest.o conftest.s
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
27395 $as_echo "$gcc_cv_as_discriminator" >&6; }
27396 if test $gcc_cv_as_discriminator = yes; then
27398 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
27403 # Catch the newlib flag of the same name so we can gate GCC features on it.
27404 # Check whether --enable-newlib-nano-formatted-io was given.
27405 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
27406 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
27407 yes|no)
27410 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
27412 esac
27416 # Thread-local storage - the check is heavily parameterized.
27417 conftest_s=
27418 tls_as_opt=
27419 case "$target" in
27420 alpha*-*-*)
27421 conftest_s='
27422 .section ".tdata","awT",@progbits
27423 foo: .long 25
27424 .text
27425 ldq $27,__tls_get_addr($29) !literal!1
27426 lda $16,foo($29) !tlsgd!1
27427 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
27428 ldq $27,__tls_get_addr($29) !literal!2
27429 lda $16,foo($29) !tlsldm!2
27430 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
27431 ldq $1,foo($29) !gotdtprel
27432 ldah $2,foo($29) !dtprelhi
27433 lda $3,foo($2) !dtprello
27434 lda $4,foo($29) !dtprel
27435 ldq $1,foo($29) !gottprel
27436 ldah $2,foo($29) !tprelhi
27437 lda $3,foo($2) !tprello
27438 lda $4,foo($29) !tprel'
27439 tls_as_opt=--fatal-warnings
27441 arc*-*-*)
27442 conftest_s='
27443 add_s r0,r0, @foo@tpoff'
27445 cris-*-*|crisv32-*-*)
27446 conftest_s='
27447 .section ".tdata","awT",@progbits
27448 x: .long 25
27449 .text
27450 move.d x:IE,$r10
27451 nop'
27452 tls_as_opt=--fatal-warnings
27454 frv*-*-*)
27455 conftest_s='
27456 .section ".tdata","awT",@progbits
27457 x: .long 25
27458 .text
27459 call #gettlsoff(x)'
27461 hppa*-*-linux*)
27462 conftest_s='
27463 t1: .reg %r20
27464 t2: .reg %r21
27465 gp: .reg %r19
27466 .section ".tdata","awT",@progbits
27467 foo: .long 25
27468 .text
27469 .align 4
27470 addil LT%foo-$tls_gdidx$,gp
27471 ldo RT%foo-$tls_gdidx$(%r1),%arg0
27472 b __tls_get_addr
27474 addil LT%foo-$tls_ldidx$,gp
27475 b __tls_get_addr
27476 ldo RT%foo-$tls_ldidx$(%r1),%arg0
27477 addil LR%foo-$tls_dtpoff$,%ret0
27478 ldo RR%foo-$tls_dtpoff$(%r1),%t1
27479 mfctl %cr27,%t1
27480 addil LT%foo-$tls_ieoff$,gp
27481 ldw RT%foo-$tls_ieoff$(%r1),%t2
27482 add %t1,%t2,%t3
27483 mfctl %cr27,%t1
27484 addil LR%foo-$tls_leoff$,%t1
27485 ldo RR%foo-$tls_leoff$(%r1),%t2'
27486 tls_as_opt=--fatal-warnings
27488 arm*-*-*)
27489 conftest_s='
27490 .section ".tdata","awT",%progbits
27491 foo: .long 25
27492 .text
27493 .word foo(gottpoff)
27494 .word foo(tpoff)
27495 .word foo(tlsgd)
27496 .word foo(tlsldm)
27497 .word foo(tlsldo)'
27499 i[34567]86-*-* | x86_64-*-*)
27500 case "$target" in
27501 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
27502 on_solaris=yes
27505 on_solaris=no
27507 esac
27508 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27509 conftest_s='
27510 .section .tdata,"awt",@progbits'
27511 tls_section_flag=t
27513 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
27515 else
27516 conftest_s='
27517 .section ".tdata","awT",@progbits'
27518 tls_section_flag=T
27519 tls_as_opt="--fatal-warnings"
27521 case "$target" in
27522 i[34567]86-*-*)
27523 if test x$on_solaris = xyes; then
27524 case $gas_flag in
27525 yes) tls_as_opt="$tls_as_opt --32" ;;
27526 esac
27528 conftest_s="$conftest_s
27529 foo: .long 25
27530 .text
27531 movl %gs:0, %eax
27532 leal foo@tlsgd(,%ebx,1), %eax
27533 leal foo@tlsldm(%ebx), %eax
27534 leal foo@dtpoff(%eax), %edx
27535 movl foo@gottpoff(%ebx), %eax
27536 subl foo@gottpoff(%ebx), %eax
27537 addl foo@gotntpoff(%ebx), %eax
27538 movl foo@indntpoff, %eax
27539 movl \$foo@tpoff, %eax
27540 subl \$foo@tpoff, %eax
27541 leal foo@ntpoff(%ecx), %eax"
27543 x86_64-*-*)
27544 if test x$on_solaris = xyes; then
27545 case $gas_flag in
27546 yes) tls_as_opt="$tls_as_opt --64" ;;
27547 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
27548 esac
27550 conftest_s="$conftest_s
27551 foo: .long 25
27552 .text
27553 movq %fs:0, %rax
27554 leaq foo@tlsgd(%rip), %rdi
27555 leaq foo@tlsld(%rip), %rdi
27556 leaq foo@dtpoff(%rax), %rdx
27557 movq foo@gottpoff(%rip), %rax
27558 movq \$foo@tpoff, %rax"
27560 esac
27562 ia64-*-*)
27563 conftest_s='
27564 .section ".tdata","awT",@progbits
27565 foo: data8 25
27566 .text
27567 addl r16 = @ltoff(@dtpmod(foo#)), gp
27568 addl r17 = @ltoff(@dtprel(foo#)), gp
27569 addl r18 = @ltoff(@tprel(foo#)), gp
27570 addl r19 = @dtprel(foo#), gp
27571 adds r21 = @dtprel(foo#), r13
27572 movl r23 = @dtprel(foo#)
27573 addl r20 = @tprel(foo#), gp
27574 adds r22 = @tprel(foo#), r13
27575 movl r24 = @tprel(foo#)'
27576 tls_as_opt=--fatal-warnings
27578 loongarch*-*-*)
27579 conftest_s='
27580 .section .tdata,"awT",@progbits
27581 x: .word 2
27582 .text
27583 la.tls.gd $a0,x
27584 bl __tls_get_addr'
27585 tls_first_major=0
27586 tls_first_minor=0
27587 tls_as_opt='--fatal-warnings'
27589 microblaze*-*-*)
27590 conftest_s='
27591 .section .tdata,"awT",@progbits
27593 .word 2
27594 .text
27595 addik r5,r20,x@TLSGD
27596 addik r5,r20,x@TLSLDM'
27597 tls_as_opt='--fatal-warnings'
27599 mips*-*-*)
27600 conftest_s='
27601 .section .tdata,"awT",@progbits
27603 .word 2
27604 .text
27605 addiu $4, $28, %tlsgd(x)
27606 addiu $4, $28, %tlsldm(x)
27607 lui $4, %dtprel_hi(x)
27608 addiu $4, $4, %dtprel_lo(x)
27609 lw $4, %gottprel(x)($28)
27610 lui $4, %tprel_hi(x)
27611 addiu $4, $4, %tprel_lo(x)'
27612 tls_as_opt='-32 --fatal-warnings'
27614 m68k-*-*)
27615 conftest_s='
27616 .section .tdata,"awT",@progbits
27618 .word 2
27619 .text
27620 foo:
27621 move.l x@TLSGD(%a5),%a0
27622 move.l x@TLSLDM(%a5),%a0
27623 move.l x@TLSLDO(%a5),%a0
27624 move.l x@TLSIE(%a5),%a0
27625 move.l x@TLSLE(%a5),%a0'
27626 tls_as_opt='--fatal-warnings'
27628 nios2-*-*)
27629 conftest_s='
27630 .section ".tdata","awT",@progbits'
27631 tls_as_opt="--fatal-warnings"
27633 aarch64*-*-*)
27634 conftest_s='
27635 .section ".tdata","awT",%progbits
27636 foo: .long 25
27637 .text
27638 adrp x0, :tlsgd:x
27639 add x0, x0, #:tlsgd_lo12:x
27640 bl __tls_get_addr
27641 nop'
27642 tls_as_opt='--fatal-warnings'
27644 or1k*-*-*)
27645 conftest_s='
27646 .section ".tdata","awT",@progbits
27647 foo: .long 25
27648 .text
27649 l.movhi r3, tpoffha(foo)
27650 l.add r3, r3, r10
27651 l.lwz r4, tpofflo(foo)(r3)'
27652 tls_as_opt=--fatal-warnings
27654 powerpc-ibm-aix*)
27655 conftest_s='
27656 .extern __get_tpointer
27657 .toc
27658 LC..1:
27659 .tc a[TC],a[TL]@le
27660 .csect .text[PR]
27661 .tlstest:
27662 lwz 9,LC..1(2)
27663 bla __get_tpointer
27664 lwzx 3,9,3
27665 .globl a
27666 .csect a[TL],4
27668 .space 4'
27670 powerpc64*-*-*)
27671 conftest_s='
27672 .section ".tdata","awT",@progbits
27673 .align 3
27674 ld0: .space 8
27675 ld1: .space 8
27676 x1: .space 8
27677 x2: .space 8
27678 x3: .space 8
27679 .text
27680 addi 3,2,ld0@got@tlsgd
27681 bl .__tls_get_addr
27683 addi 3,2,ld1@toc
27684 bl .__tls_get_addr
27686 addi 3,2,x1@got@tlsld
27687 bl .__tls_get_addr
27689 addi 9,3,x1@dtprel
27690 bl .__tls_get_addr
27692 addis 9,3,x2@dtprel@ha
27693 addi 9,9,x2@dtprel@l
27694 bl .__tls_get_addr
27696 ld 9,x3@got@dtprel(2)
27697 add 9,9,3
27698 bl .__tls_get_addr
27699 nop'
27700 tls_as_opt="-a64 --fatal-warnings"
27702 powerpc*-*-*)
27703 conftest_s='
27704 .section ".tdata","awT",@progbits
27705 .align 2
27706 ld0: .space 4
27707 ld1: .space 4
27708 x1: .space 4
27709 x2: .space 4
27710 x3: .space 4
27711 .text
27712 addi 3,31,ld0@got@tlsgd
27713 bl __tls_get_addr
27714 addi 3,31,x1@got@tlsld
27715 bl __tls_get_addr
27716 addi 9,3,x1@dtprel
27717 addis 9,3,x2@dtprel@ha
27718 addi 9,9,x2@dtprel@l
27719 lwz 9,x3@got@tprel(31)
27720 add 9,9,x@tls
27721 addi 9,2,x1@tprel
27722 addis 9,2,x2@tprel@ha
27723 addi 9,9,x2@tprel@l'
27724 tls_as_opt="-a32 --fatal-warnings"
27726 riscv*-*-*)
27727 conftest_s='
27728 .section .tdata,"awT",@progbits
27729 x: .word 2
27730 .text
27731 la.tls.gd a0,x
27732 call __tls_get_addr'
27733 tls_as_opt='--fatal-warnings'
27735 s390-*-*)
27736 conftest_s='
27737 .section ".tdata","awT",@progbits
27738 foo: .long 25
27739 .text
27740 .long foo@TLSGD
27741 .long foo@TLSLDM
27742 .long foo@DTPOFF
27743 .long foo@NTPOFF
27744 .long foo@GOTNTPOFF
27745 .long foo@INDNTPOFF
27746 l %r1,foo@GOTNTPOFF(%r12)
27747 l %r1,0(%r1):tls_load:foo
27748 bas %r14,0(%r1,%r13):tls_gdcall:foo
27749 bas %r14,0(%r1,%r13):tls_ldcall:foo'
27750 tls_as_opt="-m31 --fatal-warnings"
27752 s390x-*-*)
27753 conftest_s='
27754 .section ".tdata","awT",@progbits
27755 foo: .long 25
27756 .text
27757 .quad foo@TLSGD
27758 .quad foo@TLSLDM
27759 .quad foo@DTPOFF
27760 .quad foo@NTPOFF
27761 .quad foo@GOTNTPOFF
27762 lg %r1,foo@GOTNTPOFF(%r12)
27763 larl %r1,foo@INDNTPOFF
27764 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
27765 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
27766 tls_as_opt="-m64 -Aesame --fatal-warnings"
27768 sh-*-* | sh[123456789lbe]*-*-*)
27769 conftest_s='
27770 .section ".tdata","awT",@progbits
27771 foo: .long 25
27772 .text
27773 .long foo@TLSGD
27774 .long foo@TLSLDM
27775 .long foo@DTPOFF
27776 .long foo@GOTTPOFF
27777 .long foo@TPOFF'
27778 tls_as_opt=--fatal-warnings
27780 sparc*-*-*)
27781 case "$target" in
27782 sparc*-sun-solaris2.*)
27783 on_solaris=yes
27786 on_solaris=no
27788 esac
27789 if test x$on_solaris = xyes && test x$gas_flag = xno; then
27790 conftest_s='
27791 .section ".tdata",#alloc,#write,#tls'
27792 else
27793 conftest_s='
27794 .section ".tdata","awT",@progbits'
27795 tls_as_opt="-32 --fatal-warnings"
27797 conftest_s="$conftest_s
27798 foo: .long 25
27799 .text
27800 sethi %tgd_hi22(foo), %o0
27801 add %o0, %tgd_lo10(foo), %o1
27802 add %l7, %o1, %o0, %tgd_add(foo)
27803 call __tls_get_addr, %tgd_call(foo)
27804 sethi %tldm_hi22(foo), %l1
27805 add %l1, %tldm_lo10(foo), %l2
27806 add %l7, %l2, %o0, %tldm_add(foo)
27807 call __tls_get_addr, %tldm_call(foo)
27808 sethi %tldo_hix22(foo), %l3
27809 xor %l3, %tldo_lox10(foo), %l4
27810 add %o0, %l4, %l5, %tldo_add(foo)
27811 sethi %tie_hi22(foo), %o3
27812 add %o3, %tie_lo10(foo), %o3
27813 ld [%l7 + %o3], %o2, %tie_ld(foo)
27814 add %g7, %o2, %o4, %tie_add(foo)
27815 sethi %tle_hix22(foo), %l1
27816 xor %l1, %tle_lox10(foo), %o5
27817 ld [%g7 + %o5], %o1"
27819 xtensa*-*-*)
27820 conftest_s='
27821 .section ".tdata","awT",@progbits
27822 foo: .long 25
27823 .text
27824 movi a8, foo@TLSFUNC
27825 movi a10, foo@TLSARG
27826 callx8.tls a8, foo@TLSCALL'
27828 esac
27829 set_have_as_tls=no
27830 if test "x$enable_tls" = xno ; then
27831 : # TLS explicitly disabled.
27832 elif test "x$enable_tls" = xyes ; then
27833 set_have_as_tls=yes # TLS explicitly enabled.
27834 elif test -z "$conftest_s"; then
27835 : # If we don't have a check, assume no support.
27836 else
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
27838 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
27839 if ${gcc_cv_as_tls+:} false; then :
27840 $as_echo_n "(cached) " >&6
27841 else
27842 gcc_cv_as_tls=no
27843 if test x$gcc_cv_as != x; then
27844 $as_echo "$conftest_s" > conftest.s
27845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
27846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27847 (eval $ac_try) 2>&5
27848 ac_status=$?
27849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27850 test $ac_status = 0; }; }
27851 then
27852 gcc_cv_as_tls=yes
27853 else
27854 echo "configure: failed program was" >&5
27855 cat conftest.s >&5
27857 rm -f conftest.o conftest.s
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
27861 $as_echo "$gcc_cv_as_tls" >&6; }
27862 if test $gcc_cv_as_tls = yes; then
27863 set_have_as_tls=yes
27867 if test $set_have_as_tls = yes ; then
27869 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
27873 # Target-specific assembler checks.
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
27876 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
27877 gcc_cv_ld_static_dynamic=no
27878 gcc_cv_ld_static_option='-Bstatic'
27879 gcc_cv_ld_dynamic_option='-Bdynamic'
27880 if test $in_tree_ld = yes ; then
27881 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
27882 gcc_cv_ld_static_dynamic=yes
27884 elif test x$gcc_cv_ld != x; then
27885 # Check if linker supports -Bstatic/-Bdynamic option
27886 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
27887 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
27888 gcc_cv_ld_static_dynamic=yes
27889 else
27890 case "$target" in
27891 # AIX ld uses -b flags
27892 *-*-aix4.[23]* | *-*-aix[5-9]*)
27893 gcc_cv_ld_static_dynamic=yes
27894 gcc_cv_ld_static_option="-bstatic"
27895 gcc_cv_ld_dynamic_option="-bdynamic"
27897 # HP-UX ld uses -a flags to select between shared and archive.
27898 *-*-hpux*)
27899 if test x"$gnu_ld" = xno; then
27900 gcc_cv_ld_static_dynamic=yes
27901 gcc_cv_ld_static_option="-aarchive_shared"
27902 gcc_cv_ld_dynamic_option="-adefault"
27905 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
27906 *-*-solaris2*)
27907 gcc_cv_ld_static_dynamic=yes
27909 esac
27912 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
27914 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
27917 cat >>confdefs.h <<_ACEOF
27918 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
27919 _ACEOF
27922 cat >>confdefs.h <<_ACEOF
27923 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
27924 _ACEOF
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
27928 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
27931 $as_echo_n "checking linker --version-script option... " >&6; }
27932 gcc_cv_ld_version_script=no
27933 ld_version_script_option=''
27934 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27935 gcc_cv_ld_version_script=yes
27936 ld_version_script_option='--version-script'
27937 elif test x$gcc_cv_ld != x; then
27938 case "$target" in
27939 # Solaris 2 ld always supports -M. It also supports a subset of
27940 # --version-script since Solaris 11.4, but requires
27941 # -z gnu-version-script-compat to activate.
27942 *-*-solaris2*)
27943 gcc_cv_ld_version_script=yes
27944 ld_version_script_option='-M'
27946 esac
27948 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
27950 $as_echo "$gcc_cv_ld_version_script" >&6; }
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
27954 $as_echo_n "checking linker soname option... " >&6; }
27955 gcc_cv_ld_soname=no
27956 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
27957 gcc_cv_ld_soname=yes
27958 ld_soname_option='-soname'
27959 elif test x$gcc_cv_ld != x; then
27960 case "$target" in
27961 *-*-darwin*)
27962 gcc_cv_ld_soname=yes
27963 ld_soname_option='-install_name'
27965 # Solaris 2 ld always supports -h. It also supports --soname for GNU
27966 # ld compatiblity since some Solaris 10 update.
27967 *-*-solaris2*)
27968 gcc_cv_ld_soname=yes
27969 ld_soname_option='-h'
27971 esac
27973 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
27975 $as_echo "$gcc_cv_ld_soname" >&6; }
27978 if test x"$demangler_in_ld" = xyes; then
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
27980 $as_echo_n "checking linker --demangle support... " >&6; }
27981 gcc_cv_ld_demangle=no
27982 if test $in_tree_ld = yes; then
27983 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 \
27984 gcc_cv_ld_demangle=yes
27986 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
27987 # Check if the GNU linker supports --demangle option
27988 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
27989 gcc_cv_ld_demangle=yes
27992 if test x"$gcc_cv_ld_demangle" = xyes; then
27994 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
27998 $as_echo "$gcc_cv_ld_demangle" >&6; }
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
28002 $as_echo_n "checking linker plugin support... " >&6; }
28003 gcc_cv_lto_plugin=0
28004 if test -f liblto_plugin.la; then
28005 save_ld_ver="$ld_ver"
28006 save_ld_vers_major="$ld_vers_major"
28007 save_ld_vers_minor="$ld_vers_minor"
28008 save_ld_is_gold="$ld_is_gold"
28010 ld_is_gold=no
28012 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
28013 ld_ver="GNU ld"
28014 # FIXME: ld_is_gold?
28015 ld_vers_major="$gcc_cv_gld_major_version"
28016 ld_vers_minor="$gcc_cv_gld_minor_version"
28017 else
28018 # Determine plugin linker version.
28019 # FIXME: Partial duplicate from above, generalize.
28020 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
28021 if echo "$ld_ver" | grep GNU > /dev/null; then
28022 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
28023 ld_is_gold=yes
28024 ld_vers=`echo $ld_ver | sed -n \
28025 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
28026 else
28027 ld_vers=`echo $ld_ver | sed -n \
28028 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
28030 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
28031 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
28035 # Determine plugin support.
28036 if echo "$ld_ver" | grep GNU > /dev/null; then
28037 # Require GNU ld or gold 2.21+ for plugin support by default.
28038 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
28039 gcc_cv_lto_plugin=2
28040 elif test "$ld_is_mold" = yes; then
28041 gcc_cv_lto_plugin=2
28042 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
28043 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
28044 gcc_cv_lto_plugin=1
28048 ld_ver="$save_ld_ver"
28049 ld_vers_major="$save_ld_vers_major"
28050 ld_vers_minor="$save_ld_vers_minor"
28051 ld_is_gold="$save_ld_is_gold"
28054 cat >>confdefs.h <<_ACEOF
28055 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
28056 _ACEOF
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
28059 $as_echo "$gcc_cv_lto_plugin" >&6; }
28061 # Target OS-specific assembler checks.
28063 case "$target_os" in
28064 darwin*)
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
28066 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
28067 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
28068 $as_echo_n "(cached) " >&6
28069 else
28070 gcc_cv_as_mmacosx_version_min=no
28071 if test x$gcc_cv_as != x; then
28072 $as_echo '.text' > conftest.s
28073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
28074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28078 test $ac_status = 0; }; }
28079 then
28080 gcc_cv_as_mmacosx_version_min=yes
28081 else
28082 echo "configure: failed program was" >&5
28083 cat conftest.s >&5
28085 rm -f conftest.o conftest.s
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
28089 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
28090 if test $gcc_cv_as_mmacosx_version_min = yes; then
28092 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
28096 if test x$gcc_cv_as_mmacosx_version_min = "xyes"; then
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .build_version" >&5
28098 $as_echo_n "checking assembler for .build_version... " >&6; }
28099 if ${gcc_cv_as_darwin_build_version+:} false; then :
28100 $as_echo_n "(cached) " >&6
28101 else
28102 gcc_cv_as_darwin_build_version=no
28103 if test x$gcc_cv_as != x; then
28104 $as_echo ' .build_version macos, 10, 14 sdk_version 10, 14' > conftest.s
28105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.14 -o conftest.o conftest.s >&5'
28106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28107 (eval $ac_try) 2>&5
28108 ac_status=$?
28109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28110 test $ac_status = 0; }; }
28111 then
28112 gcc_cv_as_darwin_build_version=yes
28113 else
28114 echo "configure: failed program was" >&5
28115 cat conftest.s >&5
28117 rm -f conftest.o conftest.s
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_darwin_build_version" >&5
28121 $as_echo "$gcc_cv_as_darwin_build_version" >&6; }
28122 if test $gcc_cv_as_darwin_build_version = yes; then
28124 $as_echo "#define HAVE_AS_MACOS_BUILD_VERSION 1" >>confdefs.h
28130 esac
28132 # Target CPU-specific assembler checks.
28134 case "$target" in
28135 aarch64*-*-*)
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
28137 $as_echo_n "checking assembler for -mabi option... " >&6; }
28138 if ${gcc_cv_as_aarch64_mabi+:} false; then :
28139 $as_echo_n "(cached) " >&6
28140 else
28141 gcc_cv_as_aarch64_mabi=no
28142 if test x$gcc_cv_as != x; then
28143 $as_echo '.text' > conftest.s
28144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
28145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28149 test $ac_status = 0; }; }
28150 then
28151 gcc_cv_as_aarch64_mabi=yes
28152 else
28153 echo "configure: failed program was" >&5
28154 cat conftest.s >&5
28156 rm -f conftest.o conftest.s
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
28160 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
28163 if test x$gcc_cv_as_aarch64_mabi = xyes; then
28165 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
28167 else
28168 if test x$with_abi = xilp32; then
28169 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28170 Upgrade the Assembler." "$LINENO" 5
28172 if test x"$with_multilib_list" = xdefault; then
28173 TM_MULTILIB_CONFIG=lp64
28174 else
28175 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
28176 for aarch64_multilib in ${aarch64_multilibs}; do
28177 case ${aarch64_multilib} in
28178 ilp32)
28179 as_fn_error $? "Assembler does not support -mabi=ilp32.\
28180 Upgrade the Assembler." "$LINENO" 5
28184 esac
28185 done
28188 # Check if we have binutils support for relocations types needed by -fpic
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
28190 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
28191 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
28192 $as_echo_n "(cached) " >&6
28193 else
28194 gcc_cv_as_aarch64_picreloc=no
28195 if test x$gcc_cv_as != x; then
28196 $as_echo '
28197 .text
28198 ldr x0, [x2, #:gotpage_lo15:globalsym]
28199 ' > conftest.s
28200 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28202 (eval $ac_try) 2>&5
28203 ac_status=$?
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; }
28206 then
28207 gcc_cv_as_aarch64_picreloc=yes
28208 else
28209 echo "configure: failed program was" >&5
28210 cat conftest.s >&5
28212 rm -f conftest.o conftest.s
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
28216 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
28217 if test $gcc_cv_as_aarch64_picreloc = yes; then
28219 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
28223 # Enable Branch Target Identification Mechanism and Return Address
28224 # Signing by default.
28225 # Check whether --enable-standard-branch-protection was given.
28226 if test "${enable_standard_branch_protection+set}" = set; then :
28227 enableval=$enable_standard_branch_protection;
28228 case $enableval in
28229 yes)
28230 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
28235 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
28236 Valid choices are 'yes' and 'no'." "$LINENO" 5
28238 esac
28242 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
28243 # Check whether --enable-fix-cortex-a53-835769 was given.
28244 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
28245 enableval=$enable_fix_cortex_a53_835769;
28246 case $enableval in
28247 yes)
28248 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
28253 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
28254 Valid choices are 'yes' and 'no'." "$LINENO" 5
28257 esac
28261 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
28262 # Check whether --enable-fix-cortex-a53-843419 was given.
28263 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
28264 enableval=$enable_fix_cortex_a53_843419;
28265 case $enableval in
28266 yes)
28267 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
28272 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
28273 Valid choices are 'yes' and 'no'." "$LINENO" 5
28276 esac
28282 # All TARGET_ABI_OSF targets.
28283 alpha*-*-linux* | alpha*-*-*bsd*)
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28285 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28286 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
28287 $as_echo_n "(cached) " >&6
28288 else
28289 gcc_cv_as_alpha_explicit_relocs=no
28290 if test x$gcc_cv_as != x; then
28291 $as_echo ' .set nomacro
28292 .text
28293 extbl $3, $2, $3 !lituse_bytoff!1
28294 ldq $2, a($29) !literal!1
28295 ldq $4, b($29) !literal!2
28296 ldq_u $3, 0($2) !lituse_base!1
28297 ldq $27, f($29) !literal!5
28298 jsr $26, ($27), f !lituse_jsr!5
28299 ldah $29, 0($26) !gpdisp!3
28300 lda $0, c($29) !gprel
28301 ldah $1, d($29) !gprelhigh
28302 lda $1, d($1) !gprellow
28303 lda $29, 0($29) !gpdisp!3' > conftest.s
28304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28306 (eval $ac_try) 2>&5
28307 ac_status=$?
28308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28309 test $ac_status = 0; }; }
28310 then
28311 gcc_cv_as_alpha_explicit_relocs=yes
28312 else
28313 echo "configure: failed program was" >&5
28314 cat conftest.s >&5
28316 rm -f conftest.o conftest.s
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
28320 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
28321 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
28323 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
28328 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
28329 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
28330 $as_echo_n "(cached) " >&6
28331 else
28332 gcc_cv_as_alpha_jsrdirect_relocs=no
28333 if test x$gcc_cv_as != x; then
28334 $as_echo ' .set nomacro
28335 .text
28336 ldq $27, a($29) !literal!1
28337 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
28338 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28340 (eval $ac_try) 2>&5
28341 ac_status=$?
28342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28343 test $ac_status = 0; }; }
28344 then
28345 gcc_cv_as_alpha_jsrdirect_relocs=yes
28346 else
28347 echo "configure: failed program was" >&5
28348 cat conftest.s >&5
28350 rm -f conftest.o conftest.s
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
28354 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
28355 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
28357 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
28363 avr-*-*)
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
28365 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
28366 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
28367 $as_echo_n "(cached) " >&6
28368 else
28369 gcc_cv_as_avr_mlink_relax=no
28370 if test x$gcc_cv_as != x; then
28371 $as_echo '.text' > conftest.s
28372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
28373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28377 test $ac_status = 0; }; }
28378 then
28379 gcc_cv_as_avr_mlink_relax=yes
28380 else
28381 echo "configure: failed program was" >&5
28382 cat conftest.s >&5
28384 rm -f conftest.o conftest.s
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
28388 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
28389 if test $gcc_cv_as_avr_mlink_relax = yes; then
28391 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
28397 $as_echo_n "checking assembler for -mrmw option... " >&6; }
28398 if ${gcc_cv_as_avr_mrmw+:} false; then :
28399 $as_echo_n "(cached) " >&6
28400 else
28401 gcc_cv_as_avr_mrmw=no
28402 if test x$gcc_cv_as != x; then
28403 $as_echo '.text' > conftest.s
28404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
28405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28406 (eval $ac_try) 2>&5
28407 ac_status=$?
28408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28409 test $ac_status = 0; }; }
28410 then
28411 gcc_cv_as_avr_mrmw=yes
28412 else
28413 echo "configure: failed program was" >&5
28414 cat conftest.s >&5
28416 rm -f conftest.o conftest.s
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
28420 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
28421 if test $gcc_cv_as_avr_mrmw = yes; then
28423 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
28429 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
28430 if ${gcc_cv_as_avr_mgccisr+:} false; then :
28431 $as_echo_n "(cached) " >&6
28432 else
28433 gcc_cv_as_avr_mgccisr=no
28434 if test x$gcc_cv_as != x; then
28435 $as_echo '.text
28436 __gcc_isr 1
28437 __gcc_isr 2
28438 __gcc_isr 0,r24
28439 ' > conftest.s
28440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
28441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28445 test $ac_status = 0; }; }
28446 then
28447 gcc_cv_as_avr_mgccisr=yes
28448 else
28449 echo "configure: failed program was" >&5
28450 cat conftest.s >&5
28452 rm -f conftest.o conftest.s
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
28456 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
28457 if test $gcc_cv_as_avr_mgccisr = yes; then
28459 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
28464 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
28465 # Check how default linker description file implements .rodata for
28466 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
28467 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
28469 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
28470 cat > conftest.s <<EOF
28471 .section .rodata,"a",@progbits
28472 .global xxvaryy
28473 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
28474 xxvaryy:
28475 .word 1
28477 rm -f conftest.nm
28478 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
28479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28480 (eval $ac_try) 2>&5
28481 ac_status=$?
28482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28483 test $ac_status = 0; }; }
28484 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
28485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28486 (eval $ac_try) 2>&5
28487 ac_status=$?
28488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28489 test $ac_status = 0; }; }
28490 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
28491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28495 test $ac_status = 0; }; }
28496 if test -s conftest.nm
28497 then
28498 if grep ' R xxvaryy' conftest.nm > /dev/null; then
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28500 $as_echo "yes" >&6; }
28502 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
28504 else
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
28506 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
28507 echo "$as_me: nm output was" >&5
28508 cat conftest.nm >&5
28509 { $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
28510 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
28512 else
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
28514 $as_echo "test failed" >&6; }
28515 echo "$as_me: failed program was" >&5
28516 cat conftest.s >&5
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28518 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28520 rm -f conftest.s conftest.o conftest.elf conftest.nm
28522 # Check for emulation avrxmega2_flmap.
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega2_flmap support (PR31124)" >&5
28524 $as_echo_n "checking binutils for avrxmega2_flmap support (PR31124)... " >&6; }
28525 cat > conftest.s <<EOF
28526 .section .text,"ax",@progbits
28527 ldi r16, __flmap_value_with_lock
28529 { ac_try='$gcc_cv_as -mmcu=avrxmega2 conftest.s -o conftest.o'
28530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28531 (eval $ac_try) 2>&5
28532 ac_status=$?
28533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534 test $ac_status = 0; }; }
28535 { ac_try='$gcc_cv_ld -mavrxmega2_flmap conftest.o -o conftest.elf'
28536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28537 (eval $ac_try) 2>&5
28538 ac_status=$?
28539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28540 test $ac_status = 0; }; }
28541 if test -s conftest.elf
28542 then
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28544 $as_echo "yes" >&6; }
28546 $as_echo "#define HAVE_LD_AVR_AVRXMEGA2_FLMAP 1" >>confdefs.h
28548 else
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28550 $as_echo "no" >&6; }
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28552 $as_echo "$as_me: WARNING: support for avrxmega2_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28554 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28556 rm -f conftest.o conftest.elf
28558 # Check for emulation avrxmega4_flmap.
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega4_flmap support (PR31124)" >&5
28560 $as_echo_n "checking binutils for avrxmega4_flmap support (PR31124)... " >&6; }
28561 { ac_try='$gcc_cv_as -mmcu=avrxmega4 conftest.s -o conftest.o'
28562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28566 test $ac_status = 0; }; }
28567 { ac_try='$gcc_cv_ld -mavrxmega4_flmap conftest.o -o conftest.elf'
28568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28572 test $ac_status = 0; }; }
28573 if test -s conftest.elf
28574 then
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28576 $as_echo "yes" >&6; }
28578 $as_echo "#define HAVE_LD_AVR_AVRXMEGA4_FLMAP 1" >>confdefs.h
28580 else
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28582 $as_echo "no" >&6; }
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&5
28584 $as_echo "$as_me: WARNING: support for avrxmega4_flmap requires Binutils 2.42 or higher (have $avr_ld_ver)" >&2;}
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
28586 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
28588 rm -f conftest.s conftest.o conftest.elf
28591 cris-*-*)
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
28593 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
28594 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
28595 $as_echo_n "(cached) " >&6
28596 else
28597 gcc_cv_as_cris_no_mul_bug=no
28598 if test x$gcc_cv_as != x; then
28599 $as_echo '.text' > conftest.s
28600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
28601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28602 (eval $ac_try) 2>&5
28603 ac_status=$?
28604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28605 test $ac_status = 0; }; }
28606 then
28607 gcc_cv_as_cris_no_mul_bug=yes
28608 else
28609 echo "configure: failed program was" >&5
28610 cat conftest.s >&5
28612 rm -f conftest.o conftest.s
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
28616 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
28617 if test $gcc_cv_as_cris_no_mul_bug = yes; then
28619 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
28625 sparc*-*-*)
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
28627 $as_echo_n "checking assembler for -relax option... " >&6; }
28628 if ${gcc_cv_as_sparc_relax+:} false; then :
28629 $as_echo_n "(cached) " >&6
28630 else
28631 gcc_cv_as_sparc_relax=no
28632 if test x$gcc_cv_as != x; then
28633 $as_echo '.text' > conftest.s
28634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
28635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28636 (eval $ac_try) 2>&5
28637 ac_status=$?
28638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28639 test $ac_status = 0; }; }
28640 then
28641 gcc_cv_as_sparc_relax=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_relax" >&5
28650 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
28651 if test $gcc_cv_as_sparc_relax = yes; then
28653 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
28659 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
28660 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
28661 $as_echo_n "(cached) " >&6
28662 else
28663 gcc_cv_as_sparc_gotdata_op=no
28664 if test x$gcc_cv_as != x; then
28665 $as_echo '.text
28666 .align 4
28667 foo:
28669 bar:
28670 sethi %gdop_hix22(foo), %g1
28671 xor %g1, %gdop_lox10(foo), %g1
28672 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
28673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
28681 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28682 if test x$gcc_cv_objdump != x; then
28683 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
28684 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
28685 gcc_cv_as_sparc_gotdata_op=no
28686 else
28687 gcc_cv_as_sparc_gotdata_op=yes
28691 rm -f conftest
28692 else
28693 echo "configure: failed program was" >&5
28694 cat conftest.s >&5
28696 rm -f conftest.o conftest.s
28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
28700 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
28701 if test $gcc_cv_as_sparc_gotdata_op = yes; then
28703 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
28709 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
28710 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
28711 $as_echo_n "(cached) " >&6
28712 else
28713 gcc_cv_as_sparc_ua_pcrel=no
28714 if test x$gcc_cv_as != x; then
28715 $as_echo '.text
28716 foo:
28718 .data
28719 .align 4
28720 .byte 0
28721 .uaword %r_disp32(foo)' > conftest.s
28722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28724 (eval $ac_try) 2>&5
28725 ac_status=$?
28726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28727 test $ac_status = 0; }; }
28728 then
28729 if test x$gcc_cv_ld != x \
28730 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
28731 gcc_cv_as_sparc_ua_pcrel=yes
28733 rm -f conftest
28734 else
28735 echo "configure: failed program was" >&5
28736 cat conftest.s >&5
28738 rm -f conftest.o conftest.s
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
28742 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
28743 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
28745 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
28749 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
28750 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
28751 $as_echo_n "(cached) " >&6
28752 else
28753 gcc_cv_as_sparc_ua_pcrel_hidden=no
28754 if test x$gcc_cv_as != x; then
28755 $as_echo '.data
28756 .align 4
28757 .byte 0x31
28758 .uaword %r_disp32(foo)
28759 .byte 0x32, 0x33, 0x34
28760 .global foo
28761 .hidden foo
28762 foo:
28763 .skip 4' > conftest.s
28764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
28765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28769 test $ac_status = 0; }; }
28770 then
28771 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
28772 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
28773 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
28774 | grep ' 31000000 07323334' > /dev/null 2>&1; then
28775 if $gcc_cv_objdump -R conftest 2> /dev/null \
28776 | grep 'DISP32' > /dev/null 2>&1; then
28778 else
28779 gcc_cv_as_sparc_ua_pcrel_hidden=yes
28782 rm -f conftest
28783 else
28784 echo "configure: failed program was" >&5
28785 cat conftest.s >&5
28787 rm -f conftest.o conftest.s
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
28791 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
28792 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
28794 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
28800 # unaligned pcrel relocs
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
28803 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
28804 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
28805 $as_echo_n "(cached) " >&6
28806 else
28807 gcc_cv_as_sparc_offsetable_lo10=no
28808 if test x$gcc_cv_as != x; then
28809 $as_echo '.text
28810 or %g1, %lo(ab) + 12, %g1
28811 or %g1, %lo(ab + 12), %g1' > conftest.s
28812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
28813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28814 (eval $ac_try) 2>&5
28815 ac_status=$?
28816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28817 test $ac_status = 0; }; }
28818 then
28819 if test x$gcc_cv_objdump != x \
28820 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
28821 | grep ' 82106000 82106000' > /dev/null 2>&1; then
28822 gcc_cv_as_sparc_offsetable_lo10=yes
28824 else
28825 echo "configure: failed program was" >&5
28826 cat conftest.s >&5
28828 rm -f conftest.o conftest.s
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
28832 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
28833 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
28835 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
28841 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
28842 if ${gcc_cv_as_sparc_fmaf+:} false; then :
28843 $as_echo_n "(cached) " >&6
28844 else
28845 gcc_cv_as_sparc_fmaf=no
28846 if test x$gcc_cv_as != x; then
28847 $as_echo '.text
28848 .register %g2, #scratch
28849 .register %g3, #scratch
28850 .align 4
28851 fmaddd %f0, %f2, %f4, %f6
28852 addxccc %g1, %g2, %g3
28853 fsrl32 %f2, %f4, %f8
28854 fnaddd %f10, %f12, %f14' > conftest.s
28855 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
28856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28857 (eval $ac_try) 2>&5
28858 ac_status=$?
28859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28860 test $ac_status = 0; }; }
28861 then
28862 gcc_cv_as_sparc_fmaf=yes
28863 else
28864 echo "configure: failed program was" >&5
28865 cat conftest.s >&5
28867 rm -f conftest.o conftest.s
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
28871 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
28872 if test $gcc_cv_as_sparc_fmaf = yes; then
28874 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
28880 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
28881 if ${gcc_cv_as_sparc_sparc4+:} false; then :
28882 $as_echo_n "(cached) " >&6
28883 else
28884 gcc_cv_as_sparc_sparc4=no
28885 if test x$gcc_cv_as != x; then
28886 $as_echo '.text
28887 .register %g2, #scratch
28888 .register %g3, #scratch
28889 .align 4
28890 cxbe %g2, %g3, 1f
28891 1: cwbneg %g2, %g3, 1f
28892 1: sha1
28894 aes_kexpand0 %f4, %f6, %f8
28895 des_round %f38, %f40, %f42, %f44
28896 camellia_f %f54, %f56, %f58, %f60
28897 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
28898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
28899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28903 test $ac_status = 0; }; }
28904 then
28905 gcc_cv_as_sparc_sparc4=yes
28906 else
28907 echo "configure: failed program was" >&5
28908 cat conftest.s >&5
28910 rm -f conftest.o conftest.s
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
28914 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
28915 if test $gcc_cv_as_sparc_sparc4 = yes; then
28917 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
28923 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
28924 if ${gcc_cv_as_sparc_sparc5+:} false; then :
28925 $as_echo_n "(cached) " >&6
28926 else
28927 gcc_cv_as_sparc_sparc5=no
28928 if test x$gcc_cv_as != x; then
28929 $as_echo '.text
28930 .register %g2, #scratch
28931 .register %g3, #scratch
28932 .align 4
28933 subxc %g1, %g2, %g3
28934 fpadd8 %f0, %f2, %f4' > conftest.s
28935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
28936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28937 (eval $ac_try) 2>&5
28938 ac_status=$?
28939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28940 test $ac_status = 0; }; }
28941 then
28942 gcc_cv_as_sparc_sparc5=yes
28943 else
28944 echo "configure: failed program was" >&5
28945 cat conftest.s >&5
28947 rm -f conftest.o conftest.s
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
28951 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
28952 if test $gcc_cv_as_sparc_sparc5 = yes; then
28954 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
28960 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
28961 if ${gcc_cv_as_sparc_sparc6+:} false; then :
28962 $as_echo_n "(cached) " >&6
28963 else
28964 gcc_cv_as_sparc_sparc6=no
28965 if test x$gcc_cv_as != x; then
28966 $as_echo '.text
28967 .register %g2, #scratch
28968 .register %g3, #scratch
28969 .align 4
28970 rd %entropy, %g1
28971 fpsll64x %f0, %f2, %f4' > conftest.s
28972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
28973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28974 (eval $ac_try) 2>&5
28975 ac_status=$?
28976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28977 test $ac_status = 0; }; }
28978 then
28979 gcc_cv_as_sparc_sparc6=yes
28980 else
28981 echo "configure: failed program was" >&5
28982 cat conftest.s >&5
28984 rm -f conftest.o conftest.s
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
28988 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
28989 if test $gcc_cv_as_sparc_sparc6 = yes; then
28991 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
28997 $as_echo_n "checking assembler for LEON instructions... " >&6; }
28998 if ${gcc_cv_as_sparc_leon+:} false; then :
28999 $as_echo_n "(cached) " >&6
29000 else
29001 gcc_cv_as_sparc_leon=no
29002 if test x$gcc_cv_as != x; then
29003 $as_echo '.text
29004 .register %g2, #scratch
29005 .register %g3, #scratch
29006 .align 4
29007 smac %g2, %g3, %g1
29008 umac %g2, %g3, %g1
29009 casa [%g2] 0xb, %g3, %g1' > conftest.s
29010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
29011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29015 test $ac_status = 0; }; }
29016 then
29017 gcc_cv_as_sparc_leon=yes
29018 else
29019 echo "configure: failed program was" >&5
29020 cat conftest.s >&5
29022 rm -f conftest.o conftest.s
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
29026 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
29027 if test $gcc_cv_as_sparc_leon = yes; then
29029 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
29035 i[34567]86-*-* | x86_64-*-*)
29036 case $target_os in
29037 cygwin*)
29038 # Full C++ conformance when using a shared libstdc++-v3 requires some
29039 # support from the Cygwin DLL, which in more recent versions exports
29040 # wrappers to aid in interposing and redirecting operators new, delete,
29041 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
29042 # are configuring for a version of Cygwin that exports the wrappers.
29043 if test x$host = x$target && test x$host_cpu = xi686; then
29044 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
29045 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
29046 gcc_ac_cygwin_dll_wrappers=yes
29047 else
29048 gcc_ac_cygwin_dll_wrappers=no
29051 else
29052 # Can't check presence of libc functions during cross-compile, so
29053 # we just have to assume we're building for an up-to-date target.
29054 gcc_ac_cygwin_dll_wrappers=yes
29057 cat >>confdefs.h <<_ACEOF
29058 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
29059 _ACEOF
29061 esac
29062 case $target_os in
29063 cygwin* | pe | mingw32*)
29064 # Recent binutils allows the three-operand form of ".comm" on PE. This
29065 # definition is used unconditionally to initialise the default state of
29066 # the target option variable that governs usage of the feature.
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
29068 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
29069 if ${gcc_cv_as_comm_has_align+:} false; then :
29070 $as_echo_n "(cached) " >&6
29071 else
29072 gcc_cv_as_comm_has_align=no
29073 if test x$gcc_cv_as != x; then
29074 $as_echo '.comm foo,1,32' > conftest.s
29075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29077 (eval $ac_try) 2>&5
29078 ac_status=$?
29079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29080 test $ac_status = 0; }; }
29081 then
29082 gcc_cv_as_comm_has_align=yes
29083 else
29084 echo "configure: failed program was" >&5
29085 cat conftest.s >&5
29087 rm -f conftest.o conftest.s
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
29091 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
29095 cat >>confdefs.h <<_ACEOF
29096 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
29097 _ACEOF
29099 # Used for DWARF 2 in PE
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
29101 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
29102 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
29103 $as_echo_n "(cached) " >&6
29104 else
29105 gcc_cv_as_ix86_pe_secrel32=no
29106 if test x$gcc_cv_as != x; then
29107 $as_echo '.text
29108 foo: nop
29109 .data
29110 .secrel32 foo' > conftest.s
29111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29113 (eval $ac_try) 2>&5
29114 ac_status=$?
29115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29116 test $ac_status = 0; }; }
29117 then
29118 if test x$gcc_cv_ld != x \
29119 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
29120 gcc_cv_as_ix86_pe_secrel32=yes
29122 rm -f conftest
29123 else
29124 echo "configure: failed program was" >&5
29125 cat conftest.s >&5
29127 rm -f conftest.o conftest.s
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
29131 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
29132 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
29134 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
29138 # Test if the assembler supports the extended form of the .section
29139 # directive that specifies section alignment. LTO support uses this,
29140 # but normally only after installation, so we warn but don't fail the
29141 # configure if LTO is enabled but the assembler does not support it.
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
29143 $as_echo_n "checking assembler for .section with alignment... " >&6; }
29144 if ${gcc_cv_as_section_has_align+:} false; then :
29145 $as_echo_n "(cached) " >&6
29146 else
29147 gcc_cv_as_section_has_align=no
29148 if test x$gcc_cv_as != x; then
29149 $as_echo '.section lto_test,"dr0"' > conftest.s
29150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
29151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29152 (eval $ac_try) 2>&5
29153 ac_status=$?
29154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29155 test $ac_status = 0; }; }
29156 then
29157 gcc_cv_as_section_has_align=yes
29158 else
29159 echo "configure: failed program was" >&5
29160 cat conftest.s >&5
29162 rm -f conftest.o conftest.s
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
29166 $as_echo "$gcc_cv_as_section_has_align" >&6; }
29169 if test x$gcc_cv_as_section_has_align != xyes; then
29170 case ",$enable_languages," in
29171 *,lto,*)
29172 { $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
29173 $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;}
29175 esac
29178 esac
29179 case $target_os in
29180 darwin2* | darwin19*)
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
29182 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
29183 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
29184 $as_echo_n "(cached) " >&6
29185 else
29186 gcc_cv_as_mllvm_x86_pad_for_align=no
29187 if test x$gcc_cv_as != x; then
29188 $as_echo '.text' > conftest.s
29189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
29190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29191 (eval $ac_try) 2>&5
29192 ac_status=$?
29193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29194 test $ac_status = 0; }; }
29195 then
29196 gcc_cv_as_mllvm_x86_pad_for_align=yes
29197 else
29198 echo "configure: failed program was" >&5
29199 cat conftest.s >&5
29201 rm -f conftest.o conftest.s
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
29205 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
29206 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
29208 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
29213 esac
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
29216 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
29217 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
29218 $as_echo_n "(cached) " >&6
29219 else
29220 gcc_cv_as_ix86_xbrace_comment=no
29221 if test x$gcc_cv_as != x; then
29222 $as_echo '.text' > conftest.s
29223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
29224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29225 (eval $ac_try) 2>&5
29226 ac_status=$?
29227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29228 test $ac_status = 0; }; }
29229 then
29230 gcc_cv_as_ix86_xbrace_comment=yes
29231 else
29232 echo "configure: failed program was" >&5
29233 cat conftest.s >&5
29235 rm -f conftest.o conftest.s
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
29239 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
29240 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
29242 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
29248 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
29249 if ${gcc_cv_as_ix86_filds+:} false; then :
29250 $as_echo_n "(cached) " >&6
29251 else
29252 gcc_cv_as_ix86_filds=no
29253 if test x$gcc_cv_as != x; then
29254 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
29255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29257 (eval $ac_try) 2>&5
29258 ac_status=$?
29259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29260 test $ac_status = 0; }; }
29261 then
29262 gcc_cv_as_ix86_filds=yes
29263 else
29264 echo "configure: failed program was" >&5
29265 cat conftest.s >&5
29267 rm -f conftest.o conftest.s
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
29271 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
29272 if test $gcc_cv_as_ix86_filds = yes; then
29274 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
29280 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
29281 if ${gcc_cv_as_ix86_fildq+:} false; then :
29282 $as_echo_n "(cached) " >&6
29283 else
29284 gcc_cv_as_ix86_fildq=no
29285 if test x$gcc_cv_as != x; then
29286 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
29287 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29289 (eval $ac_try) 2>&5
29290 ac_status=$?
29291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29292 test $ac_status = 0; }; }
29293 then
29294 gcc_cv_as_ix86_fildq=yes
29295 else
29296 echo "configure: failed program was" >&5
29297 cat conftest.s >&5
29299 rm -f conftest.o conftest.s
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
29303 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
29304 if test $gcc_cv_as_ix86_fildq = yes; then
29306 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
29312 $as_echo_n "checking assembler for cmov syntax... " >&6; }
29313 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
29314 $as_echo_n "(cached) " >&6
29315 else
29316 gcc_cv_as_ix86_cmov_sun_syntax=no
29317 if test x$gcc_cv_as != x; then
29318 $as_echo 'cmovl.l %edx, %eax' > conftest.s
29319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29321 (eval $ac_try) 2>&5
29322 ac_status=$?
29323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29324 test $ac_status = 0; }; }
29325 then
29326 gcc_cv_as_ix86_cmov_sun_syntax=yes
29327 else
29328 echo "configure: failed program was" >&5
29329 cat conftest.s >&5
29331 rm -f conftest.o conftest.s
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
29335 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
29336 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
29338 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
29343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
29344 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
29345 if ${gcc_cv_as_ix86_ffreep+:} false; then :
29346 $as_echo_n "(cached) " >&6
29347 else
29348 gcc_cv_as_ix86_ffreep=no
29349 if test x$gcc_cv_as != x; then
29350 $as_echo 'ffreep %st(1)' > conftest.s
29351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29353 (eval $ac_try) 2>&5
29354 ac_status=$?
29355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29356 test $ac_status = 0; }; }
29357 then
29358 gcc_cv_as_ix86_ffreep=yes
29359 else
29360 echo "configure: failed program was" >&5
29361 cat conftest.s >&5
29363 rm -f conftest.o conftest.s
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
29367 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
29368 if test $gcc_cv_as_ix86_ffreep = yes; then
29370 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
29376 $as_echo_n "checking assembler for .quad directive... " >&6; }
29377 if ${gcc_cv_as_ix86_quad+:} false; then :
29378 $as_echo_n "(cached) " >&6
29379 else
29380 gcc_cv_as_ix86_quad=no
29381 if test x$gcc_cv_as != x; then
29382 $as_echo '.quad 0' > conftest.s
29383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29385 (eval $ac_try) 2>&5
29386 ac_status=$?
29387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29388 test $ac_status = 0; }; }
29389 then
29390 gcc_cv_as_ix86_quad=yes
29391 else
29392 echo "configure: failed program was" >&5
29393 cat conftest.s >&5
29395 rm -f conftest.o conftest.s
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
29399 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
29400 if test $gcc_cv_as_ix86_quad = yes; then
29402 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
29408 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
29409 if ${gcc_cv_as_ix86_sahf+:} false; then :
29410 $as_echo_n "(cached) " >&6
29411 else
29412 gcc_cv_as_ix86_sahf=no
29413 if test x$gcc_cv_as != x; then
29414 $as_echo '.code64
29415 sahf' > conftest.s
29416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29421 test $ac_status = 0; }; }
29422 then
29423 gcc_cv_as_ix86_sahf=yes
29424 else
29425 echo "configure: failed program was" >&5
29426 cat conftest.s >&5
29428 rm -f conftest.o conftest.s
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
29432 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
29433 if test $gcc_cv_as_ix86_sahf = yes; then
29435 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
29441 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
29442 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
29443 $as_echo_n "(cached) " >&6
29444 else
29445 gcc_cv_as_ix86_interunit_movq=no
29446 if test x$gcc_cv_as != x; then
29447 $as_echo '.code64
29448 movq %mm0, %rax
29449 movq %rax, %xmm0' > conftest.s
29450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29452 (eval $ac_try) 2>&5
29453 ac_status=$?
29454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29455 test $ac_status = 0; }; }
29456 then
29457 gcc_cv_as_ix86_interunit_movq=yes
29458 else
29459 echo "configure: failed program was" >&5
29460 cat conftest.s >&5
29462 rm -f conftest.o conftest.s
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
29466 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
29470 cat >>confdefs.h <<_ACEOF
29471 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
29472 _ACEOF
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
29476 $as_echo_n "checking assembler for hle prefixes... " >&6; }
29477 if ${gcc_cv_as_ix86_hle+:} false; then :
29478 $as_echo_n "(cached) " >&6
29479 else
29480 gcc_cv_as_ix86_hle=no
29481 if test x$gcc_cv_as != x; then
29482 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
29483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29485 (eval $ac_try) 2>&5
29486 ac_status=$?
29487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488 test $ac_status = 0; }; }
29489 then
29490 gcc_cv_as_ix86_hle=yes
29491 else
29492 echo "configure: failed program was" >&5
29493 cat conftest.s >&5
29495 rm -f conftest.o conftest.s
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
29499 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
29500 if test $gcc_cv_as_ix86_hle = yes; then
29502 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
29508 $as_echo_n "checking assembler for swap suffix... " >&6; }
29509 if ${gcc_cv_as_ix86_swap+:} false; then :
29510 $as_echo_n "(cached) " >&6
29511 else
29512 gcc_cv_as_ix86_swap=no
29513 if test x$gcc_cv_as != x; then
29514 $as_echo 'movl.s %esp, %ebp' > conftest.s
29515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29517 (eval $ac_try) 2>&5
29518 ac_status=$?
29519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29520 test $ac_status = 0; }; }
29521 then
29522 gcc_cv_as_ix86_swap=yes
29523 else
29524 echo "configure: failed program was" >&5
29525 cat conftest.s >&5
29527 rm -f conftest.o conftest.s
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
29531 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
29532 if test $gcc_cv_as_ix86_swap = yes; then
29534 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
29540 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
29541 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
29542 $as_echo_n "(cached) " >&6
29543 else
29544 gcc_cv_as_ix86_diff_sect_delta=no
29545 if test x$gcc_cv_as != x; then
29546 $as_echo '.section .rodata
29547 .L1:
29548 .long .L2-.L1
29549 .long .L3-.L1
29550 .text
29551 .L3: nop
29552 .L2: nop' > conftest.s
29553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29558 test $ac_status = 0; }; }
29559 then
29560 gcc_cv_as_ix86_diff_sect_delta=yes
29561 else
29562 echo "configure: failed program was" >&5
29563 cat conftest.s >&5
29565 rm -f conftest.o conftest.s
29568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
29569 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
29570 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
29572 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
29578 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
29579 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
29580 $as_echo_n "(cached) " >&6
29581 else
29582 gcc_cv_as_ix86_rep_lock_prefix=no
29583 if test x$gcc_cv_as != x; then
29584 $as_echo 'rep movsl
29585 rep ret
29586 rep nop
29587 rep bsf %ecx, %eax
29588 rep bsr %ecx, %eax
29589 lock addl %edi, (%eax,%esi)
29590 lock orl $0, (%esp)' > conftest.s
29591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29596 test $ac_status = 0; }; }
29597 then
29598 gcc_cv_as_ix86_rep_lock_prefix=yes
29599 else
29600 echo "configure: failed program was" >&5
29601 cat conftest.s >&5
29603 rm -f conftest.o conftest.s
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
29607 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
29608 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
29610 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
29616 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
29617 if ${gcc_cv_as_ix86_ud2+:} false; then :
29618 $as_echo_n "(cached) " >&6
29619 else
29620 gcc_cv_as_ix86_ud2=no
29621 if test x$gcc_cv_as != x; then
29622 $as_echo 'ud2' > conftest.s
29623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29625 (eval $ac_try) 2>&5
29626 ac_status=$?
29627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29628 test $ac_status = 0; }; }
29629 then
29630 gcc_cv_as_ix86_ud2=yes
29631 else
29632 echo "configure: failed program was" >&5
29633 cat conftest.s >&5
29635 rm -f conftest.o conftest.s
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
29639 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
29640 if test $gcc_cv_as_ix86_ud2 = yes; then
29642 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
29647 # Enforce 32-bit output with gas and gld.
29648 if test x$gas = xyes; then
29649 as_ix86_gas_32_opt="--32"
29651 if echo "$ld_ver" | grep GNU > /dev/null; then
29652 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
29653 ld_ix86_gld_32_opt="-melf_i386_sol2"
29654 else
29655 ld_ix86_gld_32_opt="-melf_i386"
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
29660 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
29661 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
29662 $as_echo_n "(cached) " >&6
29663 else
29664 gcc_cv_as_ix86_tlsgdplt=no
29665 if test x$gcc_cv_as != x; then
29666 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
29667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29672 test $ac_status = 0; }; }
29673 then
29674 if test x$gcc_cv_ld != x \
29675 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29676 gcc_cv_as_ix86_tlsgdplt=yes
29678 rm -f conftest
29679 else
29680 echo "configure: failed program was" >&5
29681 cat conftest.s >&5
29683 rm -f conftest.o conftest.s
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
29687 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
29688 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
29690 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
29695 conftest_s='
29696 .section .tdata,"aw'$tls_section_flag'",@progbits
29697 tls_ld:
29698 .section .text,"ax",@progbits
29699 call tls_ld@tlsldmplt'
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
29702 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
29703 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
29704 $as_echo_n "(cached) " >&6
29705 else
29706 gcc_cv_as_ix86_tlsldmplt=no
29707 if test x$gcc_cv_as != x; then
29708 $as_echo "$conftest_s" > conftest.s
29709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29714 test $ac_status = 0; }; }
29715 then
29716 if test x$gcc_cv_ld != x \
29717 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
29718 gcc_cv_as_ix86_tlsldmplt=yes
29720 rm -f conftest
29721 else
29722 echo "configure: failed program was" >&5
29723 cat conftest.s >&5
29725 rm -f conftest.o conftest.s
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
29729 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
29733 cat >>confdefs.h <<_ACEOF
29734 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
29735 _ACEOF
29738 conftest_s='
29739 .section .text,"ax",@progbits
29740 .globl _start
29741 .type _start, @function
29742 _start:
29743 leal value@tlsldm(%ebx), %eax
29744 call ___tls_get_addr@plt
29746 .section .tdata,"aw'$tls_section_flag'",@progbits
29747 .type value, @object
29748 value:'
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
29750 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
29751 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
29752 $as_echo_n "(cached) " >&6
29753 else
29754 gcc_cv_as_ix86_tlsldm=no
29755 if test x$gcc_cv_as != x; then
29756 $as_echo "$conftest_s" > conftest.s
29757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29762 test $ac_status = 0; }; }
29763 then
29764 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29765 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
29766 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
29767 || dis conftest 2>/dev/null | grep nop > /dev/null; then
29768 gcc_cv_as_ix86_tlsldm=yes
29771 rm -f conftest
29772 else
29773 echo "configure: failed program was" >&5
29774 cat conftest.s >&5
29776 rm -f conftest.o conftest.s
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
29780 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
29784 cat >>confdefs.h <<_ACEOF
29785 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
29786 _ACEOF
29789 conftest_s='
29790 .data
29791 bar:
29792 .byte 1
29793 .text
29794 .global _start
29795 _start:
29796 cmpl $0, bar@GOT
29797 jmp *_start@GOT'
29798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
29799 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
29800 if ${gcc_cv_as_ix86_got32x+:} false; then :
29801 $as_echo_n "(cached) " >&6
29802 else
29803 gcc_cv_as_ix86_got32x=no
29804 if test x$gcc_cv_as != x; then
29805 $as_echo "$conftest_s" > conftest.s
29806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29808 (eval $ac_try) 2>&5
29809 ac_status=$?
29810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29811 test $ac_status = 0; }; }
29812 then
29813 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29814 && test x$gcc_cv_readelf != x \
29815 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29816 | grep R_386_GOT32X > /dev/null 2>&1 \
29817 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29818 if $gcc_cv_objdump -dw conftest 2>&1 \
29819 | grep 0xffffff > /dev/null 2>&1; then
29820 gcc_cv_as_ix86_got32x=no
29821 else
29822 gcc_cv_as_ix86_got32x=yes
29825 rm -f conftest
29826 else
29827 echo "configure: failed program was" >&5
29828 cat conftest.s >&5
29830 rm -f conftest.o conftest.s
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
29834 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
29838 cat >>confdefs.h <<_ACEOF
29839 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
29840 _ACEOF
29843 # Check if gas and gld support "addq %r23,foo@GOTTPOFF(%rip), %r15"
29844 # with R_X86_64_CODE_6_GOTTPOFF relocation.
29845 if echo "$ld_ver" | grep GNU > /dev/null; then
29846 if $gcc_cv_ld -V 2>/dev/null | grep elf_x86_64_sol2 > /dev/null; then
29847 ld_ix86_gld_64_opt="-melf_x86_64_sol2"
29848 else
29849 ld_ix86_gld_64_opt="-melf_x86_64"
29852 # Enforce 64-bit output with gas and gld.
29853 if test x$gas = xyes; then
29854 as_ix86_gas_64_opt="--64"
29856 conftest_s='
29857 .text
29858 .globl _start
29859 .type _start, @function
29860 _start:
29861 addq %r23,foo@GOTTPOFF(%rip), %r15
29862 .section .tdata,"awT",@progbits
29863 .type foo, @object
29864 foo:
29865 .quad 0'
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc" >&5
29867 $as_echo_n "checking assembler for R_X86_64_CODE_6_GOTTPOFF reloc... " >&6; }
29868 if ${gcc_cv_as_x86_64_code_6_gottpoff+:} false; then :
29869 $as_echo_n "(cached) " >&6
29870 else
29871 gcc_cv_as_x86_64_code_6_gottpoff=no
29872 if test x$gcc_cv_as != x; then
29873 $as_echo "$conftest_s" > conftest.s
29874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_64_opt -o conftest.o conftest.s >&5'
29875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29876 (eval $ac_try) 2>&5
29877 ac_status=$?
29878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29879 test $ac_status = 0; }; }
29880 then
29881 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
29882 && test x$gcc_cv_readelf != x \
29883 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
29884 | grep R_X86_64_CODE_6_GOTTPOFF > /dev/null 2>&1 \
29885 && $gcc_cv_ld $ld_ix86_gld_64_opt -o conftest conftest.o > /dev/null 2>&1; then
29886 if $gcc_cv_objdump -dw conftest 2>&1 \
29887 | grep "add \+\$0xf\+8,%r23,%r15" > /dev/null 2>&1; then
29888 gcc_cv_as_x86_64_code_6_gottpoff=yes
29889 else
29890 gcc_cv_as_x86_64_code_6_gottpoff=no
29893 rm -f conftest
29894 else
29895 echo "configure: failed program was" >&5
29896 cat conftest.s >&5
29898 rm -f conftest.o conftest.s
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_x86_64_code_6_gottpoff" >&5
29902 $as_echo "$gcc_cv_as_x86_64_code_6_gottpoff" >&6; }
29906 cat >>confdefs.h <<_ACEOF
29907 #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`
29908 _ACEOF
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
29912 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
29913 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
29914 $as_echo_n "(cached) " >&6
29915 else
29916 gcc_cv_as_ix86_gotoff_in_data=no
29917 if test x$gcc_cv_as != x; then
29918 $as_echo ' .text
29919 .L0:
29921 .data
29922 .long .L0@GOTOFF' > conftest.s
29923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29928 test $ac_status = 0; }; }
29929 then
29930 gcc_cv_as_ix86_gotoff_in_data=yes
29931 else
29932 echo "configure: failed program was" >&5
29933 cat conftest.s >&5
29935 rm -f conftest.o conftest.s
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
29939 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
29943 cat >>confdefs.h <<_ACEOF
29944 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
29945 _ACEOF
29948 conftest_s='
29949 .section .text,"ax",@progbits
29950 .globl _start
29951 .type _start, @function
29952 _start:
29953 leal ld@tlsldm(%ecx), %eax
29954 call *___tls_get_addr@GOT(%ecx)
29955 leal gd@tlsgd(%ecx), %eax
29956 call *___tls_get_addr@GOT(%ecx)
29958 .section .tdata,"aw'$tls_section_flag'",@progbits
29959 .type ld, @object
29961 .byte 0
29962 .globl gd
29963 .type gd, @object
29965 .byte 0'
29966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
29967 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
29968 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
29969 $as_echo_n "(cached) " >&6
29970 else
29971 gcc_cv_as_ix86_tls_get_addr_via_got=no
29972 if test x$gcc_cv_as != x; then
29973 $as_echo "$conftest_s" > conftest.s
29974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
29975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29976 (eval $ac_try) 2>&5
29977 ac_status=$?
29978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29979 test $ac_status = 0; }; }
29980 then
29981 if test x$gcc_cv_ld != x \
29982 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
29983 gcc_cv_as_ix86_tls_get_addr_via_got=yes
29985 rm -f conftest
29986 else
29987 echo "configure: failed program was" >&5
29988 cat conftest.s >&5
29990 rm -f conftest.o conftest.s
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
29994 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
29998 cat >>confdefs.h <<_ACEOF
29999 #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`
30000 _ACEOF
30004 ia64*-*-*)
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
30006 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
30007 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
30008 $as_echo_n "(cached) " >&6
30009 else
30010 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
30011 if test x$gcc_cv_as != x; then
30012 $as_echo ' .text
30013 addl r15 = @ltoffx(x#), gp
30015 ld8.mov r16 = [r15], x#
30016 ' > conftest.s
30017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30019 (eval $ac_try) 2>&5
30020 ac_status=$?
30021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30022 test $ac_status = 0; }; }
30023 then
30024 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
30025 else
30026 echo "configure: failed program was" >&5
30027 cat conftest.s >&5
30029 rm -f conftest.o conftest.s
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
30033 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
30034 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
30036 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
30043 powerpc*-*-*)
30045 case $target in
30046 *-*-darwin*)
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
30048 $as_echo_n "checking assembler for .machine directive support... " >&6; }
30049 if ${gcc_cv_as_machine_directive+:} false; then :
30050 $as_echo_n "(cached) " >&6
30051 else
30052 gcc_cv_as_machine_directive=no
30053 if test x$gcc_cv_as != x; then
30054 $as_echo ' .machine ppc7400' > conftest.s
30055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30057 (eval $ac_try) 2>&5
30058 ac_status=$?
30059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30060 test $ac_status = 0; }; }
30061 then
30062 gcc_cv_as_machine_directive=yes
30063 else
30064 echo "configure: failed program was" >&5
30065 cat conftest.s >&5
30067 rm -f conftest.o conftest.s
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
30071 $as_echo "$gcc_cv_as_machine_directive" >&6; }
30074 if test x$gcc_cv_as_machine_directive != xyes; then
30075 echo "*** This target requires an assembler supporting \".machine\"" >&2
30076 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
30077 test x$build = x$target && exit 1
30080 esac
30082 case $target in
30083 *-*-aix*) conftest_s=' .machine "pwr5"
30084 .csect .text[PR]
30085 mfcr 3,128';;
30086 *-*-darwin*) conftest_s=' .text
30087 mfcr r3,128';;
30088 *) conftest_s=' .machine power4
30089 .text
30090 mfcr 3,128';;
30091 esac
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
30094 $as_echo_n "checking assembler for mfcr field support... " >&6; }
30095 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
30096 $as_echo_n "(cached) " >&6
30097 else
30098 gcc_cv_as_powerpc_mfcrf=no
30099 if test x$gcc_cv_as != x; then
30100 $as_echo "$conftest_s" > conftest.s
30101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30103 (eval $ac_try) 2>&5
30104 ac_status=$?
30105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30106 test $ac_status = 0; }; }
30107 then
30108 gcc_cv_as_powerpc_mfcrf=yes
30109 else
30110 echo "configure: failed program was" >&5
30111 cat conftest.s >&5
30113 rm -f conftest.o conftest.s
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
30117 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
30118 if test $gcc_cv_as_powerpc_mfcrf = yes; then
30120 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
30125 case $target in
30126 *-*-aix*) conftest_s=' .machine "pwr10"
30127 .csect .text[PR]
30128 tend. 0';;
30129 *-*-darwin*) conftest_s=' .text
30130 tend. 0';;
30131 *) conftest_s=' .machine power10
30132 .text
30133 tend. 0';;
30134 esac
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for htm support on Power10" >&5
30137 $as_echo_n "checking assembler for htm support on Power10... " >&6; }
30138 if ${gcc_cv_as_power10_htm+:} false; then :
30139 $as_echo_n "(cached) " >&6
30140 else
30141 gcc_cv_as_power10_htm=no
30142 if test x$gcc_cv_as != x; then
30143 $as_echo "$conftest_s" > conftest.s
30144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_power10_htm=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_power10_htm" >&5
30160 $as_echo "$gcc_cv_as_power10_htm" >&6; }
30161 if test $gcc_cv_as_power10_htm = yes; then
30163 $as_echo "#define HAVE_AS_POWER10_HTM 1" >>confdefs.h
30168 case $target in
30169 *-*-aix*) conftest_s=' .csect .text[PR]
30170 LCF..0:
30171 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
30172 *-*-darwin*)
30173 conftest_s=' .text
30174 LCF0:
30175 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
30176 *) conftest_s=' .text
30177 .LCF0:
30178 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
30179 esac
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
30182 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
30183 if ${gcc_cv_as_powerpc_rel16+:} false; then :
30184 $as_echo_n "(cached) " >&6
30185 else
30186 gcc_cv_as_powerpc_rel16=no
30187 if test x$gcc_cv_as != x; then
30188 $as_echo "$conftest_s" > conftest.s
30189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30194 test $ac_status = 0; }; }
30195 then
30196 gcc_cv_as_powerpc_rel16=yes
30197 else
30198 echo "configure: failed program was" >&5
30199 cat conftest.s >&5
30201 rm -f conftest.o conftest.s
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
30205 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
30206 if test $gcc_cv_as_powerpc_rel16 = yes; then
30208 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
30213 case $target in
30214 *-*-aix*) conftest_s=' .machine "pwr7"
30215 .csect .text[PR]
30216 lxvd2x 1,2,3';;
30217 *) conftest_s=' .machine power7
30218 .text
30219 lxvd2x 1,2,3';;
30220 esac
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
30223 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
30224 if ${gcc_cv_as_powerpc_vsx+:} false; then :
30225 $as_echo_n "(cached) " >&6
30226 else
30227 gcc_cv_as_powerpc_vsx=no
30228 if test x$gcc_cv_as != x; then
30229 $as_echo "$conftest_s" > conftest.s
30230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
30231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30235 test $ac_status = 0; }; }
30236 then
30237 gcc_cv_as_powerpc_vsx=yes
30238 else
30239 echo "configure: failed program was" >&5
30240 cat conftest.s >&5
30242 rm -f conftest.o conftest.s
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
30246 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
30247 if test $gcc_cv_as_powerpc_vsx = yes; then
30249 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30255 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30256 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
30257 $as_echo_n "(cached) " >&6
30258 else
30259 gcc_cv_as_powerpc_gnu_attribute=no
30260 if test x$gcc_cv_as != x; then
30261 $as_echo '.gnu_attribute 4,1' > conftest.s
30262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30264 (eval $ac_try) 2>&5
30265 ac_status=$?
30266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30267 test $ac_status = 0; }; }
30268 then
30269 gcc_cv_as_powerpc_gnu_attribute=yes
30270 else
30271 echo "configure: failed program was" >&5
30272 cat conftest.s >&5
30274 rm -f conftest.o conftest.s
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
30278 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
30279 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
30281 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
30287 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
30288 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
30289 $as_echo_n "(cached) " >&6
30290 else
30291 gcc_cv_as_powerpc_entry_markers=no
30292 if test x$gcc_cv_as != x; then
30293 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
30294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
30295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30296 (eval $ac_try) 2>&5
30297 ac_status=$?
30298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30299 test $ac_status = 0; }; }
30300 then
30301 gcc_cv_as_powerpc_entry_markers=yes
30302 else
30303 echo "configure: failed program was" >&5
30304 cat conftest.s >&5
30306 rm -f conftest.o conftest.s
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
30310 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
30311 if test $gcc_cv_as_powerpc_entry_markers = yes; then
30313 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
30319 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
30320 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
30321 $as_echo_n "(cached) " >&6
30322 else
30323 gcc_cv_as_powerpc_pltseq_markers=no
30324 if test x$gcc_cv_as != x; then
30325 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
30326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
30327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331 test $ac_status = 0; }; }
30332 then
30333 gcc_cv_as_powerpc_pltseq_markers=yes
30334 else
30335 echo "configure: failed program was" >&5
30336 cat conftest.s >&5
30338 rm -f conftest.o conftest.s
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
30342 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
30343 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
30345 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
30350 case $target in
30351 *-*-aix*)
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
30353 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
30354 if ${gcc_cv_as_aix_ref+:} false; then :
30355 $as_echo_n "(cached) " >&6
30356 else
30357 gcc_cv_as_aix_ref=no
30358 if test x$gcc_cv_as != x; then
30359 $as_echo ' .csect stuff[rw]
30360 stuff:
30361 .long 1
30362 .extern sym
30363 .ref sym
30364 ' > conftest.s
30365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30367 (eval $ac_try) 2>&5
30368 ac_status=$?
30369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30370 test $ac_status = 0; }; }
30371 then
30372 gcc_cv_as_aix_ref=yes
30373 else
30374 echo "configure: failed program was" >&5
30375 cat conftest.s >&5
30377 rm -f conftest.o conftest.s
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
30381 $as_echo "$gcc_cv_as_aix_ref" >&6; }
30382 if test $gcc_cv_as_aix_ref = yes; then
30384 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
30390 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
30391 if ${gcc_cv_as_aix_dwloc+:} false; then :
30392 $as_echo_n "(cached) " >&6
30393 else
30394 gcc_cv_as_aix_dwloc=no
30395 if test x$gcc_cv_as != x; then
30396 $as_echo ' .dwsect 0xA0000
30397 Lframe..0:
30398 .vbyte 4,Lframe..0
30399 ' > conftest.s
30400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30402 (eval $ac_try) 2>&5
30403 ac_status=$?
30404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30405 test $ac_status = 0; }; }
30406 then
30407 gcc_cv_as_aix_dwloc=yes
30408 else
30409 echo "configure: failed program was" >&5
30410 cat conftest.s >&5
30412 rm -f conftest.o conftest.s
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
30416 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
30417 if test $gcc_cv_as_aix_dwloc = yes; then
30419 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
30424 esac
30427 mips*-*-*)
30428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo" >&5
30429 $as_echo_n "checking assembler for explicit relocation support: %pcrel_hi/%pcrel_lo... " >&6; }
30430 if ${gcc_cv_as_mips_explicit_relocs_pcrel+:} false; then :
30431 $as_echo_n "(cached) " >&6
30432 else
30433 gcc_cv_as_mips_explicit_relocs_pcrel=no
30434 if test x$gcc_cv_as != x; then
30435 $as_echo ' lui $4,%pcrel_hi(foo)' > conftest.s
30436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30438 (eval $ac_try) 2>&5
30439 ac_status=$?
30440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30441 test $ac_status = 0; }; }
30442 then
30443 gcc_cv_as_mips_explicit_relocs_pcrel=yes
30444 else
30445 echo "configure: failed program was" >&5
30446 cat conftest.s >&5
30448 rm -f conftest.o conftest.s
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs_pcrel" >&5
30452 $as_echo "$gcc_cv_as_mips_explicit_relocs_pcrel" >&6; }
30453 if test $gcc_cv_as_mips_explicit_relocs_pcrel = yes; then
30455 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_PCREL" >>confdefs.h
30460 if test x$gcc_cv_as_mips_explicit_relocs_pcrel = xno; then \
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support: %gp_rel" >&5
30462 $as_echo_n "checking assembler for explicit relocation support: %gp_rel... " >&6; }
30463 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
30464 $as_echo_n "(cached) " >&6
30465 else
30466 gcc_cv_as_mips_explicit_relocs=no
30467 if test x$gcc_cv_as != x; then
30468 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
30469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30474 test $ac_status = 0; }; }
30475 then
30476 gcc_cv_as_mips_explicit_relocs=yes
30477 else
30478 echo "configure: failed program was" >&5
30479 cat conftest.s >&5
30481 rm -f conftest.o conftest.s
30484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
30485 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
30486 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30488 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_BASE" >>confdefs.h
30494 if test x$gcc_cv_as_mips_explicit_relocs = xno; then \
30496 $as_echo "#define MIPS_EXPLICIT_RELOCS MIPS_EXPLICIT_RELOCS_NONE" >>confdefs.h
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
30501 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
30502 if ${gcc_cv_as_mips_no_shared+:} false; then :
30503 $as_echo_n "(cached) " >&6
30504 else
30505 gcc_cv_as_mips_no_shared=no
30506 if test x$gcc_cv_as != x; then
30507 $as_echo 'nop' > conftest.s
30508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
30509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30513 test $ac_status = 0; }; }
30514 then
30515 gcc_cv_as_mips_no_shared=yes
30516 else
30517 echo "configure: failed program was" >&5
30518 cat conftest.s >&5
30520 rm -f conftest.o conftest.s
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
30524 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
30525 if test $gcc_cv_as_mips_no_shared = yes; then
30527 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30533 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30534 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
30535 $as_echo_n "(cached) " >&6
30536 else
30537 gcc_cv_as_mips_gnu_attribute=no
30538 if test x$gcc_cv_as != x; then
30539 $as_echo '.gnu_attribute 4,1' > conftest.s
30540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545 test $ac_status = 0; }; }
30546 then
30547 gcc_cv_as_mips_gnu_attribute=yes
30548 else
30549 echo "configure: failed program was" >&5
30550 cat conftest.s >&5
30552 rm -f conftest.o conftest.s
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
30556 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
30557 if test $gcc_cv_as_mips_gnu_attribute = yes; then
30559 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
30565 $as_echo_n "checking assembler for .module support... " >&6; }
30566 if ${gcc_cv_as_mips_dot_module+:} false; then :
30567 $as_echo_n "(cached) " >&6
30568 else
30569 gcc_cv_as_mips_dot_module=no
30570 if test x$gcc_cv_as != x; then
30571 $as_echo '.module mips2
30572 .module fp=xx' > conftest.s
30573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
30574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30575 (eval $ac_try) 2>&5
30576 ac_status=$?
30577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30578 test $ac_status = 0; }; }
30579 then
30580 gcc_cv_as_mips_dot_module=yes
30581 else
30582 echo "configure: failed program was" >&5
30583 cat conftest.s >&5
30585 rm -f conftest.o conftest.s
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
30589 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
30590 if test $gcc_cv_as_mips_dot_module = yes; then
30592 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
30596 if test x$gcc_cv_as_mips_dot_module = xno \
30597 && test x$with_fp_32 != x; then
30598 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
30602 $as_echo_n "checking assembler for .micromips support... " >&6; }
30603 if ${gcc_cv_as_micromips_support+:} false; then :
30604 $as_echo_n "(cached) " >&6
30605 else
30606 gcc_cv_as_micromips_support=no
30607 if test x$gcc_cv_as != x; then
30608 $as_echo '.set micromips' > conftest.s
30609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
30610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30611 (eval $ac_try) 2>&5
30612 ac_status=$?
30613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30614 test $ac_status = 0; }; }
30615 then
30616 gcc_cv_as_micromips_support=yes
30617 else
30618 echo "configure: failed program was" >&5
30619 cat conftest.s >&5
30621 rm -f conftest.o conftest.s
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
30625 $as_echo "$gcc_cv_as_micromips_support" >&6; }
30626 if test $gcc_cv_as_micromips_support = yes; then
30628 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
30634 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
30635 if ${gcc_cv_as_mips_dtprelword+:} false; then :
30636 $as_echo_n "(cached) " >&6
30637 else
30638 gcc_cv_as_mips_dtprelword=no
30639 if test x$gcc_cv_as != x; then
30640 $as_echo '.section .tdata,"awT",@progbits
30642 .word 2
30643 .text
30644 .dtprelword x+0x8000' > conftest.s
30645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30647 (eval $ac_try) 2>&5
30648 ac_status=$?
30649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30650 test $ac_status = 0; }; }
30651 then
30652 gcc_cv_as_mips_dtprelword=yes
30653 else
30654 echo "configure: failed program was" >&5
30655 cat conftest.s >&5
30657 rm -f conftest.o conftest.s
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
30661 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
30662 if test $gcc_cv_as_mips_dtprelword = yes; then
30664 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
30670 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
30671 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
30672 $as_echo_n "(cached) " >&6
30673 else
30674 gcc_cv_as_mips_dspr1_mult=no
30675 if test x$gcc_cv_as != x; then
30676 $as_echo ' .set mips32r2
30677 .set nodspr2
30678 .set dsp
30679 madd $ac3,$4,$5
30680 maddu $ac3,$4,$5
30681 msub $ac3,$4,$5
30682 msubu $ac3,$4,$5
30683 mult $ac3,$4,$5
30684 multu $ac3,$4,$5' > conftest.s
30685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30690 test $ac_status = 0; }; }
30691 then
30692 gcc_cv_as_mips_dspr1_mult=yes
30693 else
30694 echo "configure: failed program was" >&5
30695 cat conftest.s >&5
30697 rm -f conftest.o conftest.s
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
30701 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
30702 if test $gcc_cv_as_mips_dspr1_mult = yes; then
30704 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
30710 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
30711 gcc_cv_as_ld_jalr_reloc=no
30712 if test $gcc_cv_as_mips_explicit_relocs = yes; then
30713 if test $in_tree_ld = yes ; then
30714 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 \
30715 && test $in_tree_ld_is_elf = yes; then
30716 gcc_cv_as_ld_jalr_reloc=yes
30718 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
30719 echo ' .ent x' > conftest.s
30720 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
30721 echo ' lw $25,%call16(y)($28)' >> conftest.s
30722 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
30723 echo '1: jalr $25' >> conftest.s
30724 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
30725 echo '1: jalr $25' >> conftest.s
30726 echo ' .end x' >> conftest.s
30727 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
30728 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
30729 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
30730 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
30731 gcc_cv_as_ld_jalr_reloc=yes
30734 rm -f conftest.*
30737 if test $gcc_cv_as_ld_jalr_reloc = yes; then
30738 if test x$target_cpu_default = x; then
30739 target_cpu_default=MASK_RELAX_PIC_CALLS
30740 else
30741 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
30745 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
30748 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
30749 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
30750 $as_echo_n "(cached) " >&6
30751 else
30752 gcc_cv_ld_mips_personality_relaxation=no
30753 if test $in_tree_ld = yes ; then
30754 if test "$gcc_cv_gld_major_version" -eq 2 \
30755 -a "$gcc_cv_gld_minor_version" -ge 21 \
30756 -o "$gcc_cv_gld_major_version" -gt 2; then
30757 gcc_cv_ld_mips_personality_relaxation=yes
30759 elif test x$gcc_cv_as != x \
30760 -a x$gcc_cv_ld != x \
30761 -a x$gcc_cv_readelf != x ; then
30762 cat > conftest.s <<EOF
30763 .cfi_startproc
30764 .cfi_personality 0x80,indirect_ptr
30765 .ent test
30766 test:
30768 .end test
30769 .cfi_endproc
30771 .section .data,"aw",@progbits
30772 indirect_ptr:
30773 .dc.a personality
30775 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
30776 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
30777 if $gcc_cv_readelf -d conftest 2>&1 \
30778 | grep TEXTREL > /dev/null 2>&1; then
30780 elif $gcc_cv_readelf --relocs conftest 2>&1 \
30781 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
30783 else
30784 gcc_cv_ld_mips_personality_relaxation=yes
30788 rm -f conftest.s conftest.o conftest
30790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
30791 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
30792 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
30794 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
30799 $as_echo_n "checking assembler for -mnan= support... " >&6; }
30800 if ${gcc_cv_as_mips_nan+:} false; then :
30801 $as_echo_n "(cached) " >&6
30802 else
30803 gcc_cv_as_mips_nan=no
30804 if test x$gcc_cv_as != x; then
30805 $as_echo '' > conftest.s
30806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
30807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30808 (eval $ac_try) 2>&5
30809 ac_status=$?
30810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30811 test $ac_status = 0; }; }
30812 then
30813 gcc_cv_as_mips_nan=yes
30814 else
30815 echo "configure: failed program was" >&5
30816 cat conftest.s >&5
30818 rm -f conftest.o conftest.s
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
30822 $as_echo "$gcc_cv_as_mips_nan" >&6; }
30823 if test $gcc_cv_as_mips_nan = yes; then
30825 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
30829 if test x$gcc_cv_as_mips_nan = xno \
30830 && test x$with_nan != x; then
30831 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
30834 msp430-*-*)
30835 # Earlier GAS versions generically support .gnu_attribute, but the
30836 # msp430 assembler will not do anything with it.
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
30838 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
30839 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
30840 $as_echo_n "(cached) " >&6
30841 else
30842 gcc_cv_as_msp430_gnu_attribute=no
30843 if test x$gcc_cv_as != x; then
30844 $as_echo '.gnu_attribute 4,1' > conftest.s
30845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30847 (eval $ac_try) 2>&5
30848 ac_status=$?
30849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30850 test $ac_status = 0; }; }
30851 then
30852 gcc_cv_as_msp430_gnu_attribute=yes
30853 else
30854 echo "configure: failed program was" >&5
30855 cat conftest.s >&5
30857 rm -f conftest.o conftest.s
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
30861 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
30862 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
30864 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
30869 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
30870 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
30871 $as_echo_n "(cached) " >&6
30872 else
30873 gcc_cv_as_msp430_mspabi_attribute=no
30874 if test x$gcc_cv_as != x; then
30875 $as_echo '.mspabi_attribute 4,2' > conftest.s
30876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30878 (eval $ac_try) 2>&5
30879 ac_status=$?
30880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30881 test $ac_status = 0; }; }
30882 then
30883 gcc_cv_as_msp430_mspabi_attribute=yes
30884 else
30885 echo "configure: failed program was" >&5
30886 cat conftest.s >&5
30888 rm -f conftest.o conftest.s
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
30892 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
30893 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
30895 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
30899 if test x$enable_newlib_nano_formatted_io = xyes; then
30901 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
30905 nios2-*-*)
30906 # Versions 2.33 and earlier lacked support for the %gotoff relocation
30907 # syntax that is documented in the ABI specification.
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
30909 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
30910 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
30911 $as_echo_n "(cached) " >&6
30912 else
30913 gcc_cv_as_nios2_gotoff_relocation=no
30914 if test x$gcc_cv_as != x; then
30915 $as_echo ' .extern foo
30916 .data
30917 .long %gotoff(foo)' > conftest.s
30918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30920 (eval $ac_try) 2>&5
30921 ac_status=$?
30922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30923 test $ac_status = 0; }; }
30924 then
30925 gcc_cv_as_nios2_gotoff_relocation=yes
30926 else
30927 echo "configure: failed program was" >&5
30928 cat conftest.s >&5
30930 rm -f conftest.o conftest.s
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
30934 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
30935 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
30937 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
30942 riscv*-*-*)
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
30944 $as_echo_n "checking assembler for .attribute support... " >&6; }
30945 if ${gcc_cv_as_riscv_attribute+:} false; then :
30946 $as_echo_n "(cached) " >&6
30947 else
30948 gcc_cv_as_riscv_attribute=no
30949 if test x$gcc_cv_as != x; then
30950 $as_echo '.attribute stack_align,4' > conftest.s
30951 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
30952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30953 (eval $ac_try) 2>&5
30954 ac_status=$?
30955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30956 test $ac_status = 0; }; }
30957 then
30958 gcc_cv_as_riscv_attribute=yes
30959 else
30960 echo "configure: failed program was" >&5
30961 cat conftest.s >&5
30963 rm -f conftest.o conftest.s
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
30967 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
30968 if test $gcc_cv_as_riscv_attribute = yes; then
30970 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
30974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
30975 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
30976 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
30977 $as_echo_n "(cached) " >&6
30978 else
30979 gcc_cv_as_riscv_isa_spec=no
30980 if test x$gcc_cv_as != x; then
30981 $as_echo '' > conftest.s
30982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
30983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30984 (eval $ac_try) 2>&5
30985 ac_status=$?
30986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30987 test $ac_status = 0; }; }
30988 then
30989 gcc_cv_as_riscv_isa_spec=yes
30990 else
30991 echo "configure: failed program was" >&5
30992 cat conftest.s >&5
30994 rm -f conftest.o conftest.s
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
30998 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
30999 if test $gcc_cv_as_riscv_isa_spec = yes; then
31001 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
31006 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
31007 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
31008 $as_echo_n "(cached) " >&6
31009 else
31010 gcc_cv_as_riscv_march_zifencei=no
31011 if test x$gcc_cv_as != x; then
31012 $as_echo '' > conftest.s
31013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
31014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31015 (eval $ac_try) 2>&5
31016 ac_status=$?
31017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31018 test $ac_status = 0; }; }
31019 then
31020 gcc_cv_as_riscv_march_zifencei=yes
31021 else
31022 echo "configure: failed program was" >&5
31023 cat conftest.s >&5
31025 rm -f conftest.o conftest.s
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
31029 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
31030 if test $gcc_cv_as_riscv_march_zifencei = yes; then
31032 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
31037 loongarch*-*-*)
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
31039 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
31040 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
31041 $as_echo_n "(cached) " >&6
31042 else
31043 gcc_cv_as_loongarch_dtprelword=no
31044 if test x$gcc_cv_as != x; then
31045 $as_echo '' > conftest.s
31046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
31047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31048 (eval $ac_try) 2>&5
31049 ac_status=$?
31050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31051 test $ac_status = 0; }; }
31052 then
31053 .section .tdata,"awT",@progbits
31055 .word 2
31056 .text
31057 .dtprelword x+0x8000
31058 else
31059 echo "configure: failed program was" >&5
31060 cat conftest.s >&5
31062 rm -f conftest.o conftest.s
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
31066 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
31068 if test $gcc_cv_as_loongarch_dtprelword != yes; then
31070 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
31074 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
31075 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
31076 $as_echo_n "(cached) " >&6
31077 else
31078 gcc_cv_as_loongarch_explicit_relocs=no
31079 if test x$gcc_cv_as != x; then
31080 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
31081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31083 (eval $ac_try) 2>&5
31084 ac_status=$?
31085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31086 test $ac_status = 0; }; }
31087 then
31088 gcc_cv_as_loongarch_explicit_relocs=yes
31089 else
31090 echo "configure: failed program was" >&5
31091 cat conftest.s >&5
31093 rm -f conftest.o conftest.s
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
31097 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
31098 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
31100 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for call36 relocation support" >&5
31105 $as_echo_n "checking assembler for call36 relocation support... " >&6; }
31106 if ${gcc_cv_as_loongarch_call36+:} false; then :
31107 $as_echo_n "(cached) " >&6
31108 else
31109 gcc_cv_as_loongarch_call36=no
31110 if test x$gcc_cv_as != x; then
31111 $as_echo 'pcaddu18i $r1, %call36(a)
31112 jirl $r1, $r1, 0' > conftest.s
31113 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31115 (eval $ac_try) 2>&5
31116 ac_status=$?
31117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31118 test $ac_status = 0; }; }
31119 then
31120 gcc_cv_as_loongarch_call36=yes
31121 else
31122 echo "configure: failed program was" >&5
31123 cat conftest.s >&5
31125 rm -f conftest.o conftest.s
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_call36" >&5
31129 $as_echo "$gcc_cv_as_loongarch_call36" >&6; }
31130 if test $gcc_cv_as_loongarch_call36 = yes; then
31132 $as_echo "#define HAVE_AS_SUPPORT_CALL36 1" >>confdefs.h
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
31137 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
31138 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
31139 $as_echo_n "(cached) " >&6
31140 else
31141 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
31142 if test x$gcc_cv_as != x; then
31143 $as_echo '.cfi_startproc
31144 .cfi_personality 0x9b,a
31145 .cfi_lsda 0x1b,b
31146 .cfi_endproc' > conftest.s
31147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31149 (eval $ac_try) 2>&5
31150 ac_status=$?
31151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31152 test $ac_status = 0; }; }
31153 then
31154 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
31155 else
31156 echo "configure: failed program was" >&5
31157 cat conftest.s >&5
31159 rm -f conftest.o conftest.s
31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
31163 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
31164 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
31166 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrelax option" >&5
31171 $as_echo_n "checking assembler for -mrelax option... " >&6; }
31172 if ${gcc_cv_as_loongarch_relax+:} false; then :
31173 $as_echo_n "(cached) " >&6
31174 else
31175 gcc_cv_as_loongarch_relax=no
31176 if test x$gcc_cv_as != x; then
31177 $as_echo '.text' > conftest.s
31178 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrelax -o conftest.o conftest.s >&5'
31179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31180 (eval $ac_try) 2>&5
31181 ac_status=$?
31182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31183 test $ac_status = 0; }; }
31184 then
31185 gcc_cv_as_loongarch_relax=yes
31186 else
31187 echo "configure: failed program was" >&5
31188 cat conftest.s >&5
31190 rm -f conftest.o conftest.s
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_relax" >&5
31194 $as_echo "$gcc_cv_as_loongarch_relax" >&6; }
31195 if test $gcc_cv_as_loongarch_relax = yes; then
31197 $as_echo "#define HAVE_AS_MRELAX_OPTION 1" >>confdefs.h
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for conditional branch relaxation support" >&5
31202 $as_echo_n "checking assembler for conditional branch relaxation support... " >&6; }
31203 if ${gcc_cv_as_loongarch_cond_branch_relax+:} false; then :
31204 $as_echo_n "(cached) " >&6
31205 else
31206 gcc_cv_as_loongarch_cond_branch_relax=no
31207 if test x$gcc_cv_as != x; then
31208 $as_echo 'a:
31209 .rept 32769
31211 .endr
31212 beq $a0,$a1,a' > conftest.s
31213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
31214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31215 (eval $ac_try) 2>&5
31216 ac_status=$?
31217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31218 test $ac_status = 0; }; }
31219 then
31220 gcc_cv_as_loongarch_cond_branch_relax=yes
31221 else
31222 echo "configure: failed program was" >&5
31223 cat conftest.s >&5
31225 rm -f conftest.o conftest.s
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_cond_branch_relax" >&5
31229 $as_echo "$gcc_cv_as_loongarch_cond_branch_relax" >&6; }
31230 if test $gcc_cv_as_loongarch_cond_branch_relax = yes; then
31232 $as_echo "#define HAVE_AS_COND_BRANCH_RELAXATION 1" >>confdefs.h
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls le relaxation support" >&5
31237 $as_echo_n "checking assembler for tls le relaxation support... " >&6; }
31238 if ${gcc_cv_as_loongarch_tls_le_relaxation_support+:} false; then :
31239 $as_echo_n "(cached) " >&6
31240 else
31241 gcc_cv_as_loongarch_tls_le_relaxation_support=no
31242 if test x$gcc_cv_as != x; then
31243 $as_echo 'lu12i.w $t0,%le_hi20_r(a)' > conftest.s
31244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31249 test $ac_status = 0; }; }
31250 then
31251 gcc_cv_as_loongarch_tls_le_relaxation_support=yes
31252 else
31253 echo "configure: failed program was" >&5
31254 cat conftest.s >&5
31256 rm -f conftest.o conftest.s
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_tls_le_relaxation_support" >&5
31260 $as_echo "$gcc_cv_as_loongarch_tls_le_relaxation_support" >&6; }
31261 if test $gcc_cv_as_loongarch_tls_le_relaxation_support = yes; then
31263 $as_echo "#define HAVE_AS_TLS_LE_RELAXATION 1" >>confdefs.h
31268 s390*-*-*)
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
31270 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
31271 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
31272 $as_echo_n "(cached) " >&6
31273 else
31274 gcc_cv_as_s390_gnu_attribute=no
31275 if test x$gcc_cv_as != x; then
31276 $as_echo '.gnu_attribute 8,1' > conftest.s
31277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31279 (eval $ac_try) 2>&5
31280 ac_status=$?
31281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31282 test $ac_status = 0; }; }
31283 then
31284 gcc_cv_as_s390_gnu_attribute=yes
31285 else
31286 echo "configure: failed program was" >&5
31287 cat conftest.s >&5
31289 rm -f conftest.o conftest.s
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
31293 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
31294 if test $gcc_cv_as_s390_gnu_attribute = yes; then
31296 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
31301 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
31302 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
31303 $as_echo_n "(cached) " >&6
31304 else
31305 gcc_cv_as_s390_machine_machinemode=no
31306 if test x$gcc_cv_as != x; then
31307 $as_echo ' .machinemode push
31308 .machinemode pop
31309 .machine push
31310 .machine pop' > conftest.s
31311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31313 (eval $ac_try) 2>&5
31314 ac_status=$?
31315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31316 test $ac_status = 0; }; }
31317 then
31318 gcc_cv_as_s390_machine_machinemode=yes
31319 else
31320 echo "configure: failed program was" >&5
31321 cat conftest.s >&5
31323 rm -f conftest.o conftest.s
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
31327 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
31328 if test $gcc_cv_as_s390_machine_machinemode = yes; then
31330 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
31335 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
31336 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
31337 $as_echo_n "(cached) " >&6
31338 else
31339 gcc_cv_as_s390_architecture_modifiers=no
31340 if test x$gcc_cv_as != x; then
31341 $as_echo ' .machine z13+vx ' > conftest.s
31342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31344 (eval $ac_try) 2>&5
31345 ac_status=$?
31346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31347 test $ac_status = 0; }; }
31348 then
31349 gcc_cv_as_s390_architecture_modifiers=yes
31350 else
31351 echo "configure: failed program was" >&5
31352 cat conftest.s >&5
31354 rm -f conftest.o conftest.s
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
31358 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
31359 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
31361 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
31366 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
31367 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
31368 $as_echo_n "(cached) " >&6
31369 else
31370 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
31371 if test x$gcc_cv_as != x; then
31372 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31375 (eval $ac_try) 2>&5
31376 ac_status=$?
31377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31378 test $ac_status = 0; }; }
31379 then
31380 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
31381 else
31382 echo "configure: failed program was" >&5
31383 cat conftest.s >&5
31385 rm -f conftest.o conftest.s
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
31389 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
31390 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
31392 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
31397 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
31398 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
31399 $as_echo_n "(cached) " >&6
31400 else
31401 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
31402 if test x$gcc_cv_as != x; then
31403 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
31404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
31405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31409 test $ac_status = 0; }; }
31410 then
31411 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
31412 else
31413 echo "configure: failed program was" >&5
31414 cat conftest.s >&5
31416 rm -f conftest.o conftest.s
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
31420 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
31421 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
31423 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
31429 esac
31431 # Mips, LoongArch and HP-UX need the GNU assembler.
31432 # Linux on IA64 might be able to use the Intel assembler.
31434 case "$target" in
31435 mips*-*-* | loongarch*-*-* | *-*-hpux* )
31436 if test x$gas_flag = xyes \
31437 || test x"$host" != x"$build" \
31438 || test ! -x "$gcc_cv_as" \
31439 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
31441 else
31442 echo "*** This configuration requires the GNU assembler" >&2
31443 exit 1
31446 esac
31448 # AMD GCN needs the LLVM assembler and linker.
31449 # Test that LLVM is at least 13.0.1.
31450 case "$target" in
31451 amdgcn-* | gcn-*)
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
31453 $as_echo_n "checking llvm assembler version... " >&6; }
31454 gcc_cv_as_version="unknown"
31455 if test x$gcc_cv_as != x; then
31456 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
31457 case "$gcc_cv_as_version" in
31458 13.0.[1-9]*) ;; # 13.0.1+
31459 13.[1-9]*) ;; # 13.1+
31460 1[4-9]*) ;; # 14..19
31461 [2-9][0-9]*) ;; # 20..99
31462 [1-9][0-9][0-9]*) ;; # 100+
31463 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
31464 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
31465 esac
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
31468 $as_echo "$gcc_cv_as_version, ok" >&6; }
31470 esac
31472 case "$target" in
31473 arm*)
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
31475 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
31476 if ${gcc_cv_as_arm_option_extensions+:} false; then :
31477 $as_echo_n "(cached) " >&6
31478 else
31479 gcc_cv_as_arm_option_extensions=no
31480 if test x$gcc_cv_as != x; then
31481 $as_echo '.text
31482 .thumb
31483 .syntax unified
31484 vmov.f32 s0, s1' > conftest.s
31485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
31486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31487 (eval $ac_try) 2>&5
31488 ac_status=$?
31489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31490 test $ac_status = 0; }; }
31491 then
31492 gcc_cv_as_arm_option_extensions=yes
31493 else
31494 echo "configure: failed program was" >&5
31495 cat conftest.s >&5
31497 rm -f conftest.o conftest.s
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
31501 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
31502 if test $gcc_cv_as_arm_option_extensions = yes; then
31504 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
31508 esac
31510 # ??? Not all targets support dwarf2 debug_line, even within a version
31511 # of gas. Moreover, we need to emit a valid instruction to trigger any
31512 # info to the output file. So, as supported targets are added to gas 2.11,
31513 # add some instruction here to (also) show we expect this might work.
31514 # ??? Once 2.11 is released, probably need to add first known working
31515 # version to the per-target configury.
31516 case "$cpu_type" in
31517 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
31518 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
31519 | visium | xstormy16 | xtensa)
31520 insn="nop"
31522 ia64 | s390)
31523 insn="nop 0"
31525 mmix)
31526 insn="swym 0"
31528 esac
31529 if test x"$insn" != x; then
31530 conftest_s="\
31531 .file 1 \"conftest.s\"
31532 .loc 1 3 0
31533 $insn"
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
31535 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
31536 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
31537 $as_echo_n "(cached) " >&6
31538 else
31539 gcc_cv_as_dwarf2_debug_line=no
31540 if test x$gcc_cv_as != x; then
31541 $as_echo "$conftest_s" > conftest.s
31542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 if test x$gcc_cv_objdump != x \
31550 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
31551 | grep debug_line > /dev/null 2>&1; then
31552 gcc_cv_as_dwarf2_debug_line=yes
31553 elif test x$gcc_cv_otool != x \
31554 && $gcc_cv_otool -l conftest.o 2> /dev/null \
31555 | grep debug_line > /dev/null 2>&1; then
31556 gcc_cv_as_dwarf2_debug_line=yes
31558 else
31559 echo "configure: failed program was" >&5
31560 cat conftest.s >&5
31562 rm -f conftest.o conftest.s
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
31566 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
31570 # The .debug_line file table must be in the exact order that
31571 # we specified the files, since these indices are also used
31572 # by DW_AT_decl_file. Approximate this test by testing if
31573 # the assembler bitches if the same index is assigned twice.
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
31575 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
31576 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
31577 $as_echo_n "(cached) " >&6
31578 else
31579 gcc_cv_as_dwarf2_file_buggy=no
31580 if test x$gcc_cv_as != x; then
31581 $as_echo ' .file 1 "foo.s"
31582 .file 1 "bar.s"' > conftest.s
31583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31585 (eval $ac_try) 2>&5
31586 ac_status=$?
31587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31588 test $ac_status = 0; }; }
31589 then
31590 gcc_cv_as_dwarf2_file_buggy=yes
31591 else
31592 echo "configure: failed program was" >&5
31593 cat conftest.s >&5
31595 rm -f conftest.o conftest.s
31598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
31599 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
31603 if test $gcc_cv_as_dwarf2_debug_line = yes \
31604 && test $gcc_cv_as_dwarf2_file_buggy = no; then
31606 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
31609 if test $gcc_cv_as_leb128 = yes; then
31610 conftest_s="\
31611 .file 1 \"conftest.s\"
31612 .loc 1 3 0 view .LVU1
31613 $insn
31614 .data
31615 .uleb128 .LVU1
31616 .uleb128 .LVU1
31618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
31619 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
31620 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
31621 $as_echo_n "(cached) " >&6
31622 else
31623 gcc_cv_as_dwarf2_debug_view=no
31624 if test x$gcc_cv_as != x; then
31625 $as_echo "$conftest_s" > conftest.s
31626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31631 test $ac_status = 0; }; }
31632 then
31633 gcc_cv_as_dwarf2_debug_view=yes
31634 else
31635 echo "configure: failed program was" >&5
31636 cat conftest.s >&5
31638 rm -f conftest.o conftest.s
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
31642 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
31643 if test $gcc_cv_as_dwarf2_debug_view = yes; then
31645 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
31653 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
31654 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
31655 $as_echo_n "(cached) " >&6
31656 else
31657 gcc_cv_as_gdwarf2_flag=no
31658 if test x$gcc_cv_as != x; then
31659 $as_echo "$insn" > conftest.s
31660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
31661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31662 (eval $ac_try) 2>&5
31663 ac_status=$?
31664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665 test $ac_status = 0; }; }
31666 then
31667 gcc_cv_as_gdwarf2_flag=yes
31668 else
31669 echo "configure: failed program was" >&5
31670 cat conftest.s >&5
31672 rm -f conftest.o conftest.s
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
31676 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
31677 if test $gcc_cv_as_gdwarf2_flag = yes; then
31679 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
31685 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
31686 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
31687 $as_echo_n "(cached) " >&6
31688 else
31689 gcc_cv_as_gdwarf_5_flag=no
31690 if test x$gcc_cv_as != x; then
31691 $as_echo "$insn" > conftest.s
31692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
31693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31697 test $ac_status = 0; }; }
31698 then
31699 if test x$gcc_cv_objdump != x \
31700 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
31701 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
31702 gcc_cv_as_gdwarf_5_flag=yes;
31704 else
31705 echo "configure: failed program was" >&5
31706 cat conftest.s >&5
31708 rm -f conftest.o conftest.s
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
31712 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
31713 if test $gcc_cv_as_gdwarf_5_flag = yes; then
31715 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
31720 case $target_os in
31721 win32 | pe | cygwin* | mingw32*)
31722 section_flags=\"dr\"
31723 function_type=".def foo; .scl 2; .type 32; .endef"
31724 function_size="";;
31726 section_flags=\"\",%progbits
31727 function_type=".type foo, %function"
31728 function_size=".size foo, .-foo";;
31729 esac
31730 dwarf4_debug_info_size=0x46
31731 dwarf4_high_pc_form=7
31732 dwarf4_debug_aranges_size=0x2c
31733 dwarf4_line_sz=9
31734 for dwarf4_addr_size in 8 4; do
31735 conftest_s="\
31736 .file \"a.c\"
31737 .text
31738 .Ltext0:
31739 .p2align 4
31740 .globl foo
31741 $function_type
31742 foo:
31743 .LFB0:
31744 .LM1:
31745 $insn
31746 .LM2:
31747 .LFE0:
31748 $function_size
31749 .Letext0:
31750 .section .debug_info,$section_flags
31751 .Ldebug_info0:
31752 .4byte $dwarf4_debug_info_size
31753 .2byte 0x4
31754 .4byte .Ldebug_abbrev0
31755 .byte 0x$dwarf4_addr_size
31756 .byte 0x1
31757 .ascii \"GNU C17\\0\"
31758 .byte 0xc
31759 .ascii \"a.c\\0\"
31760 .ascii \"/\\0\"
31761 .${dwarf4_addr_size}byte .Ltext0
31762 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31763 .4byte .Ldebug_line0
31764 .byte 0x2
31765 .ascii \"foo\\0\"
31766 .byte 0x1
31767 .byte 0x2
31768 .byte 0x1
31769 .${dwarf4_addr_size}byte .LFB0
31770 .${dwarf4_addr_size}byte .LFE0-.LFB0
31771 .byte 0x1
31772 .byte 0x9c
31773 .byte 0
31774 .section .debug_abbrev,$section_flags
31775 .Ldebug_abbrev0:
31776 .byte 0x1
31777 .byte 0x11
31778 .byte 0x1
31779 .byte 0x25
31780 .byte 0x8
31781 .byte 0x13
31782 .byte 0xb
31783 .byte 0x3
31784 .byte 0x8
31785 .byte 0x1b
31786 .byte 0x8
31787 .byte 0x11
31788 .byte 0x1
31789 .byte 0x12
31790 .byte 0x$dwarf4_high_pc_form
31791 .byte 0x10
31792 .byte 0x17
31793 .byte 0
31794 .byte 0
31795 .byte 0x2
31796 .byte 0x2e
31797 .byte 0
31798 .byte 0x3f
31799 .byte 0x19
31800 .byte 0x3
31801 .byte 0x8
31802 .byte 0x3a
31803 .byte 0xb
31804 .byte 0x3b
31805 .byte 0xb
31806 .byte 0x39
31807 .byte 0xb
31808 .byte 0x11
31809 .byte 0x1
31810 .byte 0x12
31811 .byte 0x$dwarf4_high_pc_form
31812 .byte 0x40
31813 .byte 0x18
31814 .byte 0
31815 .byte 0
31816 .byte 0
31817 .section .debug_aranges,$section_flags
31818 .4byte $dwarf4_debug_aranges_size
31819 .2byte 0x2
31820 .4byte .Ldebug_info0
31821 .byte 0x8
31822 .byte 0
31823 .2byte 0
31824 .2byte 0
31825 .${dwarf4_addr_size}byte .Ltext0
31826 .${dwarf4_addr_size}byte .Letext0-.Ltext0
31827 .${dwarf4_addr_size}byte 0
31828 .${dwarf4_addr_size}byte 0
31829 .section .debug_line,$section_flags
31830 .Ldebug_line0:
31831 .4byte .LELT0-.LSLT0
31832 .LSLT0:
31833 .2byte 0x4
31834 .4byte .LELTP0-.LASLTP0
31835 .LASLTP0:
31836 .byte 0x1
31837 .byte 0x1
31838 .byte 0x1
31839 .byte 0xf6
31840 .byte 0xf2
31841 .byte 0xd
31842 .byte 0
31843 .byte 0x1
31844 .byte 0x1
31845 .byte 0x1
31846 .byte 0x1
31847 .byte 0
31848 .byte 0
31849 .byte 0
31850 .byte 0x1
31851 .byte 0
31852 .byte 0
31853 .byte 0x1
31854 .byte 0
31855 .ascii \"a.c\\0\"
31856 .byte 0
31857 .byte 0
31858 .byte 0
31859 .byte 0
31860 .LELTP0:
31861 .byte 0
31862 .byte 0x$dwarf4_line_sz
31863 .byte 0x2
31864 .${dwarf4_addr_size}byte .LM1
31865 .byte 0x18
31866 .byte 0x5
31867 .byte 0x1
31868 .byte 0
31869 .byte 0x$dwarf4_line_sz
31870 .byte 0x2
31871 .${dwarf4_addr_size}byte .LM2
31872 .byte 0x1
31873 .byte 0x5
31874 .byte 0x1
31875 .byte 0
31876 .byte 0x$dwarf4_line_sz
31877 .byte 0x2
31878 .${dwarf4_addr_size}byte .Letext0
31879 .byte 0
31880 .byte 0x1
31881 .byte 0x1
31882 .LELT0:
31883 .section .debug_str,$section_flags
31884 .ident \"GCC\"
31886 dwarf4_success=no
31887 if test $dwarf4_addr_size = 4; then
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
31889 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
31890 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
31891 $as_echo_n "(cached) " >&6
31892 else
31893 gcc_cv_as_debug_line_32_flag=no
31894 if test x$gcc_cv_as != x; then
31895 $as_echo "$conftest_s" > conftest.s
31896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31898 (eval $ac_try) 2>&5
31899 ac_status=$?
31900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31901 test $ac_status = 0; }; }
31902 then
31903 gcc_cv_as_debug_line_32_flag=yes
31904 else
31905 echo "configure: failed program was" >&5
31906 cat conftest.s >&5
31908 rm -f conftest.o conftest.s
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
31912 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
31913 if test $gcc_cv_as_debug_line_32_flag = yes; then
31914 dwarf4_success=yes
31917 else
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
31919 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
31920 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
31921 $as_echo_n "(cached) " >&6
31922 else
31923 gcc_cv_as_debug_line_64_flag=no
31924 if test x$gcc_cv_as != x; then
31925 $as_echo "$conftest_s" > conftest.s
31926 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
31927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31928 (eval $ac_try) 2>&5
31929 ac_status=$?
31930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31931 test $ac_status = 0; }; }
31932 then
31933 gcc_cv_as_debug_line_64_flag=yes
31934 else
31935 echo "configure: failed program was" >&5
31936 cat conftest.s >&5
31938 rm -f conftest.o conftest.s
31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
31942 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
31943 if test $gcc_cv_as_debug_line_64_flag = yes; then
31944 dwarf4_success=yes
31948 if test $dwarf4_success = yes; then
31949 dwarf4_success=no
31950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
31951 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
31952 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
31953 $as_echo_n "(cached) " >&6
31954 else
31955 gcc_cv_as_dwarf_4_debug_line_flag=no
31956 if test x$gcc_cv_as != x; then
31957 $as_echo "$conftest_s" > conftest.s
31958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
31959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31960 (eval $ac_try) 2>&5
31961 ac_status=$?
31962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31963 test $ac_status = 0; }; }
31964 then
31965 gcc_cv_as_dwarf_4_debug_line_flag=yes
31966 else
31967 echo "configure: failed program was" >&5
31968 cat conftest.s >&5
31970 rm -f conftest.o conftest.s
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
31974 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
31975 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
31976 dwarf4_success=yes
31979 break
31981 dwarf4_debug_info_size=0x36
31982 dwarf4_high_pc_form=6
31983 dwarf4_debug_aranges_size=0x1c
31984 dwarf4_line_sz=5
31985 done
31987 if test $dwarf4_success = yes; then
31988 conftest_s="\
31989 .file \"foo.c\"
31990 .text
31991 bar:
31992 #APP
31993 # 82 \"xxx.h\" 1
31994 $insn
31995 # 0 \"\" 2
31996 #NO_APP
31997 $insn
31998 foo:
31999 .file 1 \"foo.c\"
32000 $insn
32001 .file 2 \"foo.h\"
32004 dwarf4_success=no
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
32006 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
32007 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
32008 $as_echo_n "(cached) " >&6
32009 else
32010 gcc_cv_as_dwarf_4_app_flag=no
32011 if test x$gcc_cv_as != x; then
32012 $as_echo "$conftest_s" > conftest.s
32013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
32014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32015 (eval $ac_try) 2>&5
32016 ac_status=$?
32017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32018 test $ac_status = 0; }; }
32019 then
32020 gcc_cv_as_dwarf_4_app_flag=yes
32021 else
32022 echo "configure: failed program was" >&5
32023 cat conftest.s >&5
32025 rm -f conftest.o conftest.s
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
32029 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
32030 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
32031 dwarf4_success=yes
32036 if test $dwarf4_success = yes; then
32037 conftest_s="\
32038 .text
32039 .globl foo
32040 $function_type
32041 foo:
32042 $insn
32043 $function_size
32044 .file 1 \"foo.c\"
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
32047 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
32048 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
32049 $as_echo_n "(cached) " >&6
32050 else
32051 gcc_cv_as_working_gdwarf_n_flag=no
32052 if test x$gcc_cv_as != x; then
32053 $as_echo "$conftest_s" > conftest.s
32054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
32055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32056 (eval $ac_try) 2>&5
32057 ac_status=$?
32058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32059 test $ac_status = 0; }; }
32060 then
32061 if test x$gcc_cv_objdump != x \
32062 && $gcc_cv_objdump -W conftest.o 2>&1 \
32063 | grep conftest.s > /dev/null 2>&1; then
32064 gcc_cv_as_working_gdwarf_n_flag=no
32065 else
32066 gcc_cv_as_working_gdwarf_n_flag=yes
32068 else
32069 echo "configure: failed program was" >&5
32070 cat conftest.s >&5
32072 rm -f conftest.o conftest.s
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
32076 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
32079 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
32081 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
32087 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
32088 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
32089 $as_echo_n "(cached) " >&6
32090 else
32091 gcc_cv_as_debug_prefix_map_flag=no
32092 if test x$gcc_cv_as != x; then
32093 $as_echo "$insn" > conftest.s
32094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
32095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32096 (eval $ac_try) 2>&5
32097 ac_status=$?
32098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32099 test $ac_status = 0; }; }
32100 then
32101 gcc_cv_as_debug_prefix_map_flag=yes
32102 else
32103 echo "configure: failed program was" >&5
32104 cat conftest.s >&5
32106 rm -f conftest.o conftest.s
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
32110 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
32111 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
32113 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
32120 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
32121 if ${gcc_cv_as_compress_debug+:} false; then :
32122 $as_echo_n "(cached) " >&6
32123 else
32124 gcc_cv_as_compress_debug=no
32125 if test x$gcc_cv_as != x; then
32126 $as_echo '' > conftest.s
32127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32129 (eval $ac_try) 2>&5
32130 ac_status=$?
32131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32132 test $ac_status = 0; }; }
32133 then
32134 # gas compiled without zlib cannot compress debug sections and warns
32135 # about it, but still exits successfully. So check for this, too.
32136 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
32137 then
32138 gcc_cv_as_compress_debug=0
32139 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
32140 then
32141 gcc_cv_as_compress_debug=1
32142 gcc_cv_as_compress_debug_option="--compress-debug-sections"
32143 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
32144 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
32145 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
32146 then
32147 gcc_cv_as_compress_debug=2
32149 else
32150 gcc_cv_as_compress_debug=0
32152 else
32153 echo "configure: failed program was" >&5
32154 cat conftest.s >&5
32156 rm -f conftest.o conftest.s
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
32160 $as_echo "$gcc_cv_as_compress_debug" >&6; }
32164 cat >>confdefs.h <<_ACEOF
32165 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
32166 _ACEOF
32169 cat >>confdefs.h <<_ACEOF
32170 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
32171 _ACEOF
32174 cat >>confdefs.h <<_ACEOF
32175 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
32176 _ACEOF
32179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
32180 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
32181 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
32182 $as_echo_n "(cached) " >&6
32183 else
32184 gcc_cv_as_lcomm_with_alignment=no
32185 if test x$gcc_cv_as != x; then
32186 $as_echo '.lcomm bar,4,16' > conftest.s
32187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32189 (eval $ac_try) 2>&5
32190 ac_status=$?
32191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32192 test $ac_status = 0; }; }
32193 then
32194 gcc_cv_as_lcomm_with_alignment=yes
32195 else
32196 echo "configure: failed program was" >&5
32197 cat conftest.s >&5
32199 rm -f conftest.o conftest.s
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
32203 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
32204 if test $gcc_cv_as_lcomm_with_alignment = yes; then
32206 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
32211 if test x$with_sysroot = x && test x$host = x$target \
32212 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
32213 && test "$prefix" != "NONE"; then
32215 cat >>confdefs.h <<_ACEOF
32216 #define PREFIX_INCLUDE_DIR "$prefix/include"
32217 _ACEOF
32221 # Determine the version of glibc, if any, used on the target.
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
32223 $as_echo_n "checking for target glibc version... " >&6; }
32225 # Check whether --with-glibc-version was given.
32226 if test "${with_glibc_version+set}" = set; then :
32227 withval=$with_glibc_version;
32228 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
32229 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
32230 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
32231 else
32232 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
32234 else
32236 glibc_version_major=0
32237 glibc_version_minor=0
32238 if test -f $target_header_dir/features.h \
32239 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
32240 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
32241 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
32242 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
32247 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
32249 cat >>confdefs.h <<_ACEOF
32250 #define TARGET_GLIBC_MAJOR $glibc_version_major
32251 _ACEOF
32254 cat >>confdefs.h <<_ACEOF
32255 #define TARGET_GLIBC_MINOR $glibc_version_minor
32256 _ACEOF
32259 # Check whether --enable-gnu-unique-object was given.
32260 if test "${enable_gnu_unique_object+set}" = set; then :
32261 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
32262 yes | no) ;;
32263 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
32264 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
32265 esac
32266 else
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
32268 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
32269 if ${gcc_cv_as_gnu_unique_object+:} false; then :
32270 $as_echo_n "(cached) " >&6
32271 else
32272 gcc_cv_as_gnu_unique_object=no
32273 if test x$gcc_cv_as != x; then
32274 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
32275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
32276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32280 test $ac_status = 0; }; }
32281 then
32282 gcc_cv_as_gnu_unique_object=yes
32283 else
32284 echo "configure: failed program was" >&5
32285 cat conftest.s >&5
32287 rm -f conftest.o conftest.s
32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
32291 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
32292 if test $gcc_cv_as_gnu_unique_object = yes; then
32293 # We need to unquote above to to use the definition from config.gcc.
32294 # Also check for ld.so support, i.e. glibc 2.11 or higher.
32296 if test $glibc_version_major -gt 2 \
32297 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
32298 enable_gnu_unique_object=yes
32305 if test x$enable_gnu_unique_object = xyes; then
32307 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
32312 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
32313 if ${gcc_cv_as_line_zero+:} false; then :
32314 $as_echo_n "(cached) " >&6
32315 else
32316 gcc_cv_as_line_zero=no
32317 if test "x$gcc_cv_as" != x; then
32318 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
32319 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
32320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32321 (eval $ac_try) 2>&5
32322 ac_status=$?
32323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32324 test $ac_status = 0; }; } &&
32325 test "x`cat conftest.out`" = x
32326 then
32327 gcc_cv_as_line_zero=yes
32328 else
32329 echo "configure: failed program was" >&5
32330 cat conftest.s >&5
32331 echo "configure: error output was" >&5
32332 cat conftest.out >&5
32334 rm -f conftest.o conftest.s conftest.out
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
32338 $as_echo "$gcc_cv_as_line_zero" >&6; }
32339 if test "x$gcc_cv_as_line_zero" = xyes; then
32341 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
32345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
32346 $as_echo_n "checking support for thin archives... " >&6; }
32347 thin_archive_support=no
32348 echo 'int main (void) { return 0; }' > conftest.c
32349 if ($AR --version | sed 1q | grep "GNU ar" \
32350 && $CC $CFLAGS -c conftest.c \
32351 && $AR rcT conftest.a conftest.o \
32352 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
32353 thin_archive_support=yes
32355 rm -f conftest.c conftest.o conftest.a conftest
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
32357 $as_echo "$thin_archive_support" >&6; }
32360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
32361 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
32362 gcc_cv_ld_eh_frame_hdr=no
32363 if test $in_tree_ld = yes ; then
32364 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 \
32365 && test $in_tree_ld_is_elf = yes; then
32366 gcc_cv_ld_eh_frame_hdr=yes
32368 elif test x$gcc_cv_ld != x; then
32369 if echo "$ld_ver" | grep GNU > /dev/null; then
32370 # Check if linker supports --eh-frame-hdr option
32371 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
32372 gcc_cv_ld_eh_frame_hdr=yes
32374 else
32375 case "$target" in
32376 *-*-solaris2*)
32377 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
32378 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
32379 gcc_cv_ld_eh_frame_hdr=yes
32382 esac
32386 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
32388 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
32392 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
32395 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
32396 gcc_cv_ld_eh_frame_ciev3=no
32397 if test $in_tree_ld = yes ; then
32398 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 \
32399 && test $in_tree_ld_is_elf = yes; then
32400 gcc_cv_ld_eh_frame_ciev3=yes
32402 elif test x$gcc_cv_ld != x; then
32403 if echo "$ld_ver" | grep GNU > /dev/null; then
32404 gcc_cv_ld_eh_frame_ciev3=yes
32405 if test 0"$ld_date" -lt 20040513; then
32406 if test -n "$ld_date"; then
32407 # If there was date string, but was earlier than 2004-05-13, fail
32408 gcc_cv_ld_eh_frame_ciev3=no
32409 elif test "$ld_vers_major" -lt 2; then
32410 gcc_cv_ld_eh_frame_ciev3=no
32411 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
32412 gcc_cv_ld_eh_frame_ciev3=no
32415 else
32416 case "$target" in
32417 *-*-solaris2*)
32418 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
32419 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
32420 gcc_cv_ld_eh_frame_ciev3=yes
32423 esac
32427 cat >>confdefs.h <<_ACEOF
32428 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
32429 _ACEOF
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
32432 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
32435 $as_echo_n "checking linker position independent executable support... " >&6; }
32436 gcc_cv_ld_pie=no
32437 if test $in_tree_ld = yes ; then
32438 case "$target" in
32439 # Full PIE support on Solaris was only introduced in gld 2.26.
32440 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
32441 *) gcc_gld_pie_min_version=15 ;;
32442 esac
32443 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 \
32444 && test $in_tree_ld_is_elf = yes; then
32445 gcc_cv_ld_pie=yes
32447 elif test x$gcc_cv_ld != x; then
32448 # Check if linker supports -pie option
32449 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
32450 gcc_cv_ld_pie=yes
32451 case "$target" in
32452 *-*-solaris2*)
32453 if echo "$ld_ver" | grep GNU > /dev/null \
32454 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
32455 gcc_cv_ld_pie=no
32458 esac
32459 else
32460 case "$target" in
32461 *-*-solaris2.1[1-9]*)
32462 # Solaris 11.3 added PIE support.
32463 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
32464 gcc_cv_ld_pie=yes
32467 esac
32470 if test x"$gcc_cv_ld_pie" = xyes; then
32472 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
32476 $as_echo "$gcc_cv_ld_pie" >&6; }
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
32479 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
32480 gcc_cv_ld_pie_copyreloc=no
32481 if test $gcc_cv_ld_pie = yes ; then
32482 if test $in_tree_ld = yes ; then
32483 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
32484 gcc_cv_ld_pie_copyreloc=yes
32486 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
32487 # Check if linker supports -pie option with copy reloc
32488 case "$target" in
32489 i?86-*-linux* | x86_64-*-linux*)
32490 cat > conftest1.s <<EOF
32491 .globl a_glob
32492 .data
32493 .type a_glob, @object
32494 .size a_glob, 4
32495 a_glob:
32496 .long 2
32498 cat > conftest2.s <<EOF
32499 .text
32500 .globl main
32501 .type main, @function
32502 main:
32503 movl %eax, a_glob(%rip)
32504 .size main, .-main
32505 .globl ptr
32506 .section .data.rel,"aw",@progbits
32507 .type ptr, @object
32508 ptr:
32509 .quad a_glob
32511 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
32512 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
32513 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
32514 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
32515 gcc_cv_ld_pie_copyreloc=yes
32517 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
32519 esac
32523 cat >>confdefs.h <<_ACEOF
32524 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
32525 _ACEOF
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
32528 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
32530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
32531 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
32532 gcc_cv_ld_eh_gc_sections=no
32533 if test $in_tree_ld = yes ; then
32534 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 \
32535 && test $in_tree_ld_is_elf = yes; then
32536 gcc_cv_ld_eh_gc_sections=yes
32538 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
32539 cat > conftest.s <<EOF
32540 .section .text
32541 .globl _start
32542 .type _start, @function
32543 _start:
32544 .long foo
32545 .size _start, .-_start
32546 .section .text.foo,"ax",@progbits
32547 .type foo, @function
32548 foo:
32549 .long 0
32550 .size foo, .-foo
32551 .section .gcc_except_table.foo,"a",@progbits
32552 .L0:
32553 .long 0
32554 .section .eh_frame,"a",@progbits
32555 .long .L0
32557 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32558 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32559 | grep "gc-sections option ignored" > /dev/null; then
32560 gcc_cv_ld_eh_gc_sections=no
32561 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32562 | grep gcc_except_table > /dev/null; then
32563 gcc_cv_ld_eh_gc_sections=yes
32564 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
32565 if test x$gcc_cv_as_comdat_group != xyes; then
32566 gcc_cv_ld_eh_gc_sections=no
32567 cat > conftest.s <<EOF
32568 .section .text
32569 .globl _start
32570 .type _start, @function
32571 _start:
32572 .long foo
32573 .size _start, .-_start
32574 .section .gnu.linkonce.t.foo,"ax",@progbits
32575 .type foo, @function
32576 foo:
32577 .long 0
32578 .size foo, .-foo
32579 .section .gcc_except_table.foo,"a",@progbits
32580 .L0:
32581 .long 0
32582 .section .eh_frame,"a",@progbits
32583 .long .L0
32585 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32586 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32587 | grep "gc-sections option ignored" > /dev/null; then
32588 gcc_cv_ld_eh_gc_sections=no
32589 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32590 | grep gcc_except_table > /dev/null; then
32591 gcc_cv_ld_eh_gc_sections=yes
32597 rm -f conftest.s conftest.o conftest
32599 case "$target" in
32600 hppa*-*-linux*)
32601 # ??? This apparently exposes a binutils bug with PC-relative relocations.
32602 gcc_cv_ld_eh_gc_sections=no
32604 esac
32605 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
32607 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
32611 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
32614 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
32615 gcc_cv_ld_eh_gc_sections_bug=no
32616 if test $in_tree_ld = yes ; then
32617 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 \
32618 && test $in_tree_ld_is_elf = yes; then
32619 gcc_cv_ld_eh_gc_sections_bug=yes
32621 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
32622 gcc_cv_ld_eh_gc_sections_bug=yes
32623 cat > conftest.s <<EOF
32624 .section .text
32625 .globl _start
32626 .type _start, @function
32627 _start:
32628 .long foo
32629 .size _start, .-_start
32630 .section .text.startup.foo,"ax",@progbits
32631 .type foo, @function
32632 foo:
32633 .long 0
32634 .size foo, .-foo
32635 .section .gcc_except_table.foo,"a",@progbits
32636 .L0:
32637 .long 0
32638 .section .eh_frame,"a",@progbits
32639 .long .L0
32641 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
32642 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
32643 | grep "gc-sections option ignored" > /dev/null; then
32645 elif $gcc_cv_objdump -h conftest 2> /dev/null \
32646 | grep gcc_except_table > /dev/null; then
32647 gcc_cv_ld_eh_gc_sections_bug=no
32650 rm -f conftest.s conftest.o conftest
32652 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
32654 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
32658 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
32661 $as_echo_n "checking linker for compressed debug sections... " >&6; }
32662 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
32663 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
32664 gcc_cv_ld_compress_debug=1
32665 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
32666 # Detect zstd debug section compression support
32667 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
32668 gcc_cv_ld_compress_debug=2
32670 else
32671 case "${target}" in
32672 *-*-solaris2*)
32673 # Introduced in Solaris 11.2.
32674 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
32675 gcc_cv_ld_compress_debug=1
32676 gcc_cv_ld_compress_debug_option="-z compress-sections"
32677 else
32678 gcc_cv_ld_compress_debug=0
32682 # Assume linkers other than GNU ld don't support compessed debug
32683 # sections.
32684 gcc_cv_ld_compress_debug=0
32686 esac
32689 cat >>confdefs.h <<_ACEOF
32690 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
32691 _ACEOF
32694 cat >>confdefs.h <<_ACEOF
32695 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
32696 _ACEOF
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
32699 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
32701 if test x"$ld64_flag" = x"yes"; then
32703 # Set defaults for possibly untestable items.
32704 gcc_cv_ld64_export_dynamic=0
32705 gcc_cv_ld64_platform_version=0
32706 gcc_cv_ld64_demangle=0
32708 if test "$build" = "$host"; then
32709 darwin_try_test=1
32710 else
32711 darwin_try_test=0
32714 # On Darwin, because of FAT library support, it is often possible to execute
32715 # exes from compatible archs even when the host differs from the build system.
32716 case "$build","$host" in
32717 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
32718 darwin_try_test=1;;
32719 *) ;;
32720 esac
32722 # If the configurer specified a minimum ld64 version to be supported, then use
32723 # that to determine feature support.
32724 if test x"${gcc_cv_ld64_version}" != x; then
32725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
32726 $as_echo_n "checking ld64 specified version... " >&6; }
32727 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
32729 $as_echo "$gcc_cv_ld64_major" >&6; }
32730 if test "$gcc_cv_ld64_major" -ge 97; then
32731 gcc_cv_ld64_demangle=1
32733 if test "$gcc_cv_ld64_major" -ge 236; then
32734 gcc_cv_ld64_export_dynamic=1
32736 if test "$gcc_cv_ld64_major" -ge 512; then
32737 gcc_cv_ld64_platform_version=1
32739 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
32740 # If the version was not specified, try to find it.
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
32742 $as_echo_n "checking linker version... " >&6; }
32743 if test x"${gcc_cv_ld64_version}" = x; then
32744 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | $EGREP 'ld64|dyld' \
32745 | sed -e 's/.*ld64-//' -e 's/.*dyld-//'| awk '{print $1}'`
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
32748 $as_echo "$gcc_cv_ld64_version" >&6; }
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -demangle support" >&5
32751 $as_echo_n "checking linker for -demangle support... " >&6; }
32752 gcc_cv_ld64_demangle=1
32753 if $gcc_cv_ld -demangle < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32754 gcc_cv_ld64_demangle=0
32756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_demangle" >&5
32757 $as_echo "$gcc_cv_ld64_demangle" >&6; }
32759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
32760 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
32761 gcc_cv_ld64_export_dynamic=1
32762 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32763 gcc_cv_ld64_export_dynamic=0
32765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
32766 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
32769 $as_echo_n "checking linker for -platform_version support... " >&6; }
32770 gcc_cv_ld64_platform_version=1
32771 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
32772 gcc_cv_ld64_platform_version=0
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
32775 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
32778 if test x"${gcc_cv_ld64_version}" != x; then
32780 cat >>confdefs.h <<_ACEOF
32781 #define LD64_VERSION "${gcc_cv_ld64_version}"
32782 _ACEOF
32787 cat >>confdefs.h <<_ACEOF
32788 #define LD64_HAS_DEMANGLE $gcc_cv_ld64_demangle
32789 _ACEOF
32793 cat >>confdefs.h <<_ACEOF
32794 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
32795 _ACEOF
32799 cat >>confdefs.h <<_ACEOF
32800 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
32801 _ACEOF
32805 if test x"$dsymutil_flag" = x"yes"; then
32807 # If the user specified a dsymutil path, then we will already have the
32808 # version string, otherwise, pick it up.
32809 if test x"$gcc_cv_dsymutil" = x; then
32810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
32811 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
32812 dsymutil_vers="tool unspecified"
32813 elif test x"$dsymutil_vers" = x; then
32814 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
32817 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
32818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
32819 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
32820 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
32821 dsymutil_kind=DWARFUTILS
32822 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
32823 elif echo $dsymutil_temp | grep clang- > /dev/null; then
32824 dsymutil_kind=CLANG
32825 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
32826 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
32827 dsymutil_kind=LLVM
32828 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
32829 else
32830 dsymutil_kind=DET_UNKNOWN
32831 dsymutil_vers="0.0"
32833 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
32834 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
32835 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
32836 if test x"${dsymutil_minor}" = x; then
32837 dsymutil_minor=0
32839 if test x"${dsymutil_tiny}" = x; then
32840 dsymutil_tiny=0
32843 cat >>confdefs.h <<_ACEOF
32844 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
32845 _ACEOF
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
32848 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
32851 case $target_os in
32852 win32 | pe | cygwin* | mingw32*)
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
32854 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
32855 gcc_cv_ld_broken_pe_dwarf5=yes
32856 if test $in_tree_ld = yes ; then
32857 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32858 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
32859 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32860 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
32861 gcc_cv_ld_broken_pe_dwarf5=no
32863 else
32864 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
32865 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
32866 gcc_cv_ld_broken_pe_dwarf5=no
32869 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
32871 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
32875 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
32877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
32878 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
32879 gcc_cv_ld_disable_dynamicbase=no
32880 if test $in_tree_ld = yes; then
32881 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 \
32882 gcc_cv_ld_disable_dynamicbase=yes
32884 else
32885 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
32886 gcc_cv_ld_disable_dynamicbase=yes
32889 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
32891 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
32895 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
32897 esac
32899 # --------
32900 # UNSORTED
32901 # --------
32903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
32904 $as_echo_n "checking linker --as-needed support... " >&6; }
32905 if ${gcc_cv_ld_as_needed+:} false; then :
32906 $as_echo_n "(cached) " >&6
32907 else
32908 gcc_cv_ld_as_needed=no
32909 gcc_cv_ld_as_needed_option='--as-needed'
32910 gcc_cv_ld_no_as_needed_option='--no-as-needed'
32911 if test $in_tree_ld = yes ; then
32912 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 \
32913 && test $in_tree_ld_is_elf = yes; then
32914 gcc_cv_ld_as_needed=yes
32915 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
32916 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32917 gcc_cv_ld_no_as_needed_option='--pop-state'
32920 elif test x$gcc_cv_ld != x; then
32921 # Check if linker supports --as-needed and --no-as-needed options
32922 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
32923 gcc_cv_ld_as_needed=yes
32924 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
32925 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
32926 && echo "$ld_ver" | grep GNU > /dev/null \
32927 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
32928 # Use these options only when both ld.bfd and ld.gold support
32929 # --push-state/--pop-state, which unfortunately wasn't added
32930 # at the same time.
32931 gcc_cv_ld_as_needed_option='--push-state --as-needed'
32932 gcc_cv_ld_no_as_needed_option='--pop-state'
32935 case "$target:$gnu_ld" in
32936 *-*-solaris2*:no)
32937 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
32938 # forms.
32939 gcc_cv_ld_as_needed=yes
32940 gcc_cv_ld_as_needed_option="-z ignore"
32941 gcc_cv_ld_no_as_needed_option="-z record"
32943 esac
32945 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
32946 # dl_iterate_phdr, i.e. since Solaris 11.
32947 case "$target" in
32948 *-*-solaris2.1[1-9]*)
32949 case "$target" in
32950 i?86-*-* | x86_64-*-*)
32951 if echo "$ld_ver" | grep GNU > /dev/null; then
32952 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
32953 gcc_cv_ld_as_needed=no
32956 esac
32958 *-*-solaris2*)
32959 gcc_cv_ld_as_needed=no
32961 esac
32964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
32965 $as_echo "$gcc_cv_ld_as_needed" >&6; }
32966 if test x"$gcc_cv_ld_as_needed" = xyes; then
32968 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
32971 cat >>confdefs.h <<_ACEOF
32972 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
32973 _ACEOF
32976 cat >>confdefs.h <<_ACEOF
32977 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
32978 _ACEOF
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
32983 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
32984 saved_LDFLAGS="$LDFLAGS"
32985 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
32986 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
32987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32988 /* end confdefs.h. */
32989 int main(void) {return 0;}
32990 _ACEOF
32991 if ac_fn_cxx_try_link "$LINENO"; then :
32992 gcc_cv_ld_clearcap=yes; break
32993 else
32994 gcc_cv_ld_clearcap=no
32996 rm -f core conftest.err conftest.$ac_objext \
32997 conftest$ac_exeext conftest.$ac_ext
32998 done
32999 LDFLAGS="$saved_LDFLAGS"
33000 if test "x$gcc_cv_ld_clearcap" = xyes; then
33002 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
33004 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
33008 $as_echo "$gcc_cv_ld_clearcap" >&6; }
33010 case "$target" in
33011 powerpc*-*-*)
33012 case "$target" in
33013 *le-*-linux*)
33014 emul_name="-melf32lppc"
33017 emul_name="-melf32ppc"
33019 esac
33020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
33021 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
33022 if ${gcc_cv_ld_ppc_attr+:} false; then :
33023 $as_echo_n "(cached) " >&6
33024 else
33025 gcc_cv_ld_ppc_attr=no
33026 if test x"$ld_is_gold" = xyes; then
33027 gcc_cv_ld_ppc_attr=yes
33028 elif test $in_tree_ld = yes ; then
33029 if test "$gcc_cv_gld_major_version" -eq 2 \
33030 -a "$gcc_cv_gld_minor_version" -ge 28 \
33031 -o "$gcc_cv_gld_major_version" -gt 2; then
33032 gcc_cv_ld_ppc_attr=yes
33034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33035 # check that merging the long double .gnu_attribute doesn't warn
33036 cat > conftest1.s <<EOF
33037 .gnu_attribute 4,1
33039 cat > conftest2.s <<EOF
33040 .gnu_attribute 4,9
33042 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
33043 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
33044 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
33045 && test ! -s conftest.err; then
33046 gcc_cv_ld_ppc_attr=yes
33048 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
33053 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
33054 if test x$gcc_cv_ld_ppc_attr = xyes; then
33056 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
33060 esac
33062 case "$target:$tm_file" in
33063 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
33064 case "$target" in
33065 *le-*-linux*)
33066 emul_name="-melf64lppc"
33068 *-*-linux*)
33069 emul_name="-melf64ppc"
33071 *le-*-freebsd*)
33072 emul_name="-melf64lppc_fbsd"
33074 *-*-freebsd*)
33075 emul_name="-melf64ppc_fbsd"
33077 esac
33078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
33079 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
33080 if ${gcc_cv_ld_no_dot_syms+:} false; then :
33081 $as_echo_n "(cached) " >&6
33082 else
33083 gcc_cv_ld_no_dot_syms=no
33084 if test x"$ld_is_gold" = xyes; then
33085 gcc_cv_ld_no_dot_syms=yes
33086 elif test $in_tree_ld = yes ; then
33087 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
33088 gcc_cv_ld_no_dot_syms=yes
33090 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33091 cat > conftest1.s <<EOF
33092 .text
33093 bl .foo
33095 cat > conftest2.s <<EOF
33096 .section ".opd","aw"
33097 .align 3
33098 .globl foo
33099 .type foo,@function
33100 foo:
33101 .quad .LEfoo,.TOC.@tocbase,0
33102 .text
33103 .LEfoo:
33105 .size foo,.-.LEfoo
33107 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
33108 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
33109 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
33110 gcc_cv_ld_no_dot_syms=yes
33112 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
33116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
33117 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
33118 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
33120 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33125 $as_echo_n "checking linker large toc support... " >&6; }
33126 if ${gcc_cv_ld_large_toc+:} false; then :
33127 $as_echo_n "(cached) " >&6
33128 else
33129 gcc_cv_ld_large_toc=no
33130 if test x"$ld_is_gold" = xyes; then
33131 gcc_cv_ld_large_toc=yes
33132 elif test $in_tree_ld = yes ; then
33133 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
33134 gcc_cv_ld_large_toc=yes
33136 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
33137 cat > conftest.s <<EOF
33138 .section ".tbss","awT",@nobits
33139 .align 3
33140 ie0: .space 8
33141 .global _start
33142 .text
33143 _start:
33144 addis 9,13,ie0@got@tprel@ha
33145 ld 9,ie0@got@tprel@l(9)
33147 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33148 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
33149 gcc_cv_ld_large_toc=yes
33151 rm -f conftest conftest.o conftest.s
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33156 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33157 if test x"$gcc_cv_ld_large_toc" = xyes; then
33159 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
33164 $as_echo_n "checking linker toc pointer alignment... " >&6; }
33165 if ${gcc_cv_ld_toc_align+:} false; then :
33166 $as_echo_n "(cached) " >&6
33167 else
33168 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
33169 cat > conftest.s <<EOF
33170 .global _start
33171 .text
33172 _start:
33173 addis 9,2,x@got@ha
33174 .section .data.rel.ro,"aw",@progbits
33175 .p2align 16
33176 .space 32768
33177 x: .quad .TOC.
33179 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
33180 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
33181 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)) }'`
33183 rm -f conftest conftest.o conftest.s
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
33188 $as_echo "$gcc_cv_ld_toc_align" >&6; }
33189 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
33191 cat >>confdefs.h <<_ACEOF
33192 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
33193 _ACEOF
33197 esac
33199 case "$target" in
33200 *-*-aix*)
33201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
33202 $as_echo_n "checking linker large toc support... " >&6; }
33203 if ${gcc_cv_ld_large_toc+:} false; then :
33204 $as_echo_n "(cached) " >&6
33205 else
33206 gcc_cv_ld_large_toc=no
33207 if test x$gcc_cv_as != x ; then
33208 cat > conftest.s <<EOF
33209 .toc
33210 LC..1:
33211 .tc a[TC],a[RW]
33212 .extern a[RW]
33213 .csect .text[PR]
33214 .largetoctest:
33215 addis 9,LC..1@u(2)
33216 ld 3,LC..1@l(9)
33218 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
33219 gcc_cv_ld_large_toc=yes
33221 rm -f conftest conftest.o conftest.s
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
33226 $as_echo "$gcc_cv_ld_large_toc" >&6; }
33227 if test x"$gcc_cv_ld_large_toc" = xyes; then
33229 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
33233 esac
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
33236 $as_echo_n "checking linker --build-id support... " >&6; }
33237 if ${gcc_cv_ld_buildid+:} false; then :
33238 $as_echo_n "(cached) " >&6
33239 else
33240 gcc_cv_ld_buildid=no
33241 if test $in_tree_ld = yes ; then
33242 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33243 "$gcc_cv_gld_minor_version" -ge 18 -o \
33244 "$gcc_cv_gld_major_version" -gt 2 \
33245 && test $in_tree_ld_is_elf = yes; then
33246 gcc_cv_ld_buildid=yes
33248 elif test x$gcc_cv_ld != x; then
33249 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
33250 gcc_cv_ld_buildid=yes
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
33255 $as_echo "$gcc_cv_ld_buildid" >&6; }
33256 if test x"$gcc_cv_ld_buildid" = xyes; then
33258 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
33262 # Check whether --enable-linker-build-id was given.
33263 if test "${enable_linker_build_id+set}" = set; then :
33264 enableval=$enable_linker_build_id;
33265 else
33266 enable_linker_build_id=no
33270 if test x"$enable_linker_build_id" = xyes; then
33271 if test x"$gcc_cv_ld_buildid" = xyes; then
33273 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
33275 else
33276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
33277 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
33281 # In binutils 2.21, GNU ld gained support for new emulations fully
33282 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
33283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
33284 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
33285 if ${gcc_cv_ld_sol2_emulation+:} false; then :
33286 $as_echo_n "(cached) " >&6
33287 else
33288 gcc_cv_ld_sol2_emulation=no
33289 if test $in_tree_ld = yes ; then
33290 if test "$gcc_cv_gld_major_version" -eq 2 -a \
33291 "$gcc_cv_gld_minor_version" -ge 21 -o \
33292 "$gcc_cv_gld_major_version" -gt 2 \
33293 && test $in_tree_ld_is_elf = yes; then
33294 gcc_cv_ld_sol2_emulation=yes
33296 elif test x$gcc_cv_ld != x; then
33297 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
33298 grep _sol2 > /dev/null; then
33299 gcc_cv_ld_sol2_emulation=yes
33303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
33304 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
33305 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
33307 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
33311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
33312 $as_echo_n "checking linker --sysroot support... " >&6; }
33313 if ${gcc_cv_ld_sysroot+:} false; then :
33314 $as_echo_n "(cached) " >&6
33315 else
33316 gcc_cv_ld_sysroot=no
33317 if test $in_tree_ld = yes ; then
33318 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
33319 gcc_cv_ld_sysroot=yes
33321 elif test x$gcc_cv_ld != x; then
33322 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
33323 gcc_cv_ld_sysroot=yes
33327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
33328 $as_echo "$gcc_cv_ld_sysroot" >&6; }
33329 if test x"$gcc_cv_ld_sysroot" = xyes; then
33331 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
33335 case $target in
33336 *-*-solaris2*)
33337 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
33339 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
33340 if ${gcc_cv_solaris_crts+:} false; then :
33341 $as_echo_n "(cached) " >&6
33342 else
33343 gcc_cv_solaris_crts=no
33344 if test x$host != x$target; then
33345 if test "x$with_sysroot" = xyes; then
33346 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
33347 else
33348 target_sysroot="${with_sysroot}"
33351 target_libdir="$target_sysroot/usr/lib"
33352 # At the time they were added, gcrt1.o became a symlink for backwards
33353 # compatibility on x86, while crt1.o was added on sparc, so check for that.
33354 case $target in
33355 i?86-*-solaris2* | x86_64-*-solaris2*)
33356 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
33358 sparc*-*-solaris2*)
33359 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
33361 esac
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
33364 $as_echo "$gcc_cv_solaris_crts" >&6; }
33366 esac
33367 if test x$gcc_cv_solaris_crts = xyes; then
33369 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
33373 # Check whether --enable-libssp was given.
33374 if test "${enable_libssp+set}" = set; then :
33375 enableval=$enable_libssp; case "${enableval}" in
33376 yes|no)
33379 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
33381 esac
33385 # Test for stack protector support in target C library.
33386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
33387 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
33388 if ${gcc_cv_libc_provides_ssp+:} false; then :
33389 $as_echo_n "(cached) " >&6
33390 else
33391 gcc_cv_libc_provides_ssp=no
33392 if test "x$enable_libssp" = "xno"; then
33393 gcc_cv_libc_provides_ssp=yes
33394 elif test "x$enable_libssp" = "xyes"; then
33395 gcc_cv_libc_provides_ssp=no
33396 else
33397 case "$target" in
33398 *-*-musl*)
33399 # All versions of musl provide stack protector
33400 gcc_cv_libc_provides_ssp=yes;;
33401 *-*-linux* | *-*-kfreebsd*-gnu)
33402 # glibc 2.4 and later provides __stack_chk_fail and
33403 # either __stack_chk_guard, or TLS access to stack guard canary.
33405 if test $glibc_version_major -gt 2 \
33406 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33407 gcc_cv_libc_provides_ssp=yes
33408 else
33410 if test -f $target_header_dir/features.h \
33411 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
33412 $target_header_dir/features.h > /dev/null; then
33413 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
33414 $target_header_dir/features.h > /dev/null && \
33415 test -f $target_header_dir/bits/uClibc_config.h && \
33416 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
33417 $target_header_dir/bits/uClibc_config.h > /dev/null; then
33418 gcc_cv_libc_provides_ssp=yes
33420 # all versions of Bionic support stack protector
33421 elif test -f $target_header_dir/sys/cdefs.h \
33422 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
33423 $target_header_dir/sys/cdefs.h > /dev/null; then
33424 gcc_cv_libc_provides_ssp=yes
33428 *-*-gnu*)
33429 # Avoid complicated tests (see
33430 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
33431 # simply assert that glibc does provide this, which is true for all
33432 # realistically usable GNU/Hurd configurations.
33433 # All supported versions of musl provide it as well
33434 gcc_cv_libc_provides_ssp=yes;;
33435 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
33436 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
33437 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
33438 gcc_cv_libc_provides_ssp=yes
33439 else
33440 echo "no __stack_chk_fail on this target"
33444 *) gcc_cv_libc_provides_ssp=no ;;
33445 esac
33448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
33449 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
33451 if test x$gcc_cv_libc_provides_ssp = xyes; then
33453 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
33457 # Check whether --enable-default-ssp was given.
33458 # Check whether --enable-default-ssp was given.
33459 if test "${enable_default_ssp+set}" = set; then :
33460 enableval=$enable_default_ssp;
33461 if test x$gcc_cv_libc_provides_ssp = xyes; then
33462 case "$target" in
33463 ia64*-*-*) enable_default_ssp=no ;;
33464 *) enable_default_ssp=$enableval ;;
33465 esac
33466 else
33467 enable_default_ssp=no
33469 else
33470 enable_default_ssp=no
33473 if test x$enable_default_ssp = xyes ; then
33475 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
33480 # Test for <sys/sdt.h> on the target.
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
33483 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
33484 if ${gcc_cv_sys_sdt_h+:} false; then :
33485 $as_echo_n "(cached) " >&6
33486 else
33488 gcc_cv_sys_sdt_h=no
33489 if test -f $target_header_dir/sys/sdt.h; then
33490 gcc_cv_sys_sdt_h=yes
33494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_sys_sdt_h" >&5
33495 $as_echo "$gcc_cv_sys_sdt_h" >&6; }
33496 if test x$gcc_cv_sys_sdt_h = xyes; then :
33499 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
33504 # Check if TFmode long double should be used by default or not.
33505 # Some glibc targets used DFmode long double, but with glibc 2.4
33506 # and later they can use TFmode.
33507 case "$target" in
33508 powerpc*-*-linux* | \
33509 sparc*-*-linux* | \
33510 s390*-*-linux* | \
33511 alpha*-*-linux*)
33513 # Check whether --with-long-double-128 was given.
33514 if test "${with_long_double_128+set}" = set; then :
33515 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
33516 else
33518 case "$target" in
33519 s390*-*-linux-musl*)
33520 gcc_cv_target_ldbl128=yes
33522 powerpc*-*-linux-musl*)
33523 gcc_cv_target_ldbl128=no
33527 if test $glibc_version_major -gt 2 \
33528 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
33529 gcc_cv_target_ldbl128=yes
33530 else
33532 gcc_cv_target_ldbl128=no
33533 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
33534 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
33535 && gcc_cv_target_ldbl128=yes
33540 esac
33545 esac
33546 if test x$gcc_cv_target_ldbl128 = xyes; then
33548 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
33552 # Check if TFmode long double target should use the IBM extended double or IEEE
33553 # 128-bit floating point formats if long doubles are 128-bits long. The long
33554 # double type can only be switched on powerpc64 bit Linux systems where VSX is
33555 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
33556 # libgcc.
33558 # Check whether --with-long-double-format was given.
33559 if test "${with_long_double_format+set}" = set; then :
33560 withval=$with_long_double_format;
33561 case "$target:$with_long_double_format" in
33562 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
33565 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
33566 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
33567 case "$with_cpu" in
33568 power7 | power8 | power9 | power1*)
33572 as_fn_error $? "Configuration option --with-long-double-format is only \
33573 supported if the default cpu is power7 or newer" "$LINENO" 5
33574 with_long_double_format=""
33576 esac
33578 powerpc64*-*-linux*:*)
33579 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
33580 with_long_double_format=""
33583 as_fn_error $? "Configure option --with-long-double-format is only supported \
33584 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
33585 with_long_double_format=""
33587 esac
33591 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
33592 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
33593 gcc_cv_libc_provides_hwcap_in_tcb=no
33594 case "$target" in
33595 powerpc*-*-linux*)
33597 if test $glibc_version_major -gt 2 \
33598 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
33599 gcc_cv_libc_provides_hwcap_in_tcb=yes
33602 esac
33603 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
33605 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
33609 # Check if the target LIBC handles PT_GNU_STACK.
33610 gcc_cv_libc_gnustack=unknown
33611 case "$target" in
33612 mips*-*-linux-musl*)
33613 gcc_cv_libc_gnustack=yes
33615 mips*-*-linux*)
33617 if test $glibc_version_major -gt 2 \
33618 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
33619 gcc_cv_libc_gnustack=yes
33622 esac
33623 if test x$gcc_cv_libc_gnustack = xyes; then
33625 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
33629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
33630 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
33631 gcc_cv_target_dl_iterate_phdr=unknown
33632 case "$target" in
33633 *-*-solaris2*)
33634 # <link.h> needs both a dl_iterate_phdr declaration and support for
33635 # compilation with largefile support.
33636 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
33637 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
33638 gcc_cv_target_dl_iterate_phdr=yes
33639 else
33640 gcc_cv_target_dl_iterate_phdr=no
33643 *-*-dragonfly* | *-*-freebsd*)
33644 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
33645 gcc_cv_target_dl_iterate_phdr=yes
33646 else
33647 gcc_cv_target_dl_iterate_phdr=no
33650 *-linux-musl*)
33651 gcc_cv_target_dl_iterate_phdr=yes
33653 esac
33655 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
33657 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
33660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
33661 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
33663 # We no longer support different GC mechanisms. Emit an error if
33664 # the user configures with --with-gc.
33666 # Check whether --with-gc was given.
33667 if test "${with_gc+set}" = set; then :
33668 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
33672 # Libraries to use on the host. This will normally be set by the top
33673 # level Makefile. Here we simply capture the value for our Makefile.
33674 if test -z "${HOST_LIBS+set}"; then
33675 HOST_LIBS=
33679 # Use the system's zlib library.
33681 # Use the system's zlib library.
33682 zlibdir="-L\$(top_builddir)/../zlib"
33683 zlibinc="-I\$(top_srcdir)/../zlib"
33685 # Check whether --with-system-zlib was given.
33686 if test "${with_system_zlib+set}" = set; then :
33687 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
33688 zlibdir=
33689 zlibinc=
33699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
33700 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
33701 # Check whether --enable-maintainer-mode was given.
33702 if test "${enable_maintainer_mode+set}" = set; then :
33703 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
33704 else
33705 maintainer_mode=no
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
33710 $as_echo "$maintainer_mode" >&6; }
33712 if test "$maintainer_mode" = "yes"; then
33713 MAINT=''
33714 else
33715 MAINT='#'
33718 if test -z "$CTAGS"; then
33719 CTAGS=ctags
33722 if test -z "$ETAGS"; then
33723 ETAGS=etags
33726 if test -z "$CSCOPE"; then
33727 CSCOPE=cscope
33732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
33733 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
33734 # Check whether --enable-link-mutex was given.
33735 if test "${enable_link_mutex+set}" = set; then :
33736 enableval=$enable_link_mutex; do_link_mutex=$enableval
33737 else
33738 do_link_mutex=no
33741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
33742 $as_echo "$do_link_mutex" >&6; }
33744 if test "$do_link_mutex" = "yes"; then
33745 DO_LINK_MUTEX=true
33746 { $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
33747 $as_echo "$as_me: WARNING: --enable-link-mutex is deprecated and will be removed in the next release, use --enable-link-serialization instead" >&2;}
33748 else
33749 DO_LINK_MUTEX=false
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
33755 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
33756 # Check whether --enable-link-serialization was given.
33757 if test "${enable_link_serialization+set}" = set; then :
33758 enableval=$enable_link_serialization; do_link_serialization=$enableval
33759 else
33760 do_link_serialization=no
33763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
33764 $as_echo "$do_link_serialization" >&6; }
33766 case "$do_link_serialization" in
33767 yes)
33768 DO_LINK_SERIALIZATION=1;;
33769 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
33770 DO_LINK_SERIALIZATION=$do_link_serialization;;
33772 DO_LINK_SERIALIZATION=;;
33774 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
33775 esac
33778 # --------------
33779 # Language hooks
33780 # --------------
33782 # Make empty files to contain the specs and options for each language.
33783 # Then add #include lines to for a compiler that has specs and/or options.
33785 subdirs=
33786 lang_opt_files=
33787 lang_specs_files=
33788 lang_tree_files=
33789 # These (without "all_") are set in each config-lang.in.
33790 # `language' must be a single word so is spelled singularly.
33791 all_languages=
33792 all_compilers=
33793 all_outputs='Makefile'
33794 # List of language configure and makefile fragments.
33795 all_lang_configurefrags=
33796 all_lang_makefrags=
33797 # Additional files for gengtype
33798 all_gtfiles="$target_gtfiles"
33800 # These are the languages that are set in --enable-languages,
33801 # and are available in the GCC tree.
33802 all_selected_languages=
33804 # Add the language fragments.
33805 # Languages are added via two mechanisms. Some information must be
33806 # recorded in makefile variables, these are defined in config-lang.in.
33807 # We accumulate them and plug them into the main Makefile.
33808 # The other mechanism is a set of hooks for each of the main targets
33809 # like `clean', `install', etc.
33811 language_hooks="Make-hooks"
33813 for lang in ${srcdir}/*/config-lang.in
33815 test "$lang" = "${srcdir}/*/config-lang.in" && continue
33817 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
33818 if test "x$lang_alias" = x
33819 then
33820 echo "$lang doesn't set \$language." 1>&2
33821 exit 1
33823 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
33824 subdirs="$subdirs $subdir"
33826 # $gcc_subdir is where the gcc integration files are to be found
33827 # for a language, both for internal compiler purposes (compiler
33828 # sources implementing front-end to GCC tree converters), and for
33829 # build infrastructure purposes (Make-lang.in, etc.)
33831 # This will be <subdir> (relative to $srcdir) if a line like
33832 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
33833 # is found in <langdir>/config-lang.in, and will remain <langdir>
33834 # otherwise.
33836 # Except for the language alias (fetched above), the regular
33837 # "config-lang.in" contents are always retrieved from $gcc_subdir,
33838 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
33839 # only this and the language alias.
33841 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
33842 if [ "$gcc_subdir" = "" ]; then
33843 gcc_subdir="$subdir"
33846 case ",$enable_languages," in
33847 *,$lang_alias,*)
33848 all_selected_languages="$all_selected_languages $lang_alias"
33849 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
33850 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
33853 esac
33855 language=
33856 boot_language=
33857 compilers=
33858 outputs=
33859 gtfiles=
33860 subdir_requires=
33861 . ${srcdir}/$gcc_subdir/config-lang.in
33862 if test "x$language" = x
33863 then
33864 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
33865 exit 1
33868 ok=:
33869 case ",$enable_languages," in
33870 *,$lang_alias,*) ;;
33872 for i in $subdir_requires; do
33873 test -f "${srcdir}/$i/config-lang.in" && continue
33874 ok=false
33875 break
33876 done
33878 esac
33879 $ok || continue
33881 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
33882 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
33883 # Put c/Make-lang.in fragment first to match serialization languages order.
33884 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
33885 else
33886 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
33888 if test -f $srcdir/$gcc_subdir/lang.opt; then
33889 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
33890 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
33892 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
33893 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
33895 all_languages="$all_languages $language"
33896 all_compilers="$all_compilers $compilers"
33897 all_outputs="$all_outputs $outputs"
33898 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
33899 case ",$enable_languages," in
33900 *,lto,*)
33902 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
33904 enable_lto=yes
33907 *) ;;
33908 esac
33909 done
33911 check_languages=
33912 for language in $all_selected_languages
33914 check_languages="$check_languages check-$language"
33915 done
33917 selftest_languages=
33918 for language in $all_selected_languages
33920 selftest_languages="$selftest_languages selftest-$language"
33921 done
33923 # We link each language in with a set of hooks, reached indirectly via
33924 # lang.${target}. Only do so for selected languages.
33926 rm -f Make-hooks
33927 touch Make-hooks
33928 target_list="all.cross start.encap rest.encap tags \
33929 install-common install-man install-info install-dvi install-pdf \
33930 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
33931 mostlyclean clean distclean maintainer-clean install-plugin"
33933 for t in $target_list
33936 for lang in $all_selected_languages
33938 x="$x $lang.$t"
33939 done
33940 echo "lang.$t: $x" >> Make-hooks
33941 done
33943 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
33944 echo "SERIAL_LIST =" >> Make-hooks
33945 echo else >> Make-hooks
33946 lang_cnt=0
33947 lang_list=
33948 prev=c
33949 serialization_languages=c
33950 for lang in $all_selected_languages
33952 test $lang = c && continue
33953 if test $lang = lto; then
33954 serialization_languages="$serialization_languages lto1 lto2"
33955 else
33956 serialization_languages="$serialization_languages $lang"
33958 done
33959 for lang in $serialization_languages
33961 test $lang = c && continue
33962 lang_cnt=`expr $lang_cnt + 1`
33963 lang_list=" $prev$lang_list"
33964 prev=${lang}
33965 done
33966 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
33967 echo endif >> Make-hooks
33968 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
33969 echo "INDEX.c = 0" >> Make-hooks
33970 lang_idx=1
33971 for lang in $serialization_languages
33973 test $lang = c && continue
33974 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
33975 echo "INDEX.$lang = $lang_idx" >> Make-hooks
33976 lang_cnt=`expr $lang_cnt - 1`
33977 lang_idx=`expr $lang_idx + 1`
33978 done
33980 # --------
33981 # Option include files
33982 # --------
33984 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
33985 option_includes="option-includes.mk"
33988 # --------
33989 # UNSORTED
33990 # --------
33992 # Create .gdbinit.
33994 echo "dir ." > .gdbinit
33995 echo "dir ${srcdir}" >> .gdbinit
33996 if test x$gdb_needs_out_file_path = xyes
33997 then
33998 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
34000 if test "x$subdirs" != x; then
34001 for s in $subdirs
34003 echo "dir ${srcdir}/$s" >> .gdbinit
34004 done
34006 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
34007 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
34009 # Put a breakpoint on __asan_report_error to help with debugging buffer
34010 # overflow.
34011 case "$CFLAGS" in
34012 *-fsanitize=address*)
34013 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
34015 esac
34017 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
34021 # Find a directory in which to install a shared libgcc.
34023 # Check whether --enable-version-specific-runtime-libs was given.
34024 if test "${enable_version_specific_runtime_libs+set}" = set; then :
34025 enableval=$enable_version_specific_runtime_libs;
34029 # Substitute configuration variables
34102 # Echo link setup.
34103 if test x${build} = x${host} ; then
34104 if test x${host} = x${target} ; then
34105 echo "Links are now set up to build a native compiler for ${target}." 1>&2
34106 else
34107 echo "Links are now set up to build a cross-compiler" 1>&2
34108 echo " from ${host} to ${target}." 1>&2
34110 else
34111 if test x${host} = x${target} ; then
34112 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
34113 echo " for ${target}." 1>&2
34114 else
34115 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
34116 echo " from ${host} to ${target}." 1>&2
34125 if test "x${ISLLIBS}" != "x" ; then
34127 $as_echo "#define HAVE_isl 1" >>confdefs.h
34131 # Check for plugin support
34132 # Check whether --enable-plugin was given.
34133 if test "${enable_plugin+set}" = set; then :
34134 enableval=$enable_plugin; enable_plugin=$enableval
34135 else
34136 enable_plugin=yes; default_plugin=yes
34140 pluginlibs=
34141 plugin_check=yes
34143 case "${host}" in
34144 *-*-mingw*)
34145 # Since plugin support under MinGW is not as straightforward as on
34146 # other platforms (e.g., we have to link import library, etc), we
34147 # only enable it if explicitly requested.
34148 if test x"$default_plugin" = x"yes"; then
34149 enable_plugin=no
34150 elif test x"$enable_plugin" = x"yes"; then
34151 # Use make's target variable to derive import library name.
34152 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
34153 plugin_check=no
34156 *-*-darwin*)
34157 if test x$build = x$host; then
34158 export_sym_check="nm${exeext} -g"
34159 elif test x$host = x$target; then
34160 export_sym_check="$gcc_cv_nm -g"
34161 else
34162 export_sym_check=
34166 if test x$build = x$host; then
34167 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34168 elif test x$host = x$target; then
34169 export_sym_check="$gcc_cv_objdump -T"
34170 else
34171 export_sym_check="$ac_cv_prog_OBJDUMP -T"
34174 esac
34176 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
34179 $as_echo_n "checking for exported symbols... " >&6; }
34180 if test "x$export_sym_check" != x; then
34181 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
34182 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34183 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34184 : # No need to use a flag
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34186 $as_echo "yes" >&6; }
34187 else
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34189 $as_echo "yes" >&6; }
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
34191 $as_echo_n "checking for -rdynamic... " >&6; }
34192 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
34193 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
34194 plugin_rdynamic=yes
34195 pluginlibs="-rdynamic"
34196 else
34197 plugin_rdynamic=no
34198 enable_plugin=no
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
34201 $as_echo "$plugin_rdynamic" >&6; }
34203 else
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
34205 $as_echo "unable to check" >&6; }
34208 # Check -ldl
34209 saved_LIBS="$LIBS"
34210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
34211 $as_echo_n "checking for library containing dlopen... " >&6; }
34212 if ${ac_cv_search_dlopen+:} false; then :
34213 $as_echo_n "(cached) " >&6
34214 else
34215 ac_func_search_save_LIBS=$LIBS
34216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34217 /* end confdefs.h. */
34219 /* Override any GCC internal prototype to avoid an error.
34220 Use char because int might match the return type of a GCC
34221 builtin and then its argument prototype would still apply. */
34222 #ifdef __cplusplus
34223 extern "C"
34224 #endif
34225 char dlopen ();
34227 main ()
34229 return dlopen ();
34231 return 0;
34233 _ACEOF
34234 for ac_lib in '' dl; do
34235 if test -z "$ac_lib"; then
34236 ac_res="none required"
34237 else
34238 ac_res=-l$ac_lib
34239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34241 if ac_fn_cxx_try_link "$LINENO"; then :
34242 ac_cv_search_dlopen=$ac_res
34244 rm -f core conftest.err conftest.$ac_objext \
34245 conftest$ac_exeext
34246 if ${ac_cv_search_dlopen+:} false; then :
34247 break
34249 done
34250 if ${ac_cv_search_dlopen+:} false; then :
34252 else
34253 ac_cv_search_dlopen=no
34255 rm conftest.$ac_ext
34256 LIBS=$ac_func_search_save_LIBS
34258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
34259 $as_echo "$ac_cv_search_dlopen" >&6; }
34260 ac_res=$ac_cv_search_dlopen
34261 if test "$ac_res" != no; then :
34262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34266 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
34267 pluginlibs="$pluginlibs -ldl"
34269 LIBS="$saved_LIBS"
34271 # Check that we can build shared objects with -fPIC -shared
34272 saved_LDFLAGS="$LDFLAGS"
34273 saved_CFLAGS="$CFLAGS"
34274 saved_CXXFLAGS="$CXXFLAGS"
34275 case "${host}" in
34276 *-*-darwin*)
34277 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
34278 CFLAGS="$CFLAGS -fPIC"
34279 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
34280 CXXFLAGS="$CXXFLAGS -fPIC"
34281 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
34284 CFLAGS="$CFLAGS -fPIC"
34285 CXXFLAGS="$CXXFLAGS -fPIC"
34286 LDFLAGS="$LDFLAGS -fPIC -shared"
34288 esac
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
34290 $as_echo_n "checking for -fPIC -shared... " >&6; }
34291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34292 /* end confdefs.h. */
34293 extern int X;
34295 main ()
34297 return X == 0;
34299 return 0;
34301 _ACEOF
34302 if ac_fn_cxx_try_link "$LINENO"; then :
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34304 $as_echo "yes" >&6; }; have_pic_shared=yes
34305 else
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34307 $as_echo "no" >&6; }; have_pic_shared=no
34309 rm -f core conftest.err conftest.$ac_objext \
34310 conftest$ac_exeext conftest.$ac_ext
34311 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
34312 pluginlibs=
34313 enable_plugin=no
34315 LDFLAGS="$saved_LDFLAGS"
34316 CFLAGS="$saved_CFLAGS"
34317 CXXFLAGS="$saved_CXXFLAGS"
34319 # If plugin support had been requested but not available, fail.
34320 if test x"$enable_plugin" = x"no" ; then
34321 if test x"$default_plugin" != x"yes"; then
34322 as_fn_error $? "
34323 Building GCC with plugin support requires a host that supports
34324 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
34331 if test x"$enable_plugin" = x"yes"; then
34333 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
34338 # Enable --enable-host-shared
34339 # Check whether --enable-host-shared was given.
34340 if test "${enable_host_shared+set}" = set; then :
34341 enableval=$enable_host_shared;
34346 # Enable --enable-host-pie
34347 # Check whether --enable-host-pie was given.
34348 if test "${enable_host_pie+set}" = set; then :
34349 enableval=$enable_host_pie;
34354 # Enable --enable-host-bind-now
34355 # Check whether --enable-host-bind-now was given.
34356 if test "${enable_host_bind_now+set}" = set; then :
34357 enableval=$enable_host_bind_now;
34362 # Check whether --enable-libquadmath-support was given.
34363 if test "${enable_libquadmath_support+set}" = set; then :
34364 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
34365 else
34366 ENABLE_LIBQUADMATH_SUPPORT=yes
34369 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
34371 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
34376 # Specify what hash style to use by default.
34378 # Check whether --with-linker-hash-style was given.
34379 if test "${with_linker_hash_style+set}" = set; then :
34380 withval=$with_linker_hash_style; case x"$withval" in
34381 xsysv)
34382 LINKER_HASH_STYLE=sysv
34384 xgnu)
34385 LINKER_HASH_STYLE=gnu
34387 xboth)
34388 LINKER_HASH_STYLE=both
34391 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
34393 esac
34394 else
34395 LINKER_HASH_STYLE=''
34398 if test x"${LINKER_HASH_STYLE}" != x; then
34400 cat >>confdefs.h <<_ACEOF
34401 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
34402 _ACEOF
34406 # Specify what should be the default of -fdiagnostics-color option.
34408 # Check whether --with-diagnostics-color was given.
34409 if test "${with_diagnostics_color+set}" = set; then :
34410 withval=$with_diagnostics_color; case x"$withval" in
34411 xnever)
34412 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
34414 xauto)
34415 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34417 xauto-if-env)
34418 DIAGNOSTICS_COLOR_DEFAULT=-1
34420 xalways)
34421 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
34424 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
34426 esac
34427 else
34428 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
34432 cat >>confdefs.h <<_ACEOF
34433 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
34434 _ACEOF
34437 # Specify what should be the default of -fdiagnostics-urls option.
34439 # Check whether --with-diagnostics-urls was given.
34440 if test "${with_diagnostics_urls+set}" = set; then :
34441 withval=$with_diagnostics_urls; case x"$withval" in
34442 xnever)
34443 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
34445 xauto)
34446 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34448 xauto-if-env)
34449 DIAGNOSTICS_URLS_DEFAULT=-1
34451 xalways)
34452 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
34455 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
34457 esac
34458 else
34459 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
34463 cat >>confdefs.h <<_ACEOF
34464 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
34465 _ACEOF
34468 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
34469 # of jit/jit-playback.cc.
34470 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
34471 echo "gcc_driver_version: ${gcc_driver_version}"
34472 cat > gcc-driver-name.h <<EOF
34473 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
34476 # Check whether --enable-default-pie was given.
34477 # Check whether --enable-default-pie was given.
34478 if test "${enable_default_pie+set}" = set; then :
34479 enableval=$enable_default_pie; enable_default_pie=$enableval
34480 else
34481 enable_default_pie=no
34484 if test x$enable_default_pie = xyes ; then
34486 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
34491 # Check if -fno-PIE works.
34492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
34493 $as_echo_n "checking for -fno-PIE option... " >&6; }
34494 if ${gcc_cv_c_no_fpie+:} false; then :
34495 $as_echo_n "(cached) " >&6
34496 else
34497 saved_CXXFLAGS="$CXXFLAGS"
34498 CXXFLAGS="$CXXFLAGS -fno-PIE"
34499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34500 /* end confdefs.h. */
34501 int main(void) {return 0;}
34502 _ACEOF
34503 if ac_fn_cxx_try_compile "$LINENO"; then :
34504 gcc_cv_c_no_fpie=yes
34505 else
34506 gcc_cv_c_no_fpie=no
34508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34509 CXXFLAGS="$saved_CXXFLAGS"
34511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
34512 $as_echo "$gcc_cv_c_no_fpie" >&6; }
34514 # Check if -no-pie works.
34515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
34516 $as_echo_n "checking for -no-pie option... " >&6; }
34517 if ${gcc_cv_no_pie+:} false; then :
34518 $as_echo_n "(cached) " >&6
34519 else
34520 saved_LDFLAGS="$LDFLAGS"
34521 LDFLAGS="$LDFLAGS -no-pie"
34522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34523 /* end confdefs.h. */
34524 int main(void) {return 0;}
34525 _ACEOF
34526 if ac_fn_cxx_try_link "$LINENO"; then :
34527 gcc_cv_no_pie=yes
34528 else
34529 gcc_cv_no_pie=no
34531 rm -f core conftest.err conftest.$ac_objext \
34532 conftest$ac_exeext conftest.$ac_ext
34533 LDFLAGS="$saved_LDFLAGS"
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
34536 $as_echo "$gcc_cv_no_pie" >&6; }
34538 if test x$enable_host_shared = xyes; then
34539 PICFLAG=-fPIC
34540 elif test x$enable_host_pie = xyes; then
34541 PICFLAG=-fPIE
34542 elif test x$gcc_cv_c_no_fpie = xyes; then
34543 PICFLAG=-fno-PIE
34544 else
34545 PICFLAG=
34550 if test x$enable_host_pie = xyes; then
34551 LD_PICFLAG=-pie
34552 elif test x$gcc_cv_no_pie = xyes; then
34553 LD_PICFLAG=-no-pie
34554 else
34555 LD_PICFLAG=
34558 if test x$enable_host_bind_now = xyes; then
34559 LD_PICFLAG="$LD_PICFLAG -Wl,-z,now"
34564 # Enable Intel CET on Intel CET enabled host if jit is enabled.
34565 # Check whether --enable-cet was given.
34566 if test "${enable_cet+set}" = set; then :
34567 enableval=$enable_cet;
34568 case "$enableval" in
34569 yes|no|auto) ;;
34570 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
34571 esac
34573 else
34574 enable_cet=auto
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
34579 $as_echo_n "checking for CET support... " >&6; }
34581 case "$host" in
34582 i[34567]86-*-linux* | x86_64-*-linux*)
34583 may_have_cet=yes
34584 cet_save_CFLAGS="$CFLAGS"
34585 CFLAGS="$CFLAGS -fcf-protection"
34586 case "$enable_cet" in
34587 auto)
34588 # Check if target supports multi-byte NOPs
34589 # and if compiler and assembler support CET.
34590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34591 /* end confdefs.h. */
34594 main ()
34597 #if !defined(__SSE2__)
34598 #error target does not support multi-byte NOPs
34599 #else
34600 asm ("setssbsy");
34601 #endif
34604 return 0;
34606 _ACEOF
34607 if ac_fn_cxx_try_compile "$LINENO"; then :
34608 enable_cet=yes
34609 else
34610 enable_cet=no
34612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34614 yes)
34615 # Check if compiler and assembler support CET.
34616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34617 /* end confdefs.h. */
34620 main ()
34622 asm ("setssbsy");
34624 return 0;
34626 _ACEOF
34627 if ac_fn_cxx_try_compile "$LINENO"; then :
34628 support_cet=yes
34629 else
34630 support_cet=no
34632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34633 if test $support_cet = "no"; then
34634 if test x$enable_bootstrap != xno \
34635 && test -z "${with_build_subdir}" \
34636 && (test ! -f ../stage_current \
34637 || test `cat ../stage_current` != "stage1"); then
34638 # Require CET support only for the final GCC build.
34639 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
34640 else
34641 # Don't enable CET without CET support for non-bootstrap
34642 # build, in stage1 nor for build support.
34643 enable_cet=no
34647 esac
34648 CFLAGS="$cet_save_CFLAGS"
34651 may_have_cet=no
34652 enable_cet=no
34654 esac
34656 cet_save_CFLAGS="$CFLAGS"
34657 CFLAGS="$CFLAGS -fcf-protection=none"
34658 cet_save_LDFLAGS="$LDFLAGS"
34659 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
34660 if test x$may_have_cet = xyes; then
34661 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
34662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34663 /* end confdefs.h. */
34666 main ()
34668 return 0;
34670 return 0;
34672 _ACEOF
34673 if ac_fn_cxx_try_link "$LINENO"; then :
34674 may_have_cet=yes
34675 else
34676 may_have_cet=no
34678 rm -f core conftest.err conftest.$ac_objext \
34679 conftest$ac_exeext conftest.$ac_ext
34682 if test x$may_have_cet = xyes; then
34683 if test x$cross_compiling = xno; then
34684 if test "$cross_compiling" = yes; then :
34685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34687 as_fn_error $? "cannot run test program while cross compiling
34688 See \`config.log' for more details" "$LINENO" 5; }
34689 else
34690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34691 /* end confdefs.h. */
34694 main ()
34696 asm ("endbr32");
34697 return 0;
34700 _ACEOF
34701 if ac_fn_cxx_try_run "$LINENO"; then :
34702 have_multi_byte_nop=yes
34703 else
34704 have_multi_byte_nop=no
34706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34707 conftest.$ac_objext conftest.beam conftest.$ac_ext
34710 have_cet=no
34711 if test x$have_multi_byte_nop = xyes; then
34712 if test "$cross_compiling" = yes; then :
34713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34715 as_fn_error $? "cannot run test program while cross compiling
34716 See \`config.log' for more details" "$LINENO" 5; }
34717 else
34718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34719 /* end confdefs.h. */
34721 static void
34722 foo (void)
34726 static void
34727 __attribute__ ((noinline, noclone))
34728 xxx (void (*f) (void))
34730 f ();
34733 static void
34734 __attribute__ ((noinline, noclone))
34735 bar (void)
34737 xxx (foo);
34741 main ()
34743 bar ();
34744 return 0;
34747 _ACEOF
34748 if ac_fn_cxx_try_run "$LINENO"; then :
34749 have_cet=no
34750 else
34751 have_cet=yes
34753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34754 conftest.$ac_objext conftest.beam conftest.$ac_ext
34758 if test x$enable_cet = xno -a x$have_cet = xyes; then
34759 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
34762 else
34763 # Enable CET in cross compiler if possible so that it will run on both
34764 # CET and non-CET hosts.
34765 have_cet=yes
34767 if test x$enable_cet = xyes; then
34768 CET_HOST_FLAGS="-fcf-protection"
34769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34770 $as_echo "yes" >&6; }
34771 else
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34773 $as_echo "no" >&6; }
34775 CFLAGS="$cet_save_CFLAGS"
34776 LDFLAGS="$cet_save_LDFLAGS"
34778 case x$enable_languages in
34779 *jit*)
34782 CET_HOST_FLAGS=
34784 esac
34787 # Check linker supports '-z bndplt'
34788 ld_bndplt_support=no
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
34790 $as_echo_n "checking linker -z bndplt option... " >&6; }
34791 if test x"$ld_is_gold" = xno; then
34792 if test $in_tree_ld = yes ; then
34793 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
34794 ld_bndplt_support=yes
34796 elif test x$gcc_cv_ld != x; then
34797 # Check if linker supports -z bndplt option
34798 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
34799 ld_bndplt_support=yes
34803 if test x"$ld_bndplt_support" = xyes; then
34805 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
34809 $as_echo "$ld_bndplt_support" >&6; }
34811 # Check linker supports '--push-state'/'--pop-state'
34812 ld_pushpopstate_support=no
34813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
34814 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
34815 if test x"$ld_is_gold" = xno; then
34816 if test $in_tree_ld = yes ; then
34817 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
34818 ld_pushpopstate_support=yes
34820 elif test x$gcc_cv_ld != x; then
34821 # Check if linker supports --push-state/--pop-state options
34822 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
34823 ld_pushpopstate_support=yes
34827 if test x"$ld_pushpopstate_support" = xyes; then
34829 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
34833 $as_echo "$ld_pushpopstate_support" >&6; }
34835 # On s390, float_t has historically been statically defined as double for no
34836 # good reason. To comply with the C standard in the light of this definition,
34837 # gcc has evaluated float expressions in double precision when in
34838 # standards-compatible mode or when given -fexcess-precision=standard. To enable
34839 # a smooth transition towards the new model used by most architectures, where
34840 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
34841 # float_t from that, this behavior can be configured with
34842 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
34843 # the old model. When omitted, native builds and cross compiles that have target
34844 # libc headers will detect whether libc clamps float_t to double and in that
34845 # case maintain the old model. Otherwise, they will default to the new model.
34846 # Check whether --enable-s390-excess-float-precision was given.
34847 if test "${enable_s390_excess_float_precision+set}" = set; then :
34848 enableval=$enable_s390_excess_float_precision;
34849 else
34850 enable_s390_excess_float_precision=auto
34854 case $target in
34855 s390*-linux*)
34856 if test x"$enable_s390_excess_float_precision" = xauto; then
34857 # Can we autodetect the behavior of the target libc?
34858 if test "$target" = "$host" -a "$host" = "$build"; then
34859 enable_s390_excess_float_precision=autodetect
34860 elif test "x$with_headers" != xno; then
34861 # cross build. are target headers available?
34862 # carefully coerce the build-system compiler to use target headers
34863 saved_CXXFLAGS="$CXXFLAGS"
34864 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
34865 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
34866 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34868 /* end confdefs.h. */
34870 #include <math.h>
34872 _ACEOF
34873 if ac_fn_cxx_try_compile "$LINENO"; then :
34874 enable_s390_excess_float_precision=autodetect
34876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877 CXXFLAGS="$saved_CXXFLAGS"
34880 if test x"$enable_s390_excess_float_precision" = xautodetect; then
34881 saved_CXXFLAGS="$CXXFLAGS"
34882 if ! test "$target" = "$host" -a "$host" = "$build"; then
34883 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
34884 unset CROSS_TEST_CXXFLAGS
34886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
34887 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
34888 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
34889 $as_echo_n "(cached) " >&6
34890 else
34892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34893 /* end confdefs.h. */
34895 #define __FLT_EVAL_METHOD__ 0
34896 #include <math.h>
34897 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
34899 _ACEOF
34900 if ac_fn_cxx_try_compile "$LINENO"; then :
34901 gcc_cv_float_t_clamped_to_double=yes
34902 else
34903 gcc_cv_float_t_clamped_to_double=no
34905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
34908 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
34909 CXXFLAGS="$saved_CXXFLAGS"
34910 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
34911 else
34912 # no way to detect behavior of target libc, default to new model
34913 enable_s390_excess_float_precision=no
34918 if test x"$enable_s390_excess_float_precision" = xyes; then
34920 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
34924 esac
34926 # Check if the linker supports '-z now'
34927 ld_now_support=no
34928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z now option" >&5
34929 $as_echo_n "checking linker -z now option... " >&6; }
34930 if test x"$ld_is_gold" = xyes; then
34931 ld_now_support=yes
34932 elif test $in_tree_ld = yes ; then
34933 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
34934 ld_now_support=yes
34936 elif test x$gcc_cv_ld != x; then
34937 # Check if linker supports -z now
34938 if $gcc_cv_ld --help 2>&1 | grep -- '-z now' > /dev/null; then
34939 ld_now_support=yes
34943 cat >>confdefs.h <<_ACEOF
34944 #define HAVE_LD_NOW_SUPPORT `if test x"$ld_now_support" = xyes; then echo 1; else echo 0; fi`
34945 _ACEOF
34947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_now_support" >&5
34948 $as_echo "$ld_now_support" >&6; }
34950 # Check if the linker supports '-z relro'
34951 ld_relro_support=no
34952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z relro option" >&5
34953 $as_echo_n "checking linker -z relro option... " >&6; }
34954 if test x"$ld_is_gold" = xyes; then
34955 ld_relro_support=yes
34956 elif test $in_tree_ld = yes ; then
34957 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
34958 ld_relro_support=yes
34960 elif test x$gcc_cv_ld != x; then
34961 # Check if linker supports -z relro
34962 if $gcc_cv_ld --help 2>&1 | grep -- '-z relro' > /dev/null; then
34963 ld_relro_support=yes
34967 cat >>confdefs.h <<_ACEOF
34968 #define HAVE_LD_RELRO_SUPPORT `if test x"$ld_relro_support" = xyes; then echo 1; else echo 0; fi`
34969 _ACEOF
34971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_relro_support" >&5
34972 $as_echo "$ld_relro_support" >&6; }
34974 case $target_os in
34975 linux* | gnu*)
34976 # -fhardened is only supported on GNU/Linux.
34977 fhardened_support=yes
34980 fhardened_support=no
34982 esac
34985 cat >>confdefs.h <<_ACEOF
34986 #define HAVE_FHARDENED_SUPPORT `if test x"$fhardened_support" = xyes; then echo 1; else echo 0; fi`
34987 _ACEOF
34989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fhardened_support" >&5
34990 $as_echo "$fhardened_support" >&6; }
34992 # Configure the subdirectories
34993 # AC_CONFIG_SUBDIRS($subdirs)
34995 # Create the Makefile
34996 # and configure language subdirectories
34997 ac_config_files="$ac_config_files $all_outputs"
35000 ac_config_commands="$ac_config_commands default"
35002 cat >confcache <<\_ACEOF
35003 # This file is a shell script that caches the results of configure
35004 # tests run on this system so they can be shared between configure
35005 # scripts and configure runs, see configure's option --config-cache.
35006 # It is not useful on other systems. If it contains results you don't
35007 # want to keep, you may remove or edit it.
35009 # config.status only pays attention to the cache file if you give it
35010 # the --recheck option to rerun configure.
35012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35014 # following values.
35016 _ACEOF
35018 # The following way of writing the cache mishandles newlines in values,
35019 # but we know of no workaround that is simple, portable, and efficient.
35020 # So, we kill variables containing newlines.
35021 # Ultrix sh set writes to stderr and can't be redirected directly,
35022 # and sets the high bit in the cache file unless we assign to the vars.
35024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35025 eval ac_val=\$$ac_var
35026 case $ac_val in #(
35027 *${as_nl}*)
35028 case $ac_var in #(
35029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35031 esac
35032 case $ac_var in #(
35033 _ | IFS | as_nl) ;; #(
35034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35035 *) { eval $ac_var=; unset $ac_var;} ;;
35036 esac ;;
35037 esac
35038 done
35040 (set) 2>&1 |
35041 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35042 *${as_nl}ac_space=\ *)
35043 # `set' does not quote correctly, so add quotes: double-quote
35044 # substitution turns \\\\ into \\, and sed turns \\ into \.
35045 sed -n \
35046 "s/'/'\\\\''/g;
35047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35048 ;; #(
35050 # `set' quotes correctly as required by POSIX, so do not add quotes.
35051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35053 esac |
35054 sort
35056 sed '
35057 /^ac_cv_env_/b end
35058 t clear
35059 :clear
35060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35061 t end
35062 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35063 :end' >>confcache
35064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35065 if test -w "$cache_file"; then
35066 if test "x$cache_file" != "x/dev/null"; then
35067 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35068 $as_echo "$as_me: updating cache $cache_file" >&6;}
35069 if test ! -f "$cache_file" || test -h "$cache_file"; then
35070 cat confcache >"$cache_file"
35071 else
35072 case $cache_file in #(
35073 */* | ?:*)
35074 mv -f confcache "$cache_file"$$ &&
35075 mv -f "$cache_file"$$ "$cache_file" ;; #(
35077 mv -f confcache "$cache_file" ;;
35078 esac
35081 else
35082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35086 rm -f confcache
35088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35089 # Let make expand exec_prefix.
35090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35092 DEFS=-DHAVE_CONFIG_H
35094 ac_libobjs=
35095 ac_ltlibobjs=
35097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35098 # 1. Remove the extension, and $U if already installed.
35099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35102 # will be set to the directory where LIBOBJS objects are built.
35103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35105 done
35106 LIBOBJS=$ac_libobjs
35108 LTLIBOBJS=$ac_ltlibobjs
35112 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
35113 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
35114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35117 : "${CONFIG_STATUS=./config.status}"
35118 ac_write_fail=0
35119 ac_clean_files_save=$ac_clean_files
35120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35122 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35123 as_write_fail=0
35124 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35125 #! $SHELL
35126 # Generated by $as_me.
35127 # Run this file to recreate the current configuration.
35128 # Compiler output produced by configure, useful for debugging
35129 # configure, is in config.log if it exists.
35131 debug=false
35132 ac_cs_recheck=false
35133 ac_cs_silent=false
35135 SHELL=\${CONFIG_SHELL-$SHELL}
35136 export SHELL
35137 _ASEOF
35138 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35139 ## -------------------- ##
35140 ## M4sh Initialization. ##
35141 ## -------------------- ##
35143 # Be more Bourne compatible
35144 DUALCASE=1; export DUALCASE # for MKS sh
35145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35146 emulate sh
35147 NULLCMD=:
35148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35149 # is contrary to our usage. Disable this feature.
35150 alias -g '${1+"$@"}'='"$@"'
35151 setopt NO_GLOB_SUBST
35152 else
35153 case `(set -o) 2>/dev/null` in #(
35154 *posix*) :
35155 set -o posix ;; #(
35156 *) :
35158 esac
35162 as_nl='
35164 export as_nl
35165 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35166 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35169 # Prefer a ksh shell builtin over an external printf program on Solaris,
35170 # but without wasting forks for bash or zsh.
35171 if test -z "$BASH_VERSION$ZSH_VERSION" \
35172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35173 as_echo='print -r --'
35174 as_echo_n='print -rn --'
35175 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35176 as_echo='printf %s\n'
35177 as_echo_n='printf %s'
35178 else
35179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35181 as_echo_n='/usr/ucb/echo -n'
35182 else
35183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35184 as_echo_n_body='eval
35185 arg=$1;
35186 case $arg in #(
35187 *"$as_nl"*)
35188 expr "X$arg" : "X\\(.*\\)$as_nl";
35189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35190 esac;
35191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35193 export as_echo_n_body
35194 as_echo_n='sh -c $as_echo_n_body as_echo'
35196 export as_echo_body
35197 as_echo='sh -c $as_echo_body as_echo'
35200 # The user is always right.
35201 if test "${PATH_SEPARATOR+set}" != set; then
35202 PATH_SEPARATOR=:
35203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35205 PATH_SEPARATOR=';'
35210 # IFS
35211 # We need space, tab and new line, in precisely that order. Quoting is
35212 # there to prevent editors from complaining about space-tab.
35213 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35214 # splitting by setting IFS to empty value.)
35215 IFS=" "" $as_nl"
35217 # Find who we are. Look in the path if we contain no directory separator.
35218 as_myself=
35219 case $0 in #((
35220 *[\\/]* ) as_myself=$0 ;;
35221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35222 for as_dir in $PATH
35224 IFS=$as_save_IFS
35225 test -z "$as_dir" && as_dir=.
35226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35227 done
35228 IFS=$as_save_IFS
35231 esac
35232 # We did not find ourselves, most probably we were run as `sh COMMAND'
35233 # in which case we are not to be found in the path.
35234 if test "x$as_myself" = x; then
35235 as_myself=$0
35237 if test ! -f "$as_myself"; then
35238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35239 exit 1
35242 # Unset variables that we do not need and which cause bugs (e.g. in
35243 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35244 # suppresses any "Segmentation fault" message there. '((' could
35245 # trigger a bug in pdksh 5.2.14.
35246 for as_var in BASH_ENV ENV MAIL MAILPATH
35247 do eval test x\${$as_var+set} = xset \
35248 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35249 done
35250 PS1='$ '
35251 PS2='> '
35252 PS4='+ '
35254 # NLS nuisances.
35255 LC_ALL=C
35256 export LC_ALL
35257 LANGUAGE=C
35258 export LANGUAGE
35260 # CDPATH.
35261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35264 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35265 # ----------------------------------------
35266 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35267 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35268 # script with STATUS, using 1 if that was 0.
35269 as_fn_error ()
35271 as_status=$1; test $as_status -eq 0 && as_status=1
35272 if test "$4"; then
35273 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35274 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35276 $as_echo "$as_me: error: $2" >&2
35277 as_fn_exit $as_status
35278 } # as_fn_error
35281 # as_fn_set_status STATUS
35282 # -----------------------
35283 # Set $? to STATUS, without forking.
35284 as_fn_set_status ()
35286 return $1
35287 } # as_fn_set_status
35289 # as_fn_exit STATUS
35290 # -----------------
35291 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35292 as_fn_exit ()
35294 set +e
35295 as_fn_set_status $1
35296 exit $1
35297 } # as_fn_exit
35299 # as_fn_unset VAR
35300 # ---------------
35301 # Portably unset VAR.
35302 as_fn_unset ()
35304 { eval $1=; unset $1;}
35306 as_unset=as_fn_unset
35307 # as_fn_append VAR VALUE
35308 # ----------------------
35309 # Append the text in VALUE to the end of the definition contained in VAR. Take
35310 # advantage of any shell optimizations that allow amortized linear growth over
35311 # repeated appends, instead of the typical quadratic growth present in naive
35312 # implementations.
35313 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35314 eval 'as_fn_append ()
35316 eval $1+=\$2
35318 else
35319 as_fn_append ()
35321 eval $1=\$$1\$2
35323 fi # as_fn_append
35325 # as_fn_arith ARG...
35326 # ------------------
35327 # Perform arithmetic evaluation on the ARGs, and store the result in the
35328 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35329 # must be portable across $(()) and expr.
35330 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35331 eval 'as_fn_arith ()
35333 as_val=$(( $* ))
35335 else
35336 as_fn_arith ()
35338 as_val=`expr "$@" || test $? -eq 1`
35340 fi # as_fn_arith
35343 if expr a : '\(a\)' >/dev/null 2>&1 &&
35344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35345 as_expr=expr
35346 else
35347 as_expr=false
35350 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35351 as_basename=basename
35352 else
35353 as_basename=false
35356 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35357 as_dirname=dirname
35358 else
35359 as_dirname=false
35362 as_me=`$as_basename -- "$0" ||
35363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35364 X"$0" : 'X\(//\)$' \| \
35365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35366 $as_echo X/"$0" |
35367 sed '/^.*\/\([^/][^/]*\)\/*$/{
35368 s//\1/
35371 /^X\/\(\/\/\)$/{
35372 s//\1/
35375 /^X\/\(\/\).*/{
35376 s//\1/
35379 s/.*/./; q'`
35381 # Avoid depending upon Character Ranges.
35382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35385 as_cr_digits='0123456789'
35386 as_cr_alnum=$as_cr_Letters$as_cr_digits
35388 ECHO_C= ECHO_N= ECHO_T=
35389 case `echo -n x` in #(((((
35390 -n*)
35391 case `echo 'xy\c'` in
35392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35393 xy) ECHO_C='\c';;
35394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35395 ECHO_T=' ';;
35396 esac;;
35398 ECHO_N='-n';;
35399 esac
35401 rm -f conf$$ conf$$.exe conf$$.file
35402 if test -d conf$$.dir; then
35403 rm -f conf$$.dir/conf$$.file
35404 else
35405 rm -f conf$$.dir
35406 mkdir conf$$.dir 2>/dev/null
35408 if (echo >conf$$.file) 2>/dev/null; then
35409 if ln -s conf$$.file conf$$ 2>/dev/null; then
35410 as_ln_s='ln -s'
35411 # ... but there are two gotchas:
35412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35414 # In both cases, we have to default to `cp -pR'.
35415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35416 as_ln_s='cp -pR'
35417 elif ln conf$$.file conf$$ 2>/dev/null; then
35418 as_ln_s=ln
35419 else
35420 as_ln_s='cp -pR'
35422 else
35423 as_ln_s='cp -pR'
35425 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35426 rmdir conf$$.dir 2>/dev/null
35429 # as_fn_mkdir_p
35430 # -------------
35431 # Create "$as_dir" as a directory, including parents if necessary.
35432 as_fn_mkdir_p ()
35435 case $as_dir in #(
35436 -*) as_dir=./$as_dir;;
35437 esac
35438 test -d "$as_dir" || eval $as_mkdir_p || {
35439 as_dirs=
35440 while :; do
35441 case $as_dir in #(
35442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35443 *) as_qdir=$as_dir;;
35444 esac
35445 as_dirs="'$as_qdir' $as_dirs"
35446 as_dir=`$as_dirname -- "$as_dir" ||
35447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35448 X"$as_dir" : 'X\(//\)[^/]' \| \
35449 X"$as_dir" : 'X\(//\)$' \| \
35450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35451 $as_echo X"$as_dir" |
35452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35453 s//\1/
35456 /^X\(\/\/\)[^/].*/{
35457 s//\1/
35460 /^X\(\/\/\)$/{
35461 s//\1/
35464 /^X\(\/\).*/{
35465 s//\1/
35468 s/.*/./; q'`
35469 test -d "$as_dir" && break
35470 done
35471 test -z "$as_dirs" || eval "mkdir $as_dirs"
35472 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35475 } # as_fn_mkdir_p
35476 if mkdir -p . 2>/dev/null; then
35477 as_mkdir_p='mkdir -p "$as_dir"'
35478 else
35479 test -d ./-p && rmdir ./-p
35480 as_mkdir_p=false
35484 # as_fn_executable_p FILE
35485 # -----------------------
35486 # Test if FILE is an executable regular file.
35487 as_fn_executable_p ()
35489 test -f "$1" && test -x "$1"
35490 } # as_fn_executable_p
35491 as_test_x='test -x'
35492 as_executable_p=as_fn_executable_p
35494 # Sed expression to map a string onto a valid CPP name.
35495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35497 # Sed expression to map a string onto a valid variable name.
35498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35501 exec 6>&1
35502 ## ----------------------------------- ##
35503 ## Main body of $CONFIG_STATUS script. ##
35504 ## ----------------------------------- ##
35505 _ASEOF
35506 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35509 # Save the log message, to keep $0 and so on meaningful, and to
35510 # report actual input values of CONFIG_FILES etc. instead of their
35511 # values after options handling.
35512 ac_log="
35513 This file was extended by $as_me, which was
35514 generated by GNU Autoconf 2.69. Invocation command line was
35516 CONFIG_FILES = $CONFIG_FILES
35517 CONFIG_HEADERS = $CONFIG_HEADERS
35518 CONFIG_LINKS = $CONFIG_LINKS
35519 CONFIG_COMMANDS = $CONFIG_COMMANDS
35520 $ $0 $@
35522 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35525 _ACEOF
35527 case $ac_config_files in *"
35528 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35529 esac
35531 case $ac_config_headers in *"
35532 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35533 esac
35536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35537 # Files that config.status was made for.
35538 config_files="$ac_config_files"
35539 config_headers="$ac_config_headers"
35540 config_links="$ac_config_links"
35541 config_commands="$ac_config_commands"
35543 _ACEOF
35545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35546 ac_cs_usage="\
35547 \`$as_me' instantiates files and other configuration actions
35548 from templates according to the current configuration. Unless the files
35549 and actions are specified as TAGs, all are instantiated by default.
35551 Usage: $0 [OPTION]... [TAG]...
35553 -h, --help print this help, then exit
35554 -V, --version print version number and configuration settings, then exit
35555 --config print configuration, then exit
35556 -q, --quiet, --silent
35557 do not print progress messages
35558 -d, --debug don't remove temporary files
35559 --recheck update $as_me by reconfiguring in the same conditions
35560 --file=FILE[:TEMPLATE]
35561 instantiate the configuration file FILE
35562 --header=FILE[:TEMPLATE]
35563 instantiate the configuration header FILE
35565 Configuration files:
35566 $config_files
35568 Configuration headers:
35569 $config_headers
35571 Configuration links:
35572 $config_links
35574 Configuration commands:
35575 $config_commands
35577 Report bugs to the package provider."
35579 _ACEOF
35580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35581 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35582 ac_cs_version="\\
35583 config.status
35584 configured by $0, generated by GNU Autoconf 2.69,
35585 with options \\"\$ac_cs_config\\"
35587 Copyright (C) 2012 Free Software Foundation, Inc.
35588 This config.status script is free software; the Free Software Foundation
35589 gives unlimited permission to copy, distribute and modify it."
35591 ac_pwd='$ac_pwd'
35592 srcdir='$srcdir'
35593 INSTALL='$INSTALL'
35594 AWK='$AWK'
35595 test -n "\$AWK" || AWK=awk
35596 _ACEOF
35598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35599 # The default lists apply if the user does not specify any file.
35600 ac_need_defaults=:
35601 while test $# != 0
35603 case $1 in
35604 --*=?*)
35605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35607 ac_shift=:
35609 --*=)
35610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35611 ac_optarg=
35612 ac_shift=:
35615 ac_option=$1
35616 ac_optarg=$2
35617 ac_shift=shift
35619 esac
35621 case $ac_option in
35622 # Handling of the options.
35623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35624 ac_cs_recheck=: ;;
35625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35626 $as_echo "$ac_cs_version"; exit ;;
35627 --config | --confi | --conf | --con | --co | --c )
35628 $as_echo "$ac_cs_config"; exit ;;
35629 --debug | --debu | --deb | --de | --d | -d )
35630 debug=: ;;
35631 --file | --fil | --fi | --f )
35632 $ac_shift
35633 case $ac_optarg in
35634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35635 '') as_fn_error $? "missing file argument" ;;
35636 esac
35637 as_fn_append CONFIG_FILES " '$ac_optarg'"
35638 ac_need_defaults=false;;
35639 --header | --heade | --head | --hea )
35640 $ac_shift
35641 case $ac_optarg in
35642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35643 esac
35644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35645 ac_need_defaults=false;;
35646 --he | --h)
35647 # Conflict between --help and --header
35648 as_fn_error $? "ambiguous option: \`$1'
35649 Try \`$0 --help' for more information.";;
35650 --help | --hel | -h )
35651 $as_echo "$ac_cs_usage"; exit ;;
35652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35654 ac_cs_silent=: ;;
35656 # This is an error.
35657 -*) as_fn_error $? "unrecognized option: \`$1'
35658 Try \`$0 --help' for more information." ;;
35660 *) as_fn_append ac_config_targets " $1"
35661 ac_need_defaults=false ;;
35663 esac
35664 shift
35665 done
35667 ac_configure_extra_args=
35669 if $ac_cs_silent; then
35670 exec 6>/dev/null
35671 ac_configure_extra_args="$ac_configure_extra_args --silent"
35674 _ACEOF
35675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35676 if \$ac_cs_recheck; then
35677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35678 shift
35679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35680 CONFIG_SHELL='$SHELL'
35681 export CONFIG_SHELL
35682 exec "\$@"
35685 _ACEOF
35686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35687 exec 5>>config.log
35689 echo
35690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35691 ## Running $as_me. ##
35692 _ASBOX
35693 $as_echo "$ac_log"
35694 } >&5
35696 _ACEOF
35697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35699 # INIT-COMMANDS
35701 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35702 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
35703 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35704 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
35705 # from automake.
35706 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35707 # Capture the value of LINGUAS because we need it to compute CATALOGS.
35708 LINGUAS="${LINGUAS-%UNSET%}"
35710 subdirs='$subdirs'
35712 _ACEOF
35714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35716 # Handling of arguments.
35717 for ac_config_target in $ac_config_targets
35719 case $ac_config_target in
35720 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
35721 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
35722 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
35723 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
35724 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
35725 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
35726 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
35727 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
35728 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
35729 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
35730 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35732 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35733 esac
35734 done
35737 # If the user did not use the arguments to specify the items to instantiate,
35738 # then the envvar interface is used. Set only those that are not.
35739 # We use the long form for the default assignment because of an extremely
35740 # bizarre bug on SunOS 4.1.3.
35741 if $ac_need_defaults; then
35742 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35743 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35744 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
35745 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35748 # Have a temporary directory for convenience. Make it in the build tree
35749 # simply because there is no reason against having it here, and in addition,
35750 # creating and moving files from /tmp can sometimes cause problems.
35751 # Hook for its removal unless debugging.
35752 # Note that there is a small window in which the directory will not be cleaned:
35753 # after its creation but before its name has been assigned to `$tmp'.
35754 $debug ||
35756 tmp= ac_tmp=
35757 trap 'exit_status=$?
35758 : "${ac_tmp:=$tmp}"
35759 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35761 trap 'as_fn_exit 1' 1 2 13 15
35763 # Create a (secure) tmp directory for tmp files.
35766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35767 test -d "$tmp"
35768 } ||
35770 tmp=./conf$$-$RANDOM
35771 (umask 077 && mkdir "$tmp")
35772 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35773 ac_tmp=$tmp
35775 # Set up the scripts for CONFIG_FILES section.
35776 # No need to generate them if there are no CONFIG_FILES.
35777 # This happens for instance with `./config.status config.h'.
35778 if test -n "$CONFIG_FILES"; then
35780 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35781 ac_cs_awk_getline=:
35782 ac_cs_awk_pipe_init=
35783 ac_cs_awk_read_file='
35784 while ((getline aline < (F[key])) > 0)
35785 print(aline)
35786 close(F[key])'
35787 ac_cs_awk_pipe_fini=
35788 else
35789 ac_cs_awk_getline=false
35790 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35791 ac_cs_awk_read_file='
35792 print "|#_!!_#|"
35793 print "cat " F[key] " &&"
35794 '$ac_cs_awk_pipe_init
35795 # The final `:' finishes the AND list.
35796 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35798 ac_cr=`echo X | tr X '\015'`
35799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35800 # But we know of no other shell where ac_cr would be empty at this
35801 # point, so we can use a bashism as a fallback.
35802 if test "x$ac_cr" = x; then
35803 eval ac_cr=\$\'\\r\'
35805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35807 ac_cs_awk_cr='\\r'
35808 else
35809 ac_cs_awk_cr=$ac_cr
35812 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35813 _ACEOF
35815 # Create commands to substitute file output variables.
35817 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35818 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35819 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35820 echo "_ACAWK" &&
35821 echo "_ACEOF"
35822 } >conf$$files.sh &&
35823 . ./conf$$files.sh ||
35824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35825 rm -f conf$$files.sh
35828 echo "cat >conf$$subs.awk <<_ACEOF" &&
35829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35830 echo "_ACEOF"
35831 } >conf$$subs.sh ||
35832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35834 ac_delim='%!_!# '
35835 for ac_last_try in false false false false false :; do
35836 . ./conf$$subs.sh ||
35837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35840 if test $ac_delim_n = $ac_delim_num; then
35841 break
35842 elif $ac_last_try; then
35843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35844 else
35845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35847 done
35848 rm -f conf$$subs.sh
35850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35851 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35852 _ACEOF
35853 sed -n '
35855 s/^/S["/; s/!.*/"]=/
35858 s/^[^!]*!//
35859 :repl
35860 t repl
35861 s/'"$ac_delim"'$//
35862 t delim
35865 s/\(.\{148\}\)..*/\1/
35866 t more1
35867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35870 b repl
35871 :more1
35872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35875 s/.\{148\}//
35876 t nl
35877 :delim
35879 s/\(.\{148\}\)..*/\1/
35880 t more2
35881 s/["\\]/\\&/g; s/^/"/; s/$/"/
35884 :more2
35885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35888 s/.\{148\}//
35889 t delim
35890 ' <conf$$subs.awk | sed '
35891 /^[^""]/{
35893 s/\n//
35895 ' >>$CONFIG_STATUS || ac_write_fail=1
35896 rm -f conf$$subs.awk
35897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35898 _ACAWK
35899 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35900 for (key in S) S_is_set[key] = 1
35901 FS = "\a"
35902 \$ac_cs_awk_pipe_init
35905 line = $ 0
35906 nfields = split(line, field, "@")
35907 substed = 0
35908 len = length(field[1])
35909 for (i = 2; i < nfields; i++) {
35910 key = field[i]
35911 keylen = length(key)
35912 if (S_is_set[key]) {
35913 value = S[key]
35914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35915 len += length(value) + length(field[++i])
35916 substed = 1
35917 } else
35918 len += 1 + keylen
35920 if (nfields == 3 && !substed) {
35921 key = field[2]
35922 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
35923 \$ac_cs_awk_read_file
35924 next
35927 print line
35929 \$ac_cs_awk_pipe_fini
35930 _ACAWK
35931 _ACEOF
35932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35933 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35935 else
35937 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35938 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35939 _ACEOF
35941 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35942 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35943 # trailing colons and then remove the whole line if VPATH becomes empty
35944 # (actually we leave an empty line to preserve line numbers).
35945 if test "x$srcdir" = x.; then
35946 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35948 s///
35949 s/^/:/
35950 s/[ ]*$/:/
35951 s/:\$(srcdir):/:/g
35952 s/:\${srcdir}:/:/g
35953 s/:@srcdir@:/:/g
35954 s/^:*//
35955 s/:*$//
35957 s/\(=[ ]*\).*/\1/
35959 s/\n//
35960 s/^[^=]*=[ ]*$//
35964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35965 fi # test -n "$CONFIG_FILES"
35967 # Set up the scripts for CONFIG_HEADERS section.
35968 # No need to generate them if there are no CONFIG_HEADERS.
35969 # This happens for instance with `./config.status Makefile'.
35970 if test -n "$CONFIG_HEADERS"; then
35971 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35972 BEGIN {
35973 _ACEOF
35975 # Transform confdefs.h into an awk script `defines.awk', embedded as
35976 # here-document in config.status, that substitutes the proper values into
35977 # config.h.in to produce config.h.
35979 # Create a delimiter string that does not exist in confdefs.h, to ease
35980 # handling of long lines.
35981 ac_delim='%!_!# '
35982 for ac_last_try in false false :; do
35983 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35984 if test -z "$ac_tt"; then
35985 break
35986 elif $ac_last_try; then
35987 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35988 else
35989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35991 done
35993 # For the awk script, D is an array of macro values keyed by name,
35994 # likewise P contains macro parameters if any. Preserve backslash
35995 # newline sequences.
35997 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35998 sed -n '
35999 s/.\{148\}/&'"$ac_delim"'/g
36000 t rset
36001 :rset
36002 s/^[ ]*#[ ]*define[ ][ ]*/ /
36003 t def
36005 :def
36006 s/\\$//
36007 t bsnl
36008 s/["\\]/\\&/g
36009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36010 D["\1"]=" \3"/p
36011 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36013 :bsnl
36014 s/["\\]/\\&/g
36015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36016 D["\1"]=" \3\\\\\\n"\\/p
36017 t cont
36018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36019 t cont
36021 :cont
36023 s/.\{148\}/&'"$ac_delim"'/g
36024 t clear
36025 :clear
36026 s/\\$//
36027 t bsnlc
36028 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36030 :bsnlc
36031 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36032 b cont
36033 ' <confdefs.h | sed '
36034 s/'"$ac_delim"'/"\\\
36035 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36038 for (key in D) D_is_set[key] = 1
36039 FS = "\a"
36041 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36042 line = \$ 0
36043 split(line, arg, " ")
36044 if (arg[1] == "#") {
36045 defundef = arg[2]
36046 mac1 = arg[3]
36047 } else {
36048 defundef = substr(arg[1], 2)
36049 mac1 = arg[2]
36051 split(mac1, mac2, "(") #)
36052 macro = mac2[1]
36053 prefix = substr(line, 1, index(line, defundef) - 1)
36054 if (D_is_set[macro]) {
36055 # Preserve the white space surrounding the "#".
36056 print prefix "define", macro P[macro] D[macro]
36057 next
36058 } else {
36059 # Replace #undef with comments. This is necessary, for example,
36060 # in the case of _POSIX_SOURCE, which is predefined and required
36061 # on some systems where configure will not decide to define it.
36062 if (defundef == "undef") {
36063 print "/*", prefix defundef, macro, "*/"
36064 next
36068 { print }
36069 _ACAWK
36070 _ACEOF
36071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36072 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36073 fi # test -n "$CONFIG_HEADERS"
36076 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
36077 shift
36078 for ac_tag
36080 case $ac_tag in
36081 :[FHLC]) ac_mode=$ac_tag; continue;;
36082 esac
36083 case $ac_mode$ac_tag in
36084 :[FHL]*:*);;
36085 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36086 :[FH]-) ac_tag=-:-;;
36087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36088 esac
36089 ac_save_IFS=$IFS
36090 IFS=:
36091 set x $ac_tag
36092 IFS=$ac_save_IFS
36093 shift
36094 ac_file=$1
36095 shift
36097 case $ac_mode in
36098 :L) ac_source=$1;;
36099 :[FH])
36100 ac_file_inputs=
36101 for ac_f
36103 case $ac_f in
36104 -) ac_f="$ac_tmp/stdin";;
36105 *) # Look for the file first in the build tree, then in the source tree
36106 # (if the path is not absolute). The absolute path cannot be DOS-style,
36107 # because $ac_f cannot contain `:'.
36108 test -f "$ac_f" ||
36109 case $ac_f in
36110 [\\/$]*) false;;
36111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36112 esac ||
36113 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36114 esac
36115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36116 as_fn_append ac_file_inputs " '$ac_f'"
36117 done
36119 # Let's still pretend it is `configure' which instantiates (i.e., don't
36120 # use $as_me), people would be surprised to read:
36121 # /* config.h. Generated by config.status. */
36122 configure_input='Generated from '`
36123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36124 `' by configure.'
36125 if test x"$ac_file" != x-; then
36126 configure_input="$ac_file. $configure_input"
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36128 $as_echo "$as_me: creating $ac_file" >&6;}
36130 # Neutralize special characters interpreted by sed in replacement strings.
36131 case $configure_input in #(
36132 *\&* | *\|* | *\\* )
36133 ac_sed_conf_input=`$as_echo "$configure_input" |
36134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36135 *) ac_sed_conf_input=$configure_input;;
36136 esac
36138 case $ac_tag in
36139 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36141 esac
36143 esac
36145 ac_dir=`$as_dirname -- "$ac_file" ||
36146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36147 X"$ac_file" : 'X\(//\)[^/]' \| \
36148 X"$ac_file" : 'X\(//\)$' \| \
36149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36150 $as_echo X"$ac_file" |
36151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36152 s//\1/
36155 /^X\(\/\/\)[^/].*/{
36156 s//\1/
36159 /^X\(\/\/\)$/{
36160 s//\1/
36163 /^X\(\/\).*/{
36164 s//\1/
36167 s/.*/./; q'`
36168 as_dir="$ac_dir"; as_fn_mkdir_p
36169 ac_builddir=.
36171 case "$ac_dir" in
36172 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36174 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36175 # A ".." for each directory in $ac_dir_suffix.
36176 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36177 case $ac_top_builddir_sub in
36178 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36179 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36180 esac ;;
36181 esac
36182 ac_abs_top_builddir=$ac_pwd
36183 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36184 # for backward compatibility:
36185 ac_top_builddir=$ac_top_build_prefix
36187 case $srcdir in
36188 .) # We are building in place.
36189 ac_srcdir=.
36190 ac_top_srcdir=$ac_top_builddir_sub
36191 ac_abs_top_srcdir=$ac_pwd ;;
36192 [\\/]* | ?:[\\/]* ) # Absolute name.
36193 ac_srcdir=$srcdir$ac_dir_suffix;
36194 ac_top_srcdir=$srcdir
36195 ac_abs_top_srcdir=$srcdir ;;
36196 *) # Relative name.
36197 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36198 ac_top_srcdir=$ac_top_build_prefix$srcdir
36199 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36200 esac
36201 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36204 case $ac_mode in
36207 # CONFIG_FILE
36210 case $INSTALL in
36211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36212 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36213 esac
36214 _ACEOF
36216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36217 # If the template does not know about datarootdir, expand it.
36218 # FIXME: This hack should be removed a few years after 2.60.
36219 ac_datarootdir_hack=; ac_datarootdir_seen=
36220 ac_sed_dataroot='
36221 /datarootdir/ {
36225 /@datadir@/p
36226 /@docdir@/p
36227 /@infodir@/p
36228 /@localedir@/p
36229 /@mandir@/p'
36230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36231 *datarootdir*) ac_datarootdir_seen=yes;;
36232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36234 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36235 _ACEOF
36236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36237 ac_datarootdir_hack='
36238 s&@datadir@&$datadir&g
36239 s&@docdir@&$docdir&g
36240 s&@infodir@&$infodir&g
36241 s&@localedir@&$localedir&g
36242 s&@mandir@&$mandir&g
36243 s&\\\${datarootdir}&$datarootdir&g' ;;
36244 esac
36245 _ACEOF
36247 # Neutralize VPATH when `$srcdir' = `.'.
36248 # Shell code in configure.ac might set extrasub.
36249 # FIXME: do we really want to maintain this feature?
36250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36251 ac_sed_extra="$ac_vpsub
36252 $extrasub
36253 _ACEOF
36254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36257 s|@configure_input@|$ac_sed_conf_input|;t t
36258 s&@top_builddir@&$ac_top_builddir_sub&;t t
36259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36260 s&@srcdir@&$ac_srcdir&;t t
36261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36262 s&@top_srcdir@&$ac_top_srcdir&;t t
36263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36264 s&@builddir@&$ac_builddir&;t t
36265 s&@abs_builddir@&$ac_abs_builddir&;t t
36266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36267 s&@INSTALL@&$ac_INSTALL&;t t
36268 $ac_datarootdir_hack
36270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36271 if $ac_cs_awk_getline; then
36272 $AWK -f "$ac_tmp/subs.awk"
36273 else
36274 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36275 fi \
36276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36278 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36281 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36283 which seems to be undefined. Please make sure it is defined" >&5
36284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36285 which seems to be undefined. Please make sure it is defined" >&2;}
36287 rm -f "$ac_tmp/stdin"
36288 case $ac_file in
36289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36291 esac \
36292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36296 # CONFIG_HEADER
36298 if test x"$ac_file" != x-; then
36300 $as_echo "/* $configure_input */" \
36301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36302 } >"$ac_tmp/config.h" \
36303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36307 else
36308 rm -f "$ac_file"
36309 mv "$ac_tmp/config.h" "$ac_file" \
36310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36312 else
36313 $as_echo "/* $configure_input */" \
36314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36315 || as_fn_error $? "could not create -" "$LINENO" 5
36320 # CONFIG_LINK
36323 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
36325 else
36326 # Prefer the file from the source tree if names are identical.
36327 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
36328 ac_source=$srcdir/$ac_source
36331 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
36332 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
36334 if test ! -r "$ac_source"; then
36335 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
36337 rm -f "$ac_file"
36339 # Try a relative symlink, then a hard link, then a copy.
36340 case $ac_source in
36341 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
36342 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
36343 esac
36344 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
36345 ln "$ac_source" "$ac_file" 2>/dev/null ||
36346 cp -p "$ac_source" "$ac_file" ||
36347 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
36350 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36351 $as_echo "$as_me: executing $ac_file commands" >&6;}
36353 esac
36356 case $ac_file$ac_mode in
36357 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
36358 "gccdepdir":C)
36359 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
36360 for lang in $subdirs c-family common analyzer text-art rtl-ssa
36362 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
36363 done ;;
36364 "default-1":C)
36365 for ac_file in $CONFIG_FILES; do
36366 # Support "outfile[:infile[:infile...]]"
36367 case "$ac_file" in
36368 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36369 esac
36370 # PO directories have a Makefile.in generated from Makefile.in.in.
36371 case "$ac_file" in */Makefile.in)
36372 # Adjust a relative srcdir.
36373 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36374 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
36375 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36376 # In autoconf-2.13 it is called $ac_given_srcdir.
36377 # In autoconf-2.50 it is called $srcdir.
36378 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36379 case "$ac_given_srcdir" in
36380 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36381 /*) top_srcdir="$ac_given_srcdir" ;;
36382 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
36383 esac
36384 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36385 rm -f "$ac_dir/POTFILES"
36386 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36387 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36388 POMAKEFILEDEPS="POTFILES.in"
36389 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
36390 # on $ac_dir but don't depend on user-specified configuration
36391 # parameters.
36392 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36393 # The LINGUAS file contains the set of available languages.
36394 if test -n "$OBSOLETE_ALL_LINGUAS"; then
36395 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
36397 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36398 # Hide the ALL_LINGUAS assigment from automake.
36399 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36400 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36401 else
36402 # The set of available languages was given in configure.ac.
36403 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36405 case "$ac_given_srcdir" in
36406 .) srcdirpre= ;;
36407 *) srcdirpre='$(srcdir)/' ;;
36408 esac
36409 POFILES=
36410 GMOFILES=
36411 UPDATEPOFILES=
36412 DUMMYPOFILES=
36413 for lang in $ALL_LINGUAS; do
36414 POFILES="$POFILES $srcdirpre$lang.po"
36415 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36416 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36417 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36418 done
36419 # CATALOGS depends on both $ac_dir and the user's LINGUAS
36420 # environment variable.
36421 INST_LINGUAS=
36422 if test -n "$ALL_LINGUAS"; then
36423 for presentlang in $ALL_LINGUAS; do
36424 useit=no
36425 if test "%UNSET%" != "$LINGUAS"; then
36426 desiredlanguages="$LINGUAS"
36427 else
36428 desiredlanguages="$ALL_LINGUAS"
36430 for desiredlang in $desiredlanguages; do
36431 # Use the presentlang catalog if desiredlang is
36432 # a. equal to presentlang, or
36433 # b. a variant of presentlang (because in this case,
36434 # presentlang can be used as a fallback for messages
36435 # which are not translated in the desiredlang catalog).
36436 case "$desiredlang" in
36437 "$presentlang"*) useit=yes;;
36438 esac
36439 done
36440 if test $useit = yes; then
36441 INST_LINGUAS="$INST_LINGUAS $presentlang"
36443 done
36445 CATALOGS=
36446 if test -n "$INST_LINGUAS"; then
36447 for lang in $INST_LINGUAS; do
36448 CATALOGS="$CATALOGS $lang.gmo"
36449 done
36451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36452 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"
36453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36454 if test -f "$f"; then
36455 case "$f" in
36456 *.orig | *.bak | *~) ;;
36457 *) cat "$f" >> "$ac_dir/Makefile" ;;
36458 esac
36460 done
36463 esac
36464 done ;;
36465 "as":F) chmod +x as ;;
36466 "collect-ld":F) chmod +x collect-ld ;;
36467 "nm":F) chmod +x nm ;;
36468 "dsymutil":F) chmod +x dsymutil ;;
36469 "default":C)
36470 case ${CONFIG_HEADERS} in
36471 *auto-host.h:config.in*)
36472 echo > cstamp-h ;;
36473 esac
36474 # Make sure all the subdirs exist.
36475 for d in $subdirs doc build common c-family
36477 test -d $d || mkdir $d
36478 done
36481 esac
36482 done # for ac_tag
36485 as_fn_exit 0
36486 _ACEOF
36487 ac_clean_files=$ac_clean_files_save
36489 test $ac_write_fail = 0 ||
36490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36493 # configure is writing to config.log, and then calls config.status.
36494 # config.status does its own redirection, appending to config.log.
36495 # Unfortunately, on DOS this fails, as config.log is still kept open
36496 # by configure, so config.status won't be able to write to it; its
36497 # output is simply discarded. So we exec the FD to /dev/null,
36498 # effectively closing config.log, so it can be properly (re)opened and
36499 # appended to by config.status. When coming back to configure, we
36500 # need to make the FD available again.
36501 if test "$no_create" != yes; then
36502 ac_cs_success=:
36503 ac_config_status_args=
36504 test "$silent" = yes &&
36505 ac_config_status_args="$ac_config_status_args --quiet"
36506 exec 5>/dev/null
36507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36508 exec 5>>config.log
36509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36510 # would make configure fail if this is the last instruction.
36511 $ac_cs_success || as_fn_exit 1
36513 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}